| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| pic | string | 是 | 名片图片文件 POST上传,传base64格式的图片内容 JPG识别率略高 最大500K |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| name | string | 姓名 |
| position | string | 职位/部门 |
| mobile | string | 手机 |
| company | string | 公司名称 |
| address | string | 地址 |
| tel | string | 电话 |
| fax | string | 传真 |
| string | 邮箱 | |
| website | string | 网址 |
| zipcode | string | 邮编 |
<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.jisuapi.com/businesscardrecognition/recognize?appkey=$appkey";
$post = [
'pic'=>base64_encode(file_get_contents(realpath('11.jpg')))
];
$result = curlOpen($url, ['post'=>$post, 'ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
foreach($result as $key=>$val)
{
if(!is_array($val)) echo $key.':'.$val. '
';
else
{
foreach($val as $v)
{
echo $key.':'.$v.'
';
}
}
}
{
"status": 0,
"msg": "ok",
"result": {
"name": "王先生",
"position": ["CEO"],
"mobile": ["15888888888"],
"company": ["杭州网尚科技有限公司"],
"address": ["杭州市西湖区益乐路39号蓝海时代国际大厦15B03"],
"tel": ["0571-56565366"],
"fax": [],
"email": ["kf@jisuapi.com"],
"website": ["http://www.jisuapi.com"],
"zipcode": "310012"
}
}
| 代号 | 说明 |
|---|---|
| 201 | 图片为空 |
| 202 | 图片格式错误 |
| 204 | 图片大小超过300K |
| 208 | 识别失败 |
| 210 | 没有信息 |
| 代号 | 说明 |
|---|---|
| 101 | APPKEY为空或不存在 |
| 102 | APPKEY已过期 |
| 103 | APPKEY无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP被禁止 |
| 106 | IP请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
| 计次套餐 | 套餐规格 | 价格 | ||
|---|---|---|---|---|
| 免费套餐 | 10次 | 0.00 元 | ≈0元/次 | |
| Level1 | 1000次 | 55.00 元 | ≈0.055元/次 | |
| Level2 | 10000次 | 400.00 元 | ≈0.04元/次 | |
| Level3 | 20000次 | 700.00 元 | ≈0.035元/次 | |
| Level4 | 50000次 | 1700.00 元 | ≈0.034元/次 | |
| Level5 | 100000次 | 3300.00 元 | ≈0.033元/次 | |


© 2015-2025 杭州极速互联科技有限公司 版权所有 浙ICP备17047587号-4 浙公网安备33010502005096 增值电信业务经营许可证:浙B2-20190875