[Other] Add const modifier to some OCR interface parameters (#836)

* [Other] Add const modifier to some OCR interface parameters

* [Other] Add a Predict interface to PPOCR with const parameters

For interface compatibility, I chose to add rather than modify
This commit is contained in:
MistEO
2022-12-09 09:20:55 +08:00
committed by GitHub
parent d19510fe77
commit 22325d23ed
7 changed files with 12 additions and 6 deletions

View File

@@ -82,6 +82,7 @@ PPOCRv2 的初始化,由检测,识别模型串联构成(无分类器)
> ```
> bool Predict(cv::Mat* img, fastdeploy::vision::OCRResult* result);
> bool Predict(const cv::Mat& img, fastdeploy::vision::OCRResult* result);
> ```
>
> 模型预测接口输入一张图片返回OCR预测结果