From a5ac5b9eec956edab7df38103c5c8ad277c85e46 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Mon, 6 Feb 2023 16:35:27 +0530 Subject: [PATCH] Updated type name of image source --- mediapipe/tasks/ios/vision/core/sources/MPPImage.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mediapipe/tasks/ios/vision/core/sources/MPPImage.h b/mediapipe/tasks/ios/vision/core/sources/MPPImage.h index 5c805870f..f796c76c9 100644 --- a/mediapipe/tasks/ios/vision/core/sources/MPPImage.h +++ b/mediapipe/tasks/ios/vision/core/sources/MPPImage.h @@ -19,13 +19,13 @@ NS_ASSUME_NONNULL_BEGIN /** Types of image sources. */ -typedef NSInteger GMLImageSourceType NS_TYPED_ENUM NS_SWIFT_NAME(MLImageSourceType); +typedef NSInteger MPPTaskImageSourceType NS_TYPED_ENUM NS_SWIFT_NAME(MLImageSourceType); /** Image source is a `UIImage`. */ -static const GMLImageSourceType MPPTaskImageSourceTypeImage = 0; +static const MPPTaskImageSourceType MPPTaskImageSourceTypeImage = 0; /** Image source is a `CVPixelBuffer`. */ -static const GMLImageSourceType MPPTaskImageSourceTypePixelBuffer = 1; +static const MPPTaskImageSourceType MPPTaskImageSourceTypePixelBuffer = 1; /** Image source is a `CMSampleBuffer`. */ -static const GMLImageSourceType MPPTaskImageSourceTypeSampleBuffer = 2; +static const MPPTaskImageSourceType MPPTaskImageSourceTypeSampleBuffer = 2; /** An image used in on-device machine learning using MediaPipe Task library. */ NS_SWIFT_NAME(MPPTaskImage) @@ -47,7 +47,7 @@ NS_SWIFT_NAME(MPPTaskImage) @property(nonatomic, readonly) UIImageOrientation orientation; /** The type of the image source. */ -@property(nonatomic, readonly) GMLImageSourceType imageSourceType; +@property(nonatomic, readonly) MPPTaskImageSourceType imageSourceType; /** The source image. `nil` if `imageSourceType` is not `.image`. */ @property(nonatomic, readonly, nullable) UIImage *image;