Giter VIP home page Giter VIP logo

baselinepage's Introduction

BaseLinePage

Toolkit to locate the baselines in handwritten text pages. Use it at your own risk.

  • A toolkit to find the text baselines in pages.

  • BaseLinPages is written in C++.

  • BaseLinPages uses OpenV and Bash shell

  • Some features: * Flexible. * Easy and fast to set up. Roughly, around 15 minutes to anotate a page, 3 minutes to train an Extremely Randomized Trees Classifier and 3 seconds per page to get the baselines * Mainly for academic use.

Usage

To train an ert classifier with more than one page

  • trainForestNPages.sh corpus.lst CorpusDir NumberOfPages ConfigFile.cnf
    • Change NumberOfPages to the apropiate value (#integer). It takes the NumberOfPages first pages from the corpus.lst

To get the baselines:

  • test.sh corpus.lst CorpusDir PathToErtClassifier ConfigFile
    • Change NumberOfPages to the apropiate value (#integer)

To get the scores

ConfigFile.cnf: a set of environtment variables in a plain text file

#local minima

  • MINIMA_WINDOW=15
  • MIN_POINTS_CONTOUR=35 #by default

#vars for the labelPointsFromBaselines

  • CLASS_XML_DOWN_BOUND=8
  • CLASS_XML_UPPER_BOUND=10

#vars for the ERT classifier

  • MINIM_PROB_TO_TRUE=0
  • K=0 #by default

#vars for the mdbscan

  • DBSCAN_MIN_DENSITY=2 # by default
  • DBSCAN_EPSILON_DIST=400 #0 for automaticaly estimated
  • DBSCAN_MIN_POINTS_PER_LINE=2
  • DBSCAN_MAX_ANGLE_INTO_A_LINE=60
  • DBSCAN_DECREMENT_STEP=2 #by default
  • DBSCAN_STRAIT_BASELINES= #-d to activate
  • DBSCAN_FINAL_POINTS_PER_LINE=10 # final baseline points

Authors

  • BaseLinPages is written by Moisés Pastor
  • GT_Tool_PAGE is written by Jorge Martínez Vargas

Contributors

Install and compiling

  • cd SRC
  • make

baselinepage's People

Contributors

moisespastor avatar

Watchers

James Cloos avatar Lorenzo Quirós Díaz avatar

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.