Lyo.Images.OpenCv
1.0.6
dotnet add package Lyo.Images.OpenCv --version 1.0.6
NuGet\Install-Package Lyo.Images.OpenCv -Version 1.0.6
<PackageReference Include="Lyo.Images.OpenCv" Version="1.0.6" />
<PackageVersion Include="Lyo.Images.OpenCv" Version="1.0.6" />
<PackageReference Include="Lyo.Images.OpenCv" />
paket add Lyo.Images.OpenCv --version 1.0.6
#r "nuget: Lyo.Images.OpenCv, 1.0.6"
#:package Lyo.Images.OpenCv@1.0.6
#addin nuget:?package=Lyo.Images.OpenCv&version=1.0.6
#tool nuget:?package=Lyo.Images.OpenCv&version=1.0.6
Lyo.Images.OpenCv
OpenCV helpers for .NET via OpenCvSharp4. Kept separate from higher-level pipelines (e.g. comic overlay) so hosts pull native OpenCV only where needed.
ROI inpaint
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
output with the same width and height as the decoded source.
- Without DI.
OpenCvRoiInpaint(InpaintColorRoiPng,InpaintTelea) delegates to a sharedOpenCvRoiInpaintService. - With DI.
AddOpenCvRoiInpaint()registersIOpenCvRoiInpaint→OpenCvRoiInpaintServiceif not already registered.
Failure codes: OpenCvInpaint.DecodeFailed, OpenCvInpaint.InpaintError.
Native runtimes (NuGet)
This package references OpenCvSharp4.official.runtime.linux-x64, for Linux CI and local Linux development. On Windows or other RIDs, add a matching official runtime package to the executable project (e.g. Gateway) or to this library's .csproj. Search NuGet for OpenCvSharp4.official.runtime for your OS. If native libraries fail to load at runtime, check that the correct runtime package is restored and copied next to the app output.
Tests
See ../Lyo.Images.OpenCv.Tests/. This 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 but not always execute the v3 in-process runner the same way. Prefer dotnet run for this project.
Tests require a working OpenCV native load, 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.DependencyInjection10.0.5(direct, microsoft)OpenCvSharp44.13.0.20260627(direct, third-party)OpenCvSharp4.official.runtime.linux-x644.13.0.20260627(direct, third-party)Lyo.Common(transitive, lyo)Microsoft.Extensions.Logging.Abstractions10.0.5(transitive, microsoft)System.Memory4.6.3(transitive, microsoft, netstandard2.0)System.Text.Json10.0.5(transitive, microsoft, netstandard2.0)
| Product | Versions 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. |
-
net10.0
- Lyo.Exceptions (>= 1.0.6)
- Lyo.Result (>= 1.0.6)
- Microsoft.Extensions.DependencyInjection (>= 10.0.5)
- OpenCvSharp4 (>= 4.13.0.20260627)
- OpenCvSharp4.official.runtime.linux-x64 (>= 4.13.0.20260627)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.