Do not change the color of the final image
ganeshchenniah opened this issue · 1 comments
ganeshchenniah commented
Hi ,
How to keep the same colored image as it is after processing the final image in Android.
Regards,
GaneshC
ganeshchenniah commented
As you suggested in other thread . We need to comment these two lines
Mat ImageProcessor::process_image(Mat img, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {
// cvtColor(img, img, COLOR_BGR2GRAY);
Mat dst = ImageProcessor::crop_and_transform(img, x1, y1, x2, y2, x3, y3, x4, y4);
// adaptiveThreshold(dst, dst, 255, cv::ADAPTIVE_THRESH_MEAN_C, cv::THRESH_BINARY, 53, 10);
return dst;
}
Thank you .