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);
        }
Example #3
0
 public static extern MpReturnCode mp_Packet__GetRectVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
Example #4
0
 public static extern MpReturnCode mp_Packet__GetNormalizedLandmarkListVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);
Example #5
0
 public static extern MpReturnCode mp_Packet__GetClassificationListVector(IntPtr packet, out SerializedProtoVector serializedProtoVector);