Section 7: Evaluating the Model and Analysing Errors
- What mAP50, mAP50-95, precision and recall mean for the business
- Read the confusion matrix and PR curve
- Review missed and false detections to find the cause
- Lab: improve the data, train a second round and compare
Section 8: Workshop: Defect Detection
- Choose between detection, segmentation and classification for QC
- Handle small defects with high-resolution images and image tiling
- Set the threshold by weighing the cost of missed defects against rejecting good parts
- Lab: a pass or fail system that saves image evidence
Section 9: Lab: People Counting with Object Tracking
- Object tracking with ByteTrack and BoT-SORT in Ultralytics
- Count people crossing a line and people inside a defined zone
- Deal with occlusion, camera angle and double counting
- Lab: count people entering and leaving a store video and summarise by hour
Section 10: Exporting and Running on Site Hardware
- Export to ONNX, OpenVINO or TensorRT to suit the hardware
- Balance speed and accuracy through model size and image resolution
- Run on the CPU of a mini PC or on an edge AI board
- Lab: measure speed before and after export on your own laptop
Section 11: Connecting Cameras and Alerts
- Read frames from a webcam, a video file or an IP camera over RTSP with OpenCV
- Send results to a dashboard, a CSV file or alerts through LINE or email
- Blur faces, keep only counts and set image retention periods in line with PDPA
- Look after the model in use: collect new images and retrain when the site changes
Section 12: Workshop: Capstone Vision Project
- Pick your own problem or use the prepared dataset
- Label, train and evaluate until the model meets the target you set
- Demonstrate it on real images or video
- Present the work and wrap up with a checklist before installing on site