赞
踩
此方法通用OCR的功能请求,不同的是功能请求接口,按照自己所需换一个接口地址即可:
- <?php
- global $_GPC, $_W;
- //ocr请求地址
- $url='https://api.ai.qq.com/fcgi-bin/ocr/ocr_plateocr';//车牌识别api,可按照自己所需更换其他功能的api
- $app_id = '你的appid';
- $app_key = '你的appkey';
- //请求参数
- $params = array(
- 'app_id' => $app_id,
- 'nonce_str'=>uniqid("{$app_id}_"),
- 'time_stamp'=>time()
- );
- //读取待识别图片
- // $image_data = file_get_contents('./20190517203050.png');
- //编码后加入到请求参数中
- // $params['image'] = base64_encode($image_data);
- $params['image'] = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUEBAQEAwUEBAQGBQUGCA0ICAcHCBALDAkNExAUExIQ
- EhIUFx0ZFBYcFhISGiMaHB4fISEhFBkkJyQgJh0gISD/2wBDAQUGBggHCA8ICA8gFRIVICAgICAg
- ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wgARCAGQAZADAREA
- AhEBAxEB/8QAHQAAAgIDAQEBAAAAAAAAAAAAAQIAAwQFBgcICf/EABoBAQEBAQEBAQAAAAAAAAAA
- AAACAQMEBQb/2gAMAwEAAhADEAAAANceJSpFhsuj7S1x2vMfD7m+98aj1eXx34n0LTV9VJOSENo6
- 60998++T+icmemBXOzpy51tGLTbJvPXOV9Ft81u+fjBIIQhBgiikHAIEU+3cfDBhQow3R99a8EZ5
- XG7D63m1nflw3yPTsIa/WMDBCZDrafQ/l3w31ZtOfXS9OC9OeszarLDOl0eM/c9HjPRK7/OZUEgB
- BhRQkFEECKktLf0fx8ini0NXjC1+nfR8VJ8nTuvN7NxPTz71+GlABqYhNZmNtu52McZ0xa5au53X
- OtT054G9IZfIOmd9E+h8+3Q1Xhh6OdCjlt3z7NqaggAsiVZGxQTFFH6PT04+nyFjzaGzP0u6PzzT
- xCKyxdLK000GpCEt6R5emv1pe8b7MxjXmEZk1f0nRdGONBpXW9980dp17+CH2InfnM3y+Vo6c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n 版权所有,并保留所有权利。