A package to convert images to text using OCR.
Project description
Image to Text Converter
This package converts an image to a text file by first converting the image to a PDF, then extracting the text using OCR, and finally converting it to plain text.
This process utilizes Marker package by VikParuchuri.
Installation
pip install img2otxt
Usage
from img2otxt import convert_image_to_text
image_path = 'path/to/your/image.png'
output_dir = 'path/to/output/directory'
convert_image_to_text(image_path, output_dir)
Marker Package
This package relies on the Marker package by VikParuchuri. For more details about Marker, please refer to its GitHub repository.
Testing
python -m unittest discover tests
License
MIT License
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file img2otxt-0.2.tar.gz.
File metadata
- Download URL: img2otxt-0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b677d38edf8328a9389bb052090598634c9b63aefcd986f5486d2b9f79363e
|
|
| MD5 |
a7c6e0efd68a565748c0c7bec047b8d4
|
|
| BLAKE2b-256 |
b3cd138af0f000491edcb860ea913839fd508742da87d46c2fa64e7569177f9a
|
File details
Details for the file img2otxt-0.2-py3-none-any.whl.
File metadata
- Download URL: img2otxt-0.2-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f069142d763985ed479087909be3470457c5bc48385fd22a64193d2365fa7bf7
|
|
| MD5 |
8d979621823a0c8d11361b694c26c264
|
|
| BLAKE2b-256 |
c5ec9bbb6de08e75344cd70dc2a1d4b36ef56299630cd8ea6d679f22e3fb08fe
|