AI Virtual Mouse | OpenCV Python | Computer Vision

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • In this video, we are going to create an AI-based Mouse Controller. We will first detect the hand landmarks and then track and click based on these points. We will also apply smoothing techniques to make it more usable.
    🚀🚀 My Urdu/Hindi AI RUclips Channel 🚀🚀
    / @murtazahassan01
    Download Code:
    www.computervi...
    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.computervi...
    👉 My PC Specs 🖥️: www.computervi...
    👉 My Video Shooting Gear📽️ : www.computervi...
    👉 My Laptops 💻: www.computervi...
    👉 Educational Products🧑‍🎓: www.computervi...
    👉 RUclips Starter Kit 🔴: www.computervi...
    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

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

  • @raghav6413
    @raghav6413 3 года назад +60

    this is the kind of stufff i dreamed to do when i started codin..... thanks for this amazing video.... deserves a sub

    • @Mohan_2703
      @Mohan_2703 5 месяцев назад +1

      Can you please share your code ?

  • @inevitablegaming9365
    @inevitablegaming9365 2 года назад +9

    Thanks a lot for sharing bro.
    it works!
    Who ever faces problem while executing, install pycharm and make sure that the python version is 3.7, mediapipe 0.8.10 and autopy 4.0.0 . It worked for me.

    • @darts_ue.unreal
      @darts_ue.unreal 2 года назад

      Hello Bro...
      Please Help Me I Got Some Error

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

      exactly 3.7 or above 3.7?

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

      @@DosawadaAdithya exactly 3.7

    • @Mohan_2703
      @Mohan_2703 5 месяцев назад +2

      There is no 0.8.10 in mediapipe it shows only 0.8.11
      What can I do?

    • @Mohan_2703
      @Mohan_2703 5 месяцев назад +1

      Can you please share your code?

  • @tarbiarswat7659
    @tarbiarswat7659 3 года назад +45

    Bro how fast your brain works? You are really amazing. You are getting on a maximum level in AI

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

      Lol thank you

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

      @@murtazasworkshop
      Sir the code you given is not working completely even after I set video capture(0) please help.

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

      @@murtazasworkshop I have a question, how to learn "IA"?

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

      @@murtazasworkshop pycharm . Which version sir

  • @nagaki9294
    @nagaki9294 3 года назад +47

    For anyone have problem with open the webcam, just change the number in func "cv2.VideoCapture(1)" to "cv2.VideoCapture(0)". 'cause the device number might be 0 or 1 depending on the device and the webcam.

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

      my problem is autopy. I can't install it

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

      @@ramdomapplication whats your python version? I can install in python 3.8

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

      @@iampalop4228 I have version 3.10

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

      @@ramdomapplication install python 3.8 version uninstall python 3.10 restart use command pip install in terminal and always select python 3.8.0(64 bit) inteprator if using mediapipe

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

      @@sourcecloud6061 how you installed opencv in python 3.8.0

  • @Realiziumworldwide
    @Realiziumworldwide 3 года назад +9

    Whatever India vs Pakistan... You're from Pakistan and I'm from India. You're the best and changing lives.🔥🤗 Loved your tutorials. If I'm able to choose a teacher. Definitely I will choose you.🌟🌟

  • @SaifUllahKhan-pu1kf
    @SaifUllahKhan-pu1kf 3 года назад +111

    Can somebody get this man a million subscribers.

    • @murtazasworkshop
      @murtazasworkshop  3 года назад +21

      Thank you for your kind words. With you solid support it does not feel far away.

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

      how did your autopy worked ?
      I am getting problem in installing it.

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

      @@visheshmalhotra4448 you can go to your command prompt and write pip install autopy, or terminal if you use Mac

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

      @@moking8646 not install dude

  • @edSabio572
    @edSabio572 3 года назад +11

    I am one of the future million subscribers who has benefited from this module. The the hardest choice is what course to buy...

  • @snjx-6o9s60
    @snjx-6o9s60 3 года назад +24

    Hello Murtaza Thank You For The Amazing Cv Lessons, Your Explaining Is So Good I'd Love To Learn Python In The First Place Because Of Your Explaining & I'll Be Happy If There Is Any Courses For Python Basics From You That I Can Watch Or Buy

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

    Great video dude,
    I want u to have million of subscribers one day!
    Love from india❣

  • @trojan606
    @trojan606 2 года назад +7

    Helal olsun hocam elinize sağlık sizin gibi insanlara ihtiyacımız var 👏

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

    I was literally thinking about it after seeing your hand tracking video

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

      Me too🙏

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

      I made the similar project using pynput but couldn't smooth out the motion as he did.

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

      @@shubhammodanwal6713 maybe it's laptops camera problem

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

      @@rushangkasundra3956 I am using my phone as external wifi webcam

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

      Same, I was wanting to do it, than this guy post a tutorial on how to make it, I think he's reading our mind xD

  • @user-zv9hs1bf5s
    @user-zv9hs1bf5s 2 года назад +5

    Thanks for your sharing a lot!
    I’ve subscribed your channel immediately,
    I feel very fortunately to watch it right now.
    It’s very clear and easy to understand!
    Hope you can continually update,
    Wish you have good luck in everything!

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

    Thank you bro! you are amaizing... more Murtaza's in the world, please...

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

      Lol Thank you

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

      Bro am facing problem in installing autopy, how to fix it
      .

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

      @@bhavanap1140 same here

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

      If you are facing a problem with installing autopy, then use python 3.6.
      Or you can use an alternative of it. Like Pyautogui. It works like a charm when I first tried.

  • @AdityaSingh-el3bj
    @AdityaSingh-el3bj 8 месяцев назад +2

    Not able to find the distance between the two finger in detection mode

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

    I hope you would get in future billions of subscribers.

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

    You are an amazing guy! This is so helpful. Thankyou very much!!

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

    Really man this is amazing !!! 🤞

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

    I click like with my fingers!
    Thanks for the knowledge.
    Greeting from Portugal

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

    With mediapipe library, this is a peace of cake!

  • @jakewalls5991
    @jakewalls5991 2 года назад +8

    For those getting "indexerror: list index out of range" when your hand is off camera. Try adding a Try: Except: to the if statements in the fingersup function and put fingers.append(0) in the except

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

      should i just replace " if to try: " and " else to except"

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

      Thanks a lot everyone should be like you how caring you are nice 👍👍

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

      Same problm m facing bro , BUT i didnt understand what to put in "try" and what to put in "except" statement.

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

      can you please tell me how you solve this error can't understand what you are trying to say

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

      @@azanemuhammad2055 there's an mis-indentation in original source code he posted on his website. try indent some lines fo code

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

    You are incredibly awesome....

  • @Yourwelcome176
    @Yourwelcome176 2 года назад +8

    detector = htm.handDetector(maxHands=1)
    AttributeError: module 'HandTrackingModule' has no attribute 'handDetector'

  • @TheLostCompany010
    @TheLostCompany010 10 месяцев назад +1

    TypeError: create_int(): incompatible function arguments. The following argument types are supported:
    1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet

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

    for those facing problem with autopy or mediapipe installation
    i creat a developement environnement with anaconda, and install all what i need.
    than i use this env as interpretor , and when i need new dependencies, i just go to anaconda prompt, conda activate nameOfMyEnv and than pip install whatINeed
    my env use python 3.8 and everything works, but i see peoples resolving this with changing to python 3.7

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

    The autopy error is not resolving can u fix this.

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

      did u get the solution?

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

      @@ishitagoyal1631 nope, but u can use another package called pyautogui , which is more efficient than autopy

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

      to install autopy and mediapipe watch this video: ruclips.net/video/xb5Xe8eE_Jw/видео.html

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

      @@ishitagoyal1631 to install autopy and mediapipe watch this video: ruclips.net/video/xb5Xe8eE_Jw/видео.html

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

    Sir, you are legend. I learnt a lot from you. Make more videos like this. ❤️

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

    I did it before you but it was very slow and noisy
    Thanks it is very helpful video

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

    A LOT OF THANKS! You have made possible one of my dreams when I started with computers. Regards!

  • @MayankSingh-bo3xo
    @MayankSingh-bo3xo 2 года назад +4

    Sir the handDetector function is not present in the hand tracking module. I am receiving an attribute error.

    • @mesostonks
      @mesostonks 6 месяцев назад

      same error

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

      same error give me solution@@mesostonks

  • @yogapratamasalim6614
    @yogapratamasalim6614 2 года назад +5

    Hallo I'm from Indonesia. I have a question Sir
    What algorithm did you use to make this project?
    I need a theoretical basis for my report.

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

      here sir uses hand landmark detection and hand gesture recognition .Hand landmark using mediapipe(knn algorithm -21 key points) and hand gesture recognition using convolution neural network .When your gesture is recognised it performs the operation.
      I am not sure,but this is the best of my knowledge.

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

    How do I install autopy package?
    Error occurred when installing autopy package

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

    i can not get package of autopy it is giving error while installing
    what to do ?

  • @1-minutesanimation853
    @1-minutesanimation853 2 года назад +7

    bro can you make a video on "How to download mediapipe and autopy" please because I can't install it

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

      to install autopy and mediapipe watch this video: ruclips.net/video/xb5Xe8eE_Jw/видео.html

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

      try using python version 3.7.9

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

      use python 3.8.0 only this version of python can install mediapipe and autopy easily

    • @1-minutesanimation853
      @1-minutesanimation853 2 года назад

      @@Chronicsco It worked thx

    • @1-minutesanimation853
      @1-minutesanimation853 2 года назад

      @@NotOm32 Same ur idea worked too thx

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

    how to solve?
    Traceback (most recent call last):
    File "D:/ml projects/AiVirtualMouseProject.py", line 27, in
    lmList, bbox = detector.findPosition(img)
    File "D:\ml projects\HandTrackingModule.py", line 49, in findPosition
    xmin, xmax = min(xList ), max(xList)
    ValueError: min() arg is an empty sequence

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

    sir i get this error
    Traceback (most recent call last):
    File "c:/Users/Asus/Documents/projek python/Coding/AImouse.py", line 20, in
    detector = htm.handDetector(maxHands=1)
    File "c:\Users\Asus\Documents\projek python\Coding\HandTrackingModule.py", line 24, in __init__
    self.detectionCon, self.trackCon)
    what should i do to fix it ?

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

      Bro same error have you find the solution?

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

    Sir/brdr, you'll not believe I was thinking how could I develop hand tracking to mouse hovering, since past few days, and I just opened RUclips, and there you were
    Come on!! You read my mind

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

    Congratulation on 100k ❤️ 👍👍👍👍👍

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

    Can you make a video on how to detect specific mouse movement patterns ? such as detecting if I make the pattern of a number 4 or whatever.

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

      Yes

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

      This guy uses pretrained models

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

      Training models is a bit hard. You can train the neural net to do almost anything using tensor flow . Honestly u learn almost nothing from here if u are an intermediate coder

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

    You are amazing buddy.. I love your content. have referred your channel to several others

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

    Very few people in the world can create , innovate and you are one of them.

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

    I'm facing this problem.
    if self.lmList[self.tipIds[0]][1] > self.lmList[self.tipIds[0] - 1][1]:
    IndexError: list index out of range
    Kindly someone help me out here. Thank you so much

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

      me toooooo. Did you fix that?

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

      @@zhongjiarui6329 Not yet
      But we have declared lmList as follows
      self.lmList=[] but we are passing elements as if it's 2D array. So I guess that's why we're facing an issue

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

      Me too
      Please inform if you fixed it

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

      I am also getting the same error..can anyone please help me.

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

      Same issue

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

    Hii sir
    Thanks for the videos
    I am not able to install autopy in my pycharm
    I have tried with a lot of things like updating pip, rustup tec. But i am still not able to install the package.
    Kindly help.

  • @behindthescreen2591
    @behindthescreen2591 8 месяцев назад +1

    mediapipe not install in pycharm
    can you help for fix

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

    hi there, i have problem when import HandTrackingModule, the error is ModuleNotFoundError: No module named 'HandTrackingModule', can someone help me with this problem?

  • @statusworld-hj5jj
    @statusworld-hj5jj 3 года назад +3

    AttributeError: module 'HandTrackingModule' has no attribute 'handDetector'
    plz help me

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

      unistall cvzone and down grade it's version to 1.4.1 then the program should work just fine, handDetector attribute has been removed frrom HandTrackingModule in later versions of cvzone 🤓

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

    can we add more functionalities to this project like adding the right and left clicks of mouse , scrolling , etc ... can u give some ideas for that ????

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

      yes you can, just check the documentation of the autopy. but in this case I use pyautogui instead of autopy

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

      @@farlanded5179 can you send me the code to your program

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

    Hey! I'm having troubles installing autopy. Any help?

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

    New Window named "Image" is not opening at my end when I run the code.
    o/p : hi,pycharm. What to do..?

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

    Hello, excuse me. how they solved the problem of installing autopy in pycharm

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

      how did you install autopy ?

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

      @Satyam Shashank Karan hi, I installed auntopy from the console, in my corresponding env. and I also did it in the conventional way the pycharm, as it does in the video. is rare. Anyway, I solved it by working on another ide, and I could also change that library in pycharm for another that does the same.

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

      @@cristianmorilla8631 i tried using pycharm as well.. and also with cmd but still I cannot install. can you help me out

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

      ​@@satyamshashankkaran5886 Last week this did not work for me, I am in exam period but I send the same code without the implementation of savisado and using the library as a class within the same notebook, the comments are in Spanish I think

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

      Please send me out

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

    The project is so great anyways i am getting some errors in the code please help:-
    xmin, xmax = min(xList), max(xList)
    ValueError: min() arg is an empty sequence
    getting this error code in findPosition ()

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

      I got the same error in VS Code, write the code again but with autocomplete. It worked for me :)

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

      Traceback (most recent call last):
      File "C:/Users/HP/PycharmProjects/VirtualPaintCV/Count Finger.py", line 36, in
      fingers = detector.fingersUp()
      File "C:\Users\HP\PycharmProjects\VirtualPaintCV\HandTrackingModule.py", line 72, in fingersUp
      if self.lmList[self.tipIds[0]][1] > self.lmList[self.tipIds[0] - 1][1]:
      IndexError: list index out of range
      [ WARN:1] global C:\Users
      unneradmin\AppData\Local\Temp\pip-req-build-_8k9tw8n\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
      - Bro this error is coming

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

      @@nojoreduniya U have written the code again with auto complete?

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

      @@nbjayson1947 Yes bro

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

    Was wondering if you could show how to see the methods inside of a package like mediapipe so we know some of the options
    that are available. Thanks.

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

    Wow Thank you so much for this video, what a great help. It works perfectly. My windows is activated now. LIKED AND SUBSCRIBED

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

    Hey! I got an error in this. I have been working on this for quite long now and it isn't solving. While running AiVirtualMouseProject.py, it gave an error in " if self.lmList[self.tipIds[0]][1] < self.lmList[self.tipIds[0] - 1][1]:
    IndexError: list index out of range"
    I understand its meaning, but somehow i am not able to sort this out. If someone could tell me how to correct it, or connect somewhere to clarify, that would be great.
    Thakyou ❤️

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

      I have the same problem

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

      I am getting the same error, have you solved the issue??

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

      @@batulbohra4431 have u find the solution? Please tell me

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

      @Urmila Singh do you got any solution please post it would be really helpful..

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

      I found that this error fires when it can't find fingers (maybe hand out of camera), so lmList is empty.
      I wrapped code in fingersUp
      if len(self.lmList):
      ......
      else:
      fingers=[0,0,0,0,0]

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

    error lmList, tuple out of the range
    i did this also
    if len(lmList)!=0:
    print(lmList[4])
    but same error
    what i can do?

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

    I keep getting error on HandTrackingModule
    . >>AttributeError: module 'HandTrackingModule' has no attribute 'handDetector'

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

    You are so amazing.. teaching all the complex things super simply.. i have learned a lot from you.. thank you..

  • @ComputerScienceWithBas
    @ComputerScienceWithBas 2 года назад +5

    Sir whenever i am watching your tutorial, one or two modules are always updated and then exact source code doesn't work. Now that becomes a bit difficult to track the chhange in the module. if the module is updated, can you please inform us about the new code as that would be helpful.

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

      Yeah bro the code doesn't works

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

      @@aswingopinathan2516 i mean it works, but that thing is that some module fucntions get updated and figuring out the updated syntax of the new module is a bigger challenge.

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

    Hello, I'm pretty interested in this project since I'm doing the same one and I have a question, is it possible to combine this project with background subtraction method to make the program detect the hand in outdoors area or complex background easier?

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

      Why does PyCharm not see the module "HandTrackingModule" ? I have installed all libraries. Please help

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

      @@Lui_trisha we are also dealing with the same problem had you find the solution for this in problem please give and help us

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

      @@Lui_trisha have you installed in the same folder?

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

      @@lechihieu2606 No, I recorded the tracker myself. The author has a site where you can find a lesson where a link is given to the text "HandTrackingModule" It remains only to copy the text and transfer it to PyCharm

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

      ​@@thirugnanas4605 The author has a site where you can find a lesson where a link is given to the text "HandTrackingModule" It remains only to copy the text and transfer it to PyCharm

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

    Sir, I have been following, you really changed my taste (in terms of CS domain😂)

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

      I got a error in handTrackerModule.py file in line no. 15 please tell me if u didn't get any error!

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

      @@savvyprogrammer ohkay, I'd like to see your code

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

      @@rishabhpant1828 how??

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

      @@savvyprogrammer we can have connect in comment section in your channel's only video

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

      @@rishabhpant1828 sure please🙏

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

    Unable to install Autopy
    Tried many times

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

    getting error handtrackingmodule has no attribute name handdetector

  • @vectorvasu
    @vectorvasu 8 месяцев назад +2

    All workshops are not working

  • @nelsonabtmeyer8739
    @nelsonabtmeyer8739 9 месяцев назад +1

    Hi Guys. Does this project works on a Mac aswell?

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

    Keep up the good work!!

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

    I found that error
    "if self.lmList[self.tipIds[0]][1] < self.lmList[self.tipIds[0] - 1][1]:
    IndexError: list index out of range"
    fires when it can't find fingers (maybe hand out of camera), so lmList is empty.
    I wrapped code in fingersUp
    if len(self.lmList):
    ......
    else:
    fingers=[0,0,0,0,0]
    Or just place code #3-10 in main file under `if len(lmList) != 0:`

    • @user-nz1qs8ik1l
      @user-nz1qs8ik1l Год назад

      'handDetector has no attribute 'tipIds' - I'm having this error, what to do?

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

    I really love your teaching

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

    Thanks for providing this awesome video.

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

    Autopy is not installing in my system any suggestion sir even if i try many times

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

    I want to add extra like when I snap my finger it will close every program in computer which is running how can I add that

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

    Nice video, thanks :)

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

    Really Awesome Video.

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

    Dude, you are the exactly best in the world!

  • @mr.jaidoshi4082
    @mr.jaidoshi4082 3 года назад +2

    In my pycharm editor mediapipe is not getting installed
    Can some help me out
    Error is error: could not find a version that satisfies the requirement mediapipe (from versions: none)

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

    Hi, the autopy lib doesn't install in my system. I tried all the ways. Is there any alternative to autopy?

    • @ghostX8248
      @ghostX8248 9 месяцев назад

      downgrade python to 3.8 should work fine

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

    THE BEST RUclips CHANNEL!!!!

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

    the second you have given is not properly intended the hand one can you please update that 👋🏼

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

    can you help me i cant install autopy

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

    I am getting "code not accessible" Pylance error in the hand tracking module.Someone please help me

  • @kocakgamingsumbawa974
    @kocakgamingsumbawa974 2 месяца назад

    Sir, where can I get mediapipe version 0.8, HandTrackingModule can run on mediapipe 0.8 and mediapipe no longer provides mediapipe version 0.8 now starting from version 0.9

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

    thank you man really thank you you are a real hero for persons like me cause you are providing this stuff for free while others are not. btw, can you make a video on a ai assistant like google like controlling phone

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

    why is detector = handDetector() giving an error?

  • @LaurenEdwards-lg7ex
    @LaurenEdwards-lg7ex 2 месяца назад

    so cool!

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

    I can't install autopy in python 3.9 please help

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

    hello i am having this error:
    File "D:\py programs\AI_mini_PROJECT\mouse\HandTrackingModule.py", line 65, in fingersUp
    if self.lmList[self.tipIds[0]][1] > self.lmList[self.tipIds[0] - 1][1]:
    IndexError: list index out of range.
    Does anybody know how to solve it?

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

      DO you got the solution ? @rajeev k

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

      def fingersUp(self):
      fingers = []
      if len(self.lmList):
      if self.lmList[self.tipIds[0]][1] > self.lmList[self.tipIds[0]-1][1]:
      fingers.append(1)
      else:
      fingers.append(0)
      for id in range(1,5):
      if self.lmList[self.tipIds[id]][2]< self.lmList[self.tipIds[id]-2][2]:
      fingers.append(1)
      else:
      fingers.append(0)
      else:
      fingers = [0,0,0,0,0]
      return fingers

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

    It was an awesome video. Your ideas are brilliant. I am expecting some more videos on object detection, tracking, objectron from the mediapipe library. Keep up the good work.

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

    IT's just awesome. THank you!

  • @kishorei28
    @kishorei28 3 месяца назад +1

    In the error shows in the detector line sir how to clear it

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

    i cant install autopy. its filed install

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

    I have signed up on your site, and was following this AI Virtual Mouse. however, i'm not being able to install "autopy", it's keep giving error. tried to follow instruction from autopy site, but no luck. can u advise any workaround please. thanks in advance

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

      The same error occurred to me but don't worry You may be using Python 2.9 or above version but autopy supports till Python 3.8 version you can see on the pypi website. I resolved the issue by downloading version 3.7.9
      Hey, don't worry about older versions you can install both the versions on your pc to use them just switch the path of your compiler. You can follow tutorials to install older versions.
      Best of LUCK.

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

    i dont know but my autopy is not installing can someone please help me

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

    Hey man love your videos. If possible make a video on "playing gta or any other game using hand tracking"

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

    Can you provide the link for the first part of this project where you wrote the first part of the code? Thanks

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

    Greetings from Peru excellent video you are a great programmer I wish you many successes in your career Thank you for the explanatory video

  • @user-rq2ty7mp3x
    @user-rq2ty7mp3x 4 месяца назад

    Thanks for this useful video. I tried it myself too, and I'm wondering how I can run mediapipe on a GPU.

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

    ❤❤❤❤ dont have words to say about him. Love you bro.

    • @gauravm2189
      @gauravm2189 9 месяцев назад

      The curser is not moving as when i only up the index finger webcam is automatically closing. If you know please help me out

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

    Super tutorial sir but how to see the code as the link does not gives the code for anything pls do help

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

      Yes I am too having the same problem

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

    you project ideas excites me!!
    thanks :)

  • @VerveGD
    @VerveGD 4 месяца назад

    I could just go inspect every single funtion to check what it reutrns and what it does, but a detailed explanation would be much appreciated

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

    what is the name of the development software being used?

  • @mrunalikamble530
    @mrunalikamble530 7 месяцев назад +1

    Which IDE you have used?