更新时间:2022-03-17 GMT+08:00
分享

查询单个作业

功能介绍

该API用于查询并显示单个作业详情。

调试

您可以在API Explorer中调试该接口。

URI

  • URI格式
    GET /v2/{project_id}/services/c-face-detection/tasks/{task_id}
  • 参数说明

    参数

    是否必选

    类型

    说明

    project_id

    String

    项目ID。

    task_id

    String

    作业ID。

请求

请求样例

GET /v2/6204a5bd270343b5885144cf9c8c158d/services/c-face-detection/tasks/cf9631594c9e48d7b04660da94a2bb94

响应

  • 响应样例(VIS输入+DIS输出)
    {
        "id":"cf9631594c9e48d7b04660da94a2bb94",
        "name":"face_cloud_0",
        "creator":"user_test",
        "project_id":"1f793beac00d4801874db741cbfe10fa",
        "description":"face detection task test",
        "service_version":"3.0",
        "resource_order_id":"840a5cf90d4a4bbaa71f251dfe8fe64e",
        "created_at":"2020-09-22T02:54:53Z",
        "updated_at":"2020-09-22T02:54:53Z",
        "state":"RUNNING",
        "input":{
            "type":"vis",
            "data":[
                {
                    "stream_name":"face",
                    "index":0
                }
            ]
        },
        "output":{
            "dis":{
                "stream_name":"dis-face",
                "data_category":[
                    "FaceImage",
                    "OriginImage"
                ]
            }
        },
        "service_config":{
            "common":{
                "detection_max_size":800,
                "detection_min_size":120,
                "origin_image_send_sw":0,
                "image_compression_ratio":90,
                "frame_skip_number":0,
                "face_first_send_threshold":0.5,
                "face_must_send_sw":0,
                "face_repeat_send_sw":0,
                "face_repeat_send_mode":"QUALITY_STEP",
                "face_repeat_send_step":1.2,
                "face_repeat_send_interval":1,
    	    "target_roi": "{"polygos":[{"data":[[100,100],[1800,100],[1800,1000],[100,1000]]}]}"
            }
        }
    }
  • 响应参数说明

    参数名称

    字段类型

    描述信息

    task

    Object

    task详情,定义见Task参数结构说明

返回值

  • 正常

    200

  • 异常

    返回值

    说明

    400 Bad Request

    请求错误,具体返回错误码请参考错误码

    401 Unauthorized

    鉴权失败。

    403 Forbidden

    没有操作权限。

    404 Not Found

    找不到资源。

    500 Internal Server Error

    服务内部错误

    503 Service Unavailable

    服务不可用。

分享:

    相关文档

    相关产品