1 Star 0 Fork 0

wisFaceArm / face-arm-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
video.cpp 795 Bytes
一键复制 编辑 原始数据 按行查看 历史
Gavin 提交于 2016-12-11 23:37 . add files
#include <iostream>
#include <algorithm>
#include <string>
#include "opencv2/opencv.hpp"
using namespace std;
using namespace cv;
using namespace std;
#include "ccapturethread.h"
int main(int argc, char* argv[])
{
CCaptureThread *m_capture;
m_capture = new CCaptureThread();
m_capture->Initial();
bool tag = m_capture->Start();
if(!tag){
cout << ("open camera failed\n");
exit(0);
}
printf("open camera success\n");
cout << "ok" << endl;
Mat frame;
while(1)
{
if(! m_capture->GetFrame(frame)){
//return ;
continue;
}
double t = (double)getTickCount();
t = ((double)getTickCount() - t)/getTickFrequency();
std::cout<<"DetectFace time="<<t<<endl;
}
}
C++
1
https://gitee.com/wisFaceArm/face-arm-demo.git
git@gitee.com:wisFaceArm/face-arm-demo.git
wisFaceArm
face-arm-demo
face-arm-demo
master

搜索帮助