I am trying to run the website code to create the image.
When I run the code it gives me an error:
cv2.error: OpenCV(4.1.0)
/Users/travis/build/skvark/opencv-python/opencv/modules/imgproc/src/shapedescr.cpp:274:
error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S)
in function 'contourArea'
I am not sure about the reason behind it.