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:
parent
5366aa9d0a
commit
d0183b2c70
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user