diff --git a/LunaTranslator/LunaTranslator/ocrengines/xunfei.py b/LunaTranslator/LunaTranslator/ocrengines/xunfei.py index 6f748c48..00ac4690 100644 --- a/LunaTranslator/LunaTranslator/ocrengines/xunfei.py +++ b/LunaTranslator/LunaTranslator/ocrengines/xunfei.py @@ -119,7 +119,7 @@ class OCR(baseocr): } # print("request_url:", request_url) - body = printed_word_recognition.get_body(file_path=imagebinary) + body = printed_word_recognition.get_body(imagebinary) response = self.proxysession.post( request_url, data=json.dumps(body), headers=headers )