1
我下面OpenCV的教程http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_calib3d/py_calibration/py_calibration.html摄像机标定OpenCV的蟒蛇
而是用一个棋盘运行它,我接到了一个LAS文件我的三维点坐标。这里是我的代码:
import cv2
import numpy as np
obj_point = [(630931.35,4833642.85,157.67),(630948.03,4833662.76,73.94), (631156.3, 4833904.18, 43.89),(630873.71, 4833790, 44.85), (631381.3, 4834152.6, 79.41)]
img_point = [(1346.82,843.206),(1293.03,808.146),(1041.92, 585.168), (1150.21, 894.724), (756.993,345.904) ]
obj_point = np.array(obj_point,'float32')
img_point = np.array(img_point,'float32')
ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(obj_point, img_point, (1125, 1725),None,None)
我得到了以下错误消息:初始内在基质必须在功能上cvCalibrateCamera2
THX中 指定
对于非平面校正台提前!
嘿谢谢你的回答!你知道“ret”的价值是什么吗?它是否重新投影错误? –
阅读[这里](http://stackoverflow.com/questions/29628445/meaning-of-the-retval-return-value-in-cv2-calibratecamera)...简短版本:是的;) – PSchn
dam then there is我猜想我的3d点有些问题。我的ret = 357 .. –