图像标定全过程(C++/Opencv实现)——代码版
发布时间
阅读量:
阅读量
程序代码由多个模块组成,其中C++模块通过g++工具完成编译过程。
(1)双目摄像头标定图像数据集收集保存
//image_save.cpp
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
cv::VideoCapture capl(0);
cv::VideoCapture capr(1);
int i = 0;
cv::Mat cam_left;
cv::Mat cam_right;
char filename_l[15];
char filename_r[15];
while(capl.read(cam_left) && capr.read(cam_right))
{
cv::imshow("cam_left", cam_left);
cv::imshow("cam_right", cam_right);
char c = cv::wa
全部评论 (0)
还没有任何评论哟~
