WangLaoShi / HandRead

基于OpenCV的手势识别完整项目
32 stars 10 forks source link

更本跑步起来 #1

Open wisepmlin opened 2 years ago

wisepmlin commented 2 years ago

Traceback (most recent call last): File "/Users/linxiaobin/Desktop/HandRead-master/myGUI.py", line 142, in show_camera roi, res, ret, self.fourier_result, self.efd_result = pic.binaryMask(frame, x0, y0, width, height) File "/Users/linxiaobin/Desktop/HandRead-master/picture.py", line 26, in binaryMask ret, fourier_result = fd.fourierDesciptor(res) File "/Users/linxiaobin/Desktop/HandRead-master/fourierDescriptor.py", line 14, in fourierDesciptor contour = find_contours(Laplacian)#提取轮廓点坐标 File "/Users/linxiaobin/Desktop/HandRead-master/fourierDescriptor.py", line 31, in find_contours contour = sorted(contour, key = cv2.contourArea, reverse=False)#对一系列轮廓点坐标按它们围成的区域面积进行排序 cv2.error: OpenCV(4.6.0) /Users/runner/work/opencv-python/opencv-python/opencv/modules/imgproc/src/shapedescr.cpp:315: error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function 'contourArea'

Sunny-Xian commented 1 year ago

后来解决了吗?

the-lane commented 1 year ago

请问后面解决了吗,我也一直有这个问题,不知道怎么解决