Spaces:
Runtime error
Runtime error
Update README2.md
Browse files2 unmodified lines345667989101124 unmodified lines363738403940414227 unmodified lines707172747374757610 unmodified lines878889919091929313 unmodified lines1071081091111101111121131151141151161171 unmodified line1191201211231221231241252 unmodified lines1281291301321312 unmodified lines_\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\_
---
# Overview:The **Image Data Extractor** is a Python-based tool designed to extract and structure text data from images of visiting cards using **PaddleOCR**. The tool processes the extracted text to recognize key information such as name, designation, contact number, address, and company name, organizing the output into a well-defined structure. The **Mistral 7B model** is used for advanced text analysis, and if it becomes unavailable, the system seamlessly switches to the **Gliner urchade/gliner_mediumv2.1** model.
---# Installation Guide:
1. **Create and Activate a Virtual Environment**24 unmodified lines ```bash HF_TOKEN=<your_huggingface_token> ``` --- # File Structure Overview:
```27 unmodified lines│ └── .env # Environment variables (includes Hugging Face token)```
---# Program Overview:
### PaddleOCR Integration (utility/utils.py):10 unmodified lines### Web Interface (app.py):- **Flask API**: Provides endpoints for image uploads and displays the results in a structured manner.- **HTML Interface**: A frontend for users to upload images of visiting cards and view the parsed results.
---# Tree Map of the Program:
```13 unmodified lines└── Backup and error handling
```
---# Licensing:- **Mistral 7B model** is used under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0).- **Gliner urchade/gliner_mediumv2.1 model** is used under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0).
---# Main Task:The main objective is to extract and structure text data from visiting cards. The system identifies and organizes:- **Name**1 unmodified line- **Phone Number**- **Address**- **Company Name**
---# References:
- [PaddleOCR Documentation](https://github.com/PaddlePaddle/PaddleOCR)2 unmodified lines- [Flask Documentation](https://flask.palletsprojects.com/)- [Docker Documentation](https://docs.docker.com/)- [Virtual Environments in Python](https://docs.python.org/3/tutorial/venv.html)
---README2.md+7-9