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.

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:

  1. Go to the settings panel of the Face Recognition Server object.
  2. Select the Generating access event check box (1).
  3. Click Apply (2).

If the Generating access event check box is set, the Pass event (RECOGNITION_PASS) is generated when the face is detected. This event has the following parameters:

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);
}