Operate your PC with a webcam II. [Goodbye mouse! ]

Last time Revenge article because the accuracy was not so good!

I got a hint from @ t_okkan's article, Tracking a baseball ball with Python + OpenCV, and improved it by reviewing the processing method.

webcamops.gif

You can operate it perfectly according to the gesture! !!

what the hell? ??

In summary, it's ** "Operation with shadow play" **.

Annotate the image you want to act on first.

annotation3.png

Next, define the key input by mouse operation linked to the image in the config file. Then run the program and if it meets the OpenCV image similarity threshold, it will operate according to the definition.

code

I'm here, so please look at the repository for details.

Afterword

As in the last time, the basic is the shadow play method, so if there is a shape, it can be replaced with ** anything ** operation.

pine.png

Pine candy is delicious! : pineapple:

FYI

Track baseball with Python + OpenCV

I tried to "binarize" images with OpenCV using Python

I tried "smoothing" an image with OpenCV using Python

[Python] How to get the title string of the window (win32api user32 GetWindowText)

Recommended Posts

Operate your PC with a webcam II. [Goodbye mouse! ]
[Dedicated to Telewa! ] PC operation with a webcam
Operate your website with Python_Webbrowser
Operate a receipt printer with python
Using a webcam with Raspberry Pi
[Easy] AI automatic recognition with a webcam!
Operate Minecraft Pi Edition from your PC
Operate an oscilloscope with a Raspberry Pi
[Python] Draw a Mickey Mouse with Turtle [Beginner]
Power on / off your PC with raspberry pi