feature matching + findHomography + perspectiveTransform issue

asked 2015-07-17 15:57:54 -0600

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!

edit retag flag offensive close merge delete

Comments

Maybe you could try to:

  • display the matches with drawMatches to check the matching
  • check the coordinates in input of findHomography
Eduardo gravatar imageEduardo ( 2015-07-19 19:18:59 -0600 )edit