[go: up one dir, main page]

KR102457247B1 - Electronic device for processing image and method for controlling thereof - Google Patents

Electronic device for processing image and method for controlling thereof Download PDF

Info

Publication number
KR102457247B1
KR102457247B1 KR1020150133683A KR20150133683A KR102457247B1 KR 102457247 B1 KR102457247 B1 KR 102457247B1 KR 1020150133683 A KR1020150133683 A KR 1020150133683A KR 20150133683 A KR20150133683 A KR 20150133683A KR 102457247 B1 KR102457247 B1 KR 102457247B1
Authority
KR
South Korea
Prior art keywords
image
electronic device
motion
amount
difference
Prior art date
Application number
KR1020150133683A
Other languages
Korean (ko)
Other versions
KR20160134428A (en
Inventor
나진희
파리자트 프라까쉬 프라부데사이
사베리 라쥬 샨무감
크쉬티즈 드위베디
산켓 데쉬무크
싯다르스 레디 말레디
이기혁
현종민
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to US15/154,615 priority Critical patent/US10091436B2/en
Publication of KR20160134428A publication Critical patent/KR20160134428A/en
Application granted granted Critical
Publication of KR102457247B1 publication Critical patent/KR102457247B1/en

Links

Images

Classifications

    • H04N5/232
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

본 발명의 다양한 실시예에 따른 전자 장치는, 카메라 모듈 및 이미지 처리 모듈을 포함할 수 있다. 이미지 처리 모듈은, 제 1 오브젝트와 제 2 오브젝트를 포함하는 상기 장면에 대하여 제 1 이미지와 제 2 이미지를 획득하고, 상기 제 1 이미지와 상기 제 2 이미지를 이용하여 상기 제 1 오브젝트에 대응하는 제 1 모션량 및 상기 제 2 오브젝트에 대응하는 제 2 모션량을 확인하고, 상기 제 1 모션량과 상기 제 2 모션량에 적어도 기반하여 상기 제 1 오브젝트에 대응하는 제 1 이미지 영역과 상기 제 2 오브젝트에 대응하는 제 2 이미지 영역에 서로 다른 효과를 적용할 수 있다.An electronic device according to various embodiments of the present disclosure may include a camera module and an image processing module. The image processing module is configured to obtain a first image and a second image for the scene including the first object and the second object, and use the first image and the second image to obtain a first image corresponding to the first object A first amount of motion and a second amount of motion corresponding to the second object are identified, and the first image region corresponding to the first object and the second object are at least based on the first amount of motion and the second amount of motion. Different effects may be applied to the second image area corresponding to .

Description

이미지를 처리하는 전자 장치 및 그 제어 방법 {ELECTRONIC DEVICE FOR PROCESSING IMAGE AND METHOD FOR CONTROLLING THEREOF}ELECTRONIC DEVICE FOR PROCESSING IMAGE AND METHOD FOR CONTROLLING THEREOF

본 발명은 이미지를 처리하는 전자 장치 및 그 제어 방법에 관한 것이다.The present invention relates to an electronic device for processing an image and a method for controlling the same.

근자에 들어서 카메라 모듈을 포함하는 전자 장치(예: 휴대용 전자 장치)가 널리 보급되고 있다. 이에 따라, 사용자는 원하는 시점에 용이하게 전자 장치를 이용하여 이미지를 촬영할 수 있다. 특히, 근자의 전자 장치는 전면부와 후면부에 각각 카메라 모듈을 포함할 수 있다. 이에 따라, 사용자는 외관을 촬영하고 싶은 경우에는, 전자 장치의 후면부에 배치된 카메라 모듈을 이용하여 이미지를 촬영할 수 있다. 아울러, 사용자는 자신을 촬영하고 싶은 경우에는, 전자 장치의 전면부에 배치된 카메라 모듈을 이용하여 이미지를 촬영할 수 있다.Recently, an electronic device (eg, a portable electronic device) including a camera module has been widely used. Accordingly, the user can easily take an image using the electronic device at a desired time point. In particular, recent electronic devices may include a camera module on a front part and a rear part, respectively. Accordingly, when the user wants to photograph the exterior, the user may photograph the image using the camera module disposed on the rear portion of the electronic device. In addition, when the user wants to take a picture of himself/herself, the user may take an image by using a camera module disposed on the front side of the electronic device.

상술한 바와 같이, 전자 장치는 전면부에 배치된 카메라 모듈을 이용하여 이미지를 촬영할 수 있다. 하지만, 전자 장치가 소형화됨에 따라서 전자 장치에 포함되는 카메라 모듈 또한 상대적으로 소형일 수 있다. 이에 따라, 전자 장치에 포함된 카메라 모듈은 상대적으로 제한된 기능을 수행할 수 밖에 없다. 예를 들어, 아웃 포커스(out focus) 효과와 같은 렌즈의 구동이 요구되는 촬영 기능은 소형화된 전자 장치에 포함된 카메라 모듈에서 동작되기 어렵다.As described above, the electronic device may capture an image using the camera module disposed on the front part. However, as the electronic device is miniaturized, the camera module included in the electronic device may also be relatively small. Accordingly, the camera module included in the electronic device has no choice but to perform a relatively limited function. For example, a photographing function that requires driving of a lens, such as an out focus effect, is difficult to operate in a camera module included in a miniaturized electronic device.

본 발명의 다양한 실시예에 따라서, 상술한 바와 같은 제한적인 기능을 가지는 카메라 모듈을 포함하는 전자 장치도 아웃 포커스 기능, 세그먼테이션 기능, 깊이 맵(depth map) 생성등의 다양한 기능을 수행할 수 있다.According to various embodiments of the present disclosure, an electronic device including the camera module having the above-described limited functions may also perform various functions such as an out-focus function, a segmentation function, and generation of a depth map.

본 발명의 다양한 실시예에서, 전자 장치는, 장면(scene)을 촬영하기 위한 카메라 모듈; 및 상기 카메라 모듈에 기능적으로 연결된 이미지 처리 모듈을 포함하고, 상기 이미지 처리 모듈은, 제 1 오브젝트와 제 2 오브젝트를 포함하는 상기 장면에 대하여 제 1 이미지와 제 2 이미지를 획득하고; 상기 제 1 이미지와 상기 제 2 이미지를 이용하여 상기 제 1 오브젝트에 대응하는 제 1 모션량 및 상기 제 2 오브젝트에 대응하는 제 2 모션량을 확인하고; 및 상기 제 1 모션량과 상기 제 2 모션량에 적어도 기반하여 상기 제 1 오브젝트에 대응하는 제 1 이미지 영역과 상기 제 2 오브젝트에 대응하는 제 2 이미지 영역에 서로 다른 효과를 적용할 수 있다. 디스플레이는 효과가 적용된 이미지를 표시할 수 있거나 또는 메모리는 효과가 적용된 이미지를 저장할 수 있다.In various embodiments of the present disclosure, an electronic device may include a camera module for photographing a scene; and an image processing module operatively connected to the camera module, wherein the image processing module is configured to: acquire a first image and a second image for the scene including a first object and a second object; identifying a first motion amount corresponding to the first object and a second motion amount corresponding to the second object by using the first image and the second image; and different effects may be applied to the first image area corresponding to the first object and the second image area corresponding to the second object based on at least the first motion amount and the second motion amount. The display may show an image to which the effect has been applied or the memory may store the image to which the effect has been applied.

본 발명의 다양한 실시예에서, 전자 장치는, 하나의 오브젝트를 포함하는 장면을 촬영하는 카메라 모듈; 및 상기 카메라 모듈에 기능적으로 연결된 이미지 처리 모듈을 포함하고, 상기 이미지 처리 모듈은, 상기 장면(scene)에 대한 복수 개의 이미지를 획득하고; 상기 복수 개의 이미지에서 상기 오브젝트에 대응하는 모션 량이 지정된 값을 만족하는지 확인하고; 및 상기 확인 결과에 적어도 기반하여 상기 오브젝트에 대응하는 이미지 영역에 지정된 효과를 적용할 수 있다.In various embodiments of the present disclosure, an electronic device may include a camera module for capturing a scene including one object; and an image processing module operatively connected to the camera module, wherein the image processing module is configured to: acquire a plurality of images for the scene; check whether a motion amount corresponding to the object in the plurality of images satisfies a specified value; and a specified effect may be applied to the image area corresponding to the object based at least on the confirmation result.

본 발명의 다양한 실시예에 따라서, 카메라의 심도 조절을 할 수 없는 소형 전자 장치에서도 아웃 포커스 기능, 세그먼테이션 기능, 깊이 맵(depth map) 생성등의 다양한 기능을 수행할 수 있는 전자 장치 및 그 제어 방법이 제공될 수 있다.According to various embodiments of the present disclosure, an electronic device capable of performing various functions, such as an out-focus function, a segmentation function, and a depth map generation, even in a small electronic device that cannot control the depth of a camera, and a method for controlling the same This can be provided.

도 1a는 본 발명의 다양한 실시예에 따른 전자 장치 및 네트워크의 블록도를 도시한다.
도 1b는 본 발명의 다양한 실시예에 따른 전자 장치의 블록도이다.
도 2는 다양한 실시예에 따른 전자 장치의 블록도이다.
도 3은 다양한 실시예에 따른 프로그램 모듈의 블록도이다.
도 4는 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 5a 내지 5e는 본 발명의 다양한 실시예에 따른 전자 장치의 개념도를 도시한다.
도 6은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 7은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 8은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 9a는 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 9b는 본 발며으이 다양한 실시예에 따른 트라이 맵(tri map)의 개념도를 도시한다.
도 10은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 11은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 12는 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 13은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 14는 본 발명의 다양한 실시예에 따른 배경이 블러 처리된 이미지이다.
도 15는 본 발명의 다양한 실시예에 의한 전자 장치의 제어 방법의 흐름도를 도시한다.
도 16은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 17은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 18은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 19는 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
도 20은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.
1A is a block diagram of an electronic device and a network according to various embodiments of the present disclosure;
1B is a block diagram of an electronic device according to various embodiments of the present disclosure;
2 is a block diagram of an electronic device according to various embodiments of the present disclosure;
3 is a block diagram of a program module according to various embodiments of the present disclosure;
4 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
5A to 5E are conceptual diagrams of an electronic device according to various embodiments of the present disclosure.
6 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
7 is a flowchart illustrating a method for controlling an electronic device according to various embodiments of the present disclosure.
8 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
9A is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
9B is a conceptual diagram of a tri map according to various embodiments of the present invention.
10 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
11 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
12 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
13 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
14 is an image in which a background is blurred according to various embodiments of the present disclosure.
15 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
16 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
17 is a flowchart illustrating a method for controlling an electronic device according to various embodiments of the present disclosure.
18 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
19 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.
20 is a flowchart illustrating a method for controlling an electronic device according to various embodiments of the present disclosure.

이하, 본 문서의 다양한 실시예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 문서의 실시예의 다양한 변경(modifications), 균등물(equivalents), 및/또는 대체물(alternatives)을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다.Hereinafter, various embodiments of the present document will be described with reference to the accompanying drawings. However, it is not intended to limit the technology described in this document to specific embodiments, and it should be understood to include various modifications, equivalents, and/or alternatives of the embodiments of this document. . In connection with the description of the drawings, like reference numerals may be used for like components.

본 문서에서, "가진다," "가질 수 있다," "포함한다," 또는 "포함할 수 있다" 등의 표현은 해당 특징(예: 수치, 기능, 동작, 또는 부품 등의 구성요소)의 존재를 가리키며, 추가적인 특징의 존재를 배제하지 않는다.In this document, expressions such as "has," "may have," "includes," or "may include" refer to the presence of a corresponding characteristic (eg, a numerical value, function, operation, or component such as a part). and does not exclude the presence of additional features.

본 문서에서, "A 또는 B," "A 또는/및 B 중 적어도 하나," 또는 "A 또는/및 B 중 하나 또는 그 이상"등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. 예를 들면, "A 또는 B," "A 및 B 중 적어도 하나," 또는 "A 또는 B 중 적어도 하나"는, (1) 적어도 하나의 A를 포함, (2) 적어도 하나의 B를 포함, 또는 (3) 적어도 하나의 A 및 적어도 하나의 B 모두를 포함하는 경우를 모두 지칭할 수 있다.In this document, expressions such as "A or B," "at least one of A and/and B," or "one or more of A or/and B" may include all possible combinations of the items listed together. . For example, "A or B," "at least one of A and B," or "at least one of A or B" means (1) includes at least one A, (2) includes at least one B; Or (3) it may refer to all cases including both at least one A and at least one B.

본 문서에서 사용된 "제 1," "제 2," "첫째," 또는 "둘째,"등의 표현들은 다양한 구성요소들을, 순서 및/또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. 예를 들면, 제 1 사용자 기기와 제 2 사용자 기기는, 순서 또는 중요도와 무관하게, 서로 다른 사용자 기기를 나타낼 수 있다. 예를 들면, 본 문서에 기재된 권리 범위를 벗어나지 않으면서 제 1 구성요소는 제 2 구성요소로 명명될 수 있고, 유사하게 제 2 구성요소도 제 1 구성요소로 바꾸어 명명될 수 있다.As used herein, expressions such as "first," "second," "first," or "second," may modify various elements, regardless of order and/or importance, and refer to one element. It is used only to distinguish it from other components, and does not limit the components. For example, the first user equipment and the second user equipment may represent different user equipment regardless of order or importance. For example, without departing from the scope of the rights described in this document, a first component may be referred to as a second component, and similarly, the second component may also be renamed as a first component.

어떤 구성요소(예: 제 1 구성요소)가 다른 구성요소(예: 제 2 구성요소)에 "(기능적으로 또는 통신적으로) 연결되어((operatively or communicatively) coupled with/to)" 있다거나 "접속되어(connected to)" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제 3 구성요소)를 통하여 연결될 수 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소(예: 제 1 구성요소)가 다른 구성요소(예: 제 2 구성요소)에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소와 상기 다른 구성요소 사이에 다른 구성요소(예: 제 3 구성요소)가 존재하지 않는 것으로 이해될 수 있다.A component (eg, a first component) is "coupled with/to (operatively or communicatively)" to another component (eg, a second component) When referring to "connected to", it will be understood that the certain element may be directly connected to the other element or may be connected through another element (eg, a third element). On the other hand, when it is said that a component (eg, a first component) is "directly connected" or "directly connected" to another component (eg, a second component), the component and the It may be understood that other components (eg, a third component) do not exist between other components.

본 문서에서 사용된 표현 "~하도록 구성된(또는 설정된)(configured to)"은 상황에 따라, 예를 들면, "~에 적합한(suitable for)," "~하는 능력을 가지는(having the capacity to)," "~하도록 설계된(designed to)," "~하도록 변경된(adapted to)," "~하도록 만들어진(made to)," 또는 "~를 할 수 있는(capable of)"과 바꾸어 사용될 수 있다. 용어 "~하도록 구성된(또는 설정된)"은 하드웨어적으로 "특별히 설계된(specifically designed to)" 것만을 반드시 의미하지 않을 수 있다. 대신, 어떤 상황에서는, "~하도록 구성된 장치"라는 표현은, 그 장치가 다른 장치 또는 부품들과 함께 "~할 수 있는" 것을 의미할 수 있다. 예를 들면, 문구 "A, B, 및 C를 수행하도록 구성된(또는 설정된) 프로세서"는 해당 동작을 수행하기 위한 전용 프로세서(예: 임베디드 프로세서), 또는 메모리 장치에 저장된 하나 이상의 소프트웨어 프로그램들을 실행함으로써, 해당 동작들을 수행할 수 있는 범용 프로세서(generic-purpose processor)(예: CPU 또는 application processor)를 의미할 수 있다. As used herein, the expression "configured to (or configured to)" depends on the context, for example, "suitable for," "having the capacity to ," "designed to," "adapted to," "made to," or "capable of." The term “configured (or configured to)” may not necessarily mean only “specifically designed to” in hardware. Instead, in some circumstances, the expression “a device configured to” may mean that the device is “capable of” with other devices or parts. For example, the phrase “a processor configured (or configured to perform) A, B, and C” refers to a dedicated processor (eg, an embedded processor) for performing the operations, or by executing one or more software programs stored in a memory device. , may mean a generic-purpose processor (eg, a CPU or an application processor) capable of performing corresponding operations.

본 문서에서 사용된 용어들은 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 다른 실시예의 범위를 한정하려는 의도가 아닐 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 용어들은 본 문서에 기재된 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가질 수 있다. 본 문서에 사용된 용어들 중 일반적인 사전에 정의된 용어들은, 관련 기술의 문맥상 가지는 의미와 동일 또는 유사한 의미로 해석될 수 있으며, 본 문서에서 명백하게 정의되지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다. 경우에 따라서, 본 문서에서 정의된 용어일지라도 본 문서의 실시예들을 배제하도록 해석될 수 없다.Terms used in this document are only used to describe specific embodiments, and may not be intended to limit the scope of other embodiments. The singular expression may include the plural expression unless the context clearly dictates otherwise. Terms used herein, including technical or scientific terms, may have the same meanings as commonly understood by one of ordinary skill in the art described in this document. Among the terms used in this document, terms defined in a general dictionary may be interpreted with the same or similar meaning to the meaning in the context of the related art, and unless explicitly defined in this document, ideal or excessively formal meanings is not interpreted as In some cases, even terms defined in this document cannot be construed to exclude embodiments of the present document.

본 문서의 다양한 실시예들에 따른 전자 장치는, 예를 들면, 스마트폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 영상 전화기, 전자책 리더기(e-book reader), 데스크탑 PC(desktop personal computer), 랩탑 PC(laptop personal computer), 넷북 컴퓨터(netbook computer), 워크스테이션(workstation), 서버, PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 모바일 의료기기, 카메라(camera), 또는 웨어러블 장치(wearable device) 중 적어도 하나를 포함할 수 있다. 다양한 실시예에 따르면, 웨어러블 장치는 액세서리형(예: 시계, 반지, 팔찌, 발찌, 목걸이, 안경, 콘택트 렌즈, 또는 머리 착용형 장치(head-mounted-device(HMD)), 직물 또는 의류 일체형(예: 전자 의복), 신체 부착형(예: 스킨 패드(skin pad) 또는 문신), 또는 생체 이식형(예: implantable circuit) 중 적어도 하나를 포함할 수 있다. The electronic device according to various embodiments of the present document may include, for example, a smartphone, a tablet personal computer, a mobile phone, a video phone, and an e-book reader. , desktop personal computer, laptop personal computer, netbook computer, workstation, server, personal digital assistant (PDA), portable multimedia player (PMP), MP3 player, mobile It may include at least one of a medical device, a camera, and a wearable device. According to various embodiments, the wearable device may be an accessory type (eg, a watch, ring, bracelet, anklet, necklace, eyeglass, contact lens, or head-mounted-device (HMD)), a fabric or an integral piece of clothing ( It may include at least one of, for example, electronic clothing), a body attachable type (eg, a skin pad or tattoo), or a bioimplantable type (eg, an implantable circuit).

어떤 실시예들에서, 전자 장치는 가전 제품(home appliance)일 수 있다. 가전 제품은, 예를 들면, 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스(set-top box), 홈 오토매이션 컨트롤 패널(home automation control panel), 보안 컨트롤 패널(security control panel), TV 박스(예: 삼성 HomeSyncTM, 애플TVTM, 또는 구글 TVTM), 게임 콘솔(예: XboxTM, PlayStationTM), 전자 사전, 전자 키, 캠코더(camcorder), 또는 전자 액자 중 적어도 하나를 포함할 수 있다.In some embodiments, the electronic device may be a home appliance. Home appliances are, for example, televisions, digital video disk (DVD) players, audio systems, refrigerators, air conditioners, vacuum cleaners, ovens, microwave ovens, washing machines, air purifiers, set-top boxes, home automation controls. panel (home automation control panel), security control panel (security control panel), TV box (eg Samsung HomeSync TM , Apple TV TM , or Google TV TM ), game console (eg Xbox TM , PlayStation TM ), electronic dictionary , an electronic key, a camcorder, or an electronic picture frame.

다른 실시예에서, 전자 장치는, 각종 의료기기(예: 각종 휴대용 의료측정기기(혈당 측정기, 심박 측정기, 혈압 측정기, 또는 체온 측정기 등), MRA(magnetic resonance angiography), MRI(magnetic resonance imaging), CT(computed tomography), 촬영기, 또는 초음파기 등), 네비게이션(navigation) 장치, 위성 항법 시스템(GNSS(global navigation satellite system)), EDR(event data recorder), FDR(flight data recorder), 자동차 인포테인먼트(infotainment) 장치, 선박용 전자 장비(예: 선박용 항법 장치, 자이로 콤파스 등), 항공 전자기기(avionics), 보안 기기, 차량용 헤드 유닛(head unit), 산업용 또는 가정용 로봇, 금융 기관의 ATM(automatic teller's machine), 상점의 POS(point of sales), 또는 사물 인터넷 장치(internet of things)(예: 전구, 각종 센서, 전기 또는 가스 미터기, 스프링클러 장치, 화재경보기, 온도조절기(thermostat), 가로등, 토스터(toaster), 운동기구, 온수탱크, 히터, 보일러 등) 중 적어도 하나를 포함할 수 있다.In another embodiment, the electronic device may include various medical devices (eg, various portable medical measuring devices (eg, a blood glucose meter, a heart rate monitor, a blood pressure monitor, or a body temperature monitor), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), Computed tomography (CT), imagers, or ultrasound machines, etc.), navigation devices, satellite navigation systems (global navigation satellite system (GNSS)), event data recorder (EDR), flight data recorder (FDR), automotive infotainment ) devices, ship electronic equipment (e.g. ship navigation devices, gyro compasses, etc.), avionics, security devices, vehicle head units, industrial or domestic robots, automatic teller's machines (ATMs) in financial institutions. , point of sales (POS) in stores, or internet of things (e.g. light bulbs, sensors, electricity or gas meters, sprinkler devices, smoke alarms, thermostats, street lights, toasters) , exercise equipment, hot water tank, heater, boiler, etc.) may include at least one.

어떤 실시예에 따르면, 전자 장치는 가구(furniture) 또는 건물/구조물의 일부, 전자 보드(electronic board), 전자 사인 수신 장치(electronic signature receiving device), 프로젝터(projector), 또는 각종 계측 기기(예: 수도, 전기, 가스, 또는 전파 계측 기기 등) 중 적어도 하나를 포함할 수 있다. 다양한 실시예에서, 전자 장치는 전술한 다양한 장치들 중 하나 또는 그 이상의 조합일 수 있다. 어떤 실시예에 따른 전자 장치는 플렉서블 전자 장치일 수 있다. 또한, 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않으며, 기술 발전에 따른 새로운 전자 장치를 포함할 수 있다.According to some embodiments, the electronic device is a piece of furniture or part of a building/structure, an electronic board, an electronic signature receiving device, a projector, or various measuring instruments (eg, water, electricity, gas, or a radio wave measuring device). In various embodiments, the electronic device may be a combination of one or more of the various devices described above. The electronic device according to an embodiment may be a flexible electronic device. In addition, the electronic device according to the embodiment of the present document is not limited to the above-described devices, and may include a new electronic device according to technological development.

이하, 첨부 도면을 참조하여, 다양한 실시예에 따른 전자 장치가 설명된다. 본 문서에서, 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공지능 전자 장치)를 지칭할 수 있다. Hereinafter, an electronic device according to various embodiments will be described with reference to the accompanying drawings. In this document, the term user may refer to a person who uses an electronic device or a device (eg, an artificial intelligence electronic device) using the electronic device.

도 1a를 참조하여, 다양한 실시예에서의, 네트워크 환경(100) 내의 전자 장치(101)가 기재된다. 전자 장치(101)는 버스(110), 프로세서(120), 메모리(130), 입출력 인터페이스(150), 디스플레이(160), 및 통신 모듈(170)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)는, 구성요소들 중 적어도 하나를 생략하거나 다른 구성요소를 추가적으로 구비할 수 있다. 1A , an electronic device 101 in a network environment 100 is described, in various embodiments. The electronic device 101 may include a bus 110 , a processor 120 , a memory 130 , an input/output interface 150 , a display 160 , and a communication module 170 . In some embodiments, the electronic device 101 may omit at least one of the components or may additionally include other components.

버스(110)는, 예를 들면, 구성요소들(110-170)을 서로 연결하고, 구성요소들 간의 통신(예: 제어 메시지 및/또는 데이터)을 전달하는 회로를 포함할 수 있다.The bus 110 may include, for example, a circuit that connects the components 110 - 170 to each other and transmits communication (eg, a control message and/or data) between the components.

프로세서(120)는, 중앙처리장치(central processing unit(CPU)), 어플리케이션 프로세서(application processor(AP)), 또는 커뮤니케이션 프로세서(communication processor(CP)) 중 하나 또는 그 이상을 포함할 수 있다. 프로세서(120)는, 예를 들면, 전자 장치(101)의 적어도 하나의 다른 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 실행할 수 있다. The processor 120 may include one or more of a central processing unit (CPU), an application processor (AP), and a communication processor (CP). The processor 120 may, for example, execute an operation or data processing related to control and/or communication of at least one other component of the electronic device 101 .

메모리(130)는, 휘발성 및/또는 비휘발성 메모리를 포함할 수 있다. 메모리(130)는, 예를 들면, 전자 장치(101)의 적어도 하나의 다른 구성요소에 관계된 명령 또는 데이터를 저장할 수 있다. 한 실시예에 따르면, 메모리(130)는 소프트웨어 및/또는 프로그램(140)을 저장할 수 있다. 프로그램(140)은, 예를 들면, 커널(141), 미들웨어(143), 어플리케이션 프로그래밍 인터페이스(application programming interface(API))(145), 및/또는 어플리케이션 프로그램(또는 "어플리케이션")(147) 등을 포함할 수 있다. 커널(141), 미들웨어(143), 또는 API(145)의 적어도 일부는, 운영 시스템(operating system(OS))으로 지칭될 수 있다.The memory 130 may include volatile and/or non-volatile memory. The memory 130 may store, for example, commands or data related to at least one other component of the electronic device 101 . According to one embodiment, the memory 130 may store software and/or a program 140 . Program 140 may include, for example, kernel 141 , middleware 143 , application programming interface (API) 145 , and/or application programs (or “applications”) 147 , etc. may include At least a portion of the kernel 141 , the middleware 143 , or the API 145 may be referred to as an operating system (OS).

