|
Apollo 11.0
自动驾驶开放平台
|
#include <detection.h>
Public 成员函数 | |
| TrafficLightDetection () | |
| Construct a new traffic light detection object. | |
| ~TrafficLightDetection ()=default | |
| Destroy the traffic light detection object. | |
| bool | Init (const TrafficLightDetectorInitOptions &options) override |
| Initialize traffic light detector parameters. | |
| bool | Detect (camera::TrafficLightFrame *frame) override |
| Detect traffic light from image. | |
| bool | SelectOutputBoxes (const std::vector< base::RectI > &crop_box_list, const std::vector< float > &resize_scale_list_col, const std::vector< float > &resize_scale_list_row, std::vector< base::TrafficLightPtr > *lights) |
| Dump output of inference results. | |
| void | ApplyNMS (std::vector< base::TrafficLightPtr > *lights, double iou_thresh=0.6) |
| Filter overlapping boxes using NMS. | |
| bool | Inference (std::vector< base::TrafficLightPtr > *lights, camera::DataProvider *data_provider) |
| Model inference process. | |
| const std::vector< base::TrafficLightPtr > & | getDetectedBoxes () |
| Get the detected boxes object. | |
Public 成员函数 继承自 apollo::perception::trafficlight::BaseTrafficLightDetector | |
| BaseTrafficLightDetector ()=default | |
| Construct a new base traffic light detector object. | |
| virtual | ~BaseTrafficLightDetector ()=default |
| Destroy the base traffic light detector object. | |
| DISALLOW_COPY_AND_ASSIGN (BaseTrafficLightDetector) | |
在文件 detection.h 第 37 行定义.
| apollo::perception::trafficlight::TrafficLightDetection::TrafficLightDetection | ( | ) |
Construct a new traffic light detection object.
在文件 detection.cc 第 35 行定义.
|
default |
Destroy the traffic light detection object.
| void apollo::perception::trafficlight::TrafficLightDetection::ApplyNMS | ( | std::vector< base::TrafficLightPtr > * | lights, |
| double | iou_thresh = 0.6 |
||
| ) |
Filter overlapping boxes using NMS.
| lights | |
| iou_thresh |
在文件 detection.cc 第 346 行定义.
|
overridevirtual |
Detect traffic light from image.
| frame |
实现了 apollo::perception::trafficlight::BaseTrafficLightDetector.
在文件 detection.cc 第 207 行定义.
|
inline |
Get the detected boxes object.
在文件 detection.h 第 102 行定义.
| bool apollo::perception::trafficlight::TrafficLightDetection::Inference | ( | std::vector< base::TrafficLightPtr > * | lights, |
| camera::DataProvider * | data_provider | ||
| ) |
Model inference process.
| lights | |
| data_provider |
在文件 detection.cc 第 134 行定义.
|
overridevirtual |
Initialize traffic light detector parameters.
| options |
实现了 apollo::perception::trafficlight::BaseTrafficLightDetector.
在文件 detection.cc 第 38 行定义.
| bool apollo::perception::trafficlight::TrafficLightDetection::SelectOutputBoxes | ( | const std::vector< base::RectI > & | crop_box_list, |
| const std::vector< float > & | resize_scale_list_col, | ||
| const std::vector< float > & | resize_scale_list_row, | ||
| std::vector< base::TrafficLightPtr > * | lights | ||
| ) |
Dump output of inference results.
| crop_box_list | |
| resize_scale_list_col | |
| resize_scale_list_row | |
| lights |
在文件 detection.cc 第 264 行定义.