I am using Python 2.7 and opencv 3.0.0. I am trying to make a pose assessment on a live video. Therefore, I used calibrate.py provided by opencv. It works well. In this program, I added at the end of the line for processing information, to lead the axis. I used this: http://docs.opencv.org/master/d7/d53/tutorial_py_pose.html#gsc.tab=0
In the line with the solvePnPRansac function, I wrote this instead: _, rvecs, tvecs, inliers = cv2.solvePnPRansac(obj_points[0], corners2, camera_matrix, dist_coefs) adding _, to the beginning of the line.
This error has appeared!
error: C:\builds\master_PackSlaveAddon-win64-vc12-static\opencv\modules\core\src\matrix.cpp:2294: error: (-215) d == 2 && (sizes[0] == 1 || sizes[1] == 1 || sizes[0]*sizes[1] == 0) in function cv::_OutputArray::create
I donโt understand this at all!
Can someone help me?
Here is my video processing code:
cap = cv2.VideoCapture(0) while(1):
source share