ff5a8b8900eaab5ad079a26a3a55e0cf486046ca
CoroutineScope and FrameProcessorThread) (#335)
* fix: Use custom CoroutineScope * fix: Use custom `CoroutineScope` * Make `frameProcessorThread` and `coroutineScope` instance variables * Update VisionCameraScheduler.java * Remove `HybridData::resetNative()` calls they're called by a Java GC destructor anyways. * Update CameraViewManager.kt * Update CameraView.kt
fix: Improve Android resource efficiency/cleanup (use class members for
CoroutineScope and FrameProcessorThread) (#335)
Vision Camera
Documentation
Features
- Photo, Video and Snapshot capture
- Customizable devices and multi-cameras (smoothly zoom out to "fish-eye" camera)
- Customizable FPS
- Frame Processors (JS worklets to run QR-Code scanning, facial recognition, AI object detection, realtime video chats, ...)
- Smooth zooming (Reanimated)
- Fast pause and resume
- HDR & Night modes
See the example app
Example
function App() {
const devices = useCameraDevices('wide-angle-camera')
const device = devices.back
if (device == null) return <LoadingView />
return (
<Camera
style={StyleSheet.absoluteFill}
device={device}
isActive={true}
/>
)
}
🚀 Get started by setting up permissions!
Languages
Kotlin
32.2%
Swift
27.9%
TypeScript
16.3%
C++
10.4%
Objective-C++
6.5%
Other
6.7%

