5 Commits

Author SHA1 Message Date
ChenYouYuan
084e035a58 fix(armor_yolo_detect): pass full image to correctCorners for ROI detection
In processROIs, armor coordinates are converted to global image
coordinates before calling correctCorners. However, the function was
incorrectly receiving roi_gray (ROI local image) instead of the full
input image, causing coordinate system mismatch in findSymmetryAxis.

This fixes corner refinement accuracy when using fitLine-based light
detection in ROI-cached detection modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 22:24:04 +08:00
MobKBK
02dfab469e docs: update armor_yolo_detect params.yaml with new config options
Add new parameters:
- detector_mode: detection mode selection (0=sync, 1=roi_cache)
- roi_update_interval: YOLO update interval for roi_cache mode
- roi_expand_pixel: ROI expansion pixels
- binary_thres: binary threshold for light detection
- light and armor matching params from armor_detector

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 21:42:18 +08:00
MobKBK
02ceddee95 feat(armor_yolo_detect): add detector mode support with ROI cache
- Add detector_mode parameter for mode selection:
  - HYBRID_SYNC (0): YOLO runs every frame (original behavior)
  - HYBRID_ROI_CACHE (1): YOLO runs every N frames, detection every frame
- Add roi_update_interval parameter (default 5) for ROI cache mode
- Add detector_mode.hpp for mode definitions
- Add AsyncDetector class skeleton for future async mode
- Add debug ROI visualization (blue rectangles)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 18:22:32 +08:00
MobKBK
46bf3c9b52 feat(armor_yolo_detect): hybrid detection with YOLO ROI + traditional vision refinement
- Use YOLO to detect armor ROI regions instead of full image
- Expand ROI by configurable pixels (default 75) for light detection
- Apply traditional binary + light detection within ROI
- Keep YOLO's number classification result
- Use LightCornerCorrector for corner refinement
- Add debug visualization for ROI regions (blue rectangles)
- Compatible input/output with armor_detector node

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 07:27:01 +08:00
ChenYouYuan
52257cf15c init 2026-03-23 06:58:09 +08:00