当前位置:网站首页>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;
原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/09/20210913201940625Z.html