How teechinyean/degree_final_year_project works
Green Point combines a recycling station with a PHP user portal and admin console. The principal workflow is: a user starts detection, the station observes camera frames and weight, AI identifies items, and the web application records results that users can review and redeem against rewards. The portal also supports accounts and contact messages; admins manage users, item types, stations, messages, history, reports, and live video. The README documents the hardware/model workflow, but sampled code does not establish every station-to-PHP exchange, so uncertain links are omitted.
Main entry points: main_system.py Station runtime · admin_video_server.py Admin video relay · index.php Portal and contact · start_detect_setup.php Detection setup
Components 22
Detection station
- Station runtime
main_system.py - Camera and weight
main_system.py - AI inference
main_system.py - Station registration
setup.py - Admin video relay
admin_video_server.py
User portal
- Portal and contact
Front-end/index.php - Detection setup
Front-end/start_detect_setup.php - Detection processing
Front-end/process_detection.php - Detection results
Front-end/detection_result.php - User dashboard
Front-end/dashboard.php - Rewards redemption
Front-end/redeem_rewards.php - User accounts
Front-end/register.php
Admin console
- Admin reports
Admin/index.php - Admin live view
Admin/live_view.php - Admin management
Admin/manage_users.php - Recycle history
Admin/history.php - PDF reports
Admin/generate_pdf.php
Persistence and services
- MySQL database
- Video relay service
Other components
- Recycling user
- Station PC
- Administrator
Connections 25
- Recycling user → Portal and contact: visits
- Recycling user → Detection setup: starts detection
- Detection setup → Station runtime: initiates session
- Station PC → Station runtime: runs
- Station runtime → Camera and weight: captures frames and weight
- Station runtime → AI inference: dispatches frames
- Recycling user → Detection results: reviews
- Recycling user → User dashboard: views activity
- Recycling user → Rewards redemption: redeems points
- Administrator → Admin reports: views reports
- Administrator → Admin management: manages records
- Administrator → Recycle history: reviews history
- Administrator → PDF reports: requests report
- Administrator → Admin live view: views video
- Admin live view → Admin video relay: receives stream
- Admin video relay → Video relay service: relays video
- Station registration → Station runtime: configures station
- Portal and contact → MySQL database: reads and writes messages
- Admin reports → MySQL database: reads recycle totals
- Admin management → MySQL database: manages records
- Recycle history → MySQL database: reads history
- Detection processing → MySQL database: records detection
- User dashboard → MySQL database: reads activity
- Rewards redemption → MySQL database: updates rewards
- User accounts → MySQL database: stores account