Sharpen the edges
I am trying to detect the biggest/larger rectangular shape and draw bounding box to the detected area. I have tried different way to detect perfect edge ( Edges with no holes) for contour detection. I searched on stackoverflow and the solution proposed OpenCV sharpen the edges (edges with no holes) and Segmentation Edges did not work with my sample image. I would like to detect biggest/larger rectangular shape on the following two images Original Image 1 and Original Image 2 Below is the code that i use to preprocess the image before calling findcontour. public Mat processGrayScaleImage(Mat