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.
In summary, it's ** "Operation with shadow play" **.
Annotate the image you want to act on first.
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.
I'm here, so please look at the repository for details.
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 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