From 7c7c2848cf7fbe4d95c09a0df799ca49f8e8eba7 Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Thu, 26 Jan 2017 18:56:26 +0300 Subject: [PATCH] Fix python bindings for dnn when Torch is disabled --- modules/dnn/src/torch/torch_importer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/dnn/src/torch/torch_importer.cpp b/modules/dnn/src/torch/torch_importer.cpp index ba2da566f..9ff416c48 100644 --- a/modules/dnn/src/torch/torch_importer.cpp +++ b/modules/dnn/src/torch/torch_importer.cpp @@ -972,6 +972,12 @@ Ptr createTorchImporter(const String &filename, bool isBinary) return Ptr(); } +Blob readTorchBlob(const String &filename, bool isBinary) +{ + CV_Error(Error::StsNotImplemented, "Torch importer is disabled in current build"); + return Blob(); +} + #endif //defined(ENABLE_TORCH_IMPORTER) && ENABLE_TORCH_IMPORTER } }