How ruchira807/visioninspectai works
VisionInspect AI is a manufacturing visual-inspection platform: an engineer submits a product image through the dashboard, the API runs anomaly detection and classification, and the result is presented with defect localization and inspection records. The graph preserves the documented image-quality, YOLO, autoencoder, thresholding, and dashboard capabilities, plus data, reporting, authentication, dataset, and analytics subsystems. Edges are limited to relationships shown in excerpts, the source index, or README; dashed links indicate documented capabilities whose implementation details were not sampled.
Main entry points: inference.py Anomaly inference · inspection.py Inspection endpoint · dashboard.js Inspection dashboard · api.js API client
Components 25
Inspection dashboard
- Inspection dashboard
pages/dashboard.js - Inspection result UI
components/InspectionResult.js - Supervisor overview
components/SupervisorOverview.js - API client
lib/api.js
API and identity
- FastAPI application
backend/app.py - Inspection endpoint
backend/routes/inspection.py - Authentication endpoints
backend/routes/auth.py - JWT authentication
backend/auth/jwt_handler.py
Vision pipeline
- Image quality checks
anomaly_detection/preprocessor.py - YOLO product crop
anomaly_detection/yolo_helper.py - Autoencoder model
anomaly_detection/model.py - Anomaly inference
anomaly_detection/inference.py - Defect classifier
anomaly_detection/classifier.py - Severity assessment
anomaly_detection/severity.py - Category thresholds
anomaly_detection/config.py
Data and operations
- Inspection history
backend/models/inspection_history.py - Database service
backend/services/database_service.py - Relational database
backend/models/database.py - Analytics endpoints
backend/routes/inspection.py - Inspection statistics
backend/services/statistics.py - Inspection reports
backend/pdf_report.py - Dataset operations
backend/routes/dataset.py - Image preprocessing API
backend/routes/preprocess.py - Image augmentation API
backend/routes/augmentation.py
Other components
- Quality engineer
Connections 26
- Quality engineer → Inspection dashboard: uses
- Inspection dashboard → Inspection result UI: renders
- Inspection result UI → API client: requests inspection
components/InspectionResult.js - Supervisor overview → API client: requests data
components/SupervisorOverview.js - API client → Inspection endpoint: posts image
lib/api.js - API client → Authentication endpoints: logs in
lib/api.js - FastAPI application → Inspection endpoint: registers routes
backend/app.py - FastAPI application → Authentication endpoints: registers routes
backend/app.py - Authentication endpoints → JWT authentication: creates tokens
backend/routes/auth.py - Inspection endpoint → JWT authentication: requires identity
backend/routes/inspection.py - Inspection endpoint → Anomaly inference: predicts defects
backend/routes/inspection.py - Anomaly inference → Image quality checks: validates image
anomaly_detection/inference.py - Anomaly inference → YOLO product crop: crops product
anomaly_detection/inference.py - Anomaly inference → Autoencoder model: reconstructs image
anomaly_detection/inference.py - Anomaly inference → Defect classifier: classifies defect
anomaly_detection/inference.py - Anomaly inference → Severity assessment: assesses severity
anomaly_detection/inference.py - Anomaly inference → Category thresholds: applies thresholds
anomaly_detection/inference.py - Inspection endpoint → Database service: saves inspection
backend/routes/inspection.py - Database service → Inspection history: writes records
backend/services/database_service.py - Database service → Relational database: opens sessions
backend/services/database_service.py - Inspection endpoint → Analytics endpoints: serves history
backend/routes/inspection.py - Anomaly inference → Inspection statistics: updates statistics
anomaly_detection/inference.py - Inspection endpoint → Inspection reports: generates PDF
backend/routes/inspection.py - Inspection dashboard → Dataset operations: manages dataset
- Inspection dashboard → Image preprocessing API: requests preprocessing
- Inspection dashboard → Image augmentation API: requests augmentation