-
- function 百度识别(Url,左,上,右,下)
- snapShot(getSdPath().."/Pictures/test.png",左,上,右,下)
- ImgBase64 = getFileBase64(getSdPath().."/Pictures/test.png")
- local postdata={
- images = {ImgBase64}
- }
- postdata=jsonLib.encode(postdata)
- rdata=httpPost(Url,postdata,1000,{"Content-type:application/json"})
- return(rdata)
- end
- Url = "http://x.x.x.x:8866/predict/chinese_ocr_db_crnn_server"
- 百度识别(Url,520,156,553,274)
复制代码 |