mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
273e52ce8d
objdetect: clear stale outputs in CharucoDetector::detectDiamonds #28818 ## Summary - clear `diamondCorners`/`diamondIds` outputs at the beginning of `CharucoDetector::detectDiamonds` - prevent stale detections from previous calls when the current call has fewer than 4 markers or finds no diamonds - add a regression test that pre-fills outputs, calls `detectDiamonds` with 3 markers, and verifies outputs are empty Fixes #28783. ## Testing - built `opencv_test_objdetect` locally - ran `opencv_test_objdetect --gtest_filter=Charuco.detectDiamondsClearsOutputsWithLessThanFourMarkers` - result: PASS