Fixed extra condition check in iOS Image Segmenter Result Helper

This commit is contained in:
Prianka Liz Kariat 2023-10-23 20:02:39 +05:30
parent 0dee33ccba
commit 305f076c7f

View File

@ -47,7 +47,7 @@ using ::mediapipe::Packet;
->PixelData()
width:confidenceMask.width()
height:confidenceMask.height()
shouldCopy:shouldCopyMaskPacketData ? YES : NO]];
shouldCopy:shouldCopyMaskPacketData]];
}
}
@ -57,7 +57,7 @@ using ::mediapipe::Packet;
initWithUInt8Data:(UInt8 *)cppCategoryMask.GetImageFrameSharedPtr().get()->PixelData()
width:cppCategoryMask.width()
height:cppCategoryMask.height()
shouldCopy:shouldCopyMaskPacketData ? YES : NO];
shouldCopy:shouldCopyMaskPacketData];
}
if (qualityScoresPacket.ValidateAsType<std::vector<float>>().ok()) {