How joseppii/feartrackerpi works
FEARTrackerPi is a C++ visual object tracker targeting Raspberry Pi 5. Its primary workflow is a command-line video run: initialize the tracker and its template/search models, select an initial bounding box, extract template features, repeatedly crop search regions and infer locations, then visualize and optionally write tracked frames. The custom Pi5 image, drawing, and video modules represent optimization capabilities in the repository, but the README describes several as planned. Edges follow excerpts or README statements; unsampled integrations are omitted or marked unverified.
Main entry points: fear_tracker.cpp FEAR tracker · main.cpp CLI application · onnx_inference.cpp ONNX inference · ncnn_inference.cpp NCNN inference
Components 17
Tracking application
- CLI application
src/main.cpp
Tracking pipeline
- FEAR tracker
src/fear_tracker.cpp - Tracking state
src/tracking_state.cpp - Image processor
src/image_processor.cpp - Inference results
src/inference_types.h - ONNX inference
src/onnx_inference.cpp - NCNN inference
src/ncnn_inference.cpp - Model files
models
Pi5 runtime
- FFmpeg video I/O
src/ffmpeg_video.cpp - Pi5 image
src/pi5_image.cpp - Pi5 image operations
src/pi5_image_ops.cpp - Pi5 drawing
src/pi5_drawing.cpp - Pi5 geometry types
src/pi5_types.h
Monitoring
- Performance monitor
src/performance_monitor.cpp
Other components
- Video operator
- Input video
- Tracked video
Connections 18
- Video operator → CLI application: configures run
README.md - Input video → CLI application: provides frames
README.md - CLI application → FEAR tracker: initializes and tracks
src/main.cpp - FEAR tracker → Tracking state: initializes state
src/fear_tracker.cpp - FEAR tracker → Image processor: extracts crops
src/fear_tracker.cpp - FEAR tracker → ONNX inference: runs selected backend
src/fear_tracker.cpp - FEAR tracker → NCNN inference: runs selected backend
src/fear_tracker.cpp - ONNX inference → Model files: loads models
README.md - NCNN inference → Model files: loads models
README.md - ONNX inference → Inference results: returns maps
- NCNN inference → Inference results: returns maps
- Image processor → Inference results: postprocesses maps
src/image_processor.cpp - FEAR tracker → Performance monitor: enables profiling
- CLI application → Tracked video: writes annotated frames
README.md - FFmpeg video I/O → Input video: decodes video
- Pi5 image operations → Pi5 image: operates on images
- Pi5 drawing → Pi5 image: draws overlays
- Pi5 drawing → Pi5 geometry types: uses geometry types