Open sanjaykochrekar opened 3 years ago
path: /android/src/main/java/com/documentscanner/ImageProcessor.java
private void enhanceDocument(Mat src) { // Imgproc.cvtColor(src, src, Imgproc.COLOR_RGBA2GRAY); <===== COMMENT THE LINE TO SOLVE THE BLACK & WHITE COLOR ISSUES src.convertTo(src, CvType.CV_8UC1, colorGain, colorBias); }
I'm only able to take black and white images. How can I take coloured images?