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

Function serialize

dlib/image_processing/object_detector.h:215–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214 template <typename T>
215 void serialize (
216 const object_detector<T>& item,
217 std::ostream& out
218 )
219 {
220 int version = 2;
221 serialize(version, out);
222
223 T scanner;
224 scanner.copy_configuration(item.scanner);
225 serialize(scanner, out);
226 serialize(item.boxes_overlap, out);
227 // serialize all the weight vectors
228 serialize(item.w.size(), out);
229 for (unsigned long i = 0; i < item.w.size(); ++i)
230 serialize(item.w[i].w, out);
231 }
232
233// ----------------------------------------------------------------------------------------
234

Callers

nothing calls this directly

Calls 2

copy_configurationMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected