<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:line-packets

**This is an old revision of the document!**

Line Tracking - Packet Reference

Check out the Line tracking API for more details.

getMainFeatures(features, wait)

Request:

Bit Description Value(s)
0 - 1 16-bit sync 174, 193 (0xc1ae)
2 Type of packet 48
3 Length of payload 2
4 Request type 0=main features, 1=all features
5 Features (bitmap) 7=vectors, intersections, barcodes

Response:

Byte Description Value(s)
0 - 1 16-bit sync 175, 193 (0xc1af)
2 Type of packet 49
3 Length of payload (varies)
4 - 5 16-bit checksum sum of payload bytes
6 Feature-type 1=Vector, 2=Intersection, 4=Barcode
7 Feature-length (varies)
8 - 8+feature-length Feature-data (varies)
Next feature-type (optional) (varies)
Next feature-length (optional) (varies)
Next feature-data (optinal) (varies)
Next feature-type (optional) (varies)
Next feature-length (optional) (varies)
Next feature-data (optinal) (varies)

Note, this response can have up to three different feature sections, one for vectors (if vector(s) exist), one for intersections (if intersection(s) exist) and one for barcodes (if barcode(s) exist) in the image. Each feature section begins with a feature-type. The feature-length is next, which indicates how many bytes are in the feature-data. The feature-data is last, which has the data associated with the feature. Sometimes the feature-data section will have more than 1 of the given feature type, for example, if there is more than one barcode.

For the specific feature data please consult the Pixy2Line.h file.

wiki/v2/line-packets.1539198407.txt.gz · Last modified: 2018/10/10 19:06 by pixycam