'cvzone' has no attribute 'HandDetector'
See original GitHub issueI tried to run the below mentioned Example code. but I got an Attribute error saying
AttributeError: module ‘cvzone’ has no attribute ‘HandDetector’.
Help me to resolve this issue.
the Example code is.
import cvzone
import cv2
cap = cv2.VideoCapture(0)
cap.set(3, 1280)
cap.set(4, 720)
detector = cvzone.HandDetector(detectionCon=0.5, maxHands=1)
while True:
# Get image frame
success, img = cap.read()
# Find the hand and its landmarks
img = detector.findHands(img)
lmList, bbox = detector.findPosition(img)
# Display
cv2.imshow("Image", img)
cv2.waitKey(1)
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top Results From Across the Web
can't find findposition :AttributeError: 'HandDetector' object has ...
I did a lot of projects recently with cvzone and noticed that they recently updated the library with a critical update for their...
Read more >module 'cvzone' has no attribute 'HandTrackingModule'
hello guys i am new to opencv and was working on a project and imported cvzone lib in pycham but when i am...
Read more >Even after installing cvzone Im unable to import HandDetector ...
[Solved]-Even after installing cvzone Im unable to import HandDetector from ... AttributeError: 'module' object has no attribute 'face' error even after ...
Read more >CVZone: Easy to Run Image Processing and AI Functions
from cvzone.HandTrackingModule import HandDetector import cv2 cap = cv2. ... sbOnUploaded: Status message displayed when the image has been uploaded.
Read more >MediaPipe Hands - Google
First, we train a palm detector instead of a hand detector, ... Using a regular cross entropy loss and no decoder gives a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey its-Yogesh, what francoisschwarxentruber said is right. Try this:
from cvzone.HandTrackingModule import HandDetector import cv2
cap = cv2.VideoCapture(0) detector = HandDetector(detectionCon=0.8, maxHands=2) while True: # Get image frame success, img = cap.read() # Find the hand and its landmarks hands, img = detector.findHands(img) # with draw #hands = detector.findHands(img, draw=False) # without draw
cap.release() cv2.destroyAllWindows()
i can´t get the distance between 2 landmarks to show, any help?
from cvzone.HandTrackingModule import HandDetector import cv2
cap = cv2.VideoCapture(0) detector = HandDetector(detectionCon=0.5, maxHands= 1)
while True:
#hacer un cuadro success, img = cap.read()
#detectar las manos y trazar las rayitas hands, img = detector.findHands(img) # with draw
cap.release() cv2.destroyAllWindows()