Wes xx mediapipe integration

This commit is contained in:
Jelle De Geest
2023-03-12 20:34:16 +00:00
parent 8349b5f149
commit b11eeb465c
975 changed files with 192230 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// Copyright (c) 2021 homuler
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
using System;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
namespace Mediapipe
{
internal static partial class SafeNativeMethods
{
[Pure, DllImport(MediaPipeLibrary, ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool absl_Status__ok(IntPtr status);
[Pure, DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern int absl_Status__raw_code(IntPtr status);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: da8fc54cee1027e99b8906eb2bf52fe9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,23 @@
// Copyright (c) 2021 homuler
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
using System;
using System.Runtime.InteropServices;
namespace Mediapipe
{
internal static partial class UnsafeNativeMethods
{
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode absl_Status__i_PKc(int code, string message, out IntPtr status);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void absl_Status__delete(IntPtr status);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode absl_Status__ToString(IntPtr status, out IntPtr str);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 155484db76e5b33b9abb229007a71250
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,49 @@
// Copyright (c) 2021 homuler
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
using System.Runtime.InteropServices;
namespace Mediapipe
{
internal static partial class UnsafeNativeMethods
{
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode google_InitGoogleLogging__PKc(string name);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode google_ShutdownGoogleLogging();
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_FLAGS_logtostderr([MarshalAs(UnmanagedType.I1)] bool value);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_FLAGS_stderrthreshold(int threshold);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_FLAGS_minloglevel(int level);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_FLAGS_log_dir(string dir);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_FLAGS_v(int v);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_LOG_INFO__PKc(string str);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_LOG_WARNING__PKc(string str);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_LOG_ERROR__PKc(string str);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void glog_LOG_FATAL__PKc(string str);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void google_FlushLogFiles(Glog.Severity severity);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5746b8714205e5f4c9b283abb157f283
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,74 @@
// Copyright (c) 2021 homuler
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
using System;
using System.Runtime.InteropServices;
namespace Mediapipe
{
internal static partial class UnsafeNativeMethods
{
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode google_protobuf__SetLogHandler__PF(
[MarshalAs(UnmanagedType.FunctionPtr)] Protobuf.LogHandler logHandler);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode google_protobuf__ResetLogHandler();
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void mp_api_SerializedProtoArray__delete(IntPtr serializedProtoVectorData, int size);
#region MessageProto
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetClassificationList(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetClassificationListVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetDetection(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetDetectionVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetFaceGeometry(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetFaceGeometryVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetFrameAnnotation(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetLandmarkList(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetLandmarkListVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetNormalizedLandmarkList(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetNormalizedLandmarkListVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetNormalizedRect(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetNormalizedRectVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetRect(IntPtr packet, out SerializedProto serializedProto);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetRectVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_Packet__GetTimedModelMatrixProtoList(IntPtr packet, out SerializedProto serializedProto);
#endregion
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d2824e1ee33b214b5931f71e3476d099
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,19 @@
// Copyright (c) 2021 homuler
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
using System;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
namespace Mediapipe
{
internal static partial class SafeNativeMethods
{
[Pure, DllImport(MediaPipeLibrary, ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool mp_StatusOrString__ok(IntPtr statusOrString);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4387fa8ccc9d34346989f3157763325c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,45 @@
// Copyright (c) 2021 homuler
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
using System;
using System.Runtime.InteropServices;
namespace Mediapipe
{
internal static partial class UnsafeNativeMethods
{
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void delete_array__PKc(IntPtr str);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void delete_array__Pf(IntPtr str);
#region String
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void std_string__delete(IntPtr str);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode std_string__PKc_i(byte[] bytes, int size, out IntPtr str);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void std_string__swap__Rstr(IntPtr src, IntPtr dst);
#endregion
#region StatusOrString
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern void mp_StatusOrString__delete(IntPtr statusOrString);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_StatusOrString__status(IntPtr statusOrString, out IntPtr status);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_StatusOrString__value(IntPtr statusOrString, out IntPtr value);
[DllImport(MediaPipeLibrary, ExactSpelling = true)]
public static extern MpReturnCode mp_StatusOrString__bytearray(IntPtr statusOrString, out IntPtr value, out int size);
#endregion
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8145b1567167432dda87798d70f47019
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: