Main features

The script remembers the last event from Face Recognizer and, according to the configured parameters, sends the received data by POST request to the url specified in the script settings.

The script also has the possibility to enable the API to get an image from the track GUID.


Settings


Enable get track image API - 
When enabled, it allows to get an image by the track GUID, according to the following request:

https://server_ip:sdk_port/s/fr/track?guid=track_guid
  • server_ip - IP server address
  • sdk_port - port SDK
  • track_guid - GUID of track


Enable resend post JSON data - when enabled, it forwards the received data with a POST request to the specified URL
Store -
the string that is passed in the request
Enter channels, Exit channels, Passby channels -
the channels that the script works with, depending on which field the channel is selected, resulting in the 'type' of request
Key -
the key for generating the signature (sign)
Host -
the URL to which the POST request is sent
Enable sign -
if enabled, generates a signature (sign), if disabled, sign = "
Local host -
IP or domain name of the server on which the script is running. (Required to generate the URL before the image in headimgurl)
Debug mode -
advanced logging mode of the script. The result debugging file will be available in Screenshots section of the Server Settings

{
'type': ev.type, 
'faceinfo': {
'remark': "remark", 
'face_id': 'oENZdDIV', 
'headimgurl': 'https://localhost:8080/s/fr/track?guid=oENZdDIV', 
'age': 0, 'sex': 'male'}, 
'sign': Key, 
'time': 1623310542449L, 
'data': {
'channel': {'guid': channel.guid, 'name': channel.name}, 
'server': {'guid': server.guid, 'name': server.name}
},
 'store': store
}

Where:

type - type of event

remark - comment on a person in the person database

face_id - the unique identifier of the person

headimgurl - URL link to the recognized face. (If the corresponding parameter is enabled)

age, sex - age, sex of a person

sign - signature from the "Key" parameter

time - face detection unix-time

channel - channel GUID, channel name

server - server GUID, server name

store - the value from the "Store" parameter

  • No labels