1. 主页
  2. 文档
  3. S2 HTTP API
  4. 视频编码
  5. 裁切信息获取

裁切信息获取

API URL

/api/codec/codec/GetCrop.json

Request

Method:GET/POSTParameters: NONE

Response

Example:

{ 
   "result": "ok", "data": {  "enable": false,  "s32Y": 25,  "u32Width": 50,  "u32Height": 50,  "s32X": 25 }}

Data 字段说明:

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

我们要如何帮助您?