Go to documentation repository
Previous page Next page
Using the access event generation, the Face PSIM software allows obtaining real-time information on the number of passes of each person in the field of view of a given video camera.
Attention!
To use this function, you need to set the value of the registry key UseFaceDB = 2 (see the Registry keys reference guide).
If the Access event generation checkbox is set, the Pass event (RECOGNITION_PASS) is generated when the face is detected.
Note
These parameters can be used in scripts in the JScript programming language (for more information on creating scripts, see Programming Guide (JScript)).
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:
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:
To enable the face mask detection or face mask absence event generation, do the following:
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 PSIM), do the following:
Note
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.
Using Face PSIM, you can receive information about face mask state changes in real time. To provide this information, the following events are generated:
Mask state change events are generated for faces that have been recognized since the server was started.
To enable the face mask state change event generation, do the following: