Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

tesserhocr2df-0.10-py3-none-any.whl (25.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page