feature matching + findHomography + perspectiveTransform issue
Hi,
I've been playing with around with OpenCV, and have been trying to implement a simple logo detector.
I started with the feature homography tutorial. The idea was to use the same workflow to detect a logo of interest.
Here is the relevant portion of my code.
Here is an output image. Focus on the area in and around the ROGERS logo. You'll see the matching keypoints drawn inside the ROGERS logo, but my attempt to draw a box around the detected logo is not exactly successful. Other logos and non-logo objects all seem to suffer from the same issue, and I can't see what it is.
Can anyone see anything fundamentally wrong in my code, or suggest how I might get better bounding box locations?
Any advice/suggestions is much appreciated. Thanks in advance!
Maybe you could try to: