
OpenCV
Carpe_D1em
这个作者很懒,什么都没留下…
展开
-
OpenCV 简单识别人脸的小程序
#include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/face.hpp> #include <iostream> #include <...原创 2019-09-19 09:13:25 · 405 阅读 · 0 评论 -
OpenCV 读取摄像头画面卡顿问题
//画面如果分辨率比较高,需要将帧图片进行压缩后再进行识别 resize(gray, graysmall, Size(gray.cols / 3, gray.rows / 3)); cascade.detectMultiScale(graysmall, rects, 1.1, 3, 0 | CASCADE_SCALE_IMAGE , Size(30,30)); for (auto it =...原创 2019-09-21 10:05:35 · 8676 阅读 · 0 评论 -
OpenCV 图像缩放
//基于水平间隔 Mat imageReduction1(Mat &srcImage, float kx, float ky) { int nRows = cvRound(srcImage.rows * kx); int nCols = cvRound(srcImage.cols * ky); Mat resultImage(nRows, nCols, srcImage.typ...原创 2019-09-24 08:22:13 · 367 阅读 · 0 评论