| 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 | |
| 190 | BR_REGISTER(Transform, DObjectDetectorTransform) |
no test coverage detected