shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.26k stars 1.14k forks source link

Do you have a plan to produce opencvsharp on .net core ? #260

Closed ghost closed 7 years ago

ghost commented 7 years ago

Do you have a plan to produce opencvsharp on .net core ?

shimat commented 7 years ago

The latest OpenCvSharp works on .NET Core. thanks.

JetstreamRoySprowl commented 5 years ago

Can you point me to the NuGet package that would work on Windows .NET Core 2.2 without compiler complaint? All of the packages I can seem to find produce this warning:

Warning NU1701 Package 'OpenCVSharp 2.4.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.2'. This package may not be fully compatible with your project. ImageResize C:\Clients\AIVideo\ImageResize\ImageResize.csproj 1

millennial9 commented 4 years ago

@JetstreamRoySprowl Same problem

shumailaahmed commented 3 years ago

Can you point me to the NuGet package that would work on Windows .NET Core 2.2 without compiler complaint? All of the packages I can seem to find produce this warning:

Warning NU1701 Package 'OpenCVSharp 2.4.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.2'. This package may not be fully compatible with your project. ImageResize C:\Clients\AIVideo\ImageResize\ImageResize.csproj 1

Getting the same warning was anyone able to resolve this? I get an error while reading the image. warn error

shimat commented 3 years ago

OpenCVSharp 2.4 is obsolete. To use OpenCvSharp on .NET Core, please use the latest nuget package (OpenCvSharp4.*) instead.

shumailaahmed commented 3 years ago

OpenCVSharp 2.4 is obsolete. To use OpenCvSharp on .NET Core, please use the latest nuget package (OpenCvSharp4.*) instead.

actually, I am trying to make an old code functional, it was built with OpenCVSharp 2.4. Using OpenCvSharp4.* gives my definition errors, is there documentation to translate/ migrate the code from OpenCVSharp to OpenCVSharp4?

Attaching the screenshot of the error cv4

lwqwag commented 3 years ago

some types had a lot change in opencvsharp4 compared with 2.4. so you can change the type yourself.such as CvMat->Mat, CvColor->Scalar

shumailaahmed commented 3 years ago

so there is any documentation on the changes I can refer to for these changes, I was trying to do so ... CvMat>Mat was quite intuitive but not for most of other types unfortunately