kartik2112 / Silatra

This is the server-side of the SiLaTra System. This system is targetted towards the hearing and speech impaired community that use sign language for communicating with each other. But when they communicate with other people outside this community, there is a communication gap. This system is an attempt towards bridging this gap.
9 stars 7 forks source link

Segmentation Fault (core dumped) #2

Closed kartik2112 closed 6 years ago

kartik2112 commented 6 years ago

This is happening when the frame is completely filled with skin color or the frame has no skin color

kartik2112 commented 6 years ago

Most probably this is caused because of contour approxPolyDP or joining or reduction steps

kartik2112 commented 6 years ago

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