30 #include "modules/perception/camera/lib/obstacle/detector/smoke/proto/smoke.pb.h" 38 namespace perception {
45 if (stream_ !=
nullptr) {
46 cudaStreamDestroy(stream_);
55 std::string
Name()
const override {
return "SmokeObstacleDetector"; }
59 void LoadParam(
const smoke::SmokeParam &smoke_param);
60 bool InitNet(
const smoke::SmokeParam &smoke_param,
61 const std::string &model_root);
66 std::shared_ptr<BaseFeatureExtractor> feature_extractor_;
67 smoke::SmokeParam smoke_param_;
68 std::shared_ptr<base::BaseCameraModel> base_camera_model_ =
nullptr;
69 std::shared_ptr<inference::Inference> inference_;
70 std::vector<base::ObjectSubType> types_;
71 std::vector<float> expands_;
72 std::vector<float> anchors_;
75 cudaStream_t stream_ =
nullptr;
84 float confidence_threshold_ = 0.f;
85 float light_vis_conf_threshold_ = 0.f;
86 float light_swt_conf_threshold_ = 0.f;
90 std::shared_ptr<base::Image8U> image_ =
nullptr;
91 std::shared_ptr<base::Blob<bool>> overlapped_ =
nullptr;
92 std::shared_ptr<base::Blob<int>> idx_sm_ =
nullptr;
94 bool with_box3d_ =
false;
95 bool with_frbox_ =
false;
96 bool with_lights_ =
false;
97 bool with_ratios_ =
false;
98 bool with_area_id_ =
false;
99 float border_ratio_ = 0.f;
virtual ~SmokeObstacleDetector()
Definition: smoke_obstacle_detector.h:44
Definition: camera_frame.h:33
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: base_obstacle_detector.h:37
std::string Name() const override
Definition: smoke_obstacle_detector.h:55
Definition: base_obstacle_detector.h:39
void LoadInputShape(const smoke::ModelParam &model_param)
bool Detect(const ObstacleDetectorOptions &options, CameraFrame *frame) override
void InitSmokeBlob(const smoke::NetworkParam &net_param)
void LoadParam(const smoke::SmokeParam &smoke_param)
Definition: region_output.h:64
bool InitFeatureExtractor(const std::string &root_dir)
SmokeObstacleDetector()
Definition: smoke_obstacle_detector.h:43
Definition: base_obstacle_detector.h:30
bool Init(const ObstacleDetectorInitOptions &options=ObstacleDetectorInitOptions()) override
Definition: region_output.h:75
Definition: region_output.h:72
bool InitNet(const smoke::SmokeParam &smoke_param, const std::string &model_root)
Definition: smoke_obstacle_detector.h:41