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

Merge pull request #21745 from alalek:dnn_plugin_openvino

This commit is contained in:
Alexander Alekhin
2022-10-08 22:32:25 +00:00
34 changed files with 1426 additions and 243 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);