28 std::string config_file =
32 AINFO <<
"load proto param failed, root dir: " << config_file;
49 std::vector<base::TrafficLightPtr> candidate(1);
52 if (light->region.is_detected) {
54 if (light->region.detect_class_id ==
56 AINFO <<
"Recognize Use Quadrate Model!";
57 classify_quadrate_->Perform(frame, &candidate);
58 }
else if (light->region.detect_class_id ==
60 AINFO <<
"Recognize Use Vertical Model!";
61 classify_vertical_->Perform(frame, &candidate);
62 }
else if (light->region.detect_class_id ==
64 AINFO <<
"Recognize Use Horizonal Model!";
65 classify_horizontal_->Perform(frame, &candidate);
71 light->status.confidence = 0;
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...