1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device and a method of monitoring the device.
2. Description of Related Art
In the course of utilizing an electronic device, a legal user may leave and forget to lock the electronic device. However, an illegal user may operate the electronic device to steal important information in the electronic device and the legal user cannot know who has operated the electronic device.
Therefore, what is needed is an electronic device and a method of monitoring the device to overcome the described limitations.
The storage unit 20 stores at least one facial image and a facial feature of the facial image. In one embodiment, the at least one facial image is the facial image of authorized users. The at least one facial image is obtained from an external device (not shown) or the capturing unit 10.
The input determination module 410 determines whether an input instruction from the input unit 30 is received in the predefined time period from the timing unit 50 in the work state. When the input determination module 410 determines that an input instruction is received in the predefined time period in the work state, that means that there is a legal user operating the electronic device 1. When the input determination module 410 determines that an input instruction is not received in the predefined time period in the work state, that means that the user may have left the electronic device 1.
The capturing control module 420 controls the capturing unit 10 to capture a predetermined number of images when one input instruction is not received in the predefined time period in the work state. In one embodiment, the capturing control module 420 controls the capturing unit 10 to successively capture the predetermined number of images.
The image determination module 430 determines whether there is a facial image in the predetermined number of images. In one embodiment, the image determination module 430 determines an image having facial contours as the facial image. When there is not a facial image in the predetermined number of images, that means that there is no user in the front of the electronic device 1. When there is a facial image in the predetermined number of images, that means that there is a user in the front of the electronic device 1.
The image processing module 450 performs an image processing for the facial image to obtain a facial feature of the facial image when there is a facial image in the predetermined number of images.
The feature determination module 460 determines whether one of the at least one facial feature in the storage unit 20 matches with the facial feature of the facial image in the predetermined number of images.
The output control module 470 locks the electronic device 1 when there is no facial image in the predetermined number of images, and controls the electronic device 1 to maintain the work state when one facial image whose facial feature matches with one of the at least one facial feature in the storage unit 20, and locks the electronic device 1 and sends information to a legal user of the electronic device 1 when no facial image whose facial feature matches with one of the at least one facial feature in the storage unit 20. The information contains that an illegal user is operating the electronic device 1 and the facial image of the illegal user. The legal user of the electronic device 1 is predetermined.
Furthermore, the storage unit 20 stores parameters of each facial feature. The feature determination module 460 analyzes the facial feature of the facial image to obtain the parameters of the facial feature of the facial image and compare the parameters of the facial feature of the facial image with the parameters of the stored at least one facial feature. When all differences between the parameters of the facial feature and the parameters of the stored at least one facial feature are within a predefined range, one facial image whose facial feature matches with one of the at least one facial image in the storage unit 20.
Additionally, the capturing control module 420 further controls the capturing unit 10 to capture the predetermined number of facial images again after another predefined time period when no facial image whose facial feature matches with one of the at least one facial image in the storage unit 20.
Moreover, the electronic device 1 includes an updating module 440. The updating module 440 updates and stores the facial image in the storage unit 20 when one facial image whose facial feature matches with one of the at least one facial image in the storage unit 20. Therefore, the storage unit 20 stores an updated facial image corresponding to a legal user.
Also, the output control module 470 further records the facial image in the predetermined number of images and sends the facial image to notify the legal user of the electronic device 1 via an e-mail, a short message, or an alert ring tone. Therefore, the legal user can know who is operating the electronic device 1 via the sent facial image.
Therefore, when there is no user in the predetermined time period in the front of the electronic device 1, the electronic device 1 is locked to avoid an illegal user from operating the electronic device 1. When there is at least one illegal user in the predetermined time period in the front of the electronic device 1, the electronic device 1 is locked and the legal user is notified that another person is operating the electronic device 1. When there is at least one legal user in the predetermined time period in the front of the electronic device 1, the electronic device 1 maintains the work state.
In step S310, the timing unit 50 starts measuring time for a predefined time period when the electronic device 1 enters a work state.
In step S320, the input determination module 410 determines whether an input instruction from the input unit 30 is received in the predefined time period in the work state. When an input instruction from the input unit 30 is received in the predefined time period in the work state, the procedure returns step S310.
In step S330, the capturing control module 410 controls the capturing unit 10 to successively capture a predetermined number of images when one input instruction is not received in the predefined time period in the work state.
In step S340, the image determination module 430 determines whether there is a facial image in the predetermined number of images.
In step S345, if there is no facial image in the predetermined number of images, the output control module 470 locks the electronic device 1.
In step S350, if there is a facial image in the predetermined number of images, the image processing module 450 performs an image processing for the facial image to obtain a facial feature of the facial image.
In step S360, the feature determination module 460 determines whether one of the at least one facial feature in the storage unit 20 matches with the facial feature of the facial image in the predetermined number of images.
In step S365, if no facial image whose facial feature matches with one of the at least one facial feature in the storage unit 20, the output control module 470 determines that the facial image in the predetermined number of images is illegal, locks the electronic device 1 and sends information to a legal user of the electronic device 1.
In step S370, if one facial image whose facial feature matches with one of the at least one facial feature in the storage unit 20, the updating module 440 updates and stores the facial image in the storage unit 20.
In step S380, the output control module 470 determines that the facial image in the predetermined number of images is legal and controls the electronic device 1 to maintain the work state.
Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
100133403 | Sep 2011 | TW | national |