ShowAPI,自营为主的数据交易市场
立即注册

二维码生成和识别

提供者: 易源官方 免费使用

二维码的处理(因第三方提供的二维码服务不稳定,故官方提供一个版本供大家使用),包括二维码生成和识别接口

浏览量:6011

调用量:28031318

使用人数:950

点赞:56

申请使用 查看演示
文档 授权签名(重要) 联系信息 价格一览表 接口演示
接入点列表
二维码识别(Base64)
二维码识别(图片地址)
二维码识别(图片上传)
二维码生成
资源列表
·SDK及代码示例
规则中心
·名词解释
·常见问题
·用户留言

接入点说明

根据图片的Base64信息,识别图片中的信息

请求URL地址

http://route.showapi.com/887-4
注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。

请求参数

HTTP协议,支持GET/POST方法。
非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。
1.系统级参数(所有接入点都需要的参数):+点此展开
2.应用级参数(每个接入点有自己的参数):
参数名称 类型 默认值 示例值 必须 描述
imgData String /9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCABPAE8DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAA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z+ydXmij8i9vD+/ijEm75d0SttOHHBA5b3rs/h9qGm/FbwLd+HL3Q7SCfRdMisba+mVblkZ4mTzUBUFCDEGwD6c8ZroPGHwuPjH4m6XreoraT6DBZfZ7m2aaRJXYGUqV2gcbnQ/eHQ/jY+Gvw8ufAms+J5We0Gn6jcI1jFDI7tFErS7VfcBztdR1PQ8+oBzevfB/w3YfDrTNHv8AXdK0q6t7ss+tz2kcT3GfMIjJLg9GHG4/6vp6cR4e8C6P4d+JmkzzajY+IPCqRSNe6o8CGxhkKSKscjlmjDZ8sgEg5deORn2P4s+CtS8eeFbXS9LntIZ4r1LhmunZVKhHXA2qxzlx29a5fxb8Jteewl8P+CLvTdM8L3SLJd2V1I7NJcB8lw5R2AwkXAYD5TxycgGH8ZfCf/Ir6j4D8P8A/Pac3OhWX/XJon3RD6lT9cVY+Cn/AAnn/CZXn/CUf8JH9h/s99n9p+f5fmeZHjHmcbsbvfGa9A+G2g+MfDunTWHijVbG9tYYoIdPS0H+pRAwIJ8tSeNnXPQ/jqWVl4rTx5qN3d6naSeF3twtnZKo82OXEeWY7AcZEn8R+8OPQA//2Q== 请填写参数描述
handleImg String 0 是否需要处理成黑白图片,1需要处理 ; 0 不处理(彩色图片的时候,可以使用该值以提高识别率)

返回参数

以JSON格式返回结果。
1.系统级参数(所有接入点都会返回的参数):+点此展开
2.应用级参数(系统级输出参数showapi_res_body字段中的json数据结构):
名称 类型 示例值 描述
ret_code String 0 错误编码:0为成功 其他值为失败
retText String http://www.showapi.com 返回值
  • 请求实例
  • java_sdk
  • 纯java
  • curl
  • php
  • android
  • python
