shimat / opencvsharp

OpenCV wrapper for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Error]System.DllNotFoundException

Hardikzinzala opened this issue · comments

Summary of your issue

when i add this plugins in my maui project and use their function give me this error.

Environment

.Net Maui (Version - 7)

What did you do when you faced the problem?

I want to stream video capture by camera

Example code:

using (VideoCapture capture = new VideoCapture(0))
{
capture.Set(VideoCaptureProperties.Fps, 30.0);
OpenCvSharp.Size dsize = new OpenCvSharp.Size(capture.FrameWidth, capture.FrameHeight);
using (Mat frame = new Mat())
{
using (Mat dst = new Mat())
{
while (true)
{
capture.Read(frame);
if (frame.Empty())
break;
}
}
}
}

Output:

System.DllNotFoundException Message=OpenCvSharpExtern