>" />
參數名稱 | 類型 | 必填 | 說明 |
---|---|---|---|
pic | file/string | 是 | 圖片文件 POST上傳,支持傳base64格式的圖片內容 JPG識別率略高 最大300K |
參數名稱 | 類型 | 說明 |
---|---|---|
vin | string | 車架號 |
iscorrect | int | 是否返回正確的車架號(1是,0不是) |
brand | string | 品牌 |
manufacturer | string | 廠家名稱 |
<?php require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $url = "http://api.jisuapi.com/vinrecognition/recognize?appkey=$appkey"; $post = array( 'pic'=>base64_encode(file_get_contents('11.jpg')), //'@'.realpath('11.jpg') ); $result = curlOpen($url, array('post'=>$post, 'isupfile'=>true)); $jsonarr = json_decode($result, true); if($jsonarr['status'] != 0) { echo $jsonarr['msg']; exit(); } $result = $jsonarr['result']; echo $result['vin'].' '.$result['iscorrect'].' '.$result['brand'].' '.$result['manufacturer'].'
';
{ "status": 0, "msg": "ok", "result": { "vin": "LFV2A21K0G4053021", "iscorrect": 1, "brand": "大眾", "manufacturer": "一汽大眾" } }
代號 | 說明 |
---|---|
201 | 圖片為空 |
202 | 圖片格式錯誤 |
203 | 圖片大小超過300K |
204 | 識別失敗 |
代號 | 說明 |
---|---|
101 | APPKEY為空或不存在 |
102 | APPKEY已過期 |
103 | APPKEY無請求此數據權限 |
104 | 請求超過次數限制 |
105 | IP被禁止 |
106 | IP請求超過限制 |
107 | 接口維護中 |
108 | 接口已停用 |
計次套餐 | 套餐規格 | 價格 | ||
---|---|---|---|---|
免費套餐 | 5次 | 0.00元 | ≈0元/次 | |
Level1 | 1000次 | 95.00元 | ≈0.095元/次 | |
Level2 | 10000次 | 679.00元 | ≈0.0679元/次 | |
Level3 | 20000次 | 1299.00元 | ≈0.06495元/次 | |
Level4 | 50000次 | 2899.00元 | ≈0.05798元/次 | |
Level5 | 100000次 | 4849.00元 | ≈0.04849元/次 |