opencv - 多相机校准 - 立体相机
问题描述
我正在尝试使用校准多立体相机来获得相机姿势的旋转和平移。例如,两个相机实际位移了多少,旋转了多少。
我尝试使用 OpenCV 多相机校准类,
https://docs.opencv.org/master/d2/d1c/tutorial_multi_camera_main.html
但我没有看到正确的旋转和平移矩阵被检索。
我尝试使用 vicalib 的其他工具在我的相机上遇到了集成问题。
是否有任何参考资料可以让我从多相机校准开始。
解决方案
OpenCV中有一种相机校准方法。这是c++方法:
C++:双校准相机(InputArrayOfArrays objectPoints,InputArrayOfArrays imagePoints,Size imageSize,InputOutputArray cameraMatrix,InputOutputArray distCoeffs,OutputArrayOfArrays rvecs,OutputArrayOfArrays tvecs,int flags=0,TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS,30,DBL_EPSILON) )
来源和更多文档: https ://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html
推荐阅读
- javascript - 如何检查字符串是否在 JSON 文件中并获取字符串的条目号
- spring-boot - IntelliJ IDEA 中的 Vaadin Flow .war 静态资源
- php - mysql如何以最近的距离加入
- java - 小数除法时如何防止精度损失?
- java - 找不到适合 jdbc:postgresql 的驱动程序,但我已安装驱动程序
- reactive-programming - 如何让 Svelte 像 React 一样更新输入组件?
- javascript - 如何将 Firebase Cloud Storage 中返回项目的 URL 推送到 Angular 中的数组中?
- python-3.x - 以 Kafka 和 MongoDB 为源的 ETL
- azure - Databricks REST API 返回 HTTP 400 错误(带有 AAD 访问令牌)
- sql-server - 为什么“where”子句中的标量值函数变慢?