inference_engine.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. //
  5. // Copyright (C) 2018-2019, Intel Corporation, all rights reserved.
  6. // Third party copyrights are property of their respective owners.
  7. #ifndef OPENCV_DNN_UTILS_INF_ENGINE_HPP
  8. #define OPENCV_DNN_UTILS_INF_ENGINE_HPP
  9. #include "../dnn.hpp"
  10. namespace cv { namespace dnn {
  11. CV__DNN_INLINE_NS_BEGIN
  12. /** @brief Release a Myriad device (binded by OpenCV).
  13. *
  14. * Single Myriad device cannot be shared across multiple processes which uses
  15. * Inference Engine's Myriad plugin.
  16. */
  17. CV_EXPORTS_W void resetMyriadDevice();
  18. /* Values for 'OPENCV_DNN_IE_VPU_TYPE' parameter */
  19. #define CV_DNN_INFERENCE_ENGINE_VPU_TYPE_UNSPECIFIED ""
  20. /// Intel(R) Movidius(TM) Neural Compute Stick, NCS (USB 03e7:2150), Myriad2 (https://software.intel.com/en-us/movidius-ncs)
  21. #define CV_DNN_INFERENCE_ENGINE_VPU_TYPE_MYRIAD_2 "Myriad2"
  22. /// Intel(R) Neural Compute Stick 2, NCS2 (USB 03e7:2485), MyriadX (https://software.intel.com/ru-ru/neural-compute-stick)
  23. #define CV_DNN_INFERENCE_ENGINE_VPU_TYPE_MYRIAD_X "MyriadX"
  24. /** @brief Returns Inference Engine VPU type.
  25. *
  26. * See values of `CV_DNN_INFERENCE_ENGINE_VPU_TYPE_*` macros.
  27. */
  28. CV_EXPORTS_W cv::String getInferenceEngineVPUType();
  29. CV__DNN_INLINE_NS_END
  30. }} // namespace
  31. #endif // OPENCV_DNN_UTILS_INF_ENGINE_HPP