Ask Your Question

gurankas's profile - activity

2020-05-01 16:53:29 -0600 received badge  Popular Question (source)
2017-09-18 08:42:15 -0600 commented answer Detect page corners in a photo

Nvm, I changed the contour thickness to 3 while drawing and I get a continuous contour. I will try Hough Line on the out

2017-09-18 06:19:38 -0600 commented answer Detect page corners in a photo

Exactly. But when I supply this to Canny, it gives a noisy and a non-continuous edges, unlike the Canny image provided b

2017-09-18 02:05:48 -0600 commented answer Detect page corners in a photo

@VxW did you have a look at it?

2017-09-15 06:22:37 -0600 commented answer Detect page corners in a photo

Updated a link to it

2017-09-15 06:22:17 -0600 edited question Detect page corners in a photo

Detect page corners in a photo I have tried 2 methodologies as follows:- conversion of image to Mat apply gaussian blu

2017-09-15 05:43:44 -0600 commented question Detect page corners in a photo

@LBerger I tried a lot but they just won't upload. So I had to upload elsewhere and post their links

2017-09-15 00:16:05 -0600 marked best answer Detect page corners in a photo

I have tried 2 methodologies as follows:-

  1. conversion of image to Mat
  2. apply gaussian blur
  3. then canny edge detection
  4. find contours

the problem with this method is: 1. too many contours are detected 2. mostly open contours 3. doesn't detect what I want to detect

Then I changed my approach and tried adaptive thresholding after gaussian blur it is much better and I am able to detect the corners in 50% cases

The current problem I am facing is that the page detection requires contrasting and plain background without any reflections. I think it's too idealistic for real world use.

This is where I would like some help. Even a direction towards the solution is highly appreciated especially in java. Thanks in anticipation

https://ibb.co/fMWPjF

https://ibb.co/doyRya

https://ibb.co/fTT4jF

https://ibb.co/k1vH4F

Update: median blur did not help much so I traced the cause and found that the page boundary was detected in bits and pieces and not a single contour so it detected the biggest contour as a part of the page boundary Therefore performed some morphological operations to close relatively small gaps and the resultant largest contour is definitely improved but its its not optimum. Any ideas how I can improve the big gaps?

https://ibb.co/kVKrya

https://ibb.co/hmndda

Update 2:

https://ibb.co/gB8Zm5 <--new Image

https://ibb.co/imvfR5 <-- canny result after matching the results of median and adaptive from your answer

Update 3:https://ibb.co/is6WzQ <-- Image before canny edge

2017-09-15 00:16:05 -0600 received badge  Scholar (source)
2017-09-15 00:15:09 -0600 answered a question Extracting A4 sheet out of troubling backgrounds

I would suggest you follow this tutorial to make a scanner in Python with ease http://www.pyimagesearch.com/2014/09/01/

2017-09-15 00:10:06 -0600 commented answer Detect page corners in a photo

agreed! it's almost impossible to work with the 3rd Image. I don't get your homework reference. Anyways, I'm just one st

2017-09-14 03:57:44 -0600 edited question Detect page corners in a photo

Detect page corners in a photo I have tried 2 methodologies as follows:- conversion of image to Mat apply gaussian blu

2017-09-14 03:54:35 -0600 commented answer Detect page corners in a photo

Beautiful. Those images helped a ton!! I have found my error. When I use canny using the same setting as yours, my conto

2017-09-13 11:40:01 -0600 commented answer Detect page corners in a photo

How do I ensure that I indeed have the correct binarized image with correct edges? Can you post your image before and af

2017-09-13 09:06:59 -0600 commented answer Detect page corners in a photo

I am aware of that. I also know that the lines are arranged in decreasing order according to the number of votes. But ev

2017-09-13 08:21:01 -0600 commented answer Detect page corners in a photo

Well I tried HoughLines but I am not getting the same result as your result images. I am implementing this in java and a

2017-09-13 01:19:19 -0600 edited question Detect page corners in a photo

Detect page corners in a photo I have tried 2 methodologies as follows:- conversion of image to Mat apply gaussian blu

2017-09-13 01:19:00 -0600 edited question Detect page corners in a photo

Detect page corners in a photo I have tried 2 methodologies as follows:- conversion of image to Mat apply gaussian blu

2017-09-13 00:16:22 -0600 received badge  Editor (source)
2017-09-13 00:16:22 -0600 edited question Detect page corners in a photo

Detect page corners in a photo I have tried 2 methodologies as follows:- conversion of image to Mat apply gaussian blu

2017-09-12 23:57:16 -0600 commented question Detect page corners in a photo

Can you shed some light on how can I do "edge detection method based on image pyramid which enhances strong long edges b

2017-09-12 08:25:13 -0600 asked a question Detect page corners in a photo

Detect page corners in a photo I have tried 2 methodologies as follows:- conversion of image to Mat apply gaussian blu

2017-09-12 03:35:53 -0600 received badge  Enthusiast
2017-09-01 05:21:58 -0600 commented question Extract largest contour in very colorful image in OpenCV

Were you able to find an answer?

2017-08-31 00:25:54 -0600 commented answer How can I get the corner points of the largest contour (in Java/Android preferably)

I tried minAreaRect. That does enclose the largest contour and give me corners to perform the perspective transformation

2017-08-30 01:55:51 -0600 asked a question How can I get the corner points of the largest contour (in Java/Android preferably)

How can I get the corner points of the largest contour (in Java/Android preferably) I Convert an image into a Mat, diffe