
opencv
mathilde27
这个作者很懒,什么都没留下…
展开
-
opencv 学习笔记 (图像基础)
1. 读图像,显示图像,保存图像读图像,显示的格式有:彩色(1) cv2.IMREAD_COLOR,灰度(0) cv2.IMREAD_GRAYSCALEimport cv2img = cv2.imread('01.png', cv2.IMREAD_COLOR)cv2.imshow('image', img)k = cv2.waitKey(0)cv2.imwrite('02.png', img原创 2016-06-08 15:59:37 · 688 阅读 · 0 评论 -
用ffmpeg转换图片、视频格式yuv, C语言读取YUV图像
1.用ffmpeg将视频转换为yuv格式ffmpeg.exe -i src.avi -c:v rawvideo -pix_fmt yuv420p 1280x720.yuv输出视频可以用yuvPlayer打开2.用ffmpeg将jpg,png图像转换为yuv格式建议图像命名为宽乘高 width*height,乘号用字母”x”。 使用ffmpeg的命令为:ffmpeg.exe -i 1024x680.原创 2016-08-28 20:33:45 · 7280 阅读 · 1 评论 -
人脸对齐旋转人脸(opencv)
根据对齐点将人脸进行旋转#include <cv.h>#include <highgui.h>#include <fstream>#include <vector>#include <opencv2/opencv.hpp>using namespace cv;using namespace std;Mat_<double> LoadGroundTruthShape(string fil原创 2016-12-25 22:27:01 · 7683 阅读 · 1 评论 -
opencv3 ubuntn 安装
1. sudo apt-get install build-essential2. sudo apt-get install cmake git pkg-config libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev sudo apt-get install python-dev python-open原创 2016-11-23 14:58:12 · 546 阅读 · 0 评论 -
opencv 读取、修改、保存视频文件
用VideoCapture 读取avi视频文件#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main(int argc, char** argv) {原创 2016-11-14 10:04:19 · 1567 阅读 · 0 评论 -
LBP
LBP原创 2016-11-07 11:05:22 · 408 阅读 · 0 评论 -
HOG
HOG:默认参数 win_Size (w=80,h=128)把图像resize到这个尺寸resize(src,dst,Size(width,height));cell_Size (8,8) 宽度上有80/8=10个cell,高度上有128/8=16个,总共 10×16=160 10\times 16=160 个cellsblock_Size(16,16), block_st原创 2016-10-25 16:55:27 · 352 阅读 · 0 评论 -
opencv求cov_matrix
#include<cv.h>#include<highgui.h>Mat_<double> covMat;Mat_<double> meanMat;calcCovarMatrix(samples, 3, covMat, meanMat, CV_COVAR_NORM);string fileName = "test.txt";FileStorage fs(fileName, FileStora原创 2016-11-04 10:46:32 · 733 阅读 · 0 评论 -
Mat
Mat Mat M(3,2 , CV_8UC3, Scalar(0, 1, 255)); cout << "M=" << M << endl;M ( width, high, …) CV_8UC3 表示8bit,unsigned (0-255), 3 channels Scalar为每个像素点的值颜色a simple color reduction method 3个颜色通道,每原创 2016-06-15 19:45:57 · 450 阅读 · 0 评论 -
opencv(c++)学习笔记1
开始用Visual studio安装使用opencv。 建议创建头文件,声明所有函数和include,并命名/*版权声明:....版本号:作者:时间:*/#ifndef FIRST_H // if not defined#define FIRST_H#include <iostream>using namespace std;void neo(); // declaration f原创 2016-06-13 15:45:53 · 473 阅读 · 0 评论 -
caffe安装(2)python3.5+opencv3.1+caffe
1. OpenCV3opencv3 与cuda8不兼容,不启动支持cuda 真的是历经千辛啊安装依赖库sudo apt-get install cmake git pkg-config libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev sudo apt-get install python-dev python-openC原创 2017-02-05 11:28:26 · 4053 阅读 · 0 评论