Giter Club home page Giter Club logo

Comments (4)

lquirosd avatar lquirosd commented on June 14, 2024

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.

mrocr avatar mrocr commented on June 14, 2024

.

from p2pala.

lquirosd avatar lquirosd commented on June 14, 2024

Hi,
There you have two main options:

  1. 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).
  2. Update imgprocess.py and xmlPAGE.py scripts to create the GT mask using the TextLine node instead of Baseline.

Best Regards,

from p2pala.

mrocr avatar mrocr commented on June 14, 2024

@lquirosd hmmmm...

  1. A script that would create baselines from textlines page-xml is great. You will upload such script so that I test.

  2. 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)

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.