VisionFrameSource

class VisionFrameSource : NSObject, AZVisionObjectHandle
  • The collection of properties and their values defined for this AZVisionFrameSource.

    Declaration

    Swift

    var properties: VisionPropertyCollection? { get }
  • The AZVisionFrameWriter used to write frame data into this AZVisionFrameSource object.

    Declaration

    Swift

    @NSCopying var frameWriter: VisionFrameWriter? { get }
  • Initializes a new instance of the FrameSource class.

    Declaration

    Swift

    init(format: VisionFrameFormat) throws

    Parameters

    format

    A FrameFormat.

    outError

    error information.

    Return Value

    an instance of AZVisionFrameSource.

  • Initializes a new instance of the FrameSource class.

    Declaration

    Swift

    init(format: VisionFrameFormat, callbackHandler: @escaping VisionFrameSourceCallbackHandler) throws

    Parameters

    format

    A FrameFormat.

    callbackHandler

    handler which will be called to read data from input stream.

    outError

    error information.

    Return Value

    an instance of AZVisionFrameSource.

  • Closes the source for writing.

    Declaration

    Swift

    func closeWriter() throws