1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

removed classic engine

This commit is contained in:
Abhishek Gola
2026-06-19 13:14:32 +05:30
parent 49b8f7c03f
commit 46331314a5
25 changed files with 52 additions and 140 deletions
+1 -4
View File
@@ -135,10 +135,7 @@ int main(int argc, char *argv[])
Ptr<CCheckerDetector> detector;
#ifdef HAVE_OPENCV_DNN
if (model_path != "" && pbtxt_path != ""){
EngineType engine = ENGINE_AUTO;
if (backend != "default" || target != "cpu"){
engine = ENGINE_CLASSIC;
}
EngineType engine = ENGINE_NEW;
Net net = readNetFromTensorflow(model_path, pbtxt_path, engine);
net.setPreferableBackend(getBackendID(backend));
net.setPreferableTarget(getTargetID(target));