UK
Object recognition sensor O2D22x
33
Binary format
In the binary mode the evaluation result is transmitted in the following format:
<start byte>< switching outputs><match><instances>[<model info>]
Component
Description
<start byte>
Start byte: 0x00 (1 byte)
<switching outputs>
Status of the switching outputs (SA) after the evaluation
binary value (2 bytes, unsigned short)
Format:
Byte n = 0xXX
bit 7 = 0
bit 6 = 0
bit 5 = 0
bit 4 = SA1
bit 3 = SA2
bit 2 = SA3
bit 1 = SA4
bit 0 = SA5
byte n+1 = 0x00
<match>
Overall match quality (in "percent" x 10)
binary value (2 bytes, unsigned short)
The "overall match quality" corresponds to the object with the worst match .
<instances>
Total number of the objects found
binary value (2 bytes, unsigned short)
[<model info>]
Detailed information about the object found .
Format:
<modell_index><x><y><rot><match_quality>
<model_index>
Model number
binary value (2 bytes, unsigned short)
<x>
X position of the object (in pixels); zero point left
binary value (2 bytes, unsigned short)
<y>
Y position of the object (in pixels); zero point top
binary value (2 bytes, unsigned short)
<rot>
Orientation of the object (in "degrees" x 10)
binary value (2 bytes, signed short, two's complement)
<match_quality> Match quality (in "percent" x 10)
binary value (2 bytes, unsigned short)
All binary information is to be interpreted as integer numbers in little-endian
format .