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

Method end_element

tools/imglab/src/convert_pascal_xml.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 virtual void end_element (
70 const unsigned long ,
71 const std::string& name
72 )
73 {
74 ts.pop_back();
75 if (ts.size() == 0)
76 return;
77
78 if (name == "object" && ts.back() == "annotation")
79 {
80 temp_image.boxes.push_back(temp_box);
81 temp_box = box();
82 }
83 }
84
85 virtual void characters (
86 const std::string& data

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected