You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using AForge to detect rectangles on image and the method shapeChecker.IsQuadrilateral throws System.ArgumentOutOfRangeException.
I tracked the execution and it looks like the exception happens in method FindQuadrilateralCorners of class PointsCloud.
Specifically at this part of the code:
// sort other points in counter clockwise orderfloatk1=(corners[1].X!=corners[0].X)?((float)(corners[1].Y-corners[0].Y)/(corners[1].X-corners[0].X)):((corners[1].Y>corners[0].Y)?float.PositiveInfinity:float.NegativeInfinity);floatk2=(corners[2].X!=corners[0].X)?((float)(corners[2].Y-corners[0].Y)/(corners[2].X-corners[0].X)):((corners[2].Y>corners[0].Y)?float.PositiveInfinity:float.NegativeInfinity);
where it looks like the corners array has only two elements.
As in photo:
The text was updated successfully, but these errors were encountered:
I am using AForge to detect rectangles on image and the method shapeChecker.IsQuadrilateral throws System.ArgumentOutOfRangeException.
I tracked the execution and it looks like the exception happens in method FindQuadrilateralCorners of class PointsCloud.
Specifically at this part of the code:
where it looks like the corners array has only two elements.
As in photo:
The text was updated successfully, but these errors were encountered: