Make external cv::dnn::Importer usage is deprecated

This commit is contained in:
Dmitry Kurtaev committed 2017-09-18 08:52:36 +03:00
1 parent 37ba1d6f2d
commit bd8e6b7e14
17 files changed
+86 -150

No files matched your search

@@ -51,12 +51,7 @@ public class DnnTensorFlowTest extends OpenCVTestCase {
sourceImageFile = f.toString();
if(!f.exists()) throw new Exception("Test image is missing: " + sourceImageFile);
net = new Net();
if(net.empty()) {
Importer importer = Dnn.createTensorflowImporter(modelFileName);
importer.populateNet(net);
}
net = Dnn.readNetFromTensorflow(modelFileName);
}
public void testGetLayerTypes() {