Android-FaceDetection: Make it work without adjusting scaleType #422
Mikkelet
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
Hey. Check out object detection - that one also has a compose
implementation that might be helpful. I have plans to update all of them at
some point when I have time, but ¯\_(ツ)_/¯
…On Fri, Jul 26, 2024, 9:53 AM Mikkelet ***@***.***> wrote:
I'm currently trying to implement FaceDetection in my android app using
Compose, but the sample project uses views, so Im trying to adapt. In the
sample project, the camera has its scaleType set to FIT_START. I thought it
was odd, but without it, the overlay
does not fit. Since my project is using compose, scaleType does not have
any effect, and my overlay is offset.
I also checked the face landmark library sample project, where the preview
scaleType is set to FILL_START. So both sample projects are using
*different* scaletypes?
I don't see how this is the intended implementation, but any suggestions
on how to fix this is welcome!!
—
Reply to this email directly, view it on GitHub
<#422>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR2C33VYYHDHMWNJKBQMXDZOJ5ITAVCNFSM6AAAAABLQ3J6O6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWHE4DAOJTG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
… On Fri, Jul 26, 2024, 10:11 AM Mikkelet ***@***.***> wrote:
Ah that sounds great! I dont see the impl on main, is it in another branch?
—
Reply to this email directly, view it on GitHub
<#422 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR2C34MVXX4C6HJMUVLTXLZOJ7L7AVCNFSM6AAAAABLQ3J6O6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJWGI2TOMY>
.
You are receiving this because you commented.Message ID:
<google-ai-edge/mediapipe-samples/repo-discussions/422/comments/10162573@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently trying to implement FaceDetection in my android app using Compose, but the sample project uses views, so Im trying to adapt. In the sample project, the camera has its scaleType set to FIT_START. I thought it was odd, but without it, the overlay
does not fit. Since my project is using compose, scaleType does not have any effect, and my overlay is offset.
I also checked the face landmark library sample project, where the preview scaleType is set to FILL_START. So both sample projects are using different scaletypes?
I don't see how this is the intended implementation, but any suggestions on how to fix this is welcome!!
Beta Was this translation helpful? Give feedback.
All reactions