调用OCR API识别文字为乱码,如何解决?
HelloDeveloper 发布于2020-01 浏览:1977 回复:1
0
收藏

调用OCR API识别文字为乱码,如何解决 

{"log_id": 3865589731189243336, "words_result_num": 6, "words_result": [{"location": {"width": 309, "top": 67, "height": 87, "left": 247}, "words": "缁撲笟璇佷功"}, {"location": {"width": 445, "top": 206, "height": 27, "left": 206}, "words": "鍒橀噾閿嬭€佸笀浜?019骞?鏈?4-26鏃ュ弬鍔犱笂娴峰缈艰蒋浠跺紑"}, {"location": {"width": 491, "top": 245, "height": 22, "left": 157}, "words": "鍙戞湁闄愬叕鍙哥粍缁囩殑銆婂缈煎叏闈㈤绠楃鐞嗚蒋浠禫5.0鍙婂懆杈硅蒋浠跺煿璁€?}, {"location": {"width": 294, "top": 279, "height": 23, "left": 157}, "words": "缁忓煿璁€冩牳閫氳繃,鐗瑰彂姝よ瘉涔︿互璧勮瘉鏄庛€?}, {"location": {"width": 221, "top": 350, "height": 23, "left": 156}, "words": "璇佷功缂栧彿:shfy-20190724056"}, {"location": {"width": 133, "top": 419, "height": 26, "left": 515}, "words": "2019骞?鏈?6鏃?}]}

收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2用户已被禁言回复于2020-01

用的什么语言?接口是肯定不会乱码的。接口没有特殊说明都是UTF-8。你的http接收也需要相同的编码格式接入。

 

http://180.76.146.92/OCRDemo

你可以用百度的一个OCR测试网址测试一下你的图片。

1
TOP
切换版块