Code Image to Text Converter
Convert code image into text.
For example, if you want to extract code from the image named images/carbon.png.
Type:
python -m image_converter images/carbon.png .py
This will convert the image to text like below and save the code to the file named carbon.py.
class DataLoader:
def __init__(self, data_dir: str):
self.data_dir = data_dir
print("Instance is created")
def __call__(self):
print("Instance is called")
data_loader = DataLoader('my_data_dir')
data_loader()
Installation
Intall Tesseract
- Linux
sudo apt-get update
sudo apt-get install tesseract-ocr
sudo apt-get install libtesseract-dev
- Windows Install from here
Install code-image-to-text
pip install code-image-to-text
Metadata
Release files for code-image-to-text 0.1.4
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 | |
|---|---|---|---|---|
| code-image-to-text-0.1.4.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| code_image_to_text-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / code-image-to-text-0.1.4.tar.gz
| Download URL | code-image-to-text-0.1.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1970b81d048bb23b3b590013f6d873c539013c6610ffb2f41731ff3b30199a60
|
|
BLAKE2b-256 checksum How to use checksums |
9abb12342fa10c0f1e376db7c9952b7feeb2966b94fb1a336af4a24fb3efea3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/2.7.17 Linux/5.4.0-73-generic
|
Release files / code_image_to_text-0.1.4-py3-none-any.whl
| Download URL | code_image_to_text-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca4a71f76639218d5b78695498f91a3f5405bc5629196f8b02b9b8fde30c22ab
|
|
BLAKE2b-256 checksum How to use checksums |
281007bbc41408f335f5a88a8cbd7e167ed6dd3f41dc1af4891abe3bc13ed7b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/2.7.17 Linux/5.4.0-73-generic
|
Security for code-image-to-text 0.1.4
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.