OCR识别-Base64
图片转文字 接口只支持Base64编码后图片

接口地址: https://api.xdau.cn/api/xd-ocr-base64

返回格式: JSON

请求方式: GET/POST

请求示例: https://api.xdau.cn/api/xd-ocr-base64?base64=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAisAAADsCAYAAAC13OYNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABC/SURBVHhe7dxNiiPZegbg3I4X09Cr0CaqM9XeQA2KApHQNbnzrjImNTBV+E5uTowR2Bga6hZ4lnmNjaEX0BzHiR8pfo5CUkoReax6HniplBRxIjIn8fYXob75+z//XRARERHJNcqKiIiIZB1lRURERLKOsiIiIiJZR1kRERGRrKOsiIiISNa5CQAAGbv5/fffg4iIiEiuUVZEREQk6ygrIiIiknWUFREREck6yoqIiIhknbPKyuP7RVgsdrl9/y7ctl5v89PH8HWw/9fw8afb8PGv/fcT+cu7sHj/2H29d83E8ftJ7nteyr9F+xx/fwzvimPd/vp1995fP6b/PqlMcI7z5zF8+PFT+HbwvSbfwqcffw4/F58/fngbfr4pfu7lw5fUfhfMl9tw8+Mvx//tf/sl/HBzGz6nPhMRkYvkApOV4qLcXFjjxXhwkd19/vXX2/SFOZXWOo/vh6WmXGtwrFhW3oXHwc+xOLR+Huz3wsTSlDr3ZJrjdxN/j06hmSpfPvQu/G/Dp9+az4sCkSgCj2+K7d40Bazapr3G2w/fOtsP0y0mj28+hMfiPAb7/fYpvK3XbM7hW1FWUuczeVkp8vXDD+HmzefEZ1/DLz/ehJubI3JK4RERkdFMVlZ2BSNdDuIk4t1fuu+lU+9/qBiUU43Xm6w0ieVj/PeKxSlxTu10JjQXSllWirLQed0UluPLym6b6nW6sNQTkrqAlCWkKCpx31hC2u+3z6ldRmYpK3GKkioae3LbPvZgAhOLjAmLiMgUeZ2yMpjAxAv4/snDORfvw+Xh3JxaPvb/rmXi32b09/0cbuPF89T/cu+XlbpQVBf/l5SVunhsP0+l2KecrDT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LasdKYTVVHYloxTy8rYWn1HlY1+VsWqNZMVAMjGjGWlqCEPy10pOKus9NY6QlyjOVa5b6rovKjkKC0AMKXrLiutCUmyrGxW6dIS328frzzX9rHiOSopADCH+cpKXU6WD/U7h6YYY2Wlv1ZKLBytqUeyrETldr3SU77XO59BlBUAmMOsD9h2ykVdOI6erIyt1RfX7k1iRvW3N1kBgGzMehuo49Syckr5KNUP4R5IsvSYrABANq64rDTSX1c+ac3BZAUAmMt3UFYq5RqLZVjGtYvj7ruNVD24W21zTEZvRwEAZ/s+ykp9rE7ROGU9kxUAeDWTlZVX1X/mJFVMBgWmKCNHPasyzLBwAQCXcp1lBQC4GsoKAJA1ZQUAyJqyAgBkTVkBALKmrAAAWVNWAICsKSsAQNaUFQAga8oKAJA1ZQUAyJqyAgBkTVkBALKmrAAAWTuprIiIiIjMHZMVACBjIfwfu4r+8MupuKkAAAAASUVORK5CYII=

所有接口需携带秘钥,以免更新导致请求失败!

请求参数说明:

名称 必填 类型 说明

返回参数说明:

名称 类型 说明

返回示例:

{"code":"200","text":"现在位置:首页>PHP 教程>文章\r\nPHP 教程\r\nPHP 简介\r\nPHP 安装\r\nPHP 语法\r\nPHP 变量\r\n"}

错误码格式说明:

名称 类型 说明

代码示例: