From 4c8c215d593d524fd3092c1c3014bb5a535c4009 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Fri, 12 Jun 2026 17:09:22 +0200 Subject: [PATCH] Forward port MCC fix Somehow, https://github.com/opencv/opencv_contrib/pull/3939 was not forward ported. --- modules/objdetect/src/mcc/bound_min.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/objdetect/src/mcc/bound_min.cpp b/modules/objdetect/src/mcc/bound_min.cpp index e26579fb31..b45b7c0759 100644 --- a/modules/objdetect/src/mcc/bound_min.cpp +++ b/modules/objdetect/src/mcc/bound_min.cpp @@ -167,7 +167,7 @@ void CBoundMin::calculate() j = (i + 1) % 4; Vcart = lines[i].cross(lines[j]); if (fabs(Vcart.z) <= 1e-6){ - continue; + return; } Vhom.x = Vcart.x / Vcart.z; Vhom.y = Vcart.y / Vcart.z;