A revolutionary web application that uses Gemini 2.5 Flash Image Preview to provide true augmented reality overlays for identifying and analyzing components in circuit boards and engineering parts. Experience AR-like component detection with real-time camera integration!
AR.Component.Pro.AI-Powered.AR.Analysis.video.1.mp4
Competition demo video - Shows AR Component Pro in action!
Uploading AR Component Pro AI-Powered AR Analysis video (1).mp4β¦
- π· Dual Mode Operation: Image analysis + Live AR camera mode
- π― AR Component Detection: Real-time overlay on live camera feed
- π§ Gemini 2.5 Flash Integration: Latest Nano Banana model
- π± Mobile Optimized: Works on phones and tablets
- β‘ Real-Time Processing: Instant component identification
- π¨ Interactive Overlays: Clickable AR-style bounding boxes
- Component Detection: Upload images of circuit boards or engineering parts
- AI-Powered Analysis: Uses Gemini 2.5 Flash Image for accurate component identification
- Interactive Overlays: Visual highlights with clickable component information
- Detailed Information: Component names, descriptions, positions, and markings
- Responsive Design: Works on desktop and mobile devices
-
Get Gemini API Key:
- Visit Google AI Studio
- Create a new project or use existing one
- Generate an API key from the API Keys section
-
Configure the Application:
- The API key is already configured in
script.js - replace `` with your own key
- The API key is already configured in
-
Run the Application:
# Start local web server python -m http.server 8000 # Open in browser # http://localhost:8000
-
Install Python Dependencies:
pip install -r requirements.txt
-
Set Environment Variable:
export GEMINI_API_KEY="your_api_key_here"
Or create a
.envfile withGEMINI_API_KEY=your_api_key_here -
Run the Backend:
python backend.py
Backend will be available at http://localhost:5000
-
Run the Frontend:
- Open
index.htmlin a web browser - Or use the Python server:
python -m http.server 8000 - Frontend will be available at http://localhost:8000
- Open
Run both servers simultaneously:
# Terminal 1 - Backend
python backend.py
# Terminal 2 - Frontend
python -m http.server 8000- Upload an Image: Click "Choose Image" to select a circuit board or engineering part image
- Ask a Question: Type your specific question in the query box, such as:
- "What are the main components on this motherboard?"
- "Show me the power supply connections"
- "Identify the sensors in this assembly"
- "What tools do I need to disassemble this?"
- Generate AR Overlay: Click "π Generate AR Overlay"
- View Results: Nano Banana generates a custom AR overlay answering your question
- Interactive Experience: The overlay appears as a transparent layer on your original image
- Switch to AR Mode: Click "π± AR Overlay" button
- Open Camera: Click "πΉ Open Camera" and grant permissions
- Point & Capture: Point your camera at engineering objects
- Ask Questions: Use the query system with live camera feed
- Real-Time AR: Get instant AR overlays on your camera view
- Component Identification: "What are all the ICs and their functions?"
- Assembly Guidance: "Show me how to connect these wires"
- Diagnostic Help: "Highlight any damaged components"
- Educational: "Explain the data flow in this circuit"
- Maintenance: "What parts need regular replacement?"
- Uses Gemini 2.5 Flash Image Preview model for advanced image analysis
- Processes images up to 800x600 pixels for optimal performance
- Full-stack version uses Python backend for secure API key handling
- Frontend-only version makes API calls client-side
- Circuit boards (resistors, capacitors, ICs, connectors, etc.)
- Engineering parts (gears, motors, sensors, etc.)
- Assembly components (3D printer parts, mechanical components)
This project showcases:
- Dynamic Creation: AI-generated component overlays
- Editing with Words: Natural language component descriptions
- Blending Realities: AR-like overlay on real images
- World Knowledge: Accurate engineering component identification
- HTML5 Canvas for image manipulation and overlays
- Google Generative AI SDK for Gemini integration
- Vanilla JavaScript (ES6+)
- Responsive CSS with modern design
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
To modify the application:
- Edit
index.htmlfor structure changes - Edit
styles.cssfor styling updates - Edit
script.jsfor functionality changes
This project is created for the Nano Banana competition and is available under MIT License.
