计算机视觉
文章平均质量分 72
singing1001
码农
展开
-
YUV 格式详解,只看这一篇就够了
https://www.jianshu.com/p/538ee63f4c1c介绍音视频领域的人恐怕没有人不知道 YUV,但是 YUV 本身有好多种变种,名称也各种各样,本文就位大家总结一下YUV 的各种格式。在开始之前,先向大家介绍一款 YUV 图像的查看工具---YUV Eye,大家可以使用这个工具,查看 YUV 图像。有的时候在进行 Debug 的时候,有这样一个工具会方便很多。http://www.realrace.cn/#/YuvEye首先先介绍一下 YUV,我们都知道,YUV转载 2020-10-09 13:40:44 · 2262 阅读 · 1 评论 -
BGR to yuv NV21
int cv2yuvNv21(const cv::Mat& cv_bgr, unsigned char *pbuf){ int W = cv_bgr.cols; int H = cv_bgr.rows; int stride = W;//align_size(W, 32); cv::Mat cv_yuv; cv::cvtColor(cv_bgr,...原创 2020-03-03 13:26:45 · 867 阅读 · 0 评论 -
opencv minAreaRect
#include <stdio.h>#include <iostream>#include <algorithm>#include <fstream>#include <math.h>#include <sys/time.h>#include <opencv2/imgcodecs/legacy/consta...原创 2020-01-10 15:31:25 · 295 阅读 · 0 评论 -
opencv---yuv_NV21到bmp
#include <stdio.h>#include <opencv2/imgcodecs/legacy/constants_c.h>#include <opencv2/imgproc/types_c.h>#include <opencv2/highgui.hpp>#include "opencv2/imgproc.hpp"#include...原创 2019-07-20 11:00:52 · 845 阅读 · 2 评论 -
json文件转成img
#include <stdio.h>#include <iostream>#include <fstream>#include <json/json.h>#include <opencv2/highgui.hpp>#include "opencv2/imgproc.hpp"using namespace std;in...原创 2019-04-02 21:45:58 · 2756 阅读 · 0 评论 -
undefined reference to `png_init_filter_functions_neon'
https://blog.csdn.net/weixin_42330265/article/details/80484978参考:https://sourceforge.net/p/libpng/bugs/230/https://github.com/opencv/opencv/issues/7600报错:undefined reference to `png_init_filter_...转载 2019-03-15 10:26:01 · 2329 阅读 · 0 评论 -
Hi3516 SDK 安装以及升级使用说明
本文转载自:http://blog.sina.com.cn/s/blog_63eaeced0102ux4k.html第一章 Hi3516_SDK_V1.x.x.x版本升级操作说明如果您是首次安装本SDK,请直接参看第2章。第二章 首次安装SDK1、Hi3516 SDK包位置在"Hi3516_V100R001C01/01.softwar...转载 2019-03-04 14:58:48 · 1916 阅读 · 0 评论 -
为什么opencv使用BGR 格式,而不是RGB格式?
https://www.learnopencv.com/why-does-opencv-use-bgr-color-format/原因其实很简单啊,这个解释非常的风趣,“古罗马的马屁股”。One of the elements of good design is the principle of least astonishment ( a.k.a principle of least s...转载 2018-11-29 15:51:46 · 2475 阅读 · 0 评论 -
Explanation of the LAB Color Space
Color space defined by the CIE, based on one channel for Luminance (lightness) (L) and two color channels (a and b).One problem with the XYZ color system, is that colorimetric distances between the ...转载 2018-11-01 10:27:46 · 262 阅读 · 0 评论 -
KCF之特征提取
函数:int getFeatureMaps(const IplImage * image, const int k, CvLSVMFeatureMapCaskade**map);说明:通过filter和mapping操作,得到梯度直方图特征。输入:Image:要进行提取特征的图像; K:HoG的cell size。输出:Map:提取的特征信息。返回值:error ID。处...原创 2018-10-26 18:09:25 · 2507 阅读 · 0 评论 -
4.Opencv svm生成是否戴眼镜的模型
使用svm生成是否戴眼镜的模型,感觉效果还不错。具体实现的代码如下: #include <iostream> #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include "opencv2/imgcodecs.hpp" #include <...原创 2018-08-28 10:46:43 · 1425 阅读 · 0 评论 -
Opencv 生成训练集和测试集---CSV文件读写
Opencv 的训练集和测试写入通过format(Mat , Formatter::FMT_CSV),方式完成;读取是通过TrainData::loadFromCSV完成。具体代码实现如下: /* * filestorage_sample demonstrate the usage of the opencv serialization functionality ...原创 2018-08-28 10:46:04 · 3936 阅读 · 0 评论 -
使用opencv实现camera calibration
使用opencv实现camera calibration(摄像机校准/标定)使用opencv提供的demo(源码为calibration.cpp)实现单目摄像头的image的camera calibration的 基本处理过程 一般步骤分为两个部分,如下:获取camera的内外参和畸变相关系数从图片列表中读取图像,或从camera中获取图像。 cvtColor,把图像转换成灰...原创 2018-08-17 16:10:48 · 2839 阅读 · 0 评论 -
FaceAlignmentByExplicitShapeRegression,代码学习
这个文章我一年前写的,没有写完,我觉得有时间还是要把它研究透的,先发出来,以后再补充。引用的实现及论文概述引用的论文《FaceAlignmentByExplicitShapeRegression》;因为当前实现的训练和测试是分离的,因此,代码学习按照原有论文的实现进行代码学习,分为训练和测试两个部分进行分析。https://github.com/soundsilence/FaceAl...原创 2018-08-16 16:34:34 · 607 阅读 · 0 评论