* switch to firebase mlkit for text recognition * migrate android to MLKit migrate Text detection android to MLKit update gradle of example app Update build.gradle separate gms vision facedetector to general flavor migrate faceDetector to mlkit and fix incorrect bounds due to padding migrate barCode detector to mlkit update android instructions in readme safe face implementation move gms to generalImplementation * add mlkit example setup android of mlkit example setup ios of mlkit example fix typo in readme update example project readme * amend mlkit migration to include raw data add barcode detection in basic and mlkit examples * fix duplicate bridgeDidBackground method BREAKING CHANGE: We migrated to MLKit instead of Google Mobile Vision
33 lines
1.6 KiB
Markdown
33 lines
1.6 KiB
Markdown
# React Native Camera MLKit Example
|
|
|
|
An example project demonstrating the use of MLKit-based Text and Face Recognition features of react-native-camera.
|
|
|
|
### Features
|
|
|
|
Features of Basic Example + Face and Text Recognition.
|
|
|
|
Face Recognition: draws polygons around faces and red circles on top of face landmarks (ears, mouth, nose, etc.).
|
|
|
|
Text Recognition: draws polygons around text blocks and recognized within them.
|
|
|
|
### Setup
|
|
|
|
1. Run `yarn install`.
|
|
|
|
2. Create Firebase project, generate `google-services.json` and place it into `./android/app` folder, generate `GoogleService-Info.plist` and place it into `./ios/mlkit` folder.
|
|
|
|
3. Build project (you will likely need to manage signing if you are building for ios device)
|
|
|
|
### Contributing
|
|
|
|
- Pull Requests are welcome, if you open a pull request we will do our best to get to it in a timely manner
|
|
- Pull Request Reviews and even more welcome! we need help testing, reviewing, and updating open PRs
|
|
- If you are interested in contributing more actively, please contact me (same username on Twitter, Facebook, etc.) Thanks!
|
|
- If you want to help us coding, join Expo slack https://slack.expo.io/, so we can chat over there. (#react-native-camera)
|
|
|
|
### FAQ
|
|
|
|
## Why is `react-native-camera` not listed as a dependency in `package.json`?
|
|
|
|
`react-native` uses `metro` for dependency resolution. In order to not recursively install this example into the `node_modules` of this example we use `rn-cli.config.js` to resolve `react-native-camera`. This also allows a quicker iteration when developing (without having to `yarn install` after every single change in `react-native-camera`).
|