Fixed extra condition check in iOS Image Segmenter Result Helper
This commit is contained in:
		
							parent
							
								
									0dee33ccba
								
							
						
					
					
						commit
						305f076c7f
					
				| 
						 | 
					@ -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()) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user