Add PPOCR example for ascend deploy

This commit is contained in:
yunyaoXYY
2022-12-28 12:56:53 +00:00
parent 471f0f62c8
commit b6903b0aa4
21 changed files with 235 additions and 74 deletions

View File

@@ -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