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

com.aiwiown.face.domain.orc.OCRTemplateV1Model Maven / Gradle / Ivy

There is a newer version: 3.0.9
Show newest version
package com.aiwiown.face.domain.orc;

import com.aiwiown.face.ApiObject;
import com.aiwiown.face.internal.mapping.ApiField;

import java.io.File;

/**
 * @ClassName : OCRTemplateV1Model face++
 * @Description : 模板识别
 * @Author : dbin0123
 */
public class OCRTemplateV1Model extends ApiObject {
    private static final long serialVersionUID = -190694173868874400L;
    /**
     * 图片的URL
     */
    @ApiField("image_url")
    private String imageUrl;

    /**
     * 图片文件
     */
    @ApiField(value = "image_file", isFile = true)
    private File imageFile;

    /**
     * 图片文件的bate数组
     */
    @ApiField("image_file")
    private byte[] byteFile;

    /**
     * base64编码的二进制图片数据
     */
    @ApiField("image_base64")
    private String imageBase64;

    /**
     * 指定的模板ID(模版ID在创建模板后由系统自动生成)
     */
    @ApiField("template_id")
    private String templateId;

    /**
     * 该参数的值是一个单字符串或者以英文逗号分割的字符串,表示需要返回的额外信息。
     * 当前只支持extra_info=position,表示返回识别域的位置信息(识别域四个点坐标)
     */
    @ApiField("extra_info")
    private String extraInfo;

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public File getImageFile() {
        return imageFile;
    }

    public void setImageFile(File imageFile) {
        this.imageFile = imageFile;
    }

    public byte[] getByteFile() {
        return byteFile;
    }

    public void setByteFile(byte[] byteFile) {
        this.byteFile = byteFile;
    }

    public String getImageBase64() {
        return imageBase64;
    }

    public void setImageBase64(String imageBase64) {
        this.imageBase64 = imageBase64;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getExtraInfo() {
        return extraInfo;
    }

    public void setExtraInfo(String extraInfo) {
        this.extraInfo = extraInfo;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy