Opencv Irregular Shape Detection, I am using the below code to create and draw contours.