mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-22 00:02:10 +08:00
Add PPOCR example for ascend deploy
This commit is contained in:
@@ -67,11 +67,20 @@ class FASTDEPLOY_DECL Recognizer : public FastDeployModel {
|
||||
size_t start_index, size_t end_index,
|
||||
const std::vector<int>& indices);
|
||||
|
||||
RecognizerPreprocessor preprocessor_;
|
||||
RecognizerPostprocessor postprocessor_;
|
||||
/// Get preprocessor reference of DBDetectorPreprocessor
|
||||
virtual RecognizerPreprocessor& GetPreprocessor() {
|
||||
return preprocessor_;
|
||||
}
|
||||
|
||||
/// Get postprocessor reference of DBDetectorPostprocessor
|
||||
virtual RecognizerPostprocessor& GetPostprocessor() {
|
||||
return postprocessor_;
|
||||
}
|
||||
|
||||
private:
|
||||
bool Initialize();
|
||||
RecognizerPreprocessor preprocessor_;
|
||||
RecognizerPostprocessor postprocessor_;
|
||||
};
|
||||
|
||||
} // namespace ocr
|
||||
|
Reference in New Issue
Block a user