Documentation for Face Intellect 8.0-8.1. Documentation for other versions of Intellect is available too.
Configuring the access event generation
Using the access event generation, Face Intellect 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:
- Go to the settings panel of the Face Recognition Server object. Go to the Analytics tab (1).
- Set the Access event generation checkbox (2).
- Click the Apply button (3) to save the settings.
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 (1).
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 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 the Apply button (4) to save the settings.
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.
Configuring the mask state change event generation
Face Intellect receives the information about face mask state changes in real time and generates the corresponding events:
- MASK_DETECTED (Mask is present).
- MASK_NOT_DETECTED (Mask is not found).
- MASK_NOT_RIGHT_PLACE (Mask is worn incorrectly).
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:
- Go to the settings panel of the Face Recognition Server object. Go to the Analytics tab (1).
- Set the Mask presence filter checkbox (2).
- Click the Apply button (3) to save the settings.