As Throwback1986 suggested, you probably want to use matchTemplate . Here is one of my answers showing how to detect the sun from a virtual spaceship. Here is the new OpenCV tutorial on using matchTemplate
. Now there are some caveats for using the matchTemplate
approach. If image βAβ can be in any position (for example, zooming, rotation, perspective, etc.) on image βBβ, then matchTemplate
will not work very well. If this happens, you will want to use the function discovery route, as suggested by Adrian Popovich.
mevatron
source share