Dim hc As New HttpClient("http://tysbgpu.market.alicloudapi.com/api/predict/ocr_general")
hc.Headers.Add("Authorization","APPCODE " & "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
hc.C
Dim ms As New System.IO.MemoryStream
getImage(filepath).Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg)
Dim BPicture As Byte() = New Byte(ms.Length - 1) {}
BPicture = ms.GetBuffer()
Dim image As String=Convert.ToBase64String(BPicture)
Dim jo1 As New JObject
jo1("image") = UrlEncode(image)
jo1("configure") = New JObject
jo1("configure")("min_size") = 16
jo1("configure")("output_prob") = True
hc.Content = jo1.ToString()
Dim jo As New JObject
jo.Parse(hc.GetData)
调用不成功,请指教以上代码是否有问题,谢谢!!
此主题相关图片如下:qq图片20171020114300.png