当前位置:网站首页>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;边栏推荐
- How to be a web server and what are the advantages of a web server
- well! Do you want to have a romantic date with the shining "China Star"?
- Student information management system user manual
- 开源一款监控数据采集器,啥都能监控
- [new light weight first purchase special] 1-core 2g5m light weight application server costs 50 yuan in the first year. It is cost-effective and helps you get on the cloud easily!
- Pycharm from installation to full armament
- Can the video streams of devices connected to easygbs from the intranet and the public network go through their respective networks?
- Web penetration test - 5. Brute force cracking vulnerability - (7) MySQL password cracking
- Rasa 3. X learning series -rasa 3.2.0 new release
- Pits encountered in refactoring code (1)
猜你喜欢

Black hat SEO actual combat directory wheel chain generates millions of pages in batch

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

内存泄漏之KOOM

Yuanqi forest pushes "youkuang", and farmers' mountain springs follow the "roll"?

应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构

浅谈游戏安全 (一)

Clang代码覆盖率检测(插桩技术)

openGauss 3.0版本源码编译安装指南

ModStartCMS 主题入门开发教程

Brief ideas and simple cases of JVM tuning - how to tune
随机推荐
你了解TLS协议吗?
High quality travel on national day, visual start of smart Tourism
浅谈游戏安全 (一)
C string input considerations
The practice of tidb slow log in accompanying fish
JVM调优简要思想及简单案例-怎么调优
开源一款监控数据采集器,啥都能监控
Tencent cloud console work order submission Guide
What is FTP? What is the FTP address of the ECS?
C language in DSP (2) -- definition of structure
Modstartcms theme introductory development tutorial
Getlocationinwindow source code
Yuanqi forest pushes "youkuang", and farmers' mountain springs follow the "roll"?
Clickhouse synchronous asynchronous executor
web rdp Myrtille
Installation of pytorch in pycharm
Diskpart San policy is not onlineall, which affects automatic disk hanging
Understanding of structure in C language
How do websites use CDN? What are the benefits of using it?
Pycharm from installation to full armament