How marvinwel/ai_inspection_cse_4333_5333 works
AI Inspector is a cloud-based visual inspection product, demonstrated with package-damage classification. The mobile app captures or selects an image, submits it for cloud inference, and presents the result; it also provides inspection history and statistics. The repository includes a web dashboard and Lambda handlers for image processing, data retrieval, and WebSocket updates. The README documents real-time dashboard updates and notifications, but the sampled source does not expose the backend wiring or persistence details, so those links are shown only where documented or left unverified.
Main entry points: inspectionService.js Inspection API Client · App.js App Navigation · ai_inspection_process_image.py Image Processing Handler · CameraScreen.js Capture & Submit
Components 22
Mobile App
- App Navigation
ai-inspector-mobile/App.js - Capture & Submit
ai-inspector-mobile/src/screens/CameraScreen.js - Inspection API Client
ai-inspector-mobile/src/services/inspectionService.js - Inspection Result
ai-inspector-mobile/src/screens/ResultScreen.js - Overview
ai-inspector-mobile/src/screens/HomeScreen.js - Inspection History
ai-inspector-mobile/src/screens/HistoryScreen.js - Inspection Statistics
ai-inspector-mobile/src/screens/StatsScreen.js - User Profile
ai-inspector-mobile/src/screens/ProfileScreen.js - Inspection Row
ai-inspector-mobile/src/components/InspectionRow.js - Statistics Card
ai-inspector-mobile/src/components/StatCard.js - App Colors
ai-inspector-mobile/src/theme/colors.js
Inspection Backend
- Image Processing Handler
lambda-functions/ai_inspection_process_image.py - Inference HTTP Service
model-container/app/serve.py - Image Classifier
model-container/app/inference.py - Inspection Fetch Handler
lambda-functions/ai_inspection_fetch_data.py
Web Dashboard
- Dashboard
ai-inspector-dashboard/app.js - Dashboard Authentication
ai-inspector-dashboard/auth.js
Live Updates
- WebSocket Connections
lambda-functions/ai-inspector-websocket-connections.py - Dashboard Stream
lambda-functions/ai_inspector_stream_dashboard.py - Notifications
Other components
- Inspector
- Cloud API
Connections 27
- Inspector → App Navigation: uses
README.md - App Navigation → Capture & Submit: routes to
ai-inspector-mobile/App.js - App Navigation → Inspection Result: routes to
ai-inspector-mobile/App.js - App Navigation → Overview: routes to
ai-inspector-mobile/App.js - App Navigation → Inspection History: routes to
ai-inspector-mobile/App.js - App Navigation → Inspection Statistics: routes to
ai-inspector-mobile/App.js - App Navigation → User Profile: routes to
ai-inspector-mobile/App.js - Capture & Submit → Inspection API Client: submits image
ai-inspector-mobile/src/screens/CameraScreen.js - Inspection API Client → Cloud API: sends image
ai-inspector-mobile/src/services/inspectionService.js - Cloud API → Inspection API Client: returns result
ai-inspector-mobile/src/services/inspectionService.js - Inspection API Client → Inspection Result: returns inspection
- Inspection API Client → Cloud API: fetches records
ai-inspector-mobile/src/services/inspectionService.js - Overview → Inspection API Client: fetches records
ai-inspector-mobile/src/screens/HomeScreen.js - Inspection History → Inspection API Client: fetches records
ai-inspector-mobile/src/screens/HistoryScreen.js - Inspection Statistics → Inspection API Client: fetches records
ai-inspector-mobile/src/screens/StatsScreen.js - Inspection History → Inspection Row: renders
ai-inspector-mobile/src/screens/HistoryScreen.js - Overview → Inspection Row: renders
ai-inspector-mobile/src/screens/HomeScreen.js - Inspection Statistics → Statistics Card: renders
ai-inspector-mobile/src/screens/StatsScreen.js - Capture & Submit → Image Processing Handler: submits for processing
README.md - Image Processing Handler → Inference HTTP Service: invokes inference
- Inference HTTP Service → Image Classifier: calls prediction
model-container/app/serve.py - Cloud API → Inspection Fetch Handler: routes data requests
README.md - Image Processing Handler → Dashboard: updates results
README.md - WebSocket Connections → Dashboard Stream: supports live updates
- Dashboard Stream → Dashboard: streams updates
README.md - Image Processing Handler → Notifications: generates alerts
README.md - Dashboard → Dashboard Authentication: uses authentication