<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Build OpenCV and OpenVINO for Windows 10 with VS 2022

      Build OpenCV and OpenVINO for Windows 10 with VS 2022

      In this guide, I will build the two powerful open-source libraries, i.e., OpenCV and OpenVINO for running my deeplearning model on windows 10.
      Interestingly, both libraries are closely associated with Intel ???.

      OpenCV ??

      First of all, we must download the related code projects (opencv and opencv_contrib containing some plugins for opencv) into our computer from this links:

      Make sure the selected versions of the two libararies are the same.
      Here, I choice the latest version 4.7.0.
      Because we will recompiling them by ourselves, we can just download the source code zip files.
      Put the two unpacked libraries into the same parent folder opencv_dir as follows:

      -opencv_dir
        -opencv-4.7.0
          -...
        -opencv_contrib-4.7.0
          -modules
          -...
      

      NOTE: To avoid the network issue that may be encountered during using CMake, we need to add the url proxy prefix https://ghproxy.com/ before the urls of some setting of the relevant modules like https://ghproxy.com/https://raw.github***:

      • .cmake in opencv-4.7.0/3rdparty/ippicv
      • .cmake in opencv-4.7.0/3rdparty/ffmpeg
      • CMakeLists.txt in opencv_contrib-4.7.0/modules/face
      • Files in cmake of opencv_contrib-4.7.0/modules/xfeatures2d
      • CMakeLists.txt in opencv_contrib-4.7.0/modules/wechat_qrcode
      • CMakeLists.txt in opencv_contrib-4.7.0/modules/cudaoptflow

      Next, start compiling OpenCV.

      1. Create the build folder: cd opencv_dir && mkdir opencv-build-vs2022
      2. Configure and generate the VS solution by CMake with some config items:
      • General:
        • source folder: <opencv-4.7.0>
        • build folder: <opencv-build-vs2022>
        • BUILD_OPENCV_WORLD=ON
        • CMAKE_BUILD_TYPE=RELEASE
        • OPENCV_ENABLE_NONFREE=ON
        • BUILD_opencv_dnn=ON
        • OPENCV_EXTRA_MODULES_PATH=<opencv_contrib-4.7.0/modules>
      • CUDA:
        • WITH_CUDA=ON
        • WITH_CUDNN=ON
        • WITH_CUBLAS=ON
        • WITH_CUFFT=ON
        • CUDA_FAST_MATH=ON
        • CUDA_ARCH_BIN=7.5 (We can fill the single value corresponding to the real GPU for accelerating the compilation process.)
        • OPENCV_DNN_CUDA=ON
      1. Go to the build directory: cd <opencv-build-vs2022>
      2. Start build by cmake and msvc compiler: cmake --build . --config Release --verbose -j8
      3. Install the built opencv into the install folder in the current path: cmake --install . --prefix install
      4. Add the bin directory into the user environment: <path>\install\x64\vc17\bin
      5. In VS:
        • add the <path>\install\include directory into "解決方案資源管理器->右鍵點(diǎn)擊屬性->VC++目錄->外部包含目錄"
        • add the <path>\install\x64\vc17\lib directory into "解決方案資源管理器->右鍵點(diǎn)擊屬性->VC++目錄->庫目錄"
        • add the opencv_world470.lib into "解決方案資源管理器->右鍵點(diǎn)擊屬性->鏈接器->輸入->附加依賴項(xiàng)"

      OpenVINO ??

      The document of OpenVINO is intuitive and the readability is better than OpenCV.
      The relevant content about building and installing the libirary is listed in these links:

      After building and install the OpenCV library, it's time to move on to OpenVINO.

      1. We need clone the project and the sub modules.
        git clone https://github.com/openvinotoolkit/openvino.git
        cd openvino
        git submodule update --init --recursive
        
      2. Create the build folder: mkdir build && cd build
      3. Configure and generate the VS solution by CMake:
        • ENABLE_INTEL_GPU=OFF (We only use the Intel CPU.)
        • Disable some frontend items:
          • ENABLE_OV_PDPD_FRONTEND=OFF
          • ENABLE_OV_TF_FRONTEND=OFF
          • ENABLE_OV_TF_LITE_FRONTEND=OFF
          • ENABLE_OV_PYTORCH_FRONTEND=OFF
        • For Python:
          • ENABLE_PYTHON=ON It seems that openvino-dev needs to be installed first in the detected environment, otherwise a warning message will be thrown in the cmake-gui window.
          • PYTHON_EXECUTABLE=<python.exe>
          • PYTHON_INCLUDE_DIR=<incude directory>
          • PYTHON_LIBIRARY=<pythonxx.lib in libs directory>
        • For OpenCV:
          • ENABLE_OPENCV=ON
          • OpenCV_DIR=<opencv-build-vs2022/install>
      4. Build the library: cmake --build . --config Release --verbose -j8
      5. Install the library into the install directory: cmake --install . --prefix install
      6. Add the bin directory into the environment:
        • <path>\install\runtime\bin\intel64\Release
        • <path>\install\runtime\3rdparty\tbb\bin
      7. In VS:
        • add the <path>\install\runtime\include directory into "解決方案資源管理器->右鍵點(diǎn)擊屬性->VC++目錄->外部包含目錄"
        • add the <path>\install\runtime\lib\intel64\Release directory into "解決方案資源管理器->右鍵點(diǎn)擊屬性->VC++目錄->庫目錄"
        • add the ?? openvino.lib, ?? openvino_onnx_frontend.lib, openvino_c.lib into "解決方案資源管理器->右鍵點(diǎn)擊屬性->鏈接器->輸入->附加依賴項(xiàng)"

      Set DLL path in IDE

      • VS: "right click on solution -> Properties -> Debugging -> Environment -> PATH=<path>\install\x64\vc17\bin;%PATH%"
      • Qt Creator: "Projects -> Build & Run -> Build/Run -> Environment -> Details -> Eidt %PATH% -> Add <path>\install\x64\vc17\bin"
      posted @ 2025-03-26 21:56  lart  閱讀(74)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 隆德县| 国产精品剧情亚洲二区| 夜夜躁狠狠躁日日躁视频| 狠狠躁夜夜躁无码中文字幕| 免费无码va一区二区三区| 成人无码精品免费视频在线观看 | 99久久婷婷国产综合精品青草漫画| 欧美亚洲另类自拍偷在线拍| 亚洲色欲或者高潮影院| 国产高清自产拍av在线| 99久久婷婷国产综合精品青草漫画| 久久精品国产亚洲AV麻豆长发| 国内精品久久久久久无码不卡| 成人av专区精品无码国产| 日本欧美大码a在线观看| 国产绿帽在线视频看| 色综合视频一区二区三区| 日韩一区二区三区女优丝袜| 国产丰满乱子伦无码专区| 免费吃奶摸下激烈视频| 国产啪视频免费观看视频| 欧洲极品少妇| 99精品国产中文字幕| 久久夜色精品国产网站| 少妇粗大进出白浆嘿嘿视频| av明星换脸无码精品区| 一区二区三区激情免费视频| 国产成AV人片久青草影院| 疏附县| 国产精品天天看天天狠| 国产精品午夜福利精品| 崇信县| 国产一区二区不卡在线| 欧洲亚洲国内老熟女超碰| av色国产色拍| 久久欧洲精品成av人片| av日韩精品在线播放| 深夜福利资源在线观看| 人妻熟妇乱又伦精品无码专区| 韩国一级毛片中文字幕| 欧美日韩v|