1. 主页
  2. 文档
  3. S2 HTTP API
  4. 视频编码
  5. 设置裁切

设置裁切

API URL

/api/codec/codec/SetCrop.json

Request

Method:GET/POSTParameters: NONE

{ "cfg": {  "enable": false,  "s32Y": 25,  "u32Width": 50,  "u32Height": 50,  "s32X": 25 }}

Response

Example:

{"result": "ok"}

Data 字段说明:

Field Value 说明
enable [Boolean] true/false 表示是否开启裁切功能
s32Y [Integer] [0,100]表示纵向偏移百分比
s32X [Integer] [0,100]表示横向偏移百分比
u32Width [Integer] [0,100]表示裁切宽度百分比
u32Height [Integer] [0,100]表示裁切高度百分比

我们要如何帮助您?