ariankordi.OpenCvSharp4.iOS 4.13.0.20260623

dotnet add package ariankordi.OpenCvSharp4.iOS --version 4.13.0.20260623
                    
NuGet\Install-Package ariankordi.OpenCvSharp4.iOS -Version 4.13.0.20260623
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ariankordi.OpenCvSharp4.iOS" Version="4.13.0.20260623" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ariankordi.OpenCvSharp4.iOS" Version="4.13.0.20260623" />
                    
Directory.Packages.props
<PackageReference Include="ariankordi.OpenCvSharp4.iOS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ariankordi.OpenCvSharp4.iOS --version 4.13.0.20260623
                    
#r "nuget: ariankordi.OpenCvSharp4.iOS, 4.13.0.20260623"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ariankordi.OpenCvSharp4.iOS@4.13.0.20260623
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ariankordi.OpenCvSharp4.iOS&version=4.13.0.20260623
                    
Install as a Cake Addin
#tool nuget:?package=ariankordi.OpenCvSharp4.iOS&version=4.13.0.20260623
                    
Install as a Cake Tool

ariankordi.OpenCvSharp4.iOS

This is a vibe-coded fork that builds OpenCvSharp to target .NET MAUI on iOS. See the upstream's README for more details on this library.

If you need Android, that is covered by sdcb/opencvsharp-mini-runtime.

Please note: this package is a full replacement for OpenCvSharp4 that also includes the native runtime.

This has the downside of not being usable with any packages that transitively include OpenCvSharp4. See Future for a cleaner approach with any future changes.

Usage

Because this package replaces OpenCvSharp4 only for iOS, for cross-platform MAUI apps you will want to configure your csproj like so:

    
    <ItemGroup Condition="!$(TargetFramework.Contains('-ios'))">
      <PackageReference Include="OpenCvSharp4" Version="4.13.0.20260602" />
    </ItemGroup>
    
    <ItemGroup Condition="$(TargetFramework.Contains('-ios'))">
      <PackageReference Include="ariankordi.OpenCvSharp4.iOS" Version="4.13.0.20260623" />
    </ItemGroup>
    
    <ItemGroup Condition="$(TargetFramework.Contains('-android'))">
      <PackageReference Include="Sdcb.OpenCvSharp4.mini.runtime.android-arm64" Version="4.13.0.45" />
      <PackageReference Include="Sdcb.OpenCvSharp4.mini.runtime.android-x64" Version="4.13.0.45" />
    </ItemGroup>
    <ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
      <PackageReference Include="OpenCvSharp4.runtime.win" Version="4.13.0.20260602" />
    </ItemGroup>

Caveats

  • This package targets net9.0-ios to reflect an existing project. If this doesn't work for you, it'll have to be fixed.
  • Only arm64 iPhone Simulator is supported, so Intel Mac users will need to rebuild.
  • This is a minimal build. Only essential OpenCV modules are included: core, imgproc, imgcodecs. If you need more, fork this repo and rebuild.

All other modules have been STUBBED and may fail silently. You have been warned!

The build script can be modified here: src/tools/build-opencvsharp-ios.sh

Future

I would recommend merging the change required to statically link the library for iOS upstream (changing DllExtern to __Internal), and then adding iOS to the CI/CD of opencvsharp-mini-runtime.

This repo was just made to unblock progress on a work project, otherwise I would've preferred a cleaner approach.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-ios15.0 is compatible.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0-ios18.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.13.0.20260623 150 6/24/2026
4.13.0.1 253 6/23/2026