Comments (3)
You should get acquainted with the parameters of OpenCV's hough transform and probably experiment with the hough_votes_thresh
parameter of the detect_lines
method (see the example), i.e. probably set it lower in order to detect more lines. The canny_*
parameters can also be helpful, but a lower value of hough_votes_thresh
should be enough.
Another note: MIN_COL_WIDTH
should be the approx. minimum expected column width in pixels, measured in the scanned page image. I guess your left column's width is smaller, isn't it?
from pdftabextract.
@internaut Thanks for your reply.
MIN_COL_WIDTH is the width of left column measured in pixels using GIMP measurement tool. It gave me that value.
Sure, I will experiment with lowering the value of hough_votes_thresh.
Is it possible to extract tables like this, a table with only horizontal lines and no vertical lines. To a human eye, this looks like a table and can be read. Can the script help to extract such tables?
from pdftabextract.
When there are no column borders, they can of course not be detected by Computer Vision algorithms like Hough transform.
You'll probably have to use the distribution of x/y coordinates of the text boxes in order to find regularities (i.e. they will cluster together around certain x-positions) and hence detect the columns.
from pdftabextract.
Related Issues (20)
- pdftohtml is not generating image files for the given pdf file.
- Question HOT 1
- Problem in running script HOT 1
- Output is not coming
- Please help me. HOT 1
- request feature for compatible with google vision api (document_text_detection)
- poppler pdftohtml my pdf, the pictures of outputs are not right, my system is win7 and the pdf is Chinese HOT 1
- Data Sources HOT 1
- jpeg8.dll does not exist HOT 1
- Logger file missing HOT 1
- `Poppler` installation on windows HOT 1
- pdftohtml not generating image tag in XML file HOT 1
- Code is Running. However not detecting any data.
- No text boxes in the output HOT 1
- Tagged releases and changelog
- pdftohtml does not create any scanned page with formats png and jpg HOT 1
- Use pdftabextract convert pdf which is converted by a picture HOT 1
- pdftohtml -c -hidden -xml input.pdf output.xml HOT 1
- pdftabextract does not label an text boxes HOT 5
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 pdftabextract.