Initially I had blank screen then I removed the underscore and comma at line 41 it worked. Thanks _, contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
Your work is awesome bro! I just created an app (built onto your app) that can play pause my media if the app sees 5 fingers. I am going to be adding more actions based on the number of fingers but for now this is exactly what I have been trying to make for a long time!
@@Ali-thechillerdude Like so that this feature can be used by deaf people and with their hand gestures the app will generate the text and would be easy for others to understand what they are trying to convey.
@@kartikeyasharma5788 oh that's a great idea! I'm unfortunately not that advanced of a programmer but I want to see this done! It's very interesting! I thought about this idea too (I bought an American Sign Language class so I'm just starting) I was looking for an app that would interpret my signs (for practice and to see if I'm doing it right) but couldn't find any :(
@@Ali-thechillerdude we are also facing so many issues in this coz all this stuff looks great from outside but as you dive deep then the reality hits you harder so yeah thats why i am here looking for some kind of solution b.d.w good luck to you for your journey. In this
when i execute your script gesture.py in my laptop , it was not opening up the webcam but my webcam is working but its not opening the webcam?? how to start the webcam , will it be opened automatically by your script ?
I used to work on this project , and my problem when I run your code is that Webcam lights turn on but nothing happens. So I checked your code , and you have some bug in your code, I fixed it. And It runs very well. Thanks a lot . Your ideas is so great, but you must check your code correctly before sharing it to everyone. Once again, Thank you very much, wish you to have another videos about python and open CV.
STEPS TO REMOVE ERROR :- 1:-TO REMOVE VEDIO CAPTURE NOT FOUND ERROR:-OPEN TASK MANAGER KILL THE JUPYTER LAB(IF RUNNING IN JUPYTER LAB) OR KILL THE PYTHON 3 PROCESS NORMALLY ;KILL=END 2:-NOW RUN THE PROGRAM AND PLACE YOUR HAND INSIDE THE BOX 3:-REMOVE YOUR BODY FROM THE FRAME IT CONFUSES IT 4:-VOILA YOUU HAVE SUCCESFULLY COPY PASTED THE PROJECT 5:- IF YOU HAVE MODULE ERROR SEARCH("PIP INSTALL MODULE NAME ") ON GOOGLE AND PASTE IT IN THE COMMAND PROMPT(ADMINISTRATOR)
This looks like great code. Have you been able to successfully run this code using PyCharm? If so, will you please explain to me how to do this? I would like to use similar hand gestures and use the output as an input to a microcontroller to control servos on a robot arm. Also, if anyone has any experience using outputs from OpenCV in Python and using them as inputs for microcontrollers, I would appreciate any resources.
That gesture has been used by cultures for millennia before it was coopted for nefarious purposes by white supremacists. Clearly the majority of the population around the world isn't going to know that and is not going to have the faintest idea of what you are talking about!! :-) Read this - www.adl.org/education/references/hate-symbols/okay-hand-gesture
@@halajr Before : cv2.imshow('mask',mask) cv2.imshow('frame',frame) except: pass After : except: pass cv2.imshow('mask', mask) cv2.imshow('frame', frame) Only this much was the change in the code and it worked for me
I got the same error and solved it by converting "_,contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)" to "contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)"
In tat mask I'm gtng white background and fingers are detected in black but it should be the reverse. could u help me with this problem? And please do tell how to create our own database for hand gestures
make it like this contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) i am using python v 3.7, before that python v 2.7, and now the frame shows
Assuming u opened the hand wide enough and your blue points are accurate, from the code from the video, we know the three vertices of the triangle (defects) we can calculate the distance from far point to start/end points. process image from left to right or right to left(x coordinate) to understand which distance corresponds to which finger. ( this only gives you estimate not accurate ) you can always average the distances from both sides blue points to make it little more accurate. If you want in cm/metres, just multiply the pixel distance to real word distance/pixel. Again assuming hand is always at the fixed distance from the camera
I had the same problem. My wall is almost skin color, and it detects my hand in black and wall as white. So I tried to put my hand against a black background (placed a black bag as the background and tried) and it worked! On a lighter colored background, skin looks darker and hence it is not able to pickup. I'm wondering if there's a way to change the way the code behaves - like use darker colors as '1' and lighter colors as '0'. I tried swapping the lower and upper skin color range and it didnt help.
Dude !! Great work and u have explained so well in such short time
Initially I had blank screen then I removed the underscore and comma at line 41 it worked. Thanks _, contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
Thanks A lot Sir
I had the same issue.
🙏🙏🙏🙏🙏
Thank you!
I had the same issue. Thank you for the comment.
In ASL, for the word "okay", you finger-spell the letters "O-K" in succession
Your work is awesome bro! I just created an app (built onto your app) that can play pause my media if the app sees 5 fingers. I am going to be adding more actions based on the number of fingers but for now this is exactly what I have been trying to make for a long time!
Bro do you have any idea how we will integrate this concept of video calling apps like zoom or google meet
@@kartikeyasharma5788 integrate how? I don't understand
@@Ali-thechillerdude Like so that this feature can be used by deaf people and with their hand gestures the app will generate the text and would be easy for others to understand what they are trying to convey.
@@kartikeyasharma5788 oh that's a great idea! I'm unfortunately not that advanced of a programmer but I want to see this done! It's very interesting! I thought about this idea too (I bought an American Sign Language class so I'm just starting) I was looking for an app that would interpret my signs (for practice and to see if I'm doing it right) but couldn't find any :(
@@Ali-thechillerdude we are also facing so many issues in this coz all this stuff looks great from outside but as you dive deep then the reality hits you harder so yeah thats why i am here looking for some kind of solution b.d.w good luck to you for your journey. In this
Fantastic work, thanks for sharing !
No error , but only webcam lights pop and stay , that's all
in my case also,
@@LovKushBrothers has anyone solved the problem ? in my case it is also the same
@@crappydoctor6683 no hand detection in macbook pro
@@progamer1196 it's working fine in windows and linux
@@crappydoctor6683 bro there?
I'm in a hurry to talk with you
when i execute your script gesture.py in my laptop , it was not opening up the webcam but my webcam is working but its not opening the webcam?? how to start the webcam , will it be opened automatically by your script ?
yes for me too
shukriya paaji tussi great ho
major project baacha liye tussi..!!
thandd paa!!!
Hi Sadaival! I'm very intersted in your program. I have copied the file, but when I run the program nothing happen. Any suggestions?
Very interesting opencv video with great hand gesture information. Thanks.
I used to work on this project , and my problem when I run your code is that Webcam lights turn on but nothing happens. So I checked your code , and you have some bug in your code, I fixed it. And It runs very well. Thanks a lot . Your ideas is so great, but you must check your code correctly before sharing it to everyone. Once again, Thank you very much, wish you to have another videos about python and open CV.
could you share how you fixed the code please? it just turns the light of the camera but doesnt show anything. thx
can you please tell us the corrections
The answer is in another comment.
will u please share us how u have modified the code....I'm working on this project..plz let me know..the modification
I got the same issue. so I tried something. opencv4 does not return image, so you can try after removing the image from cv2.findContours
My camera is not opening...
STEPS TO REMOVE ERROR :-
1:-TO REMOVE VEDIO CAPTURE NOT FOUND ERROR:-OPEN TASK MANAGER KILL THE JUPYTER LAB(IF RUNNING IN JUPYTER LAB) OR KILL THE PYTHON 3 PROCESS NORMALLY ;KILL=END
2:-NOW RUN THE PROGRAM AND PLACE YOUR HAND INSIDE THE BOX
3:-REMOVE YOUR BODY FROM THE FRAME IT CONFUSES IT
4:-VOILA YOUU HAVE SUCCESFULLY COPY PASTED THE PROJECT
5:- IF YOU HAVE MODULE ERROR SEARCH("PIP INSTALL MODULE NAME ") ON GOOGLE AND PASTE IT IN THE COMMAND PROMPT(ADMINISTRATOR)
This looks like great code. Have you been able to successfully run this code using PyCharm? If so, will you please explain to me how to do this? I would like to use similar hand gestures and use the output as an input to a microcontroller to control servos on a robot arm. Also, if anyone has any experience using outputs from OpenCV in Python and using them as inputs for microcontrollers, I would appreciate any resources.
did you manage to solve this problem?
when i executed the above code..just my camera is invoked but im no getting any window to capture image...help me to sort out this...
I am also facing same problem
its not working for me. camera light is on, but nothing happens. can you please help me.
Your code is not running when I remove underscore from contours it starts spamming multiple windows with multiple webcam view. What to do please help.
Error so ho rha hai124 line me except
Way you are not making more videos. Plz make more they are easy to understand with you
0:19 YOU DID NOT JUST DO THAT
WOW how did you spot that!
That gesture has been used by cultures for millennia before it was coopted for nefarious purposes by white supremacists. Clearly the majority of the population around the world isn't going to know that and is not going to have the faintest idea of what you are talking about!! :-)
Read this - www.adl.org/education/references/hate-symbols/okay-hand-gesture
@@sridharrajagopal thanks both of you 😭😭😂😂😂 it was good to know
my output does not stay on screen ... it keeps flickering... please help
Hey just to let you know the sign for the number 3 is not correct in terms of ASL. You signed the number 6 and the number 9, but not 3. Just fyi
Excellent work. Keep it up
Camera is not showing
I have run your code but it is too much noise, please show me how to fix it
Amazing work dude ....
always showing no module name cv2 found while running code inspite its installed what should i doo...
it doesnt work even importing the cv2 library there's not error but nothing happens
just amazing work
I have used the same code and tried. But the frame and mask files are not opening. Hence, I can't get the output. How to open it
Cam is on but the frame and mask is not visible
program is running but frame and mask is not working
webcam light is on
same happening to me
The same thing happening with me
@@rahulkoli1491 same happening
@@rahulkoli1491 hey rahul, what did you changed to get the solution?
@@halajr
Before : cv2.imshow('mask',mask)
cv2.imshow('frame',frame)
except:
pass
After : except:
pass
cv2.imshow('mask', mask)
cv2.imshow('frame', frame)
Only this much was the change in the code and it worked for me
I am not able to see the screen after opening camera
I got the same error and solved it by converting "_,contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)" to "contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)"
Thank you bro
@@yashlanjewar9971 Hi bro
@@nabilmiri128 Hi bro
In tat mask I'm gtng white background and fingers are detected in black but it should be the reverse. could u help me with this problem?
And please do tell how to create our own database for hand gestures
Sir actually the frame and mask is not showing
Which algorithm you have used?
now camera is opening but that green rectangle is not displaying
same problem
can we do this for both the hands sir ??
sir please provide which algorithm are you used and which methodlogy are uesd in this program.
sir please provide me the link .
bhai isme cv2 install nahi dikha raha hai spyder mai
kya karu ?
Good job!
sorry please which dataset did you use to train your model
Thanks for the tutorial, but I want to know what algorithm that you used in this project?
the given code is running successfully but its not showing another window for gestures recognition. NEED HELP...!
Did you figure it out?
hello why is the camera not showing everytime i run it, it works but it doesn't show the camera plz help im on mac
How do I find the coordinates of the finger tips (aka the vertices of the green convex contour) ?
Nice video!
Code is working but it is not detecting fingers correctly! What should I do?
Can anyone help me back end ,front end database , used for this project?
Excellent work, How do we combine these gestures to control an application like a game or do some basic tasks.
Sorry if late, but for basic tasks you can use the python os library to very easily do things like commands
@@wrenoryx How about we integrate it with video calling apps so that deaf people can have full benefits of it? Any idea how to do such thing?
yh run krny k bad bht time ley rha h image k lye kia kroun? plz guide
could you please help to recognize gestures and motion of hands?
merci le 100 de la veine tu carry notre projet d'ISN
Well remove the try except:pass and you will see the error
Hi bro I want a help in this project can you help me in this mine is also same project I want to add camera to my project so can u help me 🤔 reply me
How can I make serial communication with this code and with arduino?
Thank you evry much sir
Hi can u tell what is the name of algorithm used?
I run the code but the windows don't appear
which math library did you use?
And which tools you used here pls that also provide me
anyone here knows how to do it for all 10 fingers?
Nice work
Hello, Can you please tell me what dataset have you used to train your model ?
Is there a possibility to get the width of fingers?!
Hello,What is the resolution of your camera?
how can I find the contour for any gesture??
Do you have fixed rectangle where hand should be positioned ?
Alex Polymath I think, yes.
great work
How can I give orders with the gestures?
Did you refer any paper for this approach? If yes, can you share that paper?
sira 🔥🔥
How to fix
How come the window frame does not appear at all. Please shed some light
I think it failes here, _, contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
but not sure how to fix it
make it like this
contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
i am using python v 3.7, before that python v 2.7, and now the frame shows
^
now it show error "IndentationError: unindent does not match any outer indentation level
"
will the same code run for canopy !
Amazing!
Can I use this with a robot simulation software like Gazebo to move a robotic hand?
Anything that uses skin colour using it would be waste of time for any software please tell me if I am wrong..
what is cv2.flip here?
Windows is not comming
not work in pycharm
its working fine. opencv4 does not return image, so you can try after removing image from cv2.findContours
.
bro i use your source code but it is not opening the web cam window? can u please solve this
remove underscore in line number 41
contours,hierarchy= cv2.findContours(mask,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
the camera application is not getting opened!. Anyone know the solution
same to you
what is area ratio and how to find it ?
Hi I think this will display when Running the code from the line display area
My bad I think u should add print area ratio I know it’s been 1 year 😂 it’s fine I can try still
How to contact you private ? need discuss about improvements with you. Paid work. Thx
why?
nhi chal rha cv2.waitkey(5)ME error aa rhi h
when i try your code, it falls under exception block. please help me
opencv4 does not return image, so you can try after removing image from cv2.findContours
File "d:\Python\Hand-Gestures-master\Hand-Gestures-master\gesture.py", line 42, in
_,contours,hierarchy= cv2.findContours(mask,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)
[ WARN:1] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-wvn_it83\opencv\modules\videoio\src\cap_msmf.cpp (434) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
how to close the camera screen ?
destroy all windows
Hello, would u be interested to do a short project for us.. please contact me if you would want to discuss further
Which python version are you using?
He uses 3.6
plz share me the dataset
bro code is excute but mask and frame not opening (camera light is just on )
can any one resolve my problem
getting same problem
follow these instructions
www.instructables.com/id/Raspberry-Pi-Hand-Detection-Finger-Counting-Based-/
same problem bro
How to code this in Java + OpenCV????
Java and open cv are two different languages. Learn python
pls send gesture images
Are you hard coding the position of the hand?
I went through the code and found out that your co-ordinates for rectangle around hand are hard coded.
@@gowtamsingulur5909 yeah it's hard coded
@@sadaivalsingh1550 Okay, Nice work.
can you help me in getting the size of the finger I will pay you if needed
Assuming u opened the hand wide enough and your blue points are accurate, from the code from the video, we know the three vertices of the triangle (defects) we can calculate the distance from far point to start/end points. process image from left to right or right to left(x coordinate) to understand which distance corresponds to which finger. ( this only gives you estimate not accurate ) you can always average the distances from both sides blue points to make it little more accurate.
If you want in cm/metres, just multiply the pixel distance to real word distance/pixel. Again assuming hand is always at the fixed distance from the camera
the code ran without any error, web cam detected but frame did not open. please help
check if you are using python 2.x version , if so then delete "_,"in line 42(find contours)
still the same problem.....what to do now?
still the same problem.
@@sadaivalsingh1550 still the same problem
make sure the python version is the latest one, i had fixed this problem
camera is not opening
Please refer this github.com/hemusqwerty/Hand_Gesture_Recognition repo.
hey sadaival nice code..
the code is working but i think it is not recognising my skin color. I amd trying to fix it can u help...
Palash Bhusari you wil have to change the upper and lower skin value that suit your surrounding.changing the brightness of screen can also help
thanks ill try this updates to the code. But i am not able to understand how changing the brightness of screen will help can u explain.
brightness of screen alters the 'value' part in hsv.
Hey , the code is working fine , but the visual didt came up
I had the same problem. My wall is almost skin color, and it detects my hand in black and wall as white. So I tried to put my hand against a black background (placed a black bag as the background and tried) and it worked! On a lighter colored background, skin looks darker and hence it is not able to pickup. I'm wondering if there's a way to change the way the code behaves - like use darker colors as '1' and lighter colors as '0'. I tried swapping the lower and upper skin color range and it didnt help.
How can I message you?