fix(rapidocr): use correct parameter name for rec_keys_path

This commit is contained in:
0xFrama
2025-12-10 00:32:43 +01:00
parent a97d950d74
commit 1c9cd2a3ba

View File

@@ -196,7 +196,7 @@ class RapidOcrModel(BaseOcrModel):
# Recognition model settings # Recognition model settings
"Rec.model_path": rec_model_path, "Rec.model_path": rec_model_path,
"Rec.font_path": self.options.rec_font_path, "Rec.font_path": self.options.rec_font_path,
"Rec.keys_path": rec_keys_path, "Rec.rec_keys_path": rec_keys_path,
"Rec.use_cuda": use_cuda, "Rec.use_cuda": use_cuda,
"Rec.use_dml": use_dml, "Rec.use_dml": use_dml,
"Rec.intra_op_num_threads": intra_op_num_threads, "Rec.intra_op_num_threads": intra_op_num_threads,