Giter Site home page Giter Site logo

Comments (7)

karolzak avatar karolzak commented on August 16, 2024 1

@FUF1 can you send it via email? Send it over to: karol.zak at hotmail.com

from boxdetect.

FUF1 avatar FUF1 commented on August 16, 2024 1

karol.zak at hotmail.com

Yes, I sent it. 👍

from boxdetect.

FUF1 avatar FUF1 commented on August 16, 2024 1

Tweaking the values with the suggestions of Karol resulted in a much higher success rate. Thanks again.

from boxdetect.

karolzak avatar karolzak commented on August 16, 2024

Hi @FUF1,
Glad you found my package useful :)
BoxDetect should be perfect for your type of input. Try the following:

# 2nd step would be to try making sure this width and height ranges are correct for your size of boxes
# it's best to open something like paint or so and just manually validate that your boxes are in fact within this pixel range
cfg.width_range = (25,42)
cfg.height_range = (25,42)
# 1st step would be to change scaling_factors to something like [0.8] or [0.7]
cfg.scaling_factors = [0.75]
# you know you're looking just for squares so you can limit wh_ratio_range to something like: (0.8, 1.2)
cfg.wh_ratio_range = (0.8, 1.2)
cfg.dilation_iterations = 0

Do let me know how it went! Good luck!

from boxdetect.

FUF1 avatar FUF1 commented on August 16, 2024

Hi @FUF1, Glad you found my package useful :) BoxDetect should be perfect for your type of input. Try the following:

# 2nd step would be to try making sure this width and height ranges are correct for your size of boxes
# it's best to open something like paint or so and just manually validate that your boxes are in fact within this pixel range
cfg.width_range = (25,42)
cfg.height_range = (25,42)
# 1st step would be to change scaling_factors to something like [0.8] or [0.7]
cfg.scaling_factors = [0.75]
# you know you're looking just for squares so you can limit wh_ratio_range to something like: (0.8, 1.2)
cfg.wh_ratio_range = (0.8, 1.2)
cfg.dilation_iterations = 0

Do let me know how it went! Good luck!

Hi @karolzak

Sorry it took me so long to respond. I had very limited time and tried your suggestion but didn't succeed. The program detected less checkboxes when i changed the scaling factor to something else than 0.5. I checked the size of the checkboxes and it was fine. So I had to write a test first, that checked through all sensible possibilities. My initial values seemed to be pretty close. scaling_factor = 0.5 and the selected width & height_range gave me the most detections for the testfile (but many other combinations did equivalent as well). Is there anything else to consider that it might work better? Thanks a lot!

from boxdetect.

karolzak avatar karolzak commented on August 16, 2024

@FUF1 could you send me an example of one of your images? I'll try to run it with my code and see if I can crack it

from boxdetect.

FUF1 avatar FUF1 commented on August 16, 2024

@karolzak Thank you for the generous offer! Is there a way to send it to you non publicly since the tests should not be distributed unnecessarily? I tried to erase the content, but then the program seems to detect different things.

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.