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
Metadata
Release files for img2otxt 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| img2otxt-0.2.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| img2otxt-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.5 kB
Release files / img2otxt-0.2.tar.gz
| Download URL | img2otxt-0.2.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22b677d38edf8328a9389bb052090598634c9b63aefcd986f5486d2b9f79363e
|
|
BLAKE2b-256 checksum How to use checksums |
b3cd138af0f000491edcb860ea913839fd508742da87d46c2fa64e7569177f9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.11
|
Release files / img2otxt-0.2-py3-none-any.whl
| Download URL | img2otxt-0.2-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f069142d763985ed479087909be3470457c5bc48385fd22a64193d2365fa7bf7
|
|
BLAKE2b-256 checksum How to use checksums |
c5ec9bbb6de08e75344cd70dc2a1d4b36ef56299630cd8ea6d679f22e3fb08fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.11
|