1. Technical Field
Embodiments of the present disclosure relate to call management, and particularly to a system and method for searching for a contact.
2. Description of Related Art
Currently, compact handheld devices such as mobile phones are broadly utilized by people in daily life for multiple functions.
An image browsing program is used to browse through images stored in the handheld device. However, if a user wants to call a contact corresponding to one of the images, the user must exit the image browsing program, and find the corresponding contact in a phone book of the handheld device, which is inconvenient.
a to
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose mobile devices or processors. The code modules may be stored in any type of readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the readable medium may be a hard disk drive, a compact disc, a digital video disc, or a tape drive.
The CPU 10 controls execution of the search unit 23. The search unit 23 is used to locate a face in a selected image from a photo stored in the system 5, find a face matching the located face in the face database 22, and list the contact information associated with the matched face.
The face recognition module 201 locates a face in a selected image (referring to
In the equation, “P” stands for a pixel in the image, and “(x, y)” stands for a coordinate of “P”. In one embodiment, a value of Cr(x, y) ranges from 135 to 156, a value of Cb(x, y) ranges from 108 to 123. In other embodiments, the values of the Cr(x, y) and the Cb(x, y) may be any other suitable ranges. If a value of the P(x, y) is 1, the face recognition module 201 judges that an examined area in the image is facial skin. If a value of the P(x, y) is 0, the face recognition module 201 judges that an examined area in the image is not facial skin. If the examined area is facial skin, then the examined area in the image is set to white, otherwise, the examined area is set to black. Then, the face recognition module 201 calculates a smallest rectangle framing the face to locate the face in the image (referring to
The face comparing module 202 compares the located face with the face images stored in the face database 22. In one embodiment, the face comparing module 202 compares the located face with the face images stored in the face database 22 by calculating a similarity between the located face and each face image stored in the face database 22.
The determining module 203 determines if a matched face image is found in the face database 22. In one embodiment, the determining module 203 determines a face image in the face database 22 matches the located face if the similarity between the located face and the face image is greater than or equal to a preset value.
The display module 204 lists contact information associated with the matched face image if the matched face image is found in the face database 22.
The face comparing module 202 creates an association between the located face and a user-selected contact if no matched face image is found in the face database 22, and stores the located face and the association in the face database 22.
In other embodiment, the face recognition module 201 locates all faces in the selected image if the selected image includes more than one face, and the face comparing module 202 compares each located face with the face images stored in the face database 22.
In block S401, the face database 22 is created. In one embodiment, the face database 22 stores face images, and associations of the face images with contact information.
In block S402, an image is selected from a photo stored in a memory system of the handheld device.
In block S403, the face recognition module 201 locates a face in the selected image. A detailed description refers to paragraphs are explained above.
In block S404, the face comparing module 202 compares the located face with the face images stored in the face database 22. In one embodiment, the face comparing module 202 compares the located face with the face images stored in the face database 22 by calculating a similarity between the located face and each face image stored in the face database 22.
In block S405, the determining module 203 determines if a matched face image is found in the face database 22, the process goes to block S406 if a matched face image is found, otherwise, the process goes to block S407 if no matched face image is found. To determine if a matched face image is found in the face database, the determining module 203 determines a face image in the face database 22 matches the located face if the similarity between the located face and the face image is greater than or equal to a preset value, and determines no matched face image is found in the face database 22 if the similarity between the located face and each face image stored in the face database 22 is less than the preset value.
In block S406, the displaying module 204 lists contact information associated with the matched face image. In one embodiment, the information includes a phone number of the contact.
In block S407, the face comparing module 202 creates an association between the located face and a user-selected contact, and stores the located face and the association in the face database 22.
In other embodiment, the method may further include locating all faces in the selected image if the selected image includes more than one face, and comparing each located face with the face images stored in the face database 22.
The present embodiments can locate a face in a selected image, find a face image matched to the located face from a face database 22, and list contact information associated with the matched face image, to facilitate the user to search a phone number of the contact and make a call.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
200810303077.0 | Jul 2008 | CN | national |