92 lines
2.3 KiB
Markdown
Raw Normal View History

2021-02-19 16:08:26 +01:00
<table>
<tr>
2021-02-23 09:39:52 +01:00
<th>README</th>
2021-02-24 22:19:28 +01:00
<th><a href="./docs/SETUP.md">SETUP</a></th>
2021-02-23 09:39:52 +01:00
<th><a href="./docs/DEVICES.md">DEVICES</a></th>
<th><a href="./docs/FORMATS.md">FORMATS</a></th>
<th><a href="./docs/FRAME_PROCESSORS.md">FRAME_PROCESSORS</a></th>
<th><a href="./docs/ANIMATED.md">ANIMATED</a></th>
<th><a href="./docs/ERRORS.md">ERRORS</a></th>
2021-02-19 16:08:26 +01:00
</tr>
</table>
2021-02-23 09:36:50 +01:00
<br/>
<h1 align="center">Camera</h1>
2021-02-19 16:08:26 +01:00
<div align="center">
2021-02-24 21:51:47 +01:00
<img src="img/11.png" width="50%">
2021-02-19 16:08:26 +01:00
<br />
<br />
2021-02-20 16:45:10 +01:00
<blockquote><h4>📸 The Camera library that sees the vision.</h4></blockquote>
2021-02-19 16:08:26 +01:00
<br />
2021-02-25 13:02:10 +01:00
2021-02-23 11:16:08 +01:00
<a href="https://cuvent.com"><img height=40 src="./img/cuvent-logo-text.svg"></a>
2021-02-25 13:02:10 +01:00
<br/>
2021-02-25 13:41:07 +01:00
<span>
<a align="center" href="https://github.com/mrousavy?tab=followers">
<img src="https://img.shields.io/github/followers/mrousavy?label=Follow%20%40mrouscuventavy&style=social" />
</a>
<a align="center" href="https://github.com/mrousavy?tab=followers">
<img src="https://img.shields.io/github/followers/cuvent?label=Follow%20%40cuvent&style=social" />
</a>
</span>
<br />
<span>
<a align="center" href="https://twitter.com/mrousavy">
<img src="https://img.shields.io/twitter/follow/mrousavy?label=Follow%20%40mrousavy&style=social" />
</a>
<a align="center" href="https://twitter.com/cuventtech">
<img src="https://img.shields.io/twitter/follow/cuventtech?label=Follow%20%40cuventtech&style=social" />
</a>
</span>
</table>
2021-02-19 16:08:26 +01:00
</div>
<br/>
<br/>
2021-02-20 16:45:10 +01:00
<div>
<img align="right" width="35%" src="./img/example.png">
</div>
2021-02-19 16:08:26 +01:00
### Install
2021-02-19 16:07:53 +01:00
```sh
2021-02-19 16:08:26 +01:00
npm i react-native-vision-camera
npx pod-install
2021-02-19 16:07:53 +01:00
```
2021-02-20 16:45:10 +01:00
2021-02-20 16:48:32 +01:00
### Features
* Photo and Video capture
* Customizable device (`ultra-wide-angle`, `wide-angle`, `telephoto` and virtual multi-cameras)
2021-02-20 16:51:13 +01:00
* Customizable FPS
* JS worklet frame processors powered by JSI and Reanimated (WIP [#2](https://github.com/cuvent/react-native-vision-camera/pull/2))
2021-02-20 16:48:32 +01:00
* Reanimated zooming
* HDR & Night modes
2021-02-20 16:49:13 +01:00
> See the [example](./example/) app
2021-02-20 16:45:10 +01:00
### Example
```tsx
function App() {
2021-02-22 09:43:47 +01:00
const devices = useCameraDevices('wide-angle-camera')
const device = devices.back
2021-02-20 16:45:10 +01:00
return (
<Camera
style={StyleSheet.absoluteFill}
device={device}
2021-02-23 10:56:05 +01:00
isActive={true}
2021-02-20 16:45:10 +01:00
/>
)
}
```
2021-02-24 21:56:50 +01:00
<br />
2021-02-24 22:19:28 +01:00
#### 🚀 Get started by [setting up permissions](./docs/SETUP.md)!