All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qcloud.cos.model.ciModel.image.ImageLabelRequest Maven / Gradle / Ivy

The newest version!
package com.qcloud.cos.model.ciModel.image;

import com.qcloud.cos.internal.CosServiceRequest;

/**
 * 获取图片标签接口请求实体 https://cloud.tencent.com/document/product/460/39082
 */
public class ImageLabelRequest extends CosServiceRequest {
    /**
     * 对象在cos中的相对位置,例如 demo/picture.jpg
     */
    private String objectKey;

    /**
     * 操作的bucket名称
     */
    private String bucketName;

    /**
     * url资源地址
     */
    private String detectUrl;

    /**
     * 本次调用支持的识别场景,可选值如下:
     * web,针对网络图片优化;
     * camera,针对手机摄像头拍摄图片优化;
     * album,针对手机相册、网盘产品优化;
     * news,针对新闻、资讯、广电等行业优化;
     * 如果不传此参数,则默认为camera。
     * 支持多场景(scenes)一起检测,以,分隔。例如,使用 scenes=web,camera 即对一张图片使用两个模型同时检测,输出两套识别结果。
     */
    private String scenes;

    public String getScenes() {
        return scenes;
    }

    public void setScenes(String scenes) {
        this.scenes = scenes;
    }

    public String getObjectKey() {
        return objectKey;
    }

    public void setObjectKey(String objectKey) {
        this.objectKey = objectKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getDetectUrl() {
        return detectUrl;
    }

    public void setDetectUrl(String detectUrl) {
        this.detectUrl = detectUrl;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ImageLabelRequest{");
        sb.append("objectKey='").append(objectKey).append('\'');
        sb.append(", bucketName='").append(bucketName).append('\'');
        sb.append(", detectUrl='").append(detectUrl).append('\'');
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy