From 5ccf986513b1c2ef061bb2f53262ecdf31603587 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Sun, 26 Mar 2023 23:55:19 -0700 Subject: [PATCH] This CL fixes the multiple typos in the new task api solution PiperOrigin-RevId: 519634122 --- .../processors/image_preprocessing_graph.cc | 2 +- .../tasks/cc/components/utils/gate_test.cc | 24 +++++++++---------- .../vision/core/sources/MPPVisionTaskRunner.h | 6 ++--- .../core/sources/MPPVisionTaskRunner.mm | 6 ++--- .../image_segmenter_metadata_schema.fbs | 2 +- .../web/vision/face_stylizer/face_stylizer.ts | 6 ++--- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/mediapipe/tasks/cc/components/processors/image_preprocessing_graph.cc b/mediapipe/tasks/cc/components/processors/image_preprocessing_graph.cc index 7093d96f..f07b2da8 100644 --- a/mediapipe/tasks/cc/components/processors/image_preprocessing_graph.cc +++ b/mediapipe/tasks/cc/components/processors/image_preprocessing_graph.cc @@ -107,7 +107,7 @@ absl::Status ConfigureImageToTensorCalculator( options->mutable_output_tensor_float_range()->set_max((255.0f - mean) / std); } - // TODO: need to support different GPU origin on differnt + // TODO: need to support different GPU origin on different // platforms or applications. options->set_gpu_origin(mediapipe::GpuOrigin::TOP_LEFT); return absl::OkStatus(); diff --git a/mediapipe/tasks/cc/components/utils/gate_test.cc b/mediapipe/tasks/cc/components/utils/gate_test.cc index 7fdca48e..47ff2507 100644 --- a/mediapipe/tasks/cc/components/utils/gate_test.cc +++ b/mediapipe/tasks/cc/components/utils/gate_test.cc @@ -68,8 +68,8 @@ TEST(DisallowGate, VerifyConfig) { input_stream: "VALUE_3:__stream_3" )pb"))); - CalculatorGraph calcualtor_graph; - MP_EXPECT_OK(calcualtor_graph.Initialize(graph.GetConfig())); + CalculatorGraph calculator_graph; + MP_EXPECT_OK(calculator_graph.Initialize(graph.GetConfig())); } TEST(DisallowIf, VerifyConfig) { @@ -99,8 +99,8 @@ TEST(DisallowIf, VerifyConfig) { input_stream: "VALUE:__stream_1" )pb"))); - CalculatorGraph calcualtor_graph; - MP_EXPECT_OK(calcualtor_graph.Initialize(graph.GetConfig())); + CalculatorGraph calculator_graph; + MP_EXPECT_OK(calculator_graph.Initialize(graph.GetConfig())); } TEST(DisallowIf, VerifyConfigWithSideCondition) { @@ -130,8 +130,8 @@ TEST(DisallowIf, VerifyConfigWithSideCondition) { input_side_packet: "CONDITION:__side_packet_1" )pb"))); - CalculatorGraph calcualtor_graph; - MP_EXPECT_OK(calcualtor_graph.Initialize(graph.GetConfig())); + CalculatorGraph calculator_graph; + MP_EXPECT_OK(calculator_graph.Initialize(graph.GetConfig())); } TEST(AllowGate, VerifyConfig) { @@ -166,8 +166,8 @@ TEST(AllowGate, VerifyConfig) { input_stream: "VALUE_3:__stream_3" )pb"))); - CalculatorGraph calcualtor_graph; - MP_EXPECT_OK(calcualtor_graph.Initialize(graph.GetConfig())); + CalculatorGraph calculator_graph; + MP_EXPECT_OK(calculator_graph.Initialize(graph.GetConfig())); } TEST(AllowIf, VerifyConfig) { @@ -192,8 +192,8 @@ TEST(AllowIf, VerifyConfig) { input_stream: "VALUE:__stream_1" )pb"))); - CalculatorGraph calcualtor_graph; - MP_EXPECT_OK(calcualtor_graph.Initialize(graph.GetConfig())); + CalculatorGraph calculator_graph; + MP_EXPECT_OK(calculator_graph.Initialize(graph.GetConfig())); } TEST(AllowIf, VerifyConfigWithSideConition) { @@ -218,8 +218,8 @@ TEST(AllowIf, VerifyConfigWithSideConition) { input_side_packet: "CONDITION:__side_packet_1" )pb"))); - CalculatorGraph calcualtor_graph; - MP_EXPECT_OK(calcualtor_graph.Initialize(graph.GetConfig())); + CalculatorGraph calculator_graph; + MP_EXPECT_OK(calculator_graph.Initialize(graph.GetConfig())); } } // namespace diff --git a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.h b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.h index f19e4ca7..a7216840 100644 --- a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.h +++ b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.h @@ -91,7 +91,7 @@ NS_ASSUME_NONNULL_BEGIN * A synchronous method to invoke the C++ task runner to process single image inputs. The call * blocks the current thread until a failure status or a successful result is returned. * - * @param packetMap A `PackeMap` containing pairs of input stream name and data packet. + * @param packetMap A `PacketMap` containing pairs of input stream name and data packet. * @param error Pointer to the memory location where errors if any should be * saved. If @c NULL, no error will be saved. * @@ -105,7 +105,7 @@ NS_ASSUME_NONNULL_BEGIN * A synchronous method to invoke the C++ task runner to process continuous video frames. The call * blocks the current thread until a failure status or a successful result is returned. * - * @param packetMap A `PackeMap` containing pairs of input stream name and data packet. + * @param packetMap A `PacketMap` containing pairs of input stream name and data packet. * @param error Pointer to the memory location where errors if any should be saved. If @c NULL, no * error will be saved. * @@ -121,7 +121,7 @@ NS_ASSUME_NONNULL_BEGIN * available in the user-defined `packetsCallback` that was provided during initialization of the * `MPPVisionTaskRunner`. * - * @param packetMap A `PackeMap` containing pairs of input stream name and data packet. + * @param packetMap A `PacketMap` containing pairs of input stream name and data packet. * @param error Pointer to the memory location where errors if any should be saved. If @c NULL, no * error will be saved. * diff --git a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm index 492d29a8..25e3f192 100644 --- a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm +++ b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm @@ -28,13 +28,13 @@ using ::mediapipe::tasks::core::PacketMap; using ::mediapipe::tasks::core::PacketsCallback; } // namespace -/** Rotation degress for a 90 degree rotation to the right. */ +/** Rotation degrees for a 90 degree rotation to the right. */ static const NSInteger kMPPOrientationDegreesRight = -90; -/** Rotation degress for a 180 degree rotation. */ +/** Rotation degrees for a 180 degree rotation. */ static const NSInteger kMPPOrientationDegreesDown = -180; -/** Rotation degress for a 90 degree rotation to the left. */ +/** Rotation degrees for a 90 degree rotation to the left. */ static const NSInteger kMPPOrientationDegreesLeft = -270; @interface MPPVisionTaskRunner () { diff --git a/mediapipe/tasks/metadata/image_segmenter_metadata_schema.fbs b/mediapipe/tasks/metadata/image_segmenter_metadata_schema.fbs index e120c64a..85010907 100644 --- a/mediapipe/tasks/metadata/image_segmenter_metadata_schema.fbs +++ b/mediapipe/tasks/metadata/image_segmenter_metadata_schema.fbs @@ -50,7 +50,7 @@ table ImageSegmenterOptions { // The minimum necessary image segmenter metadata parser version to fully // understand all fields in a given metadata flatbuffer. This field is - // automaticaly populated by the MetadataPopulator when the metadata is + // automatically populated by the MetadataPopulator when the metadata is // populated into a TFLite model. This min_parser_version is specific for the // image segmenter metadata defined in this schema file. min_parser_version:string; diff --git a/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts b/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts index 262b2043..34067aab 100644 --- a/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts +++ b/mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts @@ -130,7 +130,7 @@ export class FaceStylizer extends VisionTaskRunner { * FaceStylizer is created with the image running mode. * * The input image can be of any size. To ensure that the output image has - * reasonable quailty, the stylized output image size is determined by the + * reasonable quality, the stylized output image size is determined by the * model output size. * * @param image An image to process. @@ -154,7 +154,7 @@ export class FaceStylizer extends VisionTaskRunner { * first, then the specified rotation is applied to the crop. * * The input image can be of any size. To ensure that the output image has - * reasonable quailty, the stylized output image size is the smaller of the + * reasonable quality, the stylized output image size is the smaller of the * model output size and the size of the 'regionOfInterest' specified in * 'imageProcessingOptions'. * @@ -221,7 +221,7 @@ export class FaceStylizer extends VisionTaskRunner { * frame's timestamp (in milliseconds). The input timestamps must be * monotonically increasing. * - * To ensure that the output image has reasonable quailty, the stylized + * To ensure that the output image has reasonable quality, the stylized * output image size is the smaller of the model output size and the size of * the 'regionOfInterest' specified in 'imageProcessingOptions'. *