97 return detected_bboxes_;
106 bool GetCandidateHeads(
108 std::vector<base::TrafficLightPtr>* lights,
109 std::vector<base::TrafficLightPtr>& lights_ref);
112 std::map<std::string, std::vector<int>>* shape_map,
113 const google::protobuf::RepeatedPtrField<common::ModelBlob>& model_blobs);
114 void ApplyNMS(std::vector<base::TrafficLightPtr>* lights);
115 void ApplyOverlapNMS(std::vector<base::TrafficLightPtr>* lights);
116 void NMS(std::vector<base::TrafficLightPtr>* lights,
const std::string camera_name);
119 std::shared_ptr<inference::Inference> detect_net_ =
nullptr;
120 std::map<std::string, std::vector<base::TrafficLightPtr>> detected_heads_;
121 std::vector<std::string> input_names_;
122 std::vector<std::string> output_names_;
123 float cls_th_ = 0.01;
124 int resize_height_ = 640;
125 int resize_width_ = 640;
127 int tl_shape_classes_ = 3;
128 int min_head_area_ = 10;
129 int max_batch_roi_ = 3000;
134 std::vector<base::TrafficLightPtr> detected_bboxes_;
135 std::vector<std::string> bbox_project_camera_;
136 std::vector<std::string> detected_light_ids_;
137 int max_batch_size_ = 4;
138 int param_blob_length_ = 6;
139 std::vector<float> mean_ = {0, 0, 0};
140 std::vector<PadResizeParam> pad_resize_params_;
145 std::shared_ptr<IGetBox> crop_;
146 cudaStream_t stream_ = 0;