Skip to content

virtuaspectro/vision-camera-base64

 
 

Repository files navigation

vision-camera-base64

A simple VisionCamera FrameProcessor plugin. Convert the frame to base64 string format.

Note: This plugin is only string and not include data:image/blabla/;base64,

Installation

npm install vision-camera-base64

Add this line to babel.config.js

[
    'react-native-reanimated/plugin',
    {
        globals: ['__frameToBase64'],
    },
],

Usage

import { frameToBase64 } from 'vision-camera-base64';

// ...
const process = useFrameProcessor((frame) => {
    'worklet'
    const imageAsBase64 = frameToBase64(frame)
}, [])

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 💜

About

Vision Camera Frame Processor plugin. Convert the frame to base64 image data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 53.0%
  • C++ 14.7%
  • Objective-C++ 8.9%
  • Ruby 5.9%
  • Objective-C 5.5%
  • JavaScript 3.9%
  • Other 8.1%