0% found this document useful (0 votes)
125 views

ZKBioModule SDK For Windows

The document describes API functions for interacting with ZKTeco biometric devices and databases. It includes functions for initializing and terminating camera, fingerprint, and face recognition devices; capturing and processing image and biometric data; registering and matching biometric templates against databases; and managing biometric databases. The functions have standardized calling conventions and handle types, and are used to access devices, enroll and identify users, and integrate with external systems.

Uploaded by

KHAMANE Amine
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views

ZKBioModule SDK For Windows

The document describes API functions for interacting with ZKTeco biometric devices and databases. It includes functions for initializing and terminating camera, fingerprint, and face recognition devices; capturing and processing image and biometric data; registering and matching biometric templates against databases; and managing biometric databases. The functions have standardized calling conventions and handle types, and are used to access devices, enroll and identify users, and integrate with external systems.

Uploaded by

KHAMANE Amine
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 123





















VideoData

CustomData

VideoDataCallback

CustomDataCallback

ZKCamera_Init

ZKCamera_Terminate

ZKCamera_GetDeviceCount

ZKCamera_GetDeviceType

ZKCamera_OpenDevice

ZKCamera_CloseDevice

ZKCamera_GetCapWidth

ZKCamera_GetCapHeight

ZKCamera_SetDataCallback

ZKCamera_FreePointer
{
uint32_t frame_index;
uint32_t ori_length;
uint32_t data_length;
unsigned char* data;
};

uint32_t frame_index

uint32_t ori_length

uint32_t data_length

unsigned char* data

{
int64_t frame_index;
int32_t width;
int32_t height;
char *customData;
};

int64_t frame_index

int32_t width
int32_t height

char *customData

typedef void(__stdcall *VideoDataCallback)


(
void *pUserParam,
VideoData data
)

pUserParam

data


typedef void(__stdcall *CustomDataCallback)
(
void *pUserParam,
CustomData data
)

pUserParam

data

int __stdcall ZKCamera_Init()

Other


int __stdcall ZKCamera_Terminate()

Other

int __stdcall ZKCamera_GetDeviceCount()

>0

Other


int __stdcall ZKCamera_GetDeviceType(int index)

index

<0

int __stdcall ZKCamera_OpenDevice


(
int index,
int w,
int h,
int fps,
void **handle
)
index

fps

handle

Other



int __stdcall ZKCamera_CloseDevice(void *handle)

handle

Other

int __stdcall ZKCamera_GetCapWidth(void *handle)

handle

int __stdcall ZKCamera_GetCapHeight(void *handle)

handle

void __stdcall ZKCamera_SetDataCallback


(
void *handle,
VideoDataCallback videoCallback,
CustomDataCallback customCallback,
void *pUserParam
)

handle

videoCallback

customCallback

pUserParam


void __stdcall ZKCamera_FreePointer(void *pPointer)

pPointer

SendFileCallback

ZKHID_Init

ZKHID_Terminate

ZKHID_GetCount

ZKHID_Open

ZKHID_Close

ZKHID_GetConfig

ZKHID_SetConfig

ZKHID_RegisterFace
ZKHID_RegisterPalm

ZKHID_MergePalm

ZKHID_SnapShot

ZKHID_SendFile

ZKHID_Reboot

ZKHID_ManageModuleData

ZKHID_PollMatchResult

typedef void(__stdcall *SendFileCallback)


(
void *pUserParam,
int progress
)

pUserParam

progress


int __stdcall ZKHID_Init()

Other

int __stdcall ZKHID_Terminate()

Other


int __stdcall ZKHID_GetCount(int *count)

count

Other

int __stdcall ZKHID_Open(int index, void **handle)

index

handle

0
Other

int __stdcall ZKHID_Close(void *handle)

handle

Other

int __stdcall ZKHID_GetConfig


(
void *handle,
int type,
char *json,
int *len
)

handle

type

json

len

Other


int __stdcall ZKHID_SetConfig


(
void *handle,
int type,
char *json
)

handle

type

json

Other


int __stdcall ZKHID_RegisterFace


(
void *handle,
const char* json,
char *faceData,
int *len
)
handle

json

faceData

len

Other

int __stdcall ZKHID_RegisterPalm


(
void *handle,
const char* json,
char *palmData,
int *len
)
handle
json

palmData

len

Other

int __stdcall ZKHID_MergePalm


(
void *handle,
char *palmData,
int *len
)

handle

