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:
The 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.
text
element contains the data encoded by the barcode.barcodeType
element contains a string which describes the type of the detected barcode. This can be any of the values listed in Supported Barcode Types.region
element describes the position of the barcode in the ingested media.
|