mirror of
https://github.com/cosyneco/MediaPipe.NET.git
synced 2025-08-06 07:00:06 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user