First time here? Check out the FAQ!
answered 2020-03-27 11:12:58 -0600
The problem was contours[i].rows() * detectorParameters.get_polygonalApproxAccuracyRate(). If I set it to a fixed value like 3, it works.
contours[i].rows() * detectorParameters.get_polygonalApproxAccuracyRate()