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

  Рет қаралды 168,568

Programming Hero

Programming Hero

Жыл бұрын

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

Пікірлер: 320
@fairyroot1653
@fairyroot1653 Жыл бұрын
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
@ProgrammingHero
@ProgrammingHero Жыл бұрын
Love from Grandma
@annanay007
@annanay007 3 ай бұрын
@@ProgrammingHero 😂
@qweggry1279
@qweggry1279 Жыл бұрын
Hey man, I love your tutorial/projects you make in python because they're always fun and inspiring!
@ProgrammingHero
@ProgrammingHero Жыл бұрын
Love from Grandma
@kellaerictech
@kellaerictech Жыл бұрын
I really liked how you simplified programming easy for a novice in computer vision. Good job.
@bellabear653
@bellabear653 Жыл бұрын
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.
Жыл бұрын
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.
@shouryatales1465
@shouryatales1465 10 ай бұрын
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
@ENG1MA
@ENG1MA Жыл бұрын
Glad u back i missed ur awesome and super fun and super crazy tutorials !
@hanadcabdi8970
@hanadcabdi8970 Жыл бұрын
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
@DoomsdayDatabase
@DoomsdayDatabase Жыл бұрын
Man i used to do python a year ago! Cant wait to start learning again!
@chotikumawat7186
@chotikumawat7186 Жыл бұрын
Dude i not find any problem watching your whole process.. this was really good.. thanks for such tutorials🙏🏻🙏🏻🙏🏻🙏🏻😉😉
@aipositive9987
@aipositive9987 Жыл бұрын
Thanks for making this project in a very easy going. Waiting for next.
@1vEverybody
@1vEverybody Жыл бұрын
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 9 ай бұрын
Have you completed your project?
@1vEverybody
@1vEverybody 9 ай бұрын
@@blackksheepp yes! Compiled a build using C so that it can utilize my gpu instead of cpu, went from ~30 fps to 300+
@techwithrg45
@techwithrg45 Жыл бұрын
Finally, old programming hero is back 🥳🥳 Suggestion: Pls don't only focus on opencv but make all kinds of videos Love from India ❤️
@ProgrammingHero
@ProgrammingHero Жыл бұрын
ok. will do
@sumairkhan9011
@sumairkhan9011 Жыл бұрын
The easiest tutorial on openCV Thank you very much sir 💞 Lots of love from my side....
@junaid2773
@junaid2773 Жыл бұрын
One of the best python application I have seen!
@stutyapatwal
@stutyapatwal Жыл бұрын
I was waiting for this!
@ujwaldeol
@ujwaldeol Жыл бұрын
Rare and Unique ... 👍🏻 Really liked and Tnx for uploading :)
@Volver888
@Volver888 6 ай бұрын
I really enjoyed this tutorial. Thank you for this post and keeping it fun :)😎
@pedramporbaha
@pedramporbaha Жыл бұрын
wow that was great😃👌👌👌👌 Thank you!!! You explained it very clear
@muralidharan.m645
@muralidharan.m645 Жыл бұрын
I definitely say you are the programming Hero ; -)
@alfezkhan591
@alfezkhan591 Жыл бұрын
Visited the channel after a long time. Glad to know grandma is still there. 😂
@ProgrammingHero
@ProgrammingHero Жыл бұрын
Grandma missed you a lot...
@DevJeb
@DevJeb Жыл бұрын
huge respect for you trying to make the tutorial available for everyone
@ProgrammingHero
@ProgrammingHero Жыл бұрын
Huge Love from Grandma
@DevJeb
@DevJeb Жыл бұрын
@@ProgrammingHero :>>
@falcon04v8
@falcon04v8 Жыл бұрын
Awesome dude, this is simple and cool.
@yingwaisia2707
@yingwaisia2707 11 ай бұрын
Amazing!! Awesome video! Thank You Sir❤
@groomingocean26
@groomingocean26 2 ай бұрын
I really love your videos and the tutorials are really helpful thanks a lot
@maximu_rider_350
@maximu_rider_350 Жыл бұрын
You are just Lit bro 🔥🔥. I am greatful to watch your programming videos. Thank you so much.
@pawesauga440
@pawesauga440 Жыл бұрын
great,thank You, best regards for Grandma!
@mohibwasif476
@mohibwasif476 Жыл бұрын
Brooooo Justtt Love All Your Projects!
@NahzCoding101
@NahzCoding101 Жыл бұрын
dude these vids are so cool, its like ur living in the future
@sunnydasari6057
@sunnydasari6057 Жыл бұрын
Enjoyed alot learnt omething new... ThankYou sir❤️
@mdsrer
@mdsrer Жыл бұрын
In 2030: Build your own Universe 😂
@eyesports2910
@eyesports2910 Жыл бұрын
Hahahaaaaaaah!!!
@technerdunleashed
@technerdunleashed Жыл бұрын
Sahi baat hai 😂😂
@randomnvideos
@randomnvideos Жыл бұрын
Coming soon...
@sklab3671
@sklab3671 Жыл бұрын
With one line of python
@NehalOnScreen
@NehalOnScreen Жыл бұрын
Ha ha... That's true.. Crazy
@rahulsardesai2079
@rahulsardesai2079 8 ай бұрын
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 🙏🏼
@danb7084
@danb7084 Жыл бұрын
the Energy and optimism... awesome ....
@theadeyemis
@theadeyemis Жыл бұрын
Your video is just insane It's so good
@ap639
@ap639 Жыл бұрын
Amazing!!!!!!!!!!! He does programming in a fun way.
@adityanjsg99
@adityanjsg99 Жыл бұрын
Trust me, learning in these bits and pieces have made things come together for me.
@ProgrammingHero
@ProgrammingHero Жыл бұрын
Happy grandma...
@kellaerictech
@kellaerictech Жыл бұрын
I really felt in love iwth python programming ...... tthrough your tutorials.
@AlviTVBD
@AlviTVBD Жыл бұрын
This guy is going to make it bigger and bigger, God willing. Trust me, friends Mahbub, you're a diamond 💎 of Bangladesh! ❤️❤️❤️❤️🇧🇩🇧🇩🇹🇷
@manjunathreddy7302
@manjunathreddy7302 Жыл бұрын
I really love the way you explain 🐬
@spotnuru83
@spotnuru83 Жыл бұрын
Very nice thank you for sharing this tutorial..
@chronicmastertrader2997
@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
@theconfusedrtist
@theconfusedrtist 3 ай бұрын
You are an absolute legend sir
@viniciusmendes5863
@viniciusmendes5863 Ай бұрын
Amazing video!
@jim_jam-gaming6402
@jim_jam-gaming6402 Жыл бұрын
MY FAV CODING HERO IS BACK!
@indrarider5506
@indrarider5506 Жыл бұрын
Apnar information onek bhalo.
@vanshikasingh2492
@vanshikasingh2492 Жыл бұрын
My Grandma is back 😍😍❤️❤️❤️
@ProgrammingHero
@ProgrammingHero Жыл бұрын
YAY
@vishalchaudhari8505
@vishalchaudhari8505 Жыл бұрын
i liked your teaching way a lot thank you
@ProBroo
@ProBroo Жыл бұрын
Upcoming Real Iron-man ❤️
@ProfessorYT_
@ProfessorYT_ Жыл бұрын
Darun hy6e
@Javier_Chang
@Javier_Chang Жыл бұрын
It is very clearly and easy, i will promote it to my video.
@AryanRaj-ts6ud
@AryanRaj-ts6ud Жыл бұрын
Ahhh my man finally u r back.... 😍😍😘😘🤗
@ABBRARSAIFMCS
@ABBRARSAIFMCS Жыл бұрын
AWESOME VIDEO SIR. THANKS 😁
@berkcan3475
@berkcan3475 3 ай бұрын
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 3 ай бұрын
Mediapipe is not working on Mac.... Showing error about "graphicconfig".... Can you help me out??
@IO-fz2sm
@IO-fz2sm Жыл бұрын
Amazing Explanation👍👍👍👍 Bang Bang Bang.
@bangaruvarun3750
@bangaruvarun3750 7 ай бұрын
Guruji you are great
@abdellatif.x8127
@abdellatif.x8127 Жыл бұрын
The legend is baack
@diwakar_tsn
@diwakar_tsn Жыл бұрын
Video after the years 🙂😍❤️
@maherzain7442
@maherzain7442 Жыл бұрын
Goat of code !!! 👍👍👍
@LocNguyen-rr3nq
@LocNguyen-rr3nq Жыл бұрын
Nice. I saw the dev of DeFi Warrior create the NFT in a similar way
@prnb3237
@prnb3237 Жыл бұрын
:0 Jhankar vai best.
@lightingzr
@lightingzr Жыл бұрын
i love it... It works! SOOO COOL!!! But kind of glitchy... 😃😁😉🙂
@jessielindayao0423
@jessielindayao0423 Жыл бұрын
I'm now very interested in python because of your video. Let me also try it. hahaha
@ramachandranmn1
@ramachandranmn1 Жыл бұрын
Wonderful dear...
@moderntechnology7719
@moderntechnology7719 Жыл бұрын
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
@alirezafazeli231
@alirezafazeli231 Жыл бұрын
awesome video
@guruprasadr6743
@guruprasadr6743 Жыл бұрын
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 Жыл бұрын
grandma is jealous of nerdy kids Her brain can't process sqrt [ Thanks for the recommendation ]
@malikabdul2217
@malikabdul2217 Жыл бұрын
I love your tutorials thanks for sharing. Please you should create a tutorial on how to send SMS messages with python using firebase 🙏
@oxynofiring
@oxynofiring 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!
@nur.sowrov
@nur.sowrov Жыл бұрын
Thank you.
@naveenpolampalli3390
@naveenpolampalli3390 Жыл бұрын
fyrrrrr✌️
@thetechnocraticboss5203
@thetechnocraticboss5203 Жыл бұрын
Yay he is back 😁
@codestar5525
@codestar5525 Жыл бұрын
Sir I am 15 year old data scientist and a fan of you
@ingenious.games.lab.9180
@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?
@johnivoryde256
@johnivoryde256 Жыл бұрын
Big up bro
@_Jitesh_
@_Jitesh_ Жыл бұрын
Great quality video ❤️ When is Grandma's face reveal video coming??😂
@ajithshanagonda
@ajithshanagonda Ай бұрын
I did it...thanks broo❤
@AmitGuptaGwl
@AmitGuptaGwl 4 ай бұрын
I'm just wondering if moving the finger to perform click operation will also move cursor from it's position.
@badabullproduction362
@badabullproduction362 Жыл бұрын
You own my respect
@Obito____Uchiha
@Obito____Uchiha Жыл бұрын
Imagine a heart from grandma🥰
@YouKnowWho288
@YouKnowWho288 Жыл бұрын
🥰🥰🥰🥰🥰
@klasta2167
@klasta2167 Жыл бұрын
Still waiting
@sanatan_dhram_sb
@sanatan_dhram_sb Жыл бұрын
You are good teacher please make a video on how to make minecraft using python 🙏
@DoomsdayDatabase
@DoomsdayDatabase Жыл бұрын
just buy it
@ninjacodertech
@ninjacodertech Жыл бұрын
@@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 Жыл бұрын
@@ninjacodertech lol
@ProgrammingHero
@ProgrammingHero Жыл бұрын
Interesting recommendation
@lorenzofigueiredo5453
@lorenzofigueiredo5453 Жыл бұрын
you are my python hero
@ollerius0760
@ollerius0760 Жыл бұрын
Great video
@LOLjerel
@LOLjerel Жыл бұрын
What should I do if my webcam is not showing? I tried VideoCapture(0) and VideoCapture(1)
@adamabdullah7603
@adamabdullah7603 5 ай бұрын
Its laggy, make v2 more smooth. Never Stop!!!
@user-kg9fr5qk4u
@user-kg9fr5qk4u 11 күн бұрын
very good
@bgmikingshorts385
@bgmikingshorts385 Жыл бұрын
brother this is amazing
@katamer57
@katamer57 Жыл бұрын
nice!!
@k.vinay.
@k.vinay. Жыл бұрын
Nice
@andebs1998
@andebs1998 Жыл бұрын
Gradma really kissed me with this tutorial, u just made it super fun
@ProgrammingHero
@ProgrammingHero Жыл бұрын
Grandma got a Romantic Grand Kid. YAY
@amardib6716
@amardib6716 11 ай бұрын
This is an awesome turtorial, but I have a question, can we make our cursor movement faster and synchronized?
@serenalaurence1492
@serenalaurence1492 3 ай бұрын
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)?
@susanmaharjan3240
@susanmaharjan3240 Жыл бұрын
It says cv 2 has no attribute 'video capture' in short program of begining
@richoyeh4269
@richoyeh4269 Жыл бұрын
you are amazing bro
@alexbevan2183
@alexbevan2183 Жыл бұрын
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!
@ZeriumYT
@ZeriumYT 11 ай бұрын
Hello i have a small problem with it and i cant seem to figure out how to fix it to try to make the hand on the frame and mouse on the screen line up its converted to the same size however for me that does really work because my hand goes out of frame before i hit any of the corners which makes it hard to click on a windows icon or close a tab how you would you suggest i make the mouse move more when the finger moves
@Btm_vibes
@Btm_vibes Жыл бұрын
You are a legend
@MyDiscovery2021
@MyDiscovery2021 Жыл бұрын
Wow super
@AllRound1215
@AllRound1215 Жыл бұрын
super
@proyasbro5562
@proyasbro5562 Жыл бұрын
our jhankar Mahamud
@parthamondal8962
@parthamondal8962 Жыл бұрын
Genius bro
BUILD A MOUSE USING YOUR EYE - Python Project
28:11
Programming Hero
Рет қаралды 166 М.
Top 25 Computer Vision Projects 2021
6:01
Murtaza's Workshop - Robotics and AI
Рет қаралды 193 М.
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 17 МЛН
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,4 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 4,2 МЛН
We made a REAL HOLOGRAM Desk like Tony Stark's!
23:57
Hacksmith Industries
Рет қаралды 7 МЛН
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,5 МЛН
I Made 200 Python Projects...Here Are My 5 FAVORITES
11:23
Tech With Tim
Рет қаралды 135 М.
Every Weird Math Paradox
11:15
ThoughtThrill
Рет қаралды 4 М.
Don't Buy Audiobooks! 😎 Build Your Own With Just 12 Lines Of Python
13:04
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 17 МЛН