4

I am new to OpenCv with Android.I am trying to make an application which auto detects documents using OpenCv - 2.4.13 . In my app, there is a functionality of detection documents (like a Scanbot app) and then prospect it to document. So, far I am able to detect documents with single colour or documents which are clearly distinguishable from background. But the problem arises when the document is of multi-color. To clearly understand the problem , I have attached an image:

enter image description here

As you can see, the blue line is a detection line and it is not detecting full document. What i did so far is as below :

original image -> cvtColor -> GaussianBlur filter -> dilate it to sharpen edges -> applied watershed image segmentation algorithm -> canny edge detection with dynamic otsu's threshold -> then find largest contours -> draw contours

After some research, I came to know that the problem rely on canny edge detection. Below is the result I get after canny edge detection:

enter image description here

Is there any way to achieve this? Any help will be highly appreciated !! Thanks in advance

1
  • you found any solution on this? Commented May 29, 2020 at 17:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.