yasintorun / vision-camera-base64

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

Home Page:https://www.npmjs.com/package/vision-camera-base64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://www.npmjs.com/package/vision-camera-base64

License:MIT License


Languages

Language:Java 53.0%Language:C++ 14.7%Language:Objective-C++ 8.9%Language:Ruby 5.9%Language:Objective-C 5.5%Language:JavaScript 3.9%Language:TypeScript 3.3%Language:Swift 1.8%Language:Starlark 1.2%Language:Shell 1.0%Language:CMake 0.6%Language:C 0.2%