
OpenCV
文章平均质量分 54
北境の守卫
Good
展开
-
OpenCV - 摄像头读取图像
VideoCapture cap(1); // try to open the USB cameraconst string windowName = "Realtime Image";bool isRunning = true;if (!cap.isOpened()) // check if we succeeded{ cap.open(0);// try to open t...原创 2018-06-12 14:15:15 · 481 阅读 · 0 评论 -
【OpenCV】 DLT 算法 (Direct linear transformation)
Backto OpenCV IndexOpenCV 计算外参的函数 cvFindExtrinsicCameraParams2, 用到了 DLT 方法来计算初始的外参参数.Introfrom wikipedia:Direct linear transformation (DLT) is an algorithm which solves a set of variables from ...原创 2018-09-25 20:22:21 · 7661 阅读 · 0 评论 -
【OpenCV】 UMat对象
Backto OpenCV IndexUMat 是 OpenCV3 中新引入的图像容器对象, 与常用的 Mat 容器有相似的功能和相同的 API 函数, 并且二者可以很容易的相互转换.引入 UMat 的目的是为了在支持 OpenCL的 CPU 或 GPU 平台上, 使用 OpenCL 加速. 同时, 同一套代码, 在不支持 OpenCL 的平台上也可以按 Mat 常规的方式进行计算, 而...原创 2018-09-22 17:58:53 · 4751 阅读 · 0 评论 -
【OpenCV】 OpenCV 入门介绍 (OpenCV Introduction)
Backto OpenCV Index若未特殊注明, 本系列文章所用的 OpenCV 版本是 3.1.0.OpenCV (Open Source Computer Vision Library: http://opencv.org) is an open-source BSD-licensed library that includes several hundreds of compu...翻译 2018-09-22 20:13:57 · 800 阅读 · 0 评论 -
【OpenCV】OpenCV 3.1.0 介绍
Backto OpenCV IndexOpenCV 3.1 official doc原创 2018-09-22 20:34:18 · 428 阅读 · 0 评论 -
【OpenCV】 OpenCV 4.x 追踪
Backto OpenCV Index文章目录Timelines2018-09-23 OpenCV 4.0 Alpha 版发布Timelines2018-09-23 OpenCV 4.0 Alpha 版发布infoOpenCV 更快了 : 全面拥抱 C++ 11可以使用 C++ 11 原生语言特性了, 比如 parallel_for , lambda 等标准的 std...原创 2018-09-23 10:06:29 · 7232 阅读 · 1 评论 -
【OpenCV】一些常用小类汇总 (size等)
OpenCV 中 size 直接给定数值的构造函数是Size(double width, double height) 竟然不是和 Mat 一致的 (height, width), 简直匪夷所思.原创 2018-10-26 22:16:56 · 1244 阅读 · 0 评论 -
【OpenCV】VideoCapture类解析
Backto OpenCV IndexVideoCaputre 是OpenCV 中用来从摄像头或视频文件或图像序列 来 获取/处理视频的类.Class for video capturing from video files, image sequences or cameras. The class provides C++ API for capturing video from c...原创 2018-11-13 10:14:25 · 2434 阅读 · 0 评论 -
【OpenCV】文字绘制 putText
Backto OpenCV Index在图像上绘制文字,void putText( InputOutputArray img, const String& text, Point org, int fontFace, double fontScale, Scalar color, ...原创 2018-11-15 18:17:30 · 2643 阅读 · 0 评论 -
【OpenCV】常用的颜色 Colorpicker
Backto OpenCV Indexcv::Scalar(BB, GG, RR)注意顺序基本款 Basic Colors出彩款more, see refRefRGB Color Codes Chart原创 2018-12-01 11:36:55 · 1011 阅读 · 0 评论 -
【OpenCV】OpenCV-Python基础图像操作
Backto OpenCV Index引用的 package首先, 必须引的包# mustimport cv2import numpy as np# highly usedfrom matplotlib import pyplot as plt图像文件操作# READimg = cv2.imread('messi5.jpg')# WRITE# Shape of i...原创 2018-12-13 19:59:25 · 203 阅读 · 0 评论 -
【OpenCV】OpenCV 中的 GPU 并行优化
https://blog.youkuaiyun.com/kelvin_yan/article/details/41804357原创 2018-12-25 18:13:46 · 979 阅读 · 0 评论 -
【OpenCV】 关于 namespace cv
绝对禁止使用using namespace cv;K01: “ACCESS_MASK”冲突https://blog.youkuaiyun.com/kelvin_yan/article/details/48781571原创 2018-12-25 18:21:06 · 1104 阅读 · 0 评论 -
【OpenCV】OpenCV 的文件读写操作(YAML)
Backto OpenCV Index文章目录文件格式基本语法构造函数打开文件数据的读写层次化文件结构文件的关闭使用细节 TipsRef文件格式我选择 yaml : Yet Another Markup Language, 一种很流行的标记语言, 简洁, 清晰, 在 web 端做配置文件也很流行.后缀是 .yml, 如 config.yml基本语法OpenCV 提供 FileS...原创 2018-09-19 10:45:06 · 2578 阅读 · 0 评论 -
【OpenCV】 POSIT 算法 -- 3D姿态估计
Backto OpenCV IndexPOSIT(Pose from Orthography and Scaling with Iterations), 比例正交投影迭代变换算法.Pose : 首先这个算法用于估计 PoseIterations : 其次, 这个算法采用优化迭代的算法估计 poseOrthography : 这个迭代的初始值是认定 物理坐标点在一个平面上, 因此有 ...转载 2018-09-23 18:26:40 · 2246 阅读 · 0 评论 -
Homography 笔记(附 OpenCV 代码)
翻译自 https://www.learnopencv.com/homography-examples-using-opencv-python-c/ 。 依个人口味略作修改,侵权删。据圣经神话的记载,巴别塔(The Tower of Babel)是人类的第一个工程灾难。这个项目具备了所有的条件,但是仍然失败了。因为上帝混淆了人类的语言,从而使得他们无法再有效的沟通协作,进而导致了通天塔的崩溃...翻译 2018-06-22 19:51:19 · 6474 阅读 · 4 评论 -
OpenCV 中Mat图像提取ROI
Mat类表示的图像进行ROI操作有两种方法1. 使用拷贝构造函数Mat(constMat& m, const Rect& roi ),矩形roi指定了兴趣区Mat src = imread(“xx.jpg”); Mat srcROI( src, Rect(0,0,src.cols/2,src.rows/2)); 2. 使用操作符”()”,即Mat operat...原创 2018-06-27 15:00:03 · 3612 阅读 · 0 评论 -
【OpenCV】应用场景笔记
有道是:好记性不如烂笔头。记下经验,更重要的是记下踩过的坑场景:读取图像Mat imread(const string& filename, int flags=1 )这里的flags默认是1,参数可能取值为> 0, CV_LOAD_IMAGE_COLOR, If原创 2018-07-03 20:38:53 · 2651 阅读 · 0 评论 -
【OpenCV】Mat 相关
Mat 中的数据结构HereMat 的遍历操作HereMat原创 2018-07-04 10:30:45 · 378 阅读 · 0 评论 -
【OpenCV】多项式方程求解(PolySolver)
OpenCV 提供了一个求解多项式的接口,solvePoly//Finds the real or complex roots of a polynomial equation.double solvePoly(InputArray coeffs, OutputArray roots, int maxIters=300 )各参数含义,coeffs – array of polyno...原创 2018-07-12 12:20:57 · 3413 阅读 · 0 评论 -
【OpenCV】Multiband Blender 用于图像拼缝的平滑
MultibandOpenCV 接口实例Mat imgA, imgB;Mat maskA, maskB, maskFinal;Mat multibandResult;Rect roiDst;.........detail::MultiBandBlender blender;blender.prepare(roiDst);blender.feed(imgA.clon...原创 2018-07-05 20:38:41 · 9627 阅读 · 3 评论 -
【OpenCV】同一个窗口同时排列显示多幅图像
使用这哥们儿分享的函数,How to Display more than one image in a single window#include <opencv2/opencv.hpp>#include <stdio.h>#include <stdarg.h>using namespace cv;using namespace std;v...原创 2018-07-06 10:57:29 · 3237 阅读 · 0 评论 -
【OpenCV】各种版本与不同操作系统下的开发环境配置
OpenCV 3.1.0OpenCV 3.1.0 + VS2015原创 2018-07-13 10:25:31 · 903 阅读 · 0 评论 -
【OpenCV】张正友标定法的 OpenCV 实现
今天看到一篇文章, 把 OpenCV 中实现标定的总体流程, 每个步骤, 调用的每个函数 都讲解清楚了, 直接带路, 张正友相机标定Opencv实现以及标定流程&&标定结果评价&&图像矫正流程解析(附标定程序和棋盘图)....原创 2018-09-10 09:57:27 · 2250 阅读 · 0 评论 -
【OpenCV】 OpenCV 索引(OpenCV Index)
OpenCV : Open source Computer Vision library简介 Intro核心模块使用场景简介 IntroOpenCV 2 的组织结构[OpenCV 3 的组织结构]安装 Installation核心模块Mat 相关使用场景常用小场景图像中提取 ROI视频中提取图像: 从摄像头或视频文件...原创 2018-09-18 21:30:34 · 3171 阅读 · 0 评论 -
【OpenCV】 OpenCV 1.x 知识点
Backto OpenCV IndexOpenCV 1.x 中定义了一系列 C API, 在 OpenCV 2.x, OpenCV 3.x 中仍然兼容. 在看旧代码的时候, 或者需要调一些 old API 的时候, 会遇到这些知识点. 总结一下, 以备查验.RefIplImage, CvMat, Mat 的关系 : 三者各自的构造方式和相互转化方式, 很全面了, 需要了就去里面找一...原创 2018-09-23 18:16:43 · 376 阅读 · 0 评论 -
【OpenCV】opencv-python 版使用要点
Backto OpenCV Indeximage size# for gray imagerows,cols = img.shapeh,w = img.shape# for color imagerows, cols, channels = img.shapeh,w,c = img.shape原创 2019-07-10 15:55:59 · 275 阅读 · 0 评论