Gesture Volume Control | OpenCV Python | Computer Vision

Поделиться
HTML-код
  • Опубликовано: 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 RUclips 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-...
    👉 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

Комментарии • 561

  • @mynkff
    @mynkff 3 года назад +222

    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 6 месяцев назад +1

      Everyone is busy in predicting house priceeeee

    • @newagegenre
      @newagegenre Месяц назад

      @@Enjoyurlife1789 this is hilarious! 😅😅

  • @faikyesilyaprak8761
    @faikyesilyaprak8761 3 года назад +66

    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 года назад +14

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

  • @Prudziak
    @Prudziak 2 года назад +6

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

  • @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 !

  • @GenAIWithNandakishor
    @GenAIWithNandakishor 3 года назад +505

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

  • @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.

  • @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

  • @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

  • @calvinlee1127
    @calvinlee1127 3 года назад +48

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

  • @jhondavidson2049
    @jhondavidson2049 2 года назад

    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.

  • @alexisadr
    @alexisadr 3 года назад +7

    Thank u for creating and sharing this type of content!

  • @Xnothen
    @Xnothen 3 года назад +12

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

  • @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 ❤️❤️❤️

  • @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.

  • @dev10shah
    @dev10shah 3 года назад +1

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

  • @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!

  • @user-en5gx2nf8u
    @user-en5gx2nf8u 2 года назад +17

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

  • @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!

  • @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.

  • @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?

  • @sayandas3547
    @sayandas3547 2 года назад

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

  • @qaiserbozdar1542
    @qaiserbozdar1542 3 года назад +8

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

  • @ingeniodigital7414
    @ingeniodigital7414 3 года назад +5

    The best 36 minutes I've spent on RUclips

  • @thelazybusygamer4173
    @thelazybusygamer4173 3 года назад +1

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

  • @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?

  • @ahmedal-shwakh9129
    @ahmedal-shwakh9129 2 года назад +1

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

  • @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

  • @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 2 года назад +3

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

  • @futuremakersworkshop5846
    @futuremakersworkshop5846 3 года назад

    You are the best teacher i had seen

  • @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

  • @gokulbmishra
    @gokulbmishra 3 года назад +4

    Awesome , this is what I was looking for, thanks

  • @fahadahmed480
    @fahadahmed480 3 года назад

    Thank you so much for these tutorials

  • @actionkey8042
    @actionkey8042 3 года назад

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

  • @saimohankrishnabandarupall8785
    @saimohankrishnabandarupall8785 3 года назад

    amazing tutorial. do more like these

  • @JaredTilston
    @JaredTilston 2 года назад

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

  • @etechhow5678
    @etechhow5678 Год назад

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

  • @MuhammedBasil
    @MuhammedBasil 3 года назад

    Thanks for sharing. It is very comprehensive.

  • @Itz_Anim_Hub
    @Itz_Anim_Hub 2 года назад +1

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

  • @duo2375
    @duo2375 3 года назад

    This is so freaking cool man!

  • @krishnaraj3989
    @krishnaraj3989 3 года назад +18

    Dammmmmmmmmmmmm. This is ridiculously cool!

  • @krumss
    @krumss 3 года назад +2

    underrated channel

  • @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)?

  • @khalidben9940
    @khalidben9940 3 года назад

    This is impressive.Congrats

  • @aligassaloglu5079
    @aligassaloglu5079 2 года назад

    Thank you for your precious knowledge :)

  • @markpretorius6854
    @markpretorius6854 3 года назад +1

    Great job once again buddy

  • @kalpeshpatil8967
    @kalpeshpatil8967 3 года назад +1

    Thank you for this fantastic content, can we used this type of repo with kinect v2 device ?

  • @python-ml-ai1323
    @python-ml-ai1323 2 года назад

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

  • @ishida8429
    @ishida8429 2 года назад

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

  • @sayanchowdhury6139
    @sayanchowdhury6139 3 года назад

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

  • @TheKansi2
    @TheKansi2 3 года назад +1

    Quite nice project! 👏

  • @ahmedaljumaili521
    @ahmedaljumaili521 3 года назад

    Great tutorial keep it up 💯

  • @dimitripartoni9232
    @dimitripartoni9232 2 года назад

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

  • @mohammedfawaaz693
    @mohammedfawaaz693 3 года назад +2

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

  • @kintipukintipu3987
    @kintipukintipu3987 3 года назад

    Great video, like always..!! THX

  • @mrdjangajic7439
    @mrdjangajic7439 2 года назад

    You are very good teacher!

  • @anthony6841
    @anthony6841 3 года назад

    you are a very good man, thank you :)

  • @confusedtoad8757
    @confusedtoad8757 3 года назад +1

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

  • @TheFireedman
    @TheFireedman 3 года назад

    really nice video, i have learn a lot thank you

  • @em11l
    @em11l 3 года назад

    Nice video. Found it very helpful.

  • @ashrafelansary8804
    @ashrafelansary8804 2 года назад

    You always doing the best because you are the best 😎

  • @somebody88888
    @somebody88888 8 месяцев назад

    Thank you for your effort and great value videos!

  • @TejrajParab
    @TejrajParab 2 года назад

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

  • @BystroCoder
    @BystroCoder 2 года назад

    Thank you sir for this tutorial.

  • @robomatics697
    @robomatics697 3 года назад

    Bhai gjb ka series ❤️❤️😂

  • @abellachannel6050
    @abellachannel6050 2 года назад

    Thank you so much for your great video!

  • @josebarria3233
    @josebarria3233 3 года назад +7

    At the end you should perform a linear to log conversion, because sound scales are logarithmic

    • @fiopio2422
      @fiopio2422 3 года назад

      yo he dicho lo mismo XD

    • @mr_sugarcube
      @mr_sugarcube 2 года назад

      Thank you, didn't know that. Is that truth for this library or is this common thing?

    • @josebarria3233
      @josebarria3233 2 года назад

      @@mr_sugarcube It's a common thing (at least in Windows AFAIK)

  • @rayanetube7074
    @rayanetube7074 5 месяцев назад

    You're a legend ! Thank you

  • @pikkaboogaming6054
    @pikkaboogaming6054 3 года назад

    Woow it's amazing 🔥🔥🔥

  • @G2Chanakya
    @G2Chanakya 3 года назад +1

    Ok am subbing u. Worth it.

  • @priyanksisodia5889
    @priyanksisodia5889 3 года назад

    This was amazing

  • @akm1712
    @akm1712 3 года назад

    Thanks for this amazing video

  • @rahuljamba5846
    @rahuljamba5846 7 месяцев назад

    excellent !!

  • @user-fq3jj1wj9c
    @user-fq3jj1wj9c 11 месяцев назад

    To be honest, this is really cool.

  • @mishisareen4925
    @mishisareen4925 3 года назад

    Your videos are awesome!!!!!!

  • @shubhamsharma7460
    @shubhamsharma7460 2 года назад

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

  • @nikshepkulli
    @nikshepkulli 2 года назад

    Awesome tutorial ❤️

  • @aasaialangaram6847
    @aasaialangaram6847 3 года назад

    Amazing tutorial sir

  • @hienphan9944
    @hienphan9944 2 года назад

    Wow I liked your video.Good job

  • @karlos-oliveira
    @karlos-oliveira 3 года назад

    Fantastic, tks for share!!

  • @vinceresempre1617
    @vinceresempre1617 3 года назад +7

    This was my final year project here in India. Thank you so much for this.

    • @annakquinn7084
      @annakquinn7084 3 года назад +2

      So you plagiarized your work. Do you also provide Microsoft support by phone as well?

    • @ant-mf6kl
      @ant-mf6kl 2 года назад +1

      @@annakquinn7084 shit I laughed at this for longer than I should've

  • @Mohta69
    @Mohta69 3 года назад +1

    very cool video keep it up👍

  • @ramzibenhamlaoui5711
    @ramzibenhamlaoui5711 3 года назад

    Congrate! Very good video brother.
    My problem is that pyCaw works only on Windows. I have to look for an other library who works on Linux.
    Thank you very much for those tutorials.

  • @mohamedhabiboullahelhoubab6079
    @mohamedhabiboullahelhoubab6079 2 года назад

    you'r the best Murtaza

  • @adityabikramarandhara9477
    @adityabikramarandhara9477 2 года назад

    Thanks for this wonderful video

  • @paulkiragu8120
    @paulkiragu8120 3 года назад +4

    All this other bloggers making todo apps, congrats on such rich content

  • @theshayarana556
    @theshayarana556 2 года назад

    you are awesome bhai.....

  • @mrdarren21
    @mrdarren21 2 года назад

    este es otro nivel de programación

  • @Learner..
    @Learner.. 2 года назад

    Such a cool project

  • @VoldraLightningfrost
    @VoldraLightningfrost 2 года назад

    Well done!

  • @omereroglu6772
    @omereroglu6772 7 месяцев назад

    Does the difficulty of the videos increase from the beginning? And do we have to watch it in order, starting from the 1st video? Thank you.

  • @gigipolit8347
    @gigipolit8347 2 года назад

    Ahhhh i love this video 🔥🔥🔥❤

  • @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! 😊😊😊😊😊😊

  • @cosmicpuma1409
    @cosmicpuma1409 3 года назад

    This is rockstar level!

  • @kai4166
    @kai4166 3 года назад +1

    We can also initialize the volBar and volPerc with current system volumes:
    curr_vol = volume.GetMasterVolumeLevel()
    vol_perc = np.interp(curr_vol, [-65, 0], [0, 100])
    vol_bar = np.interp(curr_vol, [-65, 0], [400, 150])
    Hope it helps....

    • @ravikumarshukla7143
      @ravikumarshukla7143 2 года назад

      Buddy can you help me with this if I am working on mac, how to get volume details on mac, on windows it is being done by pycaw.

  • @avdhootavhad9223
    @avdhootavhad9223 3 года назад

    You are Genius

  • @leosmi1
    @leosmi1 2 года назад

    Thank you so much!

  • @felipemiguel5581
    @felipemiguel5581 3 года назад

    Nice Man. That amazing it