You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public Godot.Collections.Array FaceLandmarks{get =>(Godot.Collections.Array)Get("face_landmarks");set => Set("face_landmarks", Variant.From(value));}//=========================usingSystem;usingGodot;namespace GDExtension.Wrappers;publicpartialclassMediaPipeFaceLandmarkerResult:RefCounted{publicstaticreadonlyStringNameGDExtensionName="MediaPipeFaceLandmarkerResult";[Obsolete("Wrapper classes cannot be constructed with Ctor (it only instantiate the underlying RefCounted), please use the Instantiate() method instead.")]protectedMediaPipeFaceLandmarkerResult(){}/// <summary>/// Creates an instance of the GDExtension <see cref="MediaPipeFaceLandmarkerResult"/> type, and attaches the wrapper script to it./// </summary>/// <returns>The wrapper instance linked to the underlying GDExtension type.</returns>publicstatic MediaPipeFaceLandmarkerResult Instantiate(){return GDExtensionHelper.Instantiate<MediaPipeFaceLandmarkerResult>(GDExtensionName);}/// <summary>/// Try to cast the script on the supplied <paramref name="godotObject"/> to the <see cref="MediaPipeFaceLandmarkerResult"/> wrapper type,/// if no script has attached to the type, or the script attached to the type does not inherit the <see cref="MediaPipeFaceLandmarkerResult"/> wrapper type,/// a new instance of the <see cref="MediaPipeFaceLandmarkerResult"/> wrapper script will get attaches to the <paramref name="godotObject"/>./// </summary>/// <remarks>The developer should only supply the <paramref name="godotObject"/> that represents the correct underlying GDExtension type.</remarks>/// <param name="godotObject">The <paramref name="godotObject"/> that represents the correct underlying GDExtension type.</param>/// <returns>The existing or a new instance of the <see cref="MediaPipeFaceLandmarkerResult"/> wrapper script attached to the supplied <paramref name="godotObject"/>.</returns>publicstatic MediaPipeFaceLandmarkerResult Bind(GodotObjectgodotObject){return GDExtensionHelper.Bind<MediaPipeFaceLandmarkerResult>(godotObject);}
#region Properties
public Godot.Collections.Array FaceLandmarks
{get=>(Godot.Collections.Array)Get("face_landmarks");set=> Set("face_landmarks", Variant.From(value));}public Godot.Collections.Array FaceBlendshapes
{get=>(Godot.Collections.Array)Get("face_blendshapes");set=> Set("face_blendshapes", Variant.From(value));}public Godot.Collections.Array FacialTransformationMatrixes
{get=>(Godot.Collections.Array)Get("facial_transformation_matrixes");set=> Set("facial_transformation_matrixes", Variant.From(value));}
#endregion
#region Methods
publicboolHasFaceBlendshapes()=> Call("has_face_blendshapes").As<bool>();publicboolHasFacialTransformationMatrixes()=> Call("has_facial_transformation_matrixes").As<bool>();
#endregion
}
The text was updated successfully, but these errors were encountered:
Do you have suggestion how to Bind with better performance to get Godot.Collections.Array<MediaPipeNormalizedLandmarks> => in ONE STEP, so iteration can be avoided?
//This step SLOW down the performance significantly <============ var landmarks = GDExtensionHelper.Bind(tmplandmarks.AsGodotObject());
public Godot.Collections.Array FaceLandmarks{get =>(Godot.Collections.Array)Get("face_landmarks");set => Set("face_landmarks", Variant.From(value));}
Let's move the discussion to the correct issue (#21) and continue it there.
Repository owner
locked as off-topic and limited conversation to collaborators
Apr 28, 2024
Repository owner
unlocked this conversation
Apr 29, 2024
https://github.com/j20001970/GDMP-demo/blob/3474994c3a844d935551c9793c8b642868105d2e/project/vision/face_landmarker/FaceLandmarker.gd#L37
The FaceLandMarks should returns
Godot.Collections.Array<MediaPipeNormalizedLandmarks>
The casting of Godot.Variant to MediaPipeNormalizedLandmarks does not work
The text was updated successfully, but these errors were encountered: