Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrousavy/vision-camera-image-labeler
VisionCamera Frame Processor Plugin to label images using MLKit Vision
https://github.com/mrousavy/vision-camera-image-labeler
ai camera frame-processor-plugin image-labeling library ml mlkit-vision react-native vision vision-camera
Last synced: 7 days ago
JSON representation
VisionCamera Frame Processor Plugin to label images using MLKit Vision
- Host: GitHub
- URL: https://github.com/mrousavy/vision-camera-image-labeler
- Owner: mrousavy
- License: mit
- Created: 2021-05-06T12:18:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T21:39:51.000Z (5 months ago)
- Last Synced: 2024-12-25T10:03:23.672Z (14 days ago)
- Topics: ai, camera, frame-processor-plugin, image-labeling, library, ml, mlkit-vision, react-native, vision, vision-camera
- Language: Java
- Homepage: https://github.com/mrousavy/react-native-vision-camera
- Size: 469 KB
- Stars: 123
- Watchers: 6
- Forks: 27
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# vision-camera-image-labeler
A [VisionCamera](https://github.com/mrousavy/react-native-vision-camera) Frame Processor Plugin to label images using [**MLKit Vision** Image Labeling](https://developers.google.com/ml-kit/vision/image-labeling).
## Installation
```sh
npm install vision-camera-image-labeler
cd ios && pod install
```Add the plugin to your `babel.config.js`:
```js
module.exports = {
plugins: [
[
'react-native-reanimated/plugin',
{
globals: ['__labelImage'],
},
],// ...
```> Note: You have to restart metro-bundler for changes in the `babel.config.js` file to take effect.
## V2 vs V3
Note: Currently this plugin only works for VisionCamera V2 since I have not dedicated any time to upgrade it to V3 yet.
## Usage
```js
import { labelImage } from "vision-camera-image-labeler";// ...
const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const labels = labelImage(frame);
}, []);
```## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT