AI Virtual Mouse | OpenCV Python | Computer Vision

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ค. 2021
  • 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 TH-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...
    👉 TH-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

ความคิดเห็น • 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 4 หลายเดือนก่อน +1

      Can you please share your code ?

  • @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 4 หลายเดือนก่อน +2

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

    • @Mohan_2703
      @Mohan_2703 4 หลายเดือนก่อน +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

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

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

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

  • @AdityaSingh-el3bj
    @AdityaSingh-el3bj 8 หลายเดือนก่อน +2

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

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

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

    • @TheLostCompany010
      @TheLostCompany010 10 หลายเดือนก่อน

      please urgent need of help @murtazasworkshop

    • @mayankverma2558
      @mayankverma2558 9 หลายเดือนก่อน

      same error

    • @suruthisusi7626
      @suruthisusi7626 8 หลายเดือนก่อน

      have you resolved the problem?

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

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

  • @Parisneo
    @Parisneo 3 ปีที่แล้ว +5

    With mediapipe library, this is a peace of cake!

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

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

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

    • @sushantagrawal2007
      @sushantagrawal2007 2 ปีที่แล้ว

      Same error...Were you able to solve it?

    • @sarathk39
      @sarathk39 ปีที่แล้ว

      Will u solved this?

    • @Swaraaz-ru9fc
      @Swaraaz-ru9fc 11 หลายเดือนก่อน

      Please help sir

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

  • @behindthescreen2591
    @behindthescreen2591 8 หลายเดือนก่อน +1

    mediapipe not install in pycharm
    can you help for fix

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

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

  • @SIR_Studios786
    @SIR_Studios786 ปีที่แล้ว +1

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

  • @Jorge_AS_Fernandes
    @Jorge_AS_Fernandes 2 ปีที่แล้ว +1

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

  • @laythabdulkareem1887
    @laythabdulkareem1887 3 ปีที่แล้ว +5

    You are incredibly awesome....

  • @notes3602
    @notes3602 3 ปีที่แล้ว +7

    Really man this is amazing !!! 🤞

  • @nelsonabtmeyer8739
    @nelsonabtmeyer8739 9 หลายเดือนก่อน +1

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

  • @priyadharshinia1382
    @priyadharshinia1382 ปีที่แล้ว +1

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

  • @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: th-cam.com/video/xb5Xe8eE_Jw/w-d-xo.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

  • @devbathani8020
    @devbathani8020 3 ปีที่แล้ว +6

    Congratulation on 100k ❤️ 👍👍👍👍👍

  • @trr3576
    @trr3576 3 ปีที่แล้ว +1

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

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

  • @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: th-cam.com/video/xb5Xe8eE_Jw/w-d-xo.html

    • @Chronicsco
      @Chronicsco 2 ปีที่แล้ว

      @@ishitagoyal1631 to install autopy and mediapipe watch this video: th-cam.com/video/xb5Xe8eE_Jw/w-d-xo.html

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

  • @Ivystra
    @Ivystra ปีที่แล้ว +1

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

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

  • @__________________________6910
    @__________________________6910 3 ปีที่แล้ว +5

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

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

  • @chetanmahajan7658
    @chetanmahajan7658 ปีที่แล้ว +1

    Unable to install Autopy
    Tried many times

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

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

  • @sergioernestotostadosanche5700
    @sergioernestotostadosanche5700 2 ปีที่แล้ว +2

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

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

  • @statusworld-hj5jj
    @statusworld-hj5jj 3 ปีที่แล้ว +3

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

    • @gabrielkasonde367
      @gabrielkasonde367 2 ปีที่แล้ว

      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 🤓

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

  • @GabrielStuchi
    @GabrielStuchi 2 ปีที่แล้ว +1

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

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

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

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

  • @rachittiwari8164
    @rachittiwari8164 3 ปีที่แล้ว

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

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

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

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

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

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

  • @dhanasureshadari3482
    @dhanasureshadari3482 2 ปีที่แล้ว +2

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

  • @ijustkidding877
    @ijustkidding877 ปีที่แล้ว +1

    can you help me i cant install autopy

  • @ashanmaduranga2344
    @ashanmaduranga2344 3 ปีที่แล้ว +1

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

  • @vectorvasu
    @vectorvasu 8 หลายเดือนก่อน +2

    All workshops are not working

  • @surajkumarsondagar9930
    @surajkumarsondagar9930 3 ปีที่แล้ว +2

    getting error handtrackingmodule has no attribute name handdetector

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

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

  • @LaurenEdwards-lg7ex
    @LaurenEdwards-lg7ex 2 หลายเดือนก่อน

    so cool!

  • @travel_crates
    @travel_crates 3 ปีที่แล้ว +1

    I really love your teaching

  • @highfacility9200
    @highfacility9200 3 ปีที่แล้ว

    Dude, you are the exactly best in the world!

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

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

  • @user-rq2ty7mp3x
    @user-rq2ty7mp3x 3 หลายเดือนก่อน

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

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

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

  • @mnarjb4604
    @mnarjb4604 3 ปีที่แล้ว

    THE BEST TH-cam CHANNEL!!!!

  • @abdulwahabjatto5264
    @abdulwahabjatto5264 3 ปีที่แล้ว +1

    Thanks for providing this awesome video.

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

  • @user-wk7tp9mp8d
    @user-wk7tp9mp8d ปีที่แล้ว +1

    Traceback (most recent call last):
    File "C:/Users/Lenovo/PycharmProjects/AI Virtual Mouse 2/AiVirtualMouseProject.py", line 20, in
    detector = htm.handDetector(maxHands=1)
    solution please

  • @rahulraikwar9133
    @rahulraikwar9133 3 ปีที่แล้ว +1

    I can't install autopy in python 3.9 please help

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

  • @mrunalikamble530
    @mrunalikamble530 7 หลายเดือนก่อน +1

    Which IDE you have used?

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

  • @somj5740
    @somj5740 3 ปีที่แล้ว +1

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

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

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

  • @jakubkopczynski8318
    @jakubkopczynski8318 3 ปีที่แล้ว +2

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

  • @nitunisha8327
    @nitunisha8327 3 ปีที่แล้ว +1

    Keep up the good work!!

  • @rohitsonawane4592
    @rohitsonawane4592 3 ปีที่แล้ว +1

    Really Awesome Video.

  • @dyaa_unison5580
    @dyaa_unison5580 2 ปีที่แล้ว +1

    why is detector = handDetector() giving an error?

  • @phellipeteles8990
    @phellipeteles8990 3 ปีที่แล้ว +1

    @Murtaza's Workshop - Robotics and AI Please
    Help, here are appearing this:
    File "C:/Users/RESERVA/PycharmProjects/pythonProject/openCVtest/venv/AiVirtualMouseProject.py", line 28, in
    lmList, bbox = detector.findPosition(img)
    ValueError: not enough values to unpack (expected 2, got 0)

    • @nbjayson1947
      @nbjayson1947 3 ปีที่แล้ว +1

      I got the same error, i rewrite the code with autocomplete. It worked for me :)

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

  • @parvjain845
    @parvjain845 3 ปีที่แล้ว

    Thanks For The Tutorial. But There is a Request that Please Update The Code in The website so that it is properly indented so that it is easy to read and understand or you can give a Link To Code such as Google Drive Link. Thanks For These amazing Tutorials

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

  • @ShubhamPatil-cb8ss
    @ShubhamPatil-cb8ss 2 ปีที่แล้ว

    So Cool Bro..... Nicely Coded its very useful for me.....But just a query Please Make a video about how to export this code or project into software or .exe (executable) format..... Please bro

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

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

  • @AnimeFusion21channel
    @AnimeFusion21channel ปีที่แล้ว +1

    I'm unable to install auto pip