mirror of
https://github.com/opencv/opencv.git
synced 2026-09-29 04:09:43 +03:00
Make external cv::dnn::Importer usage is deprecated
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user