Go to documentation repository
Procedure is started when the corresponding event occurs. Format of events procedure for the Core object:
OnEvent("CORE","_id_","_event_")
Example. When a face appears in the frame, display the video image from the corresponding camera on Monitor 2. When the face disappears, remove the video image from the corresponding camera from Monitor 2.
OnEvent("CORE",N,"DO_REACT") { if (strequal(action,"SET_MARKRECT")) { DoReact("MONITOR","2","ADD_SHOW","cam<"+param5_val+">"); } if (strequal(action,"DEL_MARKRECT")) { [ Wait(2); DoReact("MONITOR","2","REMOVE","cam<"+param0_val+">"); ] } }