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 | Provenance | Actions |
|---|---|---|---|---|
| img2otxt-0.2.tar.gz | 1.7 kB | Without provenance | Details for img2otxt-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| img2otxt-0.2-py3-none-any.whl | Python 3 | none | any | Details for img2otxt-0.2-py3-none-any.whl |
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
|
Security for img2otxt 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.