Headless native bindings package for OpenCvSharp on Linux x64 (portable RID). Same module set as the full package (videoio, dnn, ml, contrib, stitching, barcode, ...) with highgui disabled, so it has no GTK3/X11 GUI dependency.
Install
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
OpenCvSharp Native Runtime Package
This is an internal implementation package for OpenCvSharp. It provides the native OpenCV shared library (OpenCvSharpExtern) for a specific platform.
The managed OpenCvSharp API is intentionally designed to stay as close as practical to the native OpenCV C++ API. See OpenCV C++, Python (cv2), and OpenCvSharp for the main API and data-model differences.
In most cases you do not need to reference this package directly. Use one of the all-in-one packages instead:
- Windows:
OpenCvSharp5.WindowsorOpenCvSharp5.Windows.Slim- Linux:
OpenCvSharp5+OpenCvSharp5.official.runtime.linux-x64
The
OpenCvSharp5.*runtime packages target OpenCV 5.x. An identically-namedOpenCvSharp4.*counterpart (OpenCV 4.13.0) is also published for .NET Framework / older runtimes.
🔄 Already using OpenCvSharp4? See the Migration Guide (4 → 5) on GitHub for target framework changes, package/namespace renames, and OpenCV 5 API changes.
The Linux linux-x64 packages are built on manylinux_2_28 (glibc 2.28) and work on Ubuntu 20.04+, Debian 10+, RHEL/AlmaLinux 8+, and other Linux distributions. The full (non-slim) package includes FFmpeg (LGPL v2.1) and Tesseract statically linked.
Linux
highguidependency: The fulllinux-x64package uses GTK3 forhighgui(Cv2.ImShow,Cv2.WaitKey, etc.). GTK3 is pre-installed on standard Ubuntu/Debian/RHEL environments. In minimal or container environments where it is absent, install it manually:
- Ubuntu/Debian:
apt-get install libgtk-3-0- RHEL/AlmaLinux:
dnf install gtk3For headless servers or minimal containers that still need
videoio,dnn,ml,contrib,stitching, etc., use the headless package (OpenCvSharp5.official.runtime.linux-x64.headless) instead: same module set as full,highguidisabled, no GTK3/X11 dependency. If the reduced slim module set (see below) is enough, that has no GUI dependencies either.
macOS: The
osx.x64andosx.arm64packages include FFmpeg, Tesseract, Freetype, and all standard OpenCV modules, statically linked.
Available Runtime Packages
| Package | Platform |
|---|---|
OpenCvSharp5.runtime.win |
Windows x64 |
OpenCvSharp5.runtime.win.slim |
Windows x64 (slim) |
OpenCvSharp5.runtime.win-arm64 |
Windows ARM64 (Snapdragon X and other arm64 devices). FFmpeg not included. |
OpenCvSharp5.runtime.win-arm64.slim |
Windows ARM64 (slim) |
OpenCvSharp5.official.runtime.linux-x64 |
Linux x64 (portable, manylinux_2_28) |
OpenCvSharp5.official.runtime.linux-x64.headless |
Linux x64 (portable, manylinux_2_28, headless — full module set minus highgui) |
OpenCvSharp5.official.runtime.linux-x64.slim |
Linux x64 (portable, manylinux_2_28, slim) |
OpenCvSharp5.runtime.linux-arm64 |
Linux ARM64 (AArch64) |
OpenCvSharp5.runtime.linux-arm |
Linux ARM64 — deprecated, use linux-arm64 |
OpenCvSharp5.runtime.osx.x64 |
macOS x64 (Intel) |
OpenCvSharp5.runtime.osx.arm64 |
macOS 11.0+ arm64 (Apple Silicon) |
Note:
OpenCvSharp5.runtime.linux-armhas been renamed toOpenCvSharp5.runtime.linux-arm64to correctly reflect the ARM64 (AArch64) RID. The old package is kept as a compatibility shim that automatically pulls in the renamed package, but new projects should referenceOpenCvSharp5.runtime.linux-arm64directly.
Headless Profile (Linux only)
The OpenCvSharp5.official.runtime.linux-x64.headless package has the same module set as the full linux-x64 package (videoio, dnn, ml, contrib, stitching, barcode, ...) but highgui is disabled at build time, so it never links GTK3/X11 and needs no GUI dependency to be installed. Use it for containerized/headless services (e.g. an ASP.NET Core service using VideoCapture/imgcodecs) that need more than the slim module set below but never call highgui.
Slim Profile
The slim packages bundle a smaller native library with a reduced OpenCV module set:
| Modules | |
|---|---|
| Enabled | core, imgproc, imgcodecs, calib3d, features2d, flann, objdetect, photo |
| Disabled | contrib, dnn, ml, video, videoio, highgui, stitching, barcode |
Resources
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.