The present invention relates to a method for automatically selecting a representative thumbnail of a photo folder, and more particularly to a method for automatically selecting a representative thumbnail of a photo folder according to the user's preferences.
Image pickup devices are usually employed to take photos. Conventionally, the image pickup devices are film cameras. With the advent of the digitalized generation, the image pickup devices are gradually developed as digital cameras or video camera. In addition to the function of taking photos, the digitalized image pickup devices also have the photographic function of recording dynamic movies. The photos or movies acquired by an image pickup device may be stored in an electronic device (e.g. a computer) in the form of electronic files. The images of the photos and the movies may be watched by the user through the electronic device, and the favorite images may be selected and outputted as the conventional photos.
With increasing development of science and technology, image pickup devices become essential components of electronic devices (e.g. mobile phones, notebook computers and tablet personal computers). Among theses electronic devices, smart phones and tablet personal computers are more advantageous because of their portability. Consequently, almost all of the smart phones and the tablet personal computers are equipped with image pickup devices for facilitating the users to take photos.
Moreover, since the image pickup devices are digitalized, it is important to manage the electronic files of the photo images and the movie images. Generally, the photo images or the movie images captured by an image pickup device are transmitted to a computer host. Under execution of an operating system in the computer host, a photo folder may be created to contain the photo images or the movie images.
Please refer to
As shown in
Since the photo folder 10 usually contains a large number of photo images 101, the computer system may randomly select some photo images 101 from the photo folder 10 as the representative thumbnails P of the photo folder 10. For example, the computer system may preset four representative thumbnails P of each photo folder 10. That is, four representative thumbnails P are displayed on the icon of the photo folder 10 (see
Please refer to
For meeting the user's preferences, the user may select a desired photo image from the photo folder 10 of the computer system as the representative thumbnail, and the representative thumbnail is displayed on the icon of the photo folder 10 alone. However, since the user needs to personally view the photo images 101 of the photo folder 10 and select one of the abundant photo images 101 as the representative thumbnail, this approach is time-consuming and labor-intensive.
Therefore, there is a need of providing an improved a method for automatically selecting a representative thumbnail of a photo folder without the manual selection.
The present invention provides a method for automatically selecting a representative thumbnail of a photo folder without the manual selection.
In accordance with a first aspect of the present invention, there is provided an automatic thumbnail selecting method for automatically selecting a representative thumbnail of a photo folder. The automatic thumbnail selecting method includes the following steps. Firstly, a face detecting step is performed for judging whether there is at least one face image contained in plural photo images of the photo folder. If the at least one face image in the plural photo images is detected by the face detecting step, a face recognizing step is performed. The face recognizing step includes sub-steps of performing a face recognizing operation on the plural photo images to acquire at least one facial feature, calculating an occurrence number of the at least one facial feature in the plural photo images, selecting the facial feature having the highest occurrence number as a target facial feature, rating the plural photo images including the target facial feature to acquire plural scores, and compare the plural scores with each other to acquire a highest score. If no face image in the plural photo images is detected by the face detecting step, a complexity analyzing step is performed. The complexity analyzing step includes sub-steps of performing a complexity analyzing operation on the plural photo images to acquire plural complexity values, and comparing the plural complexity values with each other to acquire the highest complexity value. After the face detecting step is performed, a selecting step is performed for selecting the photo image with the highest score as the representative thumbnail of the photo folder. Alternatively, after the complexity analyzing step is performed, the selecting step is performed for selecting the photo image with the highest complexity value as the representative thumbnail of the photo folder.
In an embodiment, the selecting step further includes sub-steps of capturing the face image contained in the photo image with the highest score, and assigning the captured face image as the representative thumbnail of the photo folder.
In an embodiment, if the photo image with the highest score contains a first face image and a second face image, the automatic thumbnail selecting method further includes steps of comparing whether the target facial feature matches the facial feature corresponding to the first face image or the facial feature corresponding to the second face image, and assigning the first face image or the second face image matching the target facial feature as the representative thumbnail of the photo folder.
In an embodiment, the selecting step further includes sub-steps of capturing a middle zone contained in the photo image with the highest complexity value as a middle zone image, and assigning the middle zone image as the representative thumbnail of the photo folder.
In an embodiment, the plural photo images are rated according to plural rating items, wherein the plural rating items include a facial organ item, a facial skin color item, a facial angle item, a facial size item, and a facial expression item.
In an embodiment, the score of the facial organ item is determined according to an organ number of the at least one facial feature and an organ shape completeness degree, the core of the facial skin color item is determined according to a tone of the at least one facial feature, the score of the facial angle item is determined according to a facial direction of the at least one facial feature, the score of the facial size item is determined according to a face size of the at least one facial feature in the at least one photo image, and the score of the facial expression item is determined by judging whether a mouse corner of the at least one facial feature is upturned or not.
In an embodiment, the complexity analyzing operation is performed to analyze entropy of each of the plural photo images.
In accordance with a second aspect of the present invention, there is provided an automatic thumbnail selecting system for automatically selecting a representative thumbnail of a photo folder. The automatic thumbnail selecting system is installed in a computer system with a storage unit and a controlling unit. The storage unit is used for storing the photo folder and plural photo images. The controlling unit is in communication with the storage unit for selecting the representative thumbnail of the photo folder. The automatic thumbnail selecting system includes a face detecting module, an image analyzing module, a statistic module, and a rating module. The face detecting module is in communication with the controlling unit for issuing a detecting signal to the controlling unit. In response to the detecting signal, the controlling unit detects plural photo images contained in the photo folder, thereby acquiring at least one face image corresponding to the plural photo images. The image analyzing module is in communication with the controlling unit for issuing a recognizing signal or an analyzing signal to the controlling unit. In response to the recognizing signal, the controlling unit recognizes the at least one face image, thereby acquiring at least one facial feature corresponding to the at least one face image. In response to the analyzing signal, the controlling unit analyzes complexity of the plural photo images, thereby acquiring plural complexity values corresponding to the plural photo images. The statistic module is in communication with the controlling unit for issuing a statistic signal to the controlling unit. In response to the statistic signal, the controlling unit calculates an occurrence number of the at least one facial feature in the plural photo images, and selects the facial feature having the highest occurrence number as a target facial feature. The rating module is in communication with the controlling unit for issuing a first rating signal or a second rating signal to the controlling unit. In response to the first rating signal, the controlling module rates the plural photo images including the target facial feature to acquire plural scores, compares the plural scores with each other to acquire a highest score of the plural scores, and assigns the photo image with the highest score as the representative thumbnail of the photo folder. In response to the second rating signal, the controlling module compares the plural complexity values with each other to acquire the highest complexity value, and assigns the photo image with the highest complexity value as the representative thumbnail of the photo folder.
In an embodiment, when the controlling unit assigns the photo image with the highest score as the representative thumbnail of the photo folder, the image analyzing module issues a capturing signal to the controlling unit. In response to the capturing signal, the controlling unit captures a face image contained in the photo image with the highest score, and assigns the captured face image as the representative thumbnail of the photo folder.
In an embodiment, if the photo image with the highest score contains a first face image and a second face image, the image analyzing module issues a comparing signal to the controlling unit. In response to the comparing signal, the controlling unit compares whether the target facial feature matches the facial feature corresponding to the first face image or the facial feature corresponding to the second face image, and assigns the first face image or the second face image matching the target facial feature as the representative thumbnail of the photo folder.
In an embodiment, when the controlling unit assigns the photo image with the highest complexity value as the representative thumbnail of the photo folder, the image analyzing module issues a capturing signal to the controlling unit. In response to the capturing signal, the controlling unit captures a middle zone contained in the photo image with the highest complexity value as a middle zone image, and assigns the middle zone image as the representative thumbnail of the photo folder.
In an embodiment, the rating module provides plural rating items, and the plural photo images including the target facial feature are rated by the controlling unit according to the plural rating items. The plural rating items include a facial organ item, a facial skin color item, a facial angle item, a facial size item, and a facial expression item, wherein the plural rating items are set through a user operation interface.
In an embodiment, the score of the facial organ item is determined according to an organ number of the at least one facial feature and an organ shape completeness degree, the core of the facial skin color item is determined according to a tone of the at least one facial feature, the score of the facial angle item is determined according to a facial direction of the at least one facial feature, the score of the facial size item is determined according to a face size of the at least one facial feature in the at least one photo image, and the score of the facial expression item is determined by judging whether a mouse corner of the at least one facial feature is upturned or not.
In an embodiment, the computer system further includes a display screen for displaying the photo folder, the plural photo images and the representative thumbnail, the storage unit is a hard disc, and the controlling unit is a central processing unit.
In accordance with a third aspect of the present invention, there is provided an automatic thumbnail selecting method for automatically selecting a representative thumbnail of a photo folder. The automatic thumbnail selecting method includes the following steps. Firstly, a face detecting step is performed for detecting plural photo images in the photo folder, thereby acquiring at least one face image. Then, a face recognizing step is performed. The face recognizing step includes sub-steps of performing a face recognizing operation on the plural photo images to acquire at least one facial feature, calculating an occurrence number of the at least one facial feature in the plural photo images, selecting the facial feature having the highest occurrence number as a target facial feature, rating the plural photo images including the target facial feature to acquire plural scores, and comparing the plural scores with each other to acquire a highest score. Afterwards, a selecting step is performed for selecting the photo image with the highest score as the representative thumbnail of the photo folder.
In an embodiment, the selecting step further includes sub-steps of capturing the face image contained in the photo image with the highest score, and assigning the captured face image as the representative thumbnail of the photo folder.
In an embodiment, if the photo image with the highest score contains a first face image and a second face image, the automatic thumbnail selecting method further includes steps of comparing whether the target facial feature matches the facial feature corresponding to the first face image or the facial feature corresponding to the second face image, and assigning the first face image or the second face image matching the target facial feature as the representative thumbnail of the photo folder.
In an embodiment, the plural photo images are rated according to plural rating items, wherein the plural rating items include a facial organ item, a facial skin color item, a facial angle item, a facial size item, and a facial expression item.
In an embodiment, the score of the facial organ item is determined according to an organ number of the at least one facial feature and an organ shape completeness degree, the core of the facial skin color item is determined according to a tone of the at least one facial feature, the score of the facial angle item is determined according to a facial direction of the at least one facial feature, the score of the facial size item is determined according to a face size of the at least one facial feature in the at least one photo image, and the score of the facial expression item is determined by judging whether a mouse corner of the at least one facial feature is upturned or not.
In accordance with a fourth aspect of the present invention, there is provided an automatic thumbnail selecting method for automatically selecting a representative thumbnail of a photo folder. The automatic thumbnail selecting method includes the following steps. Firstly, a face detecting step for detecting plural photo images in the photo folder, wherein no face image in the plural photo images is detected by the face detecting step. Then, a complexity analyzing step is performed. The complexity analyzing step includes sub-steps of performing a complexity analyzing operation on the plural photo images to acquire plural complexity values, and compares the plural complexity values with each other to acquire the highest complexity value. Afterwards, a selecting step is performed for selecting the photo image with the highest complexity value as the representative thumbnail of the photo folder.
In an embodiment, the selecting step further includes sub-steps of capturing a middle zone contained in the photo image with the highest complexity value as a middle zone image, and assigning the middle zone image as the representative thumbnail of the photo folder.
In an embodiment, the complexity analyzing operation is performed to analyze entropy of each of the plural photo images.
The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
For eliminating the drawbacks encountered from the prior art, the present invention provides a method for automatically selecting a representative thumbnail of a photo folder and a system for automatically selecting a representative thumbnail of a photo folder.
In the automatic thumbnail selecting system 20, the face detecting module 201 is in communication with the controlling unit 22 for issuing a detecting signal C1 to the controlling unit 22. In response to the detecting signal C1, the controlling unit 22 detects wherein there is any face image contained in the plural photo images 212 of the photo folder 211. In a case that at least one face image 213 of the plural photo images 212 is detected by the controlling unit 22, the at least one face image 213 of the plural photo images 212 is acquired. The image analyzing module 202 is in communication with the controlling unit 22 for issuing a recognizing signal C2 to the controlling unit 22. In response to the recognizing signal C2, the controlling unit 22 recognizes the at least one face image 213, and acquires at least one facial feature corresponding to the at least one face image 213. The statistic module 203 is in communication with the controlling unit 22 for issuing a statistic signal C3 to the controlling unit 22. In response to the statistic signal C3, the controlling unit 22 calculates the occurrence number of the at least one facial feature in the plural photo images 212, and selects a facial feature having the highest occurrence number as a target facial feature. The rating module 204 is in communication with the controlling unit 22 for issuing a rating signal C4 to the controlling unit 22. In response to the rating signal C4, the controlling unit 22 rates the plural photo images 212 of the photo folder 211 including the target facial feature, thereby acquiring plural corresponding scores. By comparing these scores with each other, the controlling unit 22 may assign the photo image 212 with the highest score of these scores as the representative thumbnail I of the photo folder 211.
The operations of the automatic thumbnail selecting system 20 will be illustrated in more details as follows.
After the plural face images 213 are acquired, the image analyzing module 202 issues a recognizing signal C2 to the controlling unit 22. In response to the recognizing signal C2, the controlling unit 22 recognizes all of the face images 213 of the photo folders 211, and acquires corresponding facial features (see the sub-step S21 of the face recognizing step S2 as shown in
Please refer to
After all of the facial features are recognized, the statistic module 203 issues a statistic signal C3 to the controlling unit 22. In response to the statistic signal C3, the controlling unit 22 calculates the occurrence number of each facial feature in the plural photo images 212, and selects the facial feature having the highest occurrence number as a target facial feature (see the sub-step S22 of the face recognizing step S2 as shown in
Then, the rating module 204 issues a rating signal C4 to the controlling unit 22. In response to the rating signal C4, the controlling unit 22 rates the plural photo images 212 of the photo folder 211 including the target facial feature (i.e. the facial feature corresponding to the first face image 2131), thereby acquiring plural corresponding scores (see the sub-step S23 of the face recognizing step S2 of
In the facial angle item 2043, the score is determined according to the facial direction of the facial feature. For example, if the facial direction is front looking status-oriented, the image showing the front looking status of the facial feature has the high score. Alternatively, if the facial direction is upward looking status-oriented, the image showing the upward looking status of the facial feature has the high score. In the facial size item 2044, the score is determined according to the face size of the facial feature in the photo image 212. For example, if the face size of the facial feature is big size-oriented, the photo image showing the face fraction higher than 50% has the high score. Alternatively, if the face size of the facial feature is small size-oriented, the photo image showing the face fraction lower than 50% has the high score. In the facial expression item 2045, the score is determined according to the mouse corner status of the facial image. For example, if the facial expression of the facial feature is smile-oriented, the photo image showing the upturned mouth corners of the facial feature has the high score. Alternatively, if the facial expression of the facial feature is solemnity-oriented, the photo image with no upturned mouth corners of the facial feature has the high score.
In a preferred embodiment, the score of the facial organ item 2041 is determined according to the organ number of the facial feature and the organ shape completeness degree, the score of the facial skin color item 2042 is determined according to the bright color-oriented facial feature, the score of the facial angle item 2043 is determined according to the front looking status-oriented facial feature, the score of the facial size item 2044 is determined according to a small face size-oriented facial feature, and the score of the facial expression item 2045 is determined according to the smile-oriented facial feature. According to this judging datum, the controlling unit 22 may judge that the first photo image 2121 containing the first face image 2131 has the highest score.
Then, the controlling unit 22 assigns the photo image 212 with the highest score as the representative thumbnail I of the photo folder 211. At the same time, the image analyzing module 202 issues a capturing signal C5 to the controlling unit 22. In response to the capturing signal C5, the face image 213 contained in the photo image 212 with the highest score is captured by the controlling unit 22 (see the sub-step S31 of the selecting step S3). Then, the controlling unit 22 assigns the captured face image 213 as the representative thumbnail I of the photo folder 211 (see the sub-step S32 of the selecting step S3). That is, by the controlling unit 22, the first face image 2131 of the first photo image 2121 is captured, and the first face image 2131 is assigned as the representative thumbnail I. Moreover, the representative thumbnail I is displayed on the photo folder 211 alone (see
In some embodiments, the controlling unit 22 may judge that the face image 213 corresponding to the target facial feature is the first face image 2131 and the photo image 212 with the highest score is the third photo image 2123 according to the plural rating items. Since the third photo image 2123 contains the first face image 2131 and the third face image 2133, the controlling unit 22 fails to directly assign one of the first face image 2131 and the third face image 2133 as the representative thumbnail. Meanwhile, the image analyzing module 202 issues a comparing signal C6 to the controlling unit 22. In response to the comparing signal C6, the controlling unit 22 will compare whether the target facial feature matches the facial feature corresponding to the first face image 2131 or the facial feature corresponding to the third face image 2133. According to the comparing result, the controlling unit 22 realizes that the target facial feature matches the facial feature corresponding to the first face image 2131. Consequently, the first face image 2131 matching the target facial feature is assigned as the representative thumbnail I by the controlling unit 22.
From the above discussions, the method and the system for automatically selecting a representative thumbnail of a photo folder may be implemented according to the user's preferences. As a consequence, a photo image meeting the user's preferences may be selected as the representative thumbnail of the photo folder.
The present invention further provides a second exemplary automatic thumbnail selecting method. Please refer to
In the automatic thumbnail selecting system 30, the face detecting module 301 is in communication with the controlling unit 32 for issuing a detecting signal C1 to the controlling unit 32. In response to the detecting signal C1, the controlling unit 32 detects wherein there is any face image contained in the plural photo images 312 of the photo folder 311. The image analyzing module 302 is in communication with the controlling unit 32. In a case that no face image in the plural photo images 312 is detected by the controlling unit 32, the image analyzing module 302 issues an analyzing signal C7 to the controlling unit 32. In response to the analyzing signal C7, the controlling unit 32 performs a complexity analyzing operation on the plural photo images 312, thereby acquiring plural complexity values. The statistic module 303 is in communication with the controlling unit 32 for issuing another statistic signal C8 to the controlling unit 32. In response to the statistic signal C8, the controlling unit 32 compares the plural complexity values with each other to acquire the highest complexity value, and assigns the photo image 312 with the highest complexity value as the representative thumbnail I* of the photo folder 311.
The operations of the automatic thumbnail selecting system 30 will be illustrated in more details as follows.
Firstly, the face detecting module 301 issues a detecting signal C1 to the controlling unit 32. In response to the detecting signal C1, the controlling unit 32 detects the plural photo images 312 of the photo folder 311 (see the face detecting step S1 as shown in
Alternatively, in some other embodiments, the complexity analyzing operation is performed to analyze the high-frequency data number of each photo image by the controlling unit. As the high-frequency data number of the photo image is increased, the complexity value of the photo image is increased. Whereas, as the high-frequency data number of the photo image is decreased, the complexity value of the photo image is decreased.
Then, the statistic module 303 issues another statistic signal C8 to the controlling unit 32. In response to the statistic signal C8, the controlling unit 32 compares the plural complexity values (i.e. plural entropy values) with each other to acquire the highest complexity value (see the sub-steps S42 of the complexity analyzing step S4 as shown in
From the above discussions, if no face image is contained in the plural photo images, the automatic thumbnail selecting method and the automatic thumbnail selecting system of the present invention may perform a complexity analyzing operation. Since the photo image with the highest complexity value usually has the highest importance, the photo image with the highest complexity value is selected as the representative thumbnail of the photo folder.
It is noted that the above two embodiments of the automatic thumbnail selecting method and the automatic thumbnail selecting system of the present invention may be combined together. Consequently, the automatic thumbnail selecting method and the automatic thumbnail selecting system of the present invention can be employed to analyze the photo image with the face image or the photo image without the face image. Under this circumstance, the representative thumbnail can be selected by following the user's preferences.
From the above description, the present invention provides an automatic thumbnail selecting method and an automatic thumbnail selecting system for automatically selecting a representative thumbnail of a photo folder. According to the user's preferences about the photo images, a standard of the rating items may be set. Consequently, the selected representative thumbnail is very close to the preferences or the ideas of the user. Under this circumstance, since the user does not need to personally view and sieve all photo images of the photo folder, the automatic thumbnail selecting method and the automatic thumbnail selecting system of the present invention are time-saving and labor-saving.
While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
101114174 | Apr 2012 | TW | national |