Spaces:
Runtime error
Runtime error
Update README2.md
Browse files2 unmodified lines345678910111224 unmodified lines3738394041424327 unmodified lines7172737475767710 unmodified lines8889909192939413 unmodified lines1081091101111121131141151161171181 unmodified line1201211221231241251262 unmodified lines1291301311321332 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```bashHF_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)---2 unmodified lines3456789101124 unmodified lines3637383940414227 unmodified lines7071727374757610 unmodified lines8788899091929313 unmodified lines1071081091101111121131141151161171 unmodified line1191201211221231241252 unmodified lines1281291301312 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```bashHF_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