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

com.aiwiown.face.domain.orc.OCRCardModel 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 : OcridCardModel face++
 * @Description :
 * @Author : dbin0123
 */
public class OCRCardModel extends ApiObject {

    private static final long serialVersionUID = -4251674028623894869L;

    /**
     * URL
     */
    @ApiField("image_url")
    private String imageUrl;

    /**
     * 一个图片,二进制文件,需要用 post multipart/form-data 的方式上传。
     */
    @ApiField(value = "image_file", isFile = true)
    private File imageFile;
    /**
     * base64编码的二进制图片数据
     * 如果同时传入了image_url、image_file和image_base64参数,本API使用顺序为image_file优先,image_url最低。
     */
    @ApiField("image_base64")
    private String imageBase64;
    /**
     * 是否返回身份证照片合法性检查结果。值可以取:
     * 1: 返回
     * 0: 不返回
     * 注:默认值为 0
     * 注意:2017年6月7日之后,只有正式 API Key 能够调用此参数返回分类结果,免费 API Key 调用后无法返回分类结果。
     */
    @ApiField("legality")
    private Integer legality;

    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 String getImageBase64() {
        return imageBase64;
    }

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

    public Integer getLegality() {
        return legality;
    }

    public void setLegality(Integer legality) {
        this.legality = legality;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy