This resource demonstrates how to query detailed information of an object or a zone.
It provides Object Shape, Object History, and Zone Configuration.
GET§
-
/results/object/shape§
Return point clouds of an object at a specific timestamp. SENSR only saves previous 10 frames. So if you put huge difference in
time
parameter, regardless of your parameter, SENSR will return the oldest results it has.
- Parameters
- id : Object Id
- time : Approx. timestamp when the event occurred. Format (e.g. 2020-12-04T06:40.125Z)
- Return code
- 200 OK
- 400 BAD REQ
Respond body§
{ "id" : 0, "time" : "2020-12-04T06:40.125000000Z", "point" : ".............." }
- Parameters
-
/results/object/history§
Return trail histories of an object. Max histories are 100.
- Parameters
- id : Object Id
- length : History length. (-1 = all)
- Return code
- 200 OK
- 400 BAD REQ
Respond body§
{ "id" : 0, "time" : "2020-12-04T06:40.125000000Z", "locations" : [[0.0, 0.0, 0.0]...] }
- Parameters
-
/results/zone§
Return a zone details and object id which involved in the zone.
- Parameters
- Return code
- 200 OK
- 200 OK
Respond body§
{ "zones" : [{"id" : 1001, "time" : "2020-12-04T06:40.125000000Z", "name" : "food1", "type" : 0, "shape" : [[1.0,1.0,1.0],...], "objects" :[0,...]}