Це відео не доступне.
Перепрошуємо.

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 UA-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-...
    👉 UA-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

КОМЕНТАРІ • 574

  • @mynkff
    @mynkff 3 роки тому +236

    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 9 місяців тому +2

      Everyone is busy in predicting house priceeeee

    • @newagegenre
      @newagegenre 4 місяці тому

      @@Enjoyurlife1789 this is hilarious! 😅😅

  • @GenAIWithNandakishor
    @GenAIWithNandakishor 3 роки тому +510

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

  • @calvinlee1127
    @calvinlee1127 3 роки тому +51

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

  • @faikyesilyaprak8761
    @faikyesilyaprak8761 3 роки тому +70

    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

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

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

  • @raphaelados3909
    @raphaelados3909 3 роки тому +1

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

  • @dev10shah
    @dev10shah 3 роки тому +1

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

  • @siddhantindave6391
    @siddhantindave6391 2 роки тому +3

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

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

  • @user-en5gx2nf8u
    @user-en5gx2nf8u 3 роки тому +17

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

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

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

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

  • @alexisadr
    @alexisadr 3 роки тому +7

    Thank u for creating and sharing this type of content!

  • @selvamthiagarajan8152
    @selvamthiagarajan8152 2 роки тому +2

    This is amazing. You deserve a nobel prize.

  • @sayandas3547
    @sayandas3547 2 роки тому

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

  • @aryanesmaili2069
    @aryanesmaili2069 2 роки тому +3

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

  • @thelazybusygamer
    @thelazybusygamer 3 роки тому +1

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

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

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

  • @Xnothen
    @Xnothen 3 роки тому +12

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

  • @qaiserbozdar1542
    @qaiserbozdar1542 3 роки тому +8

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

  • @actionkey8042
    @actionkey8042 3 роки тому

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

  • @futuremakersworkshop5846
    @futuremakersworkshop5846 3 роки тому

    You are the best teacher i had seen

  • @confusedtoad8757
    @confusedtoad8757 3 роки тому +1

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

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

  • @frankdearr2772
    @frankdearr2772 День тому

    Great topic, thanks 👍

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

  • @etechhow5678
    @etechhow5678 Рік тому

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

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

  • @Itz_Anim_Hub
    @Itz_Anim_Hub 3 роки тому +1

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

  • @MuhammedBasil
    @MuhammedBasil 3 роки тому

    Thanks for sharing. It is very comprehensive.

  • @krumss
    @krumss 3 роки тому +2

    underrated channel

  • @fahadahmed480
    @fahadahmed480 3 роки тому

    Thank you so much for these tutorials

  • @krishnaraj3989
    @krishnaraj3989 3 роки тому +18

    Dammmmmmmmmmmmm. This is ridiculously cool!

  • @markpretorius6854
    @markpretorius6854 3 роки тому +1

    Great job once again buddy

  • @JaredTilston
    @JaredTilston 2 роки тому

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

  • @saimohankrishnabandarupall8785
    @saimohankrishnabandarupall8785 3 роки тому

    amazing tutorial. do more like these

  • @TejrajParab
    @TejrajParab 3 роки тому

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

  • @python-ml-ai1323
    @python-ml-ai1323 3 роки тому

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

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

  • @aligassaloglu5079
    @aligassaloglu5079 3 роки тому

    Thank you for your precious knowledge :)

  • @khalidben9940
    @khalidben9940 3 роки тому

    This is impressive.Congrats

  • @averno6174
    @averno6174 3 роки тому +3

    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 роки тому

      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 2 роки тому

      Hello! can i get the right code?

  • @mrdjangajic7439
    @mrdjangajic7439 2 роки тому

    You are very good teacher!

  • @gokulbmishra
    @gokulbmishra 3 роки тому +4

    Awesome , this is what I was looking for, thanks

  • @sayanchowdhury6139
    @sayanchowdhury6139 3 роки тому

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

  • @kintipukintipu3987
    @kintipukintipu3987 3 роки тому

    Great video, like always..!! THX

  • @abellachannel6050
    @abellachannel6050 2 роки тому

    Thank you so much for your great video!

  • @ashrafelansary8804
    @ashrafelansary8804 2 роки тому

    You always doing the best because you are the best 😎

  • @duo2375
    @duo2375 3 роки тому

    This is so freaking cool man!

  • @TheFireedman
    @TheFireedman 3 роки тому

    really nice video, i have learn a lot thank you

  • @TheKansi2
    @TheKansi2 3 роки тому +1

    Quite nice project! 👏

  • @robomatics697
    @robomatics697 3 роки тому

    Bhai gjb ka series ❤️❤️😂

  • @em11l
    @em11l 3 роки тому

    Nice video. Found it very helpful.

  • @kalpeshpatil8967
    @kalpeshpatil8967 3 роки тому +1

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

  • @rayanetube7074
    @rayanetube7074 8 місяців тому

    You're a legend ! Thank you

  • @ahmedaljumaili521
    @ahmedaljumaili521 3 роки тому

    Great tutorial keep it up 💯

  • @user-fq3jj1wj9c
    @user-fq3jj1wj9c Рік тому

    To be honest, this is really cool.

  • @Mohta69
    @Mohta69 3 роки тому +1

    very cool video keep it up👍

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

  • @shubhamsharma7460
    @shubhamsharma7460 3 роки тому

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

  • @anthony6841
    @anthony6841 3 роки тому

    you are a very good man, thank you :)

  • @hienphan9944
    @hienphan9944 2 роки тому

    Wow I liked your video.Good job

  • @mohammedfawaaz693
    @mohammedfawaaz693 3 роки тому +2

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

  • @tronicking2071
    @tronicking2071 2 роки тому

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

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

  • @dimitripartoni9232
    @dimitripartoni9232 2 роки тому

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

  • @BystroCoder
    @BystroCoder 2 роки тому

    Thank you sir for this tutorial.

  • @mishisareen4925
    @mishisareen4925 3 роки тому

    Your videos are awesome!!!!!!

  • @G2Chanakya
    @G2Chanakya 3 роки тому +1

    Ok am subbing u. Worth it.

  • @adityabikramarandhara9477
    @adityabikramarandhara9477 2 роки тому

    Thanks for this wonderful 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 3 роки тому

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

    • @josebarria3233
      @josebarria3233 3 роки тому

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

  • @inkognito8020
    @inkognito8020 Місяць тому

    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

  • @nikshepkulli
    @nikshepkulli 2 роки тому

    Awesome tutorial ❤️

  • @mohamedhabiboullahelhoubab6079
    @mohamedhabiboullahelhoubab6079 3 роки тому

    you'r the best Murtaza

  • @karlos-oliveira
    @karlos-oliveira 3 роки тому

    Fantastic, tks for share!!

  • @akm1712
    @akm1712 3 роки тому

    Thanks for this amazing video

  • @pikkaboogaming6054
    @pikkaboogaming6054 3 роки тому

    Woow it's amazing 🔥🔥🔥

  • @aasaialangaram6847
    @aasaialangaram6847 3 роки тому

    Amazing tutorial sir

  • @CodeWithJoe
    @CodeWithJoe 3 роки тому

    is there a library for ubuntu? I cant make it work with pycaw on ubuntu since its for windows and i dont have windows

  • @priyanksisodia5889
    @priyanksisodia5889 3 роки тому

    This was amazing

  • @somebody88888
    @somebody88888 11 місяців тому

    Thank you for your effort and great value videos!

  • @MyStarPeopleExperiences
    @MyStarPeopleExperiences 2 роки тому +1

    Does your computer vision course cover linear algebra math libraries and other similar computer vision libraries?

  • @paulkiragu8120
    @paulkiragu8120 3 роки тому +4

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

  • @Bianchi77
    @Bianchi77 2 роки тому

    Cool video, thanks :)

  • @mustafakhalil007
    @mustafakhalil007 2 роки тому

    gave me a glue how to start with y from zero ! Thanks

  • @theshayarana556
    @theshayarana556 3 роки тому

    you are awesome bhai.....

  • @hoatruong2474
    @hoatruong2474 2 роки тому

    The video is so great and excellent. Say I have 2 screen displays: 1 is my laptop and 1 is my monitor. Usually I have to click the mouse to the display that I want to type or use. Is there any way that we can use gesture to click on the screen that we want? Say number 1 is for the laptop screen, and number 2 is for the monitor.

  • @rashmikasharma9342
    @rashmikasharma9342 8 місяців тому

    very cool project nice

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

  • @leosmi1
    @leosmi1 2 роки тому

    Thank you so much!

  • @VoldraLightningfrost
    @VoldraLightningfrost 2 роки тому

    Well done!

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

  • @theblack6339
    @theblack6339 3 роки тому +18

    I can only print hello world and i am here!😇