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

com.tencentcloudapi.facefusion.v20181201.models.FaceFusionRequest Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.facefusion.v20181201.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class FaceFusionRequest extends AbstractModel{

    /**
    * 活动 ID,请在人脸融合控制台查看。
    */
    @SerializedName("ProjectId")
    @Expose
    private String ProjectId;

    /**
    * 素材 ID,请在人脸融合控制台查看。
    */
    @SerializedName("ModelId")
    @Expose
    private String ModelId;

    /**
    * 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
    */
    @SerializedName("RspImgType")
    @Expose
    private String RspImgType;

    /**
    * 图片 base64 数据。请确保人脸为正脸,无旋转。若某些手机拍摄后人脸被旋转,请使用图片的 EXIF 信息对图片进行旋转处理;请勿在 base64 数据中包含头部,如“data:image/jpeg;base64,”。
    */
    @SerializedName("Image")
    @Expose
    private String Image;

    /**
    * 历史遗留字段,无需填写。因为融合只需提取人脸特征,不需要鉴黄。
    */
    @SerializedName("PornDetect")
    @Expose
    private Long PornDetect;

    /**
    * 0表示不需要不适宜内容识别,1表示需要不适宜内容识别。默认值为0。
请注意,不适宜内容识别服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
    */
    @SerializedName("CelebrityIdentify")
    @Expose
    private Long CelebrityIdentify;

    /**
    * 图片Url地址,目前Url方式还不支持,后续会支持,可以使用FuseFace接口
    */
    @SerializedName("Url")
    @Expose
    private String Url;

    /**
     * Get 活动 ID,请在人脸融合控制台查看。 
     * @return ProjectId 活动 ID,请在人脸融合控制台查看。
     */
    public String getProjectId() {
        return this.ProjectId;
    }

    /**
     * Set 活动 ID,请在人脸融合控制台查看。
     * @param ProjectId 活动 ID,请在人脸融合控制台查看。
     */
    public void setProjectId(String ProjectId) {
        this.ProjectId = ProjectId;
    }

    /**
     * Get 素材 ID,请在人脸融合控制台查看。 
     * @return ModelId 素材 ID,请在人脸融合控制台查看。
     */
    public String getModelId() {
        return this.ModelId;
    }

    /**
     * Set 素材 ID,请在人脸融合控制台查看。
     * @param ModelId 素材 ID,请在人脸融合控制台查看。
     */
    public void setModelId(String ModelId) {
        this.ModelId = ModelId;
    }

    /**
     * Get 返回图像方式(url 或 base64) ,二选一。url有效期为7天。 
     * @return RspImgType 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
     */
    public String getRspImgType() {
        return this.RspImgType;
    }

    /**
     * Set 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
     * @param RspImgType 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
     */
    public void setRspImgType(String RspImgType) {
        this.RspImgType = RspImgType;
    }

    /**
     * Get 图片 base64 数据。请确保人脸为正脸,无旋转。若某些手机拍摄后人脸被旋转,请使用图片的 EXIF 信息对图片进行旋转处理;请勿在 base64 数据中包含头部,如“data:image/jpeg;base64,”。 
     * @return Image 图片 base64 数据。请确保人脸为正脸,无旋转。若某些手机拍摄后人脸被旋转,请使用图片的 EXIF 信息对图片进行旋转处理;请勿在 base64 数据中包含头部,如“data:image/jpeg;base64,”。
     */
    public String getImage() {
        return this.Image;
    }

    /**
     * Set 图片 base64 数据。请确保人脸为正脸,无旋转。若某些手机拍摄后人脸被旋转,请使用图片的 EXIF 信息对图片进行旋转处理;请勿在 base64 数据中包含头部,如“data:image/jpeg;base64,”。
     * @param Image 图片 base64 数据。请确保人脸为正脸,无旋转。若某些手机拍摄后人脸被旋转,请使用图片的 EXIF 信息对图片进行旋转处理;请勿在 base64 数据中包含头部,如“data:image/jpeg;base64,”。
     */
    public void setImage(String Image) {
        this.Image = Image;
    }

    /**
     * Get 历史遗留字段,无需填写。因为融合只需提取人脸特征,不需要鉴黄。 
     * @return PornDetect 历史遗留字段,无需填写。因为融合只需提取人脸特征,不需要鉴黄。
     */
    public Long getPornDetect() {
        return this.PornDetect;
    }

    /**
     * Set 历史遗留字段,无需填写。因为融合只需提取人脸特征,不需要鉴黄。
     * @param PornDetect 历史遗留字段,无需填写。因为融合只需提取人脸特征,不需要鉴黄。
     */
    public void setPornDetect(Long PornDetect) {
        this.PornDetect = PornDetect;
    }

    /**
     * Get 0表示不需要不适宜内容识别,1表示需要不适宜内容识别。默认值为0。
请注意,不适宜内容识别服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。 
     * @return CelebrityIdentify 0表示不需要不适宜内容识别,1表示需要不适宜内容识别。默认值为0。
请注意,不适宜内容识别服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
     */
    public Long getCelebrityIdentify() {
        return this.CelebrityIdentify;
    }

    /**
     * Set 0表示不需要不适宜内容识别,1表示需要不适宜内容识别。默认值为0。
请注意,不适宜内容识别服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
     * @param CelebrityIdentify 0表示不需要不适宜内容识别,1表示需要不适宜内容识别。默认值为0。
请注意,不适宜内容识别服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
     */
    public void setCelebrityIdentify(Long CelebrityIdentify) {
        this.CelebrityIdentify = CelebrityIdentify;
    }

    /**
     * Get 图片Url地址,目前Url方式还不支持,后续会支持,可以使用FuseFace接口 
     * @return Url 图片Url地址,目前Url方式还不支持,后续会支持,可以使用FuseFace接口
     */
    public String getUrl() {
        return this.Url;
    }

    /**
     * Set 图片Url地址,目前Url方式还不支持,后续会支持,可以使用FuseFace接口
     * @param Url 图片Url地址,目前Url方式还不支持,后续会支持,可以使用FuseFace接口
     */
    public void setUrl(String Url) {
        this.Url = Url;
    }

    public FaceFusionRequest() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public FaceFusionRequest(FaceFusionRequest source) {
        if (source.ProjectId != null) {
            this.ProjectId = new String(source.ProjectId);
        }
        if (source.ModelId != null) {
            this.ModelId = new String(source.ModelId);
        }
        if (source.RspImgType != null) {
            this.RspImgType = new String(source.RspImgType);
        }
        if (source.Image != null) {
            this.Image = new String(source.Image);
        }
        if (source.PornDetect != null) {
            this.PornDetect = new Long(source.PornDetect);
        }
        if (source.CelebrityIdentify != null) {
            this.CelebrityIdentify = new Long(source.CelebrityIdentify);
        }
        if (source.Url != null) {
            this.Url = new String(source.Url);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
        this.setParamSimple(map, prefix + "ModelId", this.ModelId);
        this.setParamSimple(map, prefix + "RspImgType", this.RspImgType);
        this.setParamSimple(map, prefix + "Image", this.Image);
        this.setParamSimple(map, prefix + "PornDetect", this.PornDetect);
        this.setParamSimple(map, prefix + "CelebrityIdentify", this.CelebrityIdentify);
        this.setParamSimple(map, prefix + "Url", this.Url);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy