// Copyright (c) OpenMMLab. All rights reserved. #ifndef MMDEPLOY_CSRC_CODEBASE_MMOCR_PANET_H_ #define MMDEPLOY_CSRC_CODEBASE_MMOCR_PANET_H_ #include "codebase/mmocr/mmocr.h" #include "core/device.h" #include "core/registry.h" #include "core/tensor.h" #include "opencv2/core.hpp" namespace mmdeploy { namespace mmocr { class PaHeadImpl { public: virtual ~PaHeadImpl() = default; virtual void Init(const Stream& stream) { stream_ = stream; } virtual Result Process(Tensor text_pred, // Tensor kernel_pred, // Tensor embed_pred, // float min_text_confidence, // float min_kernel_confidence, // cv::Mat_& text_score, // cv::Mat_& text, // cv::Mat_& kernel, // cv::Mat_& label, // cv::Mat_& embed, // int& region_num) = 0; protected: Stream stream_; }; } // namespace mmocr MMDEPLOY_DECLARE_REGISTRY(mmocr::PaHeadImpl); } // namespace mmdeploy #endif // MMDEPLOY_CSRC_CODEBASE_MMOCR_PANET_H_