This application claims the benefit under 35 U.S.C. §119(a) of a Korean patent application filed on Sep. 2, 2013 in the Korean Intellectual Property Office and assigned Serial number 10-2013-0105161, the entire disclosure of which is hereby incorporated by reference.
The present disclosure relates to a method and electronic device for synthesizing images.
A camera for taking pictures is now commonly equipped in most portable electronic devices, such as recently launched smartphones and tablet Personal Computers (PCs). As the various functions of a camera become more important to people, an electronic device having a camera on each of opposite sides is provided.
In general, a camera at the front of the electronic device and a camera at the rear thereof are used for different purposes. For example, the camera at the front of the electronic device is often used for the purpose of taking a self-portrait picture, and the camera at the rear of the electronic device is used for the purpose of taking a picture of an object, landscape, or portrait of someone other than a user. Recently, a technique for simultaneously driving the front and rear cameras to utilize images obtained from them is provided. For example, a user of an electronic device may drive the both front and rear cameras equipped in the electronic device and the electronic device may display two images obtained from the driven front and rear cameras on one screen concurrently.
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 disclosure.
Aspects of the present disclosure are to address at least the abovementioned problems and/or disadvantages and to provide at least the advantages below. Accordingly, an aspect of the present disclosure is to provide a method and device for synthesizing a second image in a first image obtained through a first camera and a second camera equipped at different positions of an electronic device.
Conventionally, two images obtained by using front and rear cameras in an electronic device are displayed on a predetermined fixed area. Accordingly, a method of efficiently displaying two images obtained through front and rear cameras in an electronic device may be required.
Another aspect of the present disclosure is to provide a method and device for determining an object for synthesizing a second image in a first image obtained through a first camera in an electronic device.
Another aspect of the present disclosure is to provide a method and device for displaying a handler mask again when the handler mask is not displayed by synthesizing a second image in a first image in an electronic device.
In accordance with an aspect of the present disclosure, a method of controlling an electronic device is provided. The method includes obtaining a first image and a second image, determining at least one object in the first image, and synthesizing the second image with the determined at least one object.
In accordance with another aspect of the present disclosure, an electronic device is provided. The electronic device includes a touch detection display, and at least one processor configured to obtain a first image and a second image, to determine at least one object in the first image, and to synthesize the second image with the determined at least one object.
Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the present disclosure.
The above and other aspects, features, and advantages of certain embodiments of the present disclosure will become 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 various embodiments of the present disclosure 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 various embodiments described herein can be made without departing from the scope and spirit of the present disclosure. 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 present disclosure. Accordingly, it should be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustration purpose only and not for the purpose of limiting the present disclosure 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.
Hereinafter, an electronic device may be a device including at least one camera. For example, the electronic device may be a combination including at least one of a smart phone, a tablet Personal Computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PC, a netbook computer, a Personal Digital Assistant (PDA), a Portable Multimedia Player (PMP), a Motion Picture Experts Group (MPEG)-2 Audio Layer III (MP3) player, a mobile medical device, a camera, a wearable device, an electronic clock, a wrist device, a refrigerator, an air conditioner, a vacuum cleaner, an artificial intelligence robot, a TV, a Digital Video Disk (DVD) player, an audio system, an oven, a microwave, a washing machine, an air purifier, various medical devices (for example, Magnetic Resonance Angiography (MRA), Magnetic Resonance Imaging (MRI), Computed Tomography (CT), tomography, and ultrasonography), a navigation device, a Global Positioning System (GPS) receiver, an Event Data Recorder (EDR), a Flight Data Recorder (FDR), a set-top box, a TV box (for example, Samsung HomeSync™), an electronic dictionary, a vehicle infotainment device, electronic equipment for a ship (for example, a navigation device for a ship and a gyro compass), avionics, a security device, part of a piece of furniture or a building/structure including an electronic device, an electronic board, an electronic signature receiving device, and a projector. It will be apparent to those skilled in the art that the electronic device is not limited to the above-mentioned devices.
In the description below, an image may include at least one of a still image, a moving image, and a preview image.
Referring to
The bus 110 connects components in the electronic device 100 and controls communication between components in the electronic device 100.
The processor 120 may control the electronic device 100 so that it may provide various services. For example, the processor 120 interprets a command received from at least one other component (for example, the memory 130, the user input module 140, the display module 150, and the camera module 160) in the electronic device 100 through the bus 110 and performs operations and data processing according to the interpreted command.
The processor 120 may control the electronic device 100 thereby providing various services by executing at least one program stored in the memory 130. The processor 120 according to an embodiment of the present disclosure controls an object tracking program 131, thereby tracking at least one object in a first image and determining an object for synthesizing a second image among at least one tracked objects. The processor 120 may control an image synthesis program 132, thereby synthesizing the second image in the determined object in the first image. The synthesis includes rendering and displaying an adjusted second image in an area having an object of a first image on the basis of at least one of the size, shape, and distortion of an object included in the first image.
The memory 130 may store commands or data received or generated from at least one component (for example, the processor 120, the user input module 140, the display module 150, and the camera module 160) included in the electronic device 100. For example, the memory 130 may store output characteristics of a peripheral device connectable to the electronic device 100 and application program information recognized as a virtual device.
The memory 130 stores at least one program for a service of the electronic device 100. For example, the memory 130 may include at least one of the object tracking program 131 and the image synthesis program 132.
The object tracking program 131 may include at least one software component for tracking at least one object area in a first image obtained through the first camera 161 and determining an object for synthesizing a second image in the at least one tracked object.
The object tracking program 131 may track at least one object in the first image by analyzing the first image obtained through the first camera 161 equipped in the electronic device 100. The object tracking program 131 may track at least one object in the first image by analyzing the first image obtained through the first camera 161 equipped in the electronic device 100.
Furthermore, the object tracking program 131 may determine an object for synthesizing the second image from among at least one tracked object. For example, if the second image or the handler mask of the second image approaches within a threshold distance of the tracked object according to a user control, the object tracking program 131 may determine a corresponding object as an object for synthesizing the second image. Here, the handler mask, as an interface for moving and displaying the second image or for adjusting a display size of the second image, may be displayed on a periphery or a border of the second image. As another example, the second image or a handler mask of the second image overlaps at least two tracked objects, the object tracking program 131 confirms an area where the second image or a handler mask of the second image overlaps the tracked object, and determines an object having the largest overlapping area as an object for synthesizing the second image. As another example, when a specific object is selected from among at least one tracked object according to a user control, the object tracking program 131 may determine a corresponding object as an object for synthesizing the second image. As another example, the object tracking program 131 may display a graphic effect emphasizing some objects that satisfy a predetermined condition on the first image among the all tracked objects and may determine an object selected by a user control among the emphasized objects as an object for synthesizing the second image. As another example, when four points on the handler mask match four points of a specific object according to a user control, the object tracking program 131 may determine a corresponding object as an object for synthesizing the second image. If a handler mask for the second image is not provided, the object tracking program 131 may determine an object for synthesizing the second image by matching four arbitrary points of the second image and four points of an object.
The image synthesis program 132 may include at least one software component for synthesizing the second image in the determined object area of the first image on the basis of information on an area of the object determined by the object tracking program 131. In more detail, when an object for synthesizing the second image by the object tracking program 131 is determined, the image synthesis program 132 may synthesize the second image in an area of a corresponding object by adjusting the size and angle of the second image on the basis of information on a corresponding object area.
When the second image is synthesized with the object of the first image, the image synthesis program 132 may not display the handler mask of the second image in order for synthesis without sense of discomfort.
When the second image is synthesized with the object of the first image, the image synthesis program 132 may not display the handler mask of the second image.
Furthermore, while the handler mask of the second image is not displayed, the image synthesis program 132 may display the handler mask again according to input information. For example, when the object area synthesized with the second image is selected or touched by a user, the image synthesis program 132 may display the handler mask of the selected or touched second image again on a periphery or a border of the second image. As another example, when another area (for example, a background area) except for the area of the object synthesized with the second image is selected or touched by a user, the image synthesis program 132 may display the handler mask of the synthesized second image again on a periphery or a border of the second image. As another example, the first image including the object synthesized with the second image is not obtained any more by the object tracking program 131, the image synthesis program 132 may display the second image on the initial display position of the second image or the last display position of the synthesis image, or may display the handler mask on a periphery or a border of the second image. As another example, when a user request for displaying a handler mask displayed on an arbitrary area in the first image is detected, for example, a user request is detected on the basis of a user gesture, a touch operation, a key button, an icon, and a menu, the image synthesis program 132 may display the handler mask of the synthesized second image again on a periphery or a border of the second image.
The user input module 140 may transmit commands or data resulting from a user's selection to the processor 120 through the bus 110. For example, the user input module 140 may include at least one of a keypad including at least one hardware button and a touch panel for detecting touch inputs.
The display module 150 may display images, video, or data to a user. The display module 150 may display an image synthesized with the second image in the first image.
The camera module 160 obtains an image through data inputted from each of the first camera 161 and the second camera 162 and delivers it to the processor 120.
The first camera 161 and the second camera 162 may capture an image of a specific object according to a user control. The first camera 161 and the second camera 162 may be provided at different positions on a device and may be driven simultaneously or at different times according to a user control. For example, the first camera 161 may be a camera disposed at the rear of the electronic device 100, that is, facing away from the user, and the second camera 162 may be a camera disposed at the front of the electronic device 100, that is, facing towards the user.
In the above description, for convenience of description, although it is assumed that two cameras are provided at the electronic device 100, the present disclosure is not limited thereto and may be applied to the electronic device 100 including only one camera. For example, when the electronic device 100 includes only one camera, it may synthesize an image obtained through the camera and an image stored in the electronic device 100 or an image obtained from an external device. In order to obtain an image from an external device, it is assumed that an electronic device includes an additional communication unit for performing a communication with an external device.
Referring to
Additionally, the electronic device 100 may perform an operation 203 for determining at least one object within the first image. The electronic device 100 may include a means for tracking an object in a corresponding image by analyzing an image during image acquisition.
Additionally, the electronic device 100 may perform an operation 205 for synthesizing the second image with at least one determined object. Furthermore, as the electronic device 100 or the first camera 161 of the electronic device 100 moves, if information on the shape or size of the determined object is updated, the electronic device 100 may include a means for changing the shape and size of the second image according to the updated information and perform the operation 205 synthesizing the changed second image with the determined object in real time.
Referring to
The electronic device 100 may obtain a first image and a second image by using the first camera 161 and the second camera 162 in operation 303. Here, the first image refers to an image obtained through the first camera 161 and the second image refers to an image obtained through the second camera 162.
The electronic device 100 may determine an object for synthesizing the second image in the first image in operation 305. In more detail, after tracking at least one object in the obtained first image, the electronic device 100 may determine an object selected according to a user control from among at least one tracked object as an object for synthesizing the second image. A method of determining an object for synthesizing a second image is described based on various embodiments below.
The electronic device 100 may adjust the size of the second image according to the size of the determined object area in operation 307. For example, the electronic device 100 may confirm the size information on an object determined as an object for synthesizing the second image and then may adjust the size of the second image according to the confirmed size information. In addition, the electronic device 100 may confirm the angle or shape information on an area of an object determined as an object for synthesizing the second image and then may adjust the angle or shape of the second image according to the confirmed size information.
The electronic device 100 may synthesize the size-adjusted second image with the determined object in operation 309. The electronic device 100 may synthesize the size and angle-adjusted second image with an object determined as an object for synthesizing the second image among at least one tracked object.
The electronic device 100 may confirm whether an image including an object synthesized with the second image is obtained continuously in operation 311. For example, when the second image is synthesized with a specific object of the first image, the electronic device 100 may confirm whether an object synthesized with the second image is included in the first image that is continuously obtained in real time through the first camera 161.
If an image including a synthesized object is obtained continuously, the electronic device 100 may continuously synthesize the second image with the synthesized object in operation 313. Then, the electronic device 100 returns to operation 311 and performs following operations again.
On the contrary, if an image including a synthesized object is not obtained continuously, the electronic device 100 proceeds to operation 315 and confirms whether a threshold time elapses. The threshold time may be preset during a design operation or may be changed according to a user control.
If the threshold time elapses, the electronic device 100 may proceed to operation 317 and may display the second image on an arbitrary area of the first image.
For example, if the first image including an object synthesized with the second image is no longer obtained, the electronic device 100 may release the synthesis. If the first image including a synthesized object is then not obtained for more than the threshold time, the electronic device 100 may display the second image on an arbitrary area of the obtained first image or an area pre-designated by a user.
For another example, if the first image including an object synthesized with the second image is no longer obtained, the electronic device 100 may release the synthesis of the first image and the second image. If the first image including an object synthesized with the second image is then not obtained for more than the threshold time, the electronic device 100 may display the second image on an arbitrary area of the obtained first image.
As another example, if the first image including an object synthesized with the second image is no longer obtained, the electronic device 100 may release the synthesis of the first image and the second image. When a user input for the first image is detected or a predetermined gesture is detected during a synthesis released state, the electronic device 100 may then display the second image on an arbitrary area of the obtained first image.
According to another embodiment, if the first image including an object synthesized with the second image is no longer obtained, the electronic device 100 may release the synthesis of the first image and the second image. If the first image including an object synthesized with the second image is then not obtained for more than the threshold time, the electronic device 100 may additionally display a user interface for determining a display area of the second image in the first image by a user and may display the second image on an area selected by a user. The user interface for allowing a user to determine a display area of the second image in the first image may select at least one object in object areas included in the first image.
According to another embodiment, if the first image including an object synthesized with the second image is no longer obtained, the electronic device 100 may release the synthesis. If the first image including a synthesized object is then not obtained for more than the threshold time, the electronic device 100 may not display the second image. Then, the electronic device 100 may terminate a procedure according to an embodiment of the present disclosure.
On the contrary, if the threshold time does not elapse, the electronic device 100 returns to operation 311 and performs following operations again. That is, if the first image including an object synthesized with the second image is obtained again before the threshold time elapses, the electronic device 100 returns to operation 311 and performs following operations.
Hereinafter, on the basis of drawings representing various embodiments of the present disclosure, methods of determining an object for synthesizing the second image in the first image and synthesizing the second image with the determined object are described.
The electronic device 100, as shown in
When an object for synthesizing the second image is determined, the electronic device 100, as shown in
When the second image 501 overlaps at least two objects 503, 505, 507, and 509 included in the first image, the electronic device 100, as shown in
The electronic device 100, as shown in
The electronic device 100, as shown in
When an object for synthesizing the second image is determined, the electronic device 100, as shown in
Additionally, when a touch (for example, a tap, a double tap, or a tap of more than a predetermined time) on the synthesized image 605 is detected, the synthesis is released and a handler mask for the second image may be displayed.
The electronic device 100, as shown in
Referring to
The electronic device 100, as shown in
If the four points 805-1 to 805-4 included in the handler mask of the second image are matched to the four points of a specific object according to a user control, the electronic device 100 may determine a corresponding object as an object for synthesizing the second image. When an object for synthesizing the second image is determined, the electronic device 100, as shown in
The electronic device 100, as shown in
Referring to
When an object for synthesizing the second image is determined, the electronic device 100, as shown in
Referring to
In addition, the electronic device 100 may display separately a button for synthesizing an image and a button for releasing the synthesis of an image.
After a synthesized image 1001 is displayed, if the first image including an object synthesized with the second image 1005 is not obtained any more, the electronic device 100 may not display the second image 1005 and if the first image including an object synthesized with the second image 1005 is not obtained for more than the threshold time, the electronic device 100 may display the second image 1005 and a handler mask of the second image 1005 on an arbitrary area 1003 of the first image. Again, the displayed second image 1005 refers to a simple image display instead of a synthesis. For example, after a synthesized image 1001 is displayed, as shown in
Referring to
Referring to
In addition, in the above description, a method of performing a synthesis by using a first image and a second image obtained through the first camera 161 and the second camera 162 is described but the present disclosure is not limited thereto. A synthesis may be performed by using an image received from another electronic device or an image stored in the electronic device 100.
The embodiments and all functional operations described in this specification may be implemented using computer software, firmware, hardware, which include structures disclosed in this specification and their equivalent structures, and a combination thereof. Additionally, the embodiments of the present disclosure described in this specification may be implemented using at least one computer program product, that is, a data processing device, or may be implemented using at least one module of computer program instructions encoded on a nontransitory computer readable recording medium for controlling an operation of this device.
The nontransitory computer readable recording medium may be one of a machine readable storage medium, a machine readable storage substrate, a memory device, a configuration of materials affecting a machine readable wave stream, or a combination thereof. The term “data processing device” may include all equipment, devices, and machines for processing data, for example, a programmable processor, a computer, or a multi-processor. In addition to hardware, the devices may include a code for generating an execution environment for a corresponding computer program, for example, a code configuring processor firmware, protocol, stack, database management system, operating system, or a combination thereof.
While the present disclosure has been shown and described with reference to various 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 present disclosure as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2013-0105161 | Sep 2013 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
9088712 | Son | Jul 2015 | B2 |
9207859 | Woo | Dec 2015 | B2 |
9467648 | Kwon | Oct 2016 | B2 |
20020145042 | Knowles et al. | Oct 2002 | A1 |
20030019933 | Tsikos et al. | Jan 2003 | A1 |
20030190089 | Katsuda | Oct 2003 | A1 |
20060048069 | Igeta | Mar 2006 | A1 |
20080198175 | Sun | Aug 2008 | A1 |
20100058182 | Jung | Mar 2010 | A1 |
20100097339 | Ooba | Apr 2010 | A1 |
20100157107 | Iijima | Jun 2010 | A1 |
20110025710 | Kennedy | Feb 2011 | A1 |
20110231791 | Itahana | Sep 2011 | A1 |
20110275415 | Lee | Nov 2011 | A1 |
20120027294 | Krolczyk | Feb 2012 | A1 |
20120038626 | Kim | Feb 2012 | A1 |
20120224787 | Imai | Sep 2012 | A1 |
20120268552 | Choi | Oct 2012 | A1 |
20120274808 | Chong | Nov 2012 | A1 |
20130033633 | Son | Feb 2013 | A1 |
20130038759 | Jo | Feb 2013 | A1 |
20130050519 | Lee | Feb 2013 | A1 |
20130117692 | Padmanabhan | May 2013 | A1 |
20130162853 | Kim | Jun 2013 | A1 |
20130162876 | Song | Jun 2013 | A1 |
20130188886 | Petrou | Jul 2013 | A1 |
20130208167 | Chou | Aug 2013 | A1 |
20130229529 | Lablans | Sep 2013 | A1 |
20130235223 | Park | Sep 2013 | A1 |
20130254688 | Shechtman | Sep 2013 | A1 |
20140129990 | Xin | May 2014 | A1 |
20140325439 | Sohn | Oct 2014 | A1 |
20140354848 | Kim | Dec 2014 | A1 |
20140355974 | Low | Dec 2014 | A1 |
20150293666 | Lee | Oct 2015 | A1 |
Number | Date | Country | |
---|---|---|---|
20150067554 A1 | Mar 2015 | US |