beamalsky / becat

🐈‍⬛ 🐈 BeReal for Bea and Kalil's foster cats
3 stars 0 forks source link

TensorFlow Lite Object Detection Android Demo

Overview

This is a camera app that continuously detects the objects (bounding boxes and classes) in the frames seen by your device's back camera, with the option to use a quantized MobileNet SSD, EfficientDet Lite 0, EfficientDet Lite1, or EfficientDet Lite2 model trained on the COCO dataset. These instructions walk you through building and running the demo on an Android device.

The model files are downloaded via Gradle scripts when you build and run the app. You don't need to do any steps to download TFLite models into the project explicitly.

Terms: By accessing or using TensorFlow Lite in Google Play services APIs, you agree to the Terms of Service. Please read and understand all applicable terms and policies before accessing the APIs.

This application should be run on a physical Android device.

App example showing UI controls. Highlights a cat

App example showing UI controls. Highlights a cat, a book, and a couch.

Build the demo using Android Studio

Prerequisites

Building

Models used

Downloading, extraction, and placing the models into the assets folder is managed automatically by the download.gradle file.