diff --git a/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.h b/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.h index 5e75febf..231bb16d 100644 --- a/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.h +++ b/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.h @@ -58,14 +58,14 @@ static const int kMicroSecondsPerMilliSecond = 1000; + (MPPGestureRecognizerResult *) gestureRecognizerResultWithHandGesturesProto: (const std::vector &)handGesturesProto - handednessroto: - (const std::vector &) - handednessProto - handLandmarksPacket: - (const std::vector &) - handLandmarksProto - worldLandmarksPacket: - (const std::vector &)worldLandmarksProto + handednessProto: + (const std::vector &) + handednessProto + handLandmarksProto: + (const std::vector &) + handLandmarksProto + worldLandmarksProto: + (const std::vector &)worldLandmarksProto timestampInMilliSeconds:(NSInteger)timestampInMilliseconds; @end diff --git a/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm b/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm index 5162dd89..4f3411c6 100644 --- a/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm +++ b/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm @@ -40,12 +40,12 @@ static const NSInteger kDefaultGestureIndex = -1; + (MPPGestureRecognizerResult *) gestureRecognizerResultWithHandGesturesProto: (const std::vector &)handGesturesProto - handednessroto: - (const std::vector &)handednessProto - handLandmarksPacket:(const std::vector &) + handednessProto: + (const std::vector &)handednessProto + handLandmarksroto:(const std::vector &) handLandmarksProto - worldLandmarksPacket: - (const std::vector &)worldLandmarksProto + worldLandmarksProto: + (const std::vector &)worldLandmarksProto timestampInMilliSeconds:(NSInteger)timestampInMilliseconds { NSMutableArray *> *multiHandGestures = [NSMutableArray arrayWithCapacity:(NSUInteger)handGesturesProto.size()]; @@ -55,7 +55,7 @@ static const NSInteger kDefaultGestureIndex = -1; arrayWithCapacity:(NSUInteger)classificationListProto.classification().size()]; for (const auto &classificationProto : classificationListProto.classification()) { MPPCategory *category = [MPPCategory categoryWithProto:classificationProto - index:kDefaultGestureIndex]; + index:kDefaultGestureIndex]; [gestures addObject:category]; } [multiHandGestures addObject:gestures]; @@ -135,11 +135,11 @@ static const NSInteger kDefaultGestureIndex = -1; return [MPPGestureRecognizerResult gestureRecognizerResultWithHandGesturesProto:handGesturesPacket .Get>() - handednessroto:handednessPacket + handednessProto:handednessPacket .Get>() - handLandmarksPacket:handLandmarksPacket - .Get>() - worldLandmarksPacket:worldLandmarksPacket + handLandmarksProto:handLandmarksPacket.Get< + std::vector>() + worldLandmarksProto:worldLandmarksPacket .Get>() timestampInMilliSeconds:timestampInMilliseconds]; }