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

com.tencentcloudapi.cms.v20190321.models.OCRItem 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.cms.v20190321.models;

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

public class OCRItem extends AbstractModel{

    /**
    * 检测到的文本坐标信息
    */
    @SerializedName("TextPosition")
    @Expose
    private Coordinate TextPosition;

    /**
    * 文本命中具体标签
    */
    @SerializedName("EvilLabel")
    @Expose
    private String EvilLabel;

    /**
    * 文本命中恶意违规类型
    */
    @SerializedName("EvilType")
    @Expose
    private Long EvilType;

    /**
    * 文本命中违规的关键词
    */
    @SerializedName("Keywords")
    @Expose
    private String [] Keywords;

    /**
    * 文本涉嫌违规分值
    */
    @SerializedName("Rate")
    @Expose
    private Long Rate;

    /**
    * 检测到的文本信息
    */
    @SerializedName("TextContent")
    @Expose
    private String TextContent;

    /**
     * Get 检测到的文本坐标信息 
     * @return TextPosition 检测到的文本坐标信息
     */
    public Coordinate getTextPosition() {
        return this.TextPosition;
    }

    /**
     * Set 检测到的文本坐标信息
     * @param TextPosition 检测到的文本坐标信息
     */
    public void setTextPosition(Coordinate TextPosition) {
        this.TextPosition = TextPosition;
    }

    /**
     * Get 文本命中具体标签 
     * @return EvilLabel 文本命中具体标签
     */
    public String getEvilLabel() {
        return this.EvilLabel;
    }

    /**
     * Set 文本命中具体标签
     * @param EvilLabel 文本命中具体标签
     */
    public void setEvilLabel(String EvilLabel) {
        this.EvilLabel = EvilLabel;
    }

    /**
     * Get 文本命中恶意违规类型 
     * @return EvilType 文本命中恶意违规类型
     */
    public Long getEvilType() {
        return this.EvilType;
    }

    /**
     * Set 文本命中恶意违规类型
     * @param EvilType 文本命中恶意违规类型
     */
    public void setEvilType(Long EvilType) {
        this.EvilType = EvilType;
    }

    /**
     * Get 文本命中违规的关键词 
     * @return Keywords 文本命中违规的关键词
     */
    public String [] getKeywords() {
        return this.Keywords;
    }

    /**
     * Set 文本命中违规的关键词
     * @param Keywords 文本命中违规的关键词
     */
    public void setKeywords(String [] Keywords) {
        this.Keywords = Keywords;
    }

    /**
     * Get 文本涉嫌违规分值 
     * @return Rate 文本涉嫌违规分值
     */
    public Long getRate() {
        return this.Rate;
    }

    /**
     * Set 文本涉嫌违规分值
     * @param Rate 文本涉嫌违规分值
     */
    public void setRate(Long Rate) {
        this.Rate = Rate;
    }

    /**
     * Get 检测到的文本信息 
     * @return TextContent 检测到的文本信息
     */
    public String getTextContent() {
        return this.TextContent;
    }

    /**
     * Set 检测到的文本信息
     * @param TextContent 检测到的文本信息
     */
    public void setTextContent(String TextContent) {
        this.TextContent = TextContent;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamObj(map, prefix + "TextPosition.", this.TextPosition);
        this.setParamSimple(map, prefix + "EvilLabel", this.EvilLabel);
        this.setParamSimple(map, prefix + "EvilType", this.EvilType);
        this.setParamArraySimple(map, prefix + "Keywords.", this.Keywords);
        this.setParamSimple(map, prefix + "Rate", this.Rate);
        this.setParamSimple(map, prefix + "TextContent", this.TextContent);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy