MCPcopy Create free account
hub / github.com/biometrics/openbr / load

Function load

openbr/plugins/classification/dlib.cpp:173–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 void load(QDataStream &stream)
174 {
175 // Copy local file contents from stream
176 QByteArray data;
177 stream >> data;
178
179 // Create local file
180 QTemporaryFile tempFile(QDir::tempPath()+"/model");
181 tempFile.open();
182 tempFile.write(data);
183 tempFile.close();
184
185 // Load MLP from local file
186 dlib::deserialize(qPrintable(tempFile.fileName())) >> detector;
187 }
188};
189
190BR_REGISTER(Transform, DObjectDetectorTransform)

Callers 7

lda.cppFile · 0.70
loadMethod · 0.70
boostedforest.cppFile · 0.70
loadMethod · 0.50
kmeans.cppFile · 0.50
knn.cppFile · 0.50

Calls 4

deserializeFunction · 0.85
openMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected