sytomlly 2021-09-11 11:58 采纳率: 100%
浏览 1202
已结题

python报错cannot unpack non-iterable NoneType object求解决qwq


import cv2
from cvzone.HandTrackingModule import HandDetector

cap = cv2.VideoCapture(0)
cap.set(3, 1280)
cap.set(4, 720)

detector = HandDetector(detectionCon=0.8)

while True:
    success, img = cap.read()
    img = detector.findHands(img)
    lmList, bboxInfo = detector.findPosition(img)
    cv2.imshow("Image", img)
    cv2.waitKey(1)

lmList, bboxInfo = detector.findPosition(img)
这句报错

  • 写回答

2条回答 默认 最新

  • 关注

    detector.findPosition(img)返回一个值,但是有两个变量去接受这个,所以报错

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 9月19日
  • 已采纳回答 9月11日
  • 创建了问题 9月11日