public class TAipOcr extends BaseClient
app_id, app_key, config| 限定符和类型 | 方法和说明 |
|---|---|
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,
int type)
行驶证驾驶证OCR识别
识别行驶证或驾驶证图像上面的字段信息
|
String |
driverlicenseOcr(String filePath,
int type)
行驶证驾驶证OCR识别
识别行驶证或驾驶证图像上面的字段信息
|
String |
generalOcr(byte[] image)
通用文字识别接口
用户向服务请求识别某张图中的所有文字
|
String |
generalOcr(String filePath)
通用文字识别接口
用户向服务请求识别某张图中的所有文字
|
String |
handWritingOcrByImage(byte[] image)
手写体OCROCR识别
检测和识别图像上面手写体的字段信息
|
String |
handWritingOcrByImage(String filePath)
手写体OCROCR识别
检测和识别图像上面手写体的字段信息
|
String |
handWritingOcrByUrl(String image_url)
手写体OCROCR识别
检测和识别图像上面手写体的字段信息
use handWritingOcrByImage
|
String |
idcardOcr(byte[] image,
int card_type)
身份证识别接口
识别身份证图像上面的详细身份信息
|
String |
idcardOcr(String filePath,
int card_type)
身份证识别接口
识别身份证图像上面的详细身份信息
|
String |
plateOcrByImage(byte[] image)
车牌OCR
识别车牌上面的字段信息
|
String |
plateOcrByImage(String filePath)
车牌OCR
识别车牌上面的字段信息
|
String |
plateOcrByUrl(String image_url)
车牌OCR
识别车牌上面的字段信息
|
requestServer, setConnectionTimeoutInMillis, setHttpProxy, setSocketProxy, setSocketTimeoutInMillispublic 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, int type) throws Exception
image - - 二进制图像数据type - 识别类型,0-行驶证识别,1-驾驶证识别Exceptionpublic String driverlicenseOcr(String filePath, int type) throws Exception
filePath - - 本地路径图像文件type - 识别类型,0-行驶证识别,1-驾驶证识别Exceptionpublic String bizlicenseOcr(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String bizlicenseOcr(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String creditcardOcr(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String creditcardOcr(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String handWritingOcrByImage(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String handWritingOcrByImage(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String handWritingOcrByUrl(String image_url) throws Exception
image_url - - 图片URL地址Exceptionpublic String plateOcrByImage(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String plateOcrByImage(String filePath) throws Exception
filePath - - 本地路径图像文件ExceptionCopyright © 2018. All rights reserved.