Comments (4)
Hi, P2PaLA is developed to avoid that kind of cumbersome process. TextLine polygons most of the time are very time demanding to sketch for handwritten text documents (printed documents are easier but not always). In P2PaLA you can train the model for baselines and use the --line_offset
argument to define height of the TextLine, then the system will automatically extract a TextLine around each baseline.
For example, on the sample.zip PAGE-XML file you can see the results using the example model and default parameters (--line_offset 50
) for your sample page.
from p2pala.
.
from p2pala.
Hi,
There you have two main options:
- Write short script to create a baseline given the TextLine polygon (for printed documents something simple like the poly-line defined by the bottom vertexes of the TextLine-polygon plus some pixels on the Y-axis should work).
- Update imgprocess.py and xmlPAGE.py scripts to create the GT mask using the
TextLine
node instead ofBaseline
.
Best Regards,
from p2pala.
@lquirosd hmmmm...
-
A script that would create baselines from textlines page-xml is great. You will upload such script so that I test.
-
I tried this option, but instead of modifying imgprocess.py and xmlPAGE.py I just copied the TextLine regions and renamed into Baseline, download sample.zip, and trained using this config.zip the p2pala detection results were not good. I either get no results, or the results are bad.
from p2pala.
Related Issues (20)
- [config] HOT 1
- evaluation HOT 1
- Different predictions when changing the images order in prod_img_list HOT 1
- Error when run pretrained model HOT 1
- JoseRPrietoF version? HOT 2
- XML generator HOT 5
- [Enhancement] Page-XML extractor HOT 2
- Weights initialisation error
- minor typo in command HOT 1
- error while running the pre trained model in google colab HOT 3
- Baseline + polygon detection of handwriting HOT 4
- Demo not working HOT 1
- Wights used on the Website demo HOT 1
- "Neural Networks based Model" link in docs not working HOT 1
- How to see output polygon drawn on an input image? HOT 4
- Does P2Pala support reading order? HOT 1
- Any chance to see more pre-trained models? HOT 2
- model for zone segmentation HOT 1
- require opencv-python-headless variant HOT 2
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 p2pala.