How sairamsaladi/traffic-violation-reporter works
This is a Streamlit traffic-violation reporting application. A reporter authenticates, uploads an image, and submits it for plate detection and violation analysis; the app saves a report, looks up the vehicle owner, and emails them when an address is available. The graph separates authentication, image analysis, and reporting/notification responsibilities. README documents EC2 hosting, but the supplied source does not show deployment wiring; an import of redshift_utils in app.py also has no corresponding file in the tree and is omitted.
Main entry points: app.py Streamlit app · aws_utils.py Violation description · auth.py Login and registration · email_utils.py Email notification
Components 16
Reporter workflow
- Streamlit app
app.py
Authentication
- Login and registration
auth.py - AWS Cognito
Image analysis
- Plate detection
aws_utils.py - Image labeling
aws_utils.py - Violation description
aws_utils.py - Violation classification
aws_utils.py - AWS Rekognition
- AWS Bedrock
Records and alerts
- Violation records
aws_utils.py - Owner lookup
aws_utils.py - AWS DynamoDB
- Email notification
email_utils.py - Gmail SMTP
Other components
- Reporter
- Amazon EC2
Connections 18
- Reporter → Streamlit app: uses
README.md - Streamlit app → Login and registration: authenticates through
app.py - Login and registration → AWS Cognito: registers and authenticates
auth.py - Streamlit app → Plate detection: requests plate detection
app.py - Plate detection → AWS Rekognition: detects text with
aws_utils.py - Streamlit app → Violation description: requests description
app.py - Violation description → Image labeling: gets image labels
aws_utils.py - Image labeling → AWS Rekognition: detects labels with
aws_utils.py - Violation description → AWS Bedrock: generates description with
aws_utils.py - Streamlit app → Violation classification: classifies description
app.py - Violation classification → AWS Bedrock: classifies with
aws_utils.py - Streamlit app → Violation records: saves violation
app.py - Violation records → AWS DynamoDB: writes record
aws_utils.py - Streamlit app → Owner lookup: looks up owner
app.py - Owner lookup → AWS DynamoDB: reads owner record
aws_utils.py - Streamlit app → Email notification: sends owner notice
app.py - Email notification → Gmail SMTP: sends via SMTP
email_utils.py - Amazon EC2 → Streamlit app: hosts app
README.md