商品图片_护照OCR【数脉API】
护照OCR【数脉API】
【护照ocr智能识别】传入护照图片,扫描识别身份证信息并返回 格式为 jpg或png,宽和高大于 8px,小于等于4000px,大小不能超过1MB
价格
/10次 (0元调用每位用户仅限购买一次)
规格:
普通版
周期:
10次
100次
1000次
10000次
50000次
100000次
200000次
时长:
1年
自购买之日起1年有效
立即购买
加入购物车
同意 《云市场服务协议》《商品服务协议》
API参数
产品详情
客户案例
使用指南
产品价格
用户评价(0)
API参数
护照OCR
调用地址:
http,https://passportocr.api.bdymkt.com/passport_ocr/post
请求方式:
POST
支持格式:
application/x-www-form-urlencoded
调用工具:
去调试
请求参数(Headers)
请求参数(Query)
请求参数(Body)
  • 名称
  • 类型
  • 是否必须
  • 示例值
  • 描述
  • image
  • string
  • false
  • --
  • 图片base64字符串,image、url二选一
  • url
  • string
  • false
  • --
  • 图片url ,image、url二选一
请求参数(Path)
请求示例
java
python
go
curl
php
nodejs
示例代码使用, 需要使用Maven加入依赖
                                    
                                        
import com.baidubce.http.ApiExplorerClient;
import com.baidubce.http.AppSigner;
import com.baidubce.http.HttpMethodName;
import com.baidubce.model.ApiExplorerRequest;
import com.baidubce.model.ApiExplorerResponse;

// 护照OCR Java示例代码
public class RequestDemo {
    public static void main(String[] args) {
        String path = "http://gwgp-eyjrhqs7ku2.n.bdcloudapi.com/passport_ocr/post";
        ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
        request.setCredentials("您的 access key", "您的 secret key");

        request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded");
        
        
        

        ApiExplorerClient client = new ApiExplorerClient(new AppSigner());

        try {
          ApiExplorerResponse response = client.sendRequest(request);
          // 返回结果格式为Json字符串
          System.out.println(response.getResult());
        } catch (Exception e) {
          e.printStackTrace();
        }
    }
}
                                    

                                    
点击复制代码
正常返回示例
                                    {
    "msg": "成功",
    "success": true,
    "code": 200,
    "data": {
        "order_no": "694557636569468928",
        "result": {
            "log_id": 235509498581932799,
            "words_result": {
                "姓名": {
                    "words": "张三三",
                    "location": {
                        "top": 53,
                        "left": 124,
                        "width": 36,
                        "height": 11
                    }
                },
                "护照签发地点": {
                    "words": "青Q/INGHAI",
                    "location": {
                        "top": 126,
                        "left": 225,
                        "width": 78,
                        "height": 11
                    }
                },
                "签发机关": {
                    "words": "山东SHANDONG",
                    "location": {
                        "top": 173,
                        "left": 126,
                        "width": 83,
                        "height": 11
                    }
                },
                "护照号码": {
                    "words": "G06091123",
                    "location": {
                        "top": 20,
                        "left": 266,
                        "width": 75,
                        "height": 12
                    }
                },
                "签发日期": {
                    "words": "2002**30",
                    "location": {
                        "top": 148,
                        "left": 125,
                        "width": 75,
                        "height": 11
                    }
                },
                "出生地点": {
                    "words": "/",
                    "location": {
                        "top": 101,
                        "left": 226,
                        "width": 124,
                        "height": 12
                    }
                },
                "生日": {
                    "words": "19751124",
                    "location": {
                        "top": 126,
                        "left": 125,
                        "width": 75,
                        "height": 12
                    }
                },
                "国家码": {
                    "words": "CHN",
                    "location": {
                        "top": 19,
                        "left": 169,
                        "width": 21,
                        "height": 8
                    }
                },
                "有效期至": {
                    "words": "20071229",
                    "location": {
                        "top": 148,
                        "left": 225,
                        "width": 77,
                        "height": 11
                    }
                },
                "姓名拼音": {
                    "words": "ZHANG,SANSAN",
                    "location": {
                        "top": 77,
                        "left": 125,
                        "width": 76,
                        "height": 12
                    }
                },
                "性别": {
                    "words": "男/M",
                    "location": {
                        "top": 102,
                        "left": 125,
                        "width": 26,
                        "height": 11
                    }
                }
            },
            "words_result_num": 11
        }
    }
}
                                
失败返回示例
                                    {
    "msg": "入参错误,
    "success": false, 
    "code": 400, 
    "data": { }
}
                                
错误码定义
产品详情

客户案例

购买页面上有基于api接口的请求url,入参字段,响应接口结果,和返回错误码描述,请按照要求对接即可

使用指南
使用指南.docx
产品价格
  • 规格
  • 周期
  • 首次购买价
  • 普通版
  • 10次
  • ¥0
  • 普通版
  • 100次
  • ¥2
  • 普通版
  • 1000次
  • ¥35
  • 普通版
  • 10000次
  • ¥300
  • 普通版
  • 50000次
  • ¥1400
  • 普通版
  • 100000次
  • ¥2600
  • 普通版
  • 200000次
  • ¥4800
此处价格仅供参考,实际价格以选定规格周期后的显示价格为准。
用户评价(0)
服务商:
杭州数脉科技有限公司
客服热线:
021-39891710
服务时间:
9:00-22:00
电子邮件:
service@shumaidata.com
在线客服:
客服咨询
是一家专注于征信大数据的技术驱动型企业,旗下产品“数脉API”目前已服务超过三千家企业,涵盖了教育、电商、物流、金融、支付、出行等数十个领域。
关联推荐
关联推荐商品图片_PDF识别ocr
PDF识别ocr
0 /次
关联推荐商品图片_运营商空号检测【数脉API】
运营商空号检测【数脉API】
0 /次
关联推荐商品图片_【聚美智数】动漫生成 人像动漫化 人像动漫生成
【聚美智数】动漫生成 人像动漫化 人像动漫生成
0 /次
关联推荐商品图片_【聚美智数】关键词提取 关键词抽取
【聚美智数】关键词提取 关键词抽取
0 /次
关联推荐商品图片_【聚美智数】图像内容审核 图片鉴黄 图片违规检测 图片文字审核
【聚美智数】图像内容审核 图片鉴黄 图片违规检测 图片文字审核
0 /次
0
购物车
联系我们