Skip to content

iossocket/vision-camera-opencv-qrcode-parser

Repository files navigation

vision-camera-opencv-qrcode-parser

React Native Vision Camera Frame Processor Plugin of OpenCV QR Parser

Installation

npm install vision-camera-opencv-qrcode-parser

Usage

const frameProcessor = useFrameProcessor((frame) => {
  "worklet";
  const values = qrcodeProcessorPlugin(frame);
  console.log(`frameProcessor Return Values: ${JSON.stringify(values)}`);
}, []);

Add this in babel.config.js

module.exports = {
  ...
  plugins: [
    ...
    [
      "react-native-reanimated/plugin",
      {
        globals: [ "__qrcode_processor_plugin" ]
      }
    ]
  ],
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library