当前位置:网站首页>Tsingsee Qingxi video easycvr integrated Dahua face recognition equipment
Tsingsee Qingxi video easycvr integrated Dahua face recognition equipment
2022-06-24 04:03:00 【Tsingsee green rhino video】
since EasyCVR Since the hardware version of was launched , Many users are right EasyCVR Interested in the smart analytics version of , One of the important analysis functions is face recognition . At present, the face recognition we have done is mainly to build an information base of face information , Compare with different faces from this information database .
Face database is a collection of face images and personnel information , Provides the addition of face database 、 Delete 、 Modification and search functions . In this article, we share our integration process of Dahua face recognition .
Process description
call CLIENT_Init complete SDK Initialization flow .
- step 1: After successful initialization , call CLIENT_LoginEx2 Log in to the device .
- step 2: call CLIENT_OperateFaceRecognitionGroup Add the face database according to the corresponding enumeration type 、 modify .
- step 3: modify 、 Delete operation .
call CLIENT_FindGroupInfo Get face database information .
- step 4: After using the business , call CLIENT_Logout Logout device .
- step 5:SDK After using the function , call CLIENT_Cleanup Release SDK resources .
Corresponding value description
Face database adding
In operation , Operation type emOperateType Corresponding value NET_FACERECONGNITION_GROUP_ADD, The corresponding structure is NET_ADD_FACERECONGNITION_GROUP_INFO.
Face database modification
Modify the operation type of face database emOperateType The corresponding value is NET_FACERECONGNITION_GROUP_MODIFY, The corresponding structure is NET_MODIFY_FACERECONGNITION_GROUP_INFO; To modify the face database, you need to specify GroupID And face database types emFaceDBType, As specified by the GroupID You need a that already exists on the device .
Face database deletion
Delete face database operation type emOperateType The corresponding value is NET_FACERECONGNITION_GROUP_DELETE, The corresponding structure is NET_DELETE_FACERECONGNITION_GROUP_INFO; If... Is specified when deleting the face database GroupID, Delete the corresponding GroupID Our face database , If not specified GroupID, Delete all face databases .
// Set face database query conditions
NET_IN_FIND_GROUP_INFO stuInParam = {sizeof(stuInParam)};
NET_OUT_FIND_GROUP_INFO stuOutParam = {sizeof(stuOutParam)};
stuOutParam.nMaxGroupNum = 100;
NET_FACERECONGNITION_GROUP_INFO *pGroupInfo = NULL;
stuOutParam.pGroupInfos = new NET_FACERECONGNITION_GROUP_INFO[100];
memset(stuOutParam.pGroupInfos, 0,sizeof(NET_FACERECONGNITION_GROUP_INFO)*100);
// Face database query
BOOL bRet = CLIENT_FindGroupInfo(lLoginHandle, &stuInParam, &stuOutParam, 5000);
if(FALSE == bRet)
{
printf("CLIENT_FindGroupInfo: failed! Error code %x.\n", CLIENT_GetLastError());
return -1;
}
delete[] pGroupInfo;边栏推荐
- 你了解TLS协议吗?
- What is FTP? How does the ECS open the FTP protocol?
- flutter系列之:flutter中的offstage
- Browser rendering mechanism
- Clang代码覆盖率检测(插桩技术)
- How to bypass CDN to get web pages? How many options are available?
- hprofStringCache
- How to identify information more quickly and accurately through real-time streaming media video monitoring?
- 多任务视频推荐方案,百度工程师实战经验分享
- 祝贺钟君成为 CHAOSS Metric Model 工作组的 Maintainer
猜你喜欢

JVM调优简要思想及简单案例-怎么调优

ModStartCMS 企业内容建站系统(支持 Laravel9)v4.2.0

老弹出explorer.exe遇到问题已停止工作,怎么办?

ClickHouse(02)ClickHouse架构设计介绍概述与ClickHouse数据分片设计

【代码随想录-动态规划】T392.判断子序列

Clickhouse (02) Clickhouse architecture design introduction overview and Clickhouse data slicing design

halcon知识:区域(Region)上的轮廓算子(2)

Common content of pine script script

讲讲我的不丰富的远程办公经验和推荐一些办公利器 | 社区征文

Black hat SEO actual combat directory wheel chain generates millions of pages in batch
随机推荐
浅谈游戏安全 (一)
Received status code 502 from server: Bad Gateway
How to modify the channel name registered by the camera in the easygbs national standard platform?
Do you understand TLS protocol?
[numpy] numpy's judgment on Nan value
How to intuitively explain server hosting and leasing to enterprises?
黑帽SEO实战之通用301权重pr劫持
Web penetration test - 5. Brute force cracking vulnerability - (7) MySQL password cracking
How to select a high-performance amd virtual machine? AWS, Google cloud, ucloud, Tencent cloud test big PK
Flutter series: offstage in flutter
Psexec right raising
"." in the structure of C language And "- & gt;" Differences between
Clickhouse (02) Clickhouse architecture design introduction overview and Clickhouse data slicing design
The quick login of QQ cannot be directly invoked through remote login, and the automatic login of QQ can be invoked using VNC
一次 MySQL 误操作导致的事故,「高可用」都顶不住了!
[Mid Autumn Festival greeting new year with good gifts] Tengyun pioneer feedback exchange group received new benefits!
How do websites use CDN? What are the benefits of using it?
C language linked list points to the next structure pointer, structure and its many small details
flutter系列之:flutter中的offstage
golang clean a slice