You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/blob/master/LICENSE)
3
+
[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/actions)[](https://github.com/shimat/opencvsharp/blob/master/LICENSE)
4
4
5
5
OpenCvSharp is a cross-platform .NET wrapper for OpenCV, providing a rich set of image processing and computer vision functionality. It supports .NET 8+, .NET Standard 2.0/2.1, and .NET Framework 4.6.1+.
For more installation options, see the [Installation](#installation) section below.
29
38
30
39
## Features
@@ -83,6 +92,23 @@ dotnet run
83
92
> ⚠️ The distro-specific `OpenCvSharp4.official.runtime.ubuntu.*` packages are **no longer maintained**. Use `OpenCvSharp4.official.runtime.linux-x64` instead.
84
93
85
94
95
+
### macOS (Intel and Apple Silicon)
96
+
Add `OpenCvSharp4` and the runtime package matching your architecture:
97
+
```bash
98
+
dotnet new console -n ConsoleApp01
99
+
cd ConsoleApp01
100
+
dotnet add package OpenCvSharp4
101
+
# Intel (x64):
102
+
dotnet add package OpenCvSharp4.runtime.osx.x64
103
+
# Apple Silicon (arm64):
104
+
dotnet add package OpenCvSharp4.runtime.osx.arm64
105
+
# --- edit Program.cs ---
106
+
dotnet run
107
+
```
108
+
109
+
> **Note:** The macOS packages include FFmpeg, Tesseract, Freetype, and all standard OpenCV modules, statically linked.
110
+
111
+
86
112
### Slim profile module coverage
87
113
88
114
The `slim` runtime packages keep a practical subset while reducing runtime dependencies.
|**[OpenCvSharp4.runtime.linux-arm64](https://www.nuget.org/packages/OpenCvSharp4.runtime.linux-arm64/)**| Native bindings for Linux ARM64 (AArch64) |
178
204
|**[OpenCvSharp4.runtime.linux-arm](https://www.nuget.org/packages/OpenCvSharp4.runtime.linux-arm/)**|**Deprecated.** Compatibility shim for `OpenCvSharp4.runtime.linux-arm64`. |
179
205
|**[OpenCvSharp4.runtime.wasm](https://www.nuget.org/packages/OpenCvSharp4.runtime.wasm/)**| Native bindings for WebAssembly |
180
-
206
+
|**[OpenCvSharp4.runtime.osx.x64](https://www.nuget.org/packages/OpenCvSharp4.runtime.osx.x64/)**| Native bindings for macOS Intel (x64). FFmpeg, Tesseract, HDF, and Freetype are not included. |
207
+
|**[OpenCvSharp4.runtime.osx.arm64](https://www.nuget.org/packages/OpenCvSharp4.runtime.osx.arm64/)**| Native bindings for macOS Apple Silicon (arm64). FFmpeg, Tesseract, HDF, and Freetype are not included. |
208
+
181
209
> **Note:** Windows x86 (32-bit) support has been dropped as of the OpenCV 4.13.0 release series.
182
210
> The `OpenCvSharp4.runtime.win` and `OpenCvSharp4.runtime.win.slim` packages now ship **x64-only** native binaries.
183
211
> Users requiring x86 Windows support should stay on the last OpenCV 4.12.x-based packages.
184
212
185
-
Native binding (OpenCvSharpExtern.dll / libOpenCvSharpExtern.so) is required for OpenCvSharp to work. To use OpenCvSharp, you should add both `OpenCvSharp4` and `OpenCvSharp4.runtime.*` packages to your project. Currently, native bindings for Windows x64/ARM64, Linux x64/ARM64, and WebAssembly are available.
213
+
Native binding (OpenCvSharpExtern.dll / libOpenCvSharpExtern.so / libOpenCvSharpExtern.dylib) is required for OpenCvSharp to work. To use OpenCvSharp, you should add both `OpenCvSharp4` and `OpenCvSharp4.runtime.*` packages to your project. Currently, native bindings for Windows x64/ARM64, Linux x64/ARM64, macOS x64/arm64, and WebAssembly are available.
186
214
187
215
Packages named OpenCvSharp3-* and OpenCvSharp-* are deprecated.
For more installation options, see [Installation on GitHub](https://github.com/shimat/opencvsharp#installation).
33
43
34
44
## Requirements
@@ -45,6 +55,9 @@ The official `OpenCvSharp4.official.runtime.linux-x64` package is built on manyl
45
55
-**Full package**: uses GTK3 for `highgui` support (`Cv2.ImShow`, `Cv2.WaitKey`, etc.). GTK3 (`libgtk-3.so.0`) is pre-installed on standard Ubuntu/Debian/RHEL environments and typically requires no action. In minimal or container environments where GTK3 is absent, install it manually: Ubuntu/Debian: `apt-get install libgtk-3-0`; RHEL/AlmaLinux: `dnf install gtk3`. Alternatively, use the **slim** package which has no GUI dependencies.
46
56
-**Slim package** (`OpenCvSharp4.official.runtime.linux-x64.slim`): `highgui` is disabled; no GTK3 or other GUI dependencies. Suitable for headless and container environments.
47
57
58
+
### macOS (Intel and Apple Silicon)
59
+
The `OpenCvSharp4.runtime.osx.x64` and `OpenCvSharp4.runtime.osx.arm64` packages provide native bindings for macOS. FFmpeg, Tesseract, Freetype, and all standard OpenCV modules are statically linked.
60
+
48
61
## Slim Profile
49
62
50
63
The `slim` runtime packages (`OpenCvSharp4.Windows.Slim`, `OpenCvSharp4.official.runtime.linux-x64.slim`, etc.) bundle a smaller native library:
0 commit comments