How yikhow/footfallcam-staff-detection works
This repository is a notebook-driven staff-tag detection workflow for overhead fisheye video. Users extract and annotate sampled frames, prepare a time-ordered training set, fine-tune YOLOv8n, then upload video to a Gradio inference interface. Inference combines tag detections with hysteresis-based temporal filtering to produce annotated video, frame-level detections, and XY trajectories. The README documents these stages and outputs, but the notebooks were not sampled here, so the graph reflects documented relationships rather than inspected implementation details.
Components 15
Data preparation
- Sample video
sample.mp4 - Extract and annotate
step1_extract_and_annotate.ipynb - Labeled frames
- Prepare dataset
step2_data_preparation.ipynb - Dataset config
dataset/data.yaml
Model training
- Fine-tune and evaluate
step3_finetune.ipynb - YOLOv8n weights
Video inference
- Inference GUI
step4_inference_gui.ipynb - Staff-tag detector
- Hysteresis filter
step4_inference_gui.ipynb - XY trajectory
step4_inference_gui.ipynb
Results
- Annotated video
- Detection log
- Trajectory plot
Other components
- User
Connections 17
- User → Sample video: provides video
README.md - Sample video → Extract and annotate: samples frames
README.md - Extract and annotate → Labeled frames: annotates frames
README.md - Labeled frames → Prepare dataset: prepares data
README.md - Prepare dataset → Dataset config: configures dataset
README.md - Prepare dataset → Fine-tune and evaluate: supplies split data
README.md - Dataset config → Fine-tune and evaluate: configures training
README.md - Fine-tune and evaluate → YOLOv8n weights: saves weights
README.md - User → Inference GUI: uploads video
README.md - Inference GUI → YOLOv8n weights: loads model
README.md - Inference GUI → Staff-tag detector: runs detection
README.md - Inference GUI → Hysteresis filter: filters detections
README.md - Hysteresis filter → XY trajectory: tracks coordinates
README.md - Inference GUI → Annotated video: outputs video
README.md - Inference GUI → Detection log: logs detections
README.md - Inference GUI → XY trajectory: produces coordinates
README.md - XY trajectory → Trajectory plot: plots trajectory
README.md