Closed kartik2112 closed 6 years ago
Most probably this is caused because of contour approxPolyDP or joining or reduction steps
This is because the largest contour area cannot be found when there aren't any contours so the contour index was remaining -1 and an attempt to access contours[indMaxArea] resulted in this error.
This has been fixed by adding this checking and skipping the code related to contours that follows this line
This is happening when the frame is completely filled with skin color or the frame has no skin color