Lyo.Images.OpenCv 2.0.0

dotnet add package Lyo.Images.OpenCv --version 2.0.0
                    
NuGet\Install-Package Lyo.Images.OpenCv -Version 2.0.0
                    
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="Lyo.Images.OpenCv" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Images.OpenCv" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Images.OpenCv" />
                    
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 Lyo.Images.OpenCv --version 2.0.0
                    
#r "nuget: Lyo.Images.OpenCv, 2.0.0"
                    
#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 Lyo.Images.OpenCv@2.0.0
                    
#: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=Lyo.Images.OpenCv&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Images.OpenCv&version=2.0.0
                    
Install as a Cake Tool

Lyo.Images.OpenCv

OpenCvSharp4 helpers for .NET. Split from higher-level pipelines (e.g. comic overlay) so hosts take native OpenCV only where they need it.

Inpaint a color ROI

Contract. IOpenCvRoiInpaint InpaintColorRoiPng decodes a color PNG ROI, builds a binary mask (255 inside the rectangle, 0 elsewhere), runs OpenCV inpaint with optional Telea or Navier-Stokes (OpenCvInpaintAlgorithm), and returns PNG-encoded BGR at the decoded source width and height.

Failure codes: OpenCvInpaint.DecodeFailed, OpenCvInpaint.InpaintError.

Native runtimes on NuGet

OpenCvSharp4.official.runtime.linux-x64 is referenced here for Linux CI and local Linux work. On Windows or other RIDs, add the matching official runtime package to the executable (e.g. Gateway) or to this library's .csproj. Search NuGet for OpenCvSharp4.official.runtime for your OS. If native libraries fail to load, confirm the right runtime package was restored and copied next to the app output.

How to run tests

See ../Lyo.Images.OpenCv.Tests/. The repo uses xUnit v3 with OutputType Exe. Run:

dotnet run --project Lyo.Net/Data/Images/Lyo.Images.OpenCv.Tests/Lyo.Images.OpenCv.Tests.csproj

dotnet test may restore without always running the v3 in-process runner the same way. Prefer dotnet run for this project.

Tests need a working OpenCV native load, the same as a Linux host at runtime.

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.Exceptions (direct, lyo)
  • Lyo.Result (direct, lyo)
  • Microsoft.Extensions.DependencyInjection 10.0.5 (direct, microsoft)
  • OpenCvSharp4 4.13.0.20260627 (direct, third-party)
  • OpenCvSharp4.official.runtime.linux-x64 4.13.0.20260627 (direct, third-party)
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

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
2.0.0 43 9/9/2026
1.0.13 94 8/25/2026
1.0.11 88 8/23/2026
1.0.9 99 8/22/2026
1.0.6 87 8/20/2026
1.0.4 94 8/20/2026
1.0.3 94 8/19/2026
1.0.2 92 8/19/2026
1.0.1 88 8/18/2026
1.0.0 100 8/16/2026