HandDetector | Hand and Fingertip Detecot with OpenCV | Runtime Evironment library
kandi X-RAY | HandDetector Summary
kandi X-RAY | HandDetector Summary
Hand and Fingertip Detecot with OpenCV.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of HandDetector
HandDetector Key Features
HandDetector Examples and Code Snippets
Community Discussions
Trending Discussions on HandDetector
QUESTION
I'm learning how to use opencv, but I'm running into this problem.
...ANSWER
Answered 2021-Dec-12 at 11:17Output of detector.findHands(img)
is a tuple. You should give second element of it as input to cv2.imshow()
:
QUESTION
I've seen ways of using the time.sleep() function, however that stops the rest of the code from running.
I'm making a hand recognition script and want the video output to be hindered by a certain value being printed every second.
This is my code:
...ANSWER
Answered 2021-Dec-31 at 17:21One way is to use time.time
to measure how much time has passed (will print 'hi' every 5 seconds or so, this is less precise because if some part of the loop takes more time, it may print later than expected):
QUESTION
I got a big problem at python code, my code is work correct but my laptop's RAM cant erase unused data, I used 'gc' library but it doesn't any help, this problem went appear that I change it to class mode.
my code:
...ANSWER
Answered 2021-Oct-29 at 09:25I have to remove handDtc = handDetector()
inside the while to the outside.
this line make many class object and it will full my RAM.
QUESTION
I am trying to make a ar mouse (camera vould detect your hand and than your finger vould be the mouse). But when checking which fingers are up I get an error. When making this program I followed this tutorial: https://www.youtube.com/watch?v=8gPONnGIPgw&t=332s. When doing that I made one thing different which is that I didn't make a program file called HandTrackingModule.py as he did and than import that but I just imported from cvzone.HandTrackingModule import HandDetector which shoud work the same.
This is the error:
fingers = detector.fingersUp()
in fingersUp return fingers
UnboundLocalError: local variable 'fingers' referenced before assignment
this is the code:
...ANSWER
Answered 2021-Oct-15 at 00:40Your code indentation is wrong.
QUESTION
I am trying to zoom into a picture with usage of two hands (gesture controled image zoom), but when trying to use two hands I get this error but I don't know why. When making my program I followed this tutorial: https://www.youtube.com/watch?v=VPaFV3QBsEw&t=675s. It's strange because the program worked for him.
This is the error I get:
...ANSWER
Answered 2021-Oct-16 at 11:24cvzone library keeps updating their library every time. As you can see at the beginning of the video, when he imports the cvzone package he uses cvzone version 1.5.0.
I tried your code with other versions and got an error similar to yours but with version 1.5.0 your code worked great.
you can use my answer here to change the version of your cvzone library in your project to 1.5.0.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install HandDetector
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page