Версия Xcode: 16.2
macOS: 15.7.2
Код на изображении:
Код: Выделить всё
guard let currentImage = self.currentImage else {return nil}
let yoloBoundingBox = hairManager.getWholeBodyBoundingBox(faceBoundingBox: boundingBox.getRect(of: currentImage.size), imageSize: currentImage.size)
let (_, rollValue) = hairManager.getBoundingBox(faceBoundingBox: boundingBox.getRect(of: currentImage.size))
let (humanMask, wbBoundingBox) = _getMask(using: boundingBox) ?? (currentImage.cropImageToRect(cropRect: yoloBoundingBox), yoloBoundingBox)
guard let humanMask = humanMask else {
return nil
}

Подробнее здесь: https://stackoverflow.com/questions/798 ... code-debug