Python correctMatches
Hi guys!
Is there anywhere I can look for specifics on the input data requirements for the OpenCV functions for python? I really don't get it. All functions seem to require numpy arrays with different shapes.
For instance. The findFundamentalMat accepts n-by-2 numpy ndarrays of floats, but I fail to figure out what correctMatches wants as input.
Do you guys know? Where can I look this up?
Thanks!
Also, I am aware that the API reference says that the input points are supposed to be: "1xN array containing the first set of points". But that is not helping. In C or C++ an array of cvPoint2f or vector<Point2f> is accepted, but in Python the point structs are replaced by tuples. However, if I give it an array of tuples I get a TypeError: <unknown> is not a numpy array
Ok, so the input needs to be a numpy array. By if I convert the array of tuples to a numpy array by numpy.array end up with a 2d matrix and obtain the error: "Input parameters must be matrices in function cvCorrectMatches"
And if I instead use numpy.matrix I obtain the same "Input parameters must be matrices in function cvCorrectMatches" error.
Anyone knows?
Do you knowhere the python wrappers are in the source?