Gesture Volume Control | OpenCV Python | Computer Vision

Sdílet
Vložit
  • čas přidán 29. 03. 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 CZcams 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-...
    👉 CZcams 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

Komentáře • 570

  • @mynkff
    @mynkff Před 3 lety +230

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

    • @Skisful
      @Skisful Před 3 lety +6

      that is depressingly not true

    • @murtazasworkshop
      @murtazasworkshop  Před 3 lety +6

      @Mynk FF Thank you for your kind words

    • @ko-Daegu
      @ko-Daegu Před 3 lety +11

      @@Skisful link for others plz ???

    • @Enjoyurlife1789
      @Enjoyurlife1789 Před 8 měsíci +2

      Everyone is busy in predicting house priceeeee

    • @newagegenre
      @newagegenre Před 3 měsíci

      @@Enjoyurlife1789 this is hilarious! 😅😅

  • @faikyesilyaprak8761
    @faikyesilyaprak8761 Před 3 lety +69

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

    • @divoneh
      @divoneh Před 2 lety +1

      Did you get it this courses?

  • @j.knapek
    @j.knapek Před 3 lety +15

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

  • @Prudziak
    @Prudziak Před 2 lety +8

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

  • @raphaelados3909
    @raphaelados3909 Před 3 lety +1

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

  • @siddhantindave6391
    @siddhantindave6391 Před 2 lety +3

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

  • @GenAIWithNandakishor
    @GenAIWithNandakishor Před 3 lety +507

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

  • @calvinlee1127
    @calvinlee1127 Před 3 lety +49

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

  • @dev10shah
    @dev10shah Před 3 lety +1

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

  • @alexisadr
    @alexisadr Před 3 lety +7

    Thank u for creating and sharing this type of content!

  • @creativecore3575
    @creativecore3575 Před 2 lety +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 Před 3 lety

    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 Před 3 lety +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 Před 3 lety

    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 Před 3 lety +5

    The best 36 minutes I've spent on CZcams

  • @hareeshanand4209
    @hareeshanand4209 Před 3 lety +2

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

  • @aryanesmaili2069
    @aryanesmaili2069 Před 2 lety +3

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

  • @selvamthiagarajan8152
    @selvamthiagarajan8152 Před 2 lety +2

    This is amazing. You deserve a nobel prize.

  • @thelazybusygamer
    @thelazybusygamer Před 3 lety +1

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

  • @sayandas3547
    @sayandas3547 Před 2 lety

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

  • @yapdoit8077
    @yapdoit8077 Před 3 lety +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 Před 3 lety

    Thank you so much for these tutorials

  • @kintipukintipu3987
    @kintipukintipu3987 Před 3 lety

    Great video, like always..!! THX

  • @Xnothen
    @Xnothen Před 3 lety +12

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

  • @user-en5gx2nf8u
    @user-en5gx2nf8u Před 3 lety +17

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

  • @muratbayraktar4114
    @muratbayraktar4114 Před 3 lety +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 Před 3 lety

      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

    You are the best teacher i had seen

  • @duo2375
    @duo2375 Před 3 lety

    This is so freaking cool man!

  • @gokulbmishra
    @gokulbmishra Před 3 lety +4

    Awesome , this is what I was looking for, thanks

  • @krishnaraj3989
    @krishnaraj3989 Před 3 lety +18

    Dammmmmmmmmmmmm. This is ridiculously cool!

  • @himanshuvairagade8388
    @himanshuvairagade8388 Před 3 lety +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 Před 3 lety

    Thanks for sharing. It is very comprehensive.

  • @actionkey8042
    @actionkey8042 Před 3 lety

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

  • @etechhow5678
    @etechhow5678 Před rokem

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

  • @ishida8429
    @ishida8429 Před 2 lety

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

  • @markpretorius6854
    @markpretorius6854 Před 3 lety +1

    Great job once again buddy

  • @guruprasadr6743
    @guruprasadr6743 Před rokem +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 Před 2 lety

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

  • @aligassaloglu5079
    @aligassaloglu5079 Před 3 lety

    Thank you for your precious knowledge :)

  • @saimohankrishnabandarupall8785

    amazing tutorial. do more like these

  • @rayanetube7074
    @rayanetube7074 Před 7 měsíci

    You're a legend ! Thank you

  • @abellachannel6050
    @abellachannel6050 Před 2 lety

    Thank you so much for your great video!

  • @khalidben9940
    @khalidben9940 Před 3 lety

    This is impressive.Congrats

  • @mrdjangajic7439
    @mrdjangajic7439 Před 2 lety

    You are very good teacher!

  • @qaiserbozdar1542
    @qaiserbozdar1542 Před 3 lety +8

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

  • @em11l
    @em11l Před 3 lety

    Nice video. Found it very helpful.

  • @Itz_Anim_Hub
    @Itz_Anim_Hub Před 2 lety +1

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

  • @anthony6841
    @anthony6841 Před 3 lety

    you are a very good man, thank you :)

  • @TheKansi2
    @TheKansi2 Před 3 lety +1

    Quite nice project! 👏

  • @sayanchowdhury6139
    @sayanchowdhury6139 Před 3 lety

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

  • @krumss
    @krumss Před 3 lety +2

    underrated channel

  • @python-ml-ai1323
    @python-ml-ai1323 Před 3 lety

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

  • @mishisareen4925
    @mishisareen4925 Před 3 lety

    Your videos are awesome!!!!!!

  • @TheFireedman
    @TheFireedman Před 3 lety

    really nice video, i have learn a lot thank you

  • @karlos-oliveira
    @karlos-oliveira Před 3 lety

    Fantastic, tks for share!!

  • @ahmedaljumaili521
    @ahmedaljumaili521 Před 3 lety

    Great tutorial keep it up 💯

  • @robomatics697
    @robomatics697 Před 3 lety

    Bhai gjb ka series ❤️❤️😂

  • @G2Chanakya
    @G2Chanakya Před 3 lety +1

    Ok am subbing u. Worth it.

  • @BystroCoder
    @BystroCoder Před 2 lety

    Thank you sir for this tutorial.

  • @murtazasworkshop
    @murtazasworkshop  Před 2 lety +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 Před 2 lety

      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 Před rokem

      can you please provide handtracking code

  • @ashrafelansary8804
    @ashrafelansary8804 Před 2 lety

    You always doing the best because you are the best 😎

  • @hienphan9944
    @hienphan9944 Před 2 lety

    Wow I liked your video.Good job

  • @confusedtoad8757
    @confusedtoad8757 Před 3 lety +1

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

  • @akm1712
    @akm1712 Před 3 lety

    Thanks for this amazing video

  • @nikshepkulli
    @nikshepkulli Před 2 lety

    Awesome tutorial ❤️

  • @averno6174
    @averno6174 Před 3 lety +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 Před 3 lety +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 Před 2 lety

      yes it's wrong actually

    • @mahnoorsher3459
      @mahnoorsher3459 Před rokem

      Hello! can i get the right code?

  • @pikkaboogaming6054
    @pikkaboogaming6054 Před 3 lety

    Woow it's amazing 🔥🔥🔥

  • @adityabikramarandhara9477

    Thanks for this wonderful video

  • @Bianchi77
    @Bianchi77 Před 2 lety

    Cool video, thanks :)

  • @somebody88888
    @somebody88888 Před 10 měsíci

    Thank you for your effort and great value videos!

  • @Mohta69
    @Mohta69 Před 3 lety +1

    very cool video keep it up👍

  • @priyanksisodia5889
    @priyanksisodia5889 Před 3 lety

    This was amazing

  • @aasaialangaram6847
    @aasaialangaram6847 Před 3 lety

    Amazing tutorial sir

  • @user-fq3jj1wj9c
    @user-fq3jj1wj9c Před rokem

    To be honest, this is really cool.

  • @shubhamsharma7460
    @shubhamsharma7460 Před 2 lety

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

  • @hoanglongtran2707
    @hoanglongtran2707 Před 3 lety +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

  • @leosmi1
    @leosmi1 Před 2 lety

    Thank you so much!

  • @theshayarana556
    @theshayarana556 Před 3 lety

    you are awesome bhai.....

  • @dimitripartoni9232
    @dimitripartoni9232 Před 2 lety

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

  • @VoldraLightningfrost
    @VoldraLightningfrost Před 2 lety

    Well done!

  • @abellachannel6050
    @abellachannel6050 Před 2 lety

    Perfection!!!

  • @felipemiguel5581
    @felipemiguel5581 Před 3 lety

    Nice Man. That amazing it

  • @ahmedal-shwakh9129
    @ahmedal-shwakh9129 Před 3 lety +1

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

  • @kjr5034
    @kjr5034 Před 3 lety +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 Před 3 lety

      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 Před 3 lety +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 Před 3 lety +3

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

  • @gigipolit8347
    @gigipolit8347 Před 2 lety

    Ahhhh i love this video 🔥🔥🔥❤

  • @mohamedhabiboullahelhoubab6079

    you'r the best Murtaza

  • @mohammedfawaaz693
    @mohammedfawaaz693 Před 3 lety +2

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

  • @abubiibah
    @abubiibah Před 2 lety

    Awesome. Thanks

  • @tronicking2071
    @tronicking2071 Před rokem

    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.. Před 2 lety

    Such a cool project

  • @TejrajParab
    @TejrajParab Před 3 lety

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

  • @inkognito8020
    @inkognito8020 Před 26 dny

    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 Před 3 lety +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 Před 3 lety

    Thank you so much

  • @rahuljamba5846
    @rahuljamba5846 Před 9 měsíci

    excellent !!

  • @cosmicpuma1409
    @cosmicpuma1409 Před 3 lety

    This is rockstar level!

  • @Maertaugh
    @Maertaugh Před 3 lety

    Great tutorial like the other.

  • @avdhootavhad9223
    @avdhootavhad9223 Před 3 lety

    You are Genius

  • @cssluism
    @cssluism Před 3 lety

    Great video

  • @mrdarren21
    @mrdarren21 Před 3 lety

    este es otro nivel de programación