Fixes typos in the file mediapipe/python/pybind/image.cc and mediapipe/python/pybind

/image_frame.cc.

PiperOrigin-RevId: 570388388
This commit is contained in:
MediaPipe Team 2023-10-03 07:58:59 -07:00 committed by Copybara-Service
parent 5366aa9d0a
commit d0183b2c70
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ void ImageSubmodule(pybind11::module* module) {
return Image(std::shared_ptr<ImageFrame>( return Image(std::shared_ptr<ImageFrame>(
CreateImageFrame<uint8_t>(format, data))); CreateImageFrame<uint8_t>(format, data)));
}), }),
R"doc(For uint8 data type, valid ImageFormat are GRAY8, SGRB, and SRGBA.)doc", R"doc(For uint8 data type, valid ImageFormat are GRAY8, SRGB, and SRGBA.)doc",
py::arg("image_format"), py::arg("data").noconvert()) py::arg("image_format"), py::arg("data").noconvert())
.def( .def(
py::init([](mediapipe::ImageFormat::Format format, py::init([](mediapipe::ImageFormat::Format format,

View File

@ -124,7 +124,7 @@ void ImageFrameSubmodule(pybind11::module* module) {
} }
return CreateImageFrame<uint8_t>(format, data); return CreateImageFrame<uint8_t>(format, data);
}), }),
R"doc(For uint8 data type, valid ImageFormat are GRAY8, SGRB, and SRGBA.)doc", R"doc(For uint8 data type, valid ImageFormat are GRAY8, SRGB, and SRGBA.)doc",
py::arg("image_format"), py::arg("data").noconvert()) py::arg("image_format"), py::arg("data").noconvert())
.def( .def(
py::init([](mediapipe::ImageFormat::Format format, py::init([](mediapipe::ImageFormat::Format format,