Class WindowsLibraryLoader
- Namespace
- OpenCvSharp.Internal
- Assembly
- OpenCvSharp.dll
Handles loading embedded dlls into memory, based on http://stackoverflow.com/questions/666799/embedding-unmanaged-dll-into-a-managed-c-sharp-dll.
public sealed class WindowsLibraryLoader
- Inheritance
-
WindowsLibraryLoader
- Inherited Members
Remarks
This code is based on https://github.com/charlesw/tesseract
Properties
AdditionalPaths
Additional user-defined DLL paths
public List<string> AdditionalPaths { get; }
Property Value
Instance
public static WindowsLibraryLoader Instance { get; }
Property Value
Methods
IsCurrentPlatformSupported()
Determine if the OS is Windows
public static bool IsCurrentPlatformSupported()
Returns
IsDotNetCore()
Determine if the runtime is .NET Core
public static bool IsDotNetCore()
Returns
IsLibraryLoaded(string)
public bool IsLibraryLoaded(string dllName)
Parameters
dllNamestring
Returns
LoadLibrary(string, IEnumerable<string>?)
public void LoadLibrary(string dllName, IEnumerable<string>? additionalPaths = null)
Parameters
dllNamestringadditionalPathsIEnumerable<string>