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

Function save_simple_object_detector

tools/python/src/serialize_object_detector.h:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37// ----------------------------------------------------------------------------------------
38
39 inline void save_simple_object_detector(const simple_object_detector& detector, const std::string& detector_output_filename)
40 {
41 std::ofstream fout(detector_output_filename.c_str(), std::ios::binary);
42 serialize(detector, fout);
43 // Don't need to save version of upsampling amount because want to write out the
44 // object detector just like the C++ code that serializes an object_detector would.
45 // We also don't know the upsampling amount in this case anyway.
46 }
47}
48
49#endif // DLIB_SERIALIZE_OBJECT_DETECTOR_H__

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.70

Tested by

no test coverage detected