diff --git a/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifier.mm b/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifier.mm index b817603f3..d093acc2a 100644 --- a/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifier.mm +++ b/mediapipe/tasks/ios/vision/image_classifier/sources/MPPImageClassifier.mm @@ -69,7 +69,7 @@ static NSString *const kTaskGraphName = [NSString stringWithFormat:@"%@:%@", kImageTag, kImageOutStreamName] ] taskOptions:options - enableFlowLimiting:NO + enableFlowLimiting:options.runningMode == MPPRunningModeLiveStream error:error]; if (!taskInfo) {