shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.22k stars 1.13k forks source link

InteropServices.SEHException: OpenCvSharp.Dnn.Net.ReadNet #1598

Open andife opened 10 months ago

andife commented 10 months ago

Summary of your issue

Hello,

at my local machine the unittests with network initialization "var network = CvDnn.ReadNet(" works fine. (with openvino bin, xml)

Executing the same in an azure pipeline leads to the following execption:

"Error while parsing and setup of network: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. at OpenCvSharp.Internal.NativeMethods.dnn_readNet_Windows(String model, String config, String framework, IntPtr& returnValue) at OpenCvSharp.Internal.NativeMethods.dnn_readNet(String model, String config, String framework, IntPtr& returnValue) at OpenCvSharp.Dnn.Net.ReadNet(String model, String config, String framework)"

I am happy about any idea!

Environment

Windows, C# 4.7.2, Opencv with openvino integrated