ntnmrndn / Capturer

📸 A wrapper for AVCaptureSession - The way easier to use the Camera.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capturer

A wrapper for AVCaptureSession - The way easier to use the Camera.

Setting up

let captureBody = CaptureBody(
  configuration: .init {
    $0.sessionPreset = .photo
  }
)
let input = CameraInput.wideAngleCamera(position: .back)

await captureBody.attach(input: input)

let previewOutput = PreviewOutput()
let photoOutput = PhotoOutput()

await captureBody.attach(output: previewOutput)
await captureBody.attach(output: photoOutput)

let previewView = PixelBufferView()
previewView.attach(output: previewOutput)

captureBody.start()

License

MIT

About

📸 A wrapper for AVCaptureSession - The way easier to use the Camera.


Languages

Language:Swift 96.1%Language:Ruby 2.8%Language:Objective-C 1.1%