2015-11-04 06:49:25 -0600 | received badge | ● Editor (source) |
2015-11-03 08:38:53 -0600 | answered a question | Assertion failure calling cv fisheye::calibrate I have the same problem, the code runs but except for very trivial cases (one set of points, checkerboard middle of the screen) it always fails the assertion. The test case included in OCV doesn't include the input data (left.xml and object.xml files) so it is hard to figure out what is wrong in my input data. Edit: I think i have nailed it. The problem is the 3D object point set, instead of having the origin (0,0) in the corner of the checkerboard like in the OpenCV examples i have put an offset to put the origin in the middle of the checkerboard by subtracting the halved checkerboard width and height. Below my code to construct the 3d object points: Now it seeim to be working, I have tested it by calculating the pose (rotation and translation) of the pattern by |