This repository contains a project that utilizes the Gemini Pro Vision API to extract invoice information from images.
demo.invoice.query.mp4
To set up the project, follow these steps:
-
Install Conda if you haven't already. You can download it from the official Conda website.
-
Open a terminal or command prompt.
-
Create a new Conda environment with Python 3.10 by running the following command:
conda create -p venv python==3.10
-
Activate the newly created environment:
conda activate venv
-
Install the required dependencies by running the following command:
pip install -r requirements.txt
-
You're all set! You can now run the project and start extracting invoice information from images.
To use this project, follow these instructions:
-
Upload the image of your receipt to the project.
-
Ask your query in the prompt.
-
The project will utilize the Gemini Pro Vision API to extract invoice information from the image and provide the query results.
-
Review the extracted invoice information and query results.
-
Repeat the process for additional receipts or queries.
Disclaimer: This project is for educational purposes only. The Gemini Pro Vision API may have usage restrictions and fees. Please refer to the API documentation and terms of service for more information.