【发布时间】:2019-11-11 16:41:32
【问题描述】:
我正在尝试运行the website code to create the image.
当我运行代码时,它给了我一个错误:
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'
我不确定其背后的原因。
【问题讨论】:
-
你的图片是 32 位格式的吗?