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

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

  • @ahmetcihatboz
    @ahmetcihatboz 3 года назад +6

    I love what you are creating. Thank you for all of your videos-tutorials..!!

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

    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.

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

    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.

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

    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

  • @yeo-nyu
    @yeo-nyu 3 года назад

    Thank you for your video!

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

    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)

  • @user-bt4mj7hw4m
    @user-bt4mj7hw4m 3 года назад

    Thank you, Keep going!.

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

    You are the OpenCV God bro..

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

    Very good video! Thank you

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

    I love it very nice tutorial sir

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

    Great work 👍
    Can you do feature detection and texture detection of an object in real time moving object

  • @sakethgupta2885
    @sakethgupta2885 2 года назад +4

    Is it a god, is it a coder? Oh wait, its murtazas workshop, the legend

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

    super
    GREAT WORK

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

    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.

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

    By far the best channel on youtube to learn opencv
    You are an absolute legend.

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

    Murtaza's Workshop - Robotics and AI
    NICEEEEE

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

    Yes I learned New

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

    this literally is the first video I have seen with 0 dislikes ever in youtube
    true good content indeed

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

    Am i the only one whoo noticed that you can move your pinky without moving your ring finger. Great video!

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

    can we do this to like show some hand gestures or sign to activate and deactivate volume changing mode

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

    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?

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

    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

  • @juliam.lampreajulian.lampr5318
    @juliam.lampreajulian.lampr5318 3 года назад

    Hi, I wonder, could be installed mediapipe library in raspberry pi?. Thanks for the great video.

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

    this man doesn't get enough of it

  • @sy-gamer9556
    @sy-gamer9556 3 года назад

    Can we create using tenserflow

  • @NishantKhaladkar
    @NishantKhaladkar 3 года назад +3

    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.

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

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

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

      @@rishabhrawat7856 Pylint : Code ia not accessed is the error... And I am still looking for solution

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

    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

  • @theprocode4394
    @theprocode4394 2 года назад +4

    , 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

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

      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.

  • @user-cz3ct3ri7o
    @user-cz3ct3ri7o 8 месяцев назад

    Which is software to use coding for python

  • @da-wah
    @da-wah 3 года назад

    Can I make an article about this project?

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

    Will that work with mac?

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

    How can I make this into a mobile app using kivy

  • @AstroShibaOfficial
    @AstroShibaOfficial 11 месяцев назад +1

    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

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

    I wonder how he able to move his little finger with thumb and index fingers together

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

      I was going to comment this

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

    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 :(

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

    Hii were to get HandDectionModule

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

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

  • @nagarajaprabhu5595
    @nagarajaprabhu5595 2 года назад +2

    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

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

      did you define the myHand variable first before using it?

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

      sometimes i also get this error im facing that when i close my hand

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

      did you get a solution?

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

    Also sorry, I'm using the Linux version of the Jetson Nano on Linux and Code-oss wasn't able to find mediapip

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

    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?

    • @ik1bdimassalahuddin946
      @ik1bdimassalahuddin946 2 года назад +2

      same problem

    • @lyliandubost2491
      @lyliandubost2491 Год назад +1

      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

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

    Everything was fine in the first part but in this part it made me so confused.that I started searching for another tutorial

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

    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'

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

      @milan. thanks, i had the same issue

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

      @@pedronicory9481 what's the solution to this issue?

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

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

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

    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'

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

    how can i deploy this application real time without having to run this code all the time

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

    This is some Tony Stark top level shit.

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

    same mouse with mine

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

    How to convert it to exe

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

    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 ✌

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

    85th viewer

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

    1st like 1st comment

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

    🙋🙋

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

    1 st liker

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

    bro i get some errors please help me with that please