裁剪精准复拍航线媒体文件
POST
/openapi/v0.9/media/api/v1/workspaces/{proj_uuid}/files/crop
es-file-storage
请求参数
Path 参数
proj_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
image_info
object
图片信息
action_uuid
string
可选
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
file_uuid
string
可选
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
object_box
object
用户框选信息
wayline_uuid
string
必需
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
示例
{
"image_info": {
"action_uuid": "944514fb-c5f9-4af2-8c37-407d115db6c6",
"file_uuid": "8f9c68b2-7217-40d0-9302-f189a3edf9ec",
"object_box": {
"angle": 0,
"h": 2677.341873498799,
"w": 3273.6267450606088,
"x": 2640.0782848501026,
"y": 1978.1015923850193
}
},
"wayline_uuid": "8f9c68b2-7217-40d0-9302-f189a3edf9ec"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.9/media/api/v1/workspaces//files/crop' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_info": {
"action_uuid": "944514fb-c5f9-4af2-8c37-407d115db6c6",
"file_uuid": "8f9c68b2-7217-40d0-9302-f189a3edf9ec",
"object_box": {
"angle": 0,
"h": 2677.341873498799,
"w": 3273.6267450606088,
"x": 2640.0782848501026,
"y": 1978.1015923850193
}
},
"wayline_uuid": "8f9c68b2-7217-40d0-9302-f189a3edf9ec"
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
响应消息
data
object
可选
action_uuid
string
可选
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
crop_image_temp_name
string
可选
example: "temp_crop.jpg"
zoom_factor
number
可选
example: 1.5
示例
{
"code": 0,
"message": "success",
"data": {
"action_uuid": "b26152d5-6a62-4b52-936a-cbd7b24ab2be",
"crop_image_temp_name": "23771564-f3d7-4017-8ab9-ef0839e9e003",
"zoom_factor": 1.0816000000000001
}
}
修改于 2025-06-30 02:42:27