NativeMethods_wechat_qrcode.cs 1.5 KB

123456789101112131415161718192021222324252627
  1. using System.Diagnostics.Contracts;
  2. using System.Runtime.InteropServices;
  3. #pragma warning disable 1591
  4. #pragma warning disable CA1401 // P/Invokes should not be visible
  5. #pragma warning disable CA1707 // Underscore
  6. #pragma warning disable CA2101 // Specify marshaling for P/Invoke string arguments
  7. #pragma warning disable IDE1006 // Naming style
  8. namespace OpenCvSharp.Internal;
  9. static partial class NativeMethods
  10. {
  11. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  12. public static extern ExceptionStatus wechat_qrcode_create1([MarshalAs(UnmanagedType.LPStr)] string detector_prototxt_path,
  13. [MarshalAs(UnmanagedType.LPStr)] string detector_caffe_model_path,
  14. [MarshalAs(UnmanagedType.LPStr)] string super_resolution_prototxt_path ,
  15. [MarshalAs(UnmanagedType.LPStr)] string super_resolution_caffe_model_path,out IntPtr ptr);
  16. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  17. public static extern ExceptionStatus wechat_qrcode_WeChatQRCode_detectAndDecode(IntPtr obj, IntPtr inputImage, IntPtr points, IntPtr texts);
  18. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  19. public static extern ExceptionStatus wechat_qrcode_Ptr_WeChatQRCode_get(IntPtr ptr, out IntPtr ret);
  20. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  21. public static extern ExceptionStatus wechat_qrcode_Ptr_delete(IntPtr ptr);
  22. }