AdInsight is an end-to-end platform for analyzing video advertisements using eye-tracking, emotion detection, and object recognition technologies. Combined with AI-powered analysis, it provides actionable insights for advertisers to optimize their content.
-
FastAPI Backend
fast_api_server.py- Main API serverapp_copy.py- Chatbot functionality with Ollama integrationserver.py- Video processing and object detection routinesmetrics_generator.py- Generates analytics from MongoDB data
-
React Frontend
react/- React application codereact/src/pages/- Application pages and viewsreact/src/components/- Reusable UI componentsreact/src/services/- API communicationreact/src/context/- State management
-
Video Ad Processing
- Upload YouTube URLs
- Automatic object detection using YOLO
- Store results in MongoDB
-
Analytics Dashboard
- Emotional response analysis
- Object attention analysis
- Viewer demographics
- Key performance metrics
-
AI Chatbot
- Interactive analysis of ad data
- Customizable queries
- Multiple LLM options (via Ollama)
- Comprehensive report generation
-
User Management
- Authentication and authorization
- Ad library management
- Settings and preferences
-
Backend
- FastAPI
- MongoDB
- PyTorch / YOLO for object detection
- Ollama for local LLM access
-
Frontend
- React
- Material-UI
- Chart.js for data visualization
- Axios for API communication
See startup_instructions.md for detailed setup and running instructions.
Copyright © 2023 Your Name/Organization. All rights reserved.