Standalone Tesseract line segmentation
940
This is a standalone program for using Tesseract's line segmentation algorithm to split up document images.
tesslinesplit-ocular - Outputs detected lines as cropped images. The default output filenames are designed to be suitable for feeding into Ocular.tesslinesplit-kraken - Outputs detected lines as JSON. Output is designed to be suitable for feeding into Kraken.Requirements:
tesseractleptonicaRequirements are handled in the Makefile via pkg-config. You may need the -dev versions of the lib packages for these requirements, depending on your system and package manager.
Usage:
make./tesslinesplit-ocular imagefile.ext outputdir./tesslinesplit-kraken imagefile.ext outputfile.jsondocker run -ti -v $(pwd):/data ryanfb/tesslinesplit tesslinesplit-kraken inputimage.png outputsegmentation.json
Content type
Image
Digest
Size
305.1 MB
Last updated
about 7 years ago
docker pull ryanfb/tesslinesplit