From bc15882cdc9d66d117b165529e696d225b8677be Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Fri, 6 Jan 2023 13:51:07 +0530 Subject: [PATCH] Updated incorrect usage of timestamp --- .../utils/sources/MPPClassificationResult+Helpers.mm | 6 +++--- .../text/text_classifier/sources/MPPTextClassifierResult.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm b/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm index 7cad3e155..a5a1a3918 100644 --- a/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm +++ b/mediapipe/tasks/ios/components/containers/utils/sources/MPPClassificationResult+Helpers.mm @@ -54,13 +54,13 @@ using ClassificationResultProto = } MPPClassificationResult *classificationResult; - NSInteger timeStampMs; + NSInteger timestampMs; if (classificationResultProto.has_timestamp_ms()) { - timeStampMs = (NSInteger)classificationResultProto.timestamp_ms(); + timestampMs = (NSInteger)classificationResultProto.timestamp_ms(); } - return [[MPPClassificationResult alloc] initWithClassifications:classifications timestampMs:timeStampMs];; + return [[MPPClassificationResult alloc] initWithClassifications:classifications timestampMs:timestampMs];; } @end diff --git a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifierResult.h b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifierResult.h index 15522fca1..d44084a55 100644 --- a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifierResult.h +++ b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifierResult.h @@ -31,10 +31,10 @@ NS_SWIFT_NAME(TextClassifierResult) * * @param classificationResult The `MPPClassificationResult` instance containing one set of results * per classifier head. - * @param timeStampMs The time stamp for this result. + * @param timestampMs The timestamp for this result. * * @return An instance of `MPPTextClassifierResult` initialized with the given - * `MPPClassificationResult` and time stamp (in milliseconds). + * `MPPClassificationResult` and timestamp (in milliseconds). */ - (instancetype)initWithClassificationResult:(MPPClassificationResult *)classificationResult timestampMs:(NSInteger)timestampMs;