Validation error in Kalman Filter python OpenCV 2.4.0

When I try to predict Kalman,

k = cv2.KalmanFilter(2,1,0) c = np.array([(0.0),(0.0)]).reshape(2,1) a = k.predict(c) 

I get the following confirmation error.

error: / home / jay / Downloads / OpenCV -2.4.0 / modules / core / src / matmul.cpp: 711: error: (-215) type == B.type () && & (type == CV_32FC1 || type == CV_64FC1 || type == CV_32FC2 || type == CV_64FC2) in the gemm function

So, I added the following line of code in OpenCV-2.4.0/modules/core/src/matmul.cpp

 printf("%d %d\n",type,B.type()); 

So now he gives me a conclusion like,

5 5

0 6

Am I doing something wrong here? What is the problem?

+4
source share

All Articles