AI-Powered Invoice Scanner is a web application that utilizes Google's Gemini Pro Vision model to analyze invoice images and extract relevant information. This tool is designed to simplify the invoice processing workflow by providing users with insights based on the uploaded invoice.
- Upload an invoice image in JPG, PNG, or JPEG format.
- Get detailed analysis and insights from the invoice content.
- Leverage Google's Gemini Pro Vision model for powerful generative AI capabilities.
- Simple and intuitive web interface built with Streamlit.
- Clone the repository:
git clone https://github.com/yourusername/invoice-scanner.git
cd invoice-scanner
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install the required packages:
pip install -r requirements.txt
- Set up environment variables: Create a .env file in the root directory.
Add your Google API key:
GOOGLE_API_KEY=your_api_key_here
- Run the Streamlit application:
streamlit run sentiment_analysis.py
-
Upload an invoice image.
-
Enter your query in the input prompt.
-
Click the "Tell me about invoice" button to get insights.
Upload an image of an invoice and ask questions like:
"What is the total amount?"
"Who is the vendor?"
streamlit
PIL
google-generativeai
python-dotenv
This project is licensed under the MIT License.
Feel free to open issues or submit pull requests if you would like to contribute to this project.
-
Replace
yourusername
andyour_api_key_here
with your GitHub username and your actual Google API key. -
Add a
requirements.txt
file with the necessary packages:streamlit Pillow google-generativeai python-dotenv
-
Ensure your .env file is correctly set up with your Google API key.
This README.md provides an overview, installation instructions, usage details, and examples to help users get started with your project.