OpenCvSharp4使用笔记
错误笔记
System.TypeInitializationException:“The type initializer for 'OpenCvSharp.Internal.NativeMethods' threw an exception.” DllNotFoundException: Unable to load DLL 'OpenCvSharpExtern' or one of its dependencies: 找不到指定的模块。 (0x8007007E)
使用OpenCvSharp4
还需要安装一个(OpenCvSharp4.runtime.*),如果你是 windows 环境下运行就安装OpenCvSharp4.runtime.win
Mat [ 0*0*CV_8UC1, IsContinuous=False, IsSubmatrix=False, Ptr=0x2356878e5c0, Data=0x0
请注意如果你传入的图片路径无效那么读取时不会报错,返回的 Mat 对象的 Data 为 0
本文由作者按照 CC BY 4.0 进行授权