AttributeError: ‘handDetector‘ object has no attribute ‘hands‘

记录3

在def __init__()中的代码处:

    def __init__(self, mode=False, maxHands=2, detectionCon=0.5,trackCon=0.5):

为Hands()中的第三个参数添加模型复杂度

def __init__(self, mode=False, maxHands=2, detectionCon=0.5, modelComplexity=1, trackCon=0.5):

猜你喜欢

转载自blog.csdn.net/gzy13477/article/details/133101668