主权项 |
1. A method for regulating viewing posture, the method comprising:
identifying, by a front-facing camera, an eye of a device user, based on a set of eye attributes; calculating, by one or more processors, a distance between the eye of the device user and a screen of a device; determining, by one or more processors, whether the distance between the eye of the device user and the screen of the device is below a threshold, wherein the threshold is a predetermined distance, based on a type of the device in use; and responsive to determining that the distance between the eye of the device user and the screen of the device is below the threshold, sending, by one or more processors, an alert to the device user. |