kylemcdonald/ofxFaceTracker — Issue #15: example-calibrated
Author: Houly
Created: 2011-12-06 17:41:17+00:00
State: open

I get an error in the updatePhysicalMesh function. Its the function call:

solvePnP(Mat(objectPoints), Mat(imagePoints),
cameraMatrix, distCoeffs,
rvec, tvec);

It gives me this:
OpenCV Error: Assertion failed (CV_IS_MAT(objectPoints) && CV_IS_MAT(imagePoints) && CV_IS_MAT(A) && CV_IS_MAT(rvec) && CV_IS_MAT(tvec)) in cvFindExtrinsicCameraParams2, file /Users/theo/Documents/CODE/__OPENFRAMEWORKS/gitOF/__BuildAllLibs/OpenCV-2.2.0/modules/calib3d/src/calibration.cpp, line 1156

I'm not quire sure what the problem is. Looks like one of the parameters isn't an Mat. But if I look up the variables in the debugger all of them seem to be an Mat object. Maybe it's because of the CV_IS_MAT function that wants to cast Mat to const Mat* ?

Thanks for your great work.