safesight-edge/include/frame
sladro aaa794fe10 feat: Enhance preprocessing and detection with letterbox resizing and transformation metadata
- Added `resize_mode` option to `preprocess_node` for handling image resizing strategies: stretch, keep ratio, and letterbox.
- Implemented `BuildLetterbox` function to create letterbox resized frames while maintaining aspect ratio.
- Introduced `FrameTransformMeta` structure to store transformation metadata for frames, including scaling and padding information.
- Updated detection coordinate calculations in `ai_yolo_node` to utilize transformation metadata for accurate bounding box adjustments.
- Enhanced bounding box mapping in `osd_node` to account for potential discrepancies between detection and frame sizes.
- Refactored image processing logic to support new resizing modes and ensure compatibility with existing formats.
2026-02-27 20:05:20 +08:00
..
frame.h feat: Enhance preprocessing and detection with letterbox resizing and transformation metadata 2026-02-27 20:05:20 +08:00