This application claims the priority benefit of Taiwan application serial no. 97134210, filed on Sep. 5, 2008. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of specification.
1. Field of the Invention
The invention relates to a method and a device for stabilizing an image, and a method for transmitting and receiving the image using the same and, more particularly, to a method and a device for stabilizing the image using face detection technique, and the method for transmitting and receiving the image using the same.
2. Description of the Related Art
With the combination of communication technique and network technique, visual communication gradually becomes a value-added function of a mobile phone and a trend of communication. Both communicators may transmit images between each other just by enabling the visual communication function of mobile phones. Then they not only can hear the voice of the other side, but also can see the image of the other side in real time during the visual communication. It is very convenient for busy modern people to communicate with their families or friends far away from them, and it also shortens the distance between each other virtually.
Generally, during the visual communication, the user may aim the camera at his face when he or she takes pictures. However, since the user always takes the mobile phone in his hand, the image may shake during taking pictures. The problem also exists in other handheld devices having video function, vehicle video cameras and other electronic products. The conventional method for solving the problem is shown in
During the visual communication, both communicators want to see the other side's face. Since in the conventional technique, the face area in the image is not specially stabilized when the face is photographed, the face shakes in the image. Thus, the image after stabilized is still not the image wanted by the communicators.
One objective of the invention is to provide a method for stabilizing a face area in an image to solve the problem that the face shakes in the image.
Another objective of the invention is to provide an image stabilizing device which may stabilize a face area in an image to solve the problem that the face shakes in the image.
Still another objective of the invention is to provide a method for transmitting an image which may stabilize a face area in a transmitted image to solve the problem that the face shakes in the image.
The fourth objective of the invention is to provide a method for receiving an image which may stabilize a face area in a received image to solve the problem that the face shakes in the image.
Based on the above and other objectives, the invention provides a method for stabilizing an image. In the method, a face detection step is performed on the image first to obtain a face area in the image. Then, the size and position of the face area are stabilized.
Based on the above and other objectives, the invention provides an image stabilizing device including a face detecting unit and an image stabilization unit. The face detecting unit is used to perform a face detection step on an image to obtain a face area in the image. The image stabilization unit is used to stabilize the size and position of the face area.
Based on the above and other objectives, the invention provides a method for transmitting the image. In the image, a face detection step is performed on the image first to obtain a face area in the image. Then, the size and position of the face area are stabilized, and the image in which the face area is stabilized is compressed and transmitted to a remote terminal.
Based on the above and other objectives, the invention provides a method for receiving an image. In the method, image compression data is received and decompressed first to obtain an image. Then, a face detection step is performed on the image to obtain a face area in the image. Afterwards, the size and position of the face area are stabilized to obtain a displayed image.
According to the method for stabilizing the image in an embodiment of the invention, the method further includes estimating a motion vector of the image and adjusting other areas in the image except the face area according to an estimating result of the motion vector.
According to the image stabilizing device in an embodiment of the invention, the device further includes a motion estimation unit for estimating the motion vector of the image to output the estimating result of the motion vector to the image stabilization unit and adjust the other areas in the image except the face area.
According to the method for transmitting the image in an embodiment of the invention, before the image in which the face area is stabilized is compressed, the method further includes estimating the motion vector of the image and adjusting the other areas in the image except the face area according to the estimating result of the motion vector.
According to the method for receiving the image in an embodiment of the invention, when the size and the position of the face area are stabilized, the method further includes estimating the motion vector of the image and adjusting the other areas in the image except the face area according to the estimating result of the motion vector to obtain a displayed image.
In the invention, the face detection step in the image is performed to obtain a face area in the image, and then the size and the position of the face area are stabilized. Thus, the face area in the image is stabilized, and the problem that the face shakes in the image is solved. Besides, if a preferable image needs to be obtained, the motion vector of the image may be estimated, and the other areas in the image except the face area may be adjusted according to the estimating result of the motion vector.
These and other features, aspects and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings.
In the embodiment, the mode in which the motion estimation unit 206 estimates the motion vector may be estimating a local motion vector and a global motion vector of the image or one of other feasible estimating modes, and the invention is not limited thereto. The mode in which the face detecting unit 208 performs the face detection step may be detecting facial features such as eyes, a nose, a mouse and other features to obtain the face area in the image, and it also may be detecting color features such as the colors of skin and hair and even may be detecting a vein, a shape and so on to obtain the face area, and it is also not limited.
To the image stabilization unit 210, the mode in which the position of the face area is stabilized may be stabilizing the face area at the original position in the image or any preset position in the image. However, in the application, of the visual communication, the optimal mode is stabilizing the face area at the center of the image. The mode in which the image stabilizing unit stabilizes the size of the face area may be stabilizing the face area to be the original size, stabilizing the size of the face area and the size of the whole image in a preset ratio, or stabilizing the size of the face area to a preset region. For example, in the visual communication, the user wants to see a face with a stable size and position, and therefore, the image stabilization unit 210 may be designed to stabilize the face area at the center of the image, and the size of the face area and the size of the whole image may be kept in the certain ratio. Thus, the face does not shake in the image. In other words, the image stabilization unit 210 may draw the moving face area back to the center of the image, and the size of the face area may be stabilized by zooming in/zooming out on the face area even the mobile phone shakes in the visual communication.
In addition, when the face detecting unit 208 performs the face detection step on the image to obtain a plurality of face areas, the image stabilization unit 210 may choose one of the face areas to be a stabilizing object. The other face areas are considered as backgrounds. The image stabilization unit 210 may choose a largest face area, a face area nearest to the center of the image, a face area in accordance with a preset face or a face area selected according to other preset criteria to be the stabilizing object.
Some basic operation steps may be concluded via the above operation.
If the captured image needs to be transmitted, the operation steps are shown in
If the image captured by the other side is received, and if the other side does not have the function of stabilizing the face area of the image, the basic operation steps are shown in
To sum up, in the invention, the face detection step is performed on the image to obtain a face area in the image, and then the size and position of the face area are stabilized to stabilize the face area in the image. Thus, the problem that the face shakes in the image is solved. Besides, if the motion vector of the image is estimated, and other areas in the image except the face area are adjusted according to the estimating result of the motion vector, preferable image quality may be obtained. Besides the mobile phone, handheld devices having video function and vehicle camera and other electronic devices, the invention also may be used in other related areas in which images need to be transmitted in real time.
Although the present invention has been described in considerable detail with reference to certain preferred embodiments thereof, the disclosure is not for limiting the scope of the invention. Persons having ordinary skill in the art may make various modifications and changes without departing from the scope and spirit of the invention. Therefore, the scope of the appended claims should not be limited to the description of the preferred embodiments described above.
Number | Date | Country | Kind |
---|---|---|---|
97134210 | Sep 2008 | TW | national |