palmData
len

Other


int __stdcall ZKHID_SnapShot


(
void *handle,
int snapType,
char* snapData,
int *size
)

handle

snapType

snapData

size
0

Other


int __stdcall ZKHID_SendFile


(
void *handle,
int fileType,
char *filePath,
SendFileCallback sendFileCallback,
void *pUserParam
)

handle

fileType

filePath

sendFileCallback

pUserParam
0

Other

int __stdcall ZKHID_Reboot


(
void *handle,
int mode
)

handle

mode

Other


int __stdcall ZKHID_ManageModuleData
(
void *handle,
int type,
char *json,
char *result,
int *len
)

handle

type
json

result

len

Other


int __stdcall ZKHID_PollMatchResult


(
void *handle,
char *json,
int *len
)

handle
json
len

0
Other


ZKFaceMatch_GetVersion

ZKFaceMatch_Init

ZKFaceMatch_Terminate

ZKFaceMatch_Verify

ZKFaceMatch_DBAdd

ZKFaceMatch_DBDel

ZKFaceMatch_DBClear

ZKFaceMatch_DBCount

ZKFaceMatch_DBVerify

ZKFaceMatch_DBIdentify
int __stdcall ZKFaceMatch_GetVersion
(
char* version,
int *size
)

version

size

Error code

int __stdcall ZKFaceMatch_Init(void** context)


context

Error code

int __stdcall ZKFaceMatch_Terminate(void *context)

context

Error code


int __stdcall ZKFaceMatch_Verify
(
void *context,
unsigned char *regTemplate,
unsigned char *verTemplate,
float *score
)

context

regTemplate

verTemplate

score

Error code


int __stdcall ZKFaceMatch_DBAdd


(
void *context,
char *id,
unsigned char *regTemplate
)

context

id

regTemplate

Error code

int __stdcall ZKFaceMatch_DBDel


(
void *context,
char *id
)

context
id

Error code

int __stdcall ZKFaceMatch_DBClear(void *context)

context

Error code

int __stdcall ZKFaceMatch_DBCount


(
void *context,
int *size
)
context

size

Error code

int __stdcall ZKFaceMatch_DBVerify


(
void *context,
unsigned char *verTemplate,
char *id,
float *score
)

context

verTemplate

id

score
Error code


int __stdcall ZKFaceMatch_DBIdentify


(
void *context,
unsigned char *verTemplate,
char **id,
float *score
)

context

verTemplate

id

score

Error code



ZKPalmMatch_GetVersion

ZKPalmMatch_Init

ZKPalmMatch_Terminate

ZKPalmMatch_Verify

ZKPalmMatch_DBAdd

ZKPalmMatch_DBDel

ZKPalmMatch_DBClear

ZKPalmMatch_DBCount

ZKPalmMatch_DBVerify

ZKPalmMatch_DBIdentify

int __stdcall ZKPalmMatch_GetVersion


(
char* version,
int size

)
version

size

Error code

int __stdcall ZKPalmMatch_Init(void **context)

context

Error code


int __stdcall ZKPalmMatch_Terminate(void *context)

context

Error code

int __stdcall ZKPalmMatch_Verify


(
void *context,
unsigned char *regTemplate,
unsigned char *verTemplate,
int *score
)

context
regTemplate

verTemplate

score

Error code


int __stdcall ZKPalmMatch_DBAdd


(
void *context,
const char *id,
const unsigned char *regTemplate
)

context

id

regTemplate

Error code


