public override List <Rect> Get() { UnsafeNativeMethods.mp_Packet__GetRectVector(mpPtr, out var serializedProtoVectorPtr).Assert(); GC.KeepAlive(this); var rects = Protobuf.DeserializeProtoVector <Rect>(serializedProtoVectorPtr, Rect.Parser); UnsafeNativeMethods.mp_api_SerializedProtoVector__delete(serializedProtoVectorPtr); return(rects); }
public override List <FaceGeometry.FaceGeometry> Get() { UnsafeNativeMethods.mp_Packet__GetFaceGeometryVector(mpPtr, out var serializedProtoVectorPtr).Assert(); GC.KeepAlive(this); var geometries = Protobuf.DeserializeProtoVector <FaceGeometry.FaceGeometry>(serializedProtoVectorPtr, FaceGeometry.FaceGeometry.Parser); UnsafeNativeMethods.mp_api_SerializedProtoVector__delete(serializedProtoVectorPtr); return(geometries); }
public override List <NormalizedLandmarkList> Get() { UnsafeNativeMethods.mp_Packet__GetNormalizedLandmarkListVector(mpPtr, out var serializedProtoVectorPtr).Assert(); GC.KeepAlive(this); var normalizedLandmarkLists = Protobuf.DeserializeProtoVector <NormalizedLandmarkList>(serializedProtoVectorPtr, NormalizedLandmarkList.Parser); UnsafeNativeMethods.mp_api_SerializedProtoVector__delete(serializedProtoVectorPtr); return(normalizedLandmarkLists); }
public override List <ClassificationList> Get() { UnsafeNativeMethods.mp_Packet__GetClassificationListVector(mpPtr, out var serializedProtoVectorPtr).Assert(); GC.KeepAlive(this); var detections = Protobuf.DeserializeProtoVector <ClassificationList>(serializedProtoVectorPtr, ClassificationList.Parser); UnsafeNativeMethods.mp_api_SerializedProtoVector__delete(serializedProtoVectorPtr); return(detections); }