How unwtr/24ct2-nguyenminhvuong works
Smart Parking AI is a Streamlit parking-management application with AI license-plate recognition, parking-session and slot management, user accounts, and payments. The main workflow routes a signed-in user to role-specific screens; camera input can pass through vehicle and plate recognition, while vehicle services manage check-in/out, slots, and fees. Admin screens additionally manage parking, users, approvals, payments, and settings; user screens cover profiles, vehicles, history, and payments. SQLite backs the services. Several UI relationships are supported by the SOURCE INDEX, but unsampled implementations were not inspected.
Main entry points: vehicle_service.py Vehicle sessions · admin/dashboard.py Admin dashboard · user/dashboard.py User dashboard · db.py Parking SQLite
Components 20
Application routing
- Streamlit entry
smart-parking/app.py - Admin dashboard
smart-parking/ui/admin/dashboard.py - Admin management
smart-parking/ui/admin/vehicles.py - User dashboard
smart-parking/ui/user/dashboard.py
Parking operations
- Camera capture
smart-parking/components/camera.py - Recognition pipeline
smart-parking/ai/pipeline.py - Vehicle detection
smart-parking/ai/vehicle_detector.py - Plate detection
smart-parking/ai/plate_detector.py - Plate OCR
smart-parking/ai/ocr.py - Vehicle sessions
smart-parking/backend/services/vehicle_service.py - Slots and availability
smart-parking/backend/services/parking_service.py - Parking map
smart-parking/components/parking_slots.py
Accounts and payments
- Login and signup
smart-parking/ui/auth/login.py - Authentication
smart-parking/backend/services/auth_service.py - User management
smart-parking/backend/services/user_service.py - Fees and payments
smart-parking/backend/services/payment_service.py - User account pages
smart-parking/ui/user/profile.py - Admin account pages
smart-parking/ui/admin/approvals.py
Persistence
- Parking SQLite
smart-parking/backend/database/db.py
Other components
- Operator
Connections 29
- Operator → Streamlit entry: opens
smart-parking/app.py - Streamlit entry → Login and signup: routes unauthenticated
smart-parking/app.py - Streamlit entry → Admin dashboard: routes admin
smart-parking/app.py - Streamlit entry → User dashboard: routes user
smart-parking/app.py - Login and signup → Authentication: authenticates
smart-parking/ui/auth/login.py - Camera capture → Recognition pipeline: processes frames
smart-parking/components/camera.py - Recognition pipeline → Vehicle detection: detects vehicles
smart-parking/ai/pipeline.py - Recognition pipeline → Plate detection: detects plates
smart-parking/ai/pipeline.py - Recognition pipeline → Plate OCR: reads plate text
smart-parking/ai/pipeline.py - Camera capture → Vehicle sessions: records vehicle
smart-parking/components/camera.py - Admin dashboard → Camera capture: displays camera
smart-parking/ui/admin/dashboard.py - Admin dashboard → Parking map: displays slots
smart-parking/ui/admin/dashboard.py - Admin dashboard → Vehicle sessions: manages sessions
smart-parking/ui/admin/dashboard.py - Admin dashboard → Fees and payments: shows payments
smart-parking/ui/admin/dashboard.py - Admin management → Vehicle sessions: checks vehicles in/out
smart-parking/ui/admin/vehicles.py - User dashboard → Vehicle sessions: loads vehicle data
smart-parking/ui/user/dashboard.py - User dashboard → Slots and availability: loads parking data
smart-parking/ui/user/dashboard.py - User dashboard → Fees and payments: loads payment data
smart-parking/ui/user/dashboard.py - User dashboard → Parking map: shows slots
smart-parking/ui/user/dashboard.py - Parking map → Slots and availability: reads slot groups
smart-parking/components/parking_slots.py - Vehicle sessions → Slots and availability: finds and updates slots
smart-parking/backend/services/vehicle_service.py - Vehicle sessions → Fees and payments: calculates and records fees
smart-parking/backend/services/vehicle_service.py - User account pages → User management: manages profile
smart-parking/ui/user/profile.py - Admin account pages → User management: reviews accounts
smart-parking/ui/admin/approvals.py - Authentication → Parking SQLite: queries users
smart-parking/backend/services/auth_service.py - User management → Parking SQLite: reads and updates users
smart-parking/backend/services/user_service.py - Slots and availability → Parking SQLite: reads and updates slots
smart-parking/backend/services/parking_service.py - Fees and payments → Parking SQLite: reads and records payments
smart-parking/backend/services/payment_service.py - Vehicle sessions → Parking SQLite: persists sessions
smart-parking/backend/services/vehicle_service.py