Patent ID: 8253786

Claim:
A computer in communication with an electronic device positioned in a crib, the electronic device comprising a camera, an acceleration sensor, and a processor, the computer comprising: a setup module setting a first threshold value to detect motion of the crib and a second threshold value to determine whether the baby is awake; a receiving module receiving an acceleration value of the motion of the crib from the acceleration sensor; a switch module sending a switch instruction to instruct the camera to capture an image of the baby if the acceleration value received from the acceleration sensor exceeds the first threshold value; a recognition module defining a face zone of a captured image from the camera and to locate an eye area in the face zone; an analysis module calculating a ratio of height and width of the eye area, compare the ratio to the second threshold value, and determine the baby is awake if the ratio of height and width of the eye area exceeds the second threshold value; a command module instructing the electronic device to dial a predefined warning number automatically upon determining the baby is awake; and at least one processor that executes the setup module, the receiving module, the switch module, the recognition module, the analysis module, and the command module.