A simple text extractor from image
Project description
Text-Image-Extractor
This package helps to extract text from clear images such as screenshots, scanned pictures etc.
The following steps demonstrate how to use this package:
Prerequisites
- Pytesseract must be installed on your local devices.
- For Linux users, you must install pytesseract OCR using sudo
Install package
To install, use the code below.
pip install extract-img-text
Extract text
To extract the text into your terminal, run the following
from image_extract.ext import ImgExt
#uncomment if you are a window user
#pytesseract.tesseract_cmd = path_to_tesseract_on _your_device
img = ImgExt(image_path="image_path",file_name="test")
# To return text
text=img.get_text()
print(text)
# To convert text to docx
img.convert_to_word()
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
extract-img-txt-1.0.1.tar.gz
(2.7 kB
view details)
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 extract-img-txt-1.0.1.tar.gz.
File metadata
- Download URL: extract-img-txt-1.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b00395d6848a39be9aa8262a4917271770b85020676d686d5c11b0820634280f
|
|
| MD5 |
4ae0b47a663bb22b04243e1e0c8363bb
|
|
| BLAKE2b-256 |
3f4bd50e6c0ccd77ad9d3df62e0e6c054f4c335825414fb1eebd5822d9b1e30b
|
File details
Details for the file extract_img_txt-1.0.1-py3-none-any.whl.
File metadata
- Download URL: extract_img_txt-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb920a8850cd972a99c3b1b3e6438383f3f83725567f8850f9cedb471449b65
|
|
| MD5 |
a3a77b0cce5e7b45e9264b18a6cd3791
|
|
| BLAKE2b-256 |
7ef0ae4435fffcca781d27f8e8092cba64fadd60449046acb4bb34490c607dba
|