Git Product home page Git Product logo

Comments (5)

hacksider avatar hacksider commented on July 17, 2024

image

from pyimgscan.

hacksider avatar hacksider commented on July 17, 2024

Sample image tested is this
image

from pyimgscan.

sammdu avatar sammdu commented on July 17, 2024

Ah, it happens sometimes, when the algorithm cannot find 4 corners in the first place. I'll look into it more, and perhaps print a traceback that makes more sense.

The long term goal is, of course, to always find 4 corners, especially in this type of image where it seems like the edges of the paper is pretty visible.

I'm going to guess that there isn't enough contrast between the paper and the background for the algorithm at the current stage, so the contours are weak, therefore corners not found.

I'll test your image when I get some time, and let you know exactly what went wrong. Thanks for the feedback!

from pyimgscan.

sammdu avatar sammdu commented on July 17, 2024

@hacksider I tested your image and it indeed got overexposed during the adjustment phase and lost its contour.
I need to come up with a better pre-processing algorithm so that the contours are best preserved. If you can pre-process your image so that there is more contrast, like this:

image

That will fix the issue.

from pyimgscan.

hacksider avatar hacksider commented on July 17, 2024

Awesome! Thanks for the tips! By the way, the app is amazing and is a life saver! Really loved the implementation! Kudos to you!

from pyimgscan.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.