# OpenCV for use with OpenVINO (MacOS)

**URL:** <https://forum.opencv.org/t/opencv-for-use-with-openvino-macos/13215>\
**Category:** Uncategorized\
**Tags:** apple, openvino\
**Created:** [May 16, 2023, 4:20pm UTC](https://forum.opencv.org/t/opencv-for-use-with-openvino-macos/13215 "2023-05-16T16:20:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nap](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nap](https://forum.opencv.org/u/nap)\
**Post date:** [May 16, 2023, 4:20pm UTC](https://forum.opencv.org/t/opencv-for-use-with-openvino-macos/13215/1 "2023-05-16T16:20:31Z")

</div>

[MacOS 13.3.1 (Intel), NCS2]

After cloning the OpenCV repo, I noticed that there are tags which refer to OpenVINO.  
As a fresh install, should I use the latest stable (4.7.0) or 4.5.5-openvino-2022.1.0?

I’m installing OpenVINO right now using the `master` branch, which appears to be leading to a 2023 release.  
Any suggestions on how to go about this?

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [May 17, 2023, 7:52am UTC](https://forum.opencv.org/t/opencv-for-use-with-openvino-macos/13215/2 "2023-05-17T07:52:09Z")

</div>

May be somewhere in [OpenVINO™ Toolkit · GitHub](https://github.com/openvinotoolkit) or [dkurt (dkurt) / Repositories · GitHub](https://github.com/dkurt?tab=repositories)  
and [BuildOpenCV4OpenVINO · opencv/opencv Wiki · GitHub](https://github.com/opencv/opencv/wiki/BuildOpenCV4OpenVINO)

---

<div class="post-metadata">

**Author:** ![nap](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nap](https://forum.opencv.org/u/nap)\
**Post date:** [May 27, 2023, 5:37pm UTC](https://forum.opencv.org/t/opencv-for-use-with-openvino-macos/13215/4 "2023-05-27T17:37:18Z")

</div>

I chose to go with 4.7.0 and everything is running fine, including OpenVINO `master`.  
The only issue I had when building OpenCV was that I needed to configure CMake using `-DBUILD_ZLIB=OFF`, which took a while to figure out. Perhaps the build instructions could include a hint to use this setting.

Thanks!

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [May 27, 2023, 7:17pm UTC](https://forum.opencv.org/t/opencv-for-use-with-openvino-macos/13215/5 "2023-05-27T19:17:10Z")

</div>

I build opencv with openvino on windows and it works

```auto
git clone -b 2022.3.0 https://github.com/openvinotoolkit/openvino.git

https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build.md
git submodule update --init --recursive
cd ../build
mkdir openvino
cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENCV=ON -DENABLE_INTEL_GPU=OFF -DOpenCV_DIR=/c/install/opencv -DCMAKE_INSTALL_PREFIX=/c/install/openvino /c/lib/openvino
cmake --build . --config debug
cmake --build . --config release
 cmake --install . --config debug 
 cmake --install . --config release

```
