Fixed typo in iOS MPPImageSegmenterResult helpers

This commit is contained in:
Prianka Liz Kariat 2023-09-15 14:24:15 +05:30
parent b3be1418da
commit 0f511d52d6

View File

@ -52,7 +52,7 @@ using ::mediapipe::Packet;
}
if (categoryMaskPacket.ValidateAsType<Image>().ok()) {
const Image &cppCategoryMask = confidenceMasksPacket.Get<Image>();
const Image &cppCategoryMask = categoryMaskPacket.Get<Image>();
categoryMask = [[MPPMask alloc]
initWithUInt8Data:(UInt8 *)cppCategoryMask.GetImageFrameSharedPtr().get()->PixelData()
width:cppCategoryMask.width()