FritzVisionImage

@available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
@objc(FritzVisionImage)
public class FritzVisionImage : NSObject

An image or image buffer used in vision detection.

  • Shared CIContext

    Declaration

    Swift

    @objc
    public static let sharedContext: CIContext
  • CVPixelBuffer of image.

    Declaration

    Swift

    public let imageBuffer: CVPixelBuffer?
  • Declaration

    Swift

    public let sampleBuffer: CMSampleBuffer?
  • Declaration

    Swift

    public let image: UIImage?
  • Declaration

    Swift

    public var metadata: FritzVisionImageMetadata?
  • Declaration

    Swift

    @objc(initWithBuffer:)
    public init(buffer: CMSampleBuffer)
  • Declaration

    Swift

    @objc(initWithImageBuffer:)
    public init(imageBuffer: CVPixelBuffer)
  • Declaration

    Swift

    @objc(initWithCIImage:)
    convenience public init(ciImage: CIImage)
  • Declaration

    Swift

    @objc(initWithImage:)
    public init(image: UIImage)
  • Declaration

    Swift

    @objc(initWithImage:orientation:)
    public init(image: UIImage, orientation: CGImagePropertyOrientation)
  • Declaration

    Swift

    @objc(initWithImageBuffer:orientation:)
    public init(imageBuffer: CVPixelBuffer, orientation: CGImagePropertyOrientation)
  • Declaration

    Swift

    @objc(initWithSampleBuffer:connection:)
    public init(sampleBuffer: CMSampleBuffer, connection: AVCaptureConnection)
  • Declaration

    Swift

    public func buildImageRequestHandler() -> VNImageRequestHandler?