tencent cloud

피드백

Image Tagging

마지막 업데이트 시간:2024-02-29 17:31:27

    Overview

    This document provides an overview of APIs and SDK code samples for image tagging.
    API
    Description
    Tagging image
    Recognizes tags in an image stored in COS.

    Image Tagging

    Feature description

    The image tagging feature recognizes tags in images stored in COS by using the persistent processing API of CI and returns tags with a high confidence. Image tagging requests are GET requests and need to carry a signature.

    Method prototype

    ImageLabelResponse getImageLabel(ImageLabelRequest request);

    Sample request

    //1. Create a job request object
    ImageLabelRequest request = new ImageLabelRequest();
    //2. Add request parameters as detailed in the API documentation
    request.setBucketName("demo-123456789");
    request.setObjectKey("1.png");
    //3. Call the API to get the job response object
    ImageLabelResponse response = client.getImageLabel(request);

    Parameter description

    Request has the following sub-nodes:
    Node Name (Keyword)
    Parent Node
    Description
    Type
    Required
    bucketName
    Request
    Bucket name in the format of BucketName-APPID. For more information, see Bucket Overview.
    String
    Yes
    objectKey
    Request
    Location of the image in the bucket
    String
    Yes

    Response description

    Success: An ImageLabelResponse instance is returned upon success, which contains the result.
    Failure: An error (such as the bucket does not exist) occurs, reporting the CosClientException or CosServiceException exception. For more information, see Troubleshooting.
    문의하기

    고객의 업무에 전용 서비스를 제공해드립니다.

    기술 지원

    더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

    연중무휴 24시간 전화 지원