Lab Assignment 2 - Niteesha97/CS551_team_labsassg GitHub Wiki
NITEESHA KOTHINTI
CLASS ID : 31
PARTNER NAME : SAI DIVYA CHENNUPATI
PARTNER ID : 7
OBJECTIVE-
Part 1-
- Create android application which have 1)Login and Registration Activities : The application should have a sign up and login activities with the Use of the cloud services like Firebase for the Real Time storage. 2)Home Activity : Use any Machine Learning API of your choice: [Watson, GoogleML, AWS]
part 2-
- Create an ionic application which have 1)A Main page : The Page should be Mashup of at least Two Web Services. One of them should be from the list of knowledge/Machine learning/AI services. 2)Testing : Write at least 3-unit test cases related to your application. 3)Plugin : Use at least one Cordova plugin related to your project.
IONIC APPLICATION
Ionic application contains the watson calorie counter where we have used two mashups: one is from ibm watson visual image recognition and one is the nutritionix.
CODE SNIPPETS
nutrition ix code
here we have the given url and we have to go into the website and create our own app id and app key and give it in the code by this the connection occurs.
ibm watson code
here this is the ibm watson image recognition code. In this we have created the fields button click on the camera icon to capture image by clicking on it the camera opens and we capture the image and then we created another one that is ok button. By clicking on that the image gets recognized and we get the image name using the visual recognition. This we got by going into the ibm watson website and enabling the visual recognition and creating particular keys.
OUTPUTS
This is the ouput here we capture the image and image gets recognized and the name is displayed below using ibm watson visual recognition and down we also got the calories using nutrtion ix.
ANDROID APPLICATION
CODE SNIPPETS
Barcode Scanner
Above screenshots are the code for the bar code scanner. Here we write the code and in the manifest file we give the intent and label as the bar coder.
OUTPUTS
This is the bar coder scanner page when we compile it comes where here we get the page where we give the permissions to take the image and record the videos.
In above screenshot we take the picture of the product and the bar cide is displayed.
YOUTUBE VIDEO LINK
REFERENCES
- https://youtu.be/QETnC6SEwa0
- www.google.com
- CS551 ASE Spreedsheet