The same content in a different format might be:
1. event_id=$(ID);
2. plate_text=$DB2XML($(ANPR_TEXT));
3. camera_location=$(location);
4. vehicle_image=$(normal_img);
which will evalutate to:
1. event_id=123456789
2. plate_text=ABC123
3. camera_location=Test Site 34b
4. vehicle_image=/9j/4AAQSkZJRgABAQAAAQABA[... a base 64 encoded image...
Database fields
The contents of the database can be injected using the following syntax:
$([database field id])
Functions
To format the output the following functions are provided, with the general syntax:
$[function name]([argument1],[argument2],...,[argumentN]);
Plate text formatting:
DB2XML(text,flags:optional)-converts the license plate text text from DB to XML format, where flags
may be one of the following;
o ARABIC2LATIN-convert all Arabic characters to their latin equivalent
o ENCODE_ALL-encode all characters in 쳌 format
DB2JSON(text,flags:optional)-converts the license plate text text from DB to JSON format
DB2UTF8(text,flags:optional)-converts the license plate text text from DB to UTF8
Time formatting:
Format Time(timestamp,format_string:optional)- formats timestamp given in milliseconds according
to the optional format_string (see the POSIX strftime function). For example:
"$FormatTime($(FRAMETIMEMS),%Y%m%dT%H%M%S%z)" evaluates to "20180419T145713+0200".
If the format string is omitted, the same timestamp is evaluated as "2018.04.19 14:57:13.594"
Special fields
The following keywords are defined:
normal_img - the image representing the event, Base64 encoded
lp_img - the cropped license plate image, Base64 encoded
aux_img - the overview image, Base64 encoded
strip_img - the image strip, Base64 encoded
location - the location string as defined in default/cfs/db/location
cameraid - the camera HW id, may be overridden with default/cfs/db/cameraid