diff --git a/mediapipe/tasks/ios/test/vision/face_detector/MPPFaceDetectorTests.mm b/mediapipe/tasks/ios/test/vision/face_detector/MPPFaceDetectorTests.mm index ea066440..1976bf60 100644 --- a/mediapipe/tasks/ios/test/vision/face_detector/MPPFaceDetectorTests.mm +++ b/mediapipe/tasks/ios/test/vision/face_detector/MPPFaceDetectorTests.mm @@ -155,12 +155,12 @@ static const float kKeypointErrorThreshold = 1e-2; NSInteger iterationCount = 100; // Because of flow limiting, the callback might be invoked fewer than `iterationCount` times. An - // normal expectation will fail if expectation.fullfill() is not called + // normal expectation will fail if expectation.fulfill() is not called // `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will - // only succeed if expectation is not fullfilled for the specified `expectedFulfillmentCount`. + // only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`. // Since it is not possible to predict how many times the expectation is supposed to be - // fullfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and - // `expectation.isInverted = true` ensures that test succeeds if expectation is fullfilled <= + // fulfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and + // `expectation.isInverted = true` ensures that test succeeds if expectation is fulfilled <= // `iterationCount` times. XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"]; @@ -385,13 +385,13 @@ static const float kKeypointErrorThreshold = 1e-2; NSInteger iterationCount = 100; // Because of flow limiting, the callback might be invoked fewer than `iterationCount` times. An - // normal expectation will fail if expectation.fullfill() is not called times. An normal - // expectation will fail if expectation.fullfill() is not called + // normal expectation will fail if expectation.fulfill() is not called times. An normal + // expectation will fail if expectation.fulfill() is not called // `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will - // only succeed if expectation is not fullfilled for the specified `expectedFulfillmentCount`. + // only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`. // Since it it not possible to determine how many times the expectation is supposed to be - // fullfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and - // `expectation.isInverted = true` ensures that test succeeds if expectation is fullfilled <= + // fulfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and + // `expectation.isInverted = true` ensures that test succeeds if expectation is fulfilled <= // `iterationCount` times. XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"]; diff --git a/mediapipe/tasks/ios/test/vision/face_landmarker/MPPFaceLandmarkerTests.mm b/mediapipe/tasks/ios/test/vision/face_landmarker/MPPFaceLandmarkerTests.mm index f1d6033a..3ebc8946 100644 --- a/mediapipe/tasks/ios/test/vision/face_landmarker/MPPFaceLandmarkerTests.mm +++ b/mediapipe/tasks/ios/test/vision/face_landmarker/MPPFaceLandmarkerTests.mm @@ -174,12 +174,12 @@ constexpr float kFacialTransformationMatrixErrorThreshold = 0.2f; NSInteger iterationCount = 100; // Because of flow limiting, the callback might be invoked fewer than `iterationCount` times. An - // normal expectation will fail if expectation.fullfill() is not called + // normal expectation will fail if expectation.fulfill() is not called // `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will - // only succeed if expectation is not fullfilled for the specified `expectedFulfillmentCount`. + // only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`. // Since it is not possible to predict how many times the expectation is supposed to be - // fullfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and - // `expectation.isInverted = true` ensures that test succeeds if expectation is fullfilled <= + // fulfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and + // `expectation.isInverted = true` ensures that test succeeds if expectation is fulfilled <= // `iterationCount` times. XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"]; diff --git a/mediapipe/tasks/ios/test/vision/gesture_recognizer/MPPGestureRecognizerTests.m b/mediapipe/tasks/ios/test/vision/gesture_recognizer/MPPGestureRecognizerTests.m index 6bbcf9b1..8fbcb6b4 100644 --- a/mediapipe/tasks/ios/test/vision/gesture_recognizer/MPPGestureRecognizerTests.m +++ b/mediapipe/tasks/ios/test/vision/gesture_recognizer/MPPGestureRecognizerTests.m @@ -654,9 +654,9 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation"; // times. An normal expectation will fail if expectation.fulfill() is not called // `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will // only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`. - // Since in our case we cannot predict how many times the expectation is supposed to be fullfilled + // Since in our case we cannot predict how many times the expectation is supposed to be fulfilled // setting, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and - // `expectation.isInverted = true` ensures that test succeeds ifexpectation is fullfilled <= + // `expectation.isInverted = true` ensures that test succeeds ifexpectation is fulfilled <= // `iterationCount` times. XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"recognizeWithLiveStream"]; diff --git a/mediapipe/tasks/ios/test/vision/image_classifier/MPPImageClassifierTests.m b/mediapipe/tasks/ios/test/vision/image_classifier/MPPImageClassifierTests.m index 59383dad..c0897692 100644 --- a/mediapipe/tasks/ios/test/vision/image_classifier/MPPImageClassifierTests.m +++ b/mediapipe/tasks/ios/test/vision/image_classifier/MPPImageClassifierTests.m @@ -673,10 +673,10 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation"; // If `expectation.isInverted = true`, the test will only succeed if // expectation is not fulfilled for the specified `expectedFulfillmentCount`. // Since in our case we cannot predict how many times the expectation is - // supposed to be fullfilled setting, + // supposed to be fulfilled setting, // `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and // `expectation.isInverted = true` ensures that test succeeds if - // expectation is fullfilled <= `iterationCount` times. + // expectation is fulfilled <= `iterationCount` times. XCTestExpectation *expectation = [[XCTestExpectation alloc] initWithDescription:@"classifyWithLiveStream"]; diff --git a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm index c1b5d058..cba8a63f 100644 --- a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm +++ b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm @@ -165,7 +165,7 @@ static NSString *const kTaskPrefix = @"com.mediapipe.tasks.vision"; // For 90° and 270° rotations, we need to swap width and height. // This is due to the internal behavior of ImageToTensorCalculator, which: // - first denormalizes the provided rect by multiplying the rect width or height by the image - // width or height, repectively. + // width or height, respectively. // - then rotates this by denormalized rect by the provided rotation, and uses this for cropping, // - then finally rotates this back. if (rotationDegrees % 180 == 0) { diff --git a/mediapipe/tasks/ios/vision/face_landmarker/utils/sources/MPPFaceLandmarkerResult+Helpers.h b/mediapipe/tasks/ios/vision/face_landmarker/utils/sources/MPPFaceLandmarkerResult+Helpers.h index 422e1bf0..b27bd267 100644 --- a/mediapipe/tasks/ios/vision/face_landmarker/utils/sources/MPPFaceLandmarkerResult+Helpers.h +++ b/mediapipe/tasks/ios/vision/face_landmarker/utils/sources/MPPFaceLandmarkerResult+Helpers.h @@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN * @param transformationMatrixesPacket a MediaPipe packet wrapping a * `std::vector`. * - * @return An `MPPFaceLandmarkerResult` object that contains the contenst of the provided packets. + * @return An `MPPFaceLandmarkerResult` object that contains the contents of the provided packets. */ + (MPPFaceLandmarkerResult *) faceLandmarkerResultWithLandmarksPacket:(const ::mediapipe::Packet &)landmarksPacket diff --git a/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts b/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts index 6d295aaa..2f35f667 100644 --- a/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts +++ b/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts @@ -308,7 +308,7 @@ export class ImageSegmenter extends VisionTaskRunner { /** * Performs image segmentation on the provided video frame and returns the * segmentation result. This method creates a copy of the resulting masks and - * should not be used in high-throughput applictions. Only use this method + * should not be used in high-throughput applications. Only use this method * when the ImageSegmenter is created with running mode `video`. * * @param videoFrame A video frame to process. diff --git a/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts b/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts index 662eaf09..acd7265c 100644 --- a/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts +++ b/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts @@ -230,7 +230,7 @@ export class InteractiveSegmenter extends VisionTaskRunner { /** * Performs interactive segmentation on the provided video frame and returns * the segmentation result. This method creates a copy of the resulting masks - * and should not be used in high-throughput applictions. The `roi` parameter + * and should not be used in high-throughput applications. The `roi` parameter * is used to represent a user's region of interest for segmentation. * * @param image An image to process. @@ -243,7 +243,7 @@ export class InteractiveSegmenter extends VisionTaskRunner { /** * Performs interactive segmentation on the provided video frame and returns * the segmentation result. This method creates a copy of the resulting masks - * and should not be used in high-throughput applictions. The `roi` parameter + * and should not be used in high-throughput applications. The `roi` parameter * is used to represent a user's region of interest for segmentation. * * The 'image_processing_options' parameter can be used to specify the diff --git a/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts b/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts index 927b3c24..d2cb9234 100644 --- a/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts +++ b/mediapipe/tasks/web/vision/pose_landmarker/pose_landmarker.ts @@ -233,7 +233,7 @@ export class PoseLandmarker extends VisionTaskRunner { /** * Performs pose detection on the provided single image and waits * synchronously for the response. This method creates a copy of the resulting - * masks and should not be used in high-throughput applictions. Only + * masks and should not be used in high-throughput applications. Only * use this method when the PoseLandmarker is created with running mode * `image`. * @@ -246,7 +246,7 @@ export class PoseLandmarker extends VisionTaskRunner { /** * Performs pose detection on the provided single image and waits * synchronously for the response. This method creates a copy of the resulting - * masks and should not be used in high-throughput applictions. Only + * masks and should not be used in high-throughput applications. Only * use this method when the PoseLandmarker is created with running mode * `image`. * @@ -311,7 +311,7 @@ export class PoseLandmarker extends VisionTaskRunner { /** * Performs pose detection on the provided video frame and returns the result. * This method creates a copy of the resulting masks and should not be used - * in high-throughput applictions. Only use this method when the + * in high-throughput applications. Only use this method when the * PoseLandmarker is created with running mode `video`. * * @param videoFrame A video frame to process. @@ -324,7 +324,7 @@ export class PoseLandmarker extends VisionTaskRunner { /** * Performs pose detection on the provided video frame and returns the result. * This method creates a copy of the resulting masks and should not be used - * in high-throughput applictions. The method returns synchronously once the + * in high-throughput applications. The method returns synchronously once the * callback returns. Only use this method when the PoseLandmarker is created * with running mode `video`. *