| 程序包 | 说明 |
|---|---|
| com.baidu.aip.contentcensor | |
| com.baidu.aip.ocr |
| 限定符和类型 | 方法和说明 |
|---|---|
static EImgType |
EImgType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static EImgType[] |
EImgType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.json.JSONObject |
AipContentCensor.imageCensorUserDefined(String image,
EImgType type,
HashMap<String,Object> options)
图像审核接口
本接口除了支持自定义配置外,还对返回结果进行了总体的包装,按照用户在控制台中配置的规则直接返回是否合规,如果不合规则指出具体不合规的内容。
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.json.JSONObject |
AipOcr.taxiReceipt(String image,
EImgType type,
HashMap<String,String> options)
出租车票识别接口
针对出租车票(现支持北京)的发票号码、发票代码、车号、日期、时间、金额进行结构化识别
|
org.json.JSONObject |
AipOcr.trainTicket(String image,
EImgType type,
HashMap<String,String> options)
火车票识别接口
支持对大陆火车票的车票号、始发站、目的站、车次、日期、票价、席别、姓名进行结构化识别
|
org.json.JSONObject |
AipOcr.vatInvoice(String image,
EImgType type,
HashMap<String,String> options)
增值税发票识别接口
此接口需要您在页面中提交合作咨询开通权限】 识别并结构化返回增值税发票的各个字段及其对应值,包含了发票基础信息9项,货物相关信息12项,购买方/销售方的名称、识别号、地址电话、开户行及账号,共29项结构化字段。
|
org.json.JSONObject |
AipOcr.vinCode(String image,
EImgType type,
HashMap<String,String> options)
VIN码识别接口
对车辆车架上、挡风玻璃上的VIN码进行识别
|
Copyright © 2023. All rights reserved.