VerIDImage

@objc
public class VerIDImage : NSObject, ImageProvider, Codable
  • Sample buffer

    Declaration

    Swift

    @objc
    public let sampleBuffer: CMSampleBuffer?
  • CGImage representation

    Declaration

    Swift

    @objc
    public let cgImage: CGImage?
  • Original image orientation

    Declaration

    Swift

    @objc
    public let orientation: CGImagePropertyOrientation
  • Image processed for face detection

    Since

    1.9.0

    Declaration

    Swift

    @objc
    internal(set) public var faceDetectionImage: FaceDetectionImage? { get }
  • Name of the image processor used to prepare the image for face detection

    Since

    1.9.0

    Declaration

    Swift

    @objc
    internal(set) public var imageProcessorName: String? { get }
  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Create image from a sample buffer

    Declaration

    Swift

    @objc
    public init(sampleBuffer: CMSampleBuffer, orientation: CGImagePropertyOrientation)

    Parameters

    sampleBuffer

    Sample buffer, e.g., from a camera

    orientation

    Sample buffer image orientation

  • Create image from CGImage

    Declaration

    Swift

    @objc
    public init(cgImage: CGImage, orientation: CGImagePropertyOrientation)

    Parameters

    cgImage

    Source image

    orientation

    Source image orientation

  • Create image from URL

    Declaration

    Swift

    @objc
    public convenience init?(url: URL)

    Parameters

    url

    URL of the image file