/baseMLComputerVisionAndroid

A basic Android Application (spun off of start of covid_id project) that has 2 activities to launch a ClassifierActivity that runs captured image frames through a FowerClassifier ML model AND a DetectorActivity that runs captured image frames through a Detector ML model.

Primary LanguageJava

baseMLComputerVisionAndroid repository

baseMLComputerVisionAndroid repository is a copy of an early version of Covid ID repository is a project out of iLab associated with Computer Science at California State University East Bay to explore how Computer Vision and Machine Learning can be used to assist the general public with situation awareness as it relates to Covid-19. This code repostiory was created as a BASE Android application using Computer Vision and Tensorflow Machine Learning.

This app in the current state simply loads up a google map with a set of buttons on top for logging in (you can ignore this --if you wish you can add later your own authentication code), and two buttons - one for classification and the other for detection. The first launches the ClassifierActivity class which takes every frame captured by Android camera and uses a Flower trained classifier ML model on it to perform predictions and displays the results. The second launches the DetectorActivity class which again takes every frame captured by Anadroid and puses a Object Detector (general purpose trained on COCO dataset) ML model on it to perform detections and displays the results.

Additionally there are some supporting Data classes that could be used to store records on the backend using Google Firestore --at this point you will not have access to store the data on MY backend so you should turn this feature off (comment out this code) in the ClassifierActivity and DetecorActivity classes but, I wanted to share with you the logic/code to make this happen. If you wish and you understand or are willing to learn Google Firestore on your own you have the option of modifying as necessary to point to your Firestore so the records can be stored. The data files are located in the data package.

Note the code that uses Google Auntehtication for authenticating a user based on the Login button being hit on the main activity interface can be found in the auth package

developed by image contact: Professor Lynne Grewe