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