Gesture Volume Control | OpenCV Python | Computer Vision

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 มี.ค. 2021
  • In this tutorial, we are going to learn how to use Gesture Control to change the volume of a computer. We first look into hand tracking and then we will use the hand landmarks to find gestures of our hand to change the volume. This project is module-based which means we will be using a previously created hand module which makes hand tracking very easy.
    🚀🚀 My Urdu/Hindi AI TH-cam Channel 🚀🚀
    / @murtazahassan01
    Download Code:
    www.computervision.zone/cours...
    Hand Tracking Bare Min Code and Module Video:
    • Hand Tracking 30 FPS u...
    Gesture Volume Control [Part 2]
    • Advance Gesture Volume...
    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-...
    👉 TH-cam 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

ความคิดเห็น • 570

  • @mynkff
    @mynkff 3 ปีที่แล้ว +230

    You need a medal, because no one on youtube uploads such videos.🙏

    • @Skisful
      @Skisful 3 ปีที่แล้ว +6

      that is depressingly not true

    • @murtazasworkshop
      @murtazasworkshop  3 ปีที่แล้ว +6

      @Mynk FF Thank you for your kind words

    • @ko-Daegu
      @ko-Daegu 3 ปีที่แล้ว +11

      @@Skisful link for others plz ???

    • @Enjoyurlife1789
      @Enjoyurlife1789 8 หลายเดือนก่อน +2

      Everyone is busy in predicting house priceeeee

    • @newagegenre
      @newagegenre 3 หลายเดือนก่อน

      @@Enjoyurlife1789 this is hilarious! 😅😅

  • @faikyesilyaprak8761
    @faikyesilyaprak8761 3 ปีที่แล้ว +69

    You're an absolute open source software contributor. Thanks for the effort and the video. Keep going !!

    • @divoneh
      @divoneh 2 ปีที่แล้ว +1

      Did you get it this courses?

  • @j.knapek
    @j.knapek 3 ปีที่แล้ว +15

    I see great potential in this idea, especially for phones, perfect self-explanatory code, thank you :)

  • @Prudziak
    @Prudziak 2 ปีที่แล้ว +8

    I am actually suprised that I understood everything that you were doing, and it means you explained it well

  • @raphaelados3909
    @raphaelados3909 3 ปีที่แล้ว +1

    The best minutes I have spent in the internet!! So interesting video by all means!!

  • @siddhantindave6391
    @siddhantindave6391 2 ปีที่แล้ว +3

    Thank you very much! Helped me in a gesture detection project. You are a legend

  • @GenAIWithNandakishor
    @GenAIWithNandakishor 3 ปีที่แล้ว +507

    What a time to be alive. Only legends will understand 😁

    • @sibulelemboyi526
      @sibulelemboyi526 3 ปีที่แล้ว +7

      Which IDE is he using? Looks like VS Code thou

    • @sibulelemboyi526
      @sibulelemboyi526 3 ปีที่แล้ว +1

      @@GenAIWithNandakishor thank you

    • @jamesjaszjj
      @jamesjaszjj 3 ปีที่แล้ว +5

      @@samuelscheit correct

    • @louisberghaus1886
      @louisberghaus1886 3 ปีที่แล้ว +14

      Dear fellow schoolers

    • @TusharAmdoskar
      @TusharAmdoskar 3 ปีที่แล้ว +7

      Two minute paper those who are confused

  • @calvinlee1127
    @calvinlee1127 3 ปีที่แล้ว +49

    People in the future:
    'Pass me that bottle'
    'i can't, I don't want to mess up my volume'

  • @dev10shah
    @dev10shah 3 ปีที่แล้ว +1

    I was watching you everyday and didn't realized I wasn't subscribed thanks !

  • @alexisadr
    @alexisadr 3 ปีที่แล้ว +7

    Thank u for creating and sharing this type of content!

  • @creativecore3575
    @creativecore3575 2 ปีที่แล้ว +7

    Hello Sir, your videos have added so much character and life to my projects. Thank you. I was wondering if you could make a tutorial on full body tracking. Thanks again !

  • @jhondavidson2049
    @jhondavidson2049 3 ปีที่แล้ว

    This was an amazing tutorial. I'm having a lot of fun learning these computer vision applications. Thank You @Murtaza's Workshop. See you in AI virtual Mouse Video set tomorrow.

  • @xyrenegade
    @xyrenegade 3 ปีที่แล้ว +2

    Someone had the same idea back in college but their advisors told them this is a long term project. They still passed but dialed down to ASL interpretation. That's still alot of work done

  • @mrjean9376
    @mrjean9376 3 ปีที่แล้ว

    Im subs! This channel is hidden gem to be sure : ), i would share this to my community, thanks for making this tutorial video, very educate alot of people!

  • @ingeniodigital7414
    @ingeniodigital7414 3 ปีที่แล้ว +5

    The best 36 minutes I've spent on TH-cam

  • @hareeshanand4209
    @hareeshanand4209 3 ปีที่แล้ว +2

    You are lit seriously🔥💥....you are the only youtuber I believe who isn't money minded....you deserve a lot more ❤️❤️❤️

  • @aryanesmaili2069
    @aryanesmaili2069 2 ปีที่แล้ว +3

    Thanks for your awesome and more importantly "without loophole" tutorial

  • @selvamthiagarajan8152
    @selvamthiagarajan8152 2 ปีที่แล้ว +2

    This is amazing. You deserve a nobel prize.

  • @thelazybusygamer
    @thelazybusygamer 3 ปีที่แล้ว +1

    you are the best teacher , one in a million , thanku helped a lot

  • @sayandas3547
    @sayandas3547 2 ปีที่แล้ว

    Bro seriously
    Its awesome
    I got much to learn and u teached it seriously in an easier way
    Thanks bro

  • @yapdoit8077
    @yapdoit8077 3 ปีที่แล้ว +3

    You are the awesome one who I have ever seen . I can understand all you said. I can't belive my self. You're speeking chrystal clear. brilant. So I think to myself we are speeking the same language. You made me love the OPENCV. Good to see you are, good to here you are. God bless you and those like you.

  • @fahadahmed480
    @fahadahmed480 3 ปีที่แล้ว

    Thank you so much for these tutorials

  • @kintipukintipu3987
    @kintipukintipu3987 3 ปีที่แล้ว

    Great video, like always..!! THX

  • @Xnothen
    @Xnothen 3 ปีที่แล้ว +12

    Interesting, currently learning python and hope to be able to do this one day. You are an inspiration

    • @landofabraham
      @landofabraham 2 ปีที่แล้ว

      Have you done it friend?

    • @samjhana6400
      @samjhana6400 ปีที่แล้ว

      Did you complete this now?????????????

  • @user-en5gx2nf8u
    @user-en5gx2nf8u 3 ปีที่แล้ว +17

    ну ты даешь старичок, годный туториал забабахал, по красоте да то есть
    заделал себе такую, теперь перед телками могу понтоваться
    ну всё, я погнал, всех обнял

  • @muratbayraktar4114
    @muratbayraktar4114 3 ปีที่แล้ว +1

    That's impressive. I made a few changes where the program calculates the hand's distance from the camera that way when it's far away since the numbers will change, it can perform more adequately

    • @eduardorobles490
      @eduardorobles490 3 ปีที่แล้ว

      Hi Murat, I noticed the same issue. Since the vol is calculated upon the line length, it also changes when you get closer or far away from the camera keeping the same distance between fingers (index and thumb9. How did you manage to calculate the distance from the camera to introduce a correction to the algorithm?

  • @futuremakersworkshop5846
    @futuremakersworkshop5846 3 ปีที่แล้ว

    You are the best teacher i had seen

  • @duo2375
    @duo2375 3 ปีที่แล้ว

    This is so freaking cool man!

  • @gokulbmishra
    @gokulbmishra 3 ปีที่แล้ว +4

    Awesome , this is what I was looking for, thanks

  • @krishnaraj3989
    @krishnaraj3989 3 ปีที่แล้ว +18

    Dammmmmmmmmmmmm. This is ridiculously cool!

  • @himanshuvairagade8388
    @himanshuvairagade8388 3 ปีที่แล้ว +36

    For people working on Linux use:
    from subprocess import call
    volume = int(volume)
    call(["amixer", "-D", "pulse", "sset", "Master", str(volume)+"%"])
    Hope that helps!

  • @MuhammedBasil
    @MuhammedBasil 3 ปีที่แล้ว

    Thanks for sharing. It is very comprehensive.

  • @actionkey8042
    @actionkey8042 3 ปีที่แล้ว

    Murtaza's Workshop - Robotics and AI
    - awesomEE!!

  • @etechhow5678
    @etechhow5678 ปีที่แล้ว

    This is really. helpful. You are genius man keep it up....Thanks alot..

  • @ishida8429
    @ishida8429 2 ปีที่แล้ว

    You have one new subscriber, thanks for the video!!!!

  • @markpretorius6854
    @markpretorius6854 3 ปีที่แล้ว +1

    Great job once again buddy

  • @guruprasadr6743
    @guruprasadr6743 ปีที่แล้ว +4

    Cool, one small suggestion as the hand distance length is also going to depend upon the distance of the hand from the camera may be this needs to be combined with the hand distance measurement to set the value range instead of hardcoded 50 to 300. Also the volume will continuously vary as we move the hand across. May be we need some way to freeze the volume.

  • @JaredTilston
    @JaredTilston 2 ปีที่แล้ว

    You do such great videos! This is exactly what I was looking for. Thank you!

  • @aligassaloglu5079
    @aligassaloglu5079 3 ปีที่แล้ว

    Thank you for your precious knowledge :)

  • @saimohankrishnabandarupall8785
    @saimohankrishnabandarupall8785 3 ปีที่แล้ว

    amazing tutorial. do more like these

  • @rayanetube7074
    @rayanetube7074 7 หลายเดือนก่อน

    You're a legend ! Thank you

  • @abellachannel6050
    @abellachannel6050 2 ปีที่แล้ว

    Thank you so much for your great video!

  • @khalidben9940
    @khalidben9940 3 ปีที่แล้ว

    This is impressive.Congrats

  • @mrdjangajic7439
    @mrdjangajic7439 2 ปีที่แล้ว

    You are very good teacher!

  • @qaiserbozdar1542
    @qaiserbozdar1542 3 ปีที่แล้ว +8

    You are doing well Murtaza. I am benefiting myself by watching you. One day you will get 1000k subscribers.

  • @em11l
    @em11l 3 ปีที่แล้ว

    Nice video. Found it very helpful.

  • @Itz_Anim_Hub
    @Itz_Anim_Hub 2 ปีที่แล้ว +1

    this content is goood..
    i finished this project now...

  • @anthony6841
    @anthony6841 3 ปีที่แล้ว

    you are a very good man, thank you :)

  • @TheKansi2
    @TheKansi2 3 ปีที่แล้ว +1

    Quite nice project! 👏

  • @sayanchowdhury6139
    @sayanchowdhury6139 3 ปีที่แล้ว

    Great work man...keep it up❤️❤️❤️❤️

  • @krumss
    @krumss 3 ปีที่แล้ว +2

    underrated channel

  • @python-ml-ai1323
    @python-ml-ai1323 3 ปีที่แล้ว

    thank you man , you are best creature tutorial i see. i kneel in front of you.

  • @mishisareen4925
    @mishisareen4925 3 ปีที่แล้ว

    Your videos are awesome!!!!!!

  • @TheFireedman
    @TheFireedman 3 ปีที่แล้ว

    really nice video, i have learn a lot thank you

  • @karlos-oliveira
    @karlos-oliveira 3 ปีที่แล้ว

    Fantastic, tks for share!!

  • @ahmedaljumaili521
    @ahmedaljumaili521 3 ปีที่แล้ว

    Great tutorial keep it up 💯

  • @robomatics697
    @robomatics697 3 ปีที่แล้ว

    Bhai gjb ka series ❤️❤️😂

  • @G2Chanakya
    @G2Chanakya 3 ปีที่แล้ว +1

    Ok am subbing u. Worth it.

  • @BystroCoder
    @BystroCoder 2 ปีที่แล้ว

    Thank you sir for this tutorial.

  • @murtazasworkshop
    @murtazasworkshop  2 ปีที่แล้ว +8

    If you are getting an error getting the x and y value using hand['lmList'][8] then use hand['lmList'][8][:2] instead.
    This is because the latest version of cvzone consists of x,y,z values instead of only x,y. So you have to define that you only need the first two elements by adding [:2]

    • @itsjustchill93
      @itsjustchill93 2 ปีที่แล้ว

      could there be a way to normalize the length based on the distance of the hand to the camera using this z value? Thanks for the vid!

    • @atulanand4824
      @atulanand4824 ปีที่แล้ว

      can you please provide handtracking code

  • @ashrafelansary8804
    @ashrafelansary8804 2 ปีที่แล้ว

    You always doing the best because you are the best 😎

  • @hienphan9944
    @hienphan9944 2 ปีที่แล้ว

    Wow I liked your video.Good job

  • @confusedtoad8757
    @confusedtoad8757 3 ปีที่แล้ว +1

    This technique will be even better two more papers down the line!

  • @akm1712
    @akm1712 3 ปีที่แล้ว

    Thanks for this amazing video

  • @nikshepkulli
    @nikshepkulli 2 ปีที่แล้ว

    Awesome tutorial ❤️

  • @averno6174
    @averno6174 3 ปีที่แล้ว +4

    Thanks again, it helps a lot; really usefull.
    Btw, I allways write the code as I watch your videos to add my comments to it, but i've seen that code file is wrong uploaded at your blog (it is previous lesson's one)
    Amazing work

    • @affanskm3530
      @affanskm3530 3 ปีที่แล้ว +1

      I'm not able to open the code in this link www.murtazahassan.com/courses/opencv-projects/
      please tell me how to access the code

    • @elixpo
      @elixpo 2 ปีที่แล้ว

      yes it's wrong actually

    • @mahnoorsher3459
      @mahnoorsher3459 ปีที่แล้ว

      Hello! can i get the right code?

  • @pikkaboogaming6054
    @pikkaboogaming6054 3 ปีที่แล้ว

    Woow it's amazing 🔥🔥🔥

  • @adityabikramarandhara9477
    @adityabikramarandhara9477 2 ปีที่แล้ว

    Thanks for this wonderful video

  • @Bianchi77
    @Bianchi77 2 ปีที่แล้ว

    Cool video, thanks :)

  • @somebody88888
    @somebody88888 10 หลายเดือนก่อน

    Thank you for your effort and great value videos!

  • @Mohta69
    @Mohta69 3 ปีที่แล้ว +1

    very cool video keep it up👍

  • @priyanksisodia5889
    @priyanksisodia5889 3 ปีที่แล้ว

    This was amazing

  • @aasaialangaram6847
    @aasaialangaram6847 3 ปีที่แล้ว

    Amazing tutorial sir

  • @user-fq3jj1wj9c
    @user-fq3jj1wj9c ปีที่แล้ว

    To be honest, this is really cool.

  • @shubhamsharma7460
    @shubhamsharma7460 2 ปีที่แล้ว

    first of all thanks sir for this great idea and It is daaaammmmm super cool

  • @hoanglongtran2707
    @hoanglongtran2707 3 ปีที่แล้ว +9

    I looked into your code and highly suggest that you handel the instance when you need to stop adjusting the volumeand save it. I tried it by calculating the distance between the rest fingers to the bottom landmark near the wrist. Good video btw

    • @farhanjhr5076
      @farhanjhr5076 5 หลายเดือนก่อน

      How, whats the syntax

  • @leosmi1
    @leosmi1 2 ปีที่แล้ว

    Thank you so much!

  • @theshayarana556
    @theshayarana556 3 ปีที่แล้ว

    you are awesome bhai.....

  • @dimitripartoni9232
    @dimitripartoni9232 2 ปีที่แล้ว

    Excelente logré hacerlo está muy divertido e interesante me tiene en shock

  • @VoldraLightningfrost
    @VoldraLightningfrost 2 ปีที่แล้ว

    Well done!

  • @abellachannel6050
    @abellachannel6050 2 ปีที่แล้ว

    Perfection!!!

  • @felipemiguel5581
    @felipemiguel5581 3 ปีที่แล้ว

    Nice Man. That amazing it

  • @ahmedal-shwakh9129
    @ahmedal-shwakh9129 3 ปีที่แล้ว +1

    I'm really blown away by how you explained it 😍😍. Bro which version of pycharm, Python and anaconda are you using?

  • @kjr5034
    @kjr5034 3 ปีที่แล้ว +16

    Cool tutorial Murtaza! I'm going to implement this myself.
    It lacks one thing though: There needs to be a way to confirm the final volume. In 35:45, while moving your hand out of the cam's view, you change the volume from 0% to 60% unintentionally.

    • @affanskm3530
      @affanskm3530 3 ปีที่แล้ว

      I'm not able to open the code in this link www.murtazahassan.com/courses/opencv-projects/
      please tell me how to access the code

    • @kjr5034
      @kjr5034 3 ปีที่แล้ว +1

      @@affanskm3530 i did not try it yet, but my guess is that you have to enroll first into the course on his website before you can access the code.
      Or just watch the video and cppy it by typinh yourself

    • @mr_sugarcube
      @mr_sugarcube 3 ปีที่แล้ว +3

      Also there is need some kind of normalization, because length range depends on distance from camera to hand

  • @gigipolit8347
    @gigipolit8347 2 ปีที่แล้ว

    Ahhhh i love this video 🔥🔥🔥❤

  • @mohamedhabiboullahelhoubab6079
    @mohamedhabiboullahelhoubab6079 3 ปีที่แล้ว

    you'r the best Murtaza

  • @mohammedfawaaz693
    @mohammedfawaaz693 3 ปีที่แล้ว +2

    Truely underrated content....bro you are the best

  • @abubiibah
    @abubiibah 2 ปีที่แล้ว

    Awesome. Thanks

  • @tronicking2071
    @tronicking2071 ปีที่แล้ว

    Great video i just went to the bathroom watching this and stayed in the bathroom until i finished watching this video great explanation! 😊😊😊😊😊😊

  • @Forever._.curious..
    @Forever._.curious.. 2 ปีที่แล้ว

    Such a cool project

  • @TejrajParab
    @TejrajParab 3 ปีที่แล้ว

    pyautogui is also a module which can be used for this. Great video!

  • @inkognito8020
    @inkognito8020 25 วันที่ผ่านมา

    Great lecture ! 👍👍. The only suggestion I have is pycaw navigates the master volume levels at an exponential level rather than a linear level. Hence, if the master level is reduced by 10 say -10 to -20, the actual volume is reduced by half.
    So when the distance between your fingers is half the max distance, the volume is only 2 or 3 (not 50). Hence, the distance can be made proportional not to the master volume but the log of the level. I directly correlated the distance between the fingers to the actual volume level on windows and then exponentiated it to get the master leve that needs to be set. This gives us a much smoother correlation between the fingers distance and the actual volume on Windows

  • @josephdreamz
    @josephdreamz 3 ปีที่แล้ว +2

    Nice tutorial... But can you make a tutorial showing how to know the positions of the hand (up, down, right, and left)?

  • @brunafortunato7449
    @brunafortunato7449 3 ปีที่แล้ว

    Thank you so much

  • @rahuljamba5846
    @rahuljamba5846 9 หลายเดือนก่อน

    excellent !!

  • @cosmicpuma1409
    @cosmicpuma1409 3 ปีที่แล้ว

    This is rockstar level!

  • @Maertaugh
    @Maertaugh 3 ปีที่แล้ว

    Great tutorial like the other.

    • @murtazasworkshop
      @murtazasworkshop  3 ปีที่แล้ว

      Bcz the value is from the center of the thumbs

  • @avdhootavhad9223
    @avdhootavhad9223 3 ปีที่แล้ว

    You are Genius

  • @cssluism
    @cssluism 3 ปีที่แล้ว

    Great video

  • @mrdarren21
    @mrdarren21 3 ปีที่แล้ว

    este es otro nivel de programación