String res=new ShowApiRequest("http://route.showapi.com/887-4","my_appId","my_appSecret")
           .addTextPara("imgData","/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyM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oH9s/8AEz+yWtl5H2Wb/XbFTbu2bfvcZzj3rrLLwVptj481HxhFPdnUL+3FvLGzr5QUCMZUbc5/dr1J6n8ADg/D3/J0Piz/ALBUf/oNrXgH/CCeMP8AoVNc/wDBdN/8TXv/AIh+Hvj3/hZmreK/CmtaVYfboo4QZ8s+wJGGBUxMo+aMHij/AIR745/9Dnof/flf/kegDD8WQTWtx8ELe4ikhnie3SSORSrIwNqCCDyCDxipPiJ8OPDeveO9S1O/+IelaTdTeVvspxHvixEijOZVPIAPQdauN8OfiXrPirw7qnifxBo19BpF7HcKseUYLvRnA2wqCSEHU9u1bF/8IYPEHxU1jxD4hhtLzRbu3RYLdZ5UlWVUiXc23aMYR/4j1HHoAeafEz4j/wBvaZPpms/Dz+ydXmij8i9vD+/ijEm75d0SttOHHBA5b3rs/h9qGm/FbwLd+HL3Q7SCfRdMisba+mVblkZ4mTzUBUFCDEGwD6c8ZroPGHwuPjH4m6XreoraT6DBZfZ7m2aaRJXYGUqV2gcbnQ/eHQ/jY+Gvw8ufAms+J5We0Gn6jcI1jFDI7tFErS7VfcBztdR1PQ8+oBzevfB/w3YfDrTNHv8AXdK0q6t7ss+tz2kcT3GfMIjJLg9GHG4/6vp6cR4e8C6P4d+JmkzzajY+IPCqRSNe6o8CGxhkKSKscjlmjDZ8sgEg5deORn2P4s+CtS8eeFbXS9LntIZ4r1LhmunZVKhHXA2qxzlx29a5fxb8Jteewl8P+CLvTdM8L3SLJd2V1I7NJcB8lw5R2AwkXAYD5TxycgGH8ZfCf/Ir6j4D8P8A/Pac3OhWX/XJon3RD6lT9cVY+Cn/AAnn/CZXn/CUf8JH9h/s99n9p+f5fmeZHjHmcbsbvfGa9A+G2g+MfDunTWHijVbG9tYYoIdPS0H+pRAwIJ8tSeNnXPQ/jqWVl4rTx5qN3d6naSeF3twtnZKo82OXEeWY7AcZEn8R+8OPQA//2Q==")
           .post();
