Huge update to get on par with MediaPipeUnityPlugin (#39)

* Use new MediaPipe packages and update version

* Apply updates from MediaPipeUnityPlugin

All while keeping C pointers like `void*` instead of `IntPtr`
and various other practices.

* Add VSCode task to debug tests

* Fix unset freeHGlobal delegate

This can happen because the static code of the NativeMethods class
could have not run, for some reason...

* Fix all examples

* Fix import reordering
This commit is contained in:
Speykious
2022-07-30 08:37:17 +02:00
committed by GitHub
parent d562895694
commit b5f3b54b15
67 changed files with 1951 additions and 483 deletions

View File

@ -7,6 +7,7 @@ using CommandLine;
using FFmpeg.AutoGen;
using Mediapipe.Net.External;
using Mediapipe.Net.Framework.Format;
using Mediapipe.Net.Framework.Protobuf;
using Mediapipe.Net.Solutions;
using Mediapipe.Net.Util;
using SeeShark;
@ -86,7 +87,7 @@ namespace Mediapipe.Net.Examples.Pose
converter ??= new FrameConverter(frame, PixelFormat.Rgba);
Frame cFrame = converter.Convert(frame);
ImageFrame imgframe = new ImageFrame(ImageFormat.Srgba,
ImageFrame imgframe = new ImageFrame(ImageFormat.Types.Format.Srgba,
cFrame.Width, cFrame.Height, cFrame.WidthStep, cFrame.RawData);
PoseOutput handsOutput = calculator.Compute(imgframe);