Page History
...
Section | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
General information about scripts
User scripts are designed for partial automation of processes while configuring Face Intellect software package. In the Programming Guide document there is the description of programming objects and methods which are in use for scripts creation in Intellect.
Script for photo verification
The verification mode enables comparison of the face captured in the frame with the user photo stored on the disk at <Intellect installation folder>\Bmp\<Person>.
...
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 Intellect\Bmp\Person folder without resolution(e.g., 15 for 15.bmp file), wait<10> - time in seconds }
- Perform the first macro. If the user from the photo does not appear in front of the camera in 10 seconds, the Verification declined event will be displayed. In case the user appearance the Successful verification event will be displayed immediately showing the similarity percentage of the captured face with the user photo stored on the disk.
The photo 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. |
Script for adding a reference face to the database from a file
A reference face can be added do the database from a file with photo using the ADD_PERSON_FROM_FILE reaction of the FIRSERVER object.
...
Overview
Content Tools