This application claims the benefit under 35 U.S.C. §119(a) of a Korean patent application filed on Feb. 23, 2012 in the Korean Intellectual Property Office and assigned Serial No. 10-2012-0018636, the entire disclosure of which is hereby incorporated by reference.
1. Field of the Invention
The present invention relates to a method and an apparatus for processing an image. More particularly, the present invention relates to a method and an apparatus for processing an image including a face.
2. Description of the Related Art
In the past, a high cost apparatus was required for recording and transmitting a visual image, and therefore a video call was not economically feasible as a general communication method. However, due to recent advancement in image processing technology, performing a video call or recording an image through a portable terminal is common. For example, most mobile telephones now include at least one camera function. In the image processing technology, a technology for photographing a person's face or processing an image obtained by photographing the person's face has attracted more interest. Generally, when the video call is performed, the face of one caller is photographed to be sent to the other caller. When such a video call is provided, a method of synthesizing a specific image or an animation (moving image) with a call image is known. According a related-art method, when a user manually selects a menu item for displaying an image (for example, a moving image, i.e., the animation), the portable terminal synthesizes an image corresponding to the selected menu item with the call image to be provided and/or transmitted. However, according to this method, there is a problem in that the user needs to manually select an image during the video call, and thus loses a flow of conversation. Also, there is a problem in that the synthesized image is not harmonized with a face within the image, because an image synthesis is performed at a predefined location or performed at a certain location at a certain size without considering a location or a size of the face displayed within the image.
The above information is presented as background information only to assist with an understanding of the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the present invention.
Aspects of the present invention are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the present invention is to provide a method and an apparatus for image processing capable of synthesizing an image in harmony with a face within the image and providing the synthesized image.
Another aspect of the present invention is to provide a method and an apparatus for image processing capable of synthesizing an image with an appropriate image without losing a flow of conversation and providing the synthesized image.
In accordance with an aspect of the present invention, a method of processing an image is provided. The method includes obtaining an image including a face, obtaining information about whether a preset condition is satisfied after the image is obtained, obtaining location information of a face part in the image when the preset condition is satisfied, and obtaining a synthesis image by adding an image corresponding to the satisfied condition at a location of the face part to the image.
In accordance with another aspect of the present invention, an apparatus for processing an image is provided. The apparatus includes a controller configured to obtain an image including a face, configured to obtain information of whether a preset condition is satisfied after the image is obtained, configured to obtain location information of a face part in the image when the preset condition is satisfied, and configured to obtain a synthesis image by adding an image corresponding to the satisfied condition at a location of the face part to the image.
In accordance with another aspect of the present invention, a storage medium including execution codes readable by a computer to implement an image processing method is provided. The image processing method includes obtaining an image including a face, obtaining information about whether a preset condition is satisfied after the image is obtained, obtaining location information of a face part in the image when the preset condition is satisfied, and obtaining a synthesis image by adding an image corresponding to the satisfied condition at a location of the face part to the image.
Other aspects, advantages, and salient features of the invention will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses exemplary embodiments of the invention.
The above and other aspects, features, and advantages of certain exemplary embodiments of the present invention will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:
Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures.
The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of exemplary embodiments of the invention as defined by the claims and their equivalents. It includes various specific details to assist in that understanding but these are to be regarded as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions may be omitted for clarity and conciseness.
The terms and words used in the following description and claims are not limited to the bibliographical meanings, but, are merely used by the inventor to enable a clear and consistent understanding of the invention. Accordingly, it should be apparent to those skilled in the art that the following description of exemplary embodiments of the present invention is provided for illustration purpose only and not for the purpose of limiting the invention as defined by the appended claims and their equivalents.
It is to be understood that the singular forms “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to “a component surface” includes reference to one or more of such surfaces.
Referring to
The communication unit 110 performs a function of transmitting and receiving corresponding data for wire communication or wireless communication of the image processing apparatus 100. For example, the communication unit 110 may include a Radio Frequency (RF) transmitter for performing frequency up conversion and amplification of a transmission signal, and an RF receiver for performing low noise amplification and frequency down conversion of a received signal. In addition, the communication unit 110 receives data through a wireless channel to be output to the controller 160 and transmits data output from the controller 160 through the wireless channel.
More particularly, the communication unit 110 according to an exemplary embodiment of the present invention may transmit and receive an image including a face or a synthesized image. Also, the communication unit 110 may transmit and receive a voice. The communication unit 110 may transmit the voice to an external voice analysis apparatus, and may receive information of whether a corresponding voice includes a specific phrase or satisfies other preset conditions. Also, the communication unit 110 may transmit an image to an external image analysis apparatus, and may receive information about a location and/or a size of a face portion included in a corresponding image from the image analysis device. Further, the communication unit 110 may receive information of whether a corresponding image satisfies a preset condition, for example, whether specific expression information is found, from the image analysis apparatus. When the controller 160 performs an analysis of the voice or the image instead of relying on the external voice analysis apparatus or image analysis apparatus, part or all of a function of communicating with the external voice analysis apparatus and image analysis apparatus may be omitted from functions of the communication unit 110 described above. Also, when transmission and receiving of the image/voice as in a video call is not necessary, the communication unit 110 may be omitted.
The audio processing unit 120 converts a digital audio signal into an analog audio signal through an audio coder-decoder (codec) to be reproduced through a speaker SPK, and converts an analog audio signal inputted from a microphone MIC into the digital audio signal through the audio codec. The audio processing unit 120 may be configured as a codec, and the codec may be configured as a data codec for processing, for example, packet data, and as the audio codec for processing an audio signal such as a voice. The audio processing unit 120 may be omitted when separate processing of an audio signal is not required.
The display unit 130 visually provides to a user a menu of the voice processing unit 100, input data, function setting information, and a variety of other information. The display unit 130 performs a function to output a booting screen, a standby screen, a menu screen, and other application screens of the voice processing unit 100. According to an exemplary embodiment of the present invention, the display unit 130 may display an image synthesized according to an exemplary embodiment of the present invention described below. In addition, when the voice processing unit 100 supports a video call, the display unit 130 may display an image received from the other party of the video call.
The display unit 130 may be formed in, for example, a Liquid Crystal Display (LCD), an Organic Light Emitting Diode (OLED), or an Active Matrix OLED (AMOLED).
According to an exemplary embodiment of the present invention in which an image is not directly displayed but is instead transmitted to another device, the display unit 130 may be omitted. In this case, another device that receives an image from the image processing apparatus 100 may display a corresponding image.
The input unit 140 may receive a user control input to be transmitted to the controller 160. The input unit 140 may be implemented as a touch sensor and/or a keypad.
The touch sensor, if present, detects a user's touch input. The touch sensor may be configured as a touch detection sensor of, for example, a capacitive overlay type, a resistive overlay type, or an infrared beam type, or configured as a pressure sensor. Other than the above described sensors, all types of sensor devices which can detect a contact or pressure by an object can be used for the touch sensor of the present invention. The touch sensor detects the user's touch input and generates a detection signal to be transmitted to the controller 160. The detection signal includes data of a coordinate at which the user inputs the touch. When the user inputs a touch location movement gesture, the touch sensor generates the detection signal including a coordinate data of a touch location movement path to be transmitted to the controller 160.
The keypad, if present, receives an input signal for controlling the image processing apparatus 100, and generates an input signal to be transmitted to the controller 160. The keypad may include, for example, one or more of a number key and an arrow key, and may be formed on one side of the image processing apparatus 100 as a predetermined function key.
The input unit 140 may include only the touch sensor or the keypad according to an exemplary embodiment of the present invention, or may be omitted when a separate control input is not necessary.
The storage unit 150 may be used to store a program and data used for operating the image processing apparatus 100. The storage unit 150 may be divided into a program area and a data area. The program area, if present, may store one or more of a program for controlling an overall operation of the image processing apparatus 100, an Operating System (OS) for booting the image processing apparatus 100, an application program required to reproduce a multimedia content, and an application program required for another optional function of the image processing apparatus 100 such as, for example, a camera function, a sound reproducing function, or an image or video reproducing function. The data area, if present, is an area in which data generated according to use of the image processing apparatus 100 is stored, and the data area may be used to store, for example, at least one of an image, a video, a phone book, and audio data. More particularly, the storage unit 150 may store an image photographed by the camera unit 170 or an image synthesized by the controller 160.
The camera unit 170 photographs an image. The photographed image is transmitted to the controller 160 or stored in the storage unit 150. A structure for photographing an image is well-known in the related art and thus a detailed description thereof is omitted herein. In an exemplary embodiment of the present invention in which the image is not directly photographed but is instead received from another external device, the camera unit 170 may be omitted.
The controller 160 controls an overall operation of each element of the image processing apparatus 100.
More particularly, referring to
Referring now to
Next, the controller 160 determines whether the preset condition is satisfied at step 220. For example, the controller 160 may determine whether the preset condition is met by analyzing the image. Also, the controller 160 may obtain a voice with the image and determine whether a corresponding voice satisfies the preset condition. Further, whether the preset condition is met may be determined by analyzing both the image and the voice. According to another example, the controller 160 may transmit at least one of the obtained image and voice to an external analysis device and, by using a received analysis result, the controller 160 may determine whether the preset condition is met. A detailed description of determining whether a specific preset condition is met will be made with reference to
If the corresponding preset condition is not satisfied, the process is terminated.
If the corresponding preset condition is satisfied, the process proceeds to step 230.
The controller 160 obtains the information about the location and the size of the face portion in the image at step 230. For example, the controller 160 may obtain information of a location and a size of an eye and/or a mouth of the face. For another example, the controller 160 may directly analyze the image to obtain location information and size information of the face portion. According to another exemplary embodiment of the present invention, the controller 160 may transmit the image to the external image analysis device of the image processing apparatus 100 and receives an analysis result from the image analysis device to obtain the location information and the size information of the face portion. A technology of recognizing at least one of a location and size of the eye and the nose of the face in the image is well known in the related art, and thus a detailed description thereof will be omitted.
Here, the location information may be, for example, a center of gravity of a corresponding face portion or a vertex of a rectangle having a minimum size to include the corresponding face portion. Also, the size information may include height information, width information, information of a diameter or radius, or information of a length of a diagonal line. The size information may be expressed in a form of information of a location of vertices facing each other of the rectangle having the minimum size to include the corresponding face portion. Other various methods may be used to represent the location and size information, with only a difference in expression, and essentially any information which can represent the location and size information may be the location and size information.
The controller 160 adds and synthesizes an image (including a moving image) which corresponds to the preset condition satisfied in step 220 with a corresponding image by using the location information and the size information at step 240. For example, if a phrase “happy” is found in the voice, a smiling image which corresponds to a preset condition for finding the corresponding phrase may be added and synthesized at locations of the eye and the mouth of the image to produce an image of the face smiling. Here, according to the size information of the eye and the mouth, a size of the smiling image may be adjusted. According to an exemplary embodiment of the present invention, the obtaining and using of the size information of the face portion may be omitted. The controller 160 may add and synthesize the smiling image of a predefined size.
Referring now to
The controller 160 transmits the voice obtained through the communication unit 110 to the external voice analysis device of the image processing apparatus 100 at step 320. The controller 160 receives the analysis result of the corresponding voice from the external voice analysis device through the communication unit 110 at step 330. The voice analysis device, for example, analyzes the voice and notifies the image processing apparatus 100 if a preset phrase is found. A technology of analyzing the voice to find a specific phrase is well known in the related art, and thus a detailed description thereof will be omitted. Any voice analyzing technology of corresponding capability may be utilized.
The controller 160 determines whether the preset phrase is found in the corresponding voice at step 340. For example, assume that the image processing apparatus 100 synthesizes an image of a smiling face in a case where the phrase “happy” is found. If the user says, “I'm so happy,” to the image processing apparatus 100 through the microphone MIC, the controller 160 may find the phrase “happy.” The preset phrase may be set by the user or by at least one of a service provider, a terminal producer, and a software provider.
According to an exemplary embodiment of the present invention, an image synthesis is performed according to whether the specific phrase is found through the voice analysis. However, the present invention is not limited thereto. For example, according to a modified example, whether a specific image is to be synthesized with the image may be determined by using one or more of a tone, a pitch, and a loudness of the voice. Also, in an exemplary embodiment of the present invention, merging a specific image on video by using one of tone, pitch, loudness of voice can be determined. Also, in an exemplary embodiment of the present invention, when the specific image is found, it is determined whether to synthesize the specific image with the image by considering at least one of the tone, the pitch, and the loudness of the voice of the corresponding phrase, is possible. Here, it is assumed that only whether the specific phrase is found is considered.
If the specific phrase is not found, the process is terminated.
If the specific phrase is found, the process proceeds to step 350.
The controller 160 obtains the location information and the size information of the face part in the image at step 350. Referring to
For another example, the size of the image 451 may be adjusted while maintaining a ratio of a left-to-right length to a top-to-bottom height. Thus, the left-to-right length of the image 451 may be determined regardless of a top-to-bottom height of the eye, and the top-to-bottom height of the image 451 may be determined in proportion thereto. On the other hand, the size of the image 451 may be adjusted while not maintaining the ratio of the left-to-right length and the top-to-bottom height. For another example, with respect to an eye having a thin and wide eye, the image 451 may be modified to be likewise in a relatively thin and wide shape to be synthesized.
The image synthesized in the above manner may be displayed on the display unit 130 as shown in the second screen 440. Also, the synthesized image may be transmitted to the other party of the video call. The other party of the video call may be provided with an image including the user's face in which images 481, 482, and 483 as shown in a third screen 470 are synthesized. According to another exemplary embodiment of the present invention, the synthesized image may be saved in the storage unit 150 temporarily or semi-permanently. The image saved in the storage unit 150 may be reproduced later or utilized for additional processing. The synthesized image may be, for example, used for a Social Network Service (SNS) or posted on a web page through a copyright tool or other application.
In the above described example, if the specified phrase is found, the image synthesis may apply to a part of the image corresponding to a time point at which the specific phrase is found. For example, when the phrase “happy” is found in the voice at 2:00 minute of a total length, the image of the smiling face may be synthesized with an image corresponding to 2:00 to 2:03 minutes. However, a start/end point of applying the synthesis may be variously modified according to an exemplary embodiment of the present invention.
A plurality of phrases other than the above mentioned phrase may be set up beforehand, and different images may be assigned to respective phrases. For example, a crying image may be assigned to a phrase “sad.” Thus, images corresponding to any of various emotions, statements, words, or phrases may be assigned.
Referring now to
The controller 160 may detect the facial expression by directly analyzing the image, or may detect the facial expression using the external image analysis device of the image processing apparatus 100.
A winking face 615 is shown on the first screen 610 of
The controller 160 determines whether a specific facial expression is detected at step 530. In other words, the controller 160 determines whether facial expression information of the winking face, or similarity having a value higher than a preset value, is detected when an image pattern corresponding to the winking face is compared with the image. When preset facial expression such as a wink is detected as shown in the first screen 610 of
The controller 160 obtains the location and size information of the face part in the image at step 540. A detailed method of obtaining the location and size information has already been described with reference to
The controller 160 adjusts and displays an image corresponding to the detected facial expression at a corresponding location according to a size of the eye at step 550. Similar to the exemplary embodiments of
The image synthesized in the above manner may be displayed on the display unit 130 of the image processing apparatus 100 as shown in the second screen 640. Also, the synthesized image may be transmitted to the other party of the video call. The other party of the video call may be provided with an image including the other party's face in which an image 681 shown in a third screen 670 is synthesized. According to another exemplary embodiment, the synthesized image may be saved in the storage unit 150 temporarily or semi-permanently. The image saved in the storage unit 150 may be reproduced later or utilized for additional processing. The synthesized image may be used for the SNS or posted on a web page through the copyright tool or other application.
Here, it should be understood that each block of the flowcharts and a combination of the blocks of the flowcharts may be carried out by computer program instructions. Because these computer program instructions can be loaded in non-transitory storage on a general-purpose computer, a special purpose computer, or a processor of data processing equipment, these instructions carried out by a computer or a processor of the data processing equipment may generate means for performing functions described in connection with the block(s) of the flowcharts. These computer program instructions can be stored in a computer or a non-transitory memory usable or readable by the computer, which can be used for programmable data processing equipment, in order to implement a function in a specific way, and thus, it is possible to produce the instructions stored in the computer usable or readable memory into a manufactured item that contains instruction means for performing the function described in connection with the block(s) in the flow. Because computer program instructions can be loaded on the computer or other programmable data processing equipment, computer program instructions which perform on the computer or other programmable data processing equipment can provide steps for performing the described functions described with connection to the block(s) in the flow charts by generating a process, executed by the computer, in which a series of steps are carried out by the computer or the other programmable data processing equipment.
Also, each block may illustrate a part of a module, a segment, or code including one or more executable instructions for performing at least one specific logical function. Additionally, in several alternative exemplary embodiments, functions described with connection to the blocks may be performed in a different order. For example, two blocks shown in a row may be performed substantially concurrently, or the blocks may be performed in a different order according to a corresponding function.
Also, the term ‘unit’ used in the exemplary embodiments herein includes a combination of hardware and software elements or a hardware element such as a Field Programmable Gate Array (FPGA) or Application-Specific Integrated Circuit (ASIC), and the ‘unit’ performs certain functions. However, the ‘unit’ is not limited to the combination of hardware and software or hardware. The ‘unit’ may be configured to be embodied within a non-transitory storage medium that can be addressed and configured to be reproduced by one or more processors. Accordingly, for example, the ‘unit’ may include elements such as software elements, object oriented software elements, class elements, and task elements, as well as processes, functions, properties, procedures, sub-routines, segments of program codes, drivers, firmware, microcodes, circuits, data, a database, data structures, tables, arrays, and variables that are executed and/or processed by at least one processor. Functions provided by the elements and the ‘units’ can be combined into a smaller number of elements and ‘unit’s, or divided into additional elements and ‘units.’ Also, the elements can be embodied to run one or more Central Processing Units (CPUs) within a device or a security multimedia card.
According to an exemplary embodiment of the present invention, an effect of providing a method and an apparatus for image processing capable of synthesizing an image in harmony with a face within the image and providing the synthesized image may be achieved.
Also, according to an exemplary embodiment of the present invention, an effect of providing a method and an apparatus for image processing capable of synthesizing an image with an appropriate image without losing a flow of conversation and providing the synthesized image may be achieved.
While the invention has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2012-0018636 | Feb 2012 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
4975960 | Petajan | Dec 1990 | A |
6707484 | Kawasaki et al. | Mar 2004 | B1 |
7797261 | Yang | Sep 2010 | B2 |
8411160 | Iwamoto | Apr 2013 | B2 |
8681235 | Choi | Mar 2014 | B2 |
8750678 | Li et al. | Jun 2014 | B2 |
8792685 | Sangster | Jul 2014 | B2 |
20030007071 | Goto | Jan 2003 | A1 |
20050273331 | Lu | Dec 2005 | A1 |
20070009028 | Lee et al. | Jan 2007 | A1 |
20070190513 | Ito | Aug 2007 | A1 |
20070220044 | Marugame | Sep 2007 | A1 |
20080218603 | Oishi | Sep 2008 | A1 |
20090110245 | Thorn | Apr 2009 | A1 |
20090175510 | Grim et al. | Jul 2009 | A1 |
20090251557 | Kim et al. | Oct 2009 | A1 |
20110122219 | Kim et al. | May 2011 | A1 |
20110227923 | Mariani et al. | Sep 2011 | A1 |
Number | Date | Country |
---|---|---|
1 347 646 | Sep 2003 | EP |
10-2002-0015642 | Feb 2002 | KR |
10-2008-0057030 | Jun 2008 | KR |
10-2008-0110324 | Dec 2008 | KR |
100886489 | Feb 2009 | KR |
Number | Date | Country | |
---|---|---|---|
20130223695 A1 | Aug 2013 | US |