How spr-algorithm/spr_vision_tutorial_27 works
This repository is a RoboMaster vision-algorithm training curriculum, progressing from C++ tooling and a vector-library exercise through OpenCV detection and camera abstractions to a planned ROS2 auto-aim system. The README documents the learner’s route and capstone data flow; sampled code also shows a YOLO-based armor detector and Hikrobot SDK headers. Stage-three algorithms and the complete capstone are curriculum goals, not implemented runtime components in the shown tree.
Main entry points: yolov5.cpp YOLO detector · tutotial_2.md Vision and OOP · homework_2.md Camera exercise · homework_3.md PnP pose solve
Components 20
Training stages
- C++ foundations
tutorial_1/tutorial_1.md - Vector exercise
tutorial_1/homework_1.md - Vision and OOP
tutorial_2/tutotial_2.md - ROS2 and aiming
tutorial_3/tutorial_3.md - ROS2 exercise
tutorial_3/homework_3.md
Vision exercises
- Camera exercise
tutorial_2/homework_2.md - OpenCV example
tutorial_2/example/opencv - Hikrobot SDK
tutorial_2/homework_2/io/hikrobot/include/MvCameraControl.h
Detection internals
- Armor model
tutorial_2/homework_2/tasks/armor.hpp - YOLO detector
tutorial_2/homework_2/tasks/yolos/yolov5.cpp - Detector API
tutorial_2/homework_2/tasks/yolo.cpp - Image tools
tutorial_2/homework_2/tools/img_tools.cpp - Logging
tutorial_2/homework_2/tools/logger.cpp
Capstone system
- Armor recognition
tutorial_3/homework_3.md - PnP pose solve
tutorial_3/homework_3.md - Model and EKF
tutorial_3/homework_3.md - Ballistic solve
tutorial_3/homework_3.md - Daedalus simulator
- Gimbal command
Other components
- Trainee
Connections 19
- Trainee → C++ foundations: starts with
Readme.md - C++ foundations → Vector exercise: assigns
Readme.md - Vector exercise → Vision and OOP: continues to
Readme.md - Vision and OOP → Camera exercise: assigns
Readme.md - Vision and OOP → OpenCV example: includes
Readme.md - Camera exercise → Hikrobot SDK: covers camera APIs
Readme.md - Detector API → YOLO detector: dispatches to
tutorial_2/homework_2/tasks/yolo.cpp - YOLO detector → Armor model: creates detections
tutorial_2/homework_2/tasks/yolos/yolov5.cpp - YOLO detector → Image tools: draws with
tutorial_2/homework_2/tasks/yolos/yolov5.cpp - YOLO detector → Logging: logs with
tutorial_2/homework_2/tasks/yolos/yolov5.cpp - Camera exercise → ROS2 and aiming: prepares for
Readme.md - ROS2 and aiming → ROS2 exercise: assigns
Readme.md - ROS2 exercise → Armor recognition: builds
Readme.md - Armor recognition → PnP pose solve: provides corners
Readme.md - Daedalus simulator → PnP pose solve: provides camera data
Readme.md - PnP pose solve → Model and EKF: provides pose
Readme.md - Model and EKF → Ballistic solve: provides prediction
Readme.md - Ballistic solve → Gimbal command: publishes command
Readme.md - Gimbal command → Daedalus simulator: controls
Readme.md