https://tool.css-js.com/base64.html
I use the online transcoding above and manually enter it into the QM code to successfully identify it.
But using QM's base64 function will prompt the image format error.
Macro OK
note:
image need Base64 format, delete the prefix data:image/png;base64,
The following parameters can only identify Chinese and English.
language_type:CHN_ENG
I used online transcoding and tried several pictures, all of which can be successfully identified and very accurate.
I use the online transcoding above and manually enter it into the QM code to successfully identify it.
But using QM's base64 function will prompt the image format error.
Macro OK
typelib WinHttp {662901FC-6951-4854-9EB2-D9A2570F2B2E} 5.1
WinHttp.WinHttpRequest r._create
r.Open("POST" F"https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic")
r.setRequestHeader("content-type", "application/x-www-form-urlencoded")
str body=
F
;access_token=24.b305c9822131e65eda05e29c157dd719.2592000.1559103982.282335-16139329&image=iVBORw0KGgoAAAANSUhEUgAAA18AAABeCAYAAADc8q5RAAARPUlEQVR4nO3diZXjKhaAYWqSsTuDl4VVGXQWdgiuLDqDcmXRGViOxqMNrSwXhJCr%2Bv%2FOqTNv2jYChICrBb09KwoAAAAAsKn%2F7Z0BAAAAAPgXEHwBAAAAQAYEXwAAAACQAcEXAAAAAGRA8AUAAAAAGRB8AQAAAEAGBF8AAAAAkAHBFwAAAABkQPAFAAAAABkQfAEAAABABgRfAAAAAJABwRcAAAAAZEDwBQAAAAAZEHwBAAAAQAYEXwAAAACQAcEXAAAAAGRA8AUAAAAAGRB8AQAAAEAGBF8AAAAAkAHBFwAAAABkQPAFAAAAABkQfAEAAABABgRfAAAAAJABwRcAAAAAZEDwBQAAAAAZEHwBAAAAQAYEXwAAAACQAcEXAAAAAGRA8AUAAAAAGRB8AQAAAEAGBF8AAAAAkAHBFwAAAABkQPAFAAAAABkQfAEAAABABgRfAAAAAJABwRcAAAAAZEDwBQAAAAAZEHwBAAAAQAYEXwAAAACQAcEXAAAAAGRA8AUAAAAAGRB8AQAAAEAGBF8AAAAAkAHBFwAAAABkQPAFAAAAABkQfAEAAABABgRfAAAAAJABwRcAAAAAZEDwBQAAAAAZEHwBAA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rcv4%2FT1dWrteY177VEVi65EZLmyZqKAAA4AeoJjZvVZBXT3IyzXH2s1VZv1u6ABYSv%2BerezD58aGKfOuQAwCAl9at5Hc4K8GiwN%2FcVmX9bukCMEkefLVLrne38e3yTigAAPBSdnx%2FVHZblfW7pQvAKPFth53u8vWgvr843T29AAAAAPDdbBN8AQAAAAAmEt92CAAAAAAwIfgCAAAAgAwIvgAAAAAgA4IvAAAAAMiA4AsAAAAAMiD4AgAAAIAMCL4AAAAAIAOCLwAAAADIgOALAAAAADIg%2BAIAAACADAi%2BAAAAACADgi8AAAAAyIDgCwAAAAAyIPgCAAAAgAwIvgAAAAAgA4IvAAAAAMiA4AsAAAAAMiD4AgAAAIAMCL4AAAAAIAOCLwAAAADIgOALAAAAADL4P%2BNTHNIY7Ho%2FAAAAAElFTkSuQmCC&language_type=CHN_ENG&probability=true&detect_direction=true
r.Send(body)
ARRAY(byte) a=r.ResponseBody
str s.fromn(&a[0] a.len)
IXml x=JsonToXml(s 0)
IXmlNode ro=x.Path("root/words_result/item/words")
str v1=ro.Value
mes v1
note:
image need Base64 format, delete the prefix data:image/png;base64,
The following parameters can only identify Chinese and English.
language_type:CHN_ENG
I used online transcoding and tried several pictures, all of which can be successfully identified and very accurate.