首页 图像识别 验证码识别
验证码识别

验证码识别

  • 335
  • 235
提供图片,识别图片里的验证码。可以识别纯数字、纯字母、纯汉字、数字字母组合、汉字字母组合等固定长度、任意长度的验证码。准确率非常高!
15.00/1000次
https://api.binstd.com/captcha/recognize
JSON
POST
https://api.binstd.com/captcha/recognize?appkey=yourappkey&type=n4

请求参数:

API在线测试
参数名称类型必填说明
type string 验证码类型 从验证码类型接口获取
pic string 验证码图片 base64加密格式 图片转BASE64

返回参数:

参数名称类型说明
type string 验证码类型
code string 识别结果

请求代码:

查看代码
<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$pic = base64_encode(file_get_contents('11.jpg'));//验证码图片
$type = 'n4';//图片类型
$url = "https://api.binstd.com/captcha/recognize?appkey=$appkey";

$post = array(
    'pic'=>$pic,
    'type'=>$type
);
$result = curlOpen($url, array('post'=>$post));
$jsonarr = json_decode($result, true);

if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}

$result = $jsonarr['result'];
echo $result['type'].' '.$result['code'];
                    

JSON返回示例 :

{
    "status": "0",
    "msg": "ok",
    "result": {
        "type": "n4",
        "code": "4568"
    }
}
                    

API错误码:

代号说明
201 验证码类型为空
202 图片为空
203 图片格式错误
204 验证码类型不正确
205 图片超过大小限制
210 未知错误

系统错误码:

代号说明
101 APPKEY为空或不存在
102 APPKEY已过期
103 APPKEY无请求此数据权限
104 请求超过次数限制
105 IP被禁止
106 IP请求超过限制
107 接口维护中
108 接口已停用
名称权限价格
Level1 1000次 15.00元
Level2 10000次 140.00元
Level3 20000次 275.00元
Level4 50000次 675.00元
Level5 100000次 1300.00元

活动推荐ACTIVITY 更多

  • orc活动

热门API接口推荐RECOMMENDED DATA 更多

开通BinSTD会员

开通账号:

×

会员类型:

  • 会员

会员时长:

  • 按年付

总金额:

  • ¥ 600.00元原价:900.00元
  • ¥ 300.00元原价:450.00元
  • ¥ 50.00元原价:75.00元
  • ¥ 100.00元原价:150.00元
  • ¥ 150.00元原价:225.00元
  • ¥ 200.00元原价:300.00元
  • ¥ 250.00元原价:375.00元