int __stdcall ZKPalmMatch_DBDel
(
void *context,
char *id

context

id

Error code

int __stdcall ZKPalmMatch_DBClear(void *context)

context
Error code

int __stdcall ZKPalmMatch_DBCount


(
void *context,
int *size
)

context

size

Error code


int __stdcall ZKPalmMatch_DBVerify
(
void *context,
unsigned char *verTemplate,
const char *id,
int *score

context

verTemplate

id

score

Error code



int __stdcall ZKPalmMatch_DBIdentify
(
void *context,
unsigned char *verTemplate,
char *id,
int *score

context

verTemplate

id

score

Error code



{

"image": {
"bioType": "face",
"data": "/9j/4AAQSkZJRgABA",
"format": "jpeg",
"width": 720,
"height": 1280
}

bioType 

data

format
width

height

"cacheId": {
"bioType": "face",
"data": 1
}

bioType 

data
{
"feature": {
"bioType": "face",
"data": "xxxx",
"size": 1024
}
}

bioType 

data

size

{
"attribute": {
"age": 29,
"beauty": -1,
"cap": 0,
"expression": 0,
"eye": -1,
"gender": 1,
"glasses": -1,
"mouth": -1,
"mustache": 1,
"respirator": 0,
"skinColor": 0,
"smile": -1
}
}

age

beauty

cap

expression

eye

gender

glasses

mouth

mustache

respirator

skinColor

smile
{
"identify": [{
"groupId": "",
"name": "1180665",
"personId": "1180665",
"similarity": 0.9328765869140625,
"userId": "1180665"
}]
}

groupId

name

personId

similarity

userId

{
"liveness": {
"irFrameId": 10339,
"liveness": 2,
"livenessMode": 12,
"livenessScore": 0.91753107309341431,
"quality": 0.90849864482879639
}
}

irFrameId

liveness

livenessMode

livenessScore

quality

{
"landmark": {
"count": 106,
"data": "xxxx"
}
}

count

data

{
"tracker": {
"blur": 0.0030255913734436035,
"landmark": {
"count": 106,
"data": "xxxx"
},
"pose": {
"pitch": -4.165733814239502,
"roll": 0.42814359068870544,
"yaw": -9.6133241653442383
},
"rect": {
"bottom": 730,
"left": 529,
"right": 712,
"top": 477
},
"snapType": "",
"trackId": 40
}
}
blur
landmark
pose
rect
trackId
snapType

{
"pose": {
"pitch": -4.165733814239502,
"roll": 0.42814359068870544,
"yaw": -9.6133241653442383
}
}

pitch
roll
yaw
{
"rect": {
"bottom": 730,
"left": 529,
"right": 712,
"top": 477
}
}

bottom
left
right
top

{
"faceInfo": {
"attribute": {
"age": 30,
"beauty": -1,
"cap": 0,
"expression": 0,
"eye": -1,
"gender": 0,
"glasses": -1,
"mouth": -1,
"mustache": 1,
"nation": -1,
"respirator": 0,
"skinColor": 0,
"smile": -1
},
"pose": {
"pitch": 3.5096845626831055,
"roll": -2.404015064239502,
"yaw": -13.170290946960449
},
"rect": {
"bottom": 888,
"left": 167,
"right": 507,
"top": 562
},
"landmark": {
"count": 106,
"data": "xxxx"
},
"score": 0.808082
}
}

attribute
pose
rect
landmark
score

{
"palmInfo": {
"rect": {
"x0": 156,
"y0": 222,
"x1": 356,
"y1": 222,
"x2": 888,
"y2": 167,
"x3": 507,
"y3": 562
},
"imageQuality": 90,
"templateQuality": 40
}
}

imageQuality
templateQuality

x0

y0

x1

y1

x2

y2

x3

y3

"feature": {

"verTemplate":

"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",

"verTemplateSize": 26448,

"preTemplate":
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",

"preTemplateSize": 98448

verTemplate

verTemplateSize

preTemplate

preTemplateSize

{
"image": {
"bioType":"face",
"data":"/9j/4AAQSkZJRgABA",
"format":"jpeg",
"width":720,
"height":1280
},
"feature" : "true",
"faceInfo" : "true",
"picture" : "true"
}
image

feature

faceInfo

picture

{
"data": {
"faces": [{
"faceInfo": {
"attribute": {
"age": 36,
"beauty": -1,
"cap": 0,
"expression": 0,
"eye": 0,
"gender": 1,
"glasses": -1,
"mouth": -1,
"mustache": 1,
"nation": -1,
"respirator": 0,
"respiratorLevel": 0,
"skinColor": 0,
"smile": -1
},
"landmark": {
"count": 106,
"data": "xxxxxx"
},
"pose": {
"pitch": -1.715240478515625,
"roll": -2.3650076389312744,
"yaw": -0.57134813070297241
},
"rect": {
"bottom": 660,
"left": 220,
"right": 504,
"top": 360
},
"score": 0.99672424793243408
},
"feature": {
"bioType": "face",
"data": "xxxx",
"size": 1024
}
}]
},
"detail": "success",
"status": 0
}

faces

feature

picture

faceInfo

status
{
"face": [{
"attribute": {
"age": 25,
"beauty": -1,
"cap": 0,
"expression": 0,
"eye": -1,
"gender": 1,
"glasses": -1,
"mouth": -1,
"mustache": 1,
"nation": -1,
"respirator": 0,
"skinColor": 0,
"smile": -1
},
"feature": {
"data": "xxxxxx",
"size": 1024
},
"identify": [{
"groupId": "",
"name": "magic",
"personId": "1180665",
"similarity": 0.965038001537323,
"userId": "1180665"
}],
"liveness": {
"irFrameId": 215729,
"liveness": 2,
"livenessMode": 12,
"livenessScore": 0.69999980926513672,
"quality": 0.50933307409286499
},
"tracker": {
"blur": 0.00085997581481933594,
"landmark": {
"count": 106,
"data": "xxxxx"
},
"pose": {
"pitch": -3.7135705947875977,
"roll": 3.0353362560272217,
"yaw": -23.293550491333008
},
"rect": {
"bottom": 797,
"left": 428,
"right": 675,
"top": 585
},
"snapType": "",
"trackId": 41
}
}],
"label": 1
}

attribute
feature
identify

liveness

tracker
label
{
"image": {
"bioType":"palm",
"data":"/9j/4AAQSkZJRgABA",
"format":"gray",
"width":720,
"height":1280
},
"feature" : "true",
"palmInfo" : "true",
"picture" : "true"
}

image

feature

palmInfo

picture
{
"data" : {
"palms" : [
{
"feature" : {
"preTemplate" : "xxxxxxx",
"preTemplateSize" : 98448,
"verTemplate" : "xxxxxx",
"verTemplateSize" : 26448
},
"palmInfo" : {
"imageQuality" : 90,
"rect" : {
"x0" : 585,
"x1" : 0,
"x2" : 0,
"x3" : 499,
"y0" : 447,
"y1" : 340,
"y2" : 818,
"y3" : 925
},
"templateQuality" : 50
}
}
]
},
"detail" : "success",
"status" : 0
}
palms

feature

palmInfo

status

{
"data": {
"palm": {
"feature": {
"mergeTemplate": "xxxxxxxx",
"mergeTemplateSize": 8844
}
}
},
"detail": "success",
"status": 0
}

feature

status
{
"label": 5,
"palm": [{
"feature": {
"verTemplate": "xxxxxxx",
"verTemplateSize": 26448
},
"trackInfo": {
"imageQuality": 134,
"rect": {
"x0": 527,
"x1": 13,
"x2": 10,
"x3": 523,
"y0": 354,
"y1": 349,
"y2": 760,
"y3": 764
}
}
}]
}

feature

label

trackInfo
{
"commonSettings": {
"NIRLiveness": true,
"VLLiveness": false,
"attendInterval": 5000,
"attrInterval": 0,
"attributeRecog": true,
"countAlgorithm": false,
"debugLevel": 0,
"drawTrackRect": false,
"enableStoreAttendLog": true,
"enableStoreStrangerAttLog": false,
"faceAEEnabled": true,
"hacknessThreshold": 0.99000000953674316,
"infraredPictureFormat": "jpeg",
"enableStoreAttendPhoto": false,
"isTrackingMatchMode": true,
"recogInterval": 1000,
"recogRespirator": false,
"recogThreshold": 0.89999997615814209,
"scoringInterval": 5
}
}
{
"status": 0,
"detail": "success",
"data": {
"commonSettings": {
"NIRLiveness": true,
"VLLiveness": false,
"attendInterval": 5000,
"attrInterval": 0,
"attributeRecog": true,
"countAlgorithm": false,
"debugLevel": 0,
"drawTrackRect": false,
"enableStoreAttendLog": true,
"enableStoreStrangerAttLog": false,
"faceAEEnabled": true,
"hacknessThreshold": 0.99000000953674316,
"infraredPictureFormat": "jpeg",
"isTrackingMatchMode": true,
"enableStoreAttendPhoto": false,
"recogInterval": 1000,
"recogRespirator": false,
"recogThreshold": 0.89999997615814209,
"scoringInterval": 5
}
}
}

NIRLiveness

VLLiveness

attendInterval

attrInterval
attributeRecog

countAlgorithm

debugLevel

drawTrackRect

enableStoreAttendLog

enableStoreStrangerAttLog

faceAEEnabled

hacknessThreshold

isTrackingMatchMode

enableStoreAttendPhoto

recogInterval

recogRespirator

recogThreshold

scoringInterval

infraredPictureFormat

status

{
"captureFilter": {
"blurThreshold": 30,
"frontThreshold": 50,
"heightMaxValue": 400,
"heightMinValue": 40,
"pitchMaxValue": 30,
"pitchMinValue": -30,
"rollMaxValue": 30,
"rollMinValue": -30,
"scoreThreshold": 30,
"widthMaxValue": 400,
"widthMinValue": 40,
"yawMaxValue": 30,
"yawMinValue": -30
}
}

{
"status": 0,
"detail": "success",
"data": {
"captureFilter": {
"blurThreshold": 30,
"frontThreshold": 50,
"heightMaxValue": 400,
"heightMinValue": 40,
"pitchMaxValue": 30,
"pitchMinValue": -30,
"rollMaxValue": 30,
"rollMinValue": -30,
"scoreThreshold": 30,
"widthMaxValue": 400,
"widthMinValue": 40,
"yawMaxValue": 30,
"yawMinValue": -30
}
}
}
blurThreshold

frontThreshold

heightMaxValue

heightMinValue

pitchMaxValue

pitchMinValue

rollMaxValue

rollMinValue

scoreThreshold

widthMaxValue

widthMinValue

yawMaxValue

yawMinValue

status

{
"MotionDetectionSetting": {
"brightnessThreshold": 240,
"idleTimeOutMS": 11000,
"motionDetectFunOn": true,
"sensitivityThreshold": 5
}
}
{
"status": 0,
"detail": "success",
"data": {
"MotionDetectionSetting": {
"brightnessThreshold": 240,
"idleTimeOutMS": 11000,
"motionDetectFunOn": true,
"sensitivityThreshold": 5
}
}
}

brightnessThreshold

idleTimeOutMS

motionDetectFunOn

sensitivityThreshold

status
{
"PALMSetting": {
"imageQualityThreshold": 60,
"palmFunOn": true,
"palmIdentifyThreshold": 576,
"palmRunState": "match",
"palmSupportHeight": 1280,
"palmSupportWidth": 720,
"templateQualityThreshold": 20
}
}

{
"status": 0,
"detail": "success",
"data": {
"PALMSetting": {
"imageQualityThreshold": 60,
"palmFunOn": true,
"palmIdentifyThreshold": 576,
"palmRunState": "match",
"palmSupportHeight": 1280,
"palmSupportWidth": 720,
"templateQualityThreshold": 20
}
}
}
palmFunOn

palmIdentifyThreshold

palmRunState

palmSupportWidth

palmSupportHeight

imageQualityThreshold

templateQualityThreshold

status

{
"status": 0,
"detail": "success",
"data": {
"deviceInfo": {
"gSDK_VERSION": "0.0.0.33fix4-APP_29-20200825-1658-0-
F0001-gDEP_VERSION=75-gOBJ_VERSION=76",
"app": "APP_29",
"cpID": "050046ef",
"devKey": "02e8e8c90673ef66397740185d4d9020",
"sn": "200628-0317",
"hidVer": "V1.3.8",
"firmVer": "0.3.8UN_33f4-20200826T191308"
}
}
}

gSDK_VERSION

app

cpID

devKey

sn

hidVer

firmVer

status

{
"syncTime":"2020-11-23 16:44:52"
}
{
"data" : {
"sysTime" : "2020-11-23 16:44:54"
},
"detail" : "success",
"status" : 0
}

sysTime

status

{
"data": {
"snapshot": {
"data": "xxxxxxxxxx",
"frameId": 163847,
"height": 1280,
"timeStamp": 6656928,
"type": "jpeg",
"width": 720
}
},
"detail": "success",
"status": 0
}

frameId

height

width

data

timeStamp

type

status
{
"personId": "12345",
"groupId": "DA640D7CE7544B33A3A1C81CD95D3E66 ",
"userId": "12345",
"name": "name1",
"age": 30,
"gender": "male",
"updateTime": "20200331123025",
"image": [{
"bioType": "face",
"data": "/9j/4AAQSkZJRgABA",
"format": "jpeg",
"width": 720,
"height": 1280
},
{
"bioType": "palm",
"data": "/9j/4AAQSkZJRgABA",
"format": "gray",
"width": 720,
"height": 1280
}
],
"features": [{
"bioType": "face",
"data":
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"size": 1024
},
{
"bioType": "palm",
"data":
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"size": 1024
}
]
}

personId

groupId

userId

name

age

updateTime

image

features

{
"status": 0,
"detail": "success",
"data": {
"personId": "12345"
}
}
{
"personId": "570"
}

personId

{
"status": 0,
"detail": "success"
}

{
"status": 0,
"detail": "success"
}
{
"personId": "123456",
"data": [{
"bioType": "face",
"feature": true,
"picture": true
},
{
"bioType": "palm",
"feature": true
}
]
}

personId

bioType

feature

picture
{
"data": {
"age": -1,
"features": [{
"bioType": "face",
"data": "xxxxx",
"size": 1024
},
{
"bioType": "face",
"data": "xxxxxx",
"size": 1024
},
{
"bioType": "palm",
"data": "xxxxxxx",
"size": 8844
},
{
"bioType": "palm",
"data": "xxxxxxx",
"size": 8844
}
],
"gender": "male",
"groupId": "",
"images": [{
"bioType": "face",
"data": "",
"format": "jpeg",
"height": 983,
"width": 612
},
{
"bioType": "face",
"data": "",
"format": "jpeg",
"height": 800,
"width": 578
}
],
"name": "1180665",
"personId": "1180665",
"updateTime": "20201102175244",
"userId": "1180665"
},
"detail": "success",
"status": 0
}

personId

groupId

userId

name

age

updateTime

images

features

status
{
"pageIndex" : 1,
"pageSize" : 20
}

pageIndex

pageSize

{
"data": [{
"age": -1,
"face": 2,
"gender": "male",
"groupId": "",
"name": "2855N",
"palm": 1,
"personId": "2855",
"updateTime": "20201016191450",
"userId": "2855"
}
],
"detail": "success",
"status": 0
}
personId

groupId

userId

name

age

updateTime

gender

face

palm

status

{
"data" : {
"databaseSize" : 40960,
"faceCount" : 0,
"featureCount" : 0,
"featureSize" : 16,
"groupCount" : 0,
"palmCount" : 0,
"palmFeatureCount" : 0,
"palmFeatureSize" : 16,
"personCount" : 1,
"pictureCount" : 1,
"pictureSize" : 16
},
"detail" : "success",
"status" : 0
}

databaseSize

faceCount

featureCount

featureSize

groupCount

palmCount

palmFeatureCount

palmFeatureSize

personCount

pictureCount

pictureSize

status

{
"startTime" : "2019-10-01 10:00:00",
"endTime" : "2019-10-01 12:00:00"
}
or
{
"startId" : -1
}

startTime

endTime

startId

{
"detail" : "success",
"startId" : 1,
"status" : 0,
"totalCount" : 1
}

startId

totalCount

status
{
"startId" : 1,
"reqCount" : 20,
"needImg" : false
}

startId

reqCount

needImg

{
"data" : [
{
"authType" : "face",
"deviceid" : "05004700",
"groupId" : "",
"id" : 1,
"name" : "kobe",
"personId" : "kobe",
"respirator" : 0,
"timestamp" : "2020-12-10 15:55:28.677",
"userid" : "kobe"
}
],
"detail" : "success",
"recordCount" : 1,
"status" : 0
}

personId

groupId

deviceid

userid

name

authType

respirator

timestamp

id

recordCount

status

{
"status": 0,
"detail": "success"
}
{
"events": [{
"label": 1,
"face": [{
"identify": [{
"groupId": "",
"name": "3123",
"personId": "q123",
"similarity": 0.9328765869140625,
"userId": "q123"
}]
}]
}]
}

{
"events": [{
"label": 5,
"palm": [{
"identify": [{
"groupId": "",
"name": "3123",
"personId": "q123",
"similarity": 705,
"userId": "q123"
}]
}]
}]
}

label

identify

{
"personId": "12345",
"image": [
{
"bioType":"face",
"data":"/9j/4AAQSkZJRgABA",
"format":"jpeg",
"width":720,
"height":1280
},
{
"bioType":"face",
"data":"/9j/4AAQSkZJRgABA",
"format":"jpeg",
"width":720,
"height":1280
}
]
}

personId

image

{
"status": 0,
"detail": "success"
}

{
"personId": "12345",
"features": [
{
"bioType":"face",
"data" :
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"size" : 1024
},
{
"bioType":"face",
"data" :
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"size" : 1024
}
]
}

personId

features

{
"status": 0,
"detail": "success"
}
{
"personId": "12345",
"images": [
{
"bioType":"palm",
"data":"/9j/4AAQSkZJRgABA",
"format":"gray",
"width":720,
"height":1280
},
{
"bioType":"palm",
"data":"/9j/4AAQSkZJRgABA",
"format":"gray",
"width":720,
"height":1280
}
]
}

personId

image
{
"status": 0,
"detail": "success"
}

{
"personId": "12345",
"features": [
{
"bioType":"palm",
"data" :
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"size" : 1024
},
{
"bioType":"palm",
"data" :
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"size" : 1024
}
]
}

personId

features
{
"status": 0,
"detail": "success"
}

{
"status": 0,
"detail": "success"
}
{
"status": 0,
"detail": "success"
}

{
"image": {
"bioType":"face",
"data":"/9j/4AAQSkZJRgABA",
"format":"jpeg",
"width":720,
"height":1280
},
"feature" : "true",
"faceInfo" : "true",
"picture" : "true"
}

image
feature

faceInfo

picture

{
"status": 0,
"detail": "success",
"data": {
"faces":[
{
"faceInfo" : {
"attribute" : {
"age" : 30,
"beauty" : -1,
"cap" : 0,
"expression" : 0,
"eye" : -1,
"gender" : 0,
"glasses" : -1,
"mouth" : -1,
"mustache" : 1,
"nation" : -1,
"respirator" : 0,
"skinColor" : 0,
"smile" : -1
},
"pose" : {
"pitch" : 3.5096845626831055,
"roll" : -2.404015064239502,
"yaw" : -13.170290946960449
},
"rect" : {
"bottom" : 888,
"left" : 167,
"right" : 507,
"top" : 562
},
"landmark" : {
"count" : 106,
"data" :
"EAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGwiT0lyPS7/ZYEvf2WBL0CMCO9/pW3vAP9"
},
"score": 0.808082
},
"feature" : {
"bioType":"face",
"data" :
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"size" : 1024
},
"picture": {
"bioType":"face",
"data":"/9j/4AAQSkZJRgABA",
"format":"jpeg",
"width":720,
"height":1280
},
"cacheId":{
"bioType":"face",
"data":1
}
}
]
}
}

faces

feature

picture

faceInfo
cacheId

status

{
"personId": "12345",
"cacheIds":[
{
"bioType":"face",
"data":1
},
{
"bioType":"face",
"data":2
}
]
}

personId

cacheIds
{
"status": 0,
"detail": "success"
}

{
"image": {
"bioType":"palm",
"data":"/9j/4AAQSkZJRgABA",
"format":"gray",
"width":720,
"height":1280
},
"feature" : "true",
"palmInfo" : "true",
"picture" : "true"
}

image

feature

palmInfo
picture

{
"status": 0,
"detail": "success",
"data": {
"palms":[
{
"palmInfo" : {
"rect" : {
"x0" : 156,
"y0" : 222,
"x1" : 356,
"y1" : 222,
"x2" : 888,
"y2" : 167,
"x3" : 507,
"y3" : 562
},
"imageQuality": 90,
"templateQuality": 40
},
"feature" : {
"verTemplate" :
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"verTemplateSize" : 26448,
"preTemplate" :
"5C+ju39I273/lGq9gLAJvv+WhL39lgQ9AjCjvEAKAj4E/Eu8AWLgPH7ixr3/loS9fq7vPYGw",
"preTemplateSize" : 98448
},
"picture" : {
"bioType":"palm",
"data":"/9j/4AAQSkZJRgABA",
"format":"gray",
"width":720,
"height":1280
},
"cacheId":
{
"bioType":"palm",
"data":[1]
}
}
]
}
}

palms

feature

picture

palmInfo

cacheId

status

{
"feature" : true,
"cacheIds":[
{
"bioType":"palm",
"data":1
},
{
"bioType":"palm",
"data":2
},
{
"bioType":"palm",
"data":3
},
{
"bioType":"palm",
"data":4
},
{
"bioType":"palm",
"data":5
}
]
}

feature

cacheIds

{
"status": 0,
"detail": "success",
"data":{
"palm":{
"feature":{
"mergeTemplate" : "xxx",
"mergeTemplateSize" : 8844
},
"cacheId":{
"bioType":"palm",
"data":1
}
}
}
}

palm

feature

cacheId

status

{
"personId": "12345",
"cacheIds":[
{
"bioType":"palm",
"data":1
}
]
}

personId

cacheIds

data
{
"status": 0,
"detail": "success"
}

{
"cacheId":{
"bioType":"face",
"data":1
}
}

bioType

data

You might also like