Photo

public class Photo : Input

Photo input takes photo from CameraDevice or Image and pushes it into the photo processor.

  • Create photo input

    Declaration

    Swift

    public init()
  • Take High Quality photo from CameraDevice with specified settings

    Declaration

    Swift

    public func take(from cameraDevice: CameraDevice, with settings: CameraPhotoSettings)

    Parameters

    cameraDevice

    to take photo

    settings

    photo settings for CameraDevice

  • Take photo from image

    Declaration

    Swift

    public func take(from image: UIImage)

    Parameters

    image

    image

  • Take photo from pixelBuffer

    Declaration

    Swift

    public func take(from pixelBuffer: CVPixelBuffer)

    Parameters

    pixelBuffer

    CVPixelBuffer with photo

  • Declaration

    Swift

    public func frameProcessor() -> BNBFrameProcessor?