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

dnn: plugin support for OpenVINO

This commit is contained in:
Alexander Alekhin
2022-03-18 06:19:30 +00:00
parent ca7f964104
commit 43b2bb2c25
27 changed files with 1035 additions and 132 deletions
+6
View File
@@ -42,7 +42,9 @@
#include "precomp.hpp"
#include <opencv2/dnn/layer.details.hpp>
#if !defined(BUILD_PLUGIN)
#include <google/protobuf/stubs/common.h>
#endif
namespace cv {
namespace dnn {
@@ -58,6 +60,7 @@ Mutex& getInitializationMutex()
// force initialization (single-threaded environment)
Mutex* __initialization_mutex_initializer = &getInitializationMutex();
#if !defined(BUILD_PLUGIN)
namespace {
using namespace google::protobuf;
class ProtobufShutdown {
@@ -71,12 +74,15 @@ public:
}
};
} // namespace
#endif
void initializeLayerFactory()
{
CV_TRACE_FUNCTION();
#if !defined(BUILD_PLUGIN)
static ProtobufShutdown protobufShutdown; CV_UNUSED(protobufShutdown);
#endif
CV_DNN_REGISTER_LAYER_CLASS(Slice, SliceLayer);
CV_DNN_REGISTER_LAYER_CLASS(Split, SplitLayer);