CV_OUT std::vector<int>& indices,
const float eta = 1.f, const int top_k = 0);
+ /** @brief Release a Myriad device is binded by OpenCV.
+ *
+ * Single Myriad device cannot be shared across multiple processes which uses
+ * Inference Engine's Myriad plugin.
+ */
+ CV_EXPORTS_W void resetMyriadDevice();
+
//! @}
-CV__DNN_EXPERIMENTAL_NS_END
+CV__DNN_INLINE_NS_END
}
}
#endif // HAVE_INF_ENGINE
}
-CV__DNN_EXPERIMENTAL_NS_BEGIN
++CV__DNN_INLINE_NS_BEGIN
+
+ void resetMyriadDevice()
+ {
+ #ifdef HAVE_INF_ENGINE
+ sharedPlugins.erase(InferenceEngine::TargetDevice::eMYRIAD);
+ #endif // HAVE_INF_ENGINE
+ }
+
-CV__DNN_EXPERIMENTAL_NS_END
++CV__DNN_INLINE_NS_END
}} // namespace dnn, namespace cv