커널(141)은, 예를 들면, 다른 프로그램들(예: 미들웨어(143), API(145), 또는 어플리케이션 프로그램(147))에 구현된 동작 또는 기능을 실행하는 데 사용되는 시스템 리소스들(예: 버스(110), 프로세서(120), 또는 메모리(130) 등)을 제어 또는 관리할 수 있다. 또한, 커널(141)은 미들웨어(143), API(145), 또는 어플리케이션 프로그램(147)에서 전자 장치(101)의 개별 구성요소에 접근함으로써, 시스템 리소스들을 제어 또는 관리할 수 있는 인터페이스를 제공할 수 있다. The kernel 141 is, for example, system resources (eg, middleware 143, API 145, or application program 147) used to execute an operation or function implemented in other programs (eg, middleware 143, API 145, or the application program 147). : The bus 110, the processor 120, the memory 130, etc.) can be controlled or managed. In addition, the kernel 141 may provide an interface capable of controlling or managing system resources by accessing individual components of the electronic device 101 from the middleware 143 , the API 145 , or the application program 147 . can

미들웨어(143)는, 예를 들면, API(145) 또는 어플리케이션 프로그램(147)이 커널(141)과 통신하여 데이터를 주고받을 수 있도록 중개 역할을 수행할 수 있다. The middleware 143 may, for example, play an intermediary role so that the API 145 or the application program 147 communicates with the kernel 141 to send and receive data.

또한, 미들웨어(143)는 어플리케이션 프로그램(147)으로부터 수신된 하나 이상의 작업 요청들을 우선 순위에 따라 처리할 수 있다. 예를 들면, 미들웨어(143)는 어플리케이션 프로그램(147) 중 적어도 하나에 전자 장치(101)의 시스템 리소스(예: 버스(110), 프로세서(120), 또는 메모리(130) 등)를 사용할 수 있는 우선 순위를 부여할 수 있다. 예컨대, 미들웨어(143)는 상기 적어도 하나에 부여된 우선 순위에 따라 상기 하나 이상의 작업 요청들을 처리함으로써, 상기 하나 이상의 작업 요청들에 대한 스케쥴링 또는 로드 밸런싱 등을 수행할 수 있다.Also, the middleware 143 may process one or more work requests received from the application program 147 according to priority. For example, the middleware 143 may use a system resource (eg, the bus 110 , the processor 120 , or the memory 130 ) of the electronic device 101 for at least one of the application programs 147 . You can give priority. For example, the middleware 143 may process the one or more work requests according to the priority given to the at least one, thereby performing scheduling or load balancing for the one or more work requests.

API(145)는, 예를 들면, 어플리케이션(147)이 커널(141) 또는 미들웨어(143)에서 제공되는 기능을 제어하기 위한 인터페이스로, 예를 들면, 파일 제어, 창 제어, 영상 처리, 또는 문자 제어 등을 위한 적어도 하나의 인터페이스 또는 함수(예: 명령어)를 포함할 수 있다. The API 145 is, for example, an interface for the application 147 to control functions provided by the kernel 141 or the middleware 143, for example, file control, window control, image processing, or text. It may include at least one interface or function (eg, a command) for control and the like.

입출력 인터페이스(150)는, 예를 들면, 사용자 또는 다른 외부 기기로부터 입력된 명령 또는 데이터를 전자 장치(101)의 다른 구성요소(들)에 전달할 수 있는 인터페이스의 역할을 할 수 있다. 또한, 입출력 인터페이스(150)는 전자 장치(101)의 다른 구성요소(들)로부터 수신된 명령 또는 데이터를 사용자 또는 다른 외부 기기로 출력할 수 있다. The input/output interface 150 may serve as an interface capable of transmitting, for example, a command or data input from a user or other external device to other component(s) of the electronic device 101 . Also, the input/output interface 150 may output a command or data received from other component(s) of the electronic device 101 to a user or other external device.

디스플레이(160)는, 예를 들면, 액정 디스플레이(liquid crystal display(LCD)), 발광 다이오드(light-emitting diode(LED)) 디스플레이, 유기 발광 다이오드(organic light-emitting diode(OLED)) 디스플레이, 또는 마이크로 전자기계 시스템(microelectromechanical systems(MEMS)) 디스플레이, 또는 전자종이(electronic paper) 디스플레이를 포함할 수 있다. 디스플레이(160)는, 예를 들면, 사용자에게 각종 콘텐츠(예: 텍스트, 이미지, 비디오, 아이콘, 또는 심볼 등)을 표시할 수 있다. 디스플레이(160)는, 터치 스크린을 포함할 수 있으며, 예를 들면, 전자 펜 또는 사용자의 신체의 일부를 이용한 터치, 제스쳐, 근접, 또는 호버링 입력을 수신할 수 있다.Display 160 may be, for example, a liquid crystal display (LCD), a light-emitting diode (LED) display, an organic light-emitting diode (OLED) display, or microelectromechanical systems (MEMS) displays, or electronic paper displays. The display 160 may, for example, display various contents (eg, text, image, video, icon, or symbol) to the user. The display 160 may include a touch screen, and may receive, for example, a touch, gesture, proximity, or hovering input using an electronic pen or a part of the user's body.

통신 모듈(170)은, 예를 들면, 전자 장치(101)와 외부 장치(예: 제 1 외부 전자 장치(102), 제 2 외부 전자 장치(104), 또는 서버(106)) 간의 통신을 설정할 수 있다. 예를 들면, 통신 모듈(170)은 무선 통신 또는 유선 통신을 통해서 네트워크(162)에 연결되어 외부 장치(예: 제 2 외부 전자 장치(104) 또는 서버(106))와 통신할 수 있다.The communication module 170, for example, sets up communication between the electronic device 101 and an external device (eg, the first external electronic device 102 , the second external electronic device 104 , or the server 106 ). can For example, the communication module 170 may be connected to the network 162 through wireless communication or wired communication to communicate with an external device (eg, the second external electronic device 104 or the server 106 ).

무선 통신은, 예를 들면, 셀룰러 통신 프로토콜로서, 예를 들면, LTE(long-term evolution), LTE-A(LTE Advance), CDMA(code division multiple access), WCDMA(wideband CDMA), UMTS(universal mobile telecommunications system), WiBro(Wireless Broadband), 또는 GSM(Global System for Mobile Communications) 등 중 적어도 하나를 사용할 수 있다. 또한, 무선 통신은, 예를 들면, 근거리 통신(164)을 포함할 수 있다. 근거리 통신(164)은, 예를 들면, WiFi(wireless fidelity), 블루투스(Bluetooth), NFC(near field communication), 또는 GNSS(global navigation satellite system) 등 중 적어도 하나를 포함할 수 있다. GNSS는 사용 지역 또는 대역폭 등에 따라, 예를 들면, GPS(Global Positioning System), Glonass(Global Navigation Satellite System), Beidou Navigation Satellite System(이하 “Beidou”) 또는 Galileo, the European global satellite-based navigation system 중 적어도 하나를 포함할 수 있다. 이하, 본 문서에서는, “GPS”는 “GNSS”와 혼용되어 사용(interchangeably used)될 수 있다. 유선 통신은, 예를 들면, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard232), 또는 POTS(plain old telephone service) 등 중 적어도 하나를 포함할 수 있다. 네트워크(162)는 통신 네트워크(telecommunications network), 예를 들면, 컴퓨터 네트워크(computer network)(예: LAN 또는 WAN), 인터넷, 또는 전화 망(telephone network) 중 적어도 하나를 포함할 수 있다.Wireless communication is, for example, a cellular communication protocol, for example, long-term evolution (LTE), LTE Advance (LTE-A), code division multiple access (CDMA), wideband CDMA (WCDMA), universal (UMTS). At least one of mobile telecommunications system), Wireless Broadband (WiBro), and Global System for Mobile Communications (GSM) may be used. Also, wireless communication may include, for example, short-range communication 164 . The short-range communication 164 may include, for example, at least one of wireless fidelity (WiFi), Bluetooth, near field communication (NFC), or global navigation satellite system (GNSS). GNSS is, depending on the area or bandwidth used, for example, GPS (Global Positioning System), Glonass (Global Navigation Satellite System), Beidou Navigation Satellite System (hereinafter “Beidou”) or Galileo, the European global satellite-based navigation system. It may include at least one. Hereinafter, in this document, "GPS" may be used interchangeably with "GNSS". Wired communication may include, for example, at least one of universal serial bus (USB), high definition multimedia interface (HDMI), recommended standard232 (RS-232), or plain old telephone service (POTS). The network 162 may include at least one of a telecommunications network, for example, a computer network (eg, LAN or WAN), the Internet, or a telephone network.

본 발명의 다양한 실시예에서, 카메라 모듈(미도시)은 장면을 촬영할 수 있다. 이미지 처리 모듈(180)은 버스(110)를 통하여 다른 하드웨어와 데이터를 입출력할 수 있다. 본 발명의 다양한 실시예에서,이미지 처리 모듈(180)은 제 1 오브젝트와 제 2 오브젝트를 포함하는 상기 장면에 대하여 제 1 이미지와 제 2 이미지를 획득하고, 상기 제 1 이미지와 상기 제 2 이미지를 이용하여 상기 제 1 오브젝트에 대응하는 제 1 모션량 및 상기 제 2 오브젝트에 대응하는 제 2 모션량을 확인하고, 상기 제 1 모션량과 상기 제 2 모션량에 적어도 기반하여 상기 제 1 오브젝트에 대응하는 제 1 이미지 영역과 상기 제 2 오브젝트에 대응하는 제 2 이미지 영역에 서로 다른 효과를 적용할 수 있다.In various embodiments of the present invention, a camera module (not shown) may capture a scene. The image processing module 180 may input/output data with other hardware through the bus 110 . In various embodiments of the present disclosure, the image processing module 180 obtains a first image and a second image for the scene including a first object and a second object, and generates the first image and the second image. a first motion amount corresponding to the first object and a second motion amount corresponding to the second object using Different effects may be applied to the first image region and the second image region corresponding to the second object.

본 발명의 다양한 실시예에서, 상기 제 1 모션량은, 상기 제 1 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 1 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응하며, 상기 제 2 모션량은, 상기 제 2 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 2 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응할 수 있다.In various embodiments of the present disclosure, the first amount of motion corresponds to a difference between a position of the first object in the first image and a position of the first object in the second image, wherein the second The amount of motion may correspond to a difference between a position of the second object in the first image and a position of the second object in the second image.

본 발명의 다양한 실시예에서, 상기 이미지 처리 모듈(180)은, 상기 장면에 대한 복수개의 프리뷰 이미지 중 모션량의 차이가 지정된 값 이상인 한 쌍의 이미지를 상기 제 1 이미지 및 제 2 이미지로 선택할 수 있다.In various embodiments of the present disclosure, the image processing module 180 may select, as the first image and the second image, a pair of images in which the difference in the amount of motion is greater than or equal to a specified value among a plurality of preview images for the scene. have.

본 발명의 다양한 실시예에서, 상기 이미지 처리 모듈(180)은, 상기 제 1 이미지 및 상기 제 2 이미지를 비교하고, 비교 결과에 기초하여 상기 제 1 모션량 또는 상기 제 2 모션량 중 적어도 하나를 획득할 수 있다.In various embodiments of the present disclosure, the image processing module 180 compares the first image and the second image, and selects at least one of the first motion amount or the second motion amount based on the comparison result. can be obtained

본 발명의 다양한 실시예에서, 상기 이미지 처리 모듈(180)은, 상기 제 1 이미지 및 상기 제 2 이미지를 비교하고, 상기 제 1 모션량과 상기 제 2 모션량의 차이가 지정된 값을 만족하는지 결정하고, 상기 결정에 기반하여, 상기 제 1 이미지 영역과 상기 제 2 이미지 영역을 결정할 수 있다.In various embodiments of the present disclosure, the image processing module 180 compares the first image and the second image, and determines whether a difference between the first motion amount and the second motion amount satisfies a specified value. and, based on the determination, the first image area and the second image area may be determined.

본 발명의 다양한 실시예에서, 상기 이미지 처리 모듈(180)은, 상기 제 1 모션량 및 상기 제 2 모션량에 기초하여, 상기 제 1 이미지에서 상기 제 1 오브젝트를 상기 제 2 오브젝트와 분리할 수 있다.In various embodiments of the present disclosure, the image processing module 180 may separate the first object from the second object in the first image based on the first motion amount and the second motion amount. have.

본 발명의 다양한 실시예에서, 상기 제 1 이미지 영역은 상기 장면에 대한 제 1 깊이에 대응하고, 상기 제 2 이미지 영역은 상기 장면에 대한 제 2 깊이에 대응할 수 있다.In various embodiments of the present disclosure, the first image area may correspond to a first depth for the scene, and the second image area may correspond to a second depth for the scene.

본 발명의 다양한 실시예에서, 상기 이미지 처리 모듈(180)은, 상기 제 1 이미지 영역을 지정된 색상 정보에 기반하여 분류하고, 상기 제 1 모션량과, 상기 제 1 이미지 영역 주변의 분류 대상의 영역의 모션량의 차이를 결정하고, 상기 차이가 지정된 값을 만족하면, 상기 분류 대상의 영역을 상기 대응하는 제 1 이미지 영역의 일부로 결정하고, 상기 차이가 상기 지정된 값을 만족하지 않으면, 상기 분류 대상의 영역을 상기 제 1 이미지 영역에 속하지 않는 것으로 결정할 수 있다.In various embodiments of the present disclosure, the image processing module 180 classifies the first image region based on specified color information, the first motion amount, and a region to be classified around the first image region. determine the difference in the amount of motion of , and if the difference satisfies the specified value, determine the region of the classification target as a part of the corresponding first image region, and if the difference does not satisfy the specified value, the classification target It may be determined that the area of ' does not belong to the first image area.

본 발명의 다양한 실시예에서, 상기 제 1 오브젝트는 인물을 포함하고 상기 제 2 오브젝트는 배경을 포함하고, 상기 이미지 처리 모듈(180)은, 상기 배경을 흐리게(blur) 처리하고, 상기 인물 및 상기 블러 처리된 배경을 포함한 이미지를 상기 장면에 대응하는 이미지로 출력할 수 있다. In various embodiments of the present disclosure, the first object includes a person and the second object includes a background, and the image processing module 180 blurs the background, the person and the An image including the blurred background may be output as an image corresponding to the scene.

본 발명의 다양한 실시예에서, 상기 제 1 이미지는 상기 전자 장치가 제 1 위치에서 촬영하여 획득되고, 상기 제 2 이미지는 상기 전자 장치가 제 2 위치에서 촬영하여 획득될 수 있다. 상기 제 1 모션량 및 상기 제 2 모션량은, 상기 제 1 위치 및 상기 제 2 위치에서의 위치 차이에 의하여 발생될 수 있다.In various embodiments of the present disclosure, the first image may be obtained by photographing the electronic device at a first location, and the second image may be obtained by photographing the electronic device at a second location. The first motion amount and the second motion amount may be generated by a position difference between the first position and the second position.

본 발명의 다양한 실시예에서, 상기 이미지 처리 모듈(180)은, 상기 제 1 모션량 및 상기 제 2 모션량에 기초하여, 상기 제 1 오브젝트에 제 1 깊이 값을 설정하고 상기 제 2 오브젝트에 제 2 깊이 값을 설정할 수 있다.In various embodiments of the present disclosure, the image processing module 180 is configured to set a first depth value to the first object based on the first motion amount and the second motion amount, and to set a second depth value to the second object. 2 You can set the depth value.

본 발명의 다양한 실시예에서, 이미지 처리 모듈(180)은 상기 장면(scene)에 대한 복수 개의 이미지를 획득하고, 상기 복수 개의 이미지에서 상기 오브젝트에 대응하는 모션 량이 지정된 값을 만족하는지 확인하고, 상기 확인 결과에 적어도 기반하여 상기 오브젝트에 대응하는 이미지 영역에 지정된 효과를 적용할 수 있다. 상기 모션량은, 상기 오브젝트의 상기 복수 개의 이미지 중 제 1 이미지에서의 위치와 상기 오브젝트의 상기 복수 개의 이미지 중 제 2 이미지에서의 위치 사이의 차이에 대응할 수 있다.In various embodiments of the present disclosure, the image processing module 180 acquires a plurality of images for the scene, checks whether a motion amount corresponding to the object in the plurality of images satisfies a specified value, and A specified effect may be applied to the image region corresponding to the object based at least on the result of the check. The amount of motion may correspond to a difference between a position of the object in a first image among the plurality of images and a position of the object in a second image among the plurality of images.

본 발명의 다양한 실시예에서, 상기 이미지 처리 모듈(180)은, 상기 장면에 대한 복수개의 프리뷰 이미지 중 모션량의 차이가 지정된 값 이상인 한 쌍의 이미지를 상기 제 1 이미지 및 제 2 이미지로 선택할 수 있다. 상기 제 1 이미지 영역은 상기 장면에 대한 제 1 깊이에 대응하고, 상기 제 2 이미지 영역은 상기 장면에 대한 제 2 깊이에 대응할 수 있다.In various embodiments of the present disclosure, the image processing module 180 may select, as the first image and the second image, a pair of images in which the difference in the amount of motion is greater than or equal to a specified value among a plurality of preview images for the scene. have. The first image area may correspond to a first depth for the scene, and the second image area may correspond to a second depth for the scene.

본 발명의 다양한 실시예에서, 상기 오브젝트는 인물을 포함하고, 상기 이미지 처리 모듈(180)은, 상기 인물을 제외한 배경을 흐리게(blur) 처리하고, 상기 인물 및 상기 블러 처리된 배경을 포함한 이미지를 상기 장면에 대응하는 이미지로 출력할 수 있다. 상기 복수 개의 이미지 각각은, 상기 전자 장치가 상이한 위치에서 촬영하여 획득될 수 있다.In various embodiments of the present disclosure, the object includes a person, the image processing module 180 blurs a background excluding the person, and generates an image including the person and the blurred background. An image corresponding to the scene may be output. Each of the plurality of images may be obtained by photographing the electronic device at different locations.

본 발명의 다양한 실시예에서, 이미지 처리 모듈(180)은, 제 1 이미지 및 제 2 이미지를 획득하고, 상기 제 1 이미지 및 상기 제 2 이미지를 비교하여, 상기 제 1 이미지의 적어도 하나의 객체 각각의 모션량을 확인하고, 상기 적어도 하나의 객체 각각의 모션량에 기초하여, 상기 적어도 하나의 객체 각각의 깊이 정보를 획득하고, 상기 획득된 깊이 정보에 기초하여, 상기 제 1 이미지에 대한 깊이 맵을 생성할 수 있다.In various embodiments of the present disclosure, the image processing module 180 obtains a first image and a second image, compares the first image and the second image, and each of at least one object of the first image check the amount of motion of , obtain depth information of each of the at least one object based on the amount of motion of each of the at least one object, and based on the obtained depth information, a depth map for the first image can create

제 1 및 제 2 외부 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 한 실시예에 따르면, 서버(106)는 하나 또는 그 이상의 서버들의 그룹을 포함할 수 있다. 다양한 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 다른 하나 또는 복수의 전자 장치(예: 전자 장치(102,104), 또는 서버(106)에서 실행될 수 있다. 한 실시예에 따르면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로 또는 요청에 의하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 그와 연관된 적어도 일부 기능을 다른 장치(예: 전자 장치(102, 104), 또는 서버(106))에게 요청할 수 있다. 다른 전자 장치(예: 전자 장치(102, 104), 또는 서버(106))는 요청된 기능 또는 추가 기능을 실행하고, 그 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 수신된 결과를 그대로 또는 추가적으로 처리하여 요청된 기능이나 서비스를 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.Each of the first and second external electronic devices 102 and 104 may be the same as or different from the electronic device 101 . According to one embodiment, server 106 may include a group of one or more servers. According to various embodiments, all or part of the operations executed by the electronic device 101 may be executed by one or a plurality of other electronic devices (eg, the electronic devices 102 and 104 , or the server 106 ). Accordingly, when the electronic device 101 is to perform a function or service automatically or upon request, the electronic device 101 performs at least some functions related thereto instead of or in addition to executing the function or service itself. may request from another device (eg, electronic device 102, 104, or server 106) The other electronic device (eg, electronic device 102, 104, or server 106) may request the requested function or The additional function may be executed and the result may be transmitted to the electronic device 101. The electronic device 101 may provide the requested function or service by processing the received result as it is or additionally. For example, cloud computing, distributed computing, or client-server computing technology may be used.

도 1b는 본 발명의 다양한 실시예에 따른 전자 장치의 블록도를 도시한다. 도 1b를 참조하면, 이미지 처리 모듈(180)은 이미지 획득 장치(181), 객체 분석 모듈(182) 및 처리 모듈(186)을 포함할 수 있다.1B is a block diagram of an electronic device according to various embodiments of the present disclosure; Referring to FIG. 1B , the image processing module 180 may include an image acquisition device 181 , an object analysis module 182 , and a processing module 186 .

이미지 획득 장치(181)는 카메라 모듈, 통신 모듈 또는 메모리로부터 입력되는 이미지를 수신할 수 있는 인터페이스 장치일 수 있다. 또는, 구현에 따라 이미지 획득 장치(181)는 이미지를 획득 및/또는 저장할 수 있는 카메라 모듈, 통신 모듈 및 메모리 중 적어도 하나를 포함할 수 있다.The image acquisition device 181 may be an interface device capable of receiving an image input from a camera module, a communication module, or a memory. Alternatively, according to implementation, the image acquisition device 181 may include at least one of a camera module, a communication module, and a memory capable of acquiring and/or storing an image.

객체 분석 모듈(182)은 이미지 획득 장치(181)로부터 이미지를 수신할 수 있다. 얼굴 검출 모듈(183)은 획득된 이미지로부터 인물의 얼굴을 검출할 수 있다. 얼굴 검출 모듈(183)은 다양한 얼굴인식 알고리즘에 기초하여 이미지로부터 인물의 얼굴을 검출할 수 있으며, 이에 대하여서는 더욱 상세하게 후술하도록 한다. 움직임 검출 모듈(184)은 제 1 이미지 및 제 2 이미지를 비교함으로써, 제 1 이미지 내의 적어도 하나의 오브젝트의 움직임 여부 또는 모션량을 검출할 수 있다. 움직임 검출 모듈(184)은 제 1 이미지 및 제 2 이미지 각각에서의 오브젝트 위치 비교에 따라 움직임 여부 또는 모션량을 검출할 수 있다. 뎁스 검출 모듈(185)은 이미지 내의 오브젝트에 대한 뎁스 값을 검출할 수 있다. 예를 들어, 카메라 모듈은 뎁스 정보를 포함한 이미지를 출력할 수도 있으며, 뎁스 검출 모듈(185)은 획득된 뎁스 정보에 기초하여 오브젝트 별 뎁스 값을 검출할 수 있다. 또는, 뎁스 검출 모듈(185)은 기저장된 알고리즘을 이용하여 이미지를 분석함으로써 오브젝트 별 뎁스 값을 검출할 수도 있다.The object analysis module 182 may receive an image from the image acquisition device 181 . The face detection module 183 may detect the face of the person from the acquired image. The face detection module 183 may detect a face of a person from an image based on various face recognition algorithms, which will be described later in more detail. The motion detection module 184 may detect whether at least one object in the first image moves or the amount of motion by comparing the first image and the second image. The motion detection module 184 may detect whether there is a motion or an amount of motion according to the comparison of the position of the object in each of the first image and the second image. The depth detection module 185 may detect a depth value of an object in an image. For example, the camera module may output an image including depth information, and the depth detection module 185 may detect a depth value for each object based on the acquired depth information. Alternatively, the depth detection module 185 may detect a depth value for each object by analyzing an image using a pre-stored algorithm.

처리 모듈(186)은 얼굴 검출, 움직임 검출 및 뎁스 검출 중 적어도 하나가 수행된 이미지를 입력받을 수 있다. 본 발명의 다양한 실시예에서, 처리 모듈(186)은 객체 분리 모듈(187) 및 이미지 효과 적용 모듈(188)을 포함할 수 있다. 객체 분리 모듈(187)은 이미지에서 객체를 분리, 예를 들어 세그먼테이션할 수 있다. 본 발명의 다양한 실시예에 의한 객체 분리 모듈(187)은 모션량에 기초하여 객체 분리를 수행할 수 있으며, 또는 모션량과 컬러 정보 및 뎁스 값 중 적어도 하나를 이용하여 객체 분리를 수행할 수도 있다. 이미지 효과 적용 모듈(188)은 분리된 객체별로 이미지 효과를 적용할 수 있다. 본 발명의 다양한 실시예에서, 이미지 효과 적용 모듈(168)은 블러 효과를 적용할 수 있다. 이미지 효과가 적용된 이미지는 디스플레이(180)에서 표시되거나 또는 메모리(130)에 저장될 수 있다.The processing module 186 may receive an image on which at least one of face detection, motion detection, and depth detection is performed. In various embodiments of the present disclosure, the processing module 186 may include an object separation module 187 and an image effect application module 188 . The object separation module 187 may separate, for example, segment an object from the image. The object separation module 187 according to various embodiments of the present disclosure may perform object separation based on the amount of motion, or may perform object separation using at least one of the amount of motion, color information, and depth value. . The image effect application module 188 may apply an image effect to each separated object. In various embodiments of the present disclosure, the image effect application module 168 may apply a blur effect. The image to which the image effect is applied may be displayed on the display 180 or stored in the memory 130 .

도 2는 다양한 실시예에 따른 전자 장치(201)의 블록도이다. 전자 장치(201)는, 예를 들면, 도 1a에 도시된 전자 장치(101)의 전체 또는 일부를 포함할 수 있다. 전자 장치(201)는 하나 이상의 프로세서(예: AP(application processor))(210), 통신 모듈(220), (가입자 식별 모듈(224), 메모리(230), 센서 모듈(240), 입력 장치(250), 디스플레이(260), 인터페이스(270), 오디오 모듈(280), 카메라 모듈(291), 전력 관리 모듈(295), 배터리(296), 인디케이터(297), 및 모터(298) 를 포함할 수 있다.2 is a block diagram of an electronic device 201 according to various embodiments. The electronic device 201 may include, for example, all or a part of the electronic device 101 illustrated in FIG. 1A . The electronic device 201 includes one or more processors (eg, an application processor (AP)) 210 , a communication module 220 , (a subscriber identification module 224 , a memory 230 , a sensor module 240 , an input device ( 250 ), a display 260 , an interface 270 , an audio module 280 , a camera module 291 , a power management module 295 , a battery 296 , an indicator 297 , and a motor 298 . can

프로세서(210)는, 예를 들면, 운영 체제 또는 응용 프로그램을 구동하여 프로세서(210)에 연결된 다수의 하드웨어 또는 소프트웨어 구성요소들을 제어할 수 있고, 각종 데이터 처리 및 연산을 수행할 수 있다. 프로세서(210)는, 예를 들면, SoC(system on chip) 로 구현될 수 있다. 한 실시예에 따르면, 프로세서(210)는 GPU(graphic processing unit) 및/또는 이미지 신호 프로세서(image signal processor)를 더 포함할 수 있다. 프로세서(210)는 도 2에 도시된 구성요소들 중 적어도 일부(예: 셀룰러 모듈(221))를 포함할 수도 있다. 프로세서(210) 는 다른 구성요소들(예: 비휘발성 메모리) 중 적어도 하나로부터 수신된 명령 또는 데이터를 휘발성 메모리에 로드(load)하여 처리하고, 다양한 데이터를 비휘발성 메모리에 저장(store)할 수 있다.The processor 210 may control a plurality of hardware or software components connected to the processor 210 by, for example, driving an operating system or an application program, and may perform various data processing and operations. The processor 210 may be implemented as, for example, a system on chip (SoC). According to an embodiment, the processor 210 may further include a graphic processing unit (GPU) and/or an image signal processor. The processor 210 may include at least some of the components shown in FIG. 2 (eg, the cellular module 221 ). The processor 210 may load and process commands or data received from at least one of other components (eg, non-volatile memory) into a volatile memory, and store various data in the non-volatile memory. have.

통신 모듈(220)은, 도 1a의 통신 인터페이스(170)와 동일 또는 유사한 구성을 가질 수 있다. 통신 모듈(220)은, 예를 들면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227)(예: GPS 모듈, Glonass 모듈, Beidou 모듈, 또는 Galileo 모듈), NFC 모듈(228) 및 RF(radio frequency) 모듈(229)를 포함할 수 있다.The communication module 220 may have the same or similar configuration to the communication interface 170 of FIG. 1A . The communication module 220 is, for example, a cellular module 221 , a WiFi module 223 , a Bluetooth module 225 , a GNSS module 227 (eg, a GPS module, a Glonass module, a Beidou module, or a Galileo module). , may include an NFC module 228 and a radio frequency (RF) module 229 .

셀룰러 모듈(221)은, 예를 들면, 통신망을 통해서 음성 통화, 영상 통화, 문자 서비스, 또는 인터넷 서비스 등을 제공할 수 있다. 한 실시예에 따르면, 셀룰러 모듈(221)은 가입자 식별 모듈(예: SIM 카드)(224)을 이용하여 통신 네트워크 내에서 전자 장치(201)의 구별 및 인증을 수행할 수 있다. 한 실시예에 따르면, 셀룰러 모듈(221)은 프로세서(210)가 제공할 수 있는 기능 중 적어도 일부 기능을 수행할 수 있다. 한 실시예에 따르면, 셀룰러 모듈(221)은 커뮤니케이션 프로세서(CP: communication processor)를 포함할 수 있다.The cellular module 221 may provide, for example, a voice call, a video call, a text service, or an Internet service through a communication network. According to an embodiment, the cellular module 221 may use a subscriber identification module (eg, a SIM card) 224 to identify and authenticate the electronic device 201 within a communication network. According to an embodiment, the cellular module 221 may perform at least some of the functions that the processor 210 may provide. According to an embodiment, the cellular module 221 may include a communication processor (CP).

WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227) 또는 NFC 모듈(228) 각각은, 예를 들면, 해당하는 모듈을 통해서 송수신되는 데이터를 처리하기 위한 프로세서를 포함할 수 있다. 어떤 실시예에 따르면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227) 또는 NFC 모듈(228) 중 적어도 일부(예: 두 개 이상)는 하나의 integrated chip(IC) 또는 IC 패키지 내에 포함될 수 있다. Each of the WiFi module 223 , the Bluetooth module 225 , the GNSS module 227 , or the NFC module 228 may include, for example, a processor for processing data transmitted and received through a corresponding module. According to some embodiments, at least some (eg, two or more) of the cellular module 221 , the WiFi module 223 , the Bluetooth module 225 , the GNSS module 227 , or the NFC module 228 is one integrated chip. (IC) or contained within an IC package.

