Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 739 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 739 Bytes

react-native-image-to-rgb

library for converting images to rgb array buffers. This may be useful eg. if you want to detect what's on the image using https://github.com/mrousavy/react-native-fast-tflite. Library accepts both local and remote URIs.

Installation

npm install react-native-image-to-rgb

Usage

import { convertToRGB } from 'react-native-image-to-rgb';

// ...

const result = await convertToRGB(imageUri);
// result = [255, 254, 0, .....]

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