Open topic with navigation
The following XML is a single record produced during barcode analysis:
<record> ... <trackname>barcode.Result</trackname> <BarcodeResult> <id>b8c4331e-6058-4786-83d9-a43e605f463e</id> <text>some text</text> <barcodeType>Code-128</barcodeType> <region> <left>94</left> <top>66</top> <width>311</width> <height>98</height> </region> </BarcodeResult> </record>
The record includes the following information:
id element provides a unique identifier for the detected barcode. The barcode analysis engine issues an ID for each detected appearance of a barcode. If you are detecting barcodes in video and consecutive frames show the same barcode in a near-identical location, all records related to that appearance will have the same ID.
For example, if a barcode appears in the same location for fifty consecutive video frames, the engine uses the same ID for each record in the data track and produces a single record in the result track. The record in the result track will have a timestamp that covers all fifty frames.
If the barcode moves to a different location on the screen, or disappears and then reappears, the engine considers this as a new detection and produces a new ID and a new record in the result track.
textelement contains the data encoded by the barcode. If Media Server detects a barcode with a supplement, for example EAN-13+EAN-2, the
textelement contains the digits from both parts of the barcode, separated by a hyphen.
barcodeType element contains a string which describes the type of the detected barcode. This can be any of the following values:
regionelement describes the position of the barcode in the ingested media. If Media Server detects a barcode with a supplement, for example EAN-13+EAN-2, the region includes both parts of the barcode.