Results§
A user can query a detail information of an object or a zone. This resource provides Object Shape, Object History, and Zone Configuration.
Supported Methods§
- GET
Resources§
-
/results/object/shape§
Return point clouds of an object in a specific time stamp. 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. time which event occurs. 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" : ".............." }
-
/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]...] }
-
/results/zone§
Return a zone details and object id which involved in the zone.
Parameters§
Return code§
- 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,...]}
- 200 OK