有了相机内参外参后,我们就可以进行相机消畸变了:
#include opencv2/opencv.hpp>
#include opencv2\highgui\highgui.hpp>
#include...所以说这么多,我们便引入了二维码,我们可以直接识别二维码来测距,这儿就要用到一个叫ZBar库的东西了,它是一个可以识别二维码或条形码的函数库,具体的自行百度吧。那我们还需要学一个新库?...zbar::Image imageZbar(width, height, "Y800", raw, width * height);
scanner.scan(imageZbar); //扫描条码...(image, obj_location[i], obj_location[(i + 1) % obj_location.size()], cv::Scalar(255, 0, 0), 3);//定位条码...symbol)
{
std::cout get_type_name() 条码类型