mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 13:16:32 -06:00
Problem cv::contourArea and cv::arcLength throw an assertion for an empty std::vector contour, because getMat() drops the vector's type before the depth check. Fix Return 0 before calling getMat() when the input is empty.