googlesamples / googlesamples/mlkit

Convert GraphicOverlay to Surface?

Open
#749 0 comments 0 reactions 1 assignee Claimed by @zhouyiself View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to integrate MLKit into our camera2 app. My inputs are media.Image frames and outputs should be [Surface](https://developer.android.com/reference/android/view/Surface) type. But I see mlkit produces [GraphicsOverlay](https://github.com/googlesamples/mlkit/blob/master/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java) type (GraphicOverlay extends View).

So what is the best way to convert GraphicOverlay to Surface without (or with negligeable) performance overhead?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.