AI Virtual Mouse | OpenCV Python | Computer Vision

Поділитися
Вставка
  • Опубліковано 22 сер 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 UA-cam 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...
    👉 UA-cam 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

КОМЕНТАРІ • 993

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

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

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

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

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

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

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

  • @Yourwelcome176
    @Yourwelcome176 2 роки тому +8

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

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

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

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

  • @trojan606
    @trojan606 2 роки тому +7

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

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

    • @user-du9ty8gi9n
      @user-du9ty8gi9n День тому

      @@learn3045 is it workingg

  • @AdityaSingh-el3bj
    @AdityaSingh-el3bj 9 місяців тому +2

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

  • @Parisneo
    @Parisneo 3 роки тому +5

    With mediapipe library, this is a peace of cake!

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

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

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

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

    I hope you would get in future billions of subscribers.

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

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

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

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

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

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

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

  • @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: ua-cam.com/video/xb5Xe8eE_Jw/v-deo.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

  • @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: ua-cam.com/video/xb5Xe8eE_Jw/v-deo.html

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

      @@ishitagoyal1631 to install autopy and mediapipe watch this video: ua-cam.com/video/xb5Xe8eE_Jw/v-deo.html

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

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

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

  • @laythabdulkareem1887
    @laythabdulkareem1887 3 роки тому +5

    You are incredibly awesome....

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

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

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

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

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

  • @devbathani8020
    @devbathani8020 3 роки тому +6

    Congratulation on 100k ❤️ 👍👍👍👍👍

  • @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 UA-cam, and there you were
    Come on!! You read my mind

  • @SIR_Studios786
    @SIR_Studios786 Рік тому +1

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

  • @__________________________6910
    @__________________________6910 3 роки тому +5

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

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

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

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

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

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

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

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

    Really man this is amazing !!! 🤞

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

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

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

    Actually I have a doubt, the height which you have set in this algorithm whether it is predefined or else you chose it by yourself?

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

      chose it by himself,you can change the value yourself

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

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

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

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

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

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

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

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

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

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

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

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

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

  • @behindthescreen2591
    @behindthescreen2591 8 місяців тому +1

    mediapipe not install in pycharm
    can you help for fix

  • @priyadharshinia1382
    @priyadharshinia1382 Рік тому +1

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

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

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

  • @nelsonabtmeyer8739
    @nelsonabtmeyer8739 9 місяців тому +1

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

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

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

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

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

    I really love your teaching

  • @Ivystra
    @Ivystra Рік тому +1

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

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

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

  • @vectorvasu
    @vectorvasu 8 місяців тому +2

    All workshops are not working

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

    getting error handtrackingmodule has no attribute name handdetector

  • @chetanmahajan7658
    @chetanmahajan7658 Рік тому +1

    Unable to install Autopy
    Tried many times

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

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

    I am unable to install autopy it gives an error each time, I have also gone through the website but the instruction couldn't resolve my error. Pls help, how can I install autopy, would really appreciate your help.

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

      Download python 3.7.9, install it, and select that exe file as the interpreter in pycharm settings. Then install all necessary packages

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

      @@nomad4253 that doesn't help as i have to manually install packages through cmd

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

      @@yuvrajjadhav8270 No u don't have to. I think you are selecting interpreter 3.9 but use 3.7
      let me know if it works :)

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

      @@nomad4253 Thanks a lot bro... It actually worked for me

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

    For anyone trying to do this project now, don't.
    The current code that he's using is outdated and does not work with the new framework of mediapipe, even if you roll back your interpreter to an older one, such as in this video it still won't work so you are wasting your time here. I spent 2h trying to figure out why the code doesn't work just to find a bunch of one year old messages on Stack Overflow that this way of writing code is outdated and is no longer supported or valid.

  • @user-bpbi76tffjo87
    @user-bpbi76tffjo87 5 місяців тому

    Hello, I really appreciate your tutorials, they helped me a lot. I have one problem, I'm faced with the fact that it gives out little fps. I read articles that say it depends on the system, but I have a 3060, i5 10400f and 16 ram. Is this really not enough? If not, what else could be the problem?

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

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

    Hello!
    Can you help me? I have some problems The program return error
    File "C:/Users/shkry/PycharmProjects/MouseAi/main.py", line 28, in
    lmList, bbox = detector.findPosition(img)
    ValueError: too many values to unpack (expected 2)

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

      @Maxwell Pi I've tried this already. It did not help.

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

      Hi
      There are some changes in HandTracking Module, make changes in that code after that your code will execute.

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

      @@lepsygoyal283How can I download the source code? Tabulation is broken on the site.
      Everything worked out, thank you very much

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

      @Lepsy Goyal could you share those changes in code of HandTrackingModule.py
      Pls bro! I'm worried from 2days,🙂

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

    Thanks for providing this awesome video.

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

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

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

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

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

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

    How to install Autopy as the Error occurred when installing packing 'autopy'? 3:32

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

      Facing the same problem

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

      It didn't work

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

      @@mohammadkanaan3043 Just install python 3.7, it worked for me. I am using PyCharm
      I hope it will help you :)

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

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

    Can anyone help with autopy installation. I can't download it because I have an error.

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

    Dude, you are the exactly best in the world!

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

  • @ijustkidding877
    @ijustkidding877 Рік тому +1

    can you help me i cant install autopy

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

  • @mrunalikamble530
    @mrunalikamble530 7 місяців тому +1

    Which IDE you have used?

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

  • @Tan_cannon
    @Tan_cannon 7 місяців тому +2

    how did u install autopy??

    • @555chaithanyakrishna8
      @555chaithanyakrishna8 5 місяців тому +1

      Yes, I also couldn't able to install aytopy.As it is showing me the below error:
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for autopy
      Running setup.py clean for autopy
      Failed to build autopy
      ERROR: Could not build wheels for autopy, which is required to install pyproject.toml-based projects
      python setup.py bdist_wheel did not run successfully.
      Would it work for python 3.10. ??

    • @ardu_radiokot1062
      @ardu_radiokot1062 5 місяців тому

      @@555chaithanyakrishna8 Autopy works on python 3.8 and not working on python 3.9 and up

  • @ardu_radiokot1062
    @ardu_radiokot1062 5 місяців тому +2

    Your code NOT working! Please fix it

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

    Really Awesome Video.

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

    Thank you so much for your sharing. I have a question relating to installing autopy. How could you solved the problem with error when installing autopy as your first tried.
    Thank you so much in advance

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

      It's better that you use a different module like pyautogui or pynput

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

      @@krishnaagarwal895 Thank you so much!!!

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

      i am also having problem installing auto py

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

    Keep up the good work!!

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

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

    why is detector = handDetector() giving an error?

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

    Sir do you work on laptop or use desktop for opencv? as i've desktop computer and dont know how to use opencv using usb cam/webcam. Kindly help me in this.

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

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

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

    Sorry to say that I am not able to install autopy library on windows 10x64

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

      It installs on Python 3.7.9

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

      @@nomad4253 Thank you, but I found its alternate (pyautogui)