gpt4 book ai didi

python - openCV 失真校准分辨率缩放

转载 作者:太空宇宙 更新时间:2023-11-03 11:05:29 24 4
gpt4 key购买 nike

我正在使用我发现的相机矩阵和不失真系数 here对于一些 GoPro 镜头(因为不幸的是,我无法再使用 GoPro 来自己校准镜头),它似乎对 1280 * 960 (4:3) 效果很好,但是,我遇到了一些分辨率更高的问题(3840 * 2880 (4:3))。

According to the openCV documentation :

While the distortion coefficients are the same regardless of the camera resolutions used, these should be scaled along with the current resolution from the calibrated resolution.

这些是指相机矩阵吗?缩放相机矩阵的确切过程是什么?我尝试了线性插值(X 行与宽度比和 Y 行与高度比的标量乘法),图像更好但看起来仍然不太正确。这可能是因为校准素材的视频宽高比 (16:9) 与我的素材不太一样?如果是这样,为什么错误也不会线性扩展?

例如

f_x_target = f_x_calibration * targetWidth / calibrationWidth
c_x_target = c_x_calibration * targetWidth / calibrationWidth
f_y_target = f_y_calibration * targetHeight / calibrationHeight
c_y_target = c_y_calibration * targetHeight / calibrationHeight

最佳答案

GoPro 摄像机在不同的分辨率下具有不同的视野。看看 specs .这可能是导致您出现问题的原因。

关于python - openCV 失真校准分辨率缩放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20808002/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com