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

Method loadModel

openbr/core/opencvutils.cpp:302–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void OpenCVUtils::loadModel(CvStatModel &model, QDataStream &stream)
303{
304 // Copy local file contents from stream
305 QByteArray data;
306 stream >> data;
307
308 // Create local file
309 QTemporaryFile tempFile(QDir::tempPath()+"/model");
310 tempFile.open();
311 tempFile.write(data);
312 tempFile.close();
313
314 // Load MLP from local file
315 model.load(qPrintable(tempFile.fileName()));
316}
317
318void OpenCVUtils::loadModel(cv::Algorithm &model, QDataStream &stream)
319{

Callers

nothing calls this directly

Calls 5

openMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45
loadMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected