Page History
Tip |
---|
Column | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Configuring the access event generation
Using the access event generation, the Face-Intellect software allows obtaining real-time information on the number of passes of each person in the field of view of a given video camera.
Note | ||
---|---|---|
| ||
To use this function, you need to set the value of the registry key UseFaceDB = 2 (see the Registry keys reference guide). |
The access event generation is enabled as follows:
- Go to the settings panel of the Face Recognition Server object.
- Select the Generating access event check box (1).
- Click Apply (2).
If the Generating access event check box If the Access event generation checkbox is set, the Pass event (RECOGNITION_PASS) is generated when the face is detected. This event has the following parameters:
- imageBase64 - contains jpg image from the camera in base64 format.
- info - contains the following information sepearated by a semicolon (;): the names and identifiers of the cameras, that has ever captured the faces, and the number of passes.
- total_passes - the total number of passes for the current recognized face.
- age, gender - age and gender of the recognized person if the intellect.sec activation key allows the use of the age and gender recognition channel (see also Activation of the recognition modules in Face Intellect).
- surname, name, patronymic, department, comment, sim - the parameters will be filled with corresponding values if the person is found in the online database.
- firstId - the unique identifier of the captured face.
- camera_id – the identifier of the camera that captured a face.
camera_name – the name of the camera that captured a face.
Info | ||
---|---|---|
| ||
These parameters can be used in scripts in the JScript programming language (for more information on creating scripts, see |
...
The following example shows the recording of a frame with a captured face image transmitted using the imageBase64 parameter to a file on the disk:
Code Block | ||
---|---|---|
| ||
if (Event.SourceType == "FIRSERVER" && Event.Action == "RECOGNITION_PASS" && Event.SourceId=="1")
{
SaveToFile("c:\\Faces\\"+Event.GetParam("firstId")+".jpg",Event.GetParam("imageBase64"),true);
} |
To enable the access event generation, do the following:
- Go to the settings panel of the Face Recognition Server object. Go to the Analytics tab.
- Select the Access event generation check box (1).
- Click Apply (2).
Configuring the face mask detection or face mask absence event generation
To enable the face mask detection or face mask absence event generation, do the following:
- Go to the settings panel of the Face Recognition Server object. Go to the Analytics tab.
Set the Mask detection event generation checkbox (1) to enable the event generation in case the mask is detected on the face.
Set the Mask absence event generation checkbox (2) to enable the event generation in case the mask is absent on the face.
Click Apply (3) to save the settings.
If it is necessary to generate the events of mask detection or absence depending on the face characteristics recognition channel (see Activation of the recognition modules in Face Intellect), do the following:
- Go to the settings panel of the corresponding Face characteristics recognition channel object.
- Set the Generate event by server checkbox (1) for the events to be received from the Face Recognition Server object, otherwise the events will be received from the Face characteristics recognition channel object.
- From the Generate mask detection event drop-down list (2), select the event generation condition:
- Server settings - this event generation setting set on the Face Recognition Server object settings panel is taken into account (used by default).
- Yes - the face mask detection event generation is enabled.
- No - the face mask detection event generation is disabled.
- From the Generate mask absence event drop-down list (3), select the event generation condition:
- Server settings - this event generation setting set on the Face Recognition Server object settings panel is taken into account (used by default).
- Yes - the face mask absence event generation is enabled.
- No - the face mask absence event generation is disabled.
- Click Apply (4) to save the settings.
Info | ||
---|---|---|
| ||
The parameters for enabling/disabling the event generation set on the settings panel of the Face characteristics recognition channel object are more priority than the ones set on the settings panel of the Face Recognition Server object. For example, if the Mask detection event generation checkbox is set on the settings panel of the Face Recognition Server object, and No is selected for the Generate mask detection event parameter on the settings panel of the Face characteristics recognition channel object, then the mask detection event will not be generated, but only for this particular face characteristics recognition channel. |