Coder Social home page Coder Social logo

henrylao / cv-tensorflow-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grewe/basemlcomputervisionandroid

1.0 1.0 0.0 146.64 MB

simple Computer Vision Tensorflow Machine Learning Application that performs Classification and Detection.

Java 100.00%

cv-tensorflow-android's Introduction

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

Important 1: you will need to supply your own Google Maps API key for the starting map activity to display a map properly

Important 2: you will not be able to store things in MY firestore as your application has not been granted permission ---you need to create your OWN firebase backend and follow the instructions to set it up so YOUR android application will be able to communicate to it

IMPORTANT 3: To get the OPenCV module dependency working you will after cloning need to remove the dependency (called "java" related to OpenCV java code) and instead follow the directions on http://borg.csueastbay.edu/~grewe/CS663/Mat/Android/OPenCV401Example/CreateProjectOpenCV401.html to recreate the ObjectCV module and set it up (this assumes you have downloaded the most recent OpenV Android java code).

cv-tensorflow-android's People

Contributors

grewe avatar henrylao avatar jake-shahshahani avatar subhangi16 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.