Go to documentation repository
...
Section | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
User Custom scripts are designed used for partial automation of processes while configuring while configuring Face PSIM. In the Programming Guide document there is the description of programming objects and methods which are in use for scripts creation in Axxon PSIM.
...
The verification mode enables comparison of compares the face captured in the frame with the user photo stored on the disk at < Axxon <Axxon PSIM installation folder>\Bmp\<Person>. It also determines the face parameters: emotions, temperature, face concealment (mask), gender, facial hair.
To perform photo face verification, do the following:
Create the script:
Code Block |
---|
if(Event.SourceType == "MACRO" && Event.Action == "RUN" && Event.SourceID == "1") { DoReactStr("FIRSERVER","1","VERIFY_START","cam_id<1>,p_id<15>,wait<10>"); //1 - id firserver, p_id<15> - name of the file with photo in the Axxon PSIM\Bmp\Person folder without resolution(e.g., 15 for 15.bmp file), wait<10> - time in seconds }} |
Info | ||
---|---|---|
| ||
|
The photo face verification is completed.
Note | ||
---|---|---|
| ||
File with photo must have the .bmp extension. But the file format can be one from the list: JPG, BMP, or PNG. |
A reference face can be added do to the database from a file with photo using the ADD_PERSON_FROM_FILE reaction of the FIRSERVER object.
Info | ||
---|---|---|
| ||
When the you add a reference face is added to the Face PSIM database, a new user is automatically created in Face PSIM with the and assigned a photo from the specified file assigned. |
Parameters:
...
Code Block |
---|
if(Event.SourceType == "MACRO" && Event.Action == "RUN" && Event.SourceID == "1") { DoReactStr("FIRSERVER","1","ADD_PERSON_FROM_FILE","filename<c:\\iso_small.jpg>,name<Jane>,surname<Kramer>,department<Department 1>,comment<>"); } |
If the face has been added successfully, the was successfully added to the reference faces database, the ADD_PERSON_FROM_FILE_OK event is will be displayed in the Debug window. If there are any errors while when adding the reference face, the ADD_PERSON_FROM_FILE_ERROR event is will be displayed (see FIRSERVER events).