System.out.println(res);

                  public static void main(String path[]) throws Exception {
									URL u=new URL("http://route.showapi.com/887-4?showapi_appid=myappid&imgData=&handleImg=&showapi_sign=mysecret");
									InputStream in=u.openStream();
									ByteArrayOutputStream out=new ByteArrayOutputStream();
									try {
										byte buf[]=new byte[1024];
										int read = 0;
										while ((read = in.read(buf)) > 0) {
											out.write(buf, 0, read);
										}
									}  finally {
										if (in != null) {
											in.close();
										}
									}
									byte b[]=out.toByteArray( );
									System.out.println(new String(b,"utf-8"));
							}
						 
						
						//字段值为中文、空格、特殊符号的地方需要做urlencode,编码为utf-8。用js的方式就是:
						//encodeURIComponent('中文')
						//比如"中文"转换后就是%25E4%25B8%25AD%25E6%2596%2587
            curl   "http://route.showapi.com/887-4?showapi_appid=123&showapi_timestamp=20151214132239&showapi_sign=use_my_sign&imgData=/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCABPAE8DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5Ok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2aaRJXYGUqV2gcbnQ/eHQ/jY+Gvw8ufAms+J5We0Gn6jcI1jFDI7tFErS7VfcBztdR1PQ8+oBzevfB/w3YfDrTNHv8AXdK0q6t7ss+tz2kcT3GfMIjJLg9GHG4/6vp6cR4e8C6P4d+JmkzzajY+IPCqRSNe6o8CGxhkKSKscjlmjDZ8sgEg5deORn2P4s+CtS8eeFbXS9LntIZ4r1LhmunZVKhHXA2qxzlx29a5fxb8Jteewl8P+CLvTdM8L3SLJd2V1I7NJcB8lw5R2AwkXAYD5TxycgGH8ZfCf/Ir6j4D8P8A/Pac3OhWX/XJon3RD6lT9cVY+Cn/AAnn/CZXn/CUf8JH9h/s99n9p+f5fmeZHjHmcbsbvfGa9A+G2g+MfDunTWHijVbG9tYYoIdPS0H+pRAwIJ8tSeNnXPQ/jqWVl4rTx5qN3d6naSeF3twtnZKo82OXEeWY7AcZEn8R+8OPQA//2Q==&"
						
						 //md5签名方式--非简单签名
               			<?php
							header("Content-Type:text/html;charset=UTF-8");
							date_default_timezone_set("PRC");
							$showapi_appid = 'xxxxxx';  //替换此值,在官网的"我的应用"中找到相关值
							$showapi_secret = 'xxxxxxxxx';  //替换此值,在官网的"我的应用"中找到相关值 
							$paramArr = array(
							     'showapi_appid'=> $showapi_appid,
								 'imgData'=> "",
								 'handleImg'=> ""
							     //添加其他参数
							);
							
							//创建参数(包括签名的处理)
							function createParam ($paramArr,$showapi_secret) {
							     $paraStr = "";
							     $signStr = "";
							     ksort($paramArr);
							     foreach ($paramArr as $key => $val) {
							         if ($key != '' && $val != '') {
							             $signStr .= $key.$val;
							             $paraStr .= $key.'='.urlencode($val).'&';
							         }
							     }
							     $signStr .= $showapi_secret;//排好序的参数加上secret,进行md5
							     $sign = strtolower(md5($signStr));
							     $paraStr .= 'showapi_sign='.$sign;//将md5后的值作为参数,便于服务器的效验
							     echo "排好序的参数:".$signStr."
\r\n"; return $paraStr; } $param = createParam($paramArr,$showapi_secret); $url = 'http://route.showapi.com/887-4?'.$param; echo "请求的url:".$url."
\r\n"; $result = file_get_contents($url); echo "返回的json数据:
\r\n"; print $result.'
\r\n'; $result = json_decode($result); echo "
\r\n取出showapi_res_code的值:
\r\n"; print_r($result->showapi_res_code); echo "
\r\n"; ?>
						//以下代码为纯java实现,并未依赖第三方框架,具体传入参数请参看接口描述详情页.
						protected Handler mHandler =  new Handler();
						protected void onCreate(Bundle savedInstanceState) {
								super.onCreate(savedInstanceState);
								setContentView(R.layout.activity_main);
								final TextView txt = (TextView) this.findViewById(R.id.textView1);
								Button myBtn = (Button) this.findViewById(R.id.button1);
								myBtn.setOnClickListener(new OnClickListener() {
									public void onClick(View v) {
										new Thread(){
											//在新线程中发送网络请求
											public void run() {
												String appid="xxx";//要替换成自己的
												String secret="xxxxxxx";//要替换成自己的
												final String res=new ShowApiRequest( "http://route.showapi.com/887-4", appid, secret)
                    .addTextPara("imgData", "")
                                .addTextPara("handleImg", "")
            .post();
												
												System.out.println(res);
												//把返回内容通过handler对象更新到界面
												mHandler.post(new Thread(){
													public void run() {
														txt.setText(res+"  "+new Date());
													}
												});
											}
										}.start();
										
										
									}
								});
						}

						
#phthon3.5
from urllib import    request, parse
import json

print('send data....')
showapi_appid="xxxxxxxxxx"  #替换此值
showapi_sign="xxxxxxxxxx"   #替换此值
url="http://route.showapi.com/887-4"
send_data = parse.urlencode([
    ('showapi_appid', showapi_appid)
    ,('showapi_sign', showapi_sign)
                    ,('imgData', "")
                    ,('handleImg', "")
    
  ])

req = request.Request(url) 
with request.urlopen(req, data=send_data.encode('utf-8')) as f:
    print('Status:', f.status, f.reason)
    str_res= f.read().decode('utf-8')
    print('str_res:',str_res)
    json_res=json.dumps(str_res)
    print ('json_res data is:', json_res)

    
						 

						

返回实例

{
	"showapi_res_code": 0,
	"showapi_res_error": "",
	"showapi_res_body": {
		"ret_code": "0",
		"retText": "http://www.showapi.com"
	}
}




请求地址 请求参数 返回参数 请求示例 返回示例
接入点列表
二维码识别(Base64)
二维码识别(图片地址)
二维码识别(图片上传)
二维码生成
  • 即充即用流量包(二维码识别(Base64))

一次性礼包

0时间:1年

  • 1000次调用
  • 不限调用频率
  • 手机认证 要求
  •  
领取

9元10000次

9 时间:1年

  • 10000次调用
  • 不限调用频率
订购套餐

99元120000次

99 时间:1年

  • 120000次调用
  • 不限调用频率
订购套餐