如何在不同的OpenCV版本中使用`cv2.findContours`? [英] How to use `cv2.findContours` in different OpenCV versions?
本文介绍了如何在不同的OpenCV版本中使用`cv2.findContours`?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将OpenCV与Python配合使用,以便检测来自Raspberry Pi摄像机的实时视频源中的正方形.但是,下面的代码中的cv2.GaussianBlur
和cv2.Canny
函数导致以下错误:"TypeError:numpy.ndarray'对象不可调用"..
I am trying to use OpenCV with Python in order to detect squares in a live video feed from a Raspberry Pi camera. However, the cv2.GaussianBlur
and cv2.Canny
functions in the code below are causing the following error: "TypeError: numpy.ndarray' object is not callable".
我似乎无法解决该错误.任何帮助表示赞赏.
I cannot seem to resolve the error. Any help is appreciated.
查看全文