Sign inSign up

ryanfb/tesslinesplit

By ryanfb

•Updated about 7 years ago

Standalone Tesseract line segmentation

Image
1

940

ryanfb/tesslinesplit repository overview

⁠tesslinesplit

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:

  • tesseract
  • leptonica

Requirements 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.json

Docker usage⁠:

docker run -ti -v $(pwd):/data ryanfb/tesslinesplit tesslinesplit-kraken inputimage.png outputsegmentation.json

Tag summary

Content type

Image

Digest

Size

305.1 MB

Last updated

about 7 years ago

docker pull ryanfb/tesslinesplit