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

Function deserialize

dlib/image_processing/full_object_detection.h:191–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 inline void deserialize(mmod_rect& item, std::istream& in)
192 {
193 int version = 0;
194 deserialize(version, in);
195 if (version != 1 && version != 2)
196 throw serialization_error("Unexpected version found while deserializing dlib::mmod_rect");
197 deserialize(item.rect, in);
198 deserialize(item.detection_confidence, in);
199 deserialize(item.ignore, in);
200 if (version == 2)
201 deserialize(item.label, in);
202 else
203 item.label = "";
204 }
205
206// ----------------------------------------------------------------------------------------
207

Callers 1

deserializeMethod · 0.70

Calls 1

serialization_errorClass · 0.85

Tested by

no test coverage detected