Create A Virtual Mouse Using 35 Lines of python || Python Project || AI Powered Mouse || open cv

Sdílet
Vložit
  • čas přidán 2. 07. 2022
  • Have you ever wished to operate your PC or laptop by simply waving your finger in your hair?
    In this video we are going to understand how to do this together. Are you ready?
    TIME STAMPS:
    GrandmaJoke: 00:14
    Project Started: 00:25
    Installing 3 Packages (opencv, mediapipe, pyautogui): 00:51
    Step 1 - Open video camera: 2:11
    Result of Step 1: 3:55
    Step 2 - Detect the Hand: 4:15
    Getting Error with mediapipe and solution (with protobuf package v3.20.x or lower): 6:02
    Result of Step 2: 8:58
    Step 3 - Separate the index finger (landmark 8) so that we can use that as a mouse pointer: 9:25
    Result of Step 3: 15:10
    Step 4 - Move the mouse pointer using Index finger: 15:46
    Result of Step 4: 19:40
    Step 5 - Click Operation: 20:18
    Romantic Story telling: 20:40
    Final Result: 26:28
    AppLink: onelink.to/proghero
    Discord Link: dsc.gg/heroprogrammers
    Code: github.com/ProgrammingHero1/v...
    #opencv #python_project #mediapipe #pyAutoGUI

