|

楼主 |
发表于 2025-2-9 14:17:48
|
显示全部楼层
贵州省贵阳市
.版本 2
filebyte = 读入文件 (“D:\PaddleOCR\PaddleOCR-2.9.1\deploy\cpp_infer\buildCPU\Release\imgs\2\03.png”)
httpObj.创建 (“WinHttp.WinHttpRequest.5.1”, )
httpObj.方法 (“SetTimeouts”, 3000, 3000, 3000, 3000)
httpObj.方法 (“Open”, “POST”, “http://127.0.0.1:18081/ocr0”, 假)
' httpObj.写属性 (“Option”, 6, 0)
' httpObj.写属性 (“Option”, 4, 13056)
httpObj.方法 (“SetRequestHeader”, “content-type”, “application/octet-stream”)
httpObj.方法 (“SetRequestHeader”, “content-length”, 取字节集长度 (filebyte))
httpObj.方法 (“Send”, filebyte)
resTxt = httpObj.读文本属性 (“ResponseText”, )
responseCode = httpObj.读数值属性 (“Status”, )
httpObj.清除 ()
谁能帮我完善这个易语言的HTTP客户Duan代码啊,搞不懂了。 |
|