MCPcopy Create free account
hub / github.com/davisking/dlib / contains_any_boxes

Function contains_any_boxes

tools/python/src/simple_object_detector.h:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 inline bool contains_any_boxes (
106 const std::vector<std::vector<rectangle> >& boxes
107 )
108 {
109 for (unsigned long i = 0; i < boxes.size(); ++i)
110 {
111 if (boxes[i].size() != 0)
112 return true;
113 }
114 return false;
115 }
116
117 inline void throw_invalid_box_error_message (
118 const std::string& dataset_filename,

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected