Simple Gesture Recognition To Create Virtual Mouse | using OpenCV and Python (Tutorial) Part 1

Simple Gesture Recognition To Create Virtual Mouse | using OpenCV and Python (Tutorial) Part 1

Codacus

7 лет назад

55,007 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@pythondeveloperUz
@pythondeveloperUz - 31.03.2022 14:32

bro Can you help me please?????

Ответить
@yitaverse
@yitaverse - 26.01.2022 10:28

Hello @Codacus, really great tutorials, thank you!

Comparing your code described in the video with the one you launched at the beginning as a demo, I noticed a difference, in particular you replaced:

if abs((((w * h) - (openW * openH)) * 100) / (w * h)) < 30:

with something like:

if (x >= openX) and (y >= openY) and (h <= openH) and (w <= openW) and ...

It's not possible to read the end of the line, but I wonder if that version optimizes the use of the percentage threshold you adopted in your tutorial.

I saw that you also changed the smoothness of the mouse movement by multiplying by a value "c = 0.3" defined at the beginning, instead of dividing by "DampingFactor" and I wonder if this also improves the performance.

Together with the parameter "c = 0.3", you have also defined another "l = .3", which I did not understand where you used it in your initial demo, compared to the one elaborated in the tutorial.

I was wondering if you could share any optimizations here, and how to implement the double click too, with another video!

Thank you so much! Great channel! Best regards

Ответить
@theprocode4394
@theprocode4394 - 29.07.2021 07:00

cv2.circle(img, (cx,cy),(w+h)/4,(0,0,255),2)
cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'circle'
> Overload resolution failed:
> - Can't parse 'center'. Sequence item with index 0 has a wrong type
> - Can't parse 'center'. Sequence item with index 0 has a wrong type

ye error yaara hai

Ответить
@khemrajdhruw70
@khemrajdhruw70 - 19.07.2021 11:26

👏👏👏👏

Ответить
@adityasahu8553
@adityasahu8553 - 20.06.2021 16:12

What algorithm did u used can you please tell me. I really like this project

Ответить
@vikramkumarporia7950
@vikramkumarporia7950 - 24.05.2021 07:33

@Codacus sir ...... what kind of change in the windows to perfectly run the program....?

Ответить
@vikramkumarporia7950
@vikramkumarporia7950 - 23.05.2021 18:43

sir i am run this program in my pc(windows), but it gets error and camera is not responding ....plz help...

Ответить
@da-wah
@da-wah - 06.05.2021 03:53

What is the license of the code? Can I make a tutorial on it?

Ответить
@aceshooter3333
@aceshooter3333 - 21.04.2021 05:01

Why does it keep aborting command

Ответить
@rohitpawar8710
@rohitpawar8710 - 08.04.2021 15:27

After some conversions of some bugs like float to int, still this is not working , the camera stops responding.

Ответить
@merveozdas1193
@merveozdas1193 - 27.01.2021 21:21

Can you do this for eyes movement?

Ответить
@chaoyip5073
@chaoyip5073 - 26.01.2021 00:37

so cool man

Ответить
@livesportstv2802
@livesportstv2802 - 23.01.2021 15:19

bro this dont working now

Ответить
@merveozdas1193
@merveozdas1193 - 22.01.2021 22:42

You are so good human :)

Ответить
@pranavchoudhary2632
@pranavchoudhary2632 - 22.01.2021 09:44

Which operating system do you use

Ответить
@dhanshreepajankar1570
@dhanshreepajankar1570 - 07.12.2020 22:05

I'm facing problem to install wxpython on windows10 please help me..

Ответить
@lamthai2621
@lamthai2621 - 06.12.2020 13:24

Error : integer argument expected, got float
Can u fix it?

Ответить
@SUNYBOI
@SUNYBOI - 26.11.2020 11:40

How to open a folder

Ответить
@sanduntharaka4256
@sanduntharaka4256 - 13.10.2020 16:32

hi can you tell me if any similar library pyobjc for windows

