Tool to save positional OCR data to a text file
Project description
Tesseract-Positional
A tool to save positional OCR data to a text file
Tesseract-Positional allows positional data extracted using OCR to be saved as plain-text. Positional data includes text spacing and line breaks.
Installation
Installation via pip:
$ pip install tesseract-positional
Installation via cloned repository:
$ git clone https://github.com/tjkessler/tesseract-positional
$ cd tesseract-positional
$ pip install .
Additional dependencies (pytesseract, Pillow) will be installed during Tesseract-Positional's installation.
Basic Usage
Via a Python script
Saving extracted text to a file:
from tesseract_positional import positional_ocr
positional_ocr('image.tiff', 'output.txt')
Obtaining extracted text:
from tesseract_positional import positional_ocr
text = positional_ocr('image.tiff')
Via the command line
$ tesseract-positional image.tiff output.txt
Contributing, Reporting Issues and Other Support
To contribute to Tesseract-Positional, make a pull request. Contributions should include tests for new features added, as well as extensive documentation.
To report problems with the software or feature requests, file an issue. When reporting problems, include information such as error messages, your OS/environment and Python version.
For additional support/questions, contact Travis Kessler (travis.j.kessler@gmail.com).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tesseract_positional-0.1.2.tar.gz
.
File metadata
- Download URL: tesseract_positional-0.1.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c3123d15b3ef85bb313cc8833381c2c9982dda2535c609d49f9674f2692515 |
|
MD5 | 00c2e1693799bfb95f6c896a471605f3 |
|
BLAKE2b-256 | 085346d6d992ed48f711e9e645eba9a6c0be526168944508ae6df5ed83175964 |
File details
Details for the file tesseract_positional-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: tesseract_positional-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 657e3206bf32a703347f1a8b6a87373741139f4da98ad7c9a77ffc5d7ef73870 |
|
MD5 | 630452a4d01557f782f8acb42a94662c |
|
BLAKE2b-256 | 24e0a4918fcd011268507aaff02308e0e6b846abd0728ecfb0247838181fcb09 |