internal static extern MediaVisionError Inference(IntPtr handle, IntPtr source);
[DllImport(Libraries.MediaVisionFaceRecognition, EntryPoint = "mv_face_recognition_get_label")]
- internal static extern MediaVisionError GetLabel(IntPtr handle, out string label);
+ internal static extern MediaVisionError GetLabel(IntPtr handle, out IntPtr label);
}
}
}
*/
using System;
+using System.Runtime.InteropServices;
using InteropFace = Interop.MediaVision.FaceRecognition;
namespace Tizen.Multimedia.Vision
ret.Validate("failed to recognize face");
}
- InteropFace.GetLabel(_handle, out string label).Validate("Failed to get label");
+ InteropFace.GetLabel(_handle, out IntPtr label).Validate("Failed to get label");
- return new DeepLearningFaceRecognitionResult(label);
+ return new DeepLearningFaceRecognitionResult(Marshal.PtrToStringAnsi(label));
}
/// <summary>