调用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
个赞
请登录后评论
TOP
切换版块
用的什么语言?接口是肯定不会乱码的。接口没有特殊说明都是UTF-8。你的http接收也需要相同的编码格式接入。
http://180.76.146.92/OCRDemo
你可以用百度的一个OCR测试网址测试一下你的图片。