Xnap Box Data Grabber SDK

Developers would ask: how can I integrate Xnap Box with my existing application? How can I grab the cropped photos of faces/objects being detected by Xnap Box? Besides of image file, how can I get the meta of these images, such as timestamp, the dominant color of objects, Tracker ID (upcoming) and so forth?

Xnap Box Data Grabber SDK is now available on GitHub.

GitHub-Mark

Currently, Xnap Box Data Grabber SDK comes with 2 different favors:

Java SDK

https://github.com/xnapdev/XnapBoxDataGrabberJ

.NET SDK

https://github.com/xnapdev/XnapBoxDataGrabberNET

Python SDK (upcoming)

 

 

HTTP Headers from XB Object/Face Streams Spec

From version >= r.0.9.8

X-Timestamp:YYYYMMDDTHHMMSS-SSSSSSSSSSS.MMMMMM-FFFFFFFF

YYYYMMDD=Year,Month,Day (system wide)

HHMMSS=Hour,Minutes,Seconds (system wide)

SSSSSSSSSSS=stream time in seconds (per session)

FFFFFFFF=frame no/count (per session)

X-objectYpos:

(Object/Face Centroid X in the whole frame, integer: 0-1200)

X-objectXpos: 9999

(Object/Face Centroid X in the whole frame, integer: 0-2000)

 

X-objectWidth: 9999

(Face Width in XB Face, integer: 72-1200)

X-objectHeight: 9999 (Face Height in XB Face)

(Image width & height in Object, Face Width & Height in XB Face, integer: 72-1200)

 

X-TrackerID: 99999

(Integer from 0-65535, back to 0 after 65535)

X-TrackDir: (obsoleted)

X-ObjectColor1HSV: #999#999#999

(Dominant Color, H, integer: 0-360, S, integer: 0-100%, V, integer: 0-100%)

X-ObjectColor2HSV: #999#999#999

(2nd Dominant Color, H, integer: 0-360, S, integer: 0-100%, V, integer: 0-100%)

Already exists since version 0.4:

Server: (XnapBOX machine name)