VisionSource

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

    Declaration

    Swift

    var properties: VisionPropertyCollection? { get }
  • Initializes a new instance of a vision source using the provided capture device configuration.

    Declaration

    Swift

    init(sourceOptions options: VisionSourceOptions) throws

    Parameters

    options

    A AZVisionSourceOptions object predefined device configuration

    outError

    error information.

    Return Value

    a vision source instance.

  • Initializes a new instance of the AZVisionSource class using the capture device specified.

    Declaration

    Swift

    init(deviceAttributes: String) throws

    Parameters

    deviceAttributes

    A string that specifies the attributes of the device (e.g. “front=true;”, …).

    Return Value

    a vision source instance.

  • Initializes a new instance of the AZVisionSource class using the locally accessible file specified.

    Declaration

    Swift

    init(file filePath: String, frameFormat: VisionFrameFormat) throws

    Parameters

    filePath

    A string that specifies the locally accessible file.

    Return Value

    a vision source instance.

  • Initializes a new instance of the AZVisionSource class using a byte buffer in memory containing image encoded in well-known formats.

    Declaration

    Swift

    init(data: Data) throws

    Parameters

    data

    A byte buffer in memory containing image encoded in well-known formats.

    Return Value

    a vision source instance.

  • Initializes a new instance of the AZVisionSource class using the specified UIImage.

    Declaration

    Swift

    init(uiImage image: UIImage) throws

    Parameters

    image

    A UIImage object that specifies the image file.

    Return Value

    a vision source instance.

  • Initializes a new instance of the AZVisionSource class using the internet accessible URL specified.

    Declaration

    Swift

    init(url: String) throws

    Parameters

    url

    A string that specifies the internet accessible URL

    Return Value

    a vision source instance.

  • Initializes a new instance of the AZVisionSource class with a FrameSource w/ a FrameWriter.

    Declaration

    Swift

    init(frameSource: VisionFrameSource) throws

    Parameters

    frameSource

    A FrameSource object

    Return Value

    a vision source instance.

  • Gets the handle to AZVisionCamera object for specific capture device control.

    Declaration

    Swift

    func getVisionCamera() -> VisionCamera?