VisionFrameFormat

class VisionFrameFormat : NSObject, AZVisionObjectHandle

Represents a collection of image format properties (e.g. FOURCC, width, height, stride, …)

  • Image format’s pixel width.

    Declaration

    Swift

    var width: Int { get }
  • Image format’s pixel height.

    Declaration

    Swift

    var height: Int { get }
  • Image format’s pixel stride.

    Declaration

    Swift

    var stride: Int { get }
  • Image format’s bits per pixel.

    Declaration

    Swift

    var bitsPerPixel: Int { get set }
  • Image format’s FOURCC value.

    Declaration

    Swift

    var fourCC: String? { get }
  • The collection of properties and their values defined for this AZVisionFrameFormat.

    Declaration

    Swift

    var properties: VisionPropertyCollection? { get }
  • Initializes a new instance of the AZVisionFrameFormat based on a FourCC value.

    Declaration

    Swift

    init(fourCCFormat fourCC: String, width: Int, height: Int, stride: Int) throws

    Parameters

    fourCC

    the FOURCC character string

    width

    The image format’s pixel width.

    height

    The image format’s pixel height.

    stride

    The image format’s pixel stride.

    outError

    error information.

    Return Value

    an instance of AZVisionFrameFormat.