This will fix typos in tasks internal files.

PiperOrigin-RevId: 541945726
This commit is contained in:
MediaPipe Team 2023-06-20 09:14:39 -07:00 committed by Copybara-Service
parent bd3a8d885d
commit 86bc764b6e
9 changed files with 26 additions and 26 deletions

View File

@ -155,12 +155,12 @@ static const float kKeypointErrorThreshold = 1e-2;
NSInteger iterationCount = 100; NSInteger iterationCount = 100;
// Because of flow limiting, the callback might be invoked fewer than `iterationCount` times. An // 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 // `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 // Since it is not possible to predict how many times the expectation is supposed to be
// fullfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and // fulfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and
// `expectation.isInverted = true` ensures that test succeeds if expectation is fullfilled <= // `expectation.isInverted = true` ensures that test succeeds if expectation is fulfilled <=
// `iterationCount` times. // `iterationCount` times.
XCTestExpectation *expectation = [[XCTestExpectation alloc] XCTestExpectation *expectation = [[XCTestExpectation alloc]
initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"]; initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"];
@ -385,13 +385,13 @@ static const float kKeypointErrorThreshold = 1e-2;
NSInteger iterationCount = 100; NSInteger iterationCount = 100;
// Because of flow limiting, the callback might be invoked fewer than `iterationCount` times. An // 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 // normal expectation will fail if expectation.fulfill() is not called times. An normal
// expectation will fail if expectation.fullfill() is not called // expectation will fail if expectation.fulfill() is not called
// `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will // `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 // Since it it not possible to determine how many times the expectation is supposed to be
// fullfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and // fulfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and
// `expectation.isInverted = true` ensures that test succeeds if expectation is fullfilled <= // `expectation.isInverted = true` ensures that test succeeds if expectation is fulfilled <=
// `iterationCount` times. // `iterationCount` times.
XCTestExpectation *expectation = [[XCTestExpectation alloc] XCTestExpectation *expectation = [[XCTestExpectation alloc]
initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"]; initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"];

View File

@ -174,12 +174,12 @@ constexpr float kFacialTransformationMatrixErrorThreshold = 0.2f;
NSInteger iterationCount = 100; NSInteger iterationCount = 100;
// Because of flow limiting, the callback might be invoked fewer than `iterationCount` times. An // 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 // `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 // Since it is not possible to predict how many times the expectation is supposed to be
// fullfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and // fulfilled, `expectation.expectedFulfillmentCount` = `iterationCount` + 1 and
// `expectation.isInverted = true` ensures that test succeeds if expectation is fullfilled <= // `expectation.isInverted = true` ensures that test succeeds if expectation is fulfilled <=
// `iterationCount` times. // `iterationCount` times.
XCTestExpectation *expectation = [[XCTestExpectation alloc] XCTestExpectation *expectation = [[XCTestExpectation alloc]
initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"]; initWithDescription:@"detectWithOutOfOrderTimestampsAndLiveStream"];

View File

@ -654,9 +654,9 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
// times. An 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 // `expectation.expectedFulfillmentCount` times. If `expectation.isInverted = true`, the test will
// only succeed if expectation is not fulfilled for the specified `expectedFulfillmentCount`. // 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 // 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. // `iterationCount` times.
XCTestExpectation *expectation = XCTestExpectation *expectation =
[[XCTestExpectation alloc] initWithDescription:@"recognizeWithLiveStream"]; [[XCTestExpectation alloc] initWithDescription:@"recognizeWithLiveStream"];

View File

@ -673,10 +673,10 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
// If `expectation.isInverted = true`, the test will only succeed if // If `expectation.isInverted = true`, the test will only succeed if
// expectation is not fulfilled for the specified `expectedFulfillmentCount`. // expectation is not fulfilled for the specified `expectedFulfillmentCount`.
// Since in our case we cannot predict how many times the expectation is // 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.expectedFulfillmentCount` = `iterationCount` + 1 and
// `expectation.isInverted = true` ensures that test succeeds if // `expectation.isInverted = true` ensures that test succeeds if
// expectation is fullfilled <= `iterationCount` times. // expectation is fulfilled <= `iterationCount` times.
XCTestExpectation *expectation = XCTestExpectation *expectation =
[[XCTestExpectation alloc] initWithDescription:@"classifyWithLiveStream"]; [[XCTestExpectation alloc] initWithDescription:@"classifyWithLiveStream"];

View File

@ -165,7 +165,7 @@ static NSString *const kTaskPrefix = @"com.mediapipe.tasks.vision";
// For 90° and 270° rotations, we need to swap width and height. // For 90° and 270° rotations, we need to swap width and height.
// This is due to the internal behavior of ImageToTensorCalculator, which: // 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 // - 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 rotates this by denormalized rect by the provided rotation, and uses this for cropping,
// - then finally rotates this back. // - then finally rotates this back.
if (rotationDegrees % 180 == 0) { if (rotationDegrees % 180 == 0) {

View File

@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param transformationMatrixesPacket a MediaPipe packet wrapping a * @param transformationMatrixesPacket a MediaPipe packet wrapping a
* `std::vector<FaceGeometryProto>`. * `std::vector<FaceGeometryProto>`.
* *
* @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 *) + (MPPFaceLandmarkerResult *)
faceLandmarkerResultWithLandmarksPacket:(const ::mediapipe::Packet &)landmarksPacket faceLandmarkerResultWithLandmarksPacket:(const ::mediapipe::Packet &)landmarksPacket

View File

@ -308,7 +308,7 @@ export class ImageSegmenter extends VisionTaskRunner {
/** /**
* Performs image segmentation on the provided video frame and returns the * Performs image segmentation on the provided video frame and returns the
* segmentation result. This method creates a copy of the resulting masks and * 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`. * when the ImageSegmenter is created with running mode `video`.
* *
* @param videoFrame A video frame to process. * @param videoFrame A video frame to process.

View File

@ -230,7 +230,7 @@ export class InteractiveSegmenter extends VisionTaskRunner {
/** /**
* Performs interactive segmentation on the provided video frame and returns * Performs interactive segmentation on the provided video frame and returns
* the segmentation result. This method creates a copy of the resulting masks * 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. * is used to represent a user's region of interest for segmentation.
* *
* @param image An image to process. * @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 * Performs interactive segmentation on the provided video frame and returns
* the segmentation result. This method creates a copy of the resulting masks * 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. * is used to represent a user's region of interest for segmentation.
* *
* The 'image_processing_options' parameter can be used to specify the * The 'image_processing_options' parameter can be used to specify the

View File

@ -233,7 +233,7 @@ export class PoseLandmarker extends VisionTaskRunner {
/** /**
* Performs pose detection on the provided single image and waits * Performs pose detection on the provided single image and waits
* synchronously for the response. This method creates a copy of the resulting * 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 * use this method when the PoseLandmarker is created with running mode
* `image`. * `image`.
* *
@ -246,7 +246,7 @@ export class PoseLandmarker extends VisionTaskRunner {
/** /**
* Performs pose detection on the provided single image and waits * Performs pose detection on the provided single image and waits
* synchronously for the response. This method creates a copy of the resulting * 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 * use this method when the PoseLandmarker is created with running mode
* `image`. * `image`.
* *
@ -311,7 +311,7 @@ export class PoseLandmarker extends VisionTaskRunner {
/** /**
* Performs pose detection on the provided video frame and returns the result. * 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 * 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`. * PoseLandmarker is created with running mode `video`.
* *
* @param videoFrame A video frame to process. * @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. * 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 * 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 * callback returns. Only use this method when the PoseLandmarker is created
* with running mode `video`. * with running mode `video`.
* *