Giter Site home page Giter Site logo

Cumulative results? about boxdetect HOT 2 CLOSED

karolzak avatar karolzak commented on July 17, 2024
Cumulative results?

from boxdetect.

Comments (2)

waiyeung1 avatar waiyeung1 commented on July 17, 2024 1

Hi @karolzak,
Thanks for the quick response and suggestion. Unfortunately, I can't share the documents.

I was able to determine the cause. With the configuration, the missing checkboxes actually had 2 rectangles drawn around them that weren't merged when group_countours() was called. As a result the checkbox wasn't considered a checkbox. By passing in epsilon=0.2, the 2 contours were merged and the checkbox was determined to be a checkbox.

Cheers,
Wai

from boxdetect.

karolzak avatar karolzak commented on July 17, 2024

Hello @waiyeung1
Is it possible for you to share these documents?

Overall if the doc B is almost identical but smaller and more grainy it may require a different configuration than doc A.
E.g.: if for doc A, width range is (30,70) for doc B it should be smaller, like (20,50) (depending how much smaller is doc B. So for doc B I would try something like below:

# important to adjust these values to match the size of boxes on your image
cfg.width_range = [(20, 60)]
cfg.height_range = [(20, 60)]

# w/h ratio range for boxes/rectangles filtering
cfg.wh_ratio_range = [(0.8, 1.2)]

# num of iterations when running dilation tranformation (to engance the image)
cfg.dilation_iterations = [1]
cfg.dilation_kernel = [(1,1)]

But without seeing the actual documents - it is just guessing

from boxdetect.

Related Issues (20)

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.