Go to documentation repository
Previous page Next page
Using the access event generation, Face PSIM 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 Registry keys reference guide).
If the Access event generation checkbox is set, the Pass event (RECOGNITION_PASS) is generated when the face is recognized.
Note
These parameters can be used in scripts in the JScript programming language (for more information on creating scripts, see The Script object. Programming using the JScript language).
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 (2) to enable the event generation in case the mask is detected on the face.
Set the Mask absence event generation checkbox (3) to enable the event generation in case the mask is absent on the face.
Click the Apply button (4) 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 of higher 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.
Face PSIM receives the information about face mask state changes in real time and generates the corresponding events:
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: