Add Google's MlKit to scrcpy #171
Unanswered
caiohbm
asked this question in
Genymotion Desktop
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I have a problem that's been bugging for the past couple of days. First of all, I'm not an Android or Java dev, my main function is as an embedded sw dev, tho I have some experience with Java and Android. So going to the point: I' using scrcpy to mirror my Android phone screen and transmit it to an LCD screen connected to an MCU board, the board captures the touches on the LCD screen and sends them back to the scrcpy, which allows it to control the phone.
The thing is, I want to use google's MLKit on scrcpy, since it looks pretty resourceful and easy to use, specially for my purposes (identify facial features and actions such as winking, smiling, head tilting etc). The problem is that it seems that the MLKit library is deeply linked to the Android environment (context, intent, etc) and because scrcpy is not a real Android app, I can't get MlKit to work. Is there any way I can "trick" Mlkit into thinking I have an app context? I've tried to use some of the project's workarounds to get a fake context but it didn't work. I've added the images of my experiment and relevant MlKit links. Has anyone tried to integrate MlKit to scrcpy before?
Beta Was this translation helpful? Give feedback.
All reactions