Comments (2)
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.
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)
- As a user I want to automatically get optimal configuration based on provided ground truth
- AttributeError: module 'boxdetect.config' has no attribute 'update_num_iterations'
- Strategies for getting accurate checkboxes on documents with Serif Font HOT 3
- Is there way to extract coordinates HOT 3
- Check box mapping with text HOT 1
- challenging case on checkbox crossing outside box HOT 2
- Failed detection of cropped image HOT 2
- checkbox detect fails with sloppy crosses HOT 7
- Removing noise while preserving the boundary of the checkbox HOT 4
- Not detecting all the boxes HOT 1
- Default config for vertical grouping has bad results for vertically aligned checkboxes HOT 2
- New release for scikit-learn installation HOT 3
- Failure in UnitTests HOT 1
- Which configurations should I use?
- Can't detect table cells
- using boxdetect in a lambda errors due to GUI artifacts
- AttributeError: module 'boxdetect.config' has no attribute 'update_num_iterations'. Did you mean: 'dilation_iterations'? HOT 1
- Add missing docstrings
- Add full tests coverage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boxdetect.