当前位置:   article > 正文

使用腾讯AI开放平台api进行车牌OCR识别和其他比如图片文字识别等通用_arwvnk

arwvnk

此方法通用OCR的功能请求,不同的是功能请求接口,按照自己所需换一个接口地址即可:

  1. <?php
  2. global $_GPC, $_W;
  3. //ocr请求地址
  4. $url='https://api.ai.qq.com/fcgi-bin/ocr/ocr_plateocr';//车牌识别api,可按照自己所需更换其他功能的api
  5. $app_id = '你的appid';
  6. $app_key = '你的appkey';
  7. //请求参数
  8. $params = array(
  9. 'app_id' => $app_id,
  10. 'nonce_str'=>uniqid("{$app_id}_"),
  11. 'time_stamp'=>time()
  12. );
  13. //读取待识别图片
  14. // $image_data = file_get_contents('./20190517203050.png');
  15. //编码后加入到请求参数中
  16. // $params['image'] = base64_encode($image_data);
  17. $params['image'] = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUEBAQEAwUEBAQGBQUGCA0ICAcHCBALDAkNExAUExIQ
  18. EhIUFx0ZFBYcFhISGiMaHB4fISEhFBkkJyQgJh0gISD/2wBDAQUGBggHCA8ICA8gFRIVICAgICAg
  19. ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wgARCAGQAZADAREA
  20. AhEBAxEB/8QAHQAAAgIDAQEBAAAAAAAAAAAAAQIAAwQFBgcICf/EABoBAQEBAQEBAQAAAAAAAAAA
  21. AAACAQMEBQb/2gAMAwEAAhADEAAAANceJSpFhsuj7S1x2vMfD7m+98aj1eXx34n0LTV9VJOSENo6
  22. 60998++T+icmemBXOzpy51tGLTbJvPXOV9Ft81u+fjBIIQhBgiikHAIEU+3cfDBhQow3R99a8EZ5
  23. XG7D63m1nflw3yPTsIa/WMDBCZDrafQ/l3w31ZtOfXS9OC9OeszarLDOl0eM/c9HjPRK7/OZUEgB
  24. BhRQkFEECKktLf0fx8ini0NXjC1+nfR8VJ8nTuvN7NxPTz71+GlABqYhNZmNtu52McZ0xa5au53X
  25. OtT054G9IZfIOmd9E+h8+3Q1Xhh6OdCjlt3z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EAAT8CtmSyC1XRgznJ/hE//VX3wRQ7w50Mrou9siwsbMvn03TG65ylmy7X
  80. Ter7hEjLf4LlxzitSYkpZdoPqbU4EtI98WnImXZZUperm9GNJ3jp4qjmhvZB0QqUUuWXNj0dMHyk
  81. KTTeEK553qwyc+m2GVZGZSTqNDFnO8HmHJFfNGKK7Ist7wTbBs9w/kc3i1X0Vf8A7CLWkeAzuA8U
  82. 5inq6vM7TYLsrlUIvuM513pp9JPeImGsg+Wgq+jS2rpIOgxTCsDmmAbuMWMi5YkkD9He98bsF1m5
  83. NnooUv3wi0JyXlnJVl2iFGujFPZCG1US/Xn4xNKF7FdVReoYCknthWnia4rjCLocQV80EVi0ZxtD
  84. SJOWcS4kC8Vp0KgVLprFNsKhWaIuk6N9lV15B1XonkJy6rtKLFcInJ3hTrDiG8mtpATe6UOJFr2V
  85. h5ZPN6lRKOi37BKHcJprNX62owUqSooWKKSaEcnWKxWK8QRbslklrKBg341H8P0h7Jx74XzKd8Hy
  86. YhXMIGvCGUZJpLfQQExulXlN0RR9GhCfxhXPJiWmS1mnmfdD11+84FYITWCOQbU0NAuK1HTF4rON
  87. K9kLBreAxjKgjZHOXXVBNVRS5L/WMXCrf1b1mTPB5rOOYvAwt3wRbaJ8D8mmMx8RugkrixPNYpVg
  88. unwO9KWLOzaA6bjDZxBXpPdCtzro0TqD7Bh2x55rQEPD6hg4GhFCNR3q8paDGXYBQm+60byU9Lan
  89. vEPWTaEveAknltoOaoCubvSjeVtCWa6bqR8Y1nti015XdFNq/eke7fCyARtitePJSrTkvlHgTXAY
  90. w/J3MWl3uowg/CMLt7ZFGXNFCYKRiE6Iuj0cYya6J0Z0OM5MVyqD1CDxZZSLSstcu6c7mk/cYsN/
  91. hdnP2POeVls3tR/aJllctMOSzmlPxEWc5fsyVWdbQgw862gYmLQdy88twdQ5WkUikbpZbJzjT4Hl
  92. gQesiLDRft6UGxd73CExfyk0+90lLV8eTkqCz0Xus/GHZlojN0wVC8euFeTgNOXA7dIb6UKWVdkV
  93. oKDe7t6kFBRpgb0jMcHmkqJzTmqidUuz7Ql7ZZxum48Noi35VD8qi0WMQBUnaiLInfyDIhVbhiYt
  94. NtseMeSnviZtVT2ZLVx0rMDAU09fKym6RnLGTtRHBZhBuKV6FfwgGqbwxG0b26pQuSjWu8pfwjc0
  95. i/btfo2lH8IfXk5R5zoIJ+EM+RUerjS7aEpyzuvmiHsnXNHEDxVLoZ0BPxgw
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/128420
推荐阅读
相关标签
  

闽ICP备14008679号