OpenCV-Document-Scanner icon indicating copy to clipboard operation
OpenCV-Document-Scanner copied to clipboard

Wrong edge detection in case of no background available

Open viveksatasiya opened this issue 2 years ago • 1 comments

Hello, First of all, I want to say thank you for this wonderful code repository. It really helps me a lot.

I have tried converting many different types of images and it is working quite well, but I have found one case where it detects the wrong contour. When I pass the image with little or no background at that time it detects the wrong contour.

here is the source image, 8

here is the final transformed image, 8

It detected the wrong contour.

Can you please guide me to resolve this issue.

Thanks in advance.

viveksatasiya avatar Apr 14 '22 06:04 viveksatasiya

You could try using the interactive mode using the -i flag and manually tune the dimensions

gregorylearns avatar Oct 12 '22 09:10 gregorylearns