对指定子场景下的图片进行垂直矫正,矫正后会删除该子场景关联关系。注意:此API为异步接口,需要调用 【GetTaskStatus】 API轮询任务状态,状态为成功代表任务成功。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String RectVertical

系统规定参数。取值:RectVertical

SubSceneId String 1234****

子场景ID

VerticalRect String {"844946777965268992":[[0.42418407210144654,0.33625107620738004,0.42620819117478337,0.635753199572695],[0.5158627587152769,0.3071978991900134,0.5177513758740194,0.6312118011104786],[0.582693212445534,0.3733969265933281,0.5807612760319687,0.6139402811250833]]}

矫正数据

DetectDoor Boolean true

是否开启门预测

CountDetectDoor Integer 2

需要预测的门的数量,DetectDoor为true时生效

返回数据

名称 类型 示例值 描述
RequestId String 4F882EA7-3A1D-0113-94E4-70162C4****

请求ID,与入参requestId对应

Code Long 200

返回码

Success Boolean true

是否请求成功

Message String success

错误消息

TaskId String syuwoiewyieiyy****

任务ID

示例

请求示例

Config config = new Config();
config.setAccessKeyId("yourAccessKeyId");
config.setAccessKeySecret("yourAccessKeySecret");
config.setEndpoint("lyj.cn-hangzhou.aliyuncs.com");

Client client = new Client(config);

        
RectVerticalRequest request = new RectVerticalRequest();
request.setSubSceneId(“1234****”);
request.setVerticalRect("{"844946777965268992":[[0.42418407210144654,0.33625107620738004,0.42620819117478337,0.635753199572695],[0.5158627587152769,0.3071978991900134,0.5177513758740194,0.6312118011104786],[0.582693212445534,0.3733969265933281,0.5807612760319687,0.6139402811250833]]}")

RectVerticalResponse response = client..rectVertical(request);
if (response.getBody().success){
     // ...
}

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<RectVerticalResponse>
    <RequestId>4F882EA7-3A1D-0113-94E4-70162C4****</RequestId>
    <Code>200</Code>
    <Success>true</Success>
    <Message>success</Message>
    <TaskId>syuwoiewyieiyy****</TaskId>
</RectVerticalResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "4F882EA7-3A1D-0113-94E4-70162C4****",
  "Code" : 200,
  "Success" : true,
  "Message" : "success",
  "TaskId" : "syuwoiewyieiyy****"
}

错误码

访问错误中心查看更多错误码。