123456789101112131415161718192021222324252627 |
- using System.Diagnostics.Contracts;
- using System.Runtime.InteropServices;
- #pragma warning disable 1591
- #pragma warning disable CA1401 // P/Invokes should not be visible
- #pragma warning disable CA1707 // Underscore
- #pragma warning disable CA2101 // Specify marshaling for P/Invoke string arguments
- #pragma warning disable IDE1006 // Naming style
- namespace OpenCvSharp.Internal;
- static partial class NativeMethods
- {
- [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
- public static extern ExceptionStatus wechat_qrcode_create1([MarshalAs(UnmanagedType.LPStr)] string detector_prototxt_path,
- [MarshalAs(UnmanagedType.LPStr)] string detector_caffe_model_path,
- [MarshalAs(UnmanagedType.LPStr)] string super_resolution_prototxt_path ,
- [MarshalAs(UnmanagedType.LPStr)] string super_resolution_caffe_model_path,out IntPtr ptr);
- [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
- public static extern ExceptionStatus wechat_qrcode_WeChatQRCode_detectAndDecode(IntPtr obj, IntPtr inputImage, IntPtr points, IntPtr texts);
-
- [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
- public static extern ExceptionStatus wechat_qrcode_Ptr_WeChatQRCode_get(IntPtr ptr, out IntPtr ret);
- [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
- public static extern ExceptionStatus wechat_qrcode_Ptr_delete(IntPtr ptr);
- }
|