Features2D + Homography example doesn't work

asked 2012-11-14 10:28:03 -0500

AlexanderPD gravatar image

updated 2012-11-14 10:52:26 -0500

i Just copy-pasted the example from here: Features2D + Homography to find a know object -- OpenCV v2.4.3 documentation

but my result is totally wrong, here what i got: crap crap crap

i'm using openCv 2.4.2 on visual studio 2010 x64 from windows 8

i really can't understand why i have a different result with same code.. any help is appreciated :) btw i can't use openCv 2.4.3 because i can't compile even an hello world without crashing and getting a non-sense error, so i prefer to stay with 2.4.2

edit retag flag offensive close merge delete


printing out the distance seems like all the distances are between 0 and 1. So, when the code tries to calculate distance he feels like every spot have distance 0 from the others and ALL the features are drawed :( I'm trying to make it more usable right now, hoping in some good results!

AlexanderPD gravatar imageAlexanderPD ( 2012-11-15 08:59:49 -0500 )edit

Sometime, I find that the image size does matter. I still don't have idea yet. But my experience is, if the object you want to find is too big. You can't find anything, after I resize the object, sometime, the success rate will be higher. But I still finding the reason.

Ted WONG gravatar imageTed WONG ( 2013-06-30 18:42:31 -0500 )edit