| 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 |