Go to documentation repository
Page History
The CORE object is the core of the system, a global static object realized that implements methods used to control the state and to manage system objects of the Intellect software package. The extended possibilities for working with the CORE object are given when using scripts on JScript in the JScript programming language – see the Programming Guide (JScript)—see The Script object. Programming using the JScript language.
The CORE object sends events presented in the table. Procedure is started when the corresponding event appears.
Format of events procedure for the CORE object:
Code Block |
---|
OnEvent("CORE","_id_","_event_") |
Event | Description |
DO_REACT | Event triggers the reaction of some object in the system. |
The action parameter of this event |
contains a description of the action that must be performed. Examples of values of the action parameter: SET_MARKRECT |
—sent when a face |
is recognized on the video image; DEL_MARKRECT |
—sent when a face |
disappears from the video image. |
Other event parameters may also be present that can be monitored using the Debug window (see |
If the value of |
the is SET_MARKRECT |
, then the param5_val parameter contains the number of the camera on |
which |
the face was detected in the video image. This is indicated by the name of the parameter forwarded in the param5_name parameter. For the DEL_MARKRECT value, the number of the camera |
is forwarding in the param0_val parameter |
SLAVE_CHANGED | Event is generated when Failover service becomes active. It consists of the following parameters:
|
|
|
|
|
|
|
|
|
|
|
|
Example.
When a face appears in the frame show the video from corresponding camera on the Monitor 2. When the face disappears – hide video from corresponding camera on the Monitor 2.
...
CREATE_OBJECT | Event triggers creation of an object. Parameters:
|
...