Guest User

Untitled

a guest
May 20th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. approx_red = len(approxPolyDP(self.red.contour, 0.01 * arcLength(self.red.contour, True), True))
  2. cv2.error: C:projectsopencv-pythonopencvmodulesimgprocsrcshapedescr.cpp:237: error: (-215) count >= 0 && (depth == 5 || depth == 4) in function cv::arcLength
  3.  
  4. try:
  5. approx_red = len(approxPolyDP(self.red.contour, 0.01 * arcLength(self.red.contour, True), True))
  6. except cv2.error:
  7. approx_red = 0
  8.  
  9. OpenCV Error: Assertion failed (count >= 0 && (depth == 5 || depth == 4)) in cv::arcLength, file C:projectsopencv-pythonopencvmodulesimgprocsrcshapedescr.cpp, line 237
  10. OpenCV Error: Assertion failed (count >= 0 && (depth == 5 || depth == 4)) in cv::arcLength, file C:projectsopencv-pythonopencvmodulesimgprocsrcshapedescr.cpp, line 237
  11. OpenCV Error: Assertion failed (count >= 0 && (depth == 5 || depth == 4)) in cv::arcLength, file C:projectsopencv-pythonopencvmodulesimgprocsrcshapedescr.cpp, line 237
  12. (...)
Add Comment
Please, Sign In to add comment