Xeoma modules’ macros

macros_xeoma_video_surveillance

A macro is a symbolic name that is replaced by information received from Xeoma modules.
Let’s have a look at the macros that are used in different Xeoma’s modules:

Email Sending

%TEXT% – macro to receive a recognized text from the module “Text recognition”
%OBJECT% – this macro allows receiving information about the object that was detected by the “Object recognizer” module
%GENDER% – this macro allows receiving info about gender from “Gender recognition” module
%NUMBER% – macro to receive license plate’s number in plain text from “ANPR” module, e.g. A110PB77 etc.
%FACECOUNT% – it shows the number of faces from “Face recognition” module in the email
%NAMES% – macro to receive names from “Face recognition” module
%TIME% – a detection time
%AREA% – status of parking spaces from “Parking Spots” module
%REPORT% – macro to receive information on the problem’s type from “Problems detector”
%STATUS% – trigger type (the movement was detected, problem or its solution was found)

Application runner

%JPEG% – sending the full path to the JPEG image to the program
%BMP% – sending the full path to the BMP image to the program
%FACECOUNT% – shows the number of faces from “Face recognition” module
%NAMES% – macro to receive names from “Face recognition” module
%FACEID% – the time of a face detection + name + percentage of resemblance
%TEXT% – macro to receive the text from the module “Text Recognition”
%EYEANGLE% – pupils’ direction from the module “Eye Tracking”

HTTP request sender

%FACECOUNT% – shows the number of faces from “Face recognition” module
%CROWD% – shows the number of people from “Crowd detector” module
%NAME% – macro to receive names from “Face recognition” module
%TEXT% – macro to receive the text from the module “Text Recognition”
%REPORT% – macro to receive information on the problem’s type from “Problems detector”
%EYEANGLE% – pupils’ direction from the module “Eye Tracking”
%AREASTATUS% – status of parking spaces from “Parking Spots” module
%STATUS% – macros to receive license plate’s number in plain text from “ANPR” module, e.g. A110PB77 etc.

Mobile notifications

%TIME% – a detection time
%PROBLEM% – macro to receive information on the problem’s type from “Problems detector”

Automatic Number Plate Recognition (ANPR)

{NUMBER} -macro to receive license plate’s number in plain text from “ANPR” module, e.g. A110PB77 etc.

Universal camera and Preview and archive

%IP% – to show camera’s IP in its name

Save to File

%y% -year
%m% – month
%a% – weekday
%d% – day
%h% – create a new file every hour, next day it’ll be rerecorded (to split it by minutes too, add ‘i’)
%i%.avi – create a new file every minute, i.e. next hour files will be rerecorded
%s% – second
%n% – millisecond
%#1-1000% – range from 1 to 1000
%SPEED% – speed from “Vehicle Speed Detector” module
%NUMBER% – macro to receive license plate’s number in plain text from “ANPR” module, e.g. A110PB77 etc.
%SVID% – violation ID withing speeding detection (in combination with “Vehicle Speed Detector” and “ANPR” module) or detection of passage over the stop-line during the red signal (i.e., in combination with modules “ANPR”, “Cross line detector” and “Controllers “Modbus””)
%SVID_time% – time violation withing speeding detection (in combination with “Vehicle Speed Detector” and “ANPR” module) or detection of passage over the stop-line during the red signal (i.e., in combination with modules “ANPR”, “Cross line detector” and “Controllers “Modbus””)

For example: “C:\Users\Public\Pictures\img_%y-m-d_h-i-s%.jpg.”

You can also add “/” to create folders – i.е. type %d/h/i%.avi, to create folders/files: 1/2/3.avi (today’s day/hour/minute). If you want to record jpeg pictures only you can specify the data %#1-1000%.jpg (where 1000 is the maximum file number, i.e. 1000 files will be rerecorded).

For example: “C:\MyDir\camera1_%y-m-d_h-i-s%_%n%_N%#1-10%.jpg” -> “C:\MyDir\camera1_2020-09-25_15-05-36_321_N01.jpg”

ANPR Sender to FTP

%y% – year
%m% – month
%d% – day
%h% – hour
%i% – minute
%s% – seconds
%n% – millisecond
%NUMBER% – macro to receive license plate’s number in plain text from “ANPR” module, e.g. A110PB77 etc.
%COUNTRY% – a country from “ANPR” module
%SVID% – violation ID withing speeding detection (in combination with “Vehicle Speed Detector” and “ANPR” module) or detection of passage over the stop-line during the red signal (i.e., in combination with modules “ANPR”, “Cross line detector” and “Controllers “Modbus””)
%SVID_time% – time violation withing speeding detection (in combination with “Vehicle Speed Detector” and “ANPR” module) or detection of passage over the stop-line during the red signal (i.e., in combination with modules “ANPR”, “Cross line detector” and “Controllers “Modbus””)

This way, with these macros it’ll be possible to dynamically send information to external systems thanks to Xeoma video surveillance and its modules.

Important advice in Xeoma Coming soon:
%EMOTIONS% – shows the emotion from Face Detector (Emotions), also shows detection time and the percentage of accuracy.

If you have any questions on macros or their work, just contact us, we are always happy to help you!

4 March 2021

Read also:

License plate recognition:Speed limit violation
Control Xeoma using JSON: the whats and hows
WebRTC API: embedding camera feeds and recordings
The HTTP Request Sender module in Xeoma IP security cameras software