diff --git a/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetector.mm b/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetector.mm index 47ee77dd5..f975d9743 100644 --- a/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetector.mm +++ b/mediapipe/tasks/ios/vision/object_detector/sources/MPPObjectDetector.mm @@ -82,7 +82,7 @@ static NSString *const kTaskName = @"objectDetector"; MPPObjectDetectorResult *result = [MPPObjectDetectorResult objectDetectorResultWithDetectionsPacket: - outputPacketMap:[kDetectionsStreamName.cppString]]; + outputPacketMap[kDetectionsStreamName.cppString]]; NSInteger timeStampInMilliseconds = outputPacketMap[kImageOutStreamName.cppString].Timestamp().Value() /