mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[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:
@@ -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预测结果
|
||||
|
||||
Reference in New Issue
Block a user