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

Function deserialize

tools/python/src/serialize_object_detector.h:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 }
17
18 inline void deserialize (dlib::simple_object_detector_py& item, std::istream& in)
19 {
20 int version = 0;
21 deserialize(item.detector, in);
22 deserialize(version, in);
23 if (version != 1)
24 throw dlib::serialization_error("Unexpected version found while deserializing a simple_object_detector.");
25 deserialize(item.upsampling_amount, in);
26 }
27
28 inline void save_simple_object_detector_py(const simple_object_detector_py& detector, const std::string& detector_output_filename)
29 {

Callers

nothing calls this directly

Calls 1

serialization_errorClass · 0.85

Tested by

no test coverage detected