Vision Camera Integration
The library allows frames from frame processors to be easily converted into OpenCV objects. To install the library and its dependencies, follow these steps.
- Add libraries:
yarn add react-native-vision-camera react-native-worklets-coreAnd then:
cd ios && pod install- Update
Info.plistand add the following lines inside the<dict>tag:
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to your Camera.</string>- Update
AndroidManifest.xmland add the following line inside the<manifest>tag:
<uses-permission android:name="android.permission.CAMERA" />- Add the babel plugin to your
babel.config.js:
module.exports = {
plugins: [
["react-native-worklets-core/plugin"],
// ...
],
// ...
};- Restart Metro with clean cache:
yarn start --reset-cacheYou can find a detailed description of the installation process here .
Usage
The methods of use are here.
Last updated on