cvlib.h

来自「一个外国人写的人脸检测程序」· C头文件 代码 · 共 31 行

H
31
字号

#ifndef CVLIB_h
#define CVLIB_h


void cvInit(unsigned int image_width, unsigned int image_height,
            unsigned int face_width, unsigned int face_height, double zoom);

int cvInitAI(const wchar_t* face_detector,
             const wchar_t* projection_matrix,
             const wchar_t* skin_filter = 0,
             const wchar_t* preface_filter = 0);              //0-OK, <0-err

void cvSetScales(const double* scales, unsigned int size);     //scales = {0.9, 0.8, 0.7, ... N} N = size

const wchar_t* cvInfo();         //get fdetect setup params

int cvDetect(const unsigned char *pBGR);  

float cvMotionAmount();
float cvSkinAmount();
const vec2D* cvGetFace(unsigned int i);
unsigned int cvGetFacesNumber();
void cvFaceRect(unsigned int i, RECT& rect);                                //get face rectangle


void tic();
__int64 toc();

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?