React Native + Google Vision API mobile application to identify objects in pictures taken using the phone
First, install dependencies by running
npm install
Get an API key for Google Cloud Vision here, then replace it here in app.js line 136
fetch('https://vision.googleapis.com/v1/images:annotate?key=[API key here]', {
To run in debug mode (youd need to connect an actual android device that can be found with adb)
react-native run-android
Youd need
- Android SDK (Easiest to download everything with Android Studio)
- npm or yarn
- Your own Google Cloud Vision Api key. Get one here
You'd want to generate a signing key and build the apk like here
-
create-react-native-app - Create a React Native app on any OS with no build config.
-
Google Cloud Vision API - Allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.
-
react-native-camera - A Camera component for React Native.
-
react-native-image-resizer - Resize local images with React Native
-
react-native-image-to-base64 - React Native module to get Image's base64 string
-
react-native-spinkit - A collection of animated loading indicators
I'm open to reasonable pull requests to just play around with the application for fun
- Hazlan Rozaimi - Initial work - dividezero
This project is licensed under the MIT License