How mo7yw4ng/ai-speeding-ticket works
Main System Components
A. Frontend Layer (AI-FE)
• Vue.js based web application
• Components for violation form handling
• Image viewing capabilities
• User interface elements
B. Backend Services
AI Backend (AI-BE)
• License plate recognition service
• Python-based image processing
• REST API endpoints
Dashboard Backend (Dashboard-BE)
• Go-based service
• Authentication handling
• WebSocket support
• Data management endpoints
Data Engineering Layer (Dashboard-DE)
• Apache Airflow DAGs
• ETL pipelines
• Data processing workflows
Component Relationships
• User → Frontend: HTTP/HTTPS
• Frontend → AI Backend: REST API calls
• Frontend → Dashboard Backend: WebSocket/REST
• Backend Services → Database: Persistent storage
• Dashboard-DE → Data Sources: ETL processes
Specific Architectural Elements
Key components:
┌─────────────────────────────────────────────────────────┐
• Client Layer │
• ┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Frontend (Vue.js) │
• ┬─────────────────────────┬─────────────────┤
• Violation │ Image Viewer │ Forms │
• System │ │ │
• ┴─────────────────────────┴─────────────────┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Backend Services │
• ┬─────────────────────────┬─────────────────┤
• AI Service │ Dashboard Service │ ETL Pipeline │
• (Python) │ (Go) │ (Airflow) │
• ┴─────────────────────────┴─────────────────┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Data Layer │
• ┬─────────────────────────┬─────────────────┤
• Redis │ PostgreSQL │ Storage │
• Cache │ Database │ │
• ┴─────────────────────────┴─────────────────┘
Additional Details
A. Security Layer
• Authentication flow
• Rate limiting middleware
• Authorization checks
B. Integration Points
• External API connections
• Data flow between services
• Cache interaction points
C. Deployment Infrastructure
• Docker containers
• Nginx configurations
• Service orchestration
Specific Implementation Notes
• Plate recognition pipeline in the AI-BE section
• Real-time websocket connections for the dashboard
• ETL processes for data engineering
• Demonstrate the cache layer with Redis
• Separation of concerns between different backend services