English
English
简体中文
Contact Us
Register
Log In

Set Linked Foot Traffic Statistics Devices

Last Updated on : 2021-11-26 03:08:52download

Set the configuration information of the linked foot traffic statistics devices under the specified asset, so as to count the foot traffic data.

API address

POST: /v1.0/iot-03/passenger-flows/assets/assigned-devices/{device_id}/actions/config-set

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.

Description of body

Parameter name Type IN Required Description
image_width Integer true The image width in pixels.
image_height Integer true The image height in pixels.
areas List true The region of interest.

Description of areas

Parameter name Type IN Required Description
type Integer true The type of the region of interest. Valid values:
  • 1: region of entering the store.
  • 2: region of passing by the store.
points List true The information about a specific point.Establish a coordinate system by using the top left corner of the image as the zero point, the width as the x-axis, and the height as the y-axis. Unit: in pixels. You must set 4 points.
in String false The direction of entering the store. Valid values:
  • top: up
  • down: down
  • left: left
  • right: right
out String false The direction of leaving the store. Valid values:
  • top: up
  • down: down
  • left: left
  • right: right

Description of points

Parameter name Type IN Required Description
x Integer true The point of the latitudinal coordinate.
y Integer true The point of the longitudinal coordinate.

Return parameter

Parameter name Type Description
result Boolean Indicates whether the operation is successful.

Request example

POST: /v1.0/iot-03/passenger-flows/assets/assigned-devices/111111****/actions/config-set

Return example

{ "result": true, "t": 11111111111111, "success": true }

Error code

For more information, see error code.