This is a camera app that can detect objects either real-time (by turning on the camera of our mobile device), click a photo with the rear camera or load an image from our gallery. It draws a box around the detected object with the name of the detected object and it's confidence level.
The Real-time detection works on the MobileNet SSD model while the Classic detection works on both the MobileNet SSD model and the YoloV2 model. Either model can be selected as desired.
The model files are downloaded via Gradle scripts when you build and run. You don't need to do any steps to download TFLite models into the project explicitly.
Application can run either on device or emulator.
This app is divided into two basic parts:
- Real-time Detection
- Classic Detection
In this mode the rear camera of our mobile device is turned on and objects are detected on each frame of the video.
In this mode you can either choose to click a photo or load an image from the gallery by tapping on either of the floating action buttons on the bottom right of the screen. On the AppBar you can choose which model you want to run.
Screen look
Choose a model
Clicking a photo
Loading from library