Skip to content

v0.24.0

Choose a tag to compare

@github-actions github-actions released this 02 Sep 19:09
· 22 commits to master since this release
adc9ee5
Feat: Add Real-time Object Detection with MediaPipe (#108)

* feat(detection): add real-time object detection using Google MediaPipe

- Replace main SurfaceView with TextureView to support capturing frame Bitmaps via getBitmap().
- Add ObjectDetectorHelper to encapsulate MediaPipe Object Detector Task API with CPU/GPU delegates.
- Create OverlayView for scaling and rendering bounding boxes and classification labels onto standard video stream.
- Integrate background detection thread execution loop (~10 FPS) in VideoActivity with lifecycle management.
- Set up automated downloads for EfficientDet-Lite0 and EfficientDet-Lite2 model assets in app/build.gradle.
- Add user menu toggles for object detection settings, persisting config values via SharedPreferences.
- Update README.md with detailed instructions for the object detection feature.

Reference: https://github.com/google-ai-edge/mediapipe-samples/tree/main/examples/object_detection

* Optimize size

- Removed tflite file from apk;
- Optimize MediaPipe size (Keep arm64, remove 32bit support);
- Compress releasefile

Final apk 9.4MB :app-release_object_detection.apk