Advance Gesture Volume Control [Part 2] | OpenCV Python | Computer Vision
HTML-код
- Опубликовано: 28 апр 2021
- In this video will create an Advance Gesture Volume Controller using Computer vision. This is the second part of the gesture volume control project. Here we are going to make the system smoother and use the pinky finger to set the final volume. We will also add some filtrations to make it more stable and usable in real-world applications.
🚀🚀 My Urdu/Hindi AI RUclips Channel 🚀🚀
/ @murtazahassan01
Download Code:
www.computervision.zone/cours...
Premium Courses:
✔️ Computer Vision Game Development Course:
bit.ly/3ttLZ2s
✔️ Computer Vision with Arduino Course:
bit.ly/3wzLB4m
✔️ Advanced Drone Programming Course:
bit.ly/3qs3v5g
✔️ Learn to Build Computer Vision Mobile Apps:
bit.ly/3uioY1J
✔️ Jetson Nano Premium Course:
bit.ly/3L8uIlF
⚙️⚙️⚙️--My Gear - ⚙️⚙️⚙️
👉 Complete Gear 💈: www.computervision.zone/tech-...
👉 My PC Specs 🖥️: www.computervision.zone/tech-...
👉 My Video Shooting Gear📽️ : www.computervision.zone/tech-...
👉 My Laptops 💻: www.computervision.zone/tech-...
👉 Educational Products🧑🎓: www.computervision.zone/tech-...
👉 RUclips Starter Kit 🔴: www.computervision.zone/tech-...
Follow Me:
TikTok: bit.ly/3Vo76OQ
Facebook Group: bit.ly/3irDcb7
Discord: bit.ly/3JvyxAM
Facebook Page: bit.ly/3IvpU7W
Instagram : bit.ly/3NdGME3
Website: bit.ly/3ICFTS0
Github: bit.ly/3woU6PS
#ComputerVision
#OpenCV
#CVZone
I love what you are creating. Thank you for all of your videos-tutorials..!!
I used a version of your code to do some hand detection and then shouted you out on my video. Then I took it a step further and used the landmarks to detect my fist. Thank you so much for the clear explanations.
Looks great I hope at some point you train it to train and merge the new data with the current data so it gets smarter automatically.
with the new findDistance function I made a new fingersUp function that is based on the distance between the tips and the 0 point in relation to the tip-2 and the 0 point so it works regardless of the orientation of the Hand
great video btw
Thank you for your video!
Cool tutorials! Got me to finally try some computer vision stuff.
Just figured that thumb part of fingersUp is dependent on using a certain hand...
My solution for people in need:
# Thumb
# distance of tip to wrist vs root to wrist
tip2wristX = abs(self.lmList[self.tipIds[0]][1] - self.lmList[0][1])
root2wristX = abs(self.lmList[2][1] - self.lmList[0][1])
if tip2wristX - root2wristX > 0:
fingers.append(1)
else:
fingers.append(0)
Thank you, Keep going!.
You are the OpenCV God bro..
Very good video! Thank you
I love it very nice tutorial sir
Great work 👍
Can you do feature detection and texture detection of an object in real time moving object
Is it a god, is it a coder? Oh wait, its murtazas workshop, the legend
super
GREAT WORK
really great project 👍👍 , I have been following you for some time. Can you please tell me or make a video on how we can make these projects more presentable like a application or web app.
By far the best channel on youtube to learn opencv
You are an absolute legend.
Murtaza's Workshop - Robotics and AI
NICEEEEE
Yes I learned New
this literally is the first video I have seen with 0 dislikes ever in youtube
true good content indeed
Am i the only one whoo noticed that you can move your pinky without moving your ring finger. Great video!
can we do this to like show some hand gestures or sign to activate and deactivate volume changing mode
Is he using a different hand module from his previous one I don't remember building something for fingers up in the hand module video before?
is there a way to integrate this file with the computer itself? , so you don't need to run the application selectively to change volume via hand control, so the videocapture doesn't need to show up either
Hi, I wonder, could be installed mediapipe library in raspberry pi?. Thanks for the great video.
I can be, but its quiet slow.
this man doesn't get enough of it
Can we create using tenserflow
I am getting cvtcolor source empty error for this advanced one..The basic version works fine....Also in the handtracking module, the success variable "success, img = cap.read()" is not accessed by pylance.Somebody pls help me with it.
you should give the whole error... Only them can someone help. But its been more than a month so you probably don't need it anymore...
@@rishabhrawat7856 Pylint : Code ia not accessed is the error... And I am still looking for solution
You're so great, by the way I need your help, by the things that you taught, I somehow managed to make a hand gesture program that controls the cursor and precisely the mouse, but I am not able to make it accurate, you are an opencv champion, please help me on that
, line 49, in
fingers = detector.fingersUp()
line 82, in fingersUp
if self.lmList[self.tipIds[0]][1] < self.lmList[self.tipIds[0]- 1][1]:
AttributeError: 'handDetector' object has no attribute 'tipIds'
im getting this error please help
I assume you're getting this error becuz you did not add the tipIds list to your module.
You can refer the Virtual Painter Video in which he adds the Fingers Up Function in the Hand Tracking Module.
Which is software to use coding for python
Can I make an article about this project?
Will that work with mac?
Yes it did for me
How can I make this into a mobile app using kivy
help. When I run program I get this error:
Traceback (most recent call last):
File "C:\Users\Bartek\Documents\!!kodziki\python
aukaaaaaaaaaa\volumeControll\VolumeHandControl.py", line 19, in
detector = htm.handDetector(detectionCon=0.7)
File "C:\Users\Bartek\Documents\!!kodziki\python
aukaaaaaaaaaa\volumeControll\HandTrackingModule.py", line 22, in __init__
self.hands = self.mpHands.Hands(self.mode, self.maxHands,
File "C:\Users\Bartek\AppData\Local\Programs\Python\Python310\lib\site-packages\mediapipe\python\solutions\hands.py", line 114, in __init__
super().__init__(
File "C:\Users\Bartek\AppData\Local\Programs\Python\Python310\lib\site-packages\mediapipe\python\solution_base.py", line 289, in __init__
self._input_side_packets = {
File "C:\Users\Bartek\AppData\Local\Programs\Python\Python310\lib\site-packages\mediapipe\python\solution_base.py", line 290, in
name: self._make_packet(self._side_input_type_info[name], data)
File "C:\Users\Bartek\AppData\Local\Programs\Python\Python310\lib\site-packages\mediapipe\python\solution_base.py", line 592, in _make_packet
return getattr(packet_creator, 'create_' + packet_data_type.value)(data)
TypeError: create_int(): incompatible function arguments. The following argument types are supported:
1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet
Invoked with: 0.7
Process finished with exit code 1
I wonder how he able to move his little finger with thumb and index fingers together
I was going to comment this
I love your work,sir but I am working on AI for mobile app.sir I want to access your AI course that you make for Android but don't have enough resource :(
Send us an email
Hii were to get HandDectionModule
!!!!! NEED HELP !!!!!!!!!
from comtypes import CLSCTX_ALL
from _ctypes import COMError
ImportError: cannot import name 'COMError' from '_ctypes'
I am getting this error. My operating system is Ubuntu 20.04.
How could I fix it?
Thank you!
File "D:\myData\Personal\myPy\edith\HandTrackingModule.py", line 45, in findPosition
for id, lm in enumerate(myHand.landmark):
UnboundLocalError: local variable 'myHand' referenced before assignment
Am facing this error, need your suggestion
did you define the myHand variable first before using it?
sometimes i also get this error im facing that when i close my hand
did you get a solution?
Also sorry, I'm using the Linux version of the Jetson Nano on Linux and Code-oss wasn't able to find mediapip
File "d:\Eve\Sistem 2\map.py", line 41, in
lmList, bbox = detector.findPosition(img, draw=True)
File "d:\Eve\Sistem 2\HandTrackingModule.py", line 37, in findPosition
for id, lm in enumerate(myHand.landmark):
UnboundLocalError: local variable 'myHand' referenced before assignment
Can someone help me with this error?
same problem
You copied the file from the website. The for-loop in the function has to go inside the first if-loop (if self.results .......). Same goes for these lines:
xmin, xmax = min(xList), max(xList)
ymin, ymax = min(yList), max(yList)
bbox = xmin, ymin, xmax, ymax
if draw:
cv2.rectangle(img, (bbox[0] - 20, bbox[1] - 20),
(bbox[2] + 20, bbox[3] + 20), (0, 255, 0), 2)
Just put all of these and the for-loop inside the first if-loop.
Hope I could help
Everything was fine in the first part but in this part it made me so confused.that I started searching for another tutorial
I am getting this error can someone help me out with this
x1, y1 = self.lmList[p1][1], self.lmList[p1][2]
AttributeError: 'handDetector' object has no attribute 'lmList'
@milan. thanks, i had the same issue
@@pedronicory9481 what's the solution to this issue?
@@vibhorejain6687 buddy , i don't remember exactly was the solution, but i think it's someting related to the __init__ variables, names etc. The version in the video do not have the same variables today's labrary variables.. So my advice is, look into the variables name, study them and compare to others scripts to see if u can find any solution. I dont have my script here to help u better. Hope u can do it!
anyone who knows how to fix this error
x1, y1 = self.lmList[p1][1], self.lmList[p1][2]
AttributeError: 'handDetector' object has no attribute 'lmList'
how can i deploy this application real time without having to run this code all the time
This is some Tony Stark top level shit.
same mouse with mine
How to convert it to exe
HEY !! I AM GETTING AN ERROR LIKE THIS " handDetector doesnt have attribute of lmList " IN fingersUp() FUNTION........I ALSO TRIED TO CHECK MY MISTAKE MORE PRECISELY BY YOUR GIVEN CODES IN UR SITE... BUT NO LUCK... IF YOU KNOW WHAT I AM DOING WRONG.. OR ANYTHING I SUPPOSED TO DO PLEASE TELL ME .. I ALSO TRIED TO RUN YOUR GIVEN CODES ENTIRELY.. BUT STILL THE SAME UPPER ERROR..
PEACE ✌
85th viewer
1st like 1st comment
🙋🙋
1 st liker
bro i get some errors please help me with that please