This is a collection of OpenCV scripts. Hope you will find them useful to your projects!
So we have an image like this
We'd like to find the monster and the player:
in this image. The script finds the two objects and draws them on the image in rectangles:
See "detect_templates.py".
The monster can move and turn left and turn right. We want to keep track of its position and direction. We can use templates of this monster facing front, left and right:
The script finds the most matching and draws on the image:
See "detect_best_matching_template.py"
Say you want to implement a cropping function in an image editor. User draws a rectangle on an image. The script crops it and save the crop in another image.
See "cropping.py".