123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef MODULES_INFERENCE2_INCLUDE_VIDEO_POSTPROC_HPP_
- #define MODULES_INFERENCE2_INCLUDE_VIDEO_POSTPROC_HPP_
- #include <memory>
- #include <string>
- #include <vector>
- #include "cnis/infer_server.h"
- #include "cnis/processor.h"
- #include "cnstream_frame.hpp"
- #include "cnstream_frame_va.hpp"
- #include "reflex_object.h"
- namespace cnstream {
- class VideoPostproc : virtual public ReflexObjectEx<VideoPostproc> {
- public:
-
- virtual ~VideoPostproc() = 0;
-
- static VideoPostproc* Create(const std::string& proc_name);
-
- void SetThreshold(const float threshold);
-
- virtual bool Execute(infer_server::InferData* output_data, const infer_server::ModelIO& model_output,
- const infer_server::ModelInfo& model_info) = 0;
- protected:
- float threshold_ = 0;
- };
- }
- #endif
|