This sample implements an Activity that performs real-time object detection on the live camera frames. It performs the following operations:
- Initializes camera preview and image analysis frame streams using CameraX
- Loads a mobilenet quantized model using Tensorflow Lite
- Performs inference on the transformed frames and reports the object predicted on the screen
The whole pipeline is able to maintain 30 FPS on a Pixel 3 XL with:
- the default image size from Camera (640x480)
- the default tensor size (300 x 300)