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

Method end_element

dlib/data_io/image_dataset_metadata.cpp:304–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302 }
303
304 virtual void end_element (
305 const unsigned long ,
306 const std::string& name
307 )
308 {
309 ts.pop_back();
310 if (ts.size() == 0)
311 return;
312
313 if (name == "box" && ts.back() == "image")
314 {
315 temp_image.boxes.push_back(temp_box);
316 temp_box = box();
317 }
318 else if (name == "image" && ts.back() == "images")
319 {
320 meta.images.push_back(temp_image);
321 temp_image = image();
322 }
323 }
324
325 virtual void characters (
326 const std::string& data

Callers 1

parseMethod · 0.45

Calls 6

boxClass · 0.85
imageClass · 0.85
pop_backMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected