Go to documentation repository
Tip |
---|
...
For the script to work correctly, you must first create and configure the Queue length detection object (part of the Detector Pack package), Camera and Captioner objects (below, instead of the N, M, L characters, set the corresponding numbers of the Queue length detection, Camera and Captioner objects) in Axxon PSIM.
...
Info | ||
---|---|---|
| ||
When you use the page<BEGIN> and page<END> parameters, the corresponding fields of the captions database are filled in. This enables data search using the Captions search interface object. |
...
For the script to work correctly, you must first create and configure the People counter detection object (part of the Detector Pack package), Camera, Captioner and Macro objects (below, instead of the N, M, L, P characters, set the corresponding numbers of the People counter detection, Camera, Captioner and Macro objects) in Axxon PSIM.
...
Code Block |
---|
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN")
{
DoReactStr("MONITOR","1","SET_TITLES","titles<NNN \r Titles>,cam<1>,title_id<1>");
}
if (Event.SourceType == "MACRO" && Event.SourceId == "2" && Event.Action == "RUN")
{
DoReactStr("MONITOR","1","CLEAR_TITLES","cam<1>,title_id<1>");
} |
On macro command, display a video camera with a stream of the selected type or with the required stream ID on Monitor 2.
Code Block |
---|
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN") //by stream type
{
DoReactStr("MONITOR","2","REMOVE","cam<5>");
DoReactStr("MONITOR","2","ADD_SHOW","cam<5>,stream_id<stream_client_flag>");
}
if (Event.SourceType == "MACRO" && Event.SourceId == "2" && Event.Action == "RUN") //by stream type
{
DoReactStr("MONITOR","2","REMOVE","cam<5>");
DoReactStr("MONITOR","2","ADD_SHOW","cam<5>,stream_id<stream_analytics_flag>");
}
if (Event.SourceType == "MACRO" && Event.SourceId == "3" && Event.Action == "RUN") //by stream type
{
DoReactStr("MONITOR","2","REMOVE","cam<5>");
DoReactStr("MONITOR","2","ADD_SHOW","cam<5>,stream_id<stream_archive_flag>");
}
if (Event.SourceType == "MACRO" && Event.SourceId == "4" && Event.Action == "RUN") //by stream type
{
DoReactStr("MONITOR","2","REMOVE","cam<5>");
DoReactStr("MONITOR","2","ADD_SHOW","cam<5>,stream_id<stream_alarm_flag>");
}
if (Event.SourceType == "MACRO" && Event.SourceId == "5" && Event.Action == "RUN") //by stream ID
{
DoReactStr("MONITOR","2","REMOVE","cam<5>");
DoReactStr("MONITOR","2","ADD_SHOW","cam<5>,stream_id<5.1>");
} |