This Streamlit application allows users to upload car images, extract key vehicle information (Type, License Plate, Make, Model, Color) using a multimodal AI model, display the collected data in an editable table, and view an analytics dashboard.
- Image Upload: Easily upload car images for analysis.
- AI-Powered Data Extraction: Utilizes
gemini-2.5-flash(via LangChain) to identify vehicle type, license plate, make, model, and color. - Editable Data Table: View and modify the extracted car data in an interactive DataFrame.
- Analytics Dashboard: Once three or more car entries are collected, an analytics dashboard provides insights into:
- Total cars analyzed.
- Distribution of car colors.
- Presence/absence of license plates.
-
Clone the repository (or save the files): Ensure
https://github.com/Plutonian-coder/Car-Image-Analysis/raw/refs/heads/main/.devcontainer/Analysis-Car-Image-1.5-beta.4.zipandhttps://github.com/Plutonian-coder/Car-Image-Analysis/raw/refs/heads/main/.devcontainer/Analysis-Car-Image-1.5-beta.4.zipare in the same directory. -
Install dependencies: Navigate to the project directory in your terminal and install the required Python packages:
pip install -r https://github.com/Plutonian-coder/Car-Image-Analysis/raw/refs/heads/main/.devcontainer/Analysis-Car-Image-1.5-beta.4.zip
The application requires a Google API Key to access the Gemini model. Follow these steps to set it up:
-
Obtain an API Key: If you don't have one, create a key in Google AI Studio.
-
Set as Environment Variable: Before running the app, set your Google API Key as an environment variable in your terminal:
export GOOGLE_API_KEY='YOUR_API_KEY'
Replace
'YOUR_API_KEY'with your actual key.- For Streamlit Cloud Deployment: If you plan to deploy on Streamlit Cloud, you would add your
GOOGLE_API_KEYas a secret in the Streamlit Cloud settings rather than an environment variable.
- For Streamlit Cloud Deployment: If you plan to deploy on Streamlit Cloud, you would add your
-
Ensure dependencies are installed and your API key is set.
-
Run the Streamlit app from your terminal in the project directory:
streamlit run https://github.com/Plutonian-coder/Car-Image-Analysis/raw/refs/heads/main/.devcontainer/Analysis-Car-Image-1.5-beta.4.zip
-
Access the application: Streamlit will launch a new tab in your web browser with the application. If it doesn't open automatically, you can navigate to the URL displayed in your terminal (usually
http://localhost:8501).