16 Star 30 Fork 5

Qiansou / AgeGender

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

输入图片说明

AgeGender

AgeGender V2 千搜人脸属性sdk, 性别、年龄预测

#调用示例:

#include "stdafx.h"
#include <windows.h>
#include "opencv2/opencv.hpp"
#include "WisFaceEngineExtend.h"

using namespace cv;

int _tmain(int argc, _TCHAR* argv[])
{
	QsHANDLE_EXTEND engine = qs_Wis_Create_Extend();

	Mat img1 = imread("1.jpg");
	if (img1.empty() == true)
	{
		printf("imread failed\n");
		return 1;
	}
	//需要调用 人脸识别SDK qs_Wis_DetectFaces,返回人脸QsFace.rect,
        //或者调用本sdk中qs_Wis_Process_Detect进行人脸定位,找到脸部的位置信息
	QsRect faces[1];
	int facenum = qs_Wis_Process_Detect(engine,img1.data, img1.cols, img1.rows, img1.step.p[0], faces,1);
	if (facenum < 1)
	{
		printf("no face in 1.jpg\n");
		return 0;
	}
	QsFaceAttr attr;
	
	qs_Wis_Process_FaceInfo(engine,img1.data, img1.cols, img1.rows, img1.step.p[0],faces[0],&attr);
	printf("age=%f, gender = %d\n",attr.age,attr.gender);
	qs_Wis_Process_Dispose(engine);
	system("pause");
	return 0;
}

输出

age=26.000000, gender = -1

结构体说明

typedef struct  {
	int gender;			 **//1 man, -1 woman** 
	float age;
} QsFaceAttr;

技术支持

QQ: 2843028512
QQ群:567619263

使用须知

该SDK必须配合千搜人脸SDK的模型文件,千搜技术支持 QQ 2843028512
C++ 人脸识别SDK 点击下载(包含模型文件)

Empty file

About

千搜科技第二代人脸属性SDK-性别&年龄预测 expand collapse
C++
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
C++
1
https://gitee.com/qiansou/AgeGender.git
git@gitee.com:qiansou/AgeGender.git
qiansou
AgeGender
AgeGender
master

Search

53164aa7 5694891 3bd8fe86 5694891