Skip to content

Commit 98f82a5

Browse files
authored
docs: fixed errors in C++ sample code (#16378)
Fixed errors in C++ sample code.
1 parent 2cf629d commit 98f82a5

File tree

1 file changed

+2
-1
lines changed
  • docs/version3.x/deployment/cpp

1 file changed

+2
-1
lines changed

docs/version3.x/deployment/cpp/OCR.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,8 @@ int main(){
847847
// params.use_doc_orientation_classify = false; // 不使用文档方向分类模型。
848848
// params.use_doc_unwarping = false; // 不使用文本图像矫正模型。
849849
// params.use_textline_orientation = false; // 不使用文本行方向分类模型。
850-
// params.params.text_recognition_model_name = "PP-OCRv5_server_rec" // 使用 PP-OCRv5_server_rec 模型进行识别。
850+
// params.text_detection_model_name = "PP-OCRv5_server_det"; // 使用 PP-OCRv5_server_det 模型进行检测。
851+
// params.text_recognition_model_name = "PP-OCRv5_server_rec"; // 使用 PP-OCRv5_server_rec 模型进行识别。
851852
// params.vis_font_dir = "your_vis_font_dir"; // 当编译时添加 -DUSE_FREETYPE=ON 选项,必须提供相应 ttf 字体文件路径。
852853

853854
auto infer = PaddleOCR(params);

0 commit comments

Comments
 (0)