0

I am getting an error:

Traceback (most recent call last):
  File "d:\buh\DynamicTextReader.py", line 68, in <module>
    lmList, bboxInfo = detector.findPosition(img)
AttributeError: 'HandDetector' object has no attribute 'findPosition'

When running the program:

import cv2
from cvzone.HandTrackingModule import HandDetector
from time import sleep
import numpy as np
import cvzone
from pynput.keyboard import Controller

    lmList, bboxInfo = detector.findPosition(img)    # The Error Is In This Line
    img = drawAll(img, buttonList)

(I removed many parts of the code)

My python version is 3.9.0.

I tried to change the versions of cvzone but the error couldn't resolve.

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
  • I am unfamiliar with the libraries, but a quick observation is you import HandDetector not detector. So, do you mean ``HandDetector.findPosition```? – itprorh66 Jan 28 '23 at 14:17

0 Answers0