Skip to content

Object detection migration to Yolo v5 (ONNX)#1075

Open
jonoomph wants to merge 5 commits into
developfrom
object-detection-v2
Open

Object detection migration to Yolo v5 (ONNX)#1075
jonoomph wants to merge 5 commits into
developfrom
object-detection-v2

Conversation

@jonoomph
Copy link
Copy Markdown
Member

@jonoomph jonoomph commented May 11, 2026

Newer versions of Yolo require updated OpenCV on ONNX layers, that our build servers do not yet have

jonoomph added 3 commits May 10, 2026 14:34
- Remove unused tracked-object rotation property from JSON, properties, and box values
- Add per-object Draw Text support alongside Draw Box
- Use deterministic class colors for Object Detector instead of random seeded colors
- Scale tracked-object stroke widths based on preview raster size
- Keep Object Detector text rendering gated by both global and per-object text settings
- Replace YOLOv3 Darknet loading with YOLOv5 ONNX model loading and validation.
- Parse YOLOv5 outputs with top class candidates for smoother labels.
- Improve SORT tracking with class-score smoothing and stricter geometry gates.
- Prevent active tracks from hopping to adjacent objects or tiny nested detections.
- Keep object ids stable through protobuf load/save and add an object-detection debug example.
- Add class-based default colors and matching border/background defaults.
- Add All Objects pseudo-selection support for tracked-object properties.
- Honor tracked-object corner radius when using tracker/object detector masks.
- Add regression tests for tracking stability, all-object styling, masks, and keyframes.
@jonoomph
Copy link
Copy Markdown
Member Author

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 73.60335% with 189 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.23%. Comparing base (0751153) to head (14c63f3).

Files with missing lines Patch % Lines
src/CVObjectDetection.cpp 0.00% 133 Missing ⚠️
src/effects/ObjectDetection.cpp 57.35% 29 Missing ⚠️
src/sort_filter/sort.cpp 77.90% 19 Missing ⚠️
src/sort_filter/KalmanTracker.cpp 77.27% 5 Missing ⚠️
src/EffectBase.cpp 96.42% 1 Missing ⚠️
src/effects/Bars.cpp 95.00% 1 Missing ⚠️
tests/Saturation.cpp 97.61% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1075      +/-   ##
===========================================
+ Coverage    70.62%   72.23%   +1.61%     
===========================================
  Files          242      245       +3     
  Lines        29537    30103     +566     
===========================================
+ Hits         20860    21746     +886     
+ Misses        8677     8357     -320     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

jonoomph added 2 commits May 12, 2026 14:22
- Respect QImage::bytesPerLine() in saturation and mask blending
- Preserve child effect IDs when inheriting parent effect changes
- Propagate parent updates correctly through nested child effects
- Add regression tests for padded image stride and parent effect inheritance
- Clamp and validate Blur, Bars, and Pixelate margin-derived regions
- Add regression coverage for collapsed/out-of-range margin cases
- Verify focused Bars, Blur, and Pixelate tests pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant