1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device with a function of searching images based on a facial feature and a method for searching images based on a facial feature.
2. Description of Related Art
It is difficult and time-consuming for users to find images which include a predetermined facial feature from a large amount of images. In addition, it is necessary for the user to encrypt the found images to prevent the found images being seen by other people.
Therefore, what is needed is an electronic device to overcome the described limitations.
The capturing unit 10 captures facial images. The storage unit 20 stores a number of images. In one embodiment, the capturing unit 10 is a camera.
The processing unit 30 includes an acquiring module 31, a searching module 32, and a folder establishing module 33.
The acquiring module 31 acquires a facial feature of a facial image captured by the capturing unit 10. In one embodiment, the facial feature of the facial image may be a facial shape, a facial size, a facial proportion, or a combination thereof. Technology for acquiring the facial feature from the facial image is well known technology, and there is no need to describe it in detail in the present disclosure.
The searching module 32 searches images that include the acquired facial feature from the number of images stored in the storage unit 20.
The folder establishing module 33 establishes a new folder which is used to store the searched images by the searching module 32.
The processing unit 30 further includes a prompting module 34 and an encrypting module 35. The prompting module 34 prompts a user whether to encrypt the new folder. The encrypting module 35 takes the acquired facial feature as an encryption key to encrypt the new folder when the user selects to encrypt the new folder, thereby preventing the searched image from being seen by other people.
The processing unit 30 further includes a validating module 36 and a decrypting module 37. The validating module 36 prompts the user to input a facial image when the user wants to open the encrypted folder. The acquiring module 31 acquires the facial feature of the facial image in response to an image input operation from the user. The validating module 36 further validates whether the acquired facial feature is consistent with the encryption key for encrypting the folder. The decrypting module 37 decrypts the encrypted folder when the acquired facial feature is consistent with the encryption key for encrypting the folder.
In step S601, the acquiring module 31 acquires the facial feature of the facial image captured by the capturing unit 10.
In step S602, the searching module 32 searches for images that include the acquired facial feature from the number of images stored in the storage unit 20.
In step S603, the folder establishing module 33 establishes a new folder and stores the searched images to the established new folder.
In step S604, the prompting module 34 prompts a user whether to encrypt the new folder, if yes, the procedure goes to step S605, if no, the procedure goes end.
In step S605, the encrypting module 35 takes the acquired facial feature as an encryption key to encrypt the new folder.
The method further includes steps as follows: the validating module 36 prompts the user to input a facial image when the user wants to open the encrypted folder. The acquiring module 31 acquires the facial feature of the facial image in response to an image input operation from the user. The validating module 36 further validates whether the acquired facial feature is consistent with the encryption key for encrypting the folder, and the decrypting module 37 decrypts the encrypted folder when the acquired facial feature are consistent with the encryption key for encrypting the folder.
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 |
---|---|---|---|
201110416801.2 | Dec 2011 | CN | national |