随笔分类 - opencv
摘要:```function writeXML(cameraParams,file)%writeXML(cameraParams,file)%功能:将相机校正的参数保存为xml文件%输入:%cameraParams:相机校正数据结构%file:xml文件名%说明在xml文件是由一层层的节点组成的。%首先创建父节点 fatherNode,%然后创建子节点 childNode=docNode.createE...
阅读全文
摘要://视频录制******保存路径为工程默认路径 //#include<iostream> //#include<opencv2/opencv.hpp> // //using namespace cv; //using namespace std; // //int main() //{ // Vid
阅读全文
摘要:相机标定:https://blog.csdn.net/y2c58s43d69g8h7G_g/article/details/97239418 畸变参数个数要是镜头太凸的话,就像鱼眼相机和哨兵150视角,就选3 FocalLength 焦距 PrincipalPoint 主点 RadialDistor
阅读全文
摘要:``` include include include include using namespace std; using namespace cv; Mat MoveDetect(Mat temp, Mat frame); int main() { VideoCapture video(1);/
阅读全文
摘要:``` include include include include include include using namespace cv; using namespace std; / 求两点间距离 / float getDistance(CvPoint pointO, CvPoint poin
阅读全文
摘要:``` #include #include #include #include #include #include #include #include #include using namespace std; using namespace cv; using namespace ml; int main() { VideoCapture c...
阅读全文
摘要:通常,随着从简单的测量(平方差)到更复杂的测量(相关系数),可以获得越来越准确的匹配,然而,这同时也会以越来越大的计算量为代价。比较科学的方法是对所有这些方法多次测试实验,以便为自己的应用选择同时兼顾速度和精度的最佳方案
阅读全文
该文被密码保护。
摘要:```#include #include#includeusing namespace cv;using namespace std;Mat img;//灰度值归一化Mat bgr;//HSV图像Mat hsv;//色相int hmin = 8;int hmax = 23;int smin = 43;int smax = 255;int vmin = 46;int vmax = 255;int h...
阅读全文
摘要:``` include include include using namespace cv; using namespace std; //输入图像 Mat img; //灰度值归一化 Mat bgr; //HSV图像 Mat hsv; //色相 string windowName = "src"
阅读全文