Skip to content

Ftr minimal digit

Jerome Flesch requested to merge bennguvaye:ftr_minimal_digit into master

Created by: bennguvaye

So this has got a number of changes :

  • Builders inherit from BaseBuilder (easy to drop if you want to)
  • Builders' class attributes become instance attributes
  • DigitBuilder moved to builders.py
  • DigitLineBoxBuilder for digits inherits from LineBoxBuilder
  • libtesseract is available with version 3.3
  • Tests have been restructured to reduce code redundancy. Some mixins are defined in tests/tests_base.py then multiple inheritance is used for the actual tests.
  • Tests have been added for the new builders.
  • test_version in tests_libtesseract passes with version (3,4,1).

On my system (libtesseract3.4.1) most of the tests pass except :

  • The cuneiform tests since I don't have it installed
  • The libtesseract words and lines japanese tests
  • The libtesseract TestBasicDoc test
  • The line digits test since the files test-digits.lines don't exist

Merge request reports