public class TAipOcr extends BaseClient
app_id, app_key| 限定符和类型 | 方法和说明 |
|---|---|
String |
bcOcr(byte[] image)
名片识别接口
识别名片图像上面的字段信息
|
String |
bcOcr(String filePath)
名片识别接口
识别名片图像上面的字段信息
|
String |
bizlicenseOcr(byte[] image)
营业执照OCR识别
识别营业执照上面的字段信息
|
String |
bizlicenseOcr(String filePath)
营业执照OCR识别
识别营业执照上面的字段信息
|
String |
creditcardOcr(byte[] image)
银行卡OCR识别
识别银行卡上面的字段信息
|
String |
creditcardOcr(String filePath)
银行卡OCR识别
识别银行卡上面的字段信息
|
String |
driverlicenseOcr(byte[] image)
行驶证驾驶证OCR识别
识别行驶证或驾驶证图像上面的字段信息
|
String |
driverlicenseOcr(String filePath)
行驶证驾驶证OCR识别
识别行驶证或驾驶证图像上面的字段信息
|
String |
generalOcr(byte[] image)
通用文字识别接口
用户向服务请求识别某张图中的所有文字
|
String |
generalOcr(String filePath)
通用文字识别接口
用户向服务请求识别某张图中的所有文字
|
String |
idcardOcr(byte[] image,
int card_type)
身份证识别接口
识别身份证图像上面的详细身份信息
|
String |
idcardOcr(String filePath,
int card_type)
身份证识别接口
识别身份证图像上面的详细身份信息
|
public String generalOcr(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String generalOcr(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String idcardOcr(byte[] image, int card_type) throws Exception
image - - 二进制图像数据card_type - 身份证图片类型,0-正面,1-反面Exceptionpublic String idcardOcr(String filePath, int card_type) throws Exception
filePath - - 本地路径图像文件card_type - 身份证图片类型,0-正面,1-反面Exceptionpublic String bcOcr(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String bcOcr(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String driverlicenseOcr(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String driverlicenseOcr(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String bizlicenseOcr(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String bizlicenseOcr(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String creditcardOcr(byte[] image) throws Exception
image - - 二进制图像数据ExceptionCopyright © 2018. All rights reserved.