-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathNativeMethods_objdetect_FaceDetectorYN.cs
More file actions
79 lines (64 loc) · 3.5 KB
/
Copy pathNativeMethods_objdetect_FaceDetectorYN.cs
File metadata and controls
79 lines (64 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#pragma warning disable 1591
#pragma warning disable CA1401 // P/Invokes should not be visible
#pragma warning disable IDE1006 // Naming style
// ReSharper disable InconsistentNaming
namespace OpenCvSharp.Internal;
static partial class NativeMethods
{
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
public static partial ExceptionStatus objdetect_FaceDetectorYN_create(
IntPtr model,
IntPtr config,
ref Size inputSize,
float scoreThreshold,
float nmsThreshold,
int topK,
int backendId,
int targetId,
out IntPtr returnValue);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
public static partial ExceptionStatus objdetect_FaceDetectorYN_create_buffer(
IntPtr framework,
IntPtr bufferModel,
IntPtr bufferConfig,
Size inputSize,
float scoreThreshold,
float nmsThreshold,
int topK,
int backendId,
int targetId,
out IntPtr returnValue);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
public static partial ExceptionStatus objdetect_Ptr_FaceDetectorYN_delete(IntPtr ptr);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
public static partial ExceptionStatus objdetect_Ptr_FaceDetectorYN_get(IntPtr ptr, out IntPtr returnValue);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_setInputSize(
OpenCvSafeHandle obj, Size inputSize);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_getInputSize(
OpenCvSafeHandle obj, out Size returnValue);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_setScoreThreshold(
OpenCvSafeHandle obj, float scoreThreshold);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_getScoreThreshold(
OpenCvSafeHandle obj, out float returnValue);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_setNMSThreshold(
OpenCvSafeHandle obj, float nmsThreshold);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_getNMSThreshold(
OpenCvSafeHandle obj, out float returnValue);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_setTopK(
OpenCvSafeHandle obj, int topK);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_getTopK(
OpenCvSafeHandle obj, out int returnValue);
[LibraryImport(DllExtern), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
internal static partial ExceptionStatus objdetect_FaceDetectorYN_detect(
OpenCvSafeHandle obj, in InputArrayProxy image, in OutputArrayProxy faces, out int returnValue);
}