RF 모듈(229)은, 예를 들면, 통신 신호(예: RF 신호)를 송수신할 수 있다. RF 모듈(229)은, 예를 들면, 트랜시버(transceiver), PAM(power amp module), 주파수 필터(frequency filter), LNA(low noise amplifier), 또는 안테나 등을 포함할 수 있다. 다른 실시예에 따르면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227) 또는 NFC 모듈(228) 중 적어도 하나는 별개의 RF 모듈을 통하여 RF 신호를 송수신할 수 있다. The RF module 229 may transmit/receive a communication signal (eg, an RF signal), for example. The RF module 229 may include, for example, a transceiver, a power amp module (PAM), a frequency filter, a low noise amplifier (LNA), or an antenna. According to another embodiment, at least one of the cellular module 221 , the WiFi module 223 , the Bluetooth module 225 , the GNSS module 227 or the NFC module 228 transmits and receives an RF signal through a separate RF module. can

가입자 식별 모듈(224)은, 예를 들면, 가입자 식별 모듈을 포함하는 카드 및/또는 내장 SIM(embedded SIM)을 포함할 수 있으며, 고유한 식별 정보(예: ICCID(integrated circuit card identifier)) 또는 가입자 정보(예: IMSI(international mobile subscriber identity))를 포함할 수 있다. Subscriber identification module 224 may include, for example, a card including a subscriber identification module and/or an embedded SIM (SIM), and may include unique identification information (eg, integrated circuit card identifier (ICCID)) or Subscriber information (eg, international mobile subscriber identity (IMSI)) may be included.

메모리(230)(예: 메모리(130))는, 예를 들면, 내장 메모리(232) 또는 외장 메모리(234)를 포함할 수 있다. 내장 메모리(232)는, 예를 들면, 휘발성 메모리(예: DRAM(dynamic RAM), SRAM(static RAM), 또는 SDRAM(synchronous dynamic RAM) 등), 비휘발성 메모리(non-volatile Memory)(예: OTPROM(one time programmable ROM), PROM(programmable ROM), EPROM(erasable and programmable ROM), EEPROM(electrically erasable and programmable ROM), mask ROM, flash ROM, 플래시 메모리(예: NAND flash 또는 NOR flash 등), 하드 드라이브, 또는 솔리드 스테이트 드라이브(solid state drive(SSD)) 중 적어도 하나를 포함할 수 있다. The memory 230 (eg, the memory 130 ) may include, for example, an internal memory 232 or an external memory 234 . The built-in memory 232 may include, for example, a volatile memory (eg, dynamic RAM (DRAM), static RAM (SRAM), or synchronous dynamic RAM (SDRAM)), a non-volatile memory (eg, a non-volatile memory). One time programmable ROM (OTPROM), programmable ROM (PROM), erasable and programmable ROM (EPROM), electrically erasable and programmable ROM (EEPROM), mask ROM, flash ROM, flash memory (such as NAND flash or NOR flash); It may include at least one of a hard drive and a solid state drive (SSD).

외장 메모리(234)는 플래시 드라이브(flash drive), 예를 들면, CF(compact flash), SD(secure digital), Micro-SD(micro secure digital), Mini-SD(mini secure digital), xD(extreme digital), MMC(multi-media card) 또는 메모리 스틱(memory stick) 등을 더 포함할 수 있다. 외장 메모리(234)는 다양한 인터페이스를 통하여 전자 장치(201)와 기능적으로 및/또는 물리적으로 연결될 수 있다.The external memory 234 is a flash drive, for example, compact flash (CF), secure digital (SD), micro secure digital (Micro-SD), mini secure digital (Mini-SD), extreme xD (xD). digital), a multi-media card (MMC), or a memory stick may be further included. The external memory 234 may be functionally and/or physically connected to the electronic device 201 through various interfaces.

센서 모듈(240)은, 예를 들면, 물리량을 계측하거나 전자 장치(201)의 작동 상태를 감지하여, 계측 또는 감지된 정보를 전기 신호로 변환할 수 있다. 센서 모듈(240)은, 예를 들면, 제스처 센서(240A), 자이로 센서(240B), 기압 센서(240C), 마그네틱 센서(240D), 가속도 센서(240E), 그립 센서(240F), 근접 센서(240G), 컬러(color) 센서(240H)(예: RGB(red, green, blue) 센서), 생체 센서(240I), 온/습도 센서(240J), 조도 센서(240K), 또는 UV(ultra violet) 센서(240M) 중의 적어도 하나를 포함할 수 있다. 추가적으로 또는 대체적으로(additionally or alternatively), 센서 모듈(240)은, 예를 들면, 후각 센서(E-nose sensor), EMG 센서(electromyography sensor), EEG 센서(electroencephalogram sensor), ECG 센서(electrocardiogram sensor), IR(infrared) 센서, 홍채 센서 및/또는 지문 센서를 포함할 수 있다. 센서 모듈(240)은 그 안에 속한 적어도 하나 이상의 센서들을 제어하기 위한 제어 회로를 더 포함할 수 있다. 어떤 실시예에서는, 전자 장치(201)는 프로세서(210)의 일부로서 또는 별도로, 센서 모듈(240)을 제어하도록 구성된 프로세서를 더 포함하여, 프로세서(210)가 슬립(sleep) 상태에 있는 동안, 센서 모듈(240)을 제어할 수 있다.The sensor module 240 may, for example, measure a physical quantity or sense an operating state of the electronic device 201 , and convert the measured or sensed information into an electrical signal. The sensor module 240 is, for example, a gesture sensor 240A, a gyro sensor 240B, a barometric pressure sensor 240C, a magnetic sensor 240D, an acceleration sensor 240E, a grip sensor 240F, a proximity sensor ( 240G), color sensor (240H) (e.g. RGB (red, green, blue) sensor), biometric sensor (240I), temperature/humidity sensor (240J), illuminance sensor (240K), or UV (ultra violet) sensor ) may include at least one of the sensors 240M. Additionally or alternatively, the sensor module 240 may include, for example, an olfactory sensor (E-nose sensor), an electromyography sensor (EMG sensor), an electroencephalogram sensor (EEG sensor), an electrocardiogram sensor (ECG sensor) , an infrared (IR) sensor, an iris sensor, and/or a fingerprint sensor. The sensor module 240 may further include a control circuit for controlling at least one or more sensors included therein. In some embodiments, the electronic device 201 further comprises a processor configured to control the sensor module 240 , either as part of the processor 210 or separately, while the processor 210 is in a sleep state; The sensor module 240 may be controlled.

입력 장치(250)는, 예를 들면, 터치 패널(touch panel)(252),(디지털) 펜 센서(pen sensor)(254), 키(key)(256), 또는 초음파(ultrasonic) 입력 장치(258)를 포함할 수 있다. 터치 패널(252)은, 예를 들면, 정전식, 감압식, 적외선 방식, 또는 초음파 방식 중 적어도 하나의 방식을 사용할 수 있다. 또한, 터치 패널(252)은 제어 회로를 더 포함할 수도 있다. 터치 패널(252)은 택타일 레이어(tactile layer)를 더 포함하여, 사용자에게 촉각 반응을 제공할 수 있다. The input device 250 may include, for example, a touch panel 252 , a (digital) pen sensor 254 , a key 256 , or an ultrasonic input device ( 258) may be included. The touch panel 252 may use, for example, at least one of a capacitive type, a pressure sensitive type, an infrared type, and an ultrasonic type. Also, the touch panel 252 may further include a control circuit. The touch panel 252 may further include a tactile layer to provide a tactile response to the user.

(디지털) 펜 센서(254)는, 예를 들면, 터치 패널의 일부이거나, 별도의 인식용 쉬트(sheet)를 포함할 수 있다. 키(256)는, 예를 들면, 물리적인 버튼, 광학식 키, 또는 키패드를 포함할 수 있다. 초음파 입력 장치(258)는 마이크(예: 마이크(288))를 통해, 입력 도구에서 발생된 초음파를 감지하여, 상기 감지된 초음파에 대응하는 데이터를 확인할 수 있다.The (digital) pen sensor 254 may be, for example, a part of a touch panel or may include a separate recognition sheet. Key 256 may include, for example, a physical button, an optical key, or a keypad. The ultrasonic input device 258 may detect an ultrasonic wave generated by an input tool through a microphone (eg, the microphone 288 ), and check data corresponding to the sensed ultrasonic wave.

디스플레이(260)(예: 디스플레이(160))는 패널(262), 홀로그램 장치(264), 또는 프로젝터(266)를 포함할 수 있다. 패널(262)은, 도 1a의 디스플레이(160)와 동일 또는 유사한 구성을 포함할 수 있다. 패널(262)은, 예를 들면, 유연하게(flexible), 투명하게(transparent), 또는 착용할 수 있게(wearable) 구현될 수 있다. 패널(262)은 터치 패널(252)과 하나의 모듈로 구성될 수도 있다. 홀로그램 장치(264)는 빛의 간섭을 이용하여 입체 영상을 허공에 보여줄 수 있다. 프로젝터(266)는 스크린에 빛을 투사하여 영상을 표시할 수 있다. 스크린은, 예를 들면, 전자 장치(201)의 내부 또는 외부에 위치할 수 있다. 한 실시예에 따르면, 디스플레이(260)는 패널(262), 홀로그램 장치(264), 또는 프로젝터(266)를 제어하기 위한 제어 회로를 더 포함할 수 있다. The display 260 (eg, the display 160 ) may include a panel 262 , a hologram device 264 , or a projector 266 . The panel 262 may have the same or similar configuration to the display 160 of FIG. 1A . The panel 262 may be implemented to be flexible, transparent, or wearable, for example. The panel 262 may be composed of the touch panel 252 and one module. The hologram device 264 may display a stereoscopic image in the air by using light interference. The projector 266 may display an image by projecting light onto the screen. The screen may be located inside or outside the electronic device 201 , for example. According to one embodiment, the display 260 may further include a control circuit for controlling the panel 262 , the hologram device 264 , or the projector 266 .

인터페이스(270)는, 예를 들면, HDMI(high-definition multimedia interface)(272), USB(universal serial bus)(274), 광 인터페이스(optical interface)(276), 또는 D-sub(D-subminiature)(278)를 포함할 수 있다. 인터페이스(270)는, 예를 들면, 도 1a에 도시된 통신 인터페이스(170)에 포함될 수 있다. 추가적으로 또는 대체적으로(additionally and alternatively), 인터페이스(270)는, 예를 들면, MHL(mobile high-definition link) 인터페이스, SD(secure digital) 카드/MMC(multi-media card) 인터페이스, 또는 IrDA(infrared data association) 규격 인터페이스를 포함할 수 있다. The interface 270 is, for example, a high-definition multimedia interface (HDMI) 272 , a universal serial bus (USB) 274 , an optical interface 276 , or a D-subminiature (D-sub). ) (278). The interface 270 may be included, for example, in the communication interface 170 shown in FIG. 1A . Additionally or alternatively, the interface 270 may be, for example, a mobile high-definition link (MHL) interface, a secure digital (SD) card/multi-media card (MMC) interface, or an infrared (IrDA) interface. data association) standard interface.

오디오 모듈(280)은, 예를 들면, 소리(sound)와 전기 신호를 쌍방향으로 변환시킬 수 있다. 오디오 모듈(280)의 적어도 일부 구성요소는, 예를 들면, 도 1a 에 도시된 입출력 인터페이스(150)에 포함될 수 있다. 오디오 모듈(280)은, 예를 들면, 스피커(282), 리시버(284), 이어폰(286), 또는 마이크(288) 등을 통해 입력 또는 출력되는 소리 정보를 처리할 수 있다. The audio module 280 may interactively convert a sound and an electrical signal, for example. At least some components of the audio module 280 may be included in, for example, the input/output interface 150 illustrated in FIG. 1A . The audio module 280 may process sound information input or output through, for example, the speaker 282 , the receiver 284 , the earphone 286 , or the microphone 288 .

카메라 모듈(291)은, 예를 들면, 정지 영상 및 동영상을 촬영할 수 있는 장치로서, 한 실시예에 따르면, 하나 이상의 이미지 센서(예: 전면 센서 또는 후면 센서), 렌즈, ISP(image signal processor), 또는 플래시(flash)(예: LED 또는 xenon lamp 등)를 포함할 수 있다.The camera module 291 is, for example, a device capable of capturing still images and moving images, and according to an embodiment, one or more image sensors (eg, a front sensor or a rear sensor), a lens, and an image signal processor (ISP). , or a flash (eg, an LED or xenon lamp, etc.).

전력 관리 모듈(295)은, 예를 들면, 전자 장치(201)의 전력을 관리할 수 있다. 한 실시예에 따르면, 전력 관리 모듈(295)은 PMIC(power management integrated circuit), 충전 IC(charger integrated circuit), 또는 배터리 또는 연료 게이지(battery or fuel gauge)를 포함할 수 있다. PMIC는, 유선 및/또는 무선 충전 방식을 가질 수 있다. 무선 충전 방식은, 예를 들면, 자기공명 방식, 자기유도 방식 또는 전자기파 방식 등을 포함하며, 무선 충전을 위한 부가적인 회로, 예를 들면, 코일 루프, 공진 회로, 또는 정류기 등을 더 포함할 수 있다. 배터리 게이지는, 예를 들면, 배터리(296)의 잔량, 충전 중 전압, 전류, 또는 온도를 측정할 수 있다. 배터리(296)는, 예를 들면, 충전식 전지(rechargeable battery) 및/또는 태양 전지(solar battery)를 포함할 수 있다. The power management module 295 may manage power of the electronic device 201 , for example. According to an embodiment, the power management module 295 may include a power management integrated circuit (PMIC), a charger integrated circuit (IC), or a battery or fuel gauge. The PMIC may have a wired and/or wireless charging method. The wireless charging method includes, for example, a magnetic resonance method, a magnetic induction method, or an electromagnetic wave method, and may further include an additional circuit for wireless charging, for example, a coil loop, a resonance circuit, or a rectifier. have. The battery gauge may measure, for example, the remaining amount of the battery 296 , voltage, current, or temperature during charging. The battery 296 may include, for example, a rechargeable battery and/or a solar battery.

인디케이터(297)는 전자 장치(201) 또는 그 일부(예: 프로세서(210))의 특정 상태, 예를 들면, 부팅 상태, 메시지 상태 또는 충전 상태 등을 표시할 수 있다. 모터(298)는 전기적 신호를 기계적 진동으로 변환할 수 있고, 진동(vibration), 또는 햅틱(haptic) 효과 등을 발생시킬 수 있다. 도시되지는 않았으나, 전자 장치(201)는 모바일 TV 지원을 위한 처리 장치(예: GPU)를 포함할 수 있다. 모바일 TV 지원을 위한 처리 장치는, 예를 들면, DMB(digital multimedia broadcasting), DVB(digital video broadcasting), 또는 미디어플로(mediaFloTM) 등의 규격에 따른 미디어 데이터를 처리할 수 있다. The indicator 297 may display a specific state of the electronic device 201 or a part thereof (eg, the processor 210 ), for example, a booting state, a message state, or a charging state. The motor 298 may convert an electrical signal into mechanical vibration, and may generate vibration or a haptic effect. Although not shown, the electronic device 201 may include a processing unit (eg, GPU) for supporting mobile TV. The processing device for supporting mobile TV may process media data according to standards such as digital multimedia broadcasting (DMB), digital video broadcasting (DVB), or mediaFloTM, for example.

본 문서에서 기술된 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 다양한 실시예에서, 전자 장치는 본 문서에서 기술된 구성요소 중 적어도 하나를 포함하여 구성될 수 있으며, 일부 구성요소가 생략되거나 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 또한, 다양한 실시예에 따른 전자 장치의 구성요소들 중 일부가 결합되어 하나의 개체(entity)로 구성됨으로써, 결합되기 이전의 해당 구성요소들의 기능을 동일하게 수행할 수 있다.Each of the components described in this document may be composed of one or more components, and the name of the component may vary depending on the type of the electronic device. In various embodiments, the electronic device may be configured to include at least one of the components described in this document, and some components may be omitted or may further include additional other components. In addition, since some of the components of the electronic device according to various embodiments are combined to form a single entity, the functions of the components prior to being combined may be identically performed.

도 3은 다양한 실시예에 따른 프로그램 모듈의 블록도이다. 한 실시예에 따르면, 프로그램 모듈(310)(예: 프로그램(140))은 전자 장치(예: 전자 장치(101))에 관련된 자원을 제어하는 운영 체제(operating system(OS)) 및/또는 운영 체제 상에서 구동되는 다양한 어플리케이션(예: 어플리케이션 프로그램(147))을 포함할 수 있다. 운영 체제는, 예를 들면, 안드로이드(android), iOS, 윈도우즈(windows), 심비안(symbian), 타이젠(tizen), 또는 바다(bada) 등이 될 수 있다.3 is a block diagram of a program module according to various embodiments of the present disclosure; According to an embodiment, the program module 310 (eg, the program 140 ) is an operating system (OS) and/or an operating system that controls resources related to the electronic device (eg, the electronic device 101 ). It may include various applications (eg, the application program 147) running on the system. The operating system may be, for example, Android, iOS, Windows, Symbian, Tizen, or bada.

프로그램 모듈(310)은 커널(320), 미들웨어(330), 어플리케이션 프로그래밍 인터페이스(application programming interface (API))(360), 및/또는 어플리케이션(370)을 포함할 수 있다. 프로그램 모듈(310)의 적어도 일부는 전자 장치 상에 프리로드(preload) 되거나, 외부 전자 장치(예: 전자 장치(102, 104), 서버(106) 등)로부터 다운로드(download) 가능하다.The program module 310 may include a kernel 320 , middleware 330 , an application programming interface (API) 360 , and/or an application 370 . At least a portion of the program module 310 may be preloaded on the electronic device or downloaded from an external electronic device (eg, the electronic devices 102 and 104 , the server 106 , etc.).

커널(320)(예: 커널(141))은, 예를 들면, 시스템 리소스 매니저(321) 및/또는 디바이스 드라이버(323)를 포함할 수 있다. 시스템 리소스 매니저(321)는 시스템 리소스의 제어, 할당, 또는 회수 등을 수행할 수 있다. 한 실시예에 따르면, 시스템 리소스 매니저(321)는 프로세스 관리부, 메모리 관리부, 또는 파일 시스템 관리부 등을 포함할 수 있다. 디바이스 드라이버(323)는, 예를 들면, 디스플레이 드라이버, 카메라 드라이버, 블루투스 드라이버, 공유 메모리 드라이버, USB 드라이버, 키패드 드라이버, WiFi 드라이버, 오디오 드라이버, 또는 IPC(inter-process communication) 드라이버를 포함할 수 있다. The kernel 320 (eg, the kernel 141 ) may include, for example, a system resource manager 321 and/or a device driver 323 . The system resource manager 321 may control, allocate, or recover system resources. According to an embodiment, the system resource manager 321 may include a process manager, a memory manager, or a file system manager. The device driver 323 may include, for example, a display driver, a camera driver, a Bluetooth driver, a shared memory driver, a USB driver, a keypad driver, a WiFi driver, an audio driver, or an inter-process communication (IPC) driver. .

미들웨어(330)는, 예를 들면, 어플리케이션(370)이 공통적으로 필요로 하는 기능을 제공하거나, 어플리케이션(370)이 전자 장치 내부의 제한된 시스템 자원을 효율적으로 사용할 수 있도록 API(360)를 통해 다양한 기능들을 어플리케이션(370)으로 제공할 수 있다. 한 실시예에 따르면, 미들웨어(330)(예: 미들웨어(143))는 런타임 라이브러리(335), 어플리케이션 매니저(application manager)(341), 윈도우 매니저(window manager)(342), 멀티미디어 매니저(multimedia manager)(343), 리소스 매니저(resource manager)(344), 파워 매니저(power manager)(345), 데이터베이스 매니저(database manager)(346), 패키지 매니저(package manager)(347), 연결 매니저(connectivity manager)(348), 통지 매니저(notification manager)(349), 위치 매니저(location manager)(350), 그래픽 매니저(graphic manager)(351), 또는 보안 매니저(security manager)(352) 중 적어도 하나를 포함할 수 있다.The middleware 330 provides, for example, functions commonly required by the applications 370 or provides various functions through the API 360 so that the applications 370 can efficiently use limited system resources inside the electronic device. Functions may be provided to the application 370 . According to an embodiment, the middleware 330 (eg, middleware 143 ) includes a runtime library 335 , an application manager 341 , a window manager 342 , and a multimedia manager. ) (343), resource manager (344), power manager (345), database manager (346), package manager (347), connectivity manager ) 348 , a notification manager 349 , a location manager 350 , a graphic manager 351 , or a security manager 352 . can do.

런타임 라이브러리(335)는, 예를 들면, 어플리케이션(370)이 실행되는 동안에 프로그래밍 언어를 통해 새로운 기능을 추가하기 위해 컴파일러가 사용하는 라이브러리 모듈을 포함할 수 있다. 런타임 라이브러리(335)는 입출력 관리, 메모리 관리, 또는 산술 함수에 대한 기능 등을 수행할 수 있다. The runtime library 335 may include, for example, a library module used by the compiler to add a new function through a programming language while the application 370 is being executed. The runtime library 335 may perform input/output management, memory management, or a function for an arithmetic function.

어플리케이션 매니저(341)는, 예를 들면, 어플리케이션(370) 중 적어도 하나의 어플리케이션의 생명 주기(life cycle)를 관리할 수 있다. 윈도우 매니저(342)는 화면에서 사용하는 GUI 자원을 관리할 수 있다. 멀티미디어 매니저(343)는 다양한 미디어 파일들의 재생에 필요한 포맷을 파악하고, 해당 포맷에 맞는 코덱(codec)을 이용하여 미디어 파일의 인코딩(encoding) 또는 디코딩(decoding)을 수행할 수 있다. 리소스 매니저(344)는 어플리케이션(370) 중 적어도 어느 하나의 어플리케이션의 소스 코드, 메모리 또는 저장 공간 등의 자원을 관리할 수 있다. The application manager 341 may manage, for example, a life cycle of at least one application among the applications 370 . The window manager 342 may manage GUI resources used in the screen. The multimedia manager 343 may identify a format required for reproduction of various media files, and may encode or decode the media file using a codec suitable for the format. The resource manager 344 may manage resources such as source code, memory, or storage space of at least one of the applications 370 .

파워 매니저(345)는, 예를 들면, 바이오스(BIOS: basic input/output system) 등과 함께 동작하여 배터리(battery) 또는 전원을 관리하고, 전자 장치의 동작에 필요한 전력 정보 등을 제공할 수 있다. 데이터베이스 매니저(346)는 어플리케이션(370) 중 적어도 하나의 어플리케이션에서 사용할 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(347)는 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 업데이트를 관리할 수 있다. The power manager 345 may, for example, operate in conjunction with a basic input/output system (BIOS), etc. to manage a battery or power, and provide power information required for the operation of the electronic device. The database manager 346 may create, search, or change a database to be used by at least one of the applications 370 . The package manager 347 may manage installation or update of applications distributed in the form of package files.

