1. Technical Field
The present disclosure relates to a display device and a method for editing images.
2. Description of Related Art
There are times when people may like to adjust the appearance of faces in photos. For example, they may like to distort a face to be comically large or small to be funny. Or they may think someone looks fat or skinny and would like to touch up the size of the face to make the person looks better.
In the related art, software is available for the above kind of editing such as Photoshop™, ACDSee™ and so on. For example, if the user wants to reduce a size of face area of the image, the editing steps may include: the user outlining a face in the image; reducing just the face to a desired size; simultaneously, enlarging the rest of the picture to a desired size. This method includes a lot of steps, and although some adjustment is to the face and some to the surrounding area, distortion will still be evident so that the picture just doesn't look as good as it should.
Therefore, what is needed is a display device and method which can edit images according to a user's need.
The processing unit 300 includes a reading module 310, an image identification module 320, a menu adjusting module 330, an image editing module 340, an image display module 350, and a storage module 360. The reading module 310 is configured to read a to-be-displayed image from the storage unit 100 or the external storage device. The image display module 350 is configured to display the image by the display unit 400.
The image identification module 320 is configured to identify portions of the read image containing human faces, and define location(s) containing face(s) as face area(s) and the remaining area(s) as non-face area(s). In the exemplary embodiment, the image identification module 320 detects location of face(s) according to a predetermined algorithm, for example, such as an Adaboost algorithm, and defines the face location(s) as the face area(s) and the remaining area(s) of the image as the non-face area(s). As shown in
The menu adjusting module 330 is configured to provide an image adjusting menu in response to an input by the user via a user input unit 500, determine an editing manner in response to a menu item selection, and generate an instruction corresponding to the determined editing manner. In the exemplary embodiment, the image adjusting menu includes a reducing menu item (R) and an enlarging menu item (E). The reducing menu item (R) is assigned an editing manner for reducing a size of the face area, and the enlarging menu item (E) is assigned another editing manner for enlarging a size of the face area.
The image editing module 340 is configured to edit the face area of the image according to the instruction corresponding to the determined editing manner. For example, the image editing module 340 reduces or enlarges the size of the face area.
The image display module 350 is configured to display the edited image on the display unit 400.
The storage module 360 is configured to store the edited image in the storage unit 200.
In step S601, the reading module 310 reads a to-be-displayed image from the storage unit 200.
In step S602, the image identification module 320 identifies portions of the read image containing human faces, and defines the location(s) includes human face(s) as the face area(s), and the remaining area(s) as the non-face area(s).
In step S603, the menu adjusting module 320 provides an image adjusting menu in response to an input by the user via a user input unit 500, determines an editing manner in response to a menu item selection, and generates an instruction corresponding to the determined editing manner.
In step S604, the image editing module 340 edits the face area of the image according to the instruction corresponding to the determined editing manner, as described above in relation to
In step S605, the image display module 350 displays the edited image on the display unit 400.
In step S606, the storage module 360 stores the edited image in the storage unit 200.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 200810306418.X | Dec 2008 | CN | national |