# Revision history [back]

the solvePnP() method takes the following as input : vector<point3f> ObjectPoints, vector<point2f> imagePoints, Mat cameraMatrix, Mat distortionCoeffs, Mat rvec, Mat tvec

The parameters you seem to be passing are:

vector<vector<point3f> > boardPoints, vector<mat> intrinsics, vector<mat> distortion, vector<mat> rvec, vector<mat> tvec

solvePnP() doesn't implicitly convert vector<vector<t> > to vector<t> like the calibrateCamera() method does, try to pass the parameters iteratively, it will work. Someone should include this in the documentation to avoid confusion.

the solvePnP() method takes the following as input : :

vector<point3f> ObjectPoints, vector<point2f> imagePoints, Mat cameraMatrix, Mat distortionCoeffs, Mat rvec, Mat tvec

The parameters you seem to be passing are:

vector<vector<point3f> > boardPoints, vector<mat> intrinsics, vector<mat> distortion, vector<mat> rvec, vector<mat> tvec

solvePnP() doesn't implicitly convert vector<vector<t> > to vector<t> like the calibrateCamera() method does, try to pass the parameters iteratively, it will work. Someone should include this in the documentation to avoid confusion.

the solvePnP() method takes the following as input :

vector<point3f> ObjectPoints, vector<point2f> imagePoints, Mat cameraMatrix, Mat distortionCoeffs, Mat rvec, Mat tvec

The parameters you seem to be passing are:

vector<vector<point3f> > boardPoints, vector<point2f> boardCorners, vector<mat> intrinsics, vector<mat> distortion, vector<mat> rvec, vector<mat> tvec

solvePnP() doesn't implicitly convert vector<vector<t> > to vector<t> like the calibrateCamera() method does, try to pass the parameters iteratively, it will work. Someone should include this in the documentation to avoid confusion.
{"ft_lang_label":"__label__en","ft_lang_prob":0.6157584,"math_prob":0.94648415,"size":1816,"snap":"2020-10-2020-16","text_gpt3_token_len":462,"char_repetition_ratio":0.17880794,"word_repetition_ratio":0.86580086,"special_character_ratio":0.21420705,"punctuation_ratio":0.15511551,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99044186,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-04-02T07:28:01Z\",\"WARC-Record-ID\":\"<urn:uuid:01d831ba-31ff-48c5-99f1-c417eb361494>\",\"Content-Length\":\"18592\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:383dd976-549f-41ab-ad8f-d452d5405f42>\",\"WARC-Concurrent-To\":\"<urn:uuid:7b859859-37f2-4921-a9f2-730a5445fd82>\",\"WARC-IP-Address\":\"5.9.49.245\",\"WARC-Target-URI\":\"https://answers.opencv.org/answers/29003/revisions/\",\"WARC-Payload-Digest\":\"sha1:V2Y3BBX3LQDSZWDZ7KXN7ORRRJMOG7DB\",\"WARC-Block-Digest\":\"sha1:L3EFJUKQHFOMWWHOKLSKE3BLNUMYBBUT\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-16/CC-MAIN-2020-16_segments_1585370506673.7_warc_CC-MAIN-20200402045741-20200402075741-00359.warc.gz\"}"}