Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic-Document-Scanner - not working #820

Open
orcohen9826 opened this issue May 17, 2023 · 2 comments
Open

Automatic-Document-Scanner - not working #820

orcohen9826 opened this issue May 17, 2023 · 2 comments

Comments

@orcohen9826
Copy link

Im runing the file "simple-scan.py" with python . I am using it to process some images that in the inputs folder, but the output images do not match the ones in the outputs folder. They look almost the same as the original images. I don't understand what you are doing differently to get the correct results.

@brmarkus
Copy link

Can you provide more information, @orcohen9826 please?

Are you talking about "https://github.com/spmallick/learnopencv/tree/master/Automatic-Document-Scanner" or "https://github.com/spmallick/learnopencv/tree/master/Document-Scanner-Custom-Semantic-Segmentation-using-PyTorch-DeepLabV3"?

Have you looked closer into the blog under "https://learnopencv.com/automatic-document-scanner-using-opencv/"?

In which step of the different phases do you see differences?

Have you done any changes to the code or the pictures?

Could it be due to the used OS, versions of Python, OpenCV, image-codecs? Can you comment on the used OS, Python, OpenCV, please?
How have you installed your environment, "natively", in a container, in a virt-env?

Which inputs - and especially which output do you get?

@brmarkus
Copy link

Now I just tried simple-scan.py under MS-Win10, using Python v3.8.8 - tested in a virt-env.
I needed to modify requirements.txt - to use opencv-contrib-python instead of opencv-contrib-python-headless.

Also needed to create a folder inputs under the folder outputs.

Using the sample input scanned-form.jpg - then I get the following (downscaled and cut screenshot):

image

What output do you get @orcohen9826 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants