N9000 Face Target Configuration Management¶
Face target configuration management includes: target group information management, target (face library) information management, channel face capture information management, face comparison function, alarm upload, map search, etc.
-
Target group information management: including the creation, modification, deletion, query and other operations, by creating different groups, can be in multiple channels, the group of each person to achieve capture, video alarm linkage and other functions.
-
Target (face library) information management: including create, modify, delete, query, copy and other operations, through which to achieve the addition, modification, deletion, query, copy and other operations for different target groups of targets.
-
Channel face capture information management: query channel capture map .
-
Query face capture: You can sort the query according to the event types such as blacklist, whitelist and stranger.
-
Face comparison function: the camera captures the picture and the face picture in the face library for comparison, and returns the face information whose similarity exceeds the set threshold, including the captured face picture, person attributes (gender, age, whether to wear a mask, etc.), face temperature and face picture matched in the face library, and person information (including name, date of birth, gender, cell phone, ID type and ID number, etc.).
-
Search by picture: retrieve the picture data in the device's face library or capture library according to the target picture recognition result.
Interface Overview¶
| interface Name | Functional Description |
|---|---|
NET_SDK_FaceMatchOperate | Face comparison related operations. Including: whether to support face comparison, face target group management, face target management, comparison alarm configuration, get target data |
Process Description¶
---
title: N9000 face target configuration
---
flowchart TD
A(Device SDK initialization <br><strong>NET_SDK_Init</strong>)
B(User registers device <br><strong>NET_SDK_Login</strong> or <br><strong>NET_SDK_LoginEx</strong>)
C{"Whether face matching is supported"}
CC(Call interface <br><strong>NET_SDK_FaceMatchOperate</strong>)
C2(Query face group list <br><strong>NET_SDK_GET_FACE_INFO_GROUP_LIST</strong><hr>add face group <br><strong>NET_SDK_ADD_FACE_INFO_GROUP</strong><hr>modify face group <br><strong>NET_SDK_SET_FACE_INFO_GROUP</strong><hr>delete face group <br><strong>NET_SDK_DEL_FACE_INFO_GROUP</strong>)
C11(Query face list <br><strong>NET_SDK_GET_FACE_INFO_LIST</strong><hr>Add face <br><strong>NET_SDK_ADD_FACE_INFO</strong><hr>Modify face <br><strong>NET_SDK_SET_FACE_INFO</strong><hr>Delete face <br><strong>NET_SDK_DEL_FACE_INFO</strong>)
C01(Query face image list <br><strong>NET_SDK_SEARCH_CH_SNAP_FACE_IMG_LIST</strong><hr>Query face image <br><strong>NET_SDK_SEARCH_CH_SNAP_FACE_IMG</strong><hr>Search image by image <br><strong>NET_SDK_SEARCH_IMAGE_BY_IMG</strong><br><strong>NET_SDK_SEARCH_IMAGE_BY_IMG_V2</strong>)
E(User business logic <br>...)
F(Log out device <br><strong>NET_SDK_Logout</strong>)
G(Release SDK resources <br><strong>NET_SDK_Cleanup</strong>)
A ---> B ----> C ---> |Yes| CC ---> C2 ---> E ---> F --> G
C -- No ---> F
CC ---> C01 ---> E
CC ---> C11 ---> E -
Initialization Interface
NET_SDK_InitCalled at the beginning of a program, a program only needs to be called once. -
User registration means login in to the device, calling
NET_SDK_LoginInterface, only one login per device. -
After login in to the device, you can access the device via the
NET_SDK_FaceMatchOperate(Command:NET_SDK_GET_FACE_MATCH_SUPPORT)Get whether the face matching is supported. -
Target group management, including creation, modification, deletion, query, etc. Related interfaces:
NET_SDK_FaceMatchOperate,Related commands:- Create a target group: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_ADD_FACE_INFO_GROUP); - Delete the specified target group: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_DEL_FACE_INFO_GROUP); - Modify the specified target group: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_SET_FACE_INFO_GROUP); - Query the target group: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_GET_FACE_INFO_GROUP_LIST);
- Create a target group: by
-
Target face library management, including creating, modifying, deleting, querying, copying, etc. Related interfaces:
NET_SDK_FaceMatchOperate,Related commands:- Creation Target :By
NET_SDK_FaceMatchOperate(Command:NET_SDK_ADD_FACE_INFO); - Delete the specified target: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_DEL_FACE_INFO); - Modify the specified target: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_SET_FACE_INFO); - Get the face information of the specified target group: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_GET_FACE_INFO_LIST); - Copy the face information of a specified target group: by
NET_SDK_FaceMatchOperate(Command:NET_SDK_COPY_FACE_INFO);
- Creation Target :By
-
Query channel capture by:
NET_SDK_FaceMatchOperate(Command:NET_SDK_SEARCH_CH_SNAP_FACE_IMG_LIST); -
Search by image by:
NET_SDK_FaceMatchOperate(Command:NET_SDK_SEARCH_IMAGE_BY_IMG、NET_SDK_SEARCH_IMAGE_BY_IMG_V2); -
Called when exiting the program
NET_SDK_LogoutLog off the device. -
Call
NET_SDK_CleanupRelease all resources of the SDK.
Sample Code:¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |