Open CV 3.0 findHomography raise an error

asked 2015-01-20 01:55:43 -0600

jbdemonte gravatar image

updated 2015-01-24 14:05:46 -0600

Hi there,

I'm trying to use this sample: http://docs.opencv.org/trunk/doc/py_t...

But it always raise an error:

OpenCV Error: Image step is wrong (Step must be a multiple of esz1) in setSize, file /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp, line 297

terminate called after throwing an instance of 'cv::Exception'

what(): /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp:297: error: (-13) Step must be a multiple of esz1 in function setSize

I already ask for it on stackoverflow (http://stackoverflow.com/questions/28...) but it seems no one has idea about it, and I really get stuck :/

Thanks a lot for you help,

------ EDIT ---------

In fact, it seems to not be due to findHomography but to:

cv2.perspectiveTransform

I have no clue why

edit retag flag offensive close merge delete