识别区域

设置/获取识别区域

接口描述

可设置或获取相机识别区域

请求参数

参数名
类型
描述
必填
camera_direction
int
摄像头ID
必填
CommandType
string
命令类型:Get/Set anchox
必填
xmin
float
左上角x坐标
必填
ymin
float
左上角y坐标
必填
xmax
float
右下角x坐标
必填
ymax
float
右下角y坐标
必填

参数说明

camera_direction:点击 [跳转到详细参数说明](doc:BVtwult5)

示例

### 设置前摄像头识别区域: {"camera_direction":0,"CommandType":"Set anchox","xmin":0.01,"ymin":0.01,"xmax":0.9,"ymax":0.9} ### 获取前摄像头识别区域: {"camera_direction":0,"CommandType":"Get anchox"} ### 设置后摄像头识别区域: {"camera_direction":1,"CommandType":"Set anchox","xmin":0.01,"ymin":0.01,"xmax":0.9,"ymax":0.9} ### 获取后摄像头识别区域: {"camera_direction":1,"CommandType":"Get anchox"} ### 设置中摄像头识别区域: {"camera_direction":2,"CommandType":"Set anchox","xmin":0.01,"ymin":0.01,"xmax":0.9,"ymax":0.9} ### 获取中摄像头识别区域: {"camera_direction":2,"CommandType":"Get anchox"}

返回值

### 设置识别区域返回值: #### 成功: Set anchor box success! ### 获取识别区域返回值: #### 成功: current anchor box xmin: 0, ymin: 0, xmax:1, ymax:1 #### 失败: Get anchor box error