This AI-powered solution is designed to streamline the recognition and processing of documents. It supports various image formats, including PNG and JPEG, and offers robust features such as customizable field management and the ability to export and import field configurations. The application processes documents and outputs the extracted data in a structured JSON format, ensuring seamless workflows and easy integration with other systems, even when reloading or transferring data between sessions.
- Python;
- OpenAI Python library;
- Django;
- Tailwind CSS;
- Vanilla Javascript
- Document Recognition: Automatically extracts and processes data from supported document types.
- Field Management: Customize and manage fields for document data extraction.
- Configure fields as needed;
- Select the file you want to process (ensure it meets the supported file type and size requirements);
- Click on "Submit";
- After a few seconds, the JSON response will appear on the bottom of the page.
The application supports the following file types for recognition:
- Images (
.jpg,.jpeg,.png);
- Maximum file size: 10 MB per document.
The application uses fields to extract and organize data from documents. Below are the key fields and their purposes:
- Name: The name/title of the field;
- Description: A brief explanation or context about the field;
- Type: The expected data type from the field. It supports some fields of OpenAI Structured Outputs
- Array Type: If the type is Array, you must specify the data type of the items;
- The export feature allows you to save processed document data into a JSON file.
- This is useful for backing up data or transferring it to another system.
- The import feature enables you to load previously saved JSON files into the application.
- This allows you to restore data or continue working on previously processed documents.
- Export:
- After processing a document, click the "Export" button.
- Choose a location to save the JSON file.
- Import:
- Click the "Import" button.
- Select a JSON file containing previously saved data.
- Create a
.envfile and save the OpenAI API key on it:
OPENAI_API_KEY=sk-proj-encrypted...
- If you need to update Tailwind classes, run the watch mode:
python manage.py tailwind start
- Run the server:
python manage.py runserver
Feel free to contribute to this project by submitting issues or pull requests.