flutter-clutter / flutter-simple-edge-detection

A Flutter plugin enabling the user to detect edges of a given image. It returns the relative coordinates of the detection rectangle.
71 stars 47 forks source link

Do not change the color of the final image #7

Closed ganeshchenniah closed 4 years ago

ganeshchenniah commented 4 years ago

Hi ,

How to keep the same colored image as it is after processing the final image in Android.

Regards, GaneshC

ganeshchenniah commented 4 years ago

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 .