Page 73/89
VIDAR
User Manual
Adaptive Recognition
America
Adaptive Recognition
Hungary
Adaptive Recognition
Nordic
Adaptive Recognition
Singapore
WWW.ADAPTIVERECOGNITION.COM
Lines #1, #2 and #7 are text only (of course in this example we have to adhere to the XML standard).
Line #3 is an example of a database field, line #4 is an example of a function, line 5 and 6 are
examples of a property/special field. This template may evaluate to something like:
<?xml version="1.0" encoding="UTF-8"?>
<result>
<ID value ="123456789"/>
<text value="ABC123"/>
<location value="Test Site 34b"/>
<image value="/9j/4AAQSkZJRgABAQAAAQABA[... a base 64 encoded image...]"/>
</result>
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 "201804190200".
If the format string is omitted, the same timestamp is evaluated as "2018.04.19 14:57:13.594"
Summary of Contents for Vidar
Page 1: ......