2017-05-10 03:00:45 -0600 | received badge | ● Student (source) |
2016-04-23 11:50:27 -0600 | asked a question | Error using SFM with Python Hello, I am trying to use the SFM opencv contrib module with python3. After dealing with a couple of problems, I can now access to all the SFM functions from python3, e.g. help(cv2.sfm) shows all the functions (see this and this for the details). I can run the example code for the SFM trajectory reconstruction Also, I can compile and run a cpp code with a similar code (see this issue) All this to say that my sfm seems to be working fine. The problem is when I try to acces it from python. I get
This is in
in function
in file simple_pipeline.cpp I think it has something to do with the way I am initializing the np.arrays from the python side for the Ts, Rs OutputArrays. How should I initialize in python the variables that go in the reconstruct function (points2d, K, Rs, Ts and points3d)
Any help would be appreciated. Regards, Miguel |