연결 매니저(348)는, 예를 들면, WiFi 또는 블루투스 등의 무선 연결을 관리할 수 있다. 통지 매니저(349)는 도착 메시지, 약속, 근접성 알림 등의 사건(event)을 사용자에게 방해되지 않는 방식으로 표시 또는 통지할 수 있다. 위치 매니저(350)는 전자 장치의 위치 정보를 관리할 수 있다. 그래픽 매니저(351)는 사용자에게 제공될 그래픽 효과 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. 보안 매니저(352)는 시스템 보안 또는 사용자 인증 등에 필요한 제반 보안 기능을 제공할 수 있다. 한 실시예에 따르면, 전자 장치(예: 전자 장치(101))가 전화 기능을 포함한 경우, 미들웨어(330)는 전자 장치의 음성 또는 영상 통화 기능을 관리하기 위한 통화 매니저(telephony manager)를 더 포함할 수 있다. The connection manager 348 may manage a wireless connection such as WiFi or Bluetooth, for example. The notification manager 349 may display or notify the user of events such as arrival messages, appointments, and proximity notifications in an unobtrusive manner. The location manager 350 may manage location information of the electronic device. The graphic manager 351 may manage graphic effects to be provided to the user or a user interface related thereto. The security manager 352 may provide various security functions necessary for system security or user authentication. According to an embodiment, when the electronic device (eg, the electronic device 101) includes a phone function, the middleware 330 further includes a telephony manager for managing the voice or video call function of the electronic device. can do.

미들웨어(330)는 전술한 구성요소들의 다양한 기능의 조합을 형성하는 미들웨어 모듈을 포함할 수 있다. 미들웨어(330)는 차별화된 기능을 제공하기 위해 운영 체제의 종류 별로 특화된 모듈을 제공할 수 있다. 또한, 미들웨어(330)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다.The middleware 330 may include a middleware module that forms a combination of various functions of the aforementioned components. The middleware 330 may provide a specialized module for each type of operating system in order to provide a differentiated function. Also, the middleware 330 may dynamically delete some existing components or add new components.

API(360)(예: API(145))는, 예를 들면, API 프로그래밍 함수들의 집합으로, 운영 체제에 따라 다른 구성으로 제공될 수 있다. 예를 들면, 안드로이드 또는 iOS의 경우, 플랫폼 별로 하나의 API 셋을 제공할 수 있으며, 타이젠(tizen)의 경우, 플랫폼 별로 두 개 이상의 API 셋을 제공할 수 있다.The API 360 (eg, the API 145 ) is, for example, a set of API programming functions, and may be provided in a different configuration according to an operating system. For example, in the case of Android or iOS, one API set may be provided for each platform, and in the case of Tizen, two or more API sets may be provided for each platform.

어플리케이션(370)(예: 어플리케이션 프로그램(147))은, 예를 들면, 홈(371), 다이얼러(372), SMS/MMS(373), IM(instant message)(374), 브라우저(375), 카메라(376), 알람(377), 컨택트(378), 음성 다이얼(379), 이메일(380), 달력(381), 미디어 플레이어(382), 앨범(383), 또는 시계(384), 건강 관리(health care)(예: 운동량 또는 혈당 등을 측정), 또는 환경 정보 제공(예: 기압, 습도, 또는 온도 정보 등을 제공) 등의 기능을 수행할 수 있는 하나 이상의 어플리케이션을 포함할 수 있다.The application 370 (eg, the application program 147 ) may include, for example, a home 371 , a dialer 372 , an SMS/MMS 373 , an instant message (IM) 374 , a browser 375 , Camera 376 , Alarm 377 , Contacts 378 , Voice Dial 379 , Email 380 , Calendar 381 , Media Player 382 , Album 383 , or Clock 384 , Health Care It may include one or more applications capable of performing a function such as health care (eg, measuring exercise amount or blood sugar) or providing environmental information (eg, providing information on air pressure, humidity, or temperature).

한 실시예에 따르면, 어플리케이션(370)은 전자 장치(예: 전자 장치(101))와 외부 전자 장치(예: 전자 장치(102, 104)) 사이의 정보 교환을 지원하는 어플리케이션(이하, 설명의 편의 상, "정보 교환 어플리케이션")을 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치에 특정 정보를 전달하기 위한 알림 전달(notification relay) 어플리케이션, 또는 외부 전자 장치를 관리하기 위한 장치 관리(device management) 어플리케이션을 포함할 수 있다. According to an embodiment, the application 370 is an application that supports information exchange between an electronic device (eg, the electronic device 101) and an external electronic device (eg, the electronic devices 102 and 104) (hereinafter, described below). For convenience, "information exchange application") may be included. The information exchange application may include, for example, a notification relay application for transmitting specific information to an external electronic device or a device management application for managing the external electronic device.

예를 들면, 알림 전달 어플리케이션은 전자 장치의 다른 어플리케이션(예: SMS/MMS 어플리케이션, 이메일 어플리케이션, 건강 관리 어플리케이션, 또는 환경 정보 어플리케이션 등)에서 발생된 알림 정보를 외부 전자 장치(예: 전자 장치(102, 104))로 전달하는 기능을 포함할 수 있다. 또한, 알림 전달 어플리케이션은, 예를 들면, 외부 전자 장치로부터 알림 정보를 수신하여 사용자에게 제공할 수 있다. For example, the notification delivery application transmits notification information generated by another application of the electronic device (eg, an SMS/MMS application, an email application, a health management application, or an environment information application) to an external electronic device (eg, the electronic device 102 ). , 104)). Also, the notification delivery application may receive notification information from, for example, an external electronic device and provide the notification information to the user.

장치 관리 어플리케이션은, 예를 들면, 전자 장치와 통신하는 외부 전자 장치(예: 전자 장치(102, 104))의 적어도 하나의 기능(예: 외부 전자 장치 자체(또는, 일부 구성 부품)의 턴-온/턴-오프 또는 디스플레이의 밝기(또는, 해상도) 조절), 외부 전자 장치에서 동작하는 어플리케이션 또는 외부 전자 장치에서 제공되는 서비스(예: 통화 서비스 또는 메시지 서비스 등)를 관리(예: 설치, 삭제, 또는 업데이트)할 수 있다. The device management application is, for example, the turn-of at least one function (eg, the external electronic device itself (or some component) of the external electronic device (eg, the electronic device 102, 104) that communicates with the electronic device) Manage (eg, install, delete, etc.) applications running on/off or display brightness (or resolution) adjustments), applications running on external electronic devices, or services provided by external electronic devices (eg, call services or message services, etc.) , or update).

