You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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