This will fix typos in tasks internal files.
PiperOrigin-RevId: 541945726
This commit is contained in:
		
							parent
							
								
									bd3a8d885d
								
							
						
					
					
						commit
						86bc764b6e
					
				| 
						 | 
				
			
			@ -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"];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
 | 
			
		|||
 * @param transformationMatrixesPacket a MediaPipe packet wrapping a
 | 
			
		||||
 * `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 *)
 | 
			
		||||
    faceLandmarkerResultWithLandmarksPacket:(const ::mediapipe::Packet &)landmarksPacket
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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`.
 | 
			
		||||
   *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user