Komentáře • 318

  • @bellabear653
    @bellabear653 Před rokem +5

    I like the way you don't skip any steps. Some videos are always like "create this." then they leave out 2 or 3 steps.

  • @kellaerictech
    @kellaerictech Před rokem +6

    I really liked how you simplified programming easy for a novice in computer vision. Good job.

  • @fairyroot1653
    @fairyroot1653 Před rokem +29

    I utterly adore the mood and the fun while explaining the tedious steps; you really make programming a fun thing to watch. keep up the good work buddy

  •  Před rokem +6

    I felt grandma's power while I was watching this lovely, nice and smart python project. Let's think about in which robotic projects we can use it.

  • @qweggry1279
    @qweggry1279 Před rokem +23

    Hey man, I love your tutorial/projects you make in python because they're always fun and inspiring!

  • @shouryatales1465
    @shouryatales1465 Před 10 měsíci +1

    Thanks a lot programming hero, I did a course 2 years back, and after that did not even try to get in touch back with Python and forgot everything but this video w a unique as I watched your videos 2 years back and I still understood why the code was done and even executed it so thanks

  • @hanadcabdi8970
    @hanadcabdi8970 Před rokem +1

    I am happy to be one of your subscribers because I learned a lot about coding from you and I thank you. I would like to prepare a complete course on (face recognition attendance) Thank you again

  • @chotikumawat7186
    @chotikumawat7186 Před rokem +1

    Dude i not find any problem watching your whole process.. this was really good.. thanks for such tutorials🙏🏻🙏🏻🙏🏻🙏🏻😉😉

  • @DoomsdayDatabase
    @DoomsdayDatabase Před rokem +4

    Man i used to do python a year ago! Cant wait to start learning again!

  • @ENG1MA
    @ENG1MA Před rokem +1

    Glad u back i missed ur awesome and super fun and super crazy tutorials !

  • @sumairkhan9011
    @sumairkhan9011 Před rokem

    The easiest tutorial on openCV
    Thank you very much sir 💞
    Lots of love from my side....

  • @1vEverybody
    @1vEverybody Před rokem +1

    Dude you are the best. I’ve been working on a project for weeks now and 30 tutorials later I finally found some answers. 🤘🏼

    • @blackksheepp
      @blackksheepp Před 9 měsíci

      Have you completed your project?

    • @1vEverybody
      @1vEverybody Před 9 měsíci

      @@blackksheepp yes! Compiled a build using C so that it can utilize my gpu instead of cpu, went from ~30 fps to 300+

  • @rahulsardesai2079
    @rahulsardesai2079 Před 7 měsíci

    The man in the video is really a gem 💎....what an amazing project tutorial it's !.....The energy throughout the entire project is superb....Your teaching process is superb duperb...i should say Bang Bang Bang 🤩😌..... Satisfaction level is high 🫡
    Thank you sir 🙏🏼

  • @techwithrg45
    @techwithrg45 Před rokem +43

    Finally, old programming hero is back 🥳🥳
    Suggestion: Pls don't only focus on opencv but make all kinds of videos
    Love from India ❤️

  • @aipositive9987
    @aipositive9987 Před rokem +1

    Thanks for making this project in a very easy going. Waiting for next.

  • @junaid2773
    @junaid2773 Před rokem

    One of the best python application I have seen!

  • @ujwaldeol
    @ujwaldeol Před rokem +3

    Rare and Unique ... 👍🏻
    Really liked and Tnx for uploading :)

  • @pedramporbaha
    @pedramporbaha Před rokem +1

    wow that was great😃👌👌👌👌 Thank you!!! You explained it very clear

  • @mdsrer
    @mdsrer Před rokem +171

    In 2030: Build your own Universe 😂

  • @danb7084
    @danb7084 Před rokem

    the Energy and optimism... awesome ....

  • @DevJeb
    @DevJeb Před rokem

    huge respect for you trying to make the tutorial available for everyone

  • @maximu_rider_350
    @maximu_rider_350 Před rokem

    You are just Lit bro 🔥🔥. I am greatful to watch your programming videos. Thank you so much.

  • @muralidharan.m645
    @muralidharan.m645 Před rokem +1

    I definitely say you are the programming Hero ; -)

  • @yingwaisia2707
    @yingwaisia2707 Před 11 měsíci

    Amazing!! Awesome video! Thank You Sir❤

  • @AlviTVBD
    @AlviTVBD Před rokem

    This guy is going to make it bigger and bigger, God willing. Trust me, friends
    Mahbub, you're a diamond 💎 of Bangladesh! ❤️❤️❤️❤️🇧🇩🇧🇩🇹🇷

  • @sunnydasari6057
    @sunnydasari6057 Před rokem

    Enjoyed alot learnt omething new... ThankYou sir❤️

  • @Volver888
    @Volver888 Před 5 měsíci

    I really enjoyed this tutorial. Thank you for this post and keeping it fun :)😎

  • @kellaerictech
    @kellaerictech Před rokem

    I really felt in love iwth python programming ...... tthrough your tutorials.

  • @spotnuru83
    @spotnuru83 Před rokem

    Very nice thank you for sharing this tutorial..

  • @NahzCoding101
    @NahzCoding101 Před rokem

    dude these vids are so cool, its like ur living in the future

  • @adityanjsg99
    @adityanjsg99 Před rokem

    Trust me, learning in these bits and pieces have made things come together for me.

  • @falcon04v8
    @falcon04v8 Před rokem

    Awesome dude, this is simple and cool.

  • @pawesauga440
    @pawesauga440 Před rokem

    great,thank You, best regards for Grandma!

  • @theadeyemis
    @theadeyemis Před rokem +1

    Your video is just insane
    It's so good

  • @alfezkhan591
    @alfezkhan591 Před rokem +2

    Visited the channel after a long time.
    Glad to know grandma is still there. 😂

  • @mohibwasif476
    @mohibwasif476 Před rokem

    Brooooo Justtt Love All Your Projects!

  • @theconfusedrtist
    @theconfusedrtist Před 2 měsíci

    You are an absolute legend sir

  • @manjunathreddy7302
    @manjunathreddy7302 Před rokem

    I really love the way you explain 🐬

  • @ap639
    @ap639 Před rokem

    Amazing!!!!!!!!!!! He does programming in a fun way.

  • @Javier_Chang
    @Javier_Chang Před rokem

    It is very clearly and easy, i will promote it to my video.

  • @chronicmastertrader2997

    This guys funny. Lol I enjoyed this, and i dont know a thing about coding, but now I know more than I did 30 mins ago! lol

  • @ABBRARSAIFMCS
    @ABBRARSAIFMCS Před rokem

    AWESOME VIDEO SIR. THANKS 😁

  • @groomingocean26
    @groomingocean26 Před 2 měsíci

    I really love your videos and the tutorials are really helpful thanks a lot

  • @jessielindayao0423
    @jessielindayao0423 Před rokem

    I'm now very interested in python because of your video. Let me also try it. hahaha

  • @vishalchaudhari8505
    @vishalchaudhari8505 Před rokem

    i liked your teaching way a lot thank you

  • @ProBroo
    @ProBroo Před rokem +1

    Upcoming Real Iron-man ❤️

  • @viniciusmendes5863
    @viniciusmendes5863 Před měsícem

    Amazing video!

  • @IO-fz2sm
    @IO-fz2sm Před rokem

    Amazing Explanation👍👍👍👍 Bang Bang Bang.

  • @berkcan3475
    @berkcan3475 Před 3 měsíci

    omg I spend an hour to find another mouse library to work in mac and you jut used it from start thanks or video I wish I had seen this before :D

    • @vcook5791
      @vcook5791 Před 3 měsíci +1

      Mediapipe is not working on Mac.... Showing error about "graphicconfig".... Can you help me out??

  • @LocNguyen-rr3nq
    @LocNguyen-rr3nq Před rokem

    Nice. I saw the dev of DeFi Warrior create the NFT in a similar way

  • @ramachandranmn1
    @ramachandranmn1 Před rokem

    Wonderful dear...

  • @bangaruvarun3750
    @bangaruvarun3750 Před 6 měsíci

    Guruji you are great

  • @diwakar_tsn
    @diwakar_tsn Před rokem

    Video after the years 🙂😍❤️

  • @guruprasadr6743
    @guruprasadr6743 Před rokem +1

    Good to see you back with a new video after a long time. One small suggestion instead of calculating the diff of the y co-ordinates to detect a click a more accurate method would be to calculate the euclidean distance of the co-ordinates between the index and the thumb. This makes it more reliable as this eliminates a false click if the y co-ordinates are nearly the same when the fingers are actually apart. math.sqrt((index_x-thumb_x)**2 + (index_y - thumb_y)**2)

    • @ProgrammingHero
      @ProgrammingHero  Před rokem +1

      grandma is jealous of nerdy kids
      Her brain can't process sqrt
      [ Thanks for the recommendation ]

  • @stutyapatwal
    @stutyapatwal Před rokem +1

    I was waiting for this!

  • @lightingzr
    @lightingzr Před rokem +1

    i love it... It works! SOOO COOL!!! But kind of glitchy... 😃😁😉🙂

  • @jim_jam-gaming6402
    @jim_jam-gaming6402 Před rokem

    MY FAV CODING HERO IS BACK!

  • @vanshikasingh2492
    @vanshikasingh2492 Před rokem +2

    My Grandma is back 😍😍❤️❤️❤️

  • @alirezafazeli231
    @alirezafazeli231 Před rokem

    awesome video

  • @ajithshanagonda
    @ajithshanagonda Před 20 dny

    I did it...thanks broo❤

  • @maherzain7442
    @maherzain7442 Před rokem

    Goat of code !!! 👍👍👍

  • @AryanRaj-ts6ud
    @AryanRaj-ts6ud Před rokem

    Ahhh my man finally u r back.... 😍😍😘😘🤗

  • @indrarider5506
    @indrarider5506 Před rokem

    Apnar information onek bhalo.

  • @ProfessorYT_
    @ProfessorYT_ Před rokem

    Darun hy6e

  • @malikabdul2217
    @malikabdul2217 Před rokem +2

    I love your tutorials thanks for sharing. Please you should create a tutorial on how to send SMS messages with python using firebase 🙏

  • @nur.sowrov
    @nur.sowrov Před rokem +1

    Thank you.

  • @ollerius0760
    @ollerius0760 Před rokem

    Great video

  • @lorenzofigueiredo5453

    you are my python hero

  • @johnivoryde256
    @johnivoryde256 Před rokem +1

    Big up bro

  • @codestar5525
    @codestar5525 Před rokem +1

    Sir I am 15 year old data scientist and a fan of you

  • @oxynofiring
    @oxynofiring Před 2 měsíci +3

    i have a question, what should i do if i want to increase my cursor sensitivity i.e cover more area in less movement? BTW you are awsome!

  • @badabullproduction362

    You own my respect

  • @bgmikingshorts385
    @bgmikingshorts385 Před rokem

    brother this is amazing

  • @_Jitesh_
    @_Jitesh_ Před rokem +3

    Great quality video ❤️
    When is Grandma's face reveal video coming??😂

  • @Srayan007
    @Srayan007 Před rokem

    Nice

  • @adamabdullah7603
    @adamabdullah7603 Před 5 měsíci +2

    Its laggy, make v2 more smooth. Never Stop!!!

  • @richoyeh4269
    @richoyeh4269 Před rokem

    you are amazing bro

  • @katamer57
    @katamer57 Před rokem

    nice!!

  • @parthamondal8962
    @parthamondal8962 Před rokem

    Genius bro

  • @prnb3237
    @prnb3237 Před rokem

    :0 Jhankar vai best.

  • @sanatan_dhram_sb
    @sanatan_dhram_sb Před rokem +6

    You are good teacher please make a video on how to make minecraft using python 🙏

    • @DoomsdayDatabase
      @DoomsdayDatabase Před rokem +1

      just buy it

    • @ninjacodertech
      @ninjacodertech Před rokem

      @@DoomsdayDatabase i have minecraft win10 (on win 11), minecraft java, minecraft pe, minecraft xbox, but i'd also like to learn how to clone it

    • @lightingzr
      @lightingzr Před rokem

      @@ninjacodertech lol

    • @ProgrammingHero
      @ProgrammingHero  Před rokem +3

      Interesting recommendation

  • @MyDiscovery2021
    @MyDiscovery2021 Před rokem

    Wow super

  • @andebs1998
    @andebs1998 Před rokem

    Gradma really kissed me with this tutorial, u just made it super fun

  • @AllRound1215
    @AllRound1215 Před rokem

    super

  • @alexbevan2183
    @alexbevan2183 Před rokem

    Been a fan for a while, can I make a suggestion that you do an IP grabber/tracker? Also a snapchat version of the Facebook messenger message sender except it mirrors whatever is sent to you and sends it back, kinda like a reciprocating love message machine!

  • @Btm_vibes
    @Btm_vibes Před rokem

    You are a legend

  • @amardib6716
    @amardib6716 Před 10 měsíci

    This is an awesome turtorial, but I have a question, can we make our cursor movement faster and synchronized?

  • @Doznuts
    @Doznuts Před rokem

    I subscribed you with your own code!

  • @moderntechnology7719
    @moderntechnology7719 Před rokem +1

    I have one question sir that at last when you were using your mouse your video footage was shaking and your mouse cursor was also shaking so this thing is a lagging or really the cursor will shake

  • @Btm_vibes
    @Btm_vibes Před rokem

    Super pro

  • @thetechnocraticboss5203

    Yay he is back 😁

  • @PrinceGaming-qf7bj
    @PrinceGaming-qf7bj Před rokem +1

    Wow

  • @ingenious.games.lab.9180

    Is there a way of doing this with the gpu for better performance or is there some functionality to smothe it?

  • @serenalaurence1492
    @serenalaurence1492 Před 3 měsíci

    i wish there was a way to speed this up by 10 times. thanks for the tutorial, I do have a question. Is it possible to write a python program that takes an input from a device (input device is not a standard device) and convert its input to another input (like a keyboard button press or a mouse movement)?

  • @proyasbro5562
    @proyasbro5562 Před rokem

    our jhankar Mahamud

  • @insertx2k_dev
    @insertx2k_dev Před rokem

    Man I really missed you.

  • @davide.2349
    @davide.2349 Před rokem

    A lovely romantic comment for you grandma, thank you for the great content!

  • @AmitGuptaGwl
    @AmitGuptaGwl Před 3 měsíci +1

    I'm just wondering if moving the finger to perform click operation will also move cursor from it's position.

  • @nahidasultana2100
    @nahidasultana2100 Před rokem

    OMG😱 Grandma Really Smashed A Watermelon In My Head 😂

  • @akash2899
    @akash2899 Před rokem +1

    Sir আমি অনেক বেশি শিক্ষিত না কিন্তু আমার coding শেখার অনেক ইচ্ছা। Sir JWT এর উপর ভিডিও বানাবেন please ধন্যবাদ।