OpenCV-Document-Scanner
OpenCV-Document-Scanner copied to clipboard
An interactive document scanner built in Python using OpenCV featuring automatic corner detection, image sharpening, and color thresholding.
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...
In ```site-packages/pylsd/lsd.py``` I had to change the decimal separator from "," to "." for my locale "DE". A solution which should work for all locales with decimal separator "," and...
Hi there! Is there any possibility to preserve the document colors in the final result? @andrewdcampbell Kind Regards, João
I have successfully installed all the requirements , but I'm getting error "LSD Error: new_image_double: invalid image size." . I am unable to figure it out . It is not...
``` python3 scan.py --image sample_images/dollar_bill.JPG Traceback (most recent call last): File "scan.py", line 20, in from pylsd.lsd import lsd File "xx/Library/Python/3.8/lib/python/site-packages/pylsd/__init__.py", line 8, in from lsd import lsd ImportError: cannot...
Used as suggested, but no new file was created.
I am receiving below error while executing python scan.py --images imageDirectory Traceback (most recent call last): File "scan.py", line 335, in scanner.scan(im_dir + '/' + im) File "scan.py", line 284,...
Hi! I noticed that the edged image has edges bigger than the original document boundary. It happens because of dilation. It would be better to replace it to closing or...
`cv2.error: OpenCV(4.0.1) /build/opencv/src/opencv-4.0.1/modules/imgproc/src/shapedescr.cpp:237: error: (-215:Assertion failed) count >= 0 && (depth == CV_32F || depth == CV_32S) in function 'arcLength'`
Dilate increases the document boundary by a few pixels. It is better to use closing or opening which are a sequantial application of dilation and erosion. And therefore document boundary...