한 실시예에 따르면, 어플리케이션(370)은 외부 전자 장치(예: 전자 장치(102, 104))의 속성(에 따라 지정된 어플리케이션(예: 모바일 의료 기기의 건강 관리 어플리케이션 등)을 포함할 수 있다. 한 실시예에 따르면, 어플리케이션(370)은 외부 전자 장치(예: 서버(106) 또는 전자 장치(102, 104))로부터 수신된 어플리케이션을 포함할 수 있다. 한 실시예에 따르면, 어플리케이션(370)은 프리로드 어플리케이션(preloaded application) 또는 서버로부터 다운로드 가능한 제3자 어플리케이션(third party application)을 포함할 수 있다. 도시된 실시예에 따른 프로그램 모듈(310)의 구성요소들의 명칭은 운영 체제의 종류에 따라서 달라질 수 있다. According to an embodiment, the application 370 may include an application (eg, a health management application of a mobile medical device, etc.) designated according to a property (eg, the electronic device 102 or 104 ) of the external electronic device (eg, the electronic device 102 or 104 ). According to an embodiment, the application 370 may include an application received from an external electronic device (eg, the server 106 or the electronic devices 102 and 104). may include a preloaded application or a third party application downloadable from a server The names of components of the program module 310 according to the illustrated embodiment depend on the type of the operating system. Therefore, it may vary.

다양한 실시예에 따르면, 프로그램 모듈(310)의 적어도 일부는 소프트웨어, 펌웨어, 하드웨어, 또는 이들 중 적어도 둘 이상의 조합으로 구현될 수 있다. 프로그램 모듈(310)의 적어도 일부는, 예를 들면, 프로세서(예: 프로세서(210))에 의해 구현(implement)(예: 실행)될 수 있다. 프로그램 모듈(310)의 적어도 일부는 하나 이상의 기능을 수행하기 위한, 예를 들면, 모듈, 프로그램, 루틴, 명령어 세트(sets of instructions) 또는 프로세스 등을 포함할 수 있다.According to various embodiments, at least a portion of the program module 310 may be implemented in software, firmware, hardware, or a combination of at least two or more thereof. At least a portion of the program module 310 may be implemented (eg, executed) by, for example, a processor (eg, the processor 210 ). At least a portion of the program module 310 may include, for example, a module, a program, a routine, sets of instructions, or a process for performing one or more functions.

본 문서에서 사용된 용어 "모듈"은, 예를 들면, 하드웨어, 소프트웨어 또는 펌웨어(firmware) 중 하나 또는 둘 이상의 조합을 포함하는 단위(unit)를 의미할 수 있다. "모듈"은, 예를 들면, 유닛(unit), 로직(logic), 논리 블록(logical block), 부품(component), 또는 회로(circuit) 등의 용어와 바꾸어 사용(interchangeably use)될 수 있다. "모듈"은, 일체로 구성된 부품의 최소 단위 또는 그 일부가 될 수 있다. "모듈"은 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수도 있다. "모듈"은 기계적으로 또는 전자적으로 구현될 수 있다. 예를 들면,"모듈"은, 알려졌거나 앞으로 개발될, 어떤 동작들을 수행하는 ASIC(application-specific integrated circuit) 칩, FPGAs(field-programmable gate arrays) 또는 프로그램 가능 논리 장치(programmable-logic device) 중 적어도 하나를 포함할 수 있다. As used herein, the term “module” may refer to, for example, a unit including one or a combination of two or more of hardware, software, or firmware. The term “module” may be used interchangeably with terms such as, for example, unit, logic, logical block, component, or circuit. A “module” may be a minimum unit or a part of an integrally configured component. A “module” may be a minimum unit or a part of performing one or more functions. A “module” may be implemented mechanically or electronically. For example, a “module” may be one of an application-specific integrated circuit (ASIC) chip, field-programmable gate arrays (FPGAs) or programmable-logic device, known or to be developed, that performs certain operations. It may include at least one.

다양한 실시예에 따른 장치(예: 모듈들 또는 그 기능들) 또는 방법(예: 동작들)의 적어도 일부는, 예컨대, 프로그램 모듈의 형태로 컴퓨터로 읽을 수 있는 저장매체(computer-readable storage media)에 저장된 명령어로 구현될 수 있다. 상기 명령어가 프로세서(예: 프로세서(120))에 의해 실행될 경우, 상기 하나 이상의 프로세서가 상기 명령어에 해당하는 기능을 수행할 수 있다. 컴퓨터로 읽을 수 있는 저장매체는, 예를 들면, 메모리(130)가 될 수 있다. At least a portion of an apparatus (eg, modules or functions thereof) or a method (eg, operations) according to various embodiments is, for example, a computer-readable storage medium in the form of a program module It can be implemented as a command stored in . When the instruction is executed by a processor (eg, the processor 120), the one or more processors may perform a function corresponding to the instruction. The computer-readable storage medium may be, for example, the memory 130 .

컴퓨터로 판독 가능한 기록 매체는, 하드디스크, 플로피디스크, 마그네틱 매체(magnetic media)(예: 자기테이프), 광기록 매체(optical media)(예: CD-ROM(compact disc read only memory), DVD(digital versatile disc), 자기-광 매체(magneto-optical media)(예: 플롭티컬 디스크(floptical disk)), 하드웨어 장치(예: ROM(read only memory), RAM(random access memory), 또는 플래시 메모리 등) 등을 포함할 수 있다. 또한, 프로그램 명령에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함할 수 있다. 상술한 하드웨어 장치는 다양한 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지다.Computer-readable recording media include hard disks, floppy disks, magnetic media (eg, magnetic tape), optical media (eg, compact disc read only memory (CD-ROM), DVD ( digital versatile disc), magneto-optical media (such as floppy disk), hardware devices (such as read only memory (ROM), random access memory (RAM), or flash memory, etc.) ), etc. In addition, the program instructions may include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter, etc. The above-described hardware devices include various It may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

다양한 실시예에 따른 모듈 또는 프로그램 모듈은 전술한 구성요소들 중 적어도 하나 이상을 포함하거나, 일부가 생략되거나, 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 다양한 실시예에 따른 모듈, 프로그램 모듈 또는 다른 구성요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱(heuristic)한 방법으로 실행될 수 있다. 또한, 일부 동작은 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다. 그리고 본 문서에 개시된 실시예는 개시된, 기술 내용의 설명 및 이해를 위해 제시된 것이며, 본 문서에서 기재된 기술의 범위를 한정하는 것은 아니다. 따라서, 본 문서의 범위는, 본 문서의 기술적 사상에 근거한 모든 변경 또는 다양한 다른 실시예를 포함하는 것으로 해석되어야 한다.A module or program module according to various embodiments may include at least one or more of the above-described components, some may be omitted, or may further include additional other components. Operations performed by a module, a program module, or other components according to various embodiments may be executed sequentially, in parallel, iteratively, or in a heuristic manner. Also, some operations may be executed in a different order, omitted, or other operations may be added. In addition, the embodiments disclosed in this document are presented for explanation and understanding of the disclosed and technical content, and do not limit the scope of the technology described in this document. Accordingly, the scope of this document should be construed to include all modifications or various other embodiments based on the technical spirit of this document.

도 4는 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다. 도 4의 실시예는 도 5a 내지 5e를 참조하여 더욱 상세하게 설명하도록 한다. 도 5a 내지 5e는 본 발명의 다양한 실시예에 따른 전자 장치의 개념도를 도시한다.4 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure. The embodiment of Figure 4 will be described in more detail with reference to Figures 5a to 5e. 5A to 5E are conceptual diagrams of an electronic device according to various embodiments of the present disclosure.

410 동작에서, 전자 장치(101)는 복수 개의 이미지를 획득할 수 있다. 여기에서, 복수 개의 이미지는 상이한 촬영 위치에서 촬영한 이미지들일 수 있다. 예를 들어, 도 5a에서와 같이, 사용자는 전자 장치(101)를 파지하여 자신을 촬영할 수 있다. 전자 장치(101)는 전면에 배치된 카메라 모듈로 입사되는 빛을 이용하여 프리뷰 이미지를 생성 및 표시할 수 있다. 한편, 사용자는 전자 장치(101)를 파지한 손을 떨 수 있다. 사용자의 손떨림에 따라서 전자 장치(101)는 이동(501,502)할 수 있다. 전자 장치(101)가 이동(501,502)함에 따라서, 전자 장치(101)가 사용자를 촬영하는 위치가 변경될 수 있다. 예를 들어, 전자 장치(101)는 제 1 이동(501)에 대응한 제 1 촬영 위치에서 촬영한 제 1 이미지를 촬영하여 저장할 수 있으며, 제 2 이동(502)에 대응한 제 2 촬영 위치에서 촬영한 제 2 이미지를 촬영하여 저장할 수 있다. 제 1 이미지에서의 사용자의 얼굴 영역의 위치 및 제 2 이미지에서의 사용자의 얼굴 영역의 위치는 상이할 수 있으며, 이는 촬영 위치가 상이한 것에서 기인할 수 있다. 즉, 피사체가 움직이지 않은 경우에도, 전자 장치(101)의 이동에 따라서 이미지 내에서의 피사체 모션이 야기될 수 있다.In operation 410 , the electronic device 101 may acquire a plurality of images. Here, the plurality of images may be images captured at different photographing locations. For example, as shown in FIG. 5A , the user may take a picture of himself/herself by holding the electronic device 101 . The electronic device 101 may generate and display a preview image using light incident to a camera module disposed in front. Meanwhile, the user may shake the hand holding the electronic device 101 . According to the user's hand shake, the electronic device 101 may move (501, 502). As the electronic device 101 moves ( 501 , 502 ), a location at which the electronic device 101 captures a user may be changed. For example, the electronic device 101 may capture and store a first image photographed at a first photographing position corresponding to the first movement 501 , and may be stored at a second photographing position corresponding to the second movement 502 . The captured second image may be captured and stored. The position of the user's face region in the first image and the position of the user's face region in the second image may be different, which may be due to the different shooting positions. That is, even when the subject does not move, the subject motion in the image may be caused according to the movement of the electronic device 101 .

420 동작에서, 전자 장치(101)는 제 1 오브젝트의 제 1 모션량 및 제 2 오브젝트의 제 2 모션량을 확인할 수 있다. 430 동작에서, 전자 장치(101)는 제 1 모션량 및 제 2 모션량에 기반하여 이미지 효과를 적용할 수 있다. 더욱 상세하게, 도 5a에서와 같이, 전자 장치(101)는 제 1 이미지 및 제 2 이미지에서의 얼굴 영역의 위치 사이의 차이에 기초하여 얼굴 영역의 모션량을 획득할 수 있다. 여기에서, 모션량은 제 1 이미지에서의 얼굴 영역의 위치 및 제 2 이미지에서의 얼굴 영역의 위치의 차이일 수 있다.In operation 420 , the electronic device 101 may check the first motion amount of the first object and the second motion amount of the second object. In operation 430, the electronic device 101 may apply an image effect based on the first motion amount and the second motion amount. More specifically, as shown in FIG. 5A , the electronic device 101 may acquire the amount of motion of the face region based on a difference between the positions of the face region in the first image and the second image. Here, the amount of motion may be a difference between the position of the face region in the first image and the position of the face region in the second image.

전자 장치(101)는 얼굴 영역의 모션량에 기초하여 제 1 이미지 또는 제 2 이미지에 대하여 얼굴 영역을 배경 영역으로부터 분리할 수 있으며, 얼굴 영역 및 바디 영역을 포함한 인물 영역을 배경 영역으로부터 분리할 수 있다. 아울러, 전자 장치(101)는 분리 결과에 기초하여 이미지 효과를 적용할 수 있다. 예를 들어, 전자 장치(101)는 얼굴 영역을 제외한 부분에 대하여 블러 효과를 적용하거나 또는 인물 영역을 제외한 부분에 대하여 블러 효과를 적용할 수 있다.The electronic device 101 may separate the face region from the background region with respect to the first image or the second image based on the amount of motion of the face region, and may separate the person region including the face region and the body region from the background region. have. In addition, the electronic device 101 may apply an image effect based on the separation result. For example, the electronic device 101 may apply a blur effect to a portion excluding the face region or may apply a blur effect to a portion excluding the person region.

본 발명의 다양한 실시예에서, 전자 장치(101)는 얼굴 영역의 모션량에 추가적으로 컬러 정보 및 위상 정보 중 적어도 하나를 더 이용하여 인물 영역을 배경 영역으로부터 세그먼테이션할 수 있다. 전자 장치(101)는 세그먼테이션 결과에 기초하여 배경 영역에 블러 효과를 적용한 이미지를 출력할 수 있다. 이에 따라, 전자 장치(101)는 아웃 포커스 등의 기능을 가지는 고성능 카메라 모듈이 아닌 경우에도, 아웃 포커스된 것과 같이 처리된 이미지를 출력할 수 있다. 또 다른 실시예에서, 전자 장치(101)는 얼굴 영역 또는 다른 오브젝트 각각에 대한 모션량을 획득할 수 있으며, 이미지 내의 적어도 하나의 오브젝트 각각에 대한 깊이 정보를 획득할 수 있다. 전자 장치(101)는 획득된 깊이 정보에 기초하여 깊이 맵(depth map) 또는 3차원 맵을 생성하여 표시할 수도 있다. 이에 따라, 전자 장치(101)는 기존의 3차원 맵 알고리즘과 같이 복잡한 알고리즘을 적용하지 않아도 3차원 맵을 생성하여 출력할 수도 있다. 아울러, 2PD 시스템과 같은 위상 픽셀을 포함하지 않은 경우라도, 본 발명의 다양한 실시예에 따른 전자 장치(101)는 깊이 정보와 같은 위상 정보를 획득할 수 있다.According to various embodiments of the present disclosure, the electronic device 101 may segment the person region from the background region by further using at least one of color information and phase information in addition to the amount of motion of the face region. The electronic device 101 may output an image to which the blur effect is applied to the background area based on the segmentation result. Accordingly, even when the electronic device 101 is not a high-performance camera module having an out-focus function, it may output an image processed as out-focused. In another embodiment, the electronic device 101 may obtain a motion amount for each of the face region or another object, and may obtain depth information for each of at least one object in the image. The electronic device 101 may generate and display a depth map or a 3D map based on the acquired depth information. Accordingly, the electronic device 101 may generate and output a 3D map without applying a complex algorithm such as a conventional 3D map algorithm. In addition, even when a phase pixel is not included as in the 2PD system, the electronic device 101 according to various embodiments of the present disclosure may acquire phase information such as depth information.

도 5b는 본 발명의 다양한 실시예에 따른 전자 장치의 동작을 설명하기 위한 개념도를 도시한다.5B is a conceptual diagram illustrating an operation of an electronic device according to various embodiments of the present disclosure.

도 5b에 도시된 바와 같이, 사용자는 전자 장치(101)를 파지하여 자신을 촬영할 수 있다. 전자 장치(101)는 전면에 배치된 카메라 모듈로 입사되는 빛을 이용하여 프리뷰 이미지를 생성 및 표시할 수 있다. 한편, 사용자는 전자 장치(101)를 파지한 채로 팔을 이동(510)시켜 전자 장치(101)의 촬영 위치를 이동(511)시킬 수 있다.As shown in FIG. 5B , the user may take a picture of himself/herself by holding the electronic device 101 . The electronic device 101 may generate and display a preview image using light incident to a camera module disposed in front. Meanwhile, the user may move ( 510 ) the arm while holding the electronic device 101 to move ( 511 ) the photographing position of the electronic device 101 .

사용자의 팔의 움직임에 따라서 전자 장치(101)는 이동(511)할 수 있다. 전자 장치(101)가 이동(511)함에 따라서, 전자 장치(101)가 사용자를 촬영하는 위치가 변경될 수 있다. 예를 들어, 전자 장치(101)는 제 1 촬영 위치에서 촬영한 제 1 이미지(512)를 촬영하여 저장할 수 있으며, 제 2 촬영 위치에서 촬영한 제 2 이미지(513)를 촬영하여 저장할 수 있다. 제 1 이미지(512)에서의 사용자의 얼굴 영역의 위치 및 제 2 이미지(513)에서의 사용자의 얼굴 영역의 위치는 상이할 수 있으며, 이는 촬영 위치가 상이한 것에서 기인할 수 있다. 전자 장치(101)는 제 1 이미지(512) 및 제 2 이미지(513)에서의 얼굴 영역의 위치 사이의 차이에 기초하여 얼굴 영역의 모션량을 획득할 수 있다. 전자 장치(101)는 얼굴 영역의 모션량에 기초하여 제 1 이미지(512) 또는 제 2 이미지(513)에 대하여 세그먼테이션을 수행할 수 있으며, 얼굴 영역 및 바디 영역을 포함한 인물 영역을 배경 영역으로부터 분리할 수 있다. 본 발명의 다양한 실시예에서, 전자 장치(101)는 얼굴 영역의 모션량과 컬러 정보 및 위상 정보 중 적어도 하나를 더 이용하여 인물 영역을 배경 영역으로부터 분리할 수 있다. 전자 장치(101)는 분리 결과에 기초하여 배경 영역에 블러 효과를 적용한 이미지를 출력할 수 있다. 이에 따라, 전자 장치(101)는 아웃 포커스 등의 기능을 가지는 고성능 카메라 모듈이 아닌 경우에도, 아웃 포커스된 것과 같이 처리된 이미지를 출력할 수 있다. 또 다른 실시예에서, 전자 장치(101)는 얼굴 영역 또는 다른 오브젝트 각각에 대한 모션량을 확인할 수 있으며, 이미지 내의 적어도 하나의 오브젝트 각각에 대한 깊이 정보를 획득할 수 있다. 전자 장치(101)는 획득된 깊이 정보에 기초하여 깊이 맵(depth map) 또는 3차원 맵을 생성하여 표시할 수도 있다. 이에 따라, 전자 장치(101)는 기존의 3차원 맵 알고리즘과 같이 복잡한 알고리즘을 적용하지 않아도 3차원 맵을 생성하여 출력할 수도 있다. 아울러, 2PD 시스템과 같은 위상 픽셀을 포함하지 않은 경우라도, 본 발명의 다양한 실시예에 따른 전자 장치(101)는 깊이 정보와 같은 위상 정보를 획득할 수 있다.The electronic device 101 may move 511 according to the movement of the user's arm. As the electronic device 101 moves 511 , the location at which the electronic device 101 captures the user may be changed. For example, the electronic device 101 may photograph and store the first image 512 photographed at the first photographing position, and may photograph and store the second image 513 photographed at the second photographing position. The position of the user's face region in the first image 512 and the position of the user's face region in the second image 513 may be different, which may be due to the different photographing positions. The electronic device 101 may acquire the amount of motion of the face region based on a difference between the positions of the face region in the first image 512 and the second image 513 . The electronic device 101 may segment the first image 512 or the second image 513 based on the amount of motion of the face region, and separate the person region including the face region and the body region from the background region. can do. In various embodiments of the present disclosure, the electronic device 101 may separate the person region from the background region by further using the motion amount of the face region and at least one of color information and phase information. The electronic device 101 may output an image to which the blur effect is applied to the background area based on the separation result. Accordingly, even when the electronic device 101 is not a high-performance camera module having an out-focus function, it may output an image processed as out-focused. In another embodiment, the electronic device 101 may check the amount of motion for each of the face region or other object, and obtain depth information for each of at least one object in the image. The electronic device 101 may generate and display a depth map or a 3D map based on the acquired depth information. Accordingly, the electronic device 101 may generate and output a 3D map without applying a complex algorithm such as a conventional 3D map algorithm. In addition, even when a phase pixel is not included as in the 2PD system, the electronic device 101 according to various embodiments of the present disclosure may acquire phase information such as depth information.

도 5c 내지 5e는 본 발명의 다양한 실시예에 따른 전자 장치의 촬영을 설명하기 위한 개념도를 도시한다.5C to 5E are conceptual diagrams illustrating photographing of an electronic device according to various embodiments of the present disclosure.

전자 장치(101)는 제 1 위치(523)에서 적어도 하나의 피사체(521,522)를 포함하는 장면을 촬영(t1)할 수 있다. 아울러, 전자 장치(101)는 촬영 위치를 변경하여 제 2 위치(524)에서 적어도 하나의 피사체(521,522)를 포함하는 장면을 촬영(t2)할 수 있다.The electronic device 101 may photograph a scene including at least one subject 521 and 522 at the first location 523 ( t1 ). In addition, the electronic device 101 may change the photographing position to photograph a scene including at least one subject 521 and 522 at the second position 524 ( t2 ).

아울러 상술한 바와 같이, 사용자는 전자 장치(101)를 파지하고 촬영을 수행할 수 있다. 사용자가 전자 장치(101)를 파지한 경우, 전자 장치(101)는 사용자의 손떨림등에 의하여 촬영 위치가 제 1 위치로부터 제 2 위치로 변경될 수도 있다. 전자 장치(101)는 프리뷰 이미지 표시를 위하여 촬영 모드로 진입한 이후에는 이미지를 지속적으로 촬영할 수 있다. 전자 장치(101)는 촬영 모드에서 이미지를 지속적으로 촬영하면서, 사용자 손떨림 등에 의한 촬영 위치 변경에 기초하여 촬영 위치가 상이한 복수 개의 이미지를 획득할 수도 있다.In addition, as described above, the user may grip the electronic device 101 and perform photographing. When the user holds the electronic device 101 , the electronic device 101 may change the photographing position from the first position to the second position due to the user's hand shake. The electronic device 101 may continuously photograph an image after entering the photographing mode to display the preview image. The electronic device 101 may acquire a plurality of images having different photographing positions based on a change in the photographing position due to a user's hand shake while continuously photographing an image in the photographing mode.

본 발명의 다양한 실시예에서, 사용자는 전자 장치(101)를 파지한채로 제 1 위치(523)로부터 제 2 위치(524)로 이동시킬 수 있다. 예를 들어, 전자 장치(101)는 전자 장치(101)를 이동시키라는 취지의 위치 유도 메시지를 출력할 수 있어, 사용자는 이를 확인하여 전자 장치(101)의 촬영 위치를 변경하면서 촬영을 수행할 수 있다.한편, 도 5c의 실시예에서는 전자 장치(101)로부터 제 1 피사체(501)까지의 거리가 제 1 거리(d1)이며, 전자 장치(101)로부터 제 2 피사체(502)까지의 거리가 제 2 거리(d2)인 것을 상정하도록 한다.In various embodiments of the present disclosure, the user may move the electronic device 101 from the first position 523 to the second position 524 while holding the electronic device 101 . For example, the electronic device 101 may output a location guidance message to the effect of moving the electronic device 101 , so that the user can check this and perform photographing while changing the photographing position of the electronic device 101 . Meanwhile, in the embodiment of FIG. 5C , the distance from the electronic device 101 to the first subject 501 is the first distance d1 , and the distance from the electronic device 101 to the second subject 502 is the It is assumed that is the second distance d2.

도 5d는 본 발명의 다양한 실시예에 따른 이미지의 개념도를 도시한다. 도 5d의 제 1 이미지(530)는 도 5c의 제 1 위치(523)에서 촬영(t1)된 이미지일 수 있으며, 제 2 이미지(540)는 도 5c의 제 2 위치(524)에서 촬영(t2)된 이미지일 수 있다. 제 1 이미지(530)는 제 1 피사체(521)에 대응하는 제 1 오브젝트(531) 및 제 2 피사체(522)에 대응하는 제 2 오브젝트(532)를 포함할 수 있으며, 제 2 이미지(540)는 제 1 피사체(521)에 대응하는 제 1 오브젝트(541) 및 제 2 피사체(522)에 대응하는 제 2 오브젝트(542)를 포함할 수 있다.5D is a conceptual diagram of an image according to various embodiments of the present disclosure. The first image 530 of FIG. 5D may be an image photographed (t1) at the first location 523 of FIG. 5C, and the second image 540 is photographed (t2) at the second location 524 of FIG. 5C ) may be an image. The first image 530 may include a first object 531 corresponding to the first subject 521 and a second object 532 corresponding to the second subject 522 , and the second image 540 . may include a first object 541 corresponding to the first subject 521 and a second object 542 corresponding to the second subject 522 .

전자 장치(101)는 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 확인할 수 있다. 도 5e는 도 5d의 제 1 이미지(530) 및 제 2 이미지(540)를 비교한 결과일 수 있다. 전자 장치(101)는 제 1 이미지(530) 및 제 2 이미지(540)를 비교하여, 제 1 오브젝트(531,541)에 대한 모션량(551)을 판단할 수 있다. 예를 들어, 전자 장치(101)는 제 1 오브젝트(531)의 픽셀 위치 및 제 1 오브젝트(541)의 픽셀 위치를 비교하여 픽셀 위치의 차이를 판단할 수 있으며, 판단된 픽셀 위치에 대응하여 모션량(551)을 판단할 수 있다. 즉, 모션량(551)는 제 1 오브젝트(531,541)의 이미지 내에서의 움직임 정도, 즉 픽셀 차이를 의미할 수 있다. 전자 장치(101)는 제 1 이미지(530)에서 제 1 오브젝트(531)를 식별할 수 있으며, 제 2 이미지(540)에서 제 1 오브젝트(541)를 식별할 수 있다. 전자 장치(101)는 식별된 제 1 오브젝트(531,541)가 동일한 오브젝트라는 것을 판단할 수 있으며, 이에 따라 제 1 이미지(530) 및 제 2 이미지(540) 비교시에 제 1 오브젝트(531,541) 사이의 모션량(551)을 판단할 수 있다. 본 발명의 다양한 실시예에서, 전자 장치(101)는 인물, 수목 등의 다양한 사물에 대한 사물 인식 알고리즘을 저장할 수 있으며, 이에 따라 제 1 이미지(530)에서 인물에 대응하는 제 1 오브젝트(531) 및 수목에 대응하는 제 2 오브젝트(532)를 인식하고, 제 2 이미지(540)에서 인물에 대응하는 제 1 오브젝트(541) 및 수목에 대응하는 제 2 오브젝트(542)를 인식할 수 있다. 한편, 본 발명의 다양한 실시예에서, 전자 장치(101)는 얼굴 인식 알고리즘을 이용하여 얼굴을 추적할 수 있으며, 이에 대한 설명은 더욱 상세하게 후술하도록 한다.The electronic device 101 may check the amount of motion of each of at least one object in the image. FIG. 5E may be a result of comparing the first image 530 and the second image 540 of FIG. 5D . The electronic device 101 may compare the first image 530 and the second image 540 to determine the amount of motion 551 for the first objects 531 and 541 . For example, the electronic device 101 may compare the pixel position of the first object 531 and the pixel position of the first object 541 to determine a difference in pixel position, and a motion corresponding to the determined pixel position The amount 551 may be determined. That is, the amount of motion 551 may mean the degree of movement of the first objects 531 and 541 in the image, that is, the pixel difference. The electronic device 101 may identify the first object 531 in the first image 530 and may identify the first object 541 in the second image 540 . The electronic device 101 may determine that the identified first objects 531 and 541 are the same object, and accordingly, when comparing the first image 530 and the second image 540 , the difference between the first objects 531 and 541 is A motion amount 551 may be determined. In various embodiments of the present disclosure, the electronic device 101 may store an object recognition algorithm for various objects such as a person and a tree, and accordingly, a first object 531 corresponding to the person in the first image 530 . and a second object 532 corresponding to a tree may be recognized, and a first object 541 corresponding to a person and a second object 542 corresponding to a tree may be recognized in the second image 540 . Meanwhile, in various embodiments of the present disclosure, the electronic device 101 may track a face using a face recognition algorithm, which will be described in more detail later.

전자 장치(101)는 적어도 하나의 오브젝트 각각의 모션량에 기초하여 오브젝트를 분리할 수 있다. 도 5e에 도시된 바와 같이, 제 1 오브젝트(531,541)의 모션량(551)의 크기는 제 2 오브젝트(532,542)의 모션량(552)의 크기보다 클 수 있다. 이는, 전자 장치(101)와 제 1 피사체(521) 사이의 제 1 거리(d1)가 전자 장치(101)와 제 2 피사체(522) 사이의 제 2 거리(d2)보다 작은 것으로부터 기인할 수 있다. 피사체까지의 거리가 상대적으로 작은 경우에는 촬영 위치의 변경에 따라 이미지 내에서의 오브젝트의 움직임, 즉 모션량이 상대적으로 클 수 있으며, 피사체까지의 거리가 상대적으로 큰 경우에는 촬영 위치가 변경되더라도 이미지 내에서의 오브젝트의 모션량이 상대적으로 작을 수 있다. 전자 장치(101)는 서로 상이한 모션량을 가지는 제 1 오브젝트(531) 및 제 2 오브젝트(532)를 구분하여 분리할 수 있다. 아울러, 전자 장치(101)는 제 1 오브젝트(531), 제 2 오브젝트(532)를 배경으로부터 분리할 수도 있다. 전자 장치(101)는 오브젝트 별 모션량에 기초하여 오브젝트 분리를 수행할 수 있다. 오브젝트 별 모션량이 상이하다는 것은 오브젝트에 대응하는 피사체까지의 거리가 상이하다는 것을 의미하는 것이기 때문에, 전자 장치(101)는 상이한 모션량을 가지는 오브젝트를 상이한 것으로 판단하여 세그먼테이션을 수행할 수 있다. 전자 장치(101)는 모션량과 컬러 정보 및 깊이 정보 중 적어도 하나에 기초하여 세그먼테이션을 수행할 수도 있으며, 이에 대하여서는 더욱 상세하게 후술하도록 한다. 상술한 바에 따라서, 전자 장치(101)는 복수 개의 이미지를 이용한 오브젝트 별 모션량에 기초하여 오브젝트 분리 및 분리된 오브젝트 별 이미지 효과 적용을 수행할 수 있다.The electronic device 101 may separate the object based on the amount of motion of each of the at least one object. As illustrated in FIG. 5E , the magnitude of the motion amount 551 of the first objects 531 and 541 may be greater than the magnitude of the motion amount 552 of the second objects 532 and 542 . This may be due to the fact that the first distance d1 between the electronic device 101 and the first subject 521 is smaller than the second distance d2 between the electronic device 101 and the second subject 522 . have. When the distance to the subject is relatively small, the movement of the object in the image, that is, the amount of motion, may be relatively large according to the change of the shooting position. If the distance to the subject is relatively large, even if the shooting position is changed, The amount of motion of the object in . The electronic device 101 may distinguish and separate the first object 531 and the second object 532 having different motion amounts. In addition, the electronic device 101 may separate the first object 531 and the second object 532 from the background. The electronic device 101 may perform object separation based on the amount of motion for each object. Since the different motion amounts for each object means that the distances to the subjects corresponding to the objects are different, the electronic device 101 may determine that objects having different motion amounts are different and perform segmentation. The electronic device 101 may perform segmentation based on the amount of motion and at least one of color information and depth information, which will be described later in more detail. As described above, the electronic device 101 may separate an object and apply an image effect for each separated object based on the amount of motion for each object using a plurality of images.

한편, 본 발명의 다양한 실시예에서는 전자 장치(101)는 듀얼 카메라, 즉 하나의 면에 간격을 두고 배치된 카메라를 포함할 수도 있다. 전자 장치(101)는 듀얼 카메라를 통하여 획득된 복수 개의 이미지를 통하여, 오브젝트의 모션량 계산, 오브젝트 분류 및 오브젝트 분리를 수행할 수 있다.Meanwhile, according to various embodiments of the present disclosure, the electronic device 101 may include a dual camera, that is, a camera disposed on one surface with an interval therebetween. The electronic device 101 may calculate the amount of motion of the object, classify the object, and separate the object through the plurality of images acquired through the dual camera.

도 6은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.6 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

610 동작에서, 전자 장치(101)는 복수 개의 이미지를 획득할 수 있다. 여기에서, 복수 개의 이미지는 상이한 촬영 위치에서 촬영한 이미지들일 수 있다. 예를 들어, 도 5c에서와 같이, 전자 장치(101)는 제 1 위치(523)에서 적어도 하나의 피사체(521,522)를 포함하는 장면을 촬영(t1)할 수 있다. 아울러, 전자 장치(101)는 촬영 위치를 변경하여 제 2 위치(524)에서 적어도 하나의 피사체(521,522)를 포함하는 장면을 촬영(t2)할 수 있다. 상술한 바와 같이, 전자 장치(101)는 손떨림에 의한 위치 변경 또는 사용자가 의도한 전자 장치(101)의 위치 변경 등의 다양한 위치 변경에 기초하여 촬영 위치가 상이한 복수 개의 이미지를 획득할 수 있다.In operation 610, the electronic device 101 may acquire a plurality of images. Here, the plurality of images may be images captured at different photographing locations. For example, as shown in FIG. 5C , the electronic device 101 may photograph a scene including at least one subject 521 and 522 at a first location 523 ( t1 ). In addition, the electronic device 101 may change the photographing position to photograph a scene including at least one subject 521 and 522 at the second position 524 ( t2 ). As described above, the electronic device 101 may acquire a plurality of images having different photographing positions based on various location changes, such as a location change due to hand shake or a location change of the electronic device 101 intended by a user.

620 동작에서, 전자 장치(101)는 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 확인할 수 있다. 상술한 바와 같이, 전자 장치(101)는 복수 개의 이미지를 비교하여, 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 확인할 수 있다.In operation 620 , the electronic device 101 may identify the amount of motion of each of the at least one object in the image. As described above, the electronic device 101 may compare a plurality of images to determine the amount of motion of each of at least one object in the image.

630 동작에서, 전자 장치(101)는 적어도 하나의 오브젝트 각각의 모션량에 기초하여 오브젝트별 깊이 정보를 판단할 수 있다. 상술한 바와 같이, 피사체까지의 거리가 상대적으로 작은 경우에는 촬영 위치의 변경에 따라 이미지 내에서의 오브젝트의 모션량이 상대적으로 클 수 있으며, 피사체까지의 거리가 상대적으로 큰 경우에는 촬영 위치가 변경되더라도 이미지 내에서의 오브젝트의 모션량이 상대적으로 작을 수 있다. 이에 따라, 전자 장치(101)는 상대적으로 작은 모션량을 가지는 오브젝트에는 상대적으로 큰 깊이 값을 설정할 수 있으며, 상대적으로 큰 모션량을 가지는 오브젝트에는 상대적으로 작은 깊이 값을 설정할 수 있다. 전자 장치(101)는 식별된 오브젝트 각각에 깊이 값을 설정할 수 있으며, 640 동작에서 깊이 정보에 기초하여 오브젝트 분리, 즉 세그먼테이션을 수행할 수 있다. 한편, 더욱 상세하게 후술할 것으로, 본 발명의 다양한 실시예에 의한 전자 장치(101)는 깊이 값에 기초하여 깊이 맵을 생성하거나 또는 3차원 효과를 적용할 수도 있다.In operation 630 , the electronic device 101 may determine depth information for each object based on the amount of motion of each of the at least one object. As described above, when the distance to the subject is relatively small, the amount of motion of the object in the image may be relatively large according to the change of the shooting position, and when the distance to the subject is relatively large, even if the shooting position is changed The amount of motion of the object in the image may be relatively small. Accordingly, the electronic device 101 may set a relatively large depth value to an object having a relatively small amount of motion, and may set a relatively small depth value to an object having a relatively large amount of motion. The electronic device 101 may set a depth value to each of the identified objects, and may perform object separation, ie, segmentation, based on the depth information in operation 640 . Meanwhile, as will be described later in more detail, the electronic device 101 according to various embodiments of the present disclosure may generate a depth map or apply a 3D effect based on a depth value.

도 7은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.7 is a flowchart illustrating a method for controlling an electronic device according to various embodiments of the present disclosure.

710 동작에서, 전자 장치(101)는 복수 개의 이미지를 획득할 수 있다. 여기에서, 복수 개의 이미지는 상이한 촬영 위치에서 촬영한 이미지들일 수 있다. 상술한 바와 같이, 전자 장치(101)는 손떨림에 의한 위치 변경 또는 사용자가 의도한 전자 장치(101)의 위치 변경 등의 다양한 위치 변경에 기초하여 촬영 위치가 상이한 복수 개의 이미지를 획득할 수 있다.In operation 710 , the electronic device 101 may acquire a plurality of images. Here, the plurality of images may be images captured at different photographing locations. As described above, the electronic device 101 may acquire a plurality of images having different photographing positions based on various location changes, such as a location change due to hand shake or a location change of the electronic device 101 intended by a user.

720 동작에서, 전자 장치(101)는 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 판단할 수 있다. 상술한 바와 같이, 전자 장치(101)는 복수 개의 이미지를 비교하여, 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 판단할 수 있다.In operation 720, the electronic device 101 may determine the amount of motion of each of at least one object in the image. As described above, the electronic device 101 may compare a plurality of images to determine the amount of motion of each of at least one object in the image.

730 동작에서, 전자 장치(101)는 복수 개의 이미지 중 대상 이미지의 픽셀 별 컬러 정보를 분석할 수 있다. 740 동작에서 전자 장치(101)는 분석된 컬러 정보 및 대상 이미지 내의 적어도 하나의 오브젝트 각각의 모션량에 기초하여 세그먼테이션을 수행할 수 있다. 본 발명의 다양한 실시예에서, 전자 장치(101)는 오브젝트 각각의 모션량에 기초하여 트라이 맵(tri map)을 생성하고, 생성된 트라이 맵과 컬러 정보에 기초하여 오브젝트를 구분 및 분리할 수 있다. 또는, 전자 장치(101)는 오브젝트 각각의 모션량 및 컬러 정보에 기초하여 트라이 맵을 생성하고, 생성된 트라이 맵과 컬러 정보에 기초하여 오브젝트 구분 및 분리를 수행할 수 있다. 아울러, 전자 장치(101)는 분리된 오브젝트에 대하여 이미지 효과를 적용할 수 있다. 또는, 전자 장치(101)는 컬러 정보에 기초하여 1차적으로 오브젝트를 분리하고, 이후에 추가적으로 모션량에 기초하여 2차적으로 오브젝트를 분리할 수도 있다. 상술한 순서는 변경될 수 있으며, 전자 장치(101)는 모션량에 기초하여 1차적으로 오브젝트를 분리하고, 이후에 추가적으로 컬러 정보에 기초하여 2차적으로 오브젝트를 분리할 수도 있다.In operation 730, the electronic device 101 may analyze color information for each pixel of the target image among the plurality of images. In operation 740 , the electronic device 101 may perform segmentation based on the analyzed color information and the motion amount of each of at least one object in the target image. In various embodiments of the present disclosure, the electronic device 101 may generate a tri-map based on the amount of motion of each object, and classify and separate the object based on the generated tri-map and color information. . Alternatively, the electronic device 101 may generate a trimap based on the amount of motion and color information of each object, and perform object classification and separation based on the generated trimap and color information. In addition, the electronic device 101 may apply an image effect to the separated object. Alternatively, the electronic device 101 may firstly separate the object based on the color information and then secondarily separate the object based on the amount of motion. The above-described order may be changed, and the electronic device 101 may firstly separate the object based on the amount of motion, and then may additionally separate the object secondarily based on color information.

도 8은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.8 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

810 동작에서, 전자 장치(101)는 복수 개의 이미지를 획득할 수 있다. 여기에서, 복수 개의 이미지는 상이한 촬영 위치에서 촬영한 이미지들일 수 있다. 상술한 바와 같이, 전자 장치(101)는 손떨림에 의한 위치 변경 또는 사용자가 의도한 전자 장치(101)의 위치 변경 등의 다양한 위치 변경에 기초하여 촬영 위치가 상이한 복수 개의 이미지를 획득할 수 있다.In operation 810 , the electronic device 101 may acquire a plurality of images. Here, the plurality of images may be images captured at different photographing locations. As described above, the electronic device 101 may acquire a plurality of images having different photographing positions based on various location changes, such as a location change due to hand shake or a location change of the electronic device 101 intended by a user.

820 동작에서, 전자 장치(101)는 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 판단할 수 있다. 상술한 바와 같이, 전자 장치(101)는 복수 개의 이미지를 비교하여, 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 판단할 수 있다.In operation 820 , the electronic device 101 may determine the amount of motion of each of at least one object in the image. As described above, the electronic device 101 may compare a plurality of images to determine the amount of motion of each of at least one object in the image.

830 동작에서, 전자 장치(101)는 복수 개의 이미지 중 대상 이미지의 픽셀 별 컬러 정보를 분석할 수 있다. 840 동작에서, 전자 장치(101)는 대상 이미지의 위상 픽셀에 대한 위상 정보를 분석할 수 있다. 본 발명의 다양한 실시예에서, 전자 장치(101)는 예를 들어 2PD(two photodiode)와 같은 위상 픽셀을 포함할 수 있다. 2PD와 같은 위상 픽셀은, 하나의 픽셀 단위에 복수 개의 포토 다이오드를 포함할 수 있다. 이 경우, 하나의 픽셀 단위의 제 1 포토 다이오드에서 측정된 제 1 수광량과 제 2 포토 다이오드에서 측정된 제 2 수광량은 상이할 수 있다. 전자 장치(101)는 하나의 픽셀 단위의 두 개의 포토 다이오드 각각에서의 수광량 차이에 기초하여 위상 정보를 분석할 수 있다. 예를 들어, 전자 장치(101)는 수광량 차이에 기초하여 해당 픽셀에서의 깊이 정보를 분석할 수 있다.In operation 830 , the electronic device 101 may analyze color information for each pixel of the target image among the plurality of images. In operation 840, the electronic device 101 may analyze phase information on a phase pixel of the target image. In various embodiments of the present disclosure, the electronic device 101 may include phase pixels such as, for example, two photodiodes (2PDs). A phase pixel such as 2PD may include a plurality of photodiodes in one pixel unit. In this case, the first light-receiving amount measured by the first photodiode of one pixel unit and the second light-receiving amount measured by the second photodiode may be different from each other. The electronic device 101 may analyze the phase information based on the difference in the amount of light received by each of the two photodiodes in one pixel unit. For example, the electronic device 101 may analyze depth information in the corresponding pixel based on the difference in the amount of light received.

850 동작에서 전자 장치(101)는 분석된 컬러 정보, 위상 정보 및 대상 이미지 내의 적어도 하나의 오브젝트 각각의 모션량에 기초하여 세그먼테이션을 수행할 수 있다. 본 발명의 다양한 실시예에서, 전자 장치(101)는 오브젝트 각각의 모션량에 기초하여 트라이 맵(tri map)을 생성하고, 생성된 트라이 맵과 컬러 정보 및 위상 정보에 기초하여 세그먼테이션을 수행할 수 있다. 또는, 전자 장치(101)는 오브젝트 각각의 모션량, 위상 정보 및 컬러 정보에 기초하여 트라이 맵을 생성하고, 생성된 트라이 맵과 컬러 정보 및 위상 정보에 기초하여 세그먼테이션을 수행할 수 있다. 또는, 전자 장치(101)는 컬러 정보 및 위상 정보에 기초하여 1차적으로 세그먼테이션을 수행하고, 이후에 추가적으로 모션량에 기초하여 2차적으로 세그먼테이션을 수행할 수도 있다. 상술한 순서는 변경될 수 있으며, 전자 장치(101)는 모션량에 기초하여 1차적으로 세그먼테이션을 수행하고, 이후에 추가적으로 컬러 정보 및 위상 정보에 기초하여 2차적으로 세그먼테이션을 수행할 수도 있다. 한편, 본 발명의 다양한 실시예에서, 전자 장치(101)는 모션량 및 위상 정보에 기초하여 세그먼테이션을 수행할 수도 있다.In operation 850 , the electronic device 101 may perform segmentation based on the analyzed color information, phase information, and motion amount of each of at least one object in the target image. In various embodiments of the present disclosure, the electronic device 101 may generate a tri map based on the amount of motion of each object, and perform segmentation based on the generated tri map, color information, and phase information. have. Alternatively, the electronic device 101 may generate a trimap based on the amount of motion, phase information, and color information of each object, and perform segmentation based on the generated trimap, color information, and phase information. Alternatively, the electronic device 101 may primarily perform segmentation based on color information and phase information, and then additionally perform segmentation secondarily based on the amount of motion. The above-described order may be changed, and the electronic device 101 may firstly perform segmentation based on the amount of motion, and then may additionally perform segmentation secondarily based on color information and phase information. Meanwhile, according to various embodiments of the present disclosure, the electronic device 101 may perform segmentation based on the amount of motion and the phase information.

도 9a는 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.9A is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

910 동작에서, 전자 장치(101)는 복수 개의 이미지를 획득할 수 있다. 여기에서, 복수 개의 이미지는 상이한 촬영 위치에서 촬영한 이미지들일 수 있다. 상술한 바와 같이, 전자 장치(101)는 손떨림에 의한 위치 변경 또는 사용자가 의도한 전자 장치(101)의 위치 변경 등의 다양한 위치 변경에 기초하여 촬영 위치가 상이한 복수 개의 이미지를 획득할 수 있다.In operation 910 , the electronic device 101 may acquire a plurality of images. Here, the plurality of images may be images captured at different photographing locations. As described above, the electronic device 101 may acquire a plurality of images having different photographing positions based on various location changes, such as a location change due to hand shake or a location change of the electronic device 101 intended by a user.

920 동작에서, 전자 장치(101)는 복수 개의 이미지 중 대상 이미지 및 비교 이미지를 선택할 수 있다. 여기에서, 대상 이미지는 세그먼테이션 및 추가적인 효과를 적용하고자 하는 이미지일 수 있다. 일 실시예에 따르면 전자 장치(101)는 그래픽 사용자 인터페이스를 통한 사용자의 입력에 기초하여 대상 이미지를 선택할 수 있다. 또는, 전자 장치(101)는 기저장된 알고리즘에 기초하여 대상 이미지를 선택할 수 있다. 예를 들어, 전자 장치(101)는 복수 개의 이미지 중 조도 정보, 컬러 정보가 기지정된 수준을 만족하는 이미지를 대상 이미지로 선택할 수 있다. 또는, 전자 장치(101)는 인물의 얼굴이 포함된 복수 개의 이미지 중 눈, 코, 입 등의 오브젝트와 기지정된 템플릿과의 유사도가 임계치를 초과, 즉 기지정된 값을 만족하는 이미지를 대상 이미지로 선택할 수도 있다. 전자 장치(101)가 복수 개의 이미지 중 대상 이미지를 결정하는 구성에는 제한이 없음을 당업자는 용이하게 이해할 수 있을 것이다.In operation 920, the electronic device 101 may select a target image and a comparison image from among the plurality of images. Here, the target image may be an image to which segmentation and additional effects are to be applied. According to an embodiment, the electronic device 101 may select a target image based on a user input through the graphic user interface. Alternatively, the electronic device 101 may select a target image based on a pre-stored algorithm. For example, the electronic device 101 may select an image that satisfies predetermined levels of illuminance information and color information among a plurality of images as a target image. Alternatively, the electronic device 101 selects, as a target image, an image in which the degree of similarity between an object, such as an eye, nose, or mouth, and a predetermined template among a plurality of images including a face of a person exceeds a threshold, that is, satisfies a predetermined value. You can also choose A person skilled in the art will readily understand that there is no limitation on a configuration in which the electronic device 101 determines a target image among a plurality of images.

전자 장치(101)는 복수 개의 이미지 중 대상 이미지와의 차이가 임계치를 초과하는 이미지를 비교 이미지로 선택할 수 있다. 대상 이미지와 비교 이미지 각각의 오브젝트 사이의 위치 차이가 클 수록, 모션량의 크기가 클 수 있다. 모션량이 클 수록, 전자 장치(101)는 더욱 정확한 세그먼테이션을 수행할 수 있다. 이에 따라, 전자 장치(101)는 대상 이미지와의 차이가 최고인 이미지를 비교 이미지로 선택할 수도 있다. 한편, 전자 장치(101)는 대상 이미지의 추적 대상 오브젝트를 포함한 이미지를 비교 이미지로 선택할 수도 있다. 즉, 하나의 실시예에서는, 전자 장치(101)는 대상 이미지의 추적 대상 오브젝트를 포함한 이미지 중 대상 이미지와의 차이가 최고인 이미지를 비교 이미지로 선택할 수 있다.The electronic device 101 may select an image in which a difference from a target image exceeds a threshold among a plurality of images as a comparison image. As the position difference between each object of the target image and the comparison image increases, the amount of motion may be large. As the amount of motion increases, the electronic device 101 may perform more accurate segmentation. Accordingly, the electronic device 101 may select an image having the greatest difference from the target image as the comparison image. Meanwhile, the electronic device 101 may select an image including the tracking target object of the target image as the comparison image. That is, in one embodiment, the electronic device 101 may select an image having the greatest difference from the target image among images including the tracking target object of the target image as the comparison image.

930 동작에서, 전자 장치(101)는 대상 이미지 및 비교 이미지를 비교하여, 대상 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 판단할 수 있다. 상술한 바와 같이, 대상 이미지 및 비교 이미지 각각은 추적 대상 오브젝트를 포함할 수 있으며, 추적 대상 오브젝트는 동일한 피사체에 대응할 수 있다. 하나의 실시예에서, 추적 대상 오브젝트는 얼굴일 수 있으며, 전자 장치(101)는 얼굴 인식 알고리즘을 이용하여 대상 이미지 내의 추적 대상 오브젝트의 위치 및 비교 이미지 내의 추적 대상 오브젝트의 위치를 판단할 수 있다. 전자 장치(101)는 대상 이미지 및 비교 이미지 내에서의 추적 대상 오브젝트의 위치를 비교하여 모션량을 판단할 수 있다.In operation 930 , the electronic device 101 compares the target image and the comparison image to determine the amount of motion of each of at least one object in the target image. As described above, each of the target image and the comparison image may include a tracking target object, and the tracking target object may correspond to the same subject. In an embodiment, the tracking target object may be a face, and the electronic device 101 may determine the location of the tracking target object in the target image and the location of the tracking target object in the comparison image using a face recognition algorithm. The electronic device 101 may determine the amount of motion by comparing the position of the tracking target object in the target image and the comparison image.

940 동작에서, 전자 장치(101)는 모션량에 기초하여 트라이 맵(tri map)을 생성할 수 있다. 예를 들어, 도 9b에서와 같이, 전자 장치(101)는 대상 이미지(970)로부터 트라이 맵(980)을 생성할 수 있다. 대상 이미지(970)은 인물을 촬영한 것으로 얼굴 오브젝트(971) 및 몸체 오브젝트(972)를 포함할 수 있다. 전자 장치(101)는 예를 들어 얼굴 오브젝트(971)를 추적하여 비교 이미지에서 얼굴 오브젝트를 검출할 수 있으며, 얼굴 오브젝트(971)에 대한 모션량을 판단할 수 있다. 전자 장치(101)는 얼굴 오브젝트(971)의 모션량에 기초하여 트라이 맵(980)을 생성할 수 있다. 트라이 맵(980)은 배경 영역(981), 미확정 영역(982) 및 인물 영역(983)을 포함할 수 있다. 전자 장치(101)는 얼굴 오브젝트(971)의 모션량과 대응하는 모션량을 가지는 영역을 인물 영역(983)으로 분류할 수 있다. 전자 장치(101)는 얼굴 오브젝트(971)의 모션량과 임계치를 초과하는 모션량을 가지는 영역을 배경 영역(981)으로 분류할 수 있다. 전자 장치(101)는 인물 영역(983) 및 배경 영역(981) 이외의 영역을 미확정 영역(982)으로 분류할 수 있다. 한편, 전자 장치(101)는 컬러 정보를 추가적으로 이용하여 트라이 맵(980)을 생성할 수도 있다. 또는, 전자 장치(101)는 위상 정보를 추가적으로 이용하여 트라이 맵(980)을 생성할 수도 있다. 또는, 전자 장치(101)는 컬러 정보 및 위상 정보를 추가적으로 이용하여 트라이 맵(980)을 생성할 수도 있다.In operation 940 , the electronic device 101 may generate a tri map based on the amount of motion. For example, as shown in FIG. 9B , the electronic device 101 may generate the trimap 980 from the target image 970 . The target image 970 is a photograph of a person and may include a face object 971 and a body object 972 . For example, the electronic device 101 may detect the face object from the comparison image by tracking the face object 971 , and may determine the amount of motion for the face object 971 . The electronic device 101 may generate the trimap 980 based on the amount of motion of the face object 971 . The tri-map 980 may include a background area 981 , an unconfirmed area 982 , and a person area 983 . The electronic device 101 may classify an area having a motion amount corresponding to the motion amount of the face object 971 as a person area 983 . The electronic device 101 may classify a region having the amount of motion of the face object 971 and the amount of motion exceeding the threshold as the background region 981 . The electronic device 101 may classify an area other than the person area 983 and the background area 981 as an unconfirmed area 982 . Meanwhile, the electronic device 101 may generate the trimap 980 by additionally using color information. Alternatively, the electronic device 101 may generate the trimap 980 by additionally using the phase information. Alternatively, the electronic device 101 may generate the trimap 980 by additionally using the color information and the phase information.

950 동작에서, 전자 장치(101)는 트라이 맵(980)에 기초하여 대상 이미지의 세그먼테이션을 수행할 수 있다. 예를 들어, 전자 장치(101)는 트라이 맵(980)의 미확정 영역(982)에 대하여 세그먼테이션을 수행할 수 있다. 전자 장치(101)는 미확정 영역(982)의 컬러 정보 및 위상 정보 중 적어도 하나에 기초하여 미확정 영역(982)의 픽셀을 인물 영역(983) 또는 배경 영역(981) 중 어느 하나로 재구분할 수 있다. 이에 따라, 전자 장치(101)는 대상 이미지(970)로부터 인물 영역(971,972)을 배경으로부터 세그먼테이션할 수 있다.In operation 950 , the electronic device 101 may segment the target image based on the trimap 980 . For example, the electronic device 101 may perform segmentation on the unconfirmed area 982 of the trimap 980 . The electronic device 101 may re-classify the pixels of the unconfirmed area 982 into either the person area 983 or the background area 981 based on at least one of color information and phase information of the unconfirmed area 982 . Accordingly, the electronic device 101 may segment the person areas 971 and 972 from the background from the target image 970 .

960 동작에서, 전자 장치(101)는 세그먼테이션 결과를 이용하여 대상 이미지의 배경에 대한 효과를 적용할 수 있다. 예를 들어, 전자 장치(101)는 배경에 대하여 블러링 효과를 적용할 수 있다. 전자 장치(101)로부터 출력되는 이미지는 인물 영역에 대하여서는 블러링 효과가 적용되지 않고, 배경에 대하여서는 블러링 효과가 적용될 수 있으며, 아웃 포커스된 것과 같은 효과가 구현될 수 있다.In operation 960, the electronic device 101 may apply an effect to the background of the target image by using the segmentation result. For example, the electronic device 101 may apply a blurring effect to the background. In the image output from the electronic device 101 , a blurring effect may not be applied to a person area, a blurring effect may be applied to a background, and an out-focused effect may be implemented.

한편, 상술한 트라이 맵 생성은 단순히 예시적인 것으로, 상술한 바와 같이 본 발명의 다양한 실시예에 의한 전자 장치(101)는 오브젝트의 모션량에 기초하여 분리할 수도 있다. 즉, 전자 장치(101)는 추적 대상 오브젝트의 모션량과 기지정된 임계치 미만의 모션량을 가지는 오브젝트를 하나의 오브젝트, 예를 들어 인물 오브젝트로 분리할 수도 있다. 전자 장치(101)는 분리 결과에 기초하여 오브젝트 별로 이미지 효과, 예를 들어 블러 효과를 적용할 수 있다.Meanwhile, the above-described tri-map generation is merely exemplary, and as described above, the electronic device 101 according to various embodiments of the present disclosure may separate the tri-map based on the amount of motion of the object. That is, the electronic device 101 may separate an object having a motion amount of the tracking target object and a motion amount less than a predetermined threshold into one object, for example, a person object. The electronic device 101 may apply an image effect, for example, a blur effect, to each object based on the separation result.

도 10은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.10 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

1010 동작에서, 전자 장치(101)는 복수 개의 이미지 중 대상 이미지를 선택할 수 있다. 본 발명의 다양한 실시예에서, 전자 장치(101)는 사용자의 선택에 기초하여 대상 이미지를 선택하거나 또는 기지정된 알고리즘에 기초하여 대상 이미지를 선택할 수 있다. 1020 동작에서 전자 장치(101)는 대상 이미지에서 얼굴 영역을 검출하는지 여부를 판단할 수 있다. 도 10의 실시예에서는 전자 장치(101)가 이미지 내의 인물을 세그먼테이션하는 것을 상정하도록 한다. 얼굴 영역이 검출되지 않으면, 전자 장치(101)는 촬영을 종료하거나 또는 복수 개의 이미지 중에서 얼굴 영역이 포함된 다른 이미지를 대상 이미지로서 선택할 수도 있다. 또는, 전자 장치(101)는 1090 동작에서, 얼굴 영역이 검출되지 않은 경우에 대하여 다른 이미지 효과인 제 2 이미지 효과를 적용할 수 있다.In operation 1010 , the electronic device 101 may select a target image from among a plurality of images. In various embodiments of the present disclosure, the electronic device 101 may select a target image based on a user's selection or may select a target image based on a predetermined algorithm. In operation 1020 , the electronic device 101 may determine whether to detect a face region in the target image. In the embodiment of FIG. 10 , it is assumed that the electronic device 101 segments a person in an image. If the face region is not detected, the electronic device 101 may end photographing or select another image including the face region from among a plurality of images as the target image. Alternatively, in operation 1090 , the electronic device 101 may apply a second image effect, which is a different image effect, to a case in which the face region is not detected.

1030 동작에서, 전자 장치(101)는 복수 개의 이미지 중 비교 이미지를 선택할 수 있다. 1040 동작에서, 전자 장치(101)는 비교 이미지에서 얼굴 영역을 검출하는지 여부를 판단할 수 있다. 도 10의 실시예에서는 전자 장치(101)가 이미지 내의 인물을 분리하는 것을 상정하도록 한다. 얼굴 영역이 검출되지 않으면, 전자 장치(101)는 촬영을 종료하거나 또는 복수 개의 이미지 중에서 얼굴 영역이 포함된 다른 이미지를 비교 이미지로서 선택할 수도 있다.In operation 1030 , the electronic device 101 may select a comparison image from among a plurality of images. In operation 1040 , the electronic device 101 may determine whether a face region is detected from the comparison image. In the embodiment of FIG. 10 , it is assumed that the electronic device 101 separates a person in an image. If the face region is not detected, the electronic device 101 may end photographing or select another image including the face region from among a plurality of images as a comparison image.

1050 동작에서, 전자 장치(101)는 대상 이미지 및 비교 이미지를 비교하여 모션량을 검출할 수 있다. 전자 장치(101)는 대상 이미지내의 얼굴 영역의 위치를 비교 이미지내의 얼굴 영역의 위치를 비교할 수 있다. 예를 들어, 전자 장치(101)는 대상 이미지내의 얼굴 영역에 대응하는 픽셀의 위치와 비교 이미지내의 얼굴 영역에 대응하는 픽셀의 위치를 비교할 수 있다. 전자 장치(101)는 비교 결과에 기초하여 모션량을 검출할 수 있다. 모션량은, 대상 이미지 및 비교 이미지 각각에서의 추적 대상 오브젝트, 예를 들어 얼굴 영역의 위치의 차이에 대한 것일 수 있다. 예를 들어, 모션량은, 추적 대상 오브젝트의 움직임 정도 및 움직임 방향 중 적어도 하나를 포함할 수 있다.In operation 1050 , the electronic device 101 may detect the amount of motion by comparing the target image and the comparison image. The electronic device 101 may compare the position of the face region in the target image with the position of the face region in the comparison image. For example, the electronic device 101 may compare the position of the pixel corresponding to the face region in the target image with the position of the pixel corresponding to the face region in the comparison image. The electronic device 101 may detect the amount of motion based on the comparison result. The amount of motion may be for a difference in position of a tracking target object, eg, a face region, in each of the target image and the comparison image. For example, the motion amount may include at least one of a motion degree and a motion direction of the tracking target object.

1060 동작에서, 전자 장치(101)는 추적 대상 오브젝트, 예를 들어 얼굴 영역의 움직임이 존재하는지 여부를 판단할 수 있다. 하나의 실시예에서, 전자 장치(101)는 모션량의 크기가 기지정된 임계치를 초과하는지, 즉 기지정된 값을 만족하는지 여부에 기초하여 움직임이 존재하는지 여부를 판단할 수 있다. 기지정된 임계치 이하인 것으로 판단되면, 전자 장치(101)는 움직임지 존재하지 않는 것으로 판단할 수 있다. 전자 장치(101)는 동작을 종료하거나 또는 다른 비교 이미지를 선택할 수도 있다. 기지정된 임계치를 초과하는 것으로 판단되면, 전자 장치(101)는 추적 대상 오브젝트, 예를 들어 얼굴 영역의 움직임이 존재하는 것으로 판단할 수 있다.In operation 1060 , the electronic device 101 may determine whether there is a movement of the tracking target object, for example, a face region. In one embodiment, the electronic device 101 may determine whether there is motion based on whether the magnitude of the motion amount exceeds a predetermined threshold, that is, satisfies a predetermined value. If it is determined that the value is less than or equal to the predetermined threshold, the electronic device 101 may determine that there is no movement. The electronic device 101 may end the operation or select another comparison image. If it is determined that the predetermined threshold is exceeded, the electronic device 101 may determine that there is a movement of the tracking target object, for example, a face region.

1070 동작에서, 전자 장치(101)는 대상 이미지 및 비교 이미지 사이의 움직임이 최대인지 여부, 즉 기지정된 값을 만족하는지 여부를 판단할 수 있다. 하나의 실시예에서, 전자 장치(101)는 복수 개의 비교 이미지를 순차적으로 대상 이미지와 비교할 수 있으며, 움직임이 최대인 이미지를 최종적으로 비교 이미지로 결정할 수 있다.In operation 1070 , the electronic device 101 may determine whether the motion between the target image and the comparison image is maximum, that is, whether a predetermined value is satisfied. In an embodiment, the electronic device 101 may sequentially compare a plurality of comparison images with a target image, and may finally determine an image having the greatest motion as the comparison image.

1080 동작에서, 전자 장치(101)는 대상 이미지 및 비교 이미지와의 비교 결과에 기초하여 판단된 모션량에 기초하여 오브젝트 분리 및 분리 결과에 기초한 이미지 효과를 적용할 수 있다. 상술한 바와 같이, 하나의 실시예에서 전자 장치(101)는 얼굴 영역의 모션량과 실질적으로 동일한 모션량을 가지는 오브젝트를 인물 영역으로 분류함으로써 세그먼테이션을 수행할 수 있다. 예를 들어, 대상 이미지는 얼굴 영역과 연결되는 몸체 영역을 포함할 수 있다. 비교 이미지 또한 얼굴 영역과 연결되는 몸체 영역을 포함할 수 있다. 전자 장치(101)는 얼굴 영역의 모션량이 몸체 영역의 모션량과 실질적으로 동일한 것으로 판단할 수 있으며, 얼굴 영역 및 몸체 영역을 하나의 인물 영역으로 배경으로부터 분리할 수 있다. 여기에서 실질적으로 동일하다는 것은 두 모션량의 차이가 임계치 미만인 것을 의미할 수 있다. 아울러, 상술한 바와 같이, 전자 장치(101)는 추가적으로 배경 등에 블러링 효과를 적용한 이미지를 출력할 수도 있다.In operation 1080, the electronic device 101 may separate the object based on the amount of motion determined based on the comparison result with the target image and the comparison image and apply an image effect based on the result of separation. As described above, according to an embodiment, the electronic device 101 may perform segmentation by classifying an object having substantially the same amount of motion as that of the face region as a person region. For example, the target image may include a body region connected to a face region. The comparison image may also include a body region connected to the face region. The electronic device 101 may determine that the amount of motion of the face region is substantially the same as that of the body region, and may separate the face region and the body region from the background as one person region. Here, substantially the same may mean that the difference between the two motion amounts is less than a threshold. In addition, as described above, the electronic device 101 may additionally output an image to which a blurring effect is applied to a background or the like.

도 11은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.11 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

1110 동작 내지 1170 동작에 대하여서는, 도 10의 1010 동작 내지 1070에서 상세하게 설명하였으므로, 여기에서의 더 이상의 설명은 생략하도록 한다.Since operations 1110 to 1170 have been described in detail in operations 1010 to 1070 of FIG. 10 , further descriptions herein will be omitted.

1180 동작에서, 전자 장치(101)는 움직임의 크기가 임계치를 초과하는지 여부, 즉 지정된 값을 만족하는지 여부를 판단할 수 있다. 움직임의 크기가 임계치 이하인 경우에는, 1190 동작에서 전자 장치(101)는 대상 이미지의 포토 다이오드 데이터를 이용하여, 1197 동작에서 트라이 맵을 생성할 수 있다. 즉, 모션량이 충분히 크지 않은 경우에는, 전자 장치(101)는 모션량이 아닌 포토 다이오드 데이터를 이용하여 트라이 맵을 생성할 수도 있다. 예를 들어, 전자 장치(101)는 픽셀별 컬러 정보에 기초하여 트라이 맵을 생성할 수 있다. 또는, 전자 장치(101)가 2PD 시스템과 같은 위상 픽셀을 포함한 경우에는, 전자 장치(101)는 위상 픽셀로부터 획득된 위상 정보에 기초하여 트라이 맵을 생성할 수도 있다. 전자 장치(101)는 위상 정보 및 컬러 정보를 이용하여 트라이 맵을 생성할 수도 있다.In operation 1180, the electronic device 101 may determine whether the magnitude of the movement exceeds a threshold, that is, whether a specified value is satisfied. When the magnitude of the motion is equal to or less than the threshold, the electronic device 101 may generate a trimap in operation 1197 using photodiode data of the target image in operation 1190 . That is, when the amount of motion is not large enough, the electronic device 101 may generate the trimap using photodiode data rather than the amount of motion. For example, the electronic device 101 may generate a trimap based on color information for each pixel. Alternatively, when the electronic device 101 includes a phase pixel such as a 2PD system, the electronic device 101 may generate a trimap based on phase information obtained from the phase pixel. The electronic device 101 may generate a trimap by using the phase information and the color information.

움직임의 크기가 임계치를 초과한 경우에는, 1195 동작에서 전자 장치(101)는 대상 이미지의 포토 다이오드 데이터를 이용하여 움직임 맵(motion map)을 생성할 수 있다. 1197 동작에서, 전자 장치(101)는 움직임 맵을 이용하여 트라이 맵을 생성할 수 있다. 예를 들어, 전자 장치(101)는 움직임 맵의 오브젝트 각각의 모션량에 기초하여 배경 영역, 포어 그라운드 영역(예를 들어, 인물 영역) 및 미확정 영역을 가지는 트라이 맵을 생성할 수 있다. 전자 장치(101)는 움직임 맵의 추적 대상 오브젝트의 모션량에 대응하는 오브젝트를 하나로 결합하여 포어 그라운드 영역으로 분류할 수 있다. 또 다른 실시예에서, 전자 장치(101)는 움직임 맵에 기초하여 추가적으로 포토 다이오드 데이터를 이용하여 트라이 맵을 생성할 수도 있다. 전자 장치(101)는 생성된 트라이 맵에 기초하여 추가적으로 컬러 정보 및 위상 정보 중 적어도 하나에 기초하여 오브젝트 분리 및 분리 결과를 이용한 이미지 효과 적용을 수행할 수 있다. 한편, 얼굴 영역이 검출되지 않으면, 전자 장치(101)는 동작을 종료하거나 또는, 1199 동작에서 다른 이미지 효과를 적용할 수 있다.When the magnitude of the motion exceeds the threshold, in operation 1195 , the electronic device 101 may generate a motion map using photodiode data of the target image. In operation 1197, the electronic device 101 may generate a tri-map by using the motion map. For example, the electronic device 101 may generate a trimap having a background area, a foreground area (eg, a person area), and an unconfirmed area based on the amount of motion of each object of the motion map. The electronic device 101 may classify an object corresponding to the amount of motion of the tracking target object of the motion map into one and classify the object as a foreground area. In another embodiment, the electronic device 101 may additionally generate a tri-map using photodiode data based on the motion map. The electronic device 101 may additionally perform object separation based on at least one of color information and phase information based on the generated trimap and applying an image effect using the object separation result. Meanwhile, if the face region is not detected, the electronic device 101 may end the operation or may apply another image effect in operation 1199 .

도 12는 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.12 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

1210 동작에서, 전자 장치(101)는 대상 이미지(1211)를 결정하고, 대상 이미지(1211)의 컬러 정보, 모션량 및 위상 정보를 획득할 수 있다. 도시되지는 않았지만, 전자 장치(101)는 비교 이미지를 선택하여, 대상 이미지와 비교 이미지 사이의 비교 결과에 따라 대상 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 획득할 수 있다. 아울러, 전자 장치(101)는 대상 이미지(1211)의 컬러 정보를 획득할 수 있다. 전자 장치(101)가 2PD 시스템과 같은 위상 픽셀을 포함한 경우에는, 위상 정보를 획득할 수도 있다.In operation 1210 , the electronic device 101 may determine the target image 1211 and obtain color information, motion amount, and phase information of the target image 1211 . Although not shown, the electronic device 101 may select a comparison image and acquire a motion amount of each of at least one object in the target image according to a comparison result between the target image and the comparison image. In addition, the electronic device 101 may acquire color information of the target image 1211 . When the electronic device 101 includes a phase pixel such as a 2PD system, phase information may be acquired.

1220 동작에서, 전자 장치(101)는 대상 이미지(1211)내의 얼굴 영역(1221)을 검출할 수 있다. 전자 장치(101)는 얼굴 영역(1221)을 추적 대상 오브젝트로 선택하여 검출할 수 있다. 전자 장치(101)는 얼굴 검출 알고리즘을 미리 저장할 수 있으며, 이를 이용하여 얼굴 영역(1221)을 검출할 수 있다. 전자 장치(101)는 대상 이미지(1211)의 컬러 정보에 기초하여 얼굴 영역(1221)을 검출할 수 있다.In operation 1220 , the electronic device 101 detects the face region 1221 in the target image 1211 . The electronic device 101 may detect the face region 1221 by selecting it as a tracking target object. The electronic device 101 may store a face detection algorithm in advance, and may detect the face region 1221 using this. The electronic device 101 may detect the face region 1221 based on color information of the target image 1211 .

1230 동작에서, 전자 장치(101)는 인물 영역(1232)의 컨투어(1231)를 검출할 수 있다. 전자 장치(101)는 얼굴 영역(1221)의 모션량을 획득할 수 있다. 전자 장치(101)는 얼굴 영역(1221)의 모션량에 기초하여 인물 영역(1232)을 검출할 수 있으며, 이에 따라 컨투어(1231)를 검출할 수 있다. 상술한 바와 같이, 전자 장치(101)는 얼굴 영역(1221)의 모션량과 실질적으로 동일하거나 또는 임계치 미만의 차이를 가지는 모션량을 가지는 영역을 얼굴 영역(1221)과 함께 인물 영역(1232)으로 분류할 수 있다. 전자 장치(101)는 인물 영역(1232)의 경계를 컨투어(1231)로 검출할 수 있으며, 또는 경계를 포함하는 영역을 컨투어(1231)로 결정할 수 있다. 한편, 본 발명의 다양한 실시예에서, 전자 장치(101)는 모션량에 추가적으로 컬러 정보 및 위상 정보 중 적어도 하나를 더 이용하여 인물 영역(1232)의 컨투어(1231)를 검출할 수도 있다. 1240 동작에서, 전자 장치(101)는 검출된 컨투어(1231)를 미결정 영역(1243)으로 결정할 수 있다. 전자 장치(101)는 배경 영역(1241) 및 포어 그라운드 영역(1242)을 결정할 수 있다.In operation 1230 , the electronic device 101 detects the contour 1231 of the person area 1232 . The electronic device 101 may acquire the amount of motion of the face region 1221 . The electronic device 101 may detect the person area 1232 based on the amount of motion of the face area 1221 , and accordingly, the contour 1231 may be detected. As described above, the electronic device 101 converts a region having a motion amount substantially equal to or less than a threshold difference to the motion amount of the face region 1221 as a person region 1232 together with the face region 1221 . can be classified. The electronic device 101 may detect the boundary of the person area 1232 as the contour 1231 , or determine the area including the boundary as the contour 1231 . Meanwhile, in various embodiments of the present disclosure, the electronic device 101 may detect the contour 1231 of the person area 1232 by further using at least one of color information and phase information in addition to the amount of motion. In operation 1240 , the electronic device 101 may determine the detected contour 1231 as the undecided area 1243 . The electronic device 101 may determine a background area 1241 and a foreground area 1242 .

1250 동작에서, 전자 장치(101)는 얼굴 대응 형상(1252) 및 바디 대응 형상(1253)을 마킹하여 인물 영역으로 분류할 수 있다. 전자 장치(101)는 배경 영역(1251)에 대하여서도 마킹을 수행할 수도 있다. 1260 동작에서, 전자 장치(101)는 오브젝트 분리를 수행하고, 분리 결과를 이용하여 이미지 효과를 적용할 수 있다. 전자 장치(101)는 미결정 영역(1243)에 대하여서 세그먼테이션을 수행할 수 있으며, 이에 따라 미결정 영역(1243)의 픽셀을 인물 영역 또는 배경 영역 중 어느 하나로 재분류할 수 있다. 전자 장치(101)는 미결정 영역(1243)에 대하여 컬러 정보 및 위상 정보 중 적어도 하나에 기초하여 오브젝트 분리를 수행할 수 있다. 미결정 영역(1243)의 픽셀을 인물 영역 또는 배경 영역 중 어느 하나로 재분류함에 따라서, 전자 장치(101)는 인물 영역 및 배경 영역만으로 분리된 이미지를 출력할 수 있다.In operation 1250 , the electronic device 101 may mark the face-corresponding shape 1252 and the body-corresponding shape 1253 to classify them as a person area. The electronic device 101 may also perform marking on the background area 1251 . In operation 1260 , the electronic device 101 may separate the object and apply an image effect using the separation result. The electronic device 101 may perform segmentation on the undetermined area 1243 , and thus may reclassify the pixels of the undetermined area 1243 as either a person area or a background area. The electronic device 101 may perform object separation with respect to the undetermined area 1243 based on at least one of color information and phase information. As the pixels of the undecided area 1243 are reclassified into either the person area or the background area, the electronic device 101 may output an image separated into only the person area and the background area.

도 13은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.13 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

1310 동작에서, 전자 장치(101)는 대상 이미지(1301) 및 비교 이미지(1302)를 이용하여 움직임 맵을 생성할 수 있다. 전자 장치(101)는 대상 이미지(1301)내의 추적 대상 오브젝트를 검출하고, 비교 이미지(1302)내의 추적 대상 오브젝트를 검출할 수 있다. 추적 대상 오브젝트는 동일한 피사체에 대한 오브젝트일 수 있다. 전자 장치(101)는 적어도 하나의 추적 대상 오브젝트에 대한 모션량을 검출함에 따라서, 움직임 맵을 생성할 수 있다. 본 발명의 다양한 실시예에서, 움직임 맵은 움직임 크기 및 움직임 방향 중 적어도 하나를 구분하도록 컬러 표시될 수도 있다. 전자 장치(101)는 움직임 맵에 기초하여 트라이 맵(1304)를 생성할 수 있다. 아울러, 전자 장치(101)는 움직임 맵에 기초하여 초기 포어 그라운드 영역 및 초기 배경 영역을 결정할 수 있다. 전자 장치(101)는 움직임 맵에 추가적으로 컬러 정보 및 위상 정보 중 적어도 하나를 더 이용하여 초기 포어 그라운드 영역 및 초기 배경 영역을 결정할 수 있다. 아울러, 전자 장치(101)는 초기 포어 그라운드 영역 및 초기 배경 영역으로 분류되지 않는 나머지 영역인 미확정 영역을 결정하여 트라이 맵(1304)을 생성할 수도 있다.In operation 1310 , the electronic device 101 may generate a motion map using the target image 1301 and the comparison image 1302 . The electronic device 101 may detect the tracking target object in the target image 1301 and detect the tracking target object in the comparison image 1302 . The tracking target object may be an object of the same subject. The electronic device 101 may generate a motion map by detecting the amount of motion for at least one tracking target object. In various embodiments of the present disclosure, the motion map may be displayed in color to distinguish at least one of a motion size and a motion direction. The electronic device 101 may generate the tri-map 1304 based on the motion map. In addition, the electronic device 101 may determine an initial foreground area and an initial background area based on the motion map. The electronic device 101 may determine an initial foreground area and an initial background area by further using at least one of color information and phase information in addition to the motion map. In addition, the electronic device 101 may generate the trimap 1304 by determining an unconfirmed area that is the remaining area not classified into the initial foreground area and the initial background area.

1320 동작에서, 전자 장치(101)는 움직임 초기 포어 그라운드 영역 및 초기 배경 영역에 대하여 GMM(Gaussian Mixture Model)을 생성할 수 있다. 픽셀이 주어진 모델에 속할 확률은 수학식 1과 같을 수 있다.In operation 1320 , the electronic device 101 may generate a Gaussian Mixture Model (GMM) with respect to a foreground area and an initial background area of an initial motion. A probability that a pixel belongs to a given model may be equal to Equation (1).

Figure 112015092195972-pat00001
Figure 112015092195972-pat00001

수학식 1에서 x는 검출할 얼굴과 관련된 변수값이며, θ는 전경/후경을 표현하기 위한 수학적 모델이다. 한편, i는 i번째 가우시안을 나타내기 위한 인덱스이며, wi는 가중치일 수 있으며, μi는 평균, σi는 표준편차를 나타낼 수 있다.In Equation 1, x is a variable value related to a face to be detected, and θ is a mathematical model for expressing the foreground/backview. Meanwhile, i is an index for representing the i-th Gaussian, wi may be a weight, μi may represent an average, and σi may represent a standard deviation.

전자 장치(101)는 배경 영역 및 포어 그라운드 영역 각각에 대하여 GMM을 생성할 수 있으며, 1330 동작에서 각각의 GMM으로부터 계산된 각각의 가중치에 기초하여 세그먼테이션을 수행할 수 있다. 전자 장치(101)는 컬러 정보 뿐만 아니라 위상 정보(1303)에 대하여 GMM을 생성할 수 있으며, 이를 이용하여 세그먼테이션을 수행할 수도 있다. 본 발명의 다양한 실시예에서, 전자 장치(101)는 에너지 최소화 프레임워크(energy segmentation framework) 세그먼테이션을 수행할 수 있으며, 예를 들어 그래프 컷(graph cut)을 수행할 수 있다. 에너지 최소화 프레임 워크는 포어 그라운드 영역 및 배경 영역으로 픽셀을 분류할 수 있으며, 트라이 맵으로부터의 분류된 픽셀들이 데이터 성분으로 동작할 수 있다. 한편, 픽셀 사이의 에지의 가중치는 픽셀 유사도에 대응될 수 있다. 픽셀 컬러의 상대적으로 큰 차이에 대하여, 에지는 상대적으로 낮은 가중치를 가질 수 있으며, 이는 최소화를 위한 완만함(smoothness) 성분으로 이용될 수 있다. 미확정 픽셀에 대하여, 전자 장치(101)는 포어 그라운드 및 배경 영역인 픽셀의 확률에 의족적인 소스 및 싱크 노드로의 연결되는 픽셀 에지를 계산할 수 있다. 최소화 함수는 이미지를 분리적인 소스 노드 및 싱크 노드로 코스트 함수를 최소화할 수 있다. 코스트 함수는 커팅되는 에지의 가중치의 총합일 수 있다. 커팅 이후에, 소스 노드로 연결되는 픽셀은 포어 그라운드로 분류될 수 있으며, 싱크 노드로 연결되는 픽셀은 배경으로 분류될 수 있다.The electronic device 101 may generate a GMM for each of the background region and the foreground region, and perform segmentation based on each weight calculated from each GMM in operation 1330 . The electronic device 101 may generate a GMM with respect to the phase information 1303 as well as the color information, and may perform segmentation using the GMM. In various embodiments of the present disclosure, the electronic device 101 may perform segmentation using an energy segmentation framework, for example, may perform graph cut. The energy minimization framework may classify pixels into a foreground area and a background area, and the classified pixels from the trimap may act as data components. Meanwhile, the weight of the edge between pixels may correspond to the pixel similarity. For a relatively large difference in pixel color, an edge may have a relatively low weight, which may be used as a smoothness component for minimization. For an unconfirmed pixel, the electronic device 101 may calculate a pixel edge connected to a source and a sink node that is dependent on the probability of a pixel that is a foreground and background area. The minimization function can minimize the cost function of the image to separate source and sink nodes. The cost function may be the sum of weights of edges to be cut. After cutting, a pixel connected to a source node may be classified as a foreground, and a pixel connected to a sink node may be classified as a background.

1340 동작에서, 전자 장치(101)는 세그먼테이션된 배경에 대한 추가 효과를 적용할 수 있다. 예를 들어, 전자 장치(101)는 배경에 대하여 블러 효과를 적용할 수 있다. 이에 따라, 전자 장치(101)는 도 14와 같은 배경이 블러 처리된 이미지를 출력할 수 있다.In operation 1340 , the electronic device 101 may apply an additional effect to the segmented background. For example, the electronic device 101 may apply a blur effect to the background. Accordingly, the electronic device 101 may output an image in which the background is blurred as shown in FIG. 14 .

도 15는 본 발명의 다양한 실시예에 의한 전자 장치의 제어 방법의 흐름도를 도시한다.15 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

1501 동작에서, 전자 장치(101)는 프리뷰 이미지를 획득할 수 있다. 예를 들어, 전자 장치(101)는 셀프 카메라 모드에서 사용자를 촬영할 수 있다. 전자 장치(101)는 복수 개의 프리뷰 이미지를 획득할 수 있으며, 복수 개의 프리뷰 이미지는 상이한 촬영 위치에서 사용자를 촬영한 이미지일 수 있다.In operation 1501 , the electronic device 101 may acquire a preview image. For example, the electronic device 101 may photograph a user in a self-camera mode. The electronic device 101 may acquire a plurality of preview images, and the plurality of preview images may be images obtained by photographing a user at different photographing positions.

1503 동작에서, 전자 장치(101)는 대상 이미지로부터 얼굴 영역을 검출할 수 있다. 전자 장치(101)는 기저장된 얼굴 인식 알고리즘에 기초하여 대상 이미지로부터 얼굴 영역을 검출할 수 있다.In operation 1503 , the electronic device 101 may detect a face region from the target image. The electronic device 101 may detect a face region from the target image based on a pre-stored face recognition algorithm.

1505 동작에서, 전자 장치(101)는 대상 이미지에서 얼굴 영역이 존재하는지 여부를 판단할 수 있다. 대상 이미지에 얼굴 영역이 존재하지 않는 것으로 판단되면, 전자 장치(101)는 다른 프리뷰 이미지를 촬영할 수 있다. 대상 이미지에서 얼굴 영역이 존재하는 것으로 판단되면, 1507 동작에서 전자 장치(101)는 얼굴 영역을 표시할 수 있다. 예를 들어, 전자 장치(101)는 얼굴 영역을 인디케이팅할 수 있는 추가적인 오브젝트를 프리뷰 이미지 상에 표시할 수 있다. 아울러, 1509 동작에서, 전자 장치(101)는 얼굴 영역에 대한 특징점을 추적할 수 있다. 1511 동작에서, 전자 장치(101)는 특징점 위치를 저장할 수 있다.In operation 1505 , the electronic device 101 may determine whether a face region exists in the target image. If it is determined that the face region does not exist in the target image, the electronic device 101 may capture another preview image. If it is determined that the face region exists in the target image, the electronic device 101 may display the face region in operation 1507 . For example, the electronic device 101 may display an additional object capable of indicating a face region on the preview image. In addition, in operation 1509 , the electronic device 101 may track a feature point with respect to the face region. In operation 1511 , the electronic device 101 may store the feature point location.

1513 동작에서 전자 장치는 획득된 프리뷰 이미지의 개수(N)가 1인 경우에는, 1515 동작에서 전자 장치(101)는 프리뷰 이미지를 제 1 이미지로 캡쳐하여 저장할 수 있다. 한편, 획득된 프리뷰 이미지의 개수(N)가 1을 초과하면, 1517 동작에서 전자 장치(101)는 특징점 추적 결과에 기초하여 특징점의 모션량, 즉 얼굴 영역의 모션량을 획득할 수 있다.In operation 1513 , when the number N of the acquired preview images is 1, in operation 1515 , the electronic device 101 may capture and store the preview image as a first image. Meanwhile, when the number N of the acquired preview images exceeds 1, in operation 1517 , the electronic device 101 may acquire the motion amount of the key point, that is, the motion amount of the face region, based on the key point tracking result.

1519 동작에서, 전자 장치(101)는 움직임의 크기가 임계치를 초과하는지 여부를 판단할 수 있다. 움직임의 크기가 임계치 이하인 경우에는, 전자 장치(101)는 다른 프리뷰 이미지를 획득할 수 있다. 움직임의 크기가 임계치를 초과하는 경우에는, 1521 동작에서 전자 장치(101)는 제 2 이미지를 캡쳐하여 저장할 수 있다. 전자 장치(101)는 모션량을 함께 저장할 수도 있다. 또는, 1523 동작에서, 전자 장치(101)는 복수 이미지 획득 완료의 유저 인터페이스(user interface:UI)를 표시할 수 있다. 1525 동작에서, 전자 장치(101)는 제 1 이미지 및 제 2 이미지를 이용하여 오브젝트 분리를 수행할 수 있다. 전자 장치(101)는 모션량에 기초하여 제 1 이미지 또는 제 2 이미지에 대하여 오브젝트 분리를 수행할 수 있다.In operation 1519, the electronic device 101 may determine whether the magnitude of the movement exceeds a threshold. When the magnitude of the movement is equal to or less than the threshold, the electronic device 101 may acquire another preview image. When the magnitude of the movement exceeds the threshold, the electronic device 101 may capture and store the second image in operation 1521 . The electronic device 101 may also store the motion amount. Alternatively, in operation 1523 , the electronic device 101 may display a user interface (UI) of completion of obtaining a plurality of images. In operation 1525 , the electronic device 101 may perform object separation using the first image and the second image. The electronic device 101 may perform object separation on the first image or the second image based on the amount of motion.

도 16은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.16 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

1601 동작에서, 전자 장치(101)는 복수 개의 이미지를 캡쳐할 수 있다. 전자 장치(101)는 상이한 촬영한 위치에서 복수 개의 이미지를 캡쳐하여 저장할 수 있다. 1603 동작에서, 전자 장치(101)는 복수 개의 이미지 중 하나의 이미지에서 얼굴 영역을 검출할 수 있다. 1605 동작에서 얼굴 영역이 존재하는 것으로 판단되면, 1607 동작에서 전자 장치(101)는 대상 이미지로 선택할 수 있다. 1609 동작에서, 전자 장치(101)는 이미지 사이의 모션량을 검출할 수 있다. 1611 동작에서, 전자 장치(101)는 최적의 움직임 맵을 획득할 수 있다. 움직임 맵은 움직임 크기 및 움직임 방향 중 적어도 하나를 포함할 수 있으며, 움직임 맵의 품질의 판단 기준은 미리 설정될 수 있다. 1613 동작에서, 전자 장치(101)는 움직임 맵의 품질이 기지정된 값을 만족하는지 여부를 판단할 수 있다. 움직임 맵의 품질이 기지정된 값을 만족하는 것으로 판단되면, 전자 장치(101)는 움직임 맵의 모션량에 기초하여 대상 이미지에 대하여 오브젝트 분리를 수행할 수 있다.In operation 1601 , the electronic device 101 may capture a plurality of images. The electronic device 101 may capture and store a plurality of images at different photographed locations. In operation 1603 , the electronic device 101 detects a face region from one image among a plurality of images. If it is determined that the face region exists in operation 1605 , the electronic device 101 may select it as a target image in operation 1607 . In operation 1609 , the electronic device 101 may detect an amount of motion between images. In operation 1611 , the electronic device 101 may obtain an optimal motion map. The motion map may include at least one of a motion size and a motion direction, and a criterion for determining the quality of the motion map may be preset. In operation 1613 , the electronic device 101 may determine whether the quality of the motion map satisfies a predetermined value. When it is determined that the quality of the motion map satisfies the predetermined value, the electronic device 101 may perform object separation on the target image based on the amount of motion of the motion map.

도 17은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.17 is a flowchart illustrating a method for controlling an electronic device according to various embodiments of the present disclosure.

1701, 1703 동작과 1715 내지 1719 동작에 대하여서는 도 16의 1601, 1603 동작과 1609 내지 1613 동작에서 상세하게 설명하였기 때문에 여기에서의 더 이상의 설명은 생략하도록 한다.Since operations 1701 and 1703 and operations 1715 to 1719 have been described in detail in operations 1601 and 1603 and operations 1609 to 1613 of FIG. 16 , further descriptions thereof will be omitted.

1705 동작에서 얼굴 영역이 존재하는 것으로 판단되면, 1707 동작, 1709 동작, 1711 동작에서 전자 장치(101)는 이미지의 얼굴 영역이 웃는 형태인지, 눈이 깜빡이지 않는지, 블러링된 이미지가 아닌지 여부를 판단할 수 있다. 이미지의 얼굴 영역이 웃는 형태이며, 눈이 깜빡이지 않으며, 블러링된 이미지가 아닌 것으로 판단되면, 전자 장치(101)는 해당 이미지를 대상 이미지로 선택할 수 있다.If it is determined in operation 1705 that the face region exists, in operations 1707 , 1709 , and 1711 , the electronic device 101 determines whether the face region of the image has a smiling shape, does not blink, or is not a blurred image. can judge When it is determined that the face region of the image has a smiling shape, eyes do not blink, and it is not a blurred image, the electronic device 101 may select the corresponding image as the target image.

도 18은 본 발명의 다양한 실시예에 따른 전자 장치의 제어 방법의 흐름도를 도시한다.18 is a flowchart illustrating a method of controlling an electronic device according to various embodiments of the present disclosure.

1810 동작에서, 전자 장치(101)는 복수 개의 이미지를 획득할 수 있다. 여기에서, 복수 개의 이미지는 상이한 촬영 위치에서 촬영한 이미지들일 수 있다. 상술한 바와 같이, 전자 장치(101)는 손떨림에 의한 위치 변경 또는 사용자가 의도한 전자 장치(101)의 위치 변경 등의 다양한 위치 변경에 기초하여 촬영 위치가 상이한 복수 개의 이미지를 획득할 수 있다.In operation 1810, the electronic device 101 may acquire a plurality of images. Here, the plurality of images may be images captured at different photographing locations. As described above, the electronic device 101 may acquire a plurality of images having different photographing positions based on various location changes, such as a location change due to hand shake or a location change of the electronic device 101 intended by a user.

1820 동작에서, 전자 장치(101)는 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 판단할 수 있다. 상술한 바와 같이, 전자 장치(101)는 복수 개의 이미지를 비교하여, 이미지 내의 적어도 하나의 오브젝트 각각의 모션량을 판단할 수 있다.In operation 1820, the electronic device 101 may determine the amount of motion of each of the at least one object in the image. As described above, the electronic device 101 may compare a plurality of images to determine the amount of motion of each of at least one object in the image.

1830 동작에서, 전자 장치(101)는 적어도 하나의 오브젝트 각각의 모션량에 기초하여 오브젝트별 깊이 정보를 판단할 수 있다. 상술한 바와 같이, 피사체까지의 거리가 상대적으로 작은 경우에는 촬영 위치의 변경에 따라 이미지 내에서의 오브젝트의 움직임이 상대적으로 클 수 있으며, 피사체까지의 거리가 상대적으로 큰 경우에는 촬영 위치가 변경되더라도 이미지 내에서의 오브젝트의 움직임이 상대적으로 작을 수 있다. 이에 따라, 전자 장치(101)는 상대적으로 작은 모션량을 가지는 오브젝트에는 상대적으로 큰 깊이 값을 설정할 수 있으며, 상대적으로 크 모션량을 가지는 오브젝트에는 상대적으로 작은 깊이 값을 설정할 수 있다.In operation 1830, the electronic device 101 may determine depth information for each object based on the amount of motion of each of the at least one object. As described above, when the distance to the subject is relatively small, the movement of the object in the image may be relatively large according to the change of the shooting position, and when the distance to the subject is relatively large, even if the shooting position is changed The movement of the object in the image may be relatively small. Accordingly, the electronic device 101 may set a relatively large depth value to an object having a relatively small amount of motion, and may set a relatively small depth value to an object having a relatively large amount of motion.

1840 동작에서, 전자 장치(101)는 오브젝트 각각의 깊이 값에 기초하여 깊이 맵을 생성할 수 있다. 깊이 맵은 오브젝트 각각의 깊이 값을 포함하는 맵일 수 있다. 전자 장치(101)는 깊이 맵에 기초하여 3차원 이미지를 재구성하여 표시할 수도 있다.In operation 1840, the electronic device 101 may generate a depth map based on a depth value of each object. The depth map may be a map including a depth value of each object. The electronic device 101 may reconstruct and display the 3D image based on the depth map.

도 19는 본 발명의 다양한 실시예에 의한 전자 장치의 제어 방법의 흐름도를 도시한다.19 is a flowchart illustrating a method for controlling an electronic device according to various embodiments of the present disclosure.

1910 동작에서, 전자 장치(101)는 하나의 오브젝트를 포함하는 장면을 촬영하여 획득할 수 있다. 전자 장치(101)는 하나의 오브젝트에 대한 제 1 이미지 및 제 2 이미지를 획득할 수 있다.In operation 1910 , the electronic device 101 may capture and obtain a scene including one object. The electronic device 101 may acquire a first image and a second image of one object.

1920 동작에서, 전자 장치(101)는 제 1 이미지 및 제 2 이미지를 비교함으로써 상기 오브젝트에 대응하는 모션량을 확인할 수 있다. 전자 장치(101)는 확인된 모션량이 지정된 값을 만족하는지 확인할 수 있다.In operation 1920, the electronic device 101 may determine the amount of motion corresponding to the object by comparing the first image and the second image. The electronic device 101 may check whether the checked motion amount satisfies a specified value.

1930 동작에서, 전자 장치(101)는 확인 결과에 적어도 기반하여 상기 오브젝트에 대응하는 이미지 영역에 지정된 효과를 적용할 수 있다. 예를 들어, 전자 장치(101)는 모션량에 기반하여 이미지 효과를 적용할 수 있다. 더욱 상세하게, 모션량이 기지정된 값을 만족하면, 전자 장치(101)는 오브젝트 분리를 수행할 수 있으며, 분리 결과를 이용하여 블러 처리 등의 이미지 처리를 수행할 수 있다.In operation 1930, the electronic device 101 may apply a specified effect to the image area corresponding to the object based at least on the result of the check. For example, the electronic device 101 may apply an image effect based on the amount of motion. In more detail, when the amount of motion satisfies a predetermined value, the electronic device 101 may perform object separation, and may perform image processing such as blur processing using the separation result.

상술한 바에 따라서, 하나의 오브젝트를 포함하는 이미지 분석을 통하여 이미지 처리가 수행될 수 있다.As described above, image processing may be performed through image analysis including one object.

도 20은 본 발명의 다양한 실시예에 의한 전자 장치의 제어 방법의 흐름도를 도시한다.20 is a flowchart illustrating a method for controlling an electronic device according to various embodiments of the present disclosure.

2010 동작에서, 전자 장치(101)는 이미지에서 얼굴을 검출할 수 있다. 2020 동작에서, 전자 장치(101)는 얼굴이 이미지에서 검출되는지를 판단할 수 있다. 얼굴이 검출되면, 2030 동작에서 전자 장치(101)는 상술한 과정을 통하여 얼굴을 배경으로부터 분리하는 배경 분리 촬영 모드로 진입할 수 있다. 얼굴이 검출되지 않으면, 2040 동작에서 전자 장치(101)는 일반 촬영 모드로 진입할 수 있다.In operation 2010, the electronic device 101 may detect a face from the image. In operation 2020, the electronic device 101 may determine whether a face is detected in the image. When a face is detected, in operation 2030 , the electronic device 101 may enter a background separation photographing mode in which the face is separated from the background through the above-described process. If no face is detected, the electronic device 101 may enter a general photographing mode in operation 2040 .

얼굴 검출에 성공한 경우에도, 검출된 얼굴의 개수가 일정 수치 이상(예: 5개) 이거나, 혹은 (복수의) 얼굴(들)이 차지하는 면적이 전체 영상의 일정 비율 이상인 경우, 전자 장치(101)는 해당 장면에서는 배경 분리 촬영 모드를 사용하지 않을 수도 있으며, 이에 따라 연산량이 감소될 수 있다.Even when face detection is successful, if the number of detected faces is equal to or greater than a certain number (eg, 5) or the area occupied by (plural) face(s) is equal to or greater than a certain percentage of the entire image, the electronic device 101 may not use the background separation shooting mode in the corresponding scene, and thus the amount of computation may be reduced.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 제 1 오브젝트와 제 2 오브젝트를 포함하는 상기 장면에 대하여 제 1 이미지와 제 2 이미지를 획득하고, 상기 제 1 이미지와 상기 제 2 이미지를 이용하여 상기 제 1 오브젝트에 대응하는 제 1 모션량 및 상기 제 2 오브젝트에 대응하는 제 2 모션량을 확인하고, 상기 제 1 모션량과 상기 제 2 모션량에 적어도 기반하여 상기 제 1 오브젝트에 대응하는 제 1 이미지 영역과 상기 제 2 오브젝트에 대응하는 제 2 이미지 영역에 서로 다른 효과를 적용할 수 있다.In various embodiments of the present disclosure, a method for controlling an electronic device may include acquiring a first image and a second image with respect to the scene including a first object and a second object, and using the first image and the second image a first motion amount corresponding to the first object and a second motion amount corresponding to the second object using Different effects may be applied to the first image region and the second image region corresponding to the second object.

본 발명의 다양한 실시예에서, 상기 제 1 모션량은, 상기 제 1 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 1 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응하며, 상기 제 2 모션량은, 상기 제 2 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 2 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응할 수 있다.In various embodiments of the present disclosure, the first amount of motion corresponds to a difference between a position of the first object in the first image and a position of the first object in the second image, wherein the second The amount of motion may correspond to a difference between a position of the second object in the first image and a position of the second object in the second image.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 장면에 대한 복수개의 프리뷰 이미지 중 모션량의 차이가 지정된 값 이상인 한 쌍의 이미지를 상기 제 1 이미지 및 제 2 이미지로 선택할 수 있다.In various embodiments of the present disclosure, the method of controlling the electronic device may select a pair of images having a difference in motion amount equal to or greater than a specified value among a plurality of preview images for the scene as the first image and the second image.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 제 1 이미지 및 상기 제 2 이미지를 비교하고, 비교 결과에 기초하여 상기 제 1 모션량 또는 상기 제 2 모션량 중 적어도 하나를 획득할 수 있다.In various embodiments of the present disclosure, the control method of the electronic device includes comparing the first image and the second image, and obtaining at least one of the first amount of motion or the second amount of motion based on a comparison result. can

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 제 1 이미지 및 상기 제 2 이미지를 비교하고, 상기 제 1 모션량과 상기 제 2 모션량의 차이가 지정된 값을 만족하는지 결정하고, 상기 결정에 기반하여, 상기 제 1 이미지 영역과 상기 제 2 이미지 영역을 결정할 수 있다.In various embodiments of the present disclosure, the control method of the electronic device compares the first image and the second image, and determines whether a difference between the first motion amount and the second motion amount satisfies a specified value; Based on the determination, the first image area and the second image area may be determined.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 제 1 모션량 및 상기 제 2 모션량에 기초하여, 상기 제 1 이미지에서 상기 제 1 오브젝트를 상기 제 2 오브젝트와 분리할 수 있다. 상기 제 1 이미지 영역은 상기 장면에 대한 제 1 깊이에 대응하고, 상기 제 2 이미지 영역은 상기 장면에 대한 제 2 깊이에 대응할 수 있다.In various embodiments of the present disclosure, the method of controlling the electronic device may separate the first object from the second object in the first image based on the first amount of motion and the second amount of motion. The first image area may correspond to a first depth for the scene, and the second image area may correspond to a second depth for the scene.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 제 1 이미지 영역을 지정된 색상 정보에 기반하여 분류하고, 상기 제 1 모션량과, 상기 제 1 이미지 영역 주변의 분류 대상의 영역의 모션량의 차이를 결정하고, 상기 차이가 지정된 값을 만족하면, 상기 분류 대상의 영역을 상기 대응하는 제 1 이미지 영역의 일부로 결정하고, 상기 차이가 상기 지정된 값을 만족하지 않으면, 상기 분류 대상의 영역을 상기 제 1 이미지 영역에 속하지 않는 것으로 결정할 수 있다.In various embodiments of the present disclosure, the control method of the electronic device classifies the first image region based on specified color information, the first motion amount, and a motion of a region to be classified around the first image region determine the difference in quantity, and if the difference satisfies the specified value, determine the region of the classification target as a part of the corresponding first image region; if the difference does not satisfy the specified value, the region of the classification target may be determined not to belong to the first image area.

본 발명의 다양한 실시예에서, 상기 제 1 오브젝트는 인물을 포함하고 상기 제 2 오브젝트는 배경을 포함하고, 전자 장치의 제어 방법은, 상기 배경을 흐리게(blur) 처리하고, 상기 인물 및 상기 블러 처리된 배경을 포함한 이미지를 상기 장면에 대응하는 이미지로 출력할 수 있다. 상기 제 1 이미지는 상기 전자 장치가 제 1 위치에서 촬영하여 획득되고, 상기 제 2 이미지는 상기 전자 장치가 제 2 위치에서 촬영하여 획득될 수 있다. 상기 제 1 모션량 및 상기 제 2 모션량은, 상기 제 1 위치 및 상기 제 2 위치에서의 위치 차이에 의하여 발생될 수 있다.In various embodiments of the present disclosure, the first object includes a person and the second object includes a background, and the control method of the electronic device includes blurring the background, and processing the person and the blurring. An image including the background image may be output as an image corresponding to the scene. The first image may be obtained by photographing the electronic device at a first location, and the second image may be obtained by photographing the electronic device at a second location. The first motion amount and the second motion amount may be generated by a position difference between the first position and the second position.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 제 1 모션량 및 상기 제 2 모션량에 기초하여, 상기 제 1 오브젝트에 제 1 깊이 값을 설정하고 상기 제 2 오브젝트에 제 2 깊이 값을 설정할 수 있다.In various embodiments of the present disclosure, the method of controlling the electronic device includes setting a first depth value in the first object and a second depth in the second object based on the first motion amount and the second motion amount. value can be set.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 장면(scene)에 대한 복수 개의 이미지를 획득하고, 상기 복수 개의 이미지에서 상기 오브젝트에 대응하는 모션 량이 지정된 값을 만족하는지 확인하고, 상기 확인 결과에 적어도 기반하여 상기 오브젝트에 대응하는 이미지 영역에 지정된 효과를 적용할 수 있다. 상기 모션량은, 상기 오브젝트의 상기 복수 개의 이미지 중 제 1 이미지에서의 위치와 상기 오브젝트의 상기 복수 개의 이미지 중 제 2 이미지에서의 위치 사이의 차이에 대응할 수 있다.In various embodiments of the present disclosure, the method of controlling an electronic device includes acquiring a plurality of images for the scene, checking whether a motion amount corresponding to the object in the plurality of images satisfies a specified value, and A specified effect may be applied to the image region corresponding to the object based at least on the result of the check. The amount of motion may correspond to a difference between a position of the object in a first image among the plurality of images and a position of the object in a second image among the plurality of images.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 상기 장면에 대한 복수개의 프리뷰 이미지 중 모션량의 차이가 지정된 값 이상인 한 쌍의 이미지를 상기 제 1 이미지 및 제 2 이미지로 선택할 수 있다. 상기 제 1 이미지 영역은 상기 장면에 대한 제 1 깊이에 대응하고, 상기 제 2 이미지 영역은 상기 장면에 대한 제 2 깊이에 대응할 수 있다.In various embodiments of the present disclosure, the method of controlling the electronic device may select a pair of images having a difference in motion amount equal to or greater than a specified value among a plurality of preview images for the scene as the first image and the second image. The first image area may correspond to a first depth for the scene, and the second image area may correspond to a second depth for the scene.

본 발명의 다양한 실시예에서, 상기 오브젝트는 인물을 포함하고, 전자 장치의 제어 방법은, 상기 인물을 제외한 배경을 흐리게(blur) 처리하고, 상기 인물 및 상기 블러 처리된 배경을 포함한 이미지를 상기 장면에 대응하는 이미지로 출력할 수 있다. 상기 복수 개의 이미지 각각은, 상기 전자 장치가 상이한 위치에서 촬영하여 획득될 수 있다.In various embodiments of the present disclosure, the object includes a person, the control method of the electronic device blurs a background excluding the person, and displays an image including the person and the blurred background into the scene It can be output as an image corresponding to . Each of the plurality of images may be obtained by photographing the electronic device at different locations.

본 발명의 다양한 실시예에서, 전자 장치의 제어 방법은, 제 1 이미지 및 제 2 이미지를 획득하는 동작, 상기 제 1 이미지 및 상기 제 2 이미지를 비교하여, 상기 제 1 이미지의 적어도 하나의 객체 각각의 모션량을 확인하는 동작, 상기 적어도 하나의 객체 각각의 모션량에 기초하여, 상기 적어도 하나의 객체 각각의 깊이 정보를 획득하는 동작 및 상기 획득된 깊이 정보에 기초하여, 상기 제 1 이미지에 대한 깊이 맵을 생성하는 동작을 포함할 수 있다. 상기 제 1 이미지 및 상기 제 2 이미지 각각은, 상기 전자 장치가 상이한 위치에서 촬영하여 획득될 수 있다.In various embodiments of the present disclosure, a method of controlling an electronic device includes obtaining a first image and a second image, comparing the first image and the second image, and each of at least one object of the first image an operation of determining the amount of motion of , an operation of acquiring depth information of each of the at least one object based on the amount of motion of each of the at least one object, and an operation of obtaining the depth information of each of the at least one object based on the acquired depth information for the first image It may include an operation of generating a depth map. Each of the first image and the second image may be obtained by photographing the electronic device at different locations.

상기 전자 장치의 전술한 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성 요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 다양한 실시예에서, 전자 장치는 전술한 구성요소 중 적어도 하나를 포함하여 구성될 수 있으며, 일부 구성요소가 생략되거나 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 또한, 다양한 실시예에 따른 전자 장치의 구성 요소들 중 일부가 결합되어 하나의 개체(entity)로 구성됨으로써, 결합되기 이전의 해당 구성 요소들의 기능을 동일하게 수행할 수 있다.Each of the aforementioned components of the electronic device may be composed of one or more components, and the name of the corresponding component may vary depending on the type of the electronic device. In various embodiments, the electronic device may be configured to include at least one of the above-described components, and some components may be omitted or may further include additional other components. In addition, since some of the components of the electronic device according to various embodiments are combined to form a single entity, the functions of the components prior to being combined may be identically performed.

본 발명의 다양한 실시예에 따르면, 명령들을 저장하고 있는 저장 매체에 있어서, 상기 명령들은 적어도 하나의 프로세서에 의하여 실행될 때에 상기 적어도 하나의 프로세서로 하여금 적어도 하나의 동작을 수행하도록 설정된 것으로서, 상기 적어도 하나의 동작은, 제 1 오브젝트와 제 2 오브젝트를 포함하는 상기 장면에 대하여 제 1 이미지와 제 2 이미지를 획득하는 동작, 상기 제 1 이미지와 상기 제 2 이미지를 이용하여 상기 제 1 오브젝트에 대응하는 제 1 모션량 및 상기 제 2 오브젝트에 대응하는 제 2 모션량을 확인하는 동작 및 상기 제 1 모션량과 상기 제 2 모션량에 적어도 기반하여 상기 제 1 오브젝트에 대응하는 제 1 이미지 영역과 상기 제 2 오브젝트에 대응하는 제 2 이미지 영역에 서로 다른 효과를 적용하는 동작을 포함할 수 있다. According to various embodiments of the present disclosure, in a storage medium storing instructions, the instructions are configured to cause the at least one processor to perform at least one operation when executed by the at least one processor, wherein the at least one An operation of obtaining a first image and a second image with respect to the scene including the first object and the second object, identifying a first motion amount and a second motion amount corresponding to the second object, and a first image area corresponding to the first object and the second motion amount based on at least the first motion amount and the second motion amount It may include an operation of applying different effects to the second image area corresponding to the object.

그리고 본 문서에 개시된 실시예는 개시된, 기술 내용의 설명 및 이해를 위해 제시된 것이며, 본 개시의 범위를 한정하는 것은 아니다. 따라서, 본 개시의 범위는, 본 개시의 기술적 사상에 근거한 모든 변경 또는 다양한 다른 실시예를 포함하는 것으로 해석되어야 한다.In addition, the embodiments disclosed in this document are provided for description and understanding of the disclosed, technical content, and do not limit the scope of the present disclosure. Accordingly, the scope of the present disclosure should be construed to include all modifications or various other embodiments based on the technical spirit of the present disclosure.

Claims (20)

전자 장치에 있어서,
카메라; 및
상기 카메라에 기능적으로 연결된 이미지 처리 회로를 포함하고,
상기 이미지 처리 회로는,
제 1 오브젝트와 제 2 오브젝트를 포함하는 제 1 이미지와 제 2 이미지를 획득하고,
상기 제 1 이미지와 상기 제 2 이미지를 이용하여 상기 제 1 오브젝트에 대응하는 제 1 모션량 및 상기 제 1 모션량과 지정된 값 이상의 차이를 갖는 상기 제 2 오브젝트에 대응하는 제 2 모션량을 확인하고,
상기 제 1 모션량과 상기 제 2 모션량의 확인에 적어도 일부 기반하여 상기 제 1 오브젝트에 대응하는 제 1 이미지 영역에 제 1 효과를 적용하고, 상기 제 2 오브젝트에 대응하는 제 2 이미지 영역에 제 2 효과를 적용하도록 설정되고, 상기 제 1 효과는 상기 제 2 효과와 상이한 전자 장치.
In an electronic device,
camera; and
an image processing circuit operatively coupled to the camera;
The image processing circuit,
Obtaining a first image and a second image including the first object and the second object,
Using the first image and the second image, a first amount of motion corresponding to the first object and a second amount of motion corresponding to the second object having a difference greater than or equal to a specified value from the first amount of motion are identified, and ,
A first effect is applied to a first image area corresponding to the first object based at least in part on the confirmation of the first motion amount and the second motion amount, and a second effect is applied to a second image area corresponding to the second object. an electronic device configured to apply two effects, wherein the first effect is different from the second effect.
제 1 항에 있어서,
상기 제 1 모션량은, 상기 제 1 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 1 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응하며, 상기 제 2 모션량은, 상기 제 2 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 2 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응하는 전자 장치.
The method of claim 1,
wherein the first amount of motion corresponds to a difference between a position of the first object in the first image and a position of the first object in the second image, wherein the second amount of motion includes: an electronic device corresponding to a difference between a position in the first image of and a position in the second image of the second object.
◈청구항 3은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 3 was abandoned when paying the registration fee.◈ 제 1 항에 있어서,
상기 이미지 처리 회로는,
복수개의 프리뷰 이미지 중 모션량의 차이가 지정된 값 이상인 한 쌍의 이미지를 상기 제 1 이미지 및 상기 제 2 이미지로 선택하는 전자 장치.
The method of claim 1,
The image processing circuit,
An electronic device for selecting a pair of images having a difference in motion amount equal to or greater than a specified value among a plurality of preview images as the first image and the second image.
제 1항에 있어서,
상기 이미지 처리 회로는,
상기 제 1 이미지 및 상기 제 2 이미지를 비교하고, 비교 결과에 기초하여 상기 제 1 모션량 또는 상기 제 2 모션량 중 적어도 하나를 획득하는 전자 장치.
The method of claim 1,
The image processing circuit,
The electronic device compares the first image and the second image, and obtains at least one of the first motion amount and the second motion amount based on a comparison result.
제 1 항에 있어서,
상기 이미지 처리 회로는,
상기 제 1 이미지 및 상기 제 2 이미지를 비교하고,
상기 제 1 모션량과 상기 제 2 모션량의 차이가 상기 지정된 값 이상을 만족하는지 결정하고,
상기 결정에 기반하여, 상기 제 1 이미지 영역과 상기 제 2 이미지 영역을 결정하는 전자 장치.
The method of claim 1,
The image processing circuit,
comparing the first image and the second image;
determining whether a difference between the first motion amount and the second motion amount satisfies the specified value or more,
The electronic device determines the first image area and the second image area based on the determination.
제 5 항에 있어서,
상기 이미지 처리 회로는,
상기 제 1 모션량 및 상기 제 2 모션량에 기초하여, 상기 제 1 이미지에서 상기 제 1 오브젝트를 상기 제 2 오브젝트와 분리하는 전자 장치.
6. The method of claim 5,
The image processing circuit,
The electronic device separates the first object from the second object in the first image based on the first amount of motion and the second amount of motion.
제 1 항에 있어서,
상기 제 1 이미지 영역은 제 1 깊이에 대응하고, 상기 제 2 이미지 영역은 제 2 깊이에 대응하는 전자 장치.
The method of claim 1,
The first image area corresponds to a first depth, and the second image area corresponds to a second depth.
제 1 항에 있어서,
상기 이미지 처리 회로는,
상기 제 1 이미지 영역을 지정된 색상 정보에 기반하여 분류하고,
상기 제 1 모션량과 상기 제 1 이미지 영역 주변의 분류 대상의 영역의 모션량의 차이를 결정하고,
상기 차이가 지정된 값 이상을 만족하면, 상기 분류 대상의 영역을 상기 대응하는 제 1 이미지 영역의 일부로 결정하고,
상기 차이가 상기 지정된 값 이상을 만족하지 않으면, 상기 분류 대상의 영역을 상기 제 1 이미지 영역에 속하지 않는 것으로 결정하는 전자 장치.
The method of claim 1,
The image processing circuit,
classifying the first image area based on specified color information;
determining a difference between the first motion amount and a motion amount of a region to be classified around the first image region,
If the difference satisfies a specified value or more, determining the classification target area as a part of the corresponding first image area;
If the difference does not satisfy the specified value or more, the electronic device determines that the region to be classified does not belong to the first image region.
제 1 항에 있어서,
상기 제 1 오브젝트는 인물을 포함하고 상기 제 2 오브젝트는 배경을 포함하고,
상기 이미지 처리 회로는,
상기 배경을 흐리게(blur) 처리하고,
상기 인물 및 상기 흐리게 처리된 배경을 포함한 이미지를 출력하는 전자 장치.
The method of claim 1,
The first object includes a person and the second object includes a background,
The image processing circuit,
blur the background,
An electronic device for outputting an image including the person and the blurred background.
◈청구항 10은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 10 was abandoned when paying the registration fee.◈ 제 1항에 있어서,
상기 제 1 이미지는 제 1 위치에서 촬영하여 획득되고, 상기 제 2 이미지는 제 2 위치에서 촬영하여 획득되는 전자 장치.
The method of claim 1,
The first image is obtained by photographing at a first location, and the second image is obtained by photographing at a second location.
◈청구항 11은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 11 was abandoned when paying the registration fee.◈ 제 10항에 있어서,
상기 제 1 모션량 및 상기 제 2 모션량은, 상기 제 1 위치 및 상기 제 2 위치에서의 위치 차이에 의하여 발생되는 전자 장치.
11. The method of claim 10,
The first motion amount and the second motion amount are generated by a position difference between the first position and the second position.
제 1항에 있어서
상기 이미지 처리 회로는, 상기 제 1 모션량 및 상기 제 2 모션량에 기초하여, 상기 제 1 오브젝트에 제 1 깊이 값을 설정하고, 상기 제 2 오브젝트에 제 2 깊이 값을 설정하는 전자 장치.
2. The method of claim 1
The image processing circuit is configured to set a first depth value to the first object and a second depth value to the second object based on the first motion amount and the second motion amount.
전자 장치를 제어하는 방법에 있어서,
제 1 오브젝트와 제 2 오브젝트를 포함하는 제 1 이미지와 제 2 이미지를 획득하는 동작;
상기 제 1 이미지와 상기 제 2 이미지를 이용하여 상기 제 1 오브젝트에 대응하는 제 1 모션량 및 상기 제 1 모션량과 지정된 값 이상의 차이를 갖는 상기 제 2 오브젝트에 대응하는 제 2 모션량을 확인하는 동작; 및
상기 제 1 모션량과 상기 제 2 모션량의 확인에 적어도 일부 기반하여 상기 제 1 오브젝트에 대응하는 제 1 이미지 영역에 제 1 효과를 적용하고, 상기 제 2 오브젝트에 대응하는 제 2 이미지 영역에 제 2 효과를 적용하는 동작을 포함하고, 상기 제 1 효과는 상기 제 2 효과와 상이한 전자 장치의 제어방법.
A method for controlling an electronic device, comprising:
acquiring a first image and a second image including the first object and the second object;
Using the first image and the second image to identify a first motion amount corresponding to the first object and a second motion amount corresponding to the second object having a difference between the first motion amount and the specified value or more movement; and
A first effect is applied to a first image area corresponding to the first object based at least in part on the confirmation of the first motion amount and the second motion amount, and a second effect is applied to a second image area corresponding to the second object. and applying two effects, wherein the first effect is different from the second effect.
◈청구항 14은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 14 was abandoned when paying the registration fee.◈ 제 13 항에 있어서,
상기 제 1 모션량은, 상기 제 1 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 1 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응하고, 상기 제 2 모션량은, 상기 제 2 오브젝트의 상기 제 1 이미지에서의 위치와 상기 제 2 오브젝트의 상기 제 2 이미지에서의 위치 사이의 차이에 대응하는 전자 장치의 제어방법.
14. The method of claim 13,
the first amount of motion corresponds to a difference between a position of the first object in the first image and a position of the first object in the second image, wherein the second amount of motion is A control method of an electronic device corresponding to a difference between a position in the first image of and a position in the second image of the second object.
◈청구항 15은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 15 was abandoned when paying the registration fee.◈ 제 13 항에 있어서,
복수개의 프리뷰 이미지 중 모션량의 차이가 지정된 값 이상인 한 쌍의 이미지를 상기 제 1 이미지 및 상기 제 2 이미지로 선택하는 동작을 더 포함하는 전자 장치의 제어방법.
14. The method of claim 13,
and selecting, as the first image and the second image, a pair of images having a difference in motion amount equal to or greater than a specified value among a plurality of preview images.
◈청구항 16은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 16 has been abandoned at the time of payment of the registration fee.◈ 제 13 항에 있어서,
상기 제 1 이미지 영역은 제 1 깊이에 대응하고, 상기 제 2 이미지 영역은 제 2 깊이에 대응하는 전자 장치의 제어방법.
14. The method of claim 13,
The first image area corresponds to a first depth, and the second image area corresponds to a second depth.
◈청구항 17은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 17 was abandoned when paying the registration fee.◈ 제 13 항에 있어서,
상기 제 1 오브젝트는 인물을 포함하고, 상기 제 2 오브젝트는 배경을 포함하고,
상기 방법은,
상기 인물을 제외한 배경을 흐리게(blur) 처리하는 동작; 및
상기 인물 및 상기 흐리게 처리된 배경을 포함한 이미지를 출력하는 동작을 더 포함하는 전자 장치의 제어방법.
14. The method of claim 13,
The first object includes a person, the second object includes a background,
The method is
blurring the background except for the person; and
The method of controlling an electronic device further comprising outputting an image including the person and the blurred background.
◈청구항 18은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 18 was abandoned when paying the registration fee.◈ 제 13항에 있어서,
상기 제 1 이미지는 제 1 위치에서 촬영하여 획득되고, 상기 제 2 이미지는 제 2 위치에서 촬영하여 획득되는 전자 장치의 제어 방법.
14. The method of claim 13,
The method of controlling an electronic device, wherein the first image is obtained by photographing it at a first location, and the second image is obtained by photographing it at a second location.
삭제delete 삭제delete
KR1020150133683A 2015-05-13 2015-09-22 Electronic device for processing image and method for controlling thereof KR102457247B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/154,615 US10091436B2 (en) 2015-05-13 2016-05-13 Electronic device for processing image and method for controlling the same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
IN2428/CHE/2015 2015-05-13
IN2428CH2015 2015-05-13

Publications (2)

Publication Number Publication Date
KR20160134428A KR20160134428A (en) 2016-11-23
KR102457247B1 true KR102457247B1 (en) 2022-10-21

Family

ID=57541621

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020150133683A KR102457247B1 (en) 2015-05-13 2015-09-22 Electronic device for processing image and method for controlling thereof

Country Status (1)

Country Link
KR (1) KR102457247B1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102608782B1 (en) * 2016-12-30 2023-12-04 삼성전자주식회사 Device and Method for Compensating Motion Effect of an Electronic Device in an Image
KR102289837B1 (en) * 2017-01-06 2021-08-17 삼성전자주식회사 Method and electronic device for taking a photograph
KR101968152B1 (en) * 2017-10-11 2019-04-11 (주)아이디 Coloring-based image analysis and 3D display system
WO2023146286A1 (en) * 2022-01-28 2023-08-03 삼성전자 주식회사 Electronic device and method for improving quality of image

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100938194B1 (en) * 2008-07-28 2010-01-21 재단법인대구경북과학기술원 Method for detecting an object and apparatus for the same
US20100194856A1 (en) * 2007-07-26 2010-08-05 Koninklijke Philips Electronics N.V. Method and apparatus for depth-related information propagation
KR101337423B1 (en) * 2012-09-18 2013-12-06 전남대학교산학협력단 Method of moving object detection and tracking using 3d depth and motion information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060124176A (en) * 2005-05-31 2006-12-05 주식회사 팬택 Out of focus method and camera implementing the same
KR100693510B1 (en) * 2005-09-06 2007-03-14 엘지전자 주식회사 Object based image effect processing device and method
KR20130060978A (en) * 2011-11-30 2013-06-10 성균관대학교산학협력단 Method of 3-d video quality enhancement by dynamic configuration of depth map based on moving objects and apparatus for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100194856A1 (en) * 2007-07-26 2010-08-05 Koninklijke Philips Electronics N.V. Method and apparatus for depth-related information propagation
KR100938194B1 (en) * 2008-07-28 2010-01-21 재단법인대구경북과학기술원 Method for detecting an object and apparatus for the same
KR101337423B1 (en) * 2012-09-18 2013-12-06 전남대학교산학협력단 Method of moving object detection and tracking using 3d depth and motion information

Also Published As

Publication number Publication date
KR20160134428A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
KR102444085B1 (en) Portable communication apparatus and method for displaying images thereof
CN108664829B (en) Device for providing information about objects in an image
KR102457724B1 (en) Method for performing image process and electronic device thereof
KR102349428B1 (en) Method for processing image and electronic device supporting the same
US10917552B2 (en) Photographing method using external electronic device and electronic device supporting the same
KR102328098B1 (en) Apparatus and method for focusing of carmea device or an electronic device having a camera module
KR102278945B1 (en) Image processing method and electronic device supporting the same
KR102317820B1 (en) Method for processing image and electronic device supporting the same
KR102401659B1 (en) Electronic device and method for processing video according to camera photography environment and scene using the same
KR20160072705A (en) Method for updating biometric feature pattern and the electronic device therefor
KR20160103398A (en) Method and apparatus for measuring the quality of the image
KR20170136920A (en) Method for Outputting Screen and the Electronic Device supporting the same
KR102636243B1 (en) Method for processing image and electronic device thereof
KR102437698B1 (en) Apparatus and method for encoding image thereof
KR20180013208A (en) Apparatus and Method for Processing Differential Beauty Effect
KR102579895B1 (en) Electronic device and a method for measuring heart rate based on an infrared rays sensor using the same
US10504560B2 (en) Electronic device and operation method thereof
KR102423364B1 (en) Method for providing image and electronic device supporting the same
KR102379898B1 (en) Electronic device for providing a graphic indicator related to a focus and method of operating the same
KR102700131B1 (en) Apparatus and Method for Sequentially displaying Images on the Basis of Similarity of Image
KR102355759B1 (en) Electronic apparatus for determining position of user and method for controlling thereof
KR102457247B1 (en) Electronic device for processing image and method for controlling thereof
US10091436B2 (en) Electronic device for processing image and method for controlling the same
KR20170014919A (en) Electronic apparatus and method for detecting skin condition in electronic apparatus
KR102407624B1 (en) Method for processing image of electronic device and electronic device thereof

Legal Events

Date Code Title Description
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 20150922

PG1501 Laying open of application
A201 Request for examination
PA0201 Request for examination

Patent event code: PA02012R01D

Patent event date: 20200903

Comment text: Request for Examination of Application

Patent event code: PA02011R01I

Patent event date: 20150922

Comment text: Patent Application

E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

Comment text: Notification of reason for refusal

Patent event date: 20211217

Patent event code: PE09021S01D

E90F Notification of reason for final refusal
PE0902 Notice of grounds for rejection

Comment text: Final Notice of Reason for Refusal

Patent event date: 20220415

Patent event code: PE09021S02D

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

Patent event code: PE07011S01D

Comment text: Decision to Grant Registration

Patent event date: 20220801

GRNT Written decision to grant
PR0701 Registration of establishment

Comment text: Registration of Establishment

Patent event date: 20221017

Patent event code: PR07011E01D

PR1002 Payment of registration fee

Payment date: 20221018

End annual number: 3

Start annual number: 1

PG1601 Publication of registration