We use the technology: Google Cloud Cloud Vision API. This is an appliction using mobile images or images taken through camera to take information whether the vegetable is fresh or not so fresh. Analyse the image through provided API.
Cloud Vision API provides powerful Image Analytics capabilities as easy to use APIs. It enables application developers to build the next generation of applications that can see and understand the content within the images.
- Here is the quick demostration of application that how it will use the device hardware from the side of end user.
- The application uses only device's camera to get the image.
- Then we convert taken image into bitmap format, so it is easy to read the image. After this, it is encoded into base64.
- Which take the image and compare to the information available on server to provided image.
- Here is the quick demostration of application that how it will work on already stored files.
- The application uses only image format files stored in your local storage.
- After this, all procedure is as similar as in case of camera. It convert the image into bitmap format, so it is easy to read the image and it is encoded into base64.
Step 1 : First go to Google Cloud Console and search for Google Vision API. Enable the API and copy API key and save it for later.
If you won't have Billing account then continue from step 2 else jump to step 3.
Step 2 : Go to qwiklabs.com and search Google Vision API lab. (you might find many labs so choose any one of them).
Step 3 : As shown in step 1, copy the API key from student account of qwiklabs and save it for later.
Step 4 : Select your desired local system directory to clone the project using step 5 command.
Step 5 : $ git clone DSC-SVVV/Google-Cloud-Platform-_-Cloud-Vision-API
Step 6 : Open this project through Android Studio.
Step 7 : Now, go to line number 50 of your MainActivity.java and paste the API key.
Step 8 : Yeah! Now you are able to get information through images.
- We want to optimse our application as much responsive as possible.
- We are trying to manage the running camera like a recording view.
- Shows the image information very quickly on camera view, not in another activity.