https://github.com/fluidgroup/capturer
📸 A wrapper for AVCaptureSession - The way easier to use the Camera.
https://github.com/fluidgroup/capturer
hacktoberfest
Last synced: 3 months ago
JSON representation
📸 A wrapper for AVCaptureSession - The way easier to use the Camera.
- Host: GitHub
- URL: https://github.com/fluidgroup/capturer
- Owner: FluidGroup
- Created: 2021-09-21T08:32:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-30T01:57:25.000Z (about 1 year ago)
- Last Synced: 2026-01-23T14:11:46.375Z (5 months ago)
- Topics: hacktoberfest
- Language: Swift
- Homepage:
- Size: 93.8 KB
- Stars: 23
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Capturer
A wrapper for AVCaptureSession - The way easier to use the Camera.
## Setting up
```swift
let captureBody = CaptureBody(
configuration: .init {
$0.sessionPreset = .photo
}
)
```
```swift
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