public override List <NormalizedRect> GetValue() { var rectVecPtr = UnsafeNativeMethods.MpPacketGetNormalizedRectVector(ptr); var rects = SerializedProtoVector.FromPtr <NormalizedRect>(rectVecPtr, NormalizedRect.Parser); UnsafeNativeMethods.MpSerializedProtoVectorDestroy(rectVecPtr); return(rects); }
public override List <Detection> GetValue() { var detectionVecPtr = UnsafeNativeMethods.MpPacketGetDetectionVector(ptr); var detections = SerializedProtoVector.FromPtr <Detection>(detectionVecPtr, Detection.Parser); UnsafeNativeMethods.MpSerializedProtoVectorDestroy(detectionVecPtr); return(detections); }
public static extern MpReturnCode mp_Packet__GetRectVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
public static extern MpReturnCode mp_Packet__GetNormalizedLandmarkListVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
public static extern MpReturnCode mp_Packet__GetClassificationListVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);