Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

img2otxt-0.2.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

img2otxt-0.2-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

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

Hashes for img2otxt-0.2.tar.gz
Algorithm Hash digest
SHA256 22b677d38edf8328a9389bb052090598634c9b63aefcd986f5486d2b9f79363e
MD5 a7c6e0efd68a565748c0c7bec047b8d4
BLAKE2b-256 b3cd138af0f000491edcb860ea913839fd508742da87d46c2fa64e7569177f9a

See more details on using hashes here.

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

Hashes for img2otxt-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f069142d763985ed479087909be3470457c5bc48385fd22a64193d2365fa7bf7
MD5 8d979621823a0c8d11361b694c26c264
BLAKE2b-256 c5ec9bbb6de08e75344cd70dc2a1d4b36ef56299630cd8ea6d679f22e3fb08fe

See more details on using hashes here.

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