tesseract hocr to pandas DataFrame
Project description
tesseract hocr to pandas DataFrame
pip install tesserhocr2df
Tested against Windows 10 / Python 3.11 / Anaconda
from tesserhocr2df import text2df
from PrettyColorPrinter import add_printer
add_printer(1)
df = text2df(
img=r"C:\Users\hansc\Desktop\2024-03-29 02_18_09-C__ProgramData_BlueStacks_nxt.png",
add_after_tesseract_path="",
add_at_the_end="-l eng+por --psm 3",
tesseractpath=r"C:\Program Files\Tesseract-OCR\tesseract.exe",
add_imgs=True,
)
print(df)
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
tesserhocr2df-0.10.tar.gz
(25.0 kB
view details)
Built Distribution
File details
Details for the file tesserhocr2df-0.10.tar.gz
.
File metadata
- Download URL: tesserhocr2df-0.10.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb25a2125cd24a63b64f5c65362a82298ceca115004475ab85d25685d7f78b81 |
|
MD5 | b1d1c533c3ccc148bf75c8fe69b28cfa |
|
BLAKE2b-256 | cdd2515331b0ad602bb0fdad53e663fb5d71d4c3f9f33e903d2524eafc428a24 |
File details
Details for the file tesserhocr2df-0.10-py3-none-any.whl
.
File metadata
- Download URL: tesserhocr2df-0.10-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f081300b383c3961b873652c4ef27d19323b762a9d970146422bd2082e282112 |
|
MD5 | 28c03e6586e34ed23979be82ce19b652 |
|
BLAKE2b-256 | b7cf5ba4417f46e66b8d25e3a94e3d29ad3b662b4cc56bccc8e385531a9771bb |