Hello, I'm new here, so if you do something non-standard, I apologize in advance = D
I am developing an application for academic purposes whose goal is to improve the user's posture while using the Smartphone. For this, I use the accelerometer to detect the slope of the phone and infer whether the user is inclined or not with his head inclined to use his phone.
I need to upgrade to make sure the user is using my smartphone to not give false alerts, for example: The phone is connected on the desktop, but no one is necessarily using it. At first it was possible to do a facial recognition from time to time to know if there is someone using or not the phone would solve my problem.
Detail: The app runs in the background so I can not bring the camera in front of the screen all the time, I would have to use it without the user noticing.
Can you tell me if this is possible? If yes, do you have an application example or some tutorial to implement?
Thank you!