Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::perception::camera::TrafficLightDetection Class Reference

#include <detection.h>

Inheritance diagram for apollo::perception::camera::TrafficLightDetection:
Inheritance graph
Collaboration diagram for apollo::perception::camera::TrafficLightDetection:
Collaboration graph

Public Member Functions

 TrafficLightDetection ()
 
 ~TrafficLightDetection ()
 
bool Init (const TrafficLightDetectorInitOptions &options) override
 
bool Detect (const TrafficLightDetectorOptions &options, CameraFrame *frame) override
 
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)
 
void ApplyNMS (std::vector< base::TrafficLightPtr > *lights, double iou_thresh=0.6)
 
bool Inference (std::vector< base::TrafficLightPtr > *lights, DataProvider *data_provider)
 
std::string Name () const override
 
const std::vector< base::TrafficLightPtr > & getDetectedBoxes ()
 
 TrafficLightDetection (const TrafficLightDetection &)=delete
 
TrafficLightDetectionoperator= (const TrafficLightDetection &)=delete
 
- Public Member Functions inherited from apollo::perception::camera::BaseTrafficLightDetector
 BaseTrafficLightDetector ()=default
 
virtual ~BaseTrafficLightDetector ()=default
 
 BaseTrafficLightDetector (const BaseTrafficLightDetector &)=delete
 
BaseTrafficLightDetectoroperator= (const BaseTrafficLightDetector &)=delete
 

Constructor & Destructor Documentation

◆ TrafficLightDetection() [1/2]

apollo::perception::camera::TrafficLightDetection::TrafficLightDetection ( )
inline

◆ ~TrafficLightDetection()

apollo::perception::camera::TrafficLightDetection::~TrafficLightDetection ( )
inline

◆ TrafficLightDetection() [2/2]

apollo::perception::camera::TrafficLightDetection::TrafficLightDetection ( const TrafficLightDetection )
delete

Member Function Documentation

◆ ApplyNMS()

void apollo::perception::camera::TrafficLightDetection::ApplyNMS ( std::vector< base::TrafficLightPtr > *  lights,
double  iou_thresh = 0.6 
)

◆ Detect()

bool apollo::perception::camera::TrafficLightDetection::Detect ( const TrafficLightDetectorOptions options,
CameraFrame frame 
)
overridevirtual

◆ getDetectedBoxes()

const std::vector<base::TrafficLightPtr>& apollo::perception::camera::TrafficLightDetection::getDetectedBoxes ( )
inline

◆ Inference()

bool apollo::perception::camera::TrafficLightDetection::Inference ( std::vector< base::TrafficLightPtr > *  lights,
DataProvider data_provider 
)

◆ Init()

bool apollo::perception::camera::TrafficLightDetection::Init ( const TrafficLightDetectorInitOptions options)
overridevirtual

◆ Name()

std::string apollo::perception::camera::TrafficLightDetection::Name ( ) const
overridevirtual

◆ operator=()

TrafficLightDetection& apollo::perception::camera::TrafficLightDetection::operator= ( const TrafficLightDetection )
delete

◆ SelectOutputBoxes()

bool apollo::perception::camera::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 
)

The documentation for this class was generated from the following file: