Lines Matching full:detection
52 std::vector<Detection> convert_to_detections(const NMSConfig& config, in convert_to_detections()
57 std::vector<Detection> detections; in convert_to_detections()
64 Detection det; in convert_to_detections()
84 bool compare_detection(const yolov3::Detection& detection, in compare_detection() argument
88 return (std::fabs(detection.classes[0] - expected[0]) < tolerance && in compare_detection()
89 std::fabs(detection.box.xmin - expected[1]) < tolerance && in compare_detection()
90 std::fabs(detection.box.ymin - expected[2]) < tolerance && in compare_detection()
91 std::fabs(detection.box.xmax - expected[3]) < tolerance && in compare_detection()
92 std::fabs(detection.box.ymax - expected[4]) < tolerance && in compare_detection()
93 std::fabs(detection.confidence - expected[5]) < tolerance ); in compare_detection()
97 const std::vector<Detection>& detections) in print_detection()
99 for (const auto& detection : detections) in print_detection() local
101 for (unsigned int c = 0; c < detection.classes.size(); ++c) in print_detection()
103 if (detection.classes[c] != 0.0f) in print_detection()
105 os << c << " " << detection.classes[c] << " " << detection.box.xmin in print_detection()
106 << " " << detection.box.ymin << " " << detection.box.xmax << " " in print_detection()
107 << detection.box.ymax << std::endl; in print_detection()
113 std::vector<Detection> nms(const NMSConfig& config, in nms()
116 std::vector<Detection> detections = in nms()
124 [c](Detection& detection1, Detection& detection2) in nms()