Open yida-lxw opened 5 months ago
The startup parameter --image_path
does not support non-ascii characters. However, you can start the program first and then pass the path containing Chinese characters via json.
Example:
--image_path
.OCR init completed.
{"image_path":"D:/测试图片.png"}
{"image_path":"D:/\u6d4b\u8bd5\u56fe\u7247.png"}
You can refer to PaddleOCR-json-java-api, which can be slightly modified for use with RapidOCR-json.
The idea console print as below: convert to ASCII:C:/Users/Administrator/Desktop/\u5355\u5c42/OCR\u6d4b\u8bd5.png text-->RapidOCR-json v1.1.0 OCR init completed. {"code":200,"data":"Image path dose not exist. Path: \"C:/Users/Administrator/Desktop/\u5355\u5c42/OCR\u6d4b\u8bd5.png\""}
So, How to solve the situation where the image path contains Chinese characters? Any help will be appreciated.