How girishroyal77/visionai works
VisionAI is a web platform for image and video vision analytics. Users upload media, receive object and scene results (with optional OCR and human analysis), ask grounded questions, and export reports. The React app calls a FastAPI backend; the backend persists scan and chat data and provides history, authentication, health, and download routes. Video keyframe analysis, webcam capture, hardware status, and multilingual UI are documented capabilities. Some subsystem links rely on README descriptions or SOURCE INDEX references because their implementation excerpts were not provided.
Main entry points: upload.py Media ingestion · detect.py Detection endpoint · main.py FastAPI application · App.tsx Studio application
Components 26
User interface
- Studio application
frontend/src/App.tsx - API client
frontend/src/services/api.ts - Media upload
frontend/src/components/MediaUploader.tsx - Analysis viewer
frontend/src/components/CenterViewer.tsx - Assistant panel
frontend/src/components/ChatBot.tsx - Export manager
frontend/src/components/ExportManager.tsx - Translations
frontend/src/services/i18n.ts
Backend API
- FastAPI application
backend/app/main.py - Media ingestion
backend/app/api/upload.py - Chat endpoint
backend/app/api/chat.py - Object analysis endpoint
backend/app/api/analyze.py - Report and download routes
backend/app/api/report.py - Detection endpoint
backend/app/api/detect.py
Vision analysis
- Object detector
backend/app/models_engine/detector.py - Human analysis
backend/app/models_engine/human_analyzer.py - Scene analysis
backend/app/models_engine/scene_analyzer.py - OCR engine
backend/app/models_engine/ocr_engine.py - Depth estimation
backend/app/models_engine/depth_estimator.py - Video analysis
backend/app/models_engine/video_analyzer.py
Assistant and reporting
- Object knowledge
backend/app/models_engine/rag_engine.py - Language model provider
backend/app/models_engine/llm_provider.py - Report generation
backend/app/services/report_generator.py
Persistence and files
- SQLite database
backend/app/database/db.py - Media storage
backend/app/services/storage.py - System analytics
backend/app/services/analytics.py
Other components
- User
Connections 47
- User → Studio application: uses
README.md - Studio application → API client: requests
frontend/src/App.tsx - Studio application → Media upload: renders
frontend/src/App.tsx - Studio application → Analysis viewer: renders
frontend/src/App.tsx - Studio application → Assistant panel: renders
frontend/src/App.tsx - Studio application → Export manager: renders
frontend/src/App.tsx - Studio application → Translations: uses translations
frontend/src/App.tsx - Media upload → API client: uploads media
- API client → Media ingestion: posts media
frontend/src/services/api.ts - API client → Chat endpoint: sends questions
frontend/src/services/api.ts - API client → Object analysis endpoint: requests details
frontend/src/services/api.ts - API client → Report and download routes: requests report
frontend/src/services/api.ts - Export manager → API client: downloads exports
frontend/src/components/ExportManager.tsx - FastAPI application → Media ingestion: routes uploads
backend/app/main.py - FastAPI application → Detection endpoint: routes detection
backend/app/main.py - FastAPI application → Chat endpoint: routes chat
backend/app/main.py - FastAPI application → Object analysis endpoint: routes analysis
backend/app/main.py - FastAPI application → Report and download routes: routes reports
backend/app/main.py - FastAPI application → SQLite database: initializes
backend/app/main.py - Media ingestion → Object detector: detects objects
backend/app/api/upload.py - Media ingestion → Human analysis: analyzes people
backend/app/api/upload.py - Media ingestion → Scene analysis: analyzes scene
backend/app/api/upload.py - Media ingestion → OCR engine: extracts text
backend/app/api/upload.py - Media ingestion → Video analysis: processes video
backend/app/api/upload.py - Media ingestion → Media storage: saves media
backend/app/api/upload.py - Media ingestion → SQLite database: records scan
backend/app/api/upload.py - Video analysis → Object detector: samples frames
backend/app/models_engine/video_analyzer.py - Video analysis → Human analysis: analyzes people
backend/app/models_engine/video_analyzer.py - Video analysis → OCR engine: extracts text
backend/app/models_engine/video_analyzer.py - Video analysis → Scene analysis: analyzes scenes
backend/app/models_engine/video_analyzer.py - Video analysis → Depth estimation: estimates depth
backend/app/models_engine/video_analyzer.py - Detection endpoint → Object detector: runs detection
backend/app/api/detect.py - Detection endpoint → Human analysis: analyzes people
backend/app/api/detect.py - Detection endpoint → Scene analysis: analyzes scene
backend/app/api/detect.py - Detection endpoint → OCR engine: extracts text
backend/app/api/detect.py - Detection endpoint → Depth estimation: estimates depth
backend/app/api/detect.py - Detection endpoint → Media storage: stores results
backend/app/api/detect.py - Detection endpoint → SQLite database: records scan
backend/app/api/detect.py - Chat endpoint → Language model provider: answers questions
backend/app/api/chat.py - Chat endpoint → SQLite database: stores conversation
backend/app/api/chat.py - Object analysis endpoint → Object knowledge: gets object knowledge
backend/app/api/analyze.py - Object analysis endpoint → SQLite database: reads scan
backend/app/api/analyze.py - Report and download routes → Report generation: generates report
backend/app/api/report.py - Report and download routes → SQLite database: reads scan
backend/app/api/report.py - Report generation → Media storage: renders annotations
- Report and download routes → Media storage: serves files
- FastAPI application → System analytics: serves health metrics