code-image-to-text-0.1.4
توضیحات
Convert code image to text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | code-image-to-text-0.1.4 |
| نام | code-image-to-text |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | khuyentran1401 |
| ایمیل نویسنده | khuyentran1476@gmail.com |
| آدرس صفحه اصلی | https://github.com/khuyentran1401/code_image_to_text |
| آدرس اینترنتی | https://pypi.org/project/code-image-to-text/ |
| مجوز | Apache-2.0 |
# 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:
```bash
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`.
```python
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
```bash
sudo apt-get update
sudo apt-get install tesseract-ocr
sudo apt-get install libtesseract-dev
```
* Windows
Install from [here](https://github.com/UB-Mannheim/tesseract/wiki)
## Install code-image-to-text
```bash
pip install code-image-to-text
```
نیازمندی
| مقدار | نام |
|---|---|
| >=4.5.2,<5.0.0 | opencv-python |
| >=10.2.2,<11.0.0 | rich |
| >=0.3.7,<0.4.0 | pytesseract |
| >=0.3.2,<0.4.0 | typer |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.1,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl code-image-to-text-0.1.4:
pip install code-image-to-text-0.1.4.whl
نصب پکیج tar.gz code-image-to-text-0.1.4:
pip install code-image-to-text-0.1.4.tar.gz