Ответить
@asif4060
@asif4060 - 15.07.2020 10:12

is there a way to identify thumb finger and its thickness?
@codecus

Ответить
@samba5965
@samba5965 - 29.06.2020 13:13

i'm recieving error while installing pyobjc-core

Ответить
@sanskaarpatni9137
@sanskaarpatni9137 - 02.06.2020 13:32

Hello Sir ..
Im using ubuntu the mouse controller is working but is not showing a cursor ? Any idea on how i can fix this?

Ответить
@Praxss
@Praxss - 14.05.2020 16:53

Can you do one more time this same tutorial with good audio

Ответить
@SHIVANAN2010
@SHIVANAN2010 - 31.03.2020 10:42

Sir where is the previous video of this one .. please give me the link..

Ответить
@prateekgupta8861
@prateekgupta8861 - 25.03.2020 00:27

pyobjc,pyobjc-core,wxpython..
I'm unable to install any of the libraries on my windows 10 laptop.. Please help..

Ответить
@pratikpatel4477
@pratikpatel4477 - 02.03.2020 07:56

The camera frame is freezed whenever the color of the given object is detected whenever i tried to move the cursor

Ответить
@johnarana1050
@johnarana1050 - 16.02.2020 05:46

WOW, this is an amazing tutorial. l Liked and Subscribed.

Ответить
@samsungmini9329
@samsungmini9329 - 11.02.2020 17:56

Website is not working.
Please help me to get the source code.

Ответить
@Fusionmedia-guna
@Fusionmedia-guna - 06.01.2020 17:07

Cv2.line gives me error

Integer argument expected ,got float

Ответить
@likithas1286
@likithas1286 - 28.11.2019 10:02

will the same code work on windows 7 ? please reply asap,Thank you!

Ответить
@hamza4283
@hamza4283 - 13.10.2019 21:45

hey it comes as "cam not responding", once i show a green square/obj the image freezes and doesnt respond , any1 have a solution for this?

Ответить
@eoghanmartin3874
@eoghanmartin3874 - 05.10.2019 20:52

Hi! This is really good but how do you change the colour of the thing on your fingers? I'm not very good at python

Ответить
@rawkstar952
@rawkstar952 - 19.09.2019 15:01

@Codacus the frame is not responding and freezes

Ответить
@ar-ienterprise3011
@ar-ienterprise3011 - 18.09.2019 23:43

bro you are awesome man

Ответить
@thomastsojan4367
@thomastsojan4367 - 23.08.2019 08:22

Superr video , Good idea ,Good presentation
Thanks Buddy....

Ответить
@Amitsharma-up5wt
@Amitsharma-up5wt - 17.08.2019 04:03

double click ???

Ответить
@abhirajroy2235
@abhirajroy2235 - 07.08.2019 21:08

nice work man .amazing

Ответить
@ruthw.3571
@ruthw.3571 - 23.07.2019 13:24

how to fix float expected at most 1 arguments, got 2

Ответить
@nandu2702
@nandu2702 - 21.06.2019 13:27

Thanks a lot, buddy. Excellent video.

Ответить
@justcats2184
@justcats2184 - 14.04.2019 21:06

Does the double click work?

Ответить
@ailsaqyadiq9615
@ailsaqyadiq9615 - 12.04.2019 06:41

My cam keeps crashing when smth green gets in range of the webcam. How can I fix it?

Ответить
@favresamuel
@favresamuel - 01.04.2019 23:51

You use a special sensor or just a HD camera?

Ответить
@lakesh3427
@lakesh3427 - 27.03.2019 20:33

please give me your no .....
about hand gesture project bcoz they cannot capture object in windows

Ответить
@rofern13
@rofern13 - 21.03.2019 14:13

It seems I am going to infinite loop due to the pass statement. Any way to get around it?

Ответить
@ethicalhacker1
@ethicalhacker1 - 19.02.2019 05:00

Will your code work on Linux too? Because Mavis actually Linux based too.. I need to make this work on raspbian os on raspberry Pi

Ответить