generateScaledMaskForImage(forInstances:from:)
Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify.
Declaration
func generateScaledMaskForImage(forInstances instances: IndexSet, from requestHandler: VNImageRequestHandler) throws -> CVPixelBufferParameters
- instances:
The collection of instances.
- requestHandler:
The image request callback.
Return Value
The pixel buffer that contains the image.