KR20220005283A - Electronic device for image improvement and camera operation method of the electronic device - Google Patents

Electronic device for image improvement and camera operation method of the electronic device Download PDF

Info

Publication number
KR20220005283A
KR20220005283A KR1020200082944A KR20200082944A KR20220005283A KR 20220005283 A KR20220005283 A KR 20220005283A KR 1020200082944 A KR1020200082944 A KR 1020200082944A KR 20200082944 A KR20200082944 A KR 20200082944A KR 20220005283 A KR20220005283 A KR 20220005283A
Authority
KR
South Korea
Prior art keywords
image
electronic device
subject
camera
processor
Prior art date
Application number
KR1020200082944A
Other languages
Korean (ko)
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 KR1020200082944A priority Critical patent/KR20220005283A/en
Priority to PCT/KR2021/008443 priority patent/WO2022010193A1/en
Publication of KR20220005283A publication Critical patent/KR20220005283A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N5/23229
    • G06T5/008
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • H04N5/232
    • H04N5/247

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

An electronic device according to one embodiment of the present document includes a display, a first camera module including a first camera having a first viewing angle, a second camera module including a second camera having a second viewing angle different from the first viewing angle, and a processor operatively connected to the first camera module and the second camera module. The processor displays, through the display, a first preview screen which is acquired using the first camera module and displays a first image including a subject image, determines whether the first image satisfies a condition for determining whether image improvement is necessary, acquires a second image including the subject image by using the second camera module, matches a first object coordinate of the first image and a second object coordinate of the second image when determined that the condition is satisfied, and displays a second preview screen displaying a composite image acquired by synthesizing the first image and the second image through the display. According to various embodiments of the present disclosure, image improvement of a shadow generated when an image of a subject is captured and image improvement of a light reflection by a subject occurring when an image is taken may be performed using the camera of the electronic device. Also, by performing image improvement on a subject photographed by the electronic device, a user experience may be improved.

Description

이미지 개선을 위한 전자장치 및 그 전자장치의 카메라 운용 방법 {ELECTRONIC DEVICE FOR IMAGE IMPROVEMENT AND CAMERA OPERATION METHOD OF THE ELECTRONIC DEVICE} Electronic device for image improvement and camera operation method of the electronic device

본 문서의 다양한 실시 예들은 전자 장치의 카메라를 이용하여 이미지 촬영 시 개선된 이미지를 생성하는 전자 장치 및 그 전자 장치의 운용 방법에 관한 것이다. Various embodiments of the present disclosure relate to an electronic device that generates an improved image when capturing an image using a camera of the electronic device, and a method of operating the electronic device.

전자 장치를 이용하여 이미지 촬영을 하는 경우에 전자 장치의 구성에 포함된 속성이나 주변 환경에 따라 촬영하고자 하는 이미지에 대한 개선이 필요할 수 있다. 예를 들어 전자 장치는 화각에 대한 개선, 광원 및 객체들의 위치에 따른 쉐이딩(shading)에 대한 개선이 필요할 수 있다. When an image is captured using an electronic device, it may be necessary to improve an image to be captured according to a property included in the configuration of the electronic device or a surrounding environment. For example, the electronic device may need to improve an angle of view and improve shading according to positions of light sources and objects.

종래 기술에 따르면, 전자 장치를 이용하여 이미지 촬영 시 복수의 속성에 기반하여 촬영을 수행할 수 있다. 예를 들어 전자 장치는 광각(wide) 카메라, 초광각(ultra-wide) 카메라, 망원(tele photo camera) 카메라, TOF(time of flight) 카메라 등을 장착할 수 있다. 전자 장치는 상술한 카메라들을 장착함으로써 다양한 화각 또는 거리 정보에 기반하여 이미지를 촬영할 수 있다. According to the prior art, when capturing an image using an electronic device, capturing may be performed based on a plurality of attributes. For example, the electronic device may be equipped with a wide camera, an ultra-wide camera, a tele photo camera, a time of flight (TOF) camera, and the like. The electronic device may capture an image based on various angles of view or distance information by mounting the aforementioned cameras.

종래 기술에 따르면, 전자 장치는 이미지 촬영 시 그림자가 발생하는 경우, 객체에 대한 거리 정보에 기반하여 그림자를 추정 또는 판단할 수 있고, 판단된 그림자에 대한 이미지 보정을 수행할 수 있다. 또한 전자 장치는 오토 포커싱(auto focusing) 등의 촬영 정보를 이용하여 이미지 내 이벤트가 발생했는지 여부를 판단할 수 있다. According to the prior art, when a shadow occurs when capturing an image, the electronic device may estimate or determine the shadow based on distance information about the object, and may perform image correction on the determined shadow. Also, the electronic device may determine whether an event in the image has occurred by using shooting information such as auto focusing.

전자 장치의 카메라를 이용하여 촬영 시, 피사체에 그림자가 생기거나 또는 피사체의 반사 성질(예: 유리, 메탈)로 인해 빛 반사가 발생하거나, 촬영자에 의해 발생한 그림자가 피사체에 비치는 문제가 생기게 된다. 예를 들면 피사체와 촬영자의 위치로 인해 순광, 역광, 측광, 상부광, 하부광, 후사광, 전사광 등에 의한 그림자가 발생한다. 이 경우 사용자는 이미지 촬영 시에 그림자를 발생시키지 않기 위한 구도를 잡게 되고, 다양한 구도를 시도하는 가운데 그림자가 발생하지 않으면서 이미지 촬영에 적합한 위치에서는 촬영하지 못하게 된다. When photographing using a camera of an electronic device, a problem arises that a shadow is formed on a subject, light reflection occurs due to a reflective property (eg, glass, metal) of the subject, or a shadow generated by a photographer is reflected on the subject. For example, due to the location of the subject and the photographer, shadows caused by forward light, backlight, metering, upper light, lower light, rear light, transfer light, etc. occur. In this case, the user has to compose a composition so as not to generate a shadow when taking an image, and while trying various compositions, the user cannot take a picture in a position suitable for taking an image while no shadow is generated.

또한 전자 장치의 카메라를 이용하여 유리, 보석, 메탈 제품 또는 오래된 필름 사진을 촬영하는 경우, 현상액, 감광액 등 다양한 화학약품에 의한 빛이 반사될 수 있고, 사용자가 원하는 이미지를 촬영하지 못할 수 있다. In addition, when photos of glass, jewelry, metal products, or old films are taken using the camera of the electronic device, light by various chemicals such as a developer and a photoresist may be reflected, and an image desired by the user may not be captured.

본 문서의 일 실시 예에 따른 전자 장치는, 디스플레이, 제1 시야각을 가지는 제1 카메라를 포함하는 제1 카메라 모듈, 상기 제1 시야각과 다른 제2 시야각을 가지는 제2 카메라를 포함하는 제2 카메라 모듈, 및 상기 제1 카메라 모듈 및 상기 제2 카메라 모듈과 작동적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 제1 카메라 모듈을 이용하여 획득되며 피사체 이미지를 포함하는 제1 이미지를 표시하는 제1 미리보기 화면을 상기 디스플레이를 통해서 표시하고, 상기 제1 이미지가 이미지 개선이 필요한지 판단하는 조건을 만족하는지 여부를 결정하고, 상기 제2 카메라 모듈을 이용하여 상기 피사체 이미지를 포함하는 제2 이미지를 획득하고, 상기 조건을 만족하는 것으로 결정된 경우, 상기 제1 이미지의 제1 피사체 좌표 및 상기 제2 이미지의 제2 피사체 좌표를 대응시키고, 상기 제1 이미지 및 상기 제2 이미지를 합성한 합성 이미지를 표시하는 제2 미리보기 화면을 상기 디스플레이를 통해서 표시하는 전자 장치를 포함할 수 있다. An electronic device according to an embodiment of the present document includes a display, a first camera module including a first camera having a first viewing angle, and a second camera including a second camera having a second viewing angle different from the first viewing angle a module, and a processor operatively connected to the first camera module and the second camera module, wherein the processor is configured to display a first image obtained using the first camera module and including a subject image. 1 A preview screen is displayed through the display, it is determined whether the first image satisfies a condition for determining whether image improvement is required, and a second image including the subject image is captured using the second camera module. obtained, and when it is determined that the condition is satisfied, a composite image obtained by matching the first object coordinates of the first image and the second object coordinates of the second image, and synthesizing the first image and the second image and an electronic device that displays the displayed second preview screen through the display.

본 문서의 일 실시 예에 따른 전자 장치의 동작 방법은, 상기 제1 카메라 모듈을 이용하여 획득되며 피사체 이미지를 포함하는 제1 이미지를 표시하는 제1 미리보기 화면을 상기 디스플레이를 통해서 표시하는 동작, 상기 제1 이미지가 이미지 개선이 필요한지 판단하는 조건을 만족하는지 여부를 결정하는 동작, 상기 제2 카메라 모듈을 이용하여 상기 피사체 이미지를 포함하는 제2 이미지를 획득하는 동작, 상기 조건을 만족하는 것으로 결정된 경우, 상기 제1 이미지의 제1 피사체 좌표 및 상기 제2 이미지의 제2 피사체 좌표를 대응시키는 동작, 및 상기 제1 이미지 및 상기 제2 이미지를 합성한 합성 이미지를 표시하는 제2 미리보기 화면을 상기 디스플레이를 통해서 표시하는 동작을 포함할 수 있다.The method of operating an electronic device according to an embodiment of the present document includes: displaying a first preview screen through the display, which is acquired using the first camera module and displays a first image including a subject image; Determining whether the first image satisfies a condition for determining whether image improvement is necessary, obtaining a second image including the subject image by using the second camera module, and determining whether the condition is satisfied In this case, a second preview screen for displaying a composite image in which the first object coordinates of the first image and the second object coordinates of the second image are matched, and the first image and the second image are combined; It may include an operation of displaying through the display.

본 문서의 다양한 실시 예에 따르면, 전자장치의 카메라를 이용하여 피사체에 대한 이미지 촬영 시 발생하는 그림자에 대한 이미지 개선을 수행할 수 있다. According to various embodiments of the present disclosure, image improvement may be performed on a shadow generated when an image of a subject is captured by using the camera of the electronic device.

본 문서의 다양한 실시 예에 따르면, 전자장치의 카메라를 이용하여 이미지 촬영 시 발생하는 피사체에 의한 빛 반사에 대한 이미지 개선을 수행할 수 있다. According to various embodiments of the present disclosure, image improvement may be performed with respect to light reflection by a subject that occurs when an image is captured by using a camera of an electronic device.

본 문서의 다양한 실시 예에 따르면, 전자 장치가 촬영한 피사체에 대한 이미지 개선을 수행함으로써, 사용자 경험을 향상시킬 수 있다. According to various embodiments of the present disclosure, the user experience may be improved by improving the image of the subject photographed by the electronic device.

다양한 실시 예들에 기초하여 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다. Effects that can be obtained based on various embodiments are not limited to the effects mentioned above, and other effects not mentioned are clearly understood by those of ordinary skill in the art to which the present disclosure belongs from the description below. it could be

도 1은 다양한 실시 예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는 다양한 실시 예들에 따른, 카메라 모듈을 예시하는 블럭도이다.
도 3은 다양한 실시 예들에 따른 전자 장치의 일부분의 구성 및 전자 장치가 동작하는 예를 설명하기 위한 타이밍을 도시하는 도면이다.
도 4는 일 실시 예들에 따른 전자 장치에서 이미지 개선을 수행한 전후의 이미지를 나타내는 도면이다.
도 5는 일 실시 예에 따른 전자 장치의 구성을 나타내는 도면이다.
도 6은 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 흐름을 나타내는 흐름도이다.
도 7은 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 구체적인 흐름의 일부를 나타내는 흐름도이다.
도 8은 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 중 미리보기 화면의 피사체 이미지 영역을 구분하는 실시 예를 나타내는 도면이다.
도 9는 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 중 이미지 개선이 필요한지 판단하는 임계 값 조건을 만족하는지 판단하는 실시 예를 나타내는 도면이다.
도 10은 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 중 TOF 카메라를 이용하여 피사체 및 광원의 거리 값을 획득하는 실시 예를 나타내는 도면이다.
도 11은 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 중 피사체 좌표의 생성 및 제2 카메라로 전환하는 실시 예를 나타내는 도면이다.
도 12는 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 구체적인 흐름의 일부를 나타내는 흐름도이다.
도 13은 일 실시 예에 따른 전자 장치에서 피사체 좌표들을 대응시킴으로써 이미지 합성을 수행하는 실시 예를 나타내는 도면이다.
도 14는 일 실시 예에 따른 전자 장치에서 이미지 개선을 위해 피사체를 기준으로 가이드를 생성하는 실시 예를 나타내는 도면이다.
도 15는 일 실시 예에 따른 전자 장치에서 피사체 이미지에 관한 그림자 영역을 생성하는 실시 예를 나타내는 도면이다.
도 16은 일 실시 예에 따른 전자 장치에서 피사체 이미지에 관한 빛 반사 영역을 생성하는 실시 예를 나타내는 도면이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure;
2 is a block diagram illustrating a camera module according to various embodiments of the present disclosure;
3 is a diagram illustrating a configuration of a part of an electronic device and timing for explaining an example in which the electronic device operates according to various embodiments of the present disclosure;
4 is a diagram illustrating an image before and after image enhancement is performed in an electronic device according to an exemplary embodiment.
5 is a diagram illustrating a configuration of an electronic device according to an embodiment.
6 is a flowchart illustrating a flow of performing image enhancement in an electronic device according to an exemplary embodiment.
7 is a flowchart illustrating a part of a detailed flow of performing image enhancement in an electronic device according to an exemplary embodiment.
8 is a diagram illustrating an embodiment of dividing a subject image area of a preview screen while image enhancement is being performed in an electronic device according to an exemplary embodiment.
9 is a diagram illustrating an embodiment of determining whether an electronic device satisfies a threshold value condition for determining whether image improvement is necessary while performing image improvement, according to an embodiment.
10 is a diagram illustrating an embodiment of obtaining distance values between a subject and a light source using a TOF camera while image enhancement is being performed in an electronic device, according to an embodiment.
11 is a diagram illustrating an embodiment of generating object coordinates and switching to a second camera while performing image enhancement in an electronic device, according to an embodiment.
12 is a flowchart illustrating a part of a detailed flow of performing image enhancement in an electronic device according to an exemplary embodiment.
13 is a diagram illustrating an embodiment in which image synthesis is performed by matching object coordinates in an electronic device according to an embodiment.
14 is a diagram illustrating an embodiment of generating a guide based on a subject for image improvement in an electronic device according to an embodiment.
15 is a diagram illustrating an embodiment of generating a shadow area for a subject image in an electronic device according to an embodiment.
16 is a diagram illustrating an example of generating a light reflection area for a subject image in an electronic device according to an exemplary embodiment.

도 1은, 다양한 실시 예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments of the present disclosure.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시 예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다.Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input device 150 , a sound output device 155 , a display device 160 , an audio module 170 , and a sensor module ( 176 , interface 177 , haptic module 179 , camera module 180 , power management module 188 , battery 189 , communication module 190 , subscriber identification module 196 , or antenna module 197 . ) may be included. In some embodiments, at least one of these components (eg, the display device 160 or the camera module 180 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components may be implemented as a single integrated circuit. For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 160 (eg, a display).

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(123)은 메인 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, the program 140 ) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 120 stores a command or data received from another component (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 . may be loaded into the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the resulting data in the non-volatile memory 134 . According to an embodiment, the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor), and an auxiliary processor 123 (eg, a graphic processing unit or an image signal processor) that can be operated independently or together with the main processor 121 . , a sensor hub processor, or a communication processor). Additionally or alternatively, the auxiliary processor 123 may be configured to use less power than the main processor 121 or to be specialized for a specified function. The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. The auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display device 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the auxiliary processor 123 (eg, image signal processor or communication processor) may be implemented as a part of another functionally related component (eg, camera module 180 or communication module 190). have.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(150)은, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input device 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).

음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 155 may output a sound signal to the outside of the electronic device 101 . The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive an incoming call. According to an embodiment, the receiver may be implemented separately from or as a part of the speaker.

표시 장치(160)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 표시 장치(160)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다. The display device 160 may visually provide information to the outside of the electronic device 101 (eg, a user). The display device 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the corresponding device. According to an embodiment, the display device 160 may include a touch circuitry configured to sense a touch or a sensor circuit (eg, a pressure sensor) configured to measure the intensity of a force generated by the touch. have.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(170)은, 입력 장치(150) 를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input device 150 , or an external electronic device (eg, a sound output device 155 ) connected directly or wirelessly with the electronic device 101 . The sound may be output through the electronic device 102 (eg, a speaker or headphones).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(177)는 전자 장치(101)이 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more specified protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ). According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(178)은, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(388)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to an embodiment, the power management module 388 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a LAN (local area network) communication module, or a power line communication module). Among these communication modules, a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, WiFi direct, or IrDA (infrared data association)) or a second network 199 (eg, a cellular network, the Internet, or It can communicate with an external electronic device through a computer network (eg, a telecommunication network such as a LAN or WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 101 may be identified and authenticated.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, RFIC) other than the radiator may be additionally formed as a part of the antenna module 197 .

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.

일 실시 예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시 예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(102, 104, or 108) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the electronic devices 102 and 104 may be the same or a different type of device from the electronic device 101 . According to an embodiment, all or some of the operations performed by the electronic device 101 may be executed by one or more of the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 is to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, or client-server computing technology may be used.

도 2는, 다양한 실시 예들에 따른, 카메라 모듈(180)을 예시하는 블럭도(200)이다. 2 is a block diagram 200 illustrating a camera module 180, according to various embodiments.

도 2를 참조하면, 카메라 모듈(180)은 렌즈 어셈블리(210), 플래쉬(220), 이미지 센서(230), 이미지 스태빌라이저(240), 메모리(250)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(260)를 포함할 수 있다. 렌즈 어셈블리(210)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(210)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 복수의 렌즈 어셈블리(210)들을 포함할 수 있다. 이런 경우, 카메라 모듈(180)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)를 형성할 수 있다. 복수의 렌즈 어셈블리(210)들 중 일부는 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 어셈블리의 렌즈 속성들과 다른 하나 이상의 렌즈 속성들을 가질 수 있다. 렌즈 어셈블리(210)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다. Referring to FIG. 2 , the camera module 180 includes a lens assembly 210 , a flash 220 , an image sensor 230 , an image stabilizer 240 , a memory 250 (eg, a buffer memory), or an image signal processor. (260). The lens assembly 210 may collect light emitted from a subject, which is an image to be captured. The lens assembly 210 may include one or more lenses. According to an embodiment, the camera module 180 may include a plurality of lens assemblies 210 . In this case, the camera module 180 may form, for example, a dual camera, a 360 degree camera, or a spherical camera. Some of the plurality of lens assemblies 210 may have the same lens properties (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly may be a different lens assembly. It may have one or more lens properties different from the lens properties of . The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens.

플래쉬(220)는 피사체로부터 방출 또는 반사되는 빛을 강화하기 위하여 사용되는 빛을 방출할 수 있다. 일 실시 예에 따르면, 플래쉬(220)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다. 이미지 센서(230)는 피사체로부터 방출 또는 반사되어 렌즈 어셈블리(210)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일 실시 예에 따르면, 이미지 센서(230)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(230)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서를 이용하여 구현될 수 있다.The flash 220 may emit light used to enhance light emitted or reflected from the subject. According to an embodiment, the flash 220 may include one or more light emitting diodes (eg, a red-green-blue (RGB) LED, a white LED, an infrared LED, or an ultraviolet LED), or a xenon lamp. The image sensor 230 may acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 may include, for example, one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, the same It may include a plurality of image sensors having properties, or a plurality of image sensors having different properties. Each image sensor included in the image sensor 230 may be implemented using, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.

이미지 스태빌라이저(240)는 카메라 모듈(180) 또는 이를 포함하는 전자 장치(101)의 움직임에 반응하여, 렌즈 어셈블리(210)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(230)를 특정한 방향으로 움직이거나 이미지 센서(230)의 동작 특성을 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 이는 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향의 적어도 일부를 보상하게 해 준다. 일 실시 예에 따르면, 이미지 스태빌라이저(240)는, 일 실시 예에 따르면, 이미지 스태빌라이저(240)은 카메라 모듈(180)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 카메라 모듈(180) 또는 전자 장치(101)의 그런 움직임을 감지할 수 있다. 일 실시 예에 따르면, 이미지 스태빌라이저(240)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있다. 메모리(250)는 이미지 센서(230)을 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: Bayer-patterned 이미지 또는 높은 해상도의 이미지)는 메모리(250)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 표시 장치(160)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(250)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(260)에 의해 획득되어 처리될 수 있다. 일 실시 예에 따르면, 메모리(250)는 메모리(130)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.In response to the movement of the camera module 180 or the electronic device 101 including the same, the image stabilizer 240 moves at least one lens or the image sensor 230 included in the lens assembly 210 in a specific direction or Operation characteristics of the image sensor 230 may be controlled (eg, read-out timing may be adjusted, etc.). This makes it possible to compensate for at least some of the negative effects of the movement on the image being taken. According to an embodiment, the image stabilizer 240 is, according to an embodiment, the image stabilizer 240 is a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 180 . can be used to detect such a movement of the camera module 180 or the electronic device 101 . According to an embodiment, the image stabilizer 240 may be implemented as, for example, an optical image stabilizer. The memory 250 may temporarily store at least a portion of the image acquired through the image sensor 230 for the next image processing operation. For example, when image acquisition is delayed according to the shutter or a plurality of images are acquired at high speed, the acquired original image (eg, Bayer-patterned image or high-resolution image) is stored in the memory 250 and , a copy image corresponding thereto (eg, a low-resolution image) may be previewed through the display device 160 . Thereafter, when a specified condition is satisfied (eg, a user input or a system command), at least a portion of the original image stored in the memory 250 may be obtained and processed by, for example, the image signal processor 260 . According to an embodiment, the memory 250 may be configured as at least a part of the memory 130 or as a separate memory operated independently of the memory 130 .

이미지 시그널 프로세서(260)는 이미지 센서(230)을 통하여 획득된 이미지 또는 메모리(250)에 저장된 이미지에 대하여 하나 이상의 이미지 처리들을 수행할 수 있다. 상기 하나 이상의 이미지 처리들은, 예를 들면, 깊이 지도(depth map) 생성, 3차원 모델링, 파노라마 생성, 특징점 추출, 이미지 합성, 또는 이미지 보상(예: 노이즈 감소, 해상도 조정, 밝기 조정, 블러링(blurring), 샤프닝(sharpening), 또는 소프트닝(softening)을 포함할 수 있다. 추가적으로 또는 대체적으로, 이미지 시그널 프로세서(260)는 카메라 모듈(180)에 포함된 구성 요소들 중 적어도 하나(예: 이미지 센서(230))에 대한 제어(예: 노출 시간 제어, 또는 리드 아웃 타이밍 제어 등)를 수행할 수 있다. 이미지 시그널 프로세서(260)에 의해 처리된 이미지는 추가 처리를 위하여 메모리(250)에 다시 저장되거나 카메라 모듈(180)의 외부 구성 요소(예: 메모리(130), 표시 장치(160), 전자 장치(102), 전자 장치(104), 또는 서버(108))로 제공될 수 있다. 일 실시 예에 따르면, 이미지 시그널 프로세서(260)는 프로세서(120)의 적어도 일부로 구성되거나, 프로세서(120)와 독립적으로 운영되는 별도의 프로세서로 구성될 수 있다. 이미지 시그널 프로세서(260)이 프로세서(120)과 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(260)에 의해 처리된 적어도 하나의 이미지는 프로세서(120)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 표시 장치(160)를 통해 표시될 수 있다.The image signal processor 260 may perform one or more image processing on an image acquired through the image sensor 230 or an image stored in the memory 250 . The one or more image processes may include, for example, depth map generation, 3D modeling, panorama generation, feature point extraction, image synthesis, or image compensation (eg, noise reduction, resolution adjustment, brightness adjustment, blurring ( blurring, sharpening, or softening. Additionally or alternatively, the image signal processor 260 may include at least one of the components included in the camera module 180 (eg, an image sensor). 230), for example, exposure time control, readout timing control, etc. The image processed by the image signal processor 260 is stored back in the memory 250 for further processing. or may be provided as an external component of the camera module 180 (eg, the memory 130, the display device 160, the electronic device 102, the electronic device 104, or the server 108). According to an example, the image signal processor 260 may be configured as at least a part of the processor 120 or as a separate processor operated independently of the processor 120. The image signal processor 260 may be configured as the processor 120 and a separate processor, the at least one image processed by the image signal processor 260 may be displayed through the display device 160 as it is by the processor 120 or after additional image processing.

일 실시 예에 따르면, 전자 장치(101)는 각각 다른 속성 또는 기능을 가진 복수의 카메라 모듈(180)들을 포함할 수 있다. 이런 경우, 예를 들면, 상기 복수의 카메라 모듈(180)들 중 적어도 하나는 광각 카메라이고, 적어도 다른 하나는 망원 카메라일 수 있다. 유사하게, 상기 복수의 카메라 모듈(180)들 중 적어도 하나는 전면 카메라이고, 적어도 다른 하나는 후면 카메라일 수 있다. According to an embodiment, the electronic device 101 may include a plurality of camera modules 180 each having different properties or functions. In this case, for example, at least one of the plurality of camera modules 180 may be a wide-angle camera, and at least the other may be a telephoto camera. Similarly, at least one of the plurality of camera modules 180 may be a front camera, and at least the other may be a rear camera.

도 3은 다양한 실시 예들에 따른 전자 장치(301)의 일부분의 구성(300) 및 전자 장치(301)가 동작하는 예(390)를 설명하기 위한 타이밍을 도시하는 도면이다. 3 is a diagram illustrating a timing for explaining a configuration 300 of a portion of the electronic device 301 and an example 390 in which the electronic device 301 operates according to various embodiments of the present disclosure.

다양한 실시 예들에서, 전자 장치(301)는 도 1의 전자 장치(101)에 대응할 수 있다. In various embodiments, the electronic device 301 may correspond to the electronic device 101 of FIG. 1 .

도 3을 참조하면, 전자 장치(301)는 프로세서(310), 메모리(330), 카메라 모듈(340), TOF 카메라(350) 및 디스플레이(360)를 포함할 수 있다. Referring to FIG. 3 , the electronic device 301 may include a processor 310 , a memory 330 , a camera module 340 , a TOF camera 350 , and a display 360 .

다양한 실시 예에 따르면, 카메라 모듈(340)은, 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(340)는 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다. 카메라 모듈(340)은 제1 카메라 모듈(342) 및 제2 카메라 모듈(344)를 적어도 포함할 수 있다. 또한 제1 카메라 모듈(342) 및 제2 카메라 모듈(344)은 카메라 모듈(340)이 수행하는 기능과 동일 또는 유사한 기능을 수행할 수 있다. According to various embodiments, the camera module 340 may capture still images and moving images. According to an embodiment, the camera module 340 may include one or more lenses, image sensors, image signal processors, or flashes. The camera module 340 may include at least a first camera module 342 and a second camera module 344 . In addition, the first camera module 342 and the second camera module 344 may perform the same or similar functions to the functions performed by the camera module 340 .

다양한 실시 예에 따르면, TOF 카메라(350)는 전자 장치(301)와 대상체(예: 피사체)(302) 사이의 거리 정보(또는 깊이 정보)를 획득할 수 있다. TOF 카메라(350)는 ToF(time of flight) 모듈을 포함할 수 있다. 일 실시 예에 따르면, TOF 카메라(350)는 발광 모듈(352)과 수신 모듈(354), 또는 이들의 조합을 포함할 수 있다. 예를 들어, 발광 모듈(352)은 하나 이상의 VCSEL(vertical-cavity surface emitting laser), 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, 적외선 LED, 또는 자외선 LED), 또는 제논 램프(xenon lamp)를 포함할 수 있다. 또한, 수신 모듈(354)은 RGB 센서, BW(black and white) 센서, 적외선 센서, 자외선 센서, 또는 이들의 조합으로 구성될 수 있다. 예를 들어, 수신 모듈(354)에 포함되는 이미지 센서는, CCD(charged coupled device) 센서, CMOS(complementary metal oxide semiconductor) 센서, 또는 이들의 조합을 이용하여 구현될 수 있다. According to various embodiments, the TOF camera 350 may acquire distance information (or depth information) between the electronic device 301 and the object (eg, subject) 302 . The TOF camera 350 may include a time of flight (ToF) module. According to an embodiment, the TOF camera 350 may include a light emitting module 352 and a receiving module 354 , or a combination thereof. For example, the light emitting module 352 may include one or more vertical-cavity surface emitting lasers (VCSELs), light emitting diodes (eg, red-green-blue (RGB) LEDs, white LEDs, infrared LEDs, or ultraviolet LEDs), or It may include a xenon lamp. Also, the reception module 354 may be configured as an RGB sensor, a black and white (BW) sensor, an infrared sensor, an ultraviolet sensor, or a combination thereof. For example, the image sensor included in the reception module 354 may be implemented using a charged coupled device (CCD) sensor, a complementary metal oxide semiconductor (CMOS) sensor, or a combination thereof.

일 실시 예에 따르면, TOF 카메라(350)는, 도 3에 도시된 바와 같이, 발광 모듈(352)을 이용하여, 지정된 주파수의 조사광(371)을 대상체(302)(예: 피사체, 외부 객체 등)에 지정된 주기(Tc)의 조사 시간(Tp) 동안 조사할 수 있다. 예를 들어, TOF 카메라(350)는 지정된 주기(Tc)의 비조사 시간(Tnp) 동안 조사광(371)을 조사하지 않을 수 있다. 또한, TOF 카메라(350)는 수신 모듈(354)을 이용하여, 대상체(302)로부터의 반사광(375)을 조사 시간(Tp)에 대응하는 간격의 시간 동안 수신할 수 있다. 일 실시 예에 따르면, 조사광(371)의 조사 시점과 반사광(375)의 수신 시점은 대상체(302)와의 거리에 대응하는 시간(

Figure pat00001
t)만큼의 차이가 존재할 수 있다.According to an embodiment, the TOF camera 350 transmits the irradiated light 371 of a specified frequency to the object 302 (eg, a subject, an external object) using the light emitting module 352 as shown in FIG. 3 . etc.) can be irradiated during the irradiation time Tp of the specified period Tc. For example, the TOF camera 350 may not irradiate the irradiation light 371 during the non-irradiation time Tnp of the specified period Tc. Also, the TOF camera 350 may receive the reflected light 375 from the object 302 for an interval corresponding to the irradiation time Tp, using the receiving module 354 . According to an embodiment, the irradiation time of the irradiation light 371 and the reception time of the reflected light 375 are time (
Figure pat00001
t) may exist.

일 실시 예에 따르면, 수신 모듈(354)은 적어도 두 개의 커패시터들(T1, T2)을 포함할 수 있다. 예를 들어, 제 1 커패시터(T1)는 지정된 주기(Tc)의 조사 시간(Tp) 동안 오프 상태에서 온 상태로 전환되며, 비조사 시간(Tnp) 동안 온 상태에서 오프 상태로 전환될 수 있다. 또한, 제 2 커패시터(T2)는 지정된 주기(Tc)의 조사 시간(Tp) 동안 온 상태에서 오프 상태로 전환되며, 비조사 시간(Tnp) 동안 오프 상태에서 온 상태로 전환될 수 있다. 다양한 실시 예에 따르면, 적어도 두 개의 커패시터들(T1, T2)은 온 상태로 존재하는 동안 입사되는 반사광(375)의 광량에 대응하는 전하량들(Q1, Q2)을 축적할 수 있다. 일 실시 예에 따르면, 두 개의 커패시터들(T1, T2)에 축적되는 전하들은 수신 모듈이 수신하는 광에 대응하여 생성하는 전하일 수 있다.According to an embodiment, the reception module 354 may include at least two capacitors T1 and T2. For example, the first capacitor T1 may be switched from the off state to the on state during the irradiation time Tp of the specified period Tc, and may be switched from the on state to the off state during the non-irradiation time Tnp. Also, the second capacitor T2 may be switched from the on state to the off state during the irradiation time Tp of the specified period Tc, and may be switched from the off state to the on state during the non-irradiation time Tnp. According to various embodiments, the at least two capacitors T1 and T2 may accumulate charge amounts Q1 and Q2 corresponding to the light amount of the incident reflected light 375 while they are in the on state. According to an embodiment, the charges accumulated in the two capacitors T1 and T2 may be charges generated in response to light received by the reception module.

일 실시 예에 따르면, TOF 카메라(350)는 프로세서(310)에게 전자 장치(301)와 대상체(302) 간의 거리(D)를 나타내는 정보를 전달하거나, 프로세서(310)에서 거리(D)를 나타내는 정보를 획득하도록 시간 차이(

Figure pat00002
t)를 나타내는 정보를 전달할 수 있다. 다양한 실시 예에 따르면, TOF 카메라(350)는 카메라 모듈(340)의 일부로 구성될 수 있다. 일 실시 예에 따르면, 카메라 모듈(340)과 TOF 카메라(350)는 하나의 센서, 예를 들어, 이미지 센서로 구성될 수 있다. 그러나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다.According to an embodiment, the TOF camera 350 transmits information indicating the distance D between the electronic device 301 and the object 302 to the processor 310 or indicates the distance D from the processor 310 . time difference (
Figure pat00002
t) can be transmitted. According to various embodiments, the TOF camera 350 may be configured as a part of the camera module 340 . According to an embodiment, the camera module 340 and the TOF camera 350 may be configured as one sensor, for example, an image sensor. However, this is only an example, and the embodiment of the present invention is not limited thereto.

다양한 실시 예에 따르면, 프로세서(310)는 프로세서(310)에 연결된 전자 장치(301)의 적어도 하나의 다른 구성요소(예: 메모리(330), 카메라 모듈(340), TOF 카메라(350) 또는 디스플레이(360))를 제어할 수 있다. 또한 프로세서(310)는 도 1의 프로세서(120)에 대응할 수 있다. According to various embodiments, the processor 310 includes at least one other component (eg, the memory 330 , the camera module 340 , the TOF camera 350 , or the display of the electronic device 301 connected to the processor 310 ). (360)) can be controlled. Also, the processor 310 may correspond to the processor 120 of FIG. 1 .

일 실시 예에 따르면, 프로세서(310)는 대상체(302)와의 거리를 측정하라는 입력에 응답하여, TOF 카메라(350)를 활성화하고, 활성화된 TOF 카메라(350)를 이용하여 전자 장치(301)와 대상체(302) 간의 거리 정보를 획득할 수 있다. 예를 들어, 대상체(302)와의 거리를 측정하라는 입력은, 임의의 어플리케이션이 제공하는 화면을 통해 수신할 수 있다. 예컨대, 대상체(302)와의 거리를 측정하라는 입력은 임의의 어플리케이션(예: 카메라 어플리케이션)을 실행시키기 위한 입력일 수 있다. 그러나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 예컨대, 대상체(302)와의 거리를 측정하라는 입력은 음성 명령, 버튼 입력, 제스처 입력 중 적어도 하나를 통해 수신될 수도 있다. According to an embodiment, the processor 310 activates the TOF camera 350 in response to an input to measure the distance to the object 302 , and communicates with the electronic device 301 using the activated TOF camera 350 . Distance information between the objects 302 may be acquired. For example, an input for measuring a distance to the object 302 may be received through a screen provided by an arbitrary application. For example, an input for measuring a distance to the object 302 may be an input for executing an arbitrary application (eg, a camera application). However, this is only an example, and the embodiment of the present invention is not limited thereto. For example, an input for measuring a distance to the object 302 may be received through at least one of a voice command, a button input, and a gesture input.

일 실시 예에 따르면, 프로세서(310)는 아래의 [수학식 1]에 기반하여, 전자 장치(301)와 대상체(302) 간의 거리(D)를 연산할 수 있다. According to an embodiment, the processor 310 may calculate the distance D between the electronic device 301 and the object 302 based on Equation 1 below.

Figure pat00003
Figure pat00003

[수학식 1]에 있어서, c는 빛의 속도를 나타내는 상수(c = 3*108 m/s)이고,

Figure pat00004
t는 조사광(371)의 조사 시점과 반사광(375)의 수신 시점 간의 시간 차이를 나타내고, Tp는 조사 시간이고, Q1은 조사 시간(Tp) 동안 온 상태로 전환된 커패시터(T1)가 축적한 전하량을 나타내고, Q2는 비조사 시간(Tnp) 동안 온 상태로 전환된 커패시터(T2)가 축적한 전하량을 나타낼 수 있다. In [Equation 1], c is a constant representing the speed of light (c = 3*108 m/s),
Figure pat00004
t represents the time difference between the irradiation time of the irradiation light 371 and the reception time of the reflected light 375, Tp is the irradiation time, and Q1 is the accumulation of the capacitor T1 switched on during the irradiation time Tp. represents the amount of charge, and Q2 may represent the amount of charge accumulated by the capacitor T2 switched to the on state during the non-irradiation time Tnp.

일 실시 예에 따르면, 프로세서(310)는 TOF 카메라(350)를 이용하여 측정된 거리 정보에 기초하여 서비스를 제공할 수 있다. 예를 들어, 서비스는, 카메라를 통해 촬영된 영상에서 배경과 대상체를 구분할 수 있는 적어도 하나의 기능일 수 있다. 예컨대, 프로세서(310)는 측정된 거리 정보에 기초하여, 영상에 포함된 적어도 일부(예: 배경)와 다른 일부를 구분할 수 있으며, 구분된 일부와 다른 일부에 서로 다른 효과(예: 블러 효과)를 적용하는 서비스를 제공할 수 있다. 또한, 프로세서(310)는, 측정된 거리 정보에 기초하여, 영상에 포함된 적어도 하나의 대상체를 구분할 수 있으며, 전자 장치와 대상체(302) 간의의 거리, 대상체(302)의 크기, 대상체(302)의 두께 등의 정보 중 적어도 하나를 측정하는 서비스(예: AR Ruler 서비스, 지도 서비스, Mixed Reality 서비스 등)를 제공할 수 있다. 그러나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 예컨대, 거리 정보에 기초한 다양한 정보가 서비스의 일부로 제공될 수 있다. According to an embodiment, the processor 310 may provide a service based on distance information measured using the TOF camera 350 . For example, the service may be at least one function capable of distinguishing a background from an object in an image captured by a camera. For example, the processor 310 may distinguish at least a part (eg, a background) included in the image from another part based on the measured distance information, and a different effect (eg, blur effect) on the divided part and the other part. We can provide services that apply In addition, the processor 310 may classify at least one object included in the image based on the measured distance information, the distance between the electronic device and the object 302 , the size of the object 302 , and the object 302 . ) may provide a service for measuring at least one of information such as thickness (eg, AR Ruler service, map service, Mixed Reality service, etc.). However, this is only an example, and the embodiment of the present invention is not limited thereto. For example, various information based on distance information may be provided as part of a service.

일 실시 예에 따르면, 프로세서(310)는 TOF 카메라(350)를 이용하여 측정된 거리가 임계 거리를 벗어난 것을 확인하는 것에 대응하여, 카메라 모듈(340)을 이용하여 전자 장치(301)와 대상체(302) 간의 거리 정보를 획득할 수 있다. 임계 거리는 TOF 카메라(350)를 이용하여 측정한 거리의 오차가 일정 수준 이하로 보장될 수 있는 전자 장치(301)와 대상체(302) 사이의 거리일 수 있다. 예를 들어, 프로세서(310)는 측정된 거리가 임계 거리를 벗어나는 경우 TOF 카메라(350)의 동작을 중단하고 카메라 모듈(340)를 이용하여 거리 정보를 획득할 수 있다. 예컨대, 프로세서(310)는 TOF 카메라(350)의 동작을 중단하여 불필요한 전력 소모의 발생을 방지할 수 있으며, TOF 카메라(350)보다 상대적으로 전력 소모가 적은 카메라 모듈(340)를 이용하여 TOF 카메라(350)의 동작을 재개하는 시점(예: 임계 거리 이내에 존재하는 대상체(302) 확인)을 확인할 수 있다. 그러나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 예컨대, 프로세서(310)는 TOF 카메라(350)의 동작을 지정된 시간 동안 중단하고 지정된 시간 이후에 일시적으로 동작하여 TOF 카메라(350)의 동작을 재개하는 시점을 확인할 수도 있다. 일 실시 예에 따르면, 프로세서(310)는 카메라 모듈(340)을 이용하여 거리 정보를 획득하는 동안 거리 정보에 기초한 서비스의 제공을 중단할 수도 있다. 예를 들어, 프로세서(310)는 TOF 카메라(350)의 동작이 중단됨을 알리는 메시지를 통지할 수도 있다. According to an embodiment, in response to determining that the distance measured using the TOF camera 350 deviates from the threshold distance, the processor 310 uses the camera module 340 to connect the electronic device 301 and the object ( 302), it is possible to obtain distance information between them. The threshold distance may be a distance between the electronic device 301 and the object 302 at which an error in a distance measured using the TOF camera 350 may be guaranteed to be less than or equal to a certain level. For example, when the measured distance deviates from the threshold distance, the processor 310 may stop the operation of the TOF camera 350 and acquire distance information using the camera module 340 . For example, the processor 310 may stop the operation of the TOF camera 350 to prevent unnecessary power consumption, and use the camera module 340 that consumes relatively less power than the TOF camera 350 . A time point at which the operation of 350 is resumed (eg, the object 302 that exists within a threshold distance is checked) may be checked. However, this is only an example, and the embodiment of the present invention is not limited thereto. For example, the processor 310 may stop the operation of the TOF camera 350 for a specified time and temporarily operate after the specified time to confirm the timing of resuming the operation of the TOF camera 350 . According to an embodiment, the processor 310 may stop providing a service based on the distance information while acquiring the distance information using the camera module 340 . For example, the processor 310 may notify a message indicating that the operation of the TOF camera 350 is stopped.

일 실시 예에 따르면, 카메라 모듈(340)을 이용하여 측정된 거리가 임계 거리 안에 포함되는 경우, 프로세서(310)는 중단된 TOF 카메라(350)의 동작이 재개되도록 처리할 수 있다. 예를 들어, 프로세서(310)는 TOF 카메라(350)를 이용하여 거리 정보를 측정할 수 있으며, 측정된 거리 정보에 기초하여 서비스를 제공할 수도 있다. According to an embodiment, when the distance measured using the camera module 340 is included in the threshold distance, the processor 310 may process the stopped operation of the TOF camera 350 to resume. For example, the processor 310 may measure distance information using the TOF camera 350 and may provide a service based on the measured distance information.

일 실시 예에 따르면, 프로세서(310)는 TOF 카메라(350)가 동작하는 동안 측정 파라미터를 변경할 수 있다. 측정 파라미터는 발광 모듈(352)의 조사 빈도(예: frequency), 조사 주기(예: exposure time), 프레임 레이트 등을 포함할 수 있다.According to an embodiment, the processor 310 may change the measurement parameter while the TOF camera 350 is operating. The measurement parameters may include an irradiation frequency (eg, frequency) of the light emitting module 352 , an irradiation period (eg, exposure time), a frame rate, and the like.

예를 들어, 프로세서(310)는 대상체(302)의 위치에 기초하여 측정 파라미터를 변경할 수 있다. 예컨대, 프로세서(310)는 대상체(302)의 거리가 전자 장치(301)와 가까워질수록 조사 주기를 감소시키고 조사 빈도를 증가시킬 수 있다. 또한, 프로세서(310)는 대상체(302)의 거리가 전자 장치(301)와 멀어질수록 조사 주기를 증가시키고 조사 빈도를 감소시킬 수 있다. 또한, 프로세서(310)는 TOF 카메라(350)가 동작하는 동안 전력 소모를 줄이기 위하여 프레임 레이트를 감소시킬 수도 있다. 다른 예로, 프로세서(310)는 촬영 환경에 기초하여 측정 파라미터를 변경할 수도 있다. 촬영 환경은 대상체(302)의 종류와 연관될 수 있다. 예컨대, 움직임이 상대적으로 적은 사람을 대상체(302)로 하는 경우, 프로세서(310)는 미리 지정된 기준 파라미터를 이용하여 대상체(302)와의 거리 정보를 획득할 수 있다. 또한, 움직임이 상대적으로 많은 대상체(302)로 하는 경우, 프로세서(310)는 거리 측정 범위, 예를 들어, 임계 거리를 확대하기 위하여 측정 파라미터를 변경할 수 있다. 예컨대, 프로세서(310)는 조사 주기를 증가시키고 조사 빈도를 감소시킴으로써 거리 측정 범위를 확대시킬 수 있다. For example, the processor 310 may change the measurement parameter based on the position of the object 302 . For example, the processor 310 may decrease the irradiation period and increase the irradiation frequency as the distance of the object 302 approaches the electronic device 301 . Also, the processor 310 may increase the irradiation period and decrease the irradiation frequency as the distance of the object 302 increases from the electronic device 301 . In addition, the processor 310 may reduce the frame rate to reduce power consumption while the TOF camera 350 is operating. As another example, the processor 310 may change the measurement parameter based on the photographing environment. The photographing environment may be related to the type of the object 302 . For example, when a person with relatively little movement is the object 302 , the processor 310 may obtain distance information from the object 302 using a preset reference parameter. Also, when the object 302 having relatively many movements is used, the processor 310 may change a measurement parameter to enlarge a distance measurement range, for example, a threshold distance. For example, the processor 310 may expand the range of the distance measurement by increasing the irradiation period and decreasing the irradiation frequency.

다양한 실시 예에 따르면, 메모리(330)는 대상체(302)와의 거리에 필요한 적어도 하나의 데이터를 포함할 수 있다. 일 실시 예에 따르면, 메모리는 측정 파라미터 및 임계 거리와 관련된 데이터를 포함할 수 있다. 측정 파라미터는, 전술한 바와 같이, 발광 모듈의 조사 빈도(예: frequency), 조사 주기(예: exposure time), 프레임 레이트 등을 포함할 수 있다. 그러나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 예컨대, 측정 파라미터는, 발광 모듈의 조사 세기 등과 같은 다양한 파라미터를 포함할 수 있다. 예를 들어, 측정 파라미터는 측정 환경에 따라 정의될 수 있다. 예컨대, 움직임이 상대적으로 적은 대상체(302)에 적합한 측정 파라미터와 움직임이 상대적으로 많은 대상체(302)에 적합한 측정 파라미터가 구별되어 저장될 수 있다. 다른 예로, 측정 파라미터는 대상체(302)와의 거리에 따라 정의될 수 있다. 또한, 측정 파라미터는 임계 거리를 확대하기 위해 변경되어야 파라미터를 포함할 수도 있다. According to various embodiments, the memory 330 may include at least one data required for a distance from the object 302 . According to an embodiment, the memory may include data related to a measurement parameter and a threshold distance. As described above, the measurement parameter may include an irradiation frequency (eg, frequency) of the light emitting module, an irradiation period (eg, exposure time), a frame rate, and the like. However, this is only an example, and the embodiment of the present invention is not limited thereto. For example, the measurement parameter may include various parameters such as irradiation intensity of the light emitting module. For example, the measurement parameter may be defined according to a measurement environment. For example, a measurement parameter suitable for the object 302 having relatively few movements and a measurement parameter suitable for the object 302 having relatively many movements may be distinguished and stored. As another example, the measurement parameter may be defined according to a distance from the object 302 . In addition, the measurement parameters may include parameters that must be changed in order to enlarge the threshold distance.

본 발명의 다양한 실시 예에 따르면, 전자 장치(예: 전자 장치(301))는 적어도 하나의 대상체를 포함하는 이미지를 획득하는 카메라 모듈(예: 카메라 모듈(340)), 상기 적어도 하나의 대상체에 대한 깊이 데이터를 생성하는 TOF 카메라(예: TOF 카메라(350)), 상기 카메라 모듈 및 상기 TOF 카메라와 작동적으로 연결된 적어도 하나의 프로세서(예: 프로세서(310)), 상기 프로세서에 작동적으로 연결된 적어도 하나의 메모리(예: 메모리(330)) 및 디스플레이(예: 디스플레이(360))를 포함할 수 있다. According to various embodiments of the present disclosure, an electronic device (eg, electronic device 301 ) includes a camera module (eg, camera module 340 ) that acquires an image including at least one object, and a TOF camera (eg, TOF camera 350) that generates depth data for It may include at least one memory (eg, the memory 330 ) and a display (eg, the display 360 ).

일 실시 예에 따르면, 상기 메모리는, 실행 시에, 상기 프로세서로 하여금, 상기 카메라 모듈을 이용하여 상기 이미지가 획득되는 동안, 상기 TOF 카메라를 이용하여 생성되는 상기 깊이 데이터에 기초하여 상기 적어도 하나의 대상체와 상기 전자 장치 간의 제 1 거리를 산출하고, 상기 산출된 제 1 거리가 지정된 거리보다 크다면 상기 TOF 카메라의 동작을 중단하고, 상기 TOF 카메라의 동작이 중단되는 동안 상기 카메라 모듈을 이용하여 상기 적어도 하나의 대상체와 상기 전자 장치 간의 제 2 거리를 산출하고, 상기 산출된 제 2 거리가 상기 지정된 거리 내에 있다면 상기 TOF 카메라의 동작을 재개하도록 하는 인스트럭션들을 저장할 수 있다.According to an embodiment, the memory, when executed, causes the processor to, while the image is acquired using the camera module, based on the depth data generated using the TOF camera, the at least one A first distance between the object and the electronic device is calculated, and if the calculated first distance is greater than a specified distance, the TOF camera is stopped, and the TOF camera is used while the TOF camera is stopped. Instructions for calculating a second distance between at least one object and the electronic device and resuming the operation of the TOF camera when the calculated second distance is within the specified distance may be stored.

다양한 실시 예에 따르면, 상기 인스트럭션은, 상기 카메라 모듈의 자동 초점 기능에 기반하여 상기 제 2 거리를 산출하도록 할 수 있다.According to various embodiments, the instruction may calculate the second distance based on an auto-focus function of the camera module.

다양한 실시 예에 따르면, 상기 인스트럭션은, 상기 산출된 제 1 거리가 지정된 거리보다 크다는 것을 알리는 통지 정보 제공하도록 할 수 있다. 일 실시 예에 따르면, 상기 인스트럭션은, 상기 제 1 거리가 지정된 거리 내에 포함되도록 가이드하는 정보를 포함하는 통지 정보를 제공하도록 할 수 있다.According to various embodiments, the instruction may provide notification information indicating that the calculated first distance is greater than a specified distance. According to an embodiment, the instruction may provide notification information including information guiding that the first distance is included within a specified distance.

다양한 실시 예에 따르면, 상기 인스트럭션은, 상기 산출된 제 1 거리가 지정된 거리보다 큰 상태에서 TOF 카메라의 동작을 지시하는 입력을 수신하는 경우, 상기 지정된 거리를 확대하고, 상기 확대된 지정된 거리 안에 존재하는 대상체에 대한 깊이 데이터를 생성하고, 상기 생성된 깊이 데이터에 기초하여 서비스를 제공하도록 할 수 있다.According to various embodiments, when receiving an input instructing the operation of the TOF camera while the calculated first distance is greater than the specified distance, the instruction enlarges the specified distance and exists within the enlarged specified distance It is possible to generate depth data for an object to perform a task, and to provide a service based on the generated depth data.

다양한 실시 예에 따르면, 상기 인스트럭션은, 상기 TOF 카메라와 관련된 발광 모듈(예: 발광 모듈(352))의 조사 빈도(예: frequency), 조사 주기(예: exposure time), 프레임 레이트 중 적어도 하나를 변경하여 상기 지정된 거리를 확대하도록 할 수 있다. According to various embodiments, the instructions include at least one of an irradiation frequency (eg, frequency), an irradiation period (eg, exposure time), and a frame rate of the light emitting module (eg, the light emitting module 352) related to the TOF camera. It can be changed to enlarge the specified distance.

다양한 실시 예에 따르면, 상기 인스트럭션은, 상기 카메라 모듈을 이용하여 상기 제 2 거리를 산출할 수 없는 경우, 상기 TOF 카메라를 이용하여 상기 제 2 거리를 산출하도록 할 수 있다. According to various embodiments, when the second distance cannot be calculated using the camera module, the instruction may calculate the second distance using the TOF camera.

다양한 실시 예에 따르면, 상기 인스트럭션은, 상기 TOF 카메라를 이용하여 상기 제 2 거리를 산출할 수 없는 경우, 상기 TOF 카메라와 관련된 기능을 종료시키도록 할 수 있다. According to various embodiments, the instruction may terminate a function related to the TOF camera when the second distance cannot be calculated using the TOF camera.

다양한 실시 예에 따르면, 상기 인스트럭션은, 상기 재개된 TOF 카메라의 측정 파라미터를 변경하면서 깊이 데이터를 생성하고, 상기 생성된 깊이 데이터에 기초하여 서비스를 제공하도록 할 수 있다. 일 실시 예에 따르면, 상기 측정 파라미터는, 상기 TOF 카메라와 관련된 발광 모듈의 조사 빈도, 조사 주기, 프레임 레이트 중 적어도 하나를 포함할 수 있다. According to various embodiments, the instruction may generate depth data while changing a measurement parameter of the resumed TOF camera, and provide a service based on the generated depth data. According to an embodiment, the measurement parameter may include at least one of an irradiation frequency, an irradiation period, and a frame rate of the light emitting module related to the TOF camera.

다양한 실시 예에 따르면, 상기 인스트럭션은, 촬영 모드 또는 환경 정보 중 적어도 하나에 기초하여 상기 측정 파라미터를 변경하도록 할 수 있다. 일 실시 예에 따르면, 상기 촬영 모드는, 동영상 모드 또는 정지 영상 모드 중 적어도 하나를 포함할 수 있다. 또한, 상기 환경 정보는, 상기 대상체의 움직임, 상기 대상체의 수, 상기 대상체의 종류 중 적어도 하나를 포함할 수 있다. According to various embodiments, the instruction may change the measurement parameter based on at least one of a shooting mode and environment information. According to an embodiment, the shooting mode may include at least one of a moving image mode and a still image mode. Also, the environment information may include at least one of a movement of the object, the number of the objects, and the type of the object.

다양한 실시 예에 따르면, 상기 TOF 카메라는, 빛이 물체에 반사되어 도착한 시간을 이용해서 상기 깊이 데이터를 생성할 수 있다. According to various embodiments, the TOF camera may generate the depth data using a time when light arrives after being reflected by an object.

도 4는 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행한 전후의 이미지를 나타내는 도면이다. 4 is a diagram illustrating an image before and after image enhancement is performed in an electronic device according to an exemplary embodiment.

일 실시 예에서, 전자 장치(301)는 카메라 모듈(예: 카메라 모듈(340))을 이용하여 이미지(400)를 획득할 수 있고, 획득한 이미지(400)를 디스플레이(360)를 통해 미리보기 화면(예: 제1 미리보기 화면)에 표시할 수 있다. 전자 장치(301)가 획득한 이미지(400)는 이미지 개선이 필요한 영역들을 포함할 수 있다. 예를 들어 도 4에 도시한 것과 같이, 형광등에 의해 빛 반사된 영역, 피사체에 의해 그림자가 발생한 영역, 촬영자에 의해 그림자가 발생한 영역이 있을 수 있다. In an embodiment, the electronic device 301 may acquire the image 400 using a camera module (eg, the camera module 340 ), and preview the acquired image 400 through the display 360 . It can be displayed on a screen (eg, the first preview screen). The image 400 acquired by the electronic device 301 may include regions requiring image improvement. For example, as shown in FIG. 4 , there may be an area where light is reflected by a fluorescent lamp, an area where a shadow is generated by a subject, and an area where a shadow is generated by a photographer.

일 실시 예에서, 전자 장치(301)는 이미지 개선 동작을 수행함으로써, 이미지(410)를 획득할 수 있다. 전자 장치(301)가 이미지 개선을 수행한 이미지(410)는 이미지(400)에서 이미지 개선이 필요한 영역들(예: 형광등에 의해 빛 반사된 영역, 피사체에 의해 그림자가 발생한 영역, 촬영자에 의해 그림자가 발생한 영역)이 제거된 이미지일 수 있다. 또한 전자 장치(301)는 디스플레이(360)를 통해 개선된 이미지(410)를 미리보기 화면(예: 제2 미리보기 화면)에 표시할 수도 있다. In an embodiment, the electronic device 301 may acquire the image 410 by performing an image enhancement operation. The image 410 on which the electronic device 301 has performed image improvement is a region in the image 400 requiring image improvement (eg, a region where light is reflected by a fluorescent lamp, a region where a shadow is generated by a subject, and a shadow by a photographer). It may be an image in which the area in which the ) has been removed. Also, the electronic device 301 may display the improved image 410 on a preview screen (eg, a second preview screen) through the display 360 .

다양한 실시 예에 따른 전자 장치(301)의 이미지 개선 동작은, 도 6 내지 도 16을 참조하여 후술한다. An image improvement operation of the electronic device 301 according to various embodiments will be described later with reference to FIGS. 6 to 16 .

도 5는 일 실시 예에 따른 전자 장치의 구성을 나타내는 도면이다. 5 is a diagram illustrating a configuration of an electronic device according to an embodiment.

도 5를 참조하면, 일 실시 예에 따른 전자 장치(500)는 하기와 같이 구성될 수 있다. 도시된 구성들은 일부 실시 예이고, 전자 장치(500)가 포함하는 플랫폼에 따라 도시된 구성 중 적어도 일부는 변경될 수 있다. Referring to FIG. 5 , an electronic device 500 according to an embodiment may be configured as follows. The illustrated configurations are examples, and at least some of the illustrated configurations may be changed according to a platform included in the electronic device 500 .

일 실시 예에 따른 전자 장치(500)는, 도 1의 전자 장치(101) 및 도 3의 전자 장치(301)에 대응할 수 있다. The electronic device 500 according to an embodiment may correspond to the electronic device 101 of FIG. 1 and the electronic device 301 of FIG. 3 .

일 실시 예에 따르면, 전자 장치(500)는 어플리케이션 계층(application layer)(510), 프레임워크 계층(framework layer)(520), 하드웨어 추상화 계층(HAL, hardware abstraction layer)(530), 커널 드라이버 계층(kernel driver layer)(540), 하드웨어 계층(hardware layer)(550)을 포함할 수 있다. According to an embodiment, the electronic device 500 includes an application layer 510 , a framework layer 520 , a hardware abstraction layer (HAL) 530 , and a kernel driver layer. It may include a kernel driver layer 540 and a hardware layer 550 .

일 실시 예에 따른 어플리케이션 계층(510)은 메모리(예: 도 1의 메모리(130))에 저장 및 프로세서(예: 도 1의 프로세서(120))에 의해 실행 가능한 적어도 하나의 어플리케이션(511) 및 시스템 UI(515)를 포함할 수 있다. The application layer 510 according to an embodiment includes at least one application 511 stored in a memory (eg, the memory 130 of FIG. 1 ) and executable by a processor (eg, the processor 120 of FIG. 1 ); A system UI 515 may be included.

일 실시 예에서, 어플리케이션(511)은 인터넷 브라우저, 비디오 어플리케이션, 게임 등 그 종류가 제한되지 않을 수 있다. In an embodiment, the type of the application 511 may not be limited, such as an Internet browser, a video application, or a game.

일 실시 예에서, 시스템 UI(515)는 상태 표시줄(notification bar), 퀵 뷰(quick view)와 같이 전자 장치(예: 도 1의 전자 장치(101))의 시스템 상에서 구현하는 다양한 GUI(graphic user interface) 화면을 구성하는 어플리케이션을 의미할 수 있다. 또한 시스템 UI(515)는 시스템과 관련된 화면을 표시하기 위한 어플리케이션일 수 있다. In an embodiment, the system UI 515 includes various GUI (graphics) implemented on a system of an electronic device (eg, the electronic device 101 of FIG. 1 ) such as a status bar and a quick view. user interface) may mean an application constituting the screen. Also, the system UI 515 may be an application for displaying a screen related to the system.

일 실시 예에 따른 프레임워크 계층(520)은 전자 장치(예: 도 1의 전자 장치(101))의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(511)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(511)으로 제공할 수 있다. The framework layer 520 according to an embodiment provides various functions so that a function or information provided from one or more resources of the electronic device (eg, the electronic device 101 of FIG. 1 ) can be used by the application 511 . It may be provided as an application 511 .

일 실시 예에 따른 프레임워크 계층(520)은 액티비티 매니저(activity manager)(512), 윈도우 매니저(window manager)(522), 뷰 시스템(view system)(523), 파워 매니저(power manager)(524), 입력 매니저(input manager)(525), 디스플레이 매니저(display manager)(526), 센서 매니저(sensor manager)(527)를 포함할 수 있다. The framework layer 520 according to an embodiment includes an activity manager 512 , a window manager 522 , a view system 523 , and a power manager 524 . ), an input manager 525 , a display manager 526 , and a sensor manager 527 .

일 실시 예에 따른 액티비티 매니저(512)는 어플리케이션(511)의 생명 주기(life cycle)와 액티비티 스택(stack)을 제어할 수 있다. The activity manager 512 according to an embodiment may control a life cycle and an activity stack of the application 511 .

일 실시 예에 따른 윈도우 매니저(522)는 디스플레이(예: 도 1의 디스플레이(160))의 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. The window manager 522 according to an embodiment may manage one or more GUI resources used on a screen of a display (eg, the display 160 of FIG. 1 ).

일 실시 예에 따른 뷰 시스템(523)은 어플리케이션(511)에 대한 사용자 인터페이스 생성에 사용되는 확장 가능한 뷰들의 집합일 수 있다. The view system 523 according to an embodiment may be a set of extensible views used to generate a user interface for the application 511 .

일 실시 예에 따른 파워 매니저(524)는 배터리(예: 도 1의 배터리(189))의 용량, 온도 또는 전원을 관리할 수 있다. 또한 파워 매니저(524)는 상기 관리 중 획득한 정보를 이용하여 전자 장치(예: 도 1의 전자 장치(101))의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. The power manager 524 according to an embodiment may manage capacity, temperature, or power of a battery (eg, the battery 189 of FIG. 1 ). Also, the power manager 524 may determine or provide related information necessary for the operation of the electronic device (eg, the electronic device 101 of FIG. 1 ) by using the information acquired during the management.

일 실시 예에 따른 입력 매니저(525)는 전자 장치(예: 도 1의 전자 장치(101))에서 제공하는 입력 장치의 정보를 제공할 수 있다. The input manager 525 according to an embodiment may provide information on the input device provided by the electronic device (eg, the electronic device 101 of FIG. 1 ).

일 실시 예에 따른 디스플레이 매니저(526)는 디스플레이(예: 도 1의 디스플레이(160))의 생명 주기(life cycle)(예: 연결/속성 변경/제거)를 관리할 수 있다. 또한 디스플레이 매니저(526)는 디스플레이(예: 도 1의 디스플레이(160))의 화면에서 GUI 요소의 출력에 대한 관리를 수행할 수 있고, 접힘 상태 변경과 같은 이벤트에 의해 출력할 디스플레이(예: 도 1의 디스플레이(160))를 변경할 수도 있다. The display manager 526 according to an embodiment may manage a life cycle (eg, connection/property change/removal) of a display (eg, the display 160 of FIG. 1 ). In addition, the display manager 526 may manage the output of GUI elements on the screen of the display (eg, the display 160 of FIG. 1 ), and the display (eg, the display 160 of FIG. 1 ) to be output according to an event such as a change in the folded state. The display 160 of 1 may be changed.

일 실시 예에 따른 센서 매니저(527)는 어플리케이션(511)의 사용성에 기반하여 센서(예: 도 1의 센서 모듈(176))를 제어할 수 있다. The sensor manager 527 according to an embodiment may control a sensor (eg, the sensor module 176 of FIG. 1 ) based on the usability of the application 511 .

다양한 실시 예에서 프레임워크 계층(520)에 포함된 구성들은 ISPPM(intelligent shadow perspective prediction manager)에 포함되는 구성일 수 있다. In various embodiments, components included in the framework layer 520 may be components included in an intelligent shadow perspective prediction manager (ISPPM).

일 실시 예에 따른 하드웨어 추상화 계층(530)은 하드웨어 계층(550)에 포함된 복수의 하드웨어 구성들과 전자 장치(예: 도 1의 전자 장치(101))의 소프트웨어 구성들 사이의 추상화된 계층을 의미할 수 있다. 일 실시 예에 따른 하드웨어 추상화 계층(530)은 입력 디스패처(input dispatcher)(531), 이벤트 허브(event hub)(532), 서피스 플린저(surface flinger)(533)를 포함할 수 있다. The hardware abstraction layer 530 according to an embodiment is an abstraction layer between a plurality of hardware components included in the hardware layer 550 and software components of an electronic device (eg, the electronic device 101 of FIG. 1 ). can mean The hardware abstraction layer 530 according to an embodiment may include an input dispatcher 531 , an event hub 532 , and a surface flinger 533 .

일 실시 예에 따른 입력 디스패처(531)는 입력 이벤트를 입력 대상 윈도우, 프로세스 또는 어플리케이션(511)으로 전달할지 결정할 수 있고, 결정에 따라 입력 이벤트를 전달할 수 있다. The input dispatcher 531 according to an embodiment may determine whether to transmit the input event to the input target window, process, or application 511 , and may transmit the input event according to the determination.

일 실시 예에 따른 이벤트 허브(532)는 센서(예: 도 1의 센서 모듈(176))에서 발생하는 입력 이벤트의 표준화를 수행할 수 있다. The event hub 532 according to an embodiment may standardize an input event generated by a sensor (eg, the sensor module 176 of FIG. 1 ).

일 실시 예에 따른 서피스 플린저(533)는 어플리케이션(511)에서 생성된 실행 화면 중 디스플레이(예: 도 1의 디스플레이(160))에 표시할 실행 화면을 제공하는 기능을 수행할 수 있다. 또한 서피스 플린저(533)는 디스플레이(예: 도 1의 디스플레이(160)) 구성 변경 시에 변경된 디스플레이 구성에 따라 해상도 및 밀집도의 변경을 처리하도록 어플리케이션(511)에 요청할 수 있다. The surface flinger 533 according to an embodiment may perform a function of providing an execution screen to be displayed on a display (eg, the display 160 of FIG. 1 ) among execution screens generated by the application 511 . Also, when the configuration of the display (eg, the display 160 of FIG. 1 ) is changed, the surface flinger 533 may request the application 511 to process the change in resolution and density according to the changed display configuration.

일 실시 예에 따른 커널 드라이버 계층(540)은 전자 장치(예: 도 1의 전자 장치(101))에 포함된 하드웨어들을 제어하기 위해 복수의 드라이버들을 포함할 수 있다. 또한 일 실시 예에 따른 커널 드라이버 계층(540)은 터치 드라이버(541), 센서 드라이버(542), 일반 디스플레이(543), 및 DDI 컨트롤러(544)를 포함할 수 있다. The kernel driver layer 540 according to an embodiment may include a plurality of drivers to control hardware included in the electronic device (eg, the electronic device 101 of FIG. 1 ). Also, the kernel driver layer 540 according to an embodiment may include a touch driver 541 , a sensor driver 542 , a general display 543 , and a DDI controller 544 .

일 실시 예에서, 터치 드라이버(541)는 터치 컨트롤러(551)를 제어하는 인터페이스를 포함할 수 있고, 터치 컨트롤러(551)를 제어할 수 있다. In an embodiment, the touch driver 541 may include an interface for controlling the touch controller 551 and may control the touch controller 551 .

일 실시 예에서, 센서 드라이버(542)는 센서 컨트롤러(552)를 제어하는 인터페이스를 포함할 수 있고, 센서 컨트롤러(552)를 제어할 수 있다. In an embodiment, the sensor driver 542 may include an interface for controlling the sensor controller 552 and may control the sensor controller 552 .

일 실시 예에서, DDI 컨트롤러(544)는 일반 디스플레이(543)를 구동할 수 있다. In an embodiment, the DDI controller 544 may drive the general display 543 .

일 실시 예에 따른 하드웨어 계층(550)은 터치 컨트롤러(551), 센서 컨트롤러(552), 디스플레이 컨트롤러(553), 및 LCD 패널(554)을 포함할 수 있다. The hardware layer 550 according to an embodiment may include a touch controller 551 , a sensor controller 552 , a display controller 553 , and an LCD panel 554 .

다양한 실시 예에 따르면 전자 장치(500)에 포함되는 구성들(예: 어플리케이션 계층(510), 프레임워크 계층(520), 하드웨어 추상화 계층(530), 커널 드라이버 계층(540), 및 하드웨어 계층(750)에 포함되는 구성들)은 프로세서(예: 도 1의 프로세서(120) 또는 도 3의 프로세서(310))에 의해 제어될 수 있다. According to various embodiments, components included in the electronic device 500 (eg, the application layer 510 , the framework layer 520 , the hardware abstraction layer 530 , the kernel driver layer 540 , and the hardware layer 750 ) ) may be controlled by a processor (eg, the processor 120 of FIG. 1 or the processor 310 of FIG. 3 ).

도 6은 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 흐름을 나타내는 흐름도이다. 6 is a flowchart illustrating a flow of performing image enhancement in an electronic device according to an exemplary embodiment.

다양한 실시 예에 따르면, 동작 610 내지 동작 650은 전자 장치(301)의 프로세서(310)에 의해 제어될 수 있고, 프로세서(310)에 의해 처리된 데이터는 적어도 일시적으로 메모리(330)에 저장될 수 있다. According to various embodiments, operations 610 to 650 may be controlled by the processor 310 of the electronic device 301 , and data processed by the processor 310 may be at least temporarily stored in the memory 330 . have.

일 실시 예에 따르면, 동작 610에서 전자 장치(301)는 제1 카메라 모듈(342)을 이용하여 획득된 피사체 이미지를 포함하는 제1 이미지를 표시하는 제1 미리보기 화면을 디스플레이(360)를 통해 표시할 수 있다. According to an embodiment, in operation 610 , the electronic device 301 displays a first preview screen displaying a first image including a subject image acquired using the first camera module 342 through the display 360 . can be displayed

일 실시 예에서, 전자 장치(301)의 카메라 모듈(340)은 복수의 카메라 모듈(예: 제1 카메라 모듈(342), 제2 카메라 모듈(344))을 포함할 수 있다. 예를 들어 제1 카메라 모듈(342)은 광각 카메라를 포함하는 카메라 모듈일 수 있고, 제2 카메라 모듈(344)은 망원 카메라를 포함하는 카메라 모듈일 수 있다. In an embodiment, the camera module 340 of the electronic device 301 may include a plurality of camera modules (eg, a first camera module 342 and a second camera module 344 ). For example, the first camera module 342 may be a camera module including a wide-angle camera, and the second camera module 344 may be a camera module including a telephoto camera.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 복수의 카메라 모듈(예: 제1 카메라 모듈(342), 제2 카메라 모듈(344))을 이용하여 이미지들을 획득할 수 있다. 예를 들어 전자 장치(301)는 프로세서(310)의 제어에 따라, 제1 카메라 모듈(342)에 포함된 광각 카메라를 이용하여 피사체를 촬영함으로써 피사체 이미지를 포함하는 제1 이미지를 획득할 수 있다. In an embodiment, the electronic device 301 may acquire images using a plurality of camera modules (eg, the first camera module 342 and the second camera module 344 ) under the control of the processor 310 . have. For example, the electronic device 301 may acquire the first image including the subject image by photographing the subject using the wide-angle camera included in the first camera module 342 under the control of the processor 310 . .

일 실시 예에서, 전자 장치(301)는 카메라 모듈(예: 제1 카메라 모듈(342))을 이용하여 획득한 이미지(예: 제1 이미지)를 표시하는 미리보기 화면(예: 제1 미리보기 화면)을 프로세서(310)의 제어에 따라 디스플레이(예: 디스플레이(360))를 통해 표시할 수 있다. 예를 들어, 도 4를 참조하면, 전자 장치(301)는 광각 카메라를 포함하는 제1 카메라 모듈(342)을 이용하여 프로세서(310)의 제어에 따라 제1 이미지(예: 이미지(400))를 디스플레이(360)를 통해 표시할 수 있다. 이 경우 표시되는 디스플레이(360)의 화면은 제1 미리보기 화면일 수 있다. 다른 예를 들어, 전자 장치(301)의 제1 미리보기 화면에 표시되는 제1 이미지(예: 이미지(400))는 이미지 개선이 필요한 영역들(예: 형광등에 의해 빛 반사된 영역, 피사체에 의해 그림자가 발생한 영역, 촬영자에 의해 그림자가 발생한 영역)을 포함하는 이미지일 수 있다. In an embodiment, the electronic device 301 displays a preview screen (eg, a first preview) that displays an image (eg, a first image) acquired by using a camera module (eg, the first camera module 342 ). screen) may be displayed through a display (eg, the display 360 ) under the control of the processor 310 . For example, referring to FIG. 4 , the electronic device 301 uses a first camera module 342 including a wide-angle camera to obtain a first image (eg, an image 400 ) under the control of the processor 310 . may be displayed through the display 360 . In this case, the displayed screen of the display 360 may be the first preview screen. As another example, the first image (eg, the image 400 ) displayed on the first preview screen of the electronic device 301 is a region requiring image improvement (eg, a region reflected by a fluorescent lamp, It may be an image including an area in which a shadow is generated by the photographer, an area in which a shadow is generated by the photographer).

일 실시 예에 따르면, 동작 620에서 전자 장치(301)는 제1 이미지가 이미지 개선이 필요한지 판단하는 조건을 만족하는지 여부를 결정할 수 있다. According to an embodiment, in operation 620, the electronic device 301 may determine whether the first image satisfies a condition for determining whether image improvement is required.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 제1 미리보기 화면에 표시되는 제1 이미지가 이미지 개선이 필요한지 여부를 조건을 통해 결정할 수 있다. 예를 들면 전자 장치(301)는 이미지 개선에 관한 조건(예: 임계 값 조건)이 설정되어 있을 수 있다. 구체적인 예를 들면, 제1 이미지에 피사체 또는 촬영자에 의해 생긴 그림자 영역 또는 피사체에 의해 발생한 빛 반사 영역이 존재하는 경우가 있을 수 있다. 전자 장치(301)가 프로세서(310)의 제어에 따라 그림자 영역 또는 빛 반사 영역에 대한 값이 임계 값 이상이라고 판단할 수 있다. 이 경우 전자 장치(301)는 프로세서(310)의 제어에 따라 제1 이미지가 이미지 개선이 필요하다고 결정할 수 있다. In an embodiment, the electronic device 301 may determine whether the first image displayed on the first preview screen needs image improvement under the control of the processor 310 based on a condition. For example, in the electronic device 301, a condition (eg, a threshold condition) related to image improvement may be set. As a specific example, in the first image, there may be a case in which a shadow area generated by a subject or a photographer or a light reflection area generated by the subject exists. The electronic device 301 may determine that the value of the shadow region or the light reflection region is equal to or greater than a threshold value under the control of the processor 310 . In this case, the electronic device 301 may determine that the first image needs image improvement under the control of the processor 310 .

일 실시 예에 따른 동작 620에 대한 상세한 설명은 도 7을 참조하여 설명한다. A detailed description of operation 620 according to an embodiment will be described with reference to FIG. 7 .

일 실시 예에 따르면, 동작 630에서 전자 장치(301)는 제2 카메라 모듈(344)을 이용하여 피사체 이미지를 포함하는 제2 이미지를 획득할 수 있다.According to an embodiment, in operation 630 , the electronic device 301 may acquire a second image including a subject image using the second camera module 344 .

일 실시 예에서, 전자 장치(301)의 제2 카메라 모듈(344)은 망원 카메라를 포함하는 카메라 모듈일 수 있다. 예를 들어 전자 장치(301)는 제2 카메라 모듈(344)에 포함된 망원 카메라를 이용하는 경우, 제1 카메라 모듈(342)에 포함된 광각 카메라를 이용하는 경우보다 멀리 있는 피사체를 촬영하기에 용이할 수 있다. In an embodiment, the second camera module 344 of the electronic device 301 may be a camera module including a telephoto camera. For example, when the electronic device 301 uses the telephoto camera included in the second camera module 344, it may be easier to photograph a distant subject than when the wide-angle camera included in the first camera module 342 is used. can

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 제2 카메라 모듈(344)에 포함된 망원 카메라를 이용하여 피사체를 촬영할 수 있다. 이 경우 전자 장치(301)는 망원 카메라를 이용하여 촬영함으로써 피사체 이미지를 포함하는 제2 이미지를 획득할 수 있다. In an embodiment, the electronic device 301 may photograph a subject using a telephoto camera included in the second camera module 344 under the control of the processor 310 . In this case, the electronic device 301 may acquire the second image including the subject image by photographing it using a telephoto camera.

일 실시 예에서, 피사체와 전자 장치(301) 사이의 거리 값은, 전자 장치(301)가 제1 카메라 모듈(342)에 포함된 광각 카메라를 이용하여 제1 이미지를 획득하는 경우보다, 제2 카메라 모듈(344)에 포함된 망원 카메라를 이용하여 제2 이미지를 획득하는 경우가 더 클 수 있다. In an embodiment, the distance value between the subject and the electronic device 301 is higher than when the electronic device 301 acquires the first image using the wide-angle camera included in the first camera module 342 , the second The case of acquiring the second image by using the telephoto camera included in the camera module 344 may be greater.

일 실시 예에 따르면, 동작 640에서 전자 장치(301)는 조건을 만족하는 것으로 결정된 경우, 제1 이미지의 제1 피사체 좌표 및 제2 이미지의 제2 피사체 좌표를 대응시킬 수 있다. According to an embodiment, when it is determined that the condition is satisfied in operation 640 , the electronic device 301 may match the first object coordinates of the first image and the second object coordinates of the second image.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라, 피사체 이미지를 포함하는 제1 이미지를 획득하는 중에 피사체 좌표(예: 제1 피사체 좌표)를 생성했을 수 있다. 예를 들어, 도 4를 참조하면, 전자 장치(301)는 이미지(400)를 획득하는 중에 이미지(400)에 포함된 피사체(예: 시계)에 대한 피사체 좌표(예: 제1 피사체 좌표)를 생성했을 수 있다. In an embodiment, the electronic device 301 may generate object coordinates (eg, first object coordinates) while acquiring the first image including the object image under the control of the processor 310 . For example, referring to FIG. 4 , the electronic device 301 obtains object coordinates (eg, first object coordinates) for a subject (eg, a watch) included in the image 400 while acquiring the image 400 . may have created

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라, 피사체 이미지를 포함하는 제2 이미지를 획득하는 중에 피사체 좌표(예: 제2 피사체 좌표)를 생성했을 수 있다. 또한 예를 들어, 피사체와 전자 장치(301) 사이의 거리 값은 전자 장치(301)가 제1 카메라 모듈(342)을 이용하여 제1 이미지를 획득하는 경우보다, 제2 카메라 모듈(344)을 이용하여 제2 이미지를 획득하는 경우가 더 클 수 있으므로, 제2 피사체 좌표는 제1 피사체 좌표와 다를 수 있다. In an embodiment, the electronic device 301 may generate object coordinates (eg, second object coordinates) while acquiring the second image including the object image under the control of the processor 310 . Also, for example, the value of the distance between the subject and the electronic device 301 is higher than when the electronic device 301 acquires the first image by using the first camera module 342 , rather than using the second camera module 344 . Since the case where the second image is obtained by using the second image may be greater, the second object coordinates may be different from the first object coordinates.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라, 제1 이미지에 관한 제1 피사체 좌표와 제2 이미지에 관한 제2 피사체 좌표를 대응시킬 수 있다. In an embodiment, the electronic device 301 may match the first object coordinates of the first image with the second object coordinates of the second image under the control of the processor 310 .

일 실시 예에 따르면, 동작 650에서 전자 장치(301)는 제1 이미지 및 제2 이미지를 합성한 합성 이미지를 표시하는 제2 미리보기 화면을 디스플레이를 통해서 표시할 수 있다. According to an embodiment, in operation 650 , the electronic device 301 may display a second preview screen displaying a composite image obtained by synthesizing the first image and the second image through the display.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라, 피사체 좌표(예: 제1 피사체 좌표, 제2 피사체 좌표)를 대응한 이미지들(예: 제1 이미지, 제2 이미지)을 합성(또는 정합)함으로써 합성 이미지를 생성할 수 있다. 예를 들어, 도 4를 참조하면, 전자 장치(301)는 프로세서(310)의 제어에 따라 합성 이미지(예: 이미지(410))를 생성할 수 있다. 또한 이 경우 이미지(410)는 이미지 개선이 필요한 영역들(예: 형광등에 의해 빛 반사된 영역, 피사체에 의해 그림자가 발생한 영역, 촬영자에 의해 그림자가 발생한 영역)이 제거된 이미지일 수 있다. In an embodiment, the electronic device 301 controls images (eg, first image, second image) corresponding to object coordinates (eg, first object coordinates, second object coordinates) under the control of the processor 310 . ) can be synthesized (or registered) to create a composite image. For example, referring to FIG. 4 , the electronic device 301 may generate a composite image (eg, an image 410 ) under the control of the processor 310 . Also, in this case, the image 410 may be an image in which regions requiring image improvement (eg, a region reflected by a fluorescent lamp, a region in which a shadow is generated by a subject, an region in which a shadow is generated by a photographer) are removed.

도 7은 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 구체적인 흐름의 일부를 나타내는 흐름도이다. 도 7의 동작 710 내지 동작 750은, 도 6의 동작 620과 관련된 구체적인 흐름이다. 7 is a flowchart illustrating a part of a detailed flow of performing image enhancement in an electronic device according to an exemplary embodiment. Operations 710 to 750 of FIG. 7 are specific flows related to operation 620 of FIG. 6 .

다양한 실시 예에 따르면, 도 7의 동작 710 내지 동작 750은 전자 장치(301)의 프로세서(310)에 의해 제어될 수 있고, 프로세서(310)에 의해 처리된 데이터는 적어도 일시적으로 메모리(330)에 저장될 수 있다. According to various embodiments, operations 710 to 750 of FIG. 7 may be controlled by the processor 310 of the electronic device 301 , and data processed by the processor 310 is at least temporarily stored in the memory 330 . can be saved.

다양한 실시 예들에 따른 동작 710 내지 동작 750은 도 8 내지 11을 참조하여 설명할 수 있고, 다양한 실시 예들은 후술하는 바에 따라 제한되지 않을 수 있다. Operations 710 to 750 according to various embodiments may be described with reference to FIGS. 8 to 11 , and various embodiments may not be limited as described below.

일 실시 예에 따르면, 동작 710에서 전자 장치(301)는 제1 미리보기 화면의 피사체 이미지 영역을 구분할 수 있다. According to an embodiment, in operation 710, the electronic device 301 may classify the subject image area of the first preview screen.

일 실시 예에 따른 동작 710은, 일 실시 예에 따라 전자 장치에서 이미지 개선을 수행하는 중 미리보기 화면의 피사체 이미지 영역을 구분하는 실시 예를 나타내는 도 8을 참조하여 설명한다. Operation 710 according to an embodiment will be described with reference to FIG. 8 showing an embodiment of dividing a subject image area of a preview screen while image enhancement is being performed in the electronic device according to an embodiment.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 제1 미리보기 화면에 피사체 이미지 영역 및 피사체 이미지를 제외한 이미지 영역을 표시하고 있을 수 있다. 도 8을 참조하면, 전자 장치(301)는 텍스트가 포함된 피사체 이미지(800) 또는 형태에 특징이 있는 피사체 이미지(810)를 프로세서(310)의 제어에 따라 제1 미리보기 화면에 표시할 수 있다. In an embodiment, the electronic device 301 may display the subject image area and the image area excluding the subject image on the first preview screen under the control of the processor 310 . Referring to FIG. 8 , the electronic device 301 may display a subject image 800 including text or a subject image 810 having a shape on the first preview screen under the control of the processor 310 . have.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 피사체 이미지 영역(예: 텍스트가 포함된 피사체 이미지 영역(802), 형태에 특징이 있는 피사체 이미지 영역(812))을 구분할 수 있다. 예를 들어, 도 8을 참조하면, 전자 장치(301)는 프로세서(310)의 제어에 따라 텍스트가 포함된 피사체(801) 또는 형태에 특징이 있는 피사체(811)를 제1 미리보기 화면을 통해 이미지(예: 제1 이미지)로써 표시하고 있을 수 있다. 전자 장치(301)는 프로세서(310)의 제어에 따라 텍스트가 포함된 피사체(801)를 구분하는 가이드(802)를 생성할 수 있고, 형태에 특징이 있는 피사체(811)를 구분하는 가이드(812)를 생성할 수 있다. 이 경우 전자 장치(301)는 프로세서(310)의 제어에 따라 가이드(802, 812)를 생성함으로써, 피사체 이미지 영역(예: 텍스트가 포함된 피사체 이미지 영역(802), 형태에 특징이 있는 피사체 이미지 영역(812))을 구분할 수 있다. In an embodiment, the electronic device 301 divides the subject image area (eg, the subject image area 802 including text and the subject image area 812 having a shape characteristic) under the control of the processor 310 . can For example, referring to FIG. 8 , the electronic device 301 displays a subject 801 including text or a subject 811 having a shape through a first preview screen under the control of the processor 310 . It may be displayed as an image (eg, the first image). The electronic device 301 may generate a guide 802 for classifying the subject 801 including text under the control of the processor 310 , and a guide 812 for classifying the subject 811 having a shape characteristic. ) can be created. In this case, the electronic device 301 generates the guides 802 and 812 under the control of the processor 310 , thereby generating a subject image area (eg, a subject image area 802 including text, a subject image having a shape). region 812) can be divided.

일 실시 예에 따르면, 동작 720에서 전자 장치(301)는 이미지 개선이 필요한지 판단하는 임계 값 조건을 만족하는지 판단할 수 있다. According to an embodiment, in operation 720, the electronic device 301 may determine whether a threshold condition for determining whether image improvement is required is satisfied.

일 실시 예에 따른 동작 720은, 일 실시 예에 따라 전자 장치에서 이미지 개선을 수행하는 중 이미지 개선이 필요한지 판단하는 임계 값 조건을 만족하는지 판단하는 실시 예를 나타내는 도 9를 참조하여 설명한다. Operation 720 according to an embodiment will be described with reference to FIG. 9 showing an embodiment of determining whether the electronic device satisfies the threshold value condition for determining whether image improvement is necessary while performing image improvement, according to an embodiment.

일 실시 예에서, 전자 장치(301)는 이미지 개선이 필요한지 여부를 판단함에 있어서 제1 이미지 영역(910)에 기반할 수 있다. 예를 들어, 도 9에 도시한 것과 같이, 제1 이미지 영역(910)은 피사체 및 피사체의 그림자를 포함할 수 있다. 전자 장치(301)는 피사체 및 피사체의 그림자를 포함하는 제1 이미지 영역(910)에 기반하여 프로세서(310)의 제어에 따라 이미지 개선이 필요한지 여부를 판단할 수 있다. In an embodiment, the electronic device 301 may determine whether image improvement is necessary based on the first image area 910 . For example, as shown in FIG. 9 , the first image area 910 may include a subject and a shadow of the subject. The electronic device 301 may determine whether image improvement is required under the control of the processor 310 based on the first image area 910 including the subject and the subject's shadow.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 제1 이미지 영역(910)에서 배경 영역(920)을 구분할 수 있다. 예를 들어, 전자 장치(301)는 피사체 및 피사체의 그림자를 포함하는 제1 이미지 영역(910)에서 프로세서(310)의 제어에 따라 피사체를 제외한 나머지 영역을 구분할 수 있다. In an embodiment, the electronic device 301 may distinguish the background area 920 from the first image area 910 under the control of the processor 310 . For example, the electronic device 301 may classify the remaining areas excluding the subject from the first image area 910 including the subject and the subject's shadow under the control of the processor 310 .

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 제1 이미지(910)에서 피사체 경계면의 색차(예: 피사체 및 피사체를 제외한 영역의 색차)에 대해 색차 값을 획득할 수 있다. In an embodiment, the electronic device 301 may obtain a color difference value for a color difference (eg, a color difference between the subject and an area excluding the subject) of the subject boundary in the first image 910 under the control of the processor 310 . have.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 상기 색차 값이 임계 값 이상인지를 판단(예: 임계 값 조건을 만족하는지 판단)할 수 있다. 예를 들어 전자 장치(301)는 프로세서(310)의 제어에 따라 상기 색차 값이 임계 값 이상이 아닌 경우에는 임계 값 조건을 만족하지 않는다고 판단할 수 있다. 또한 전자 장치(301)는 프로세서(310)의 제어에 따라 상기 색차 값이 임계 값 이상일 경우에는 임계 값 조건을 만족한다고 판단할 수 있다. In an embodiment, the electronic device 301 may determine whether the color difference value is equal to or greater than a threshold value (eg, determine whether a threshold value condition is satisfied) under the control of the processor 310 . For example, when the color difference value is not equal to or greater than a threshold value under the control of the processor 310 , the electronic device 301 may determine that the threshold value condition is not satisfied. Also, when the color difference value is equal to or greater than a threshold value under the control of the processor 310 , the electronic device 301 may determine that the threshold value condition is satisfied.

일 실시 예에 따르면, 동작 730에서 전자 장치(301)는 임계 값 조건을 만족하는 경우 TOF 카메라를 이용하여 피사체 및 광원의 거리 값을 획득할 수 있다. According to an embodiment, in operation 730, when the threshold condition is satisfied, the electronic device 301 may obtain a distance value between the subject and the light source by using the TOF camera.

일 실시 예에 따른 동작 730은, 일 실시 예에 따라 전자 장치에서 이미지 개선을 수행하는 중 TOF 카메라를 이용하여 피사체 및 광원의 거리 값을 획득하는 실시 예를 나타내는 도 10을 참조하여 설명한다.Operation 730 according to an embodiment will be described with reference to FIG. 10 showing an embodiment of obtaining distance values between a subject and a light source using a TOF camera while image enhancement is being performed in an electronic device, according to an embodiment.

도 10을 참조하면, 광원에 따른 그림자의 길이(1000), 물체의 표면에 따른 입사각과 반사각(1010)에 관한 관계를 알 수 있다. Referring to FIG. 10 , the relationship between the length of the shadow 1000 according to the light source and the incident angle and the reflection angle 1010 according to the surface of the object can be seen.

일 실시 예에서, 전자 장치(301)는 TOF 카메라(350)를 이용하여 피사체 및 광원의 거리 값을 획득할 수 있다. In an embodiment, the electronic device 301 may obtain a distance value between the subject and the light source using the TOF camera 350 .

일 실시 예에 따르면, 동작 740에서 전자 장치(301)는 피사체의 특징점 추출 및 추출된 특징점에 기반하여 제1 피사체 좌표를 생성할 수 있다. According to an embodiment, in operation 740 , the electronic device 301 may extract key points of the subject and generate first object coordinates based on the extracted key points.

일 실시 예에 따른 동작 740은, 일 실시 예에 따라 전자 장치에서 이미지 개선을 수행하는 중 피사체 좌표의 생성 및 제2 카메라로 전환하는 실시 예를 나타내는 도 11을 참조하여 설명한다. Operation 740 according to an embodiment will be described with reference to FIG. 11 showing an embodiment of generating object coordinates and switching to a second camera while image enhancement is being performed in the electronic device, according to an embodiment.

일 실시 예에서, 전자 장치(301)는 동작 730에서 획득한 피사체 및 광원의 거리 값을 이용하여 프로세서(310)의 제어에 따라 피사체의 특징점을 추출할 수 있다. 예를 들어, 전자 장치(301)는 제1 카메라 모듈(1100)(예: 도 3의 제1 카메라 모듈(342)에 대응)에 기반하여 피사체에 대한 제1 이미지를 획득할 수 있다. 이 경우 전자 장치(301)는 피사체와 h1의 거리 값을 가질 수 있다. 전자 장치(301)는 획득한 피사체의 거리 값 및 광원의 거리 값을 이용하여 피사체의 특징점을 추출할 수 있다. In an embodiment, the electronic device 301 may extract a feature point of the subject under the control of the processor 310 using the distance values between the subject and the light source obtained in operation 730 . For example, the electronic device 301 may acquire a first image of the subject based on the first camera module 1100 (eg, corresponding to the first camera module 342 of FIG. 3 ). In this case, the electronic device 301 may have a distance value of h1 from the subject. The electronic device 301 may extract a feature point of the subject by using the obtained distance value of the subject and the distance value of the light source.

일 실시 예에서, 전자 장치(301)는 추출한 피사체의 특징점에 기반하여 프로세서(310)의 제어에 따라 피사체 좌표(예: 제1 피사체 좌표)를 생성할 수 있다. 예를 들어 전자 장치(301)는 이미지(예: 제1 이미지)를 획득하는 중에 추출한 피사체의 특징점에 기반하여 프로세서(310)의 제어에 따라 피사체 좌표(예: 제1 피사체 좌표)를 생성할 수 있고, 피사체 좌표(예: 제1 피사체 좌표)는 3D 공간 좌표(예: 제1 피사체 좌표(X, Y, Z))일 수 있다. In an embodiment, the electronic device 301 may generate object coordinates (eg, first object coordinates) under the control of the processor 310 based on the extracted feature points of the object. For example, the electronic device 301 may generate object coordinates (eg, first object coordinates) under the control of the processor 310 based on the feature points of the object extracted while acquiring the image (eg, the first image). and the object coordinates (eg, first object coordinates) may be 3D spatial coordinates (eg, first object coordinates (X, Y, Z)).

일 실시 예에 따르면, 동작 750에서 전자 장치(301)는 제2 카메라 모듈(1110)로 전환할 수 있다. 제2 카메라 모듈(1110)은 망원 카메라를 포함할 수 있고, 도 3의 제2 카메라 모듈(344)에 대응할 수 있다. According to an embodiment, in operation 750 , the electronic device 301 may switch to the second camera module 1110 . The second camera module 1110 may include a telephoto camera and may correspond to the second camera module 344 of FIG. 3 .

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라 제1 카메라 모듈(1100)에서 제2 카메라 모듈(1110)로 전환할 수 있다. 예를 들어, 전자 장치(301)는 이미지(예: 제1 이미지)의 개선이 필요하다고 판단한 경우에 프로세서(310)의 제어에 따라 제1 카메라 모듈(1100)에서 제2 카메라 모듈(1110)로 전환할 수 있다. In an embodiment, the electronic device 301 may switch from the first camera module 1100 to the second camera module 1110 under the control of the processor 310 . For example, when it is determined that the image (eg, the first image) needs to be improved, the electronic device 301 switches from the first camera module 1100 to the second camera module 1110 under the control of the processor 310 . can be switched

일 실시 예에서, 전자 장치(301)는 전자 장치(301)와 피사체와의 거리 값이 커진 것을 감지한 경우에 프로세서(310)의 제어에 따라 제2 카메라 모듈로 전환할 수 있다. 예를 들어 전자 장치(301)와 피사체의 거리 값이 h1에서 h2로 커진 경우에, 전자 장치(301)는 프로세서(310)의 제어에 따라 망원 카메라로 촬영을 수행하기 위해 제2 카메라 모듈(1110)로 전환할 수 있다. In an embodiment, when detecting that the distance value between the electronic device 301 and the subject increases, the electronic device 301 may switch to the second camera module under the control of the processor 310 . For example, when the distance value between the electronic device 301 and the subject increases from h1 to h2, the electronic device 301 controls the processor 310 to capture the image with the telephoto camera by using the second camera module 1110 . ) can be converted to

도 12는 일 실시 예에 따른 전자 장치에서 이미지 개선을 수행하는 구체적인 흐름의 일부를 나타내는 흐름도이다. 12 is a flowchart illustrating a part of a detailed flow of performing image enhancement in an electronic device according to an exemplary embodiment.

다양한 실시 예에 따른 동작 630, 동작 1210 내지 동작 1220, 및 동작 640은, 전자 장치에서 피사체 좌표들을 대응시킴으로써 이미지 합성을 수행하는 실시 예를 나타내는 도 13을 참조하여 설명한다. Operations 630, 1210 to 1220, and 640 according to various embodiments will be described with reference to FIG. 13 showing an embodiment in which image synthesis is performed by matching object coordinates in an electronic device.

일 실시 예에 따르면, 동작 630에서 전자 장치(301)는 제2 카메라 모듈(344)을 이용하여 피사체 이미지를 포함하는 제2 이미지를 획득할 수 있다. 전자 장치(301)는 프로세서(310)의 제어에 따라 제2 카메라 모듈(344)에 포함된 망원 카메라를 이용하여 피사체를 촬영할 수 있다. 이 경우 전자 장치(301)는 망원 카메라를 이용하여 촬영함으로써 피사체 이미지를 포함하는 제2 이미지를 획득할 수 있다. 피사체와 전자 장치(301) 사이의 거리 값은, 전자 장치(301)가 제1 카메라 모듈(342)에 포함된 광각 카메라를 이용하여 제1 이미지를 획득하는 경우보다, 제2 카메라 모듈(344)에 포함된 망원 카메라를 이용하여 제2 이미지를 획득하는 경우가 더 클 수 있다. According to an embodiment, in operation 630 , the electronic device 301 may acquire a second image including a subject image using the second camera module 344 . The electronic device 301 may photograph a subject using a telephoto camera included in the second camera module 344 under the control of the processor 310 . In this case, the electronic device 301 may acquire the second image including the subject image by photographing it using a telephoto camera. The distance value between the subject and the electronic device 301 is higher than when the electronic device 301 acquires the first image using the wide-angle camera included in the first camera module 342 , the second camera module 344 A case in which the second image is acquired by using the telephoto camera included in .

일 실시 예에 따르면, 동작 1210에서 전자 장치(301)는 TOF 카메라(350)를 이용하여 피사체 및 광원의 거리 값을 획득할 수 있다. 예를 들면, 전자 장치(301)는 프로세서(310)의 제어에 따라 제2 이미지에 포함되는 피사체에 대한 거리 값을 TOF 카메라(350)를 이용하여 획득할 수 있다. 또한 전자 장치(301)는 도 10을 참조하여 설명한 것과 동일 또는 유사한 방식에 따라 TOF 카메라(350)를 이용하여 프로세서(310)의 제어에 따라 광원의 거리 값을 획득할 수도 있다. According to an embodiment, in operation 1210 , the electronic device 301 may obtain a distance value between the subject and the light source using the TOF camera 350 . For example, the electronic device 301 may obtain a distance value to the subject included in the second image using the TOF camera 350 under the control of the processor 310 . Also, the electronic device 301 may acquire the distance value of the light source under the control of the processor 310 using the TOF camera 350 in the same or similar manner as described with reference to FIG. 10 .

일 실시 예에 따르면, 동작 1220에서 전자 장치(301)는 피사체의 특징점 추출 및 추출된 특징점에 기반하여 제2 피사체 좌표를 생성할 수 있다.According to an embodiment, in operation 1220 , the electronic device 301 may extract key points of the subject and generate second object coordinates based on the extracted key points.

일 실시 예에서, 전자 장치(301)는 획득한 피사체 및 광원의 거리 값을 이용하여 프로세서(310)의 제어에 따라 피사체의 특징점을 추출할 수 있다. 예를 들어, 전자 장치(301)는 제2 카메라 모듈(344)에 기반하여 피사체에 대한 제2 이미지를 획득할 수 있다. 전자 장치(301)는 획득한 피사체의 거리 값 및 광원의 거리 값을 이용하여 피사체의 특징점을 추출할 수 있다. In an embodiment, the electronic device 301 may extract a feature point of the subject under the control of the processor 310 using the obtained distance values of the subject and the light source. For example, the electronic device 301 may acquire a second image of the subject based on the second camera module 344 . The electronic device 301 may extract a feature point of the subject by using the obtained distance value of the subject and the distance value of the light source.

일 실시 예에서, 전자 장치(301)는 추출한 피사체의 특징점에 기반하여 프로세서(310)의 제어에 따라 피사체 좌표(예: 제2 피사체 좌표)를 생성할 수 있다. 예를 들어 전자 장치(301)는 이미지(예: 제2 이미지)를 획득하는 중에 추출한 피사체의 특징점에 기반하여 피사체 좌표(예: 제2 피사체 좌표)를 생성할 수 있고, 피사체 좌표(예: 제2 피사체 좌표)는 3D 공간 좌표(예: 제2 피사체 좌표(X, Y, Z))일 수 있다. In an embodiment, the electronic device 301 may generate object coordinates (eg, second object coordinates) under the control of the processor 310 based on the extracted feature points of the object. For example, the electronic device 301 may generate object coordinates (eg, second object coordinates) based on feature points of a subject extracted while acquiring an image (eg, a second image), and may generate object coordinates (eg, second image). 2 object coordinates) may be 3D spatial coordinates (eg, second object coordinates (X, Y, Z)).

일 실시 예에 따르면, 동작 640에서 전자 장치(301)는 제1 이미지의 제1 피사체 좌표 및 제2 이미지의 제2 피사체 좌표를 대응시킬 수 있다. According to an embodiment, in operation 640 , the electronic device 301 may match the first object coordinates of the first image and the second object coordinates of the second image.

도 13을 참조하여 설명하면, 전자 장치(301)는 제1 이미지로부터 제1 피사체 좌표를 획득했을 수 있다. 예를 들어 전자 장치(301)는 제1 피사체 좌표로서, (X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z), (X4, Y4, Z)를 획득했을 수 있다. 또한 전자 장치(301)는 제2 피사체 좌표로서, (X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), (X4, Y4, Z+H)를 획득했을 수 있다. Referring to FIG. 13 , the electronic device 301 may have acquired the first object coordinates from the first image. For example, the electronic device 301 may have obtained (X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z), (X4, Y4, Z) as the first object coordinates. have. In addition, the electronic device 301 provides the second object coordinates as (X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), (X4, Y4, Z+). H) may have been obtained.

일 실시 예에서, 도 13에 나타낸 것과 같이, 전자 장치(301)는 제1 이미지의 제1 피사체 좌표((X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z), (X4, Y4, Z))에 제2 이미지의 제2 피사체 좌표((X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), (X4, Y4, Z+H))를 대응시킬 수 있다. In an embodiment, as shown in FIG. 13 , the electronic device 301 configures the first object coordinates ((X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z) of the first image. , (X4, Y4, Z)) to the second object coordinates of the second image ((X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), ( X4, Y4, Z+H)) can be matched.

일 실시 예에 따른 동작 650에서 전자 장치(301)는 제1 이미지 및 제2 이미지를 합성한 합성 이미지를 표시하는 제2 미리보기 화면을 디스플레이를 통해 표시할 수 있다. In operation 650 according to an embodiment, the electronic device 301 may display a second preview screen displaying a composite image obtained by synthesizing the first image and the second image through the display.

일 실시 예에서, 전자 장치(301)는 프로세서(310)의 제어에 따라, 제1 피사체 좌표((X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z), (X4, Y4, Z)), 및 제2 피사체 좌표((X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), (X4, Y4, Z+H))를 대응시킨 이미지들(예: 제1 이미지, 제2 이미지)을 합성(또는 정합)함으로써 합성 이미지를 생성할 수 있다. 예를 들어, 도 13을 참조하면, 전자 장치(301)는 프로세서(310)의 제어에 따라 합성된 이미지를 생성할 수 있다. 또한 이 경우 합성된 이미지는 이미지 개선이 필요한 영역들(예: 형광등에 의해 빛 반사된 영역, 피사체에 의해 그림자가 발생한 영역, 촬영자에 의해 그림자가 발생한 영역)이 제거된 이미지일 수 있다. In an embodiment, the electronic device 301 controls the first object coordinates ((X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z), ( X4, Y4, Z)), and the second object coordinates ((X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), (X4, Y4, Z +H))) corresponding images (eg, the first image and the second image) may be synthesized (or registered) to generate a composite image. For example, referring to FIG. 13 , the electronic device 301 may generate a synthesized image under the control of the processor 310 . Also, in this case, the synthesized image may be an image in which regions requiring image improvement (eg, a region reflected by a fluorescent lamp, a region in which a shadow is generated by a subject, an region in which a shadow is generated by a photographer) are removed.

다양한 실시 예에 따르면, 설명의 편의를 위해 제1 피사체 좌표((X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z), (X4, Y4, Z)), 및 제2 피사체 좌표((X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), (X4, Y4, Z+H))를 예로 들어 설명했지만, 상술한 실시 예에 한정되지 않을 수 있다. 예를 들어 X, Y 좌표가 각각 달라질 수 있고, H도 달라질 수 있다. 또한 경우에 따라서는 상술한 4개의 좌표의 X, Y, Z, H가 각각 달라질 수도 있다. According to various embodiments, for convenience of description, first object coordinates ((X1, Y1, Z), (X2, Y2, Z), (X3, Y3, Z), (X4, Y4, Z)), and The second object coordinates ((X1, Y1, Z+H), (X2, Y2, Z+H), (X3, Y3, Z+H), (X4, Y4, Z+H)) were explained as an example. , may not be limited to the above-described embodiment. For example, the X and Y coordinates may be different, and H may also be different. In addition, depending on the case, X, Y, Z, and H of the above-described four coordinates may be different, respectively.

도 14는 일 실시 예에 따른 전자 장치에서 이미지 개선을 위해 피사체를 기준으로 가이드를 생성하는 실시 예를 나타내는 도면이다. 14 is a diagram illustrating an embodiment of generating a guide based on a subject for image improvement in an electronic device according to an embodiment.

일 실시 예에서, 전자 장치(301)는 제1 카메라 모듈(1410)을 이용하여 피사체 및 피사체의 그림자가 포함된 이미지(예: 제1 이미지)를 획득할 수 있다. 또한 전자 장치(301)는 피사체 및 피사체의 그림자가 포함된 이미지(예: 제1 이미지)를 디스플레이(360)의 화면에 표시(예: 제1 미리보기 화면에 표시)할 수 있다. 이 경우에 전자 장치(301)와 피사체 사이의 거리 값은 h1일 수 있다. In an embodiment, the electronic device 301 may acquire an image (eg, a first image) including a subject and a shadow of the subject by using the first camera module 1410 . Also, the electronic device 301 may display a subject and an image (eg, a first image) including a shadow of the subject on the screen of the display 360 (eg, displayed on the first preview screen). In this case, the distance value between the electronic device 301 and the subject may be h1.

일 실시 예에서, 전자 장치(301)는 이미지 개선을 위해 디스플레이(360)의 화면(예: 제1 미리보기 화면) 상에 가이드(1420)를 표시할 수 있다. 전자 장치(301)는 가이드(1420)를 디스플레이(360)의 화면(예: 제1 미리보기 화면) 상에 표시함으로써, 사용자에게 전자 장치(301)와 피사체의 거리 값에 관한 동작을 수행하게 할 수 있다. 예를 들어, 사용자는 가이드(1420)에 따라 전자 장치(301)를 피사체와 더 멀어지도록 할 수 있다. 도 14를 참조하면, 이 경우 전자 장치(301)는 피사체와 h2의 거리 값을 가질 수 있다. In an embodiment, the electronic device 301 may display the guide 1420 on the screen of the display 360 (eg, the first preview screen) to improve the image. The electronic device 301 displays the guide 1420 on the screen of the display 360 (eg, the first preview screen) to allow the user to perform an operation regarding the distance value between the electronic device 301 and the subject. can For example, the user may move the electronic device 301 further away from the subject according to the guide 1420 . Referring to FIG. 14 , in this case, the electronic device 301 may have a distance value of h2 from the subject.

일 실시 예에서, 가이드(1420)에 따른 전자 장치(301)와 피사체 사이의 거리(예: h2)는 그림자 없이 촬영할 수 있는 거리 값일 수 있다. 전자 장치(301)는 그림자 없이 촬영할 수 있는 거리 값을, TOF 카메라(350)에 적어도 기반하여 획득할 수 있다. In an embodiment, the distance (eg, h2 ) between the electronic device 301 and the subject according to the guide 1420 may be a distance value capable of photographing without a shadow. The electronic device 301 may obtain a distance value capable of photographing without a shadow based on at least the TOF camera 350 .

일 실시 예에서, 전자 장치(301)는 거리 값(h1)이 거리 값(h2)으로 변하는 중에 제1 카메라 모듈(1410)을 제2 카메라 모듈(1430)로 전환할 수 있다. 전자 장치(301)는 상기 전환을 자동으로 할 수 있고, 사용자의 입력을 획득함에 응답하여 수동으로 수행할 수도 있다. In an embodiment, the electronic device 301 may switch the first camera module 1410 to the second camera module 1430 while the distance value h1 is changed to the distance value h2 . The electronic device 301 may automatically perform the conversion, or may perform the conversion manually in response to obtaining a user's input.

일 실시 예에서, 전자 장치(301)는 제2 카메라 모듈(1430)로 전환한 상태에서 이미지 개선이 필요 없는 이미지(예: 제2 이미지)를 획득할 수 있다. 또한 전자 장치(301)는 상기 이미지 개선이 필요 없는 이미지(예: 제2 이미지)를 디스플레이(360)의 화면(예: 제2 미리보기 화면) 상에 표시할 수 있다. In an embodiment, the electronic device 301 may acquire an image that does not require image improvement (eg, a second image) in a state in which it is switched to the second camera module 1430 . Also, the electronic device 301 may display an image (eg, a second image) that does not require image improvement on a screen (eg, a second preview screen) of the display 360 .

도 15는 일 실시 예에 따른 전자 장치에서 피사체 이미지에 관한 그림자 영역을 생성하는 실시 예를 나타내는 도면이다. 15 is a diagram illustrating an embodiment of generating a shadow area for a subject image in an electronic device according to an embodiment.

예를 들어, 도 15를 참조하면, 사용자가 그림자 생성을 하고자 하는 경우, 전자 장치(301)는 이미지 개선을 수행한 이미지(1510)(예: 그림자를 제거한 이미지)에 기반하여 그림자를 생성할 수 있다. For example, referring to FIG. 15 , when a user desires to create a shadow, the electronic device 301 may generate a shadow based on an image 1510 on which image enhancement has been performed (eg, an image from which the shadow has been removed). have.

구체적인 예를 들면, 이미지 개선 과정에서 메모리(330)에 저장한 이미지 데이터(예: 그림자를 포함하는 이미지 데이터)를 이용하여 이미지 개선을 수행한 이미지(1510)에 그림자 이미지를 합성함으로써, 이미지(1520)를 생성할 수 있다. As a specific example, by synthesizing a shadow image with the image 1510 on which image enhancement has been performed using image data (eg, image data including shadow) stored in the memory 330 during the image enhancement process, the image 1520 is ) can be created.

도 16은 일 실시 예에 따른 전자 장치에서 피사체 이미지에 관한 빛 반사 영역을 생성하는 실시 예를 나타내는 도면이다. 16 is a diagram illustrating an example of generating a light reflection area for a subject image in an electronic device according to an exemplary embodiment.

예를 들어, 도 16을 참조하면, 사용자가 빛 반사 효과를 생성하고자 하는 경우, 전자 장치(301)는 이미지 개선을 수행한 이미지(1610)(예: 빛 반사 효과를 제거한 이미지)에 기반하여 빛 반사 효과를 생성할 수 있다. For example, referring to FIG. 16 , when a user desires to generate a light reflection effect, the electronic device 301 transmits light based on an image 1610 on which image enhancement is performed (eg, an image from which the light reflection effect is removed). You can create a reflective effect.

구체적인 예를 들면, 이미지 개선 과정에서 메모리(330)에 저장한 이미지 데이터(예: 빛 반사 효과를 포함하는 이미지 데이터)를 이용하여 이미지 개선을 수행한 이미지(1610)에 빛 반사 효과를 포함하는 이미지를 합성함으로써, 이미지(1620)를 생성할 수 있다. As a specific example, an image including a light reflection effect in the image 1610 on which image enhancement is performed using image data (eg, image data including a light reflection effect) stored in the memory 330 during the image enhancement process By synthesizing , an image 1620 may be generated.

본 문서에 개시된 다양한 실시 예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시 예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다. The electronic device according to various embodiments disclosed in this document may be a device of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.

본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시 예들로 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. In this document, "A or B", "at least one of A and B", "at least one of A or B," "A, B or C," "at least one of A, B and C," and "A , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the element from other elements in question, and may refer to elements in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시 예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. As used herein, the term “module” may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logic block, component, or circuit. A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시 예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다. According to various embodiments of the present document, one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101) may be implemented as software (eg, the program 140) including For example, a processor (eg, processor 120 ) of a device (eg, electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.

일 실시 예에 따르면, 본 문서에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, the method according to various embodiments disclosed in this document may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store™) or on two user devices (eg, It can be distributed (eg downloaded or uploaded) directly or online between smartphones (eg: smartphones). In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

다양한 실시 예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시 예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다. According to various embodiments, each component (eg, a module or a program) of the above-described components may include a singular or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repetitively, or heuristically, or one or more of the operations are executed in a different order, omitted, or , or one or more other operations may be added.

Claims (20)

전자 장치에 있어서,
디스플레이;
제1 시야각을 가지는 제1 카메라를 포함하는 제1 카메라 모듈;
상기 제1 시야각과 다른 제2 시야각을 가지는 제2 카메라를 포함하는 제2 카메라 모듈; 및
상기 제1 카메라 모듈 및 상기 제2 카메라 모듈과 작동적으로 연결된 프로세서를 포함하고,
상기 프로세서는,
상기 제1 카메라 모듈을 이용하여 획득되며 피사체 이미지를 포함하는 제1 이미지를 표시하는 제1 미리보기 화면을 상기 디스플레이를 통해서 표시하고,
상기 제1 이미지가 이미지 개선이 필요한지 판단하는 조건을 만족하는지 여부를 결정하고,
상기 제2 카메라 모듈을 이용하여 상기 피사체 이미지를 포함하는 제2 이미지를 획득하고,
상기 조건을 만족하는 것으로 결정된 경우, 상기 제1 이미지의 제1 피사체 좌표 및 상기 제2 이미지의 제2 피사체 좌표를 대응시키고,
상기 제1 이미지 및 상기 제2 이미지를 합성한 합성 이미지를 표시하는 제2 미리보기 화면을 상기 디스플레이를 통해서 표시하는, 전자 장치.
In an electronic device,
display;
a first camera module including a first camera having a first viewing angle;
a second camera module including a second camera having a second viewing angle different from the first viewing angle; and
a processor operatively connected to the first camera module and the second camera module;
The processor is
A first preview screen obtained by using the first camera module and displaying a first image including a subject image is displayed through the display,
Determining whether the first image satisfies the condition for determining whether image improvement is necessary,
Obtaining a second image including the subject image by using the second camera module,
When it is determined that the condition is satisfied, the coordinates of the first object of the first image and the coordinates of the second object of the second image are matched;
and displaying a second preview screen displaying a composite image obtained by synthesizing the first image and the second image through the display.
청구항 1에 있어서,
상기 프로세서는,
상기 제1 미리보기 화면에서 상기 피사체 이미지 영역을 구분하는, 전자 장치.
The method according to claim 1,
The processor is
and distinguishing the subject image area on the first preview screen.
청구항 1에 있어서,
상기 이미지 개선이 필요한지 판단하는 조건은 적어도 임계 값에 관한 조건을 포함하는, 전자 장치.
The method according to claim 1,
The condition for determining whether the image improvement is necessary includes at least a condition regarding a threshold value.
청구항 1에 있어서,
TOF 카메라를 더 포함하고,
상기 프로세서는,
상기 TOF 카메라에 적어도 기반하여 피사체 및 광원 중 적어도 하나에 대한 거리 값을 획득하는, 전자 장치.
The method according to claim 1,
further comprising a TOF camera,
The processor is
Acquire a distance value for at least one of a subject and a light source based at least on the TOF camera.
청구항 4에 있어서,
상기 프로세서는,
상기 TOF 카메라에 적어도 기반하여 상기 피사체의 특징점을 추출하고,
추출된 상기 특징점에 기반하여 제1 이미지에 관한 상기 제1 피사체 좌표를 생성하는, 전자 장치.
5. The method according to claim 4,
The processor is
extracting a feature point of the subject based at least on the TOF camera,
and generating the first object coordinates with respect to a first image based on the extracted feature points.
청구항 4에 있어서,
상기 프로세서는,
상기 TOF 카메라에 적어도 기반하여 획득한 피사체 및 광원 중 적어도 하나에 대한 거리 값에 기반하여 제2 카메라를 포함하는 제2 카메라 모듈로 전환하는, 전자 장치.
5. The method according to claim 4,
The processor is
Switching to a second camera module including a second camera based on a distance value for at least one of a subject and a light source acquired based on the TOF camera at least.
청구항 4에 있어서,
상기 프로세서는,
상기 TOF 카메라에 적어도 기반하여 상기 피사체의 특징점을 추출하고,
추출된 상기 특징점에 기반하여 제2 이미지에 관한 상기 제2 피사체 좌표를 생성하는, 전자 장치.
5. The method according to claim 4,
The processor is
extracting a feature point of the subject based at least on the TOF camera,
and generating the second object coordinates with respect to a second image based on the extracted feature points.
청구항 4에 있어서,
상기 프로세서는,
상기 TOF 카메라에 적어도 기반하여 획득한 피사체 및 광원 중 적어도 하나에 대한 거리 값에 기반하여 상기 제1 미리보기 화면에 가이드를 표시하는, 전자 장치.
5. The method according to claim 4,
The processor is
and displaying a guide on the first preview screen based on a distance value for at least one of a subject and a light source acquired based on the TOF camera at least.
청구항 8에 있어서,
상기 프로세서는,
상기 가이드를 상기 제2 미리보기 화면에 연속적으로 표시하는, 전자 장치.
9. The method of claim 8,
The processor is
and continuously displaying the guide on the second preview screen.
청구항 1에 있어서,
상기 이미지 개선은, 그림자 제거, 그림자 생성, 빛 반사 제거, 빛 반사 생성 중 적어도 하나인, 전자 장치.
The method according to claim 1,
The image improvement is at least one of shadow removal, shadow generation, light reflection removal, and light reflection generation, the electronic device.
전자 장치의 동작 방법에 있어서,
상기 제1 카메라 모듈을 이용하여 획득되며 피사체 이미지를 포함하는 제1 이미지를 표시하는 제1 미리보기 화면을 상기 디스플레이를 통해서 표시하는 동작;
상기 제1 이미지가 이미지 개선이 필요한지 판단하는 조건을 만족하는지 여부를 결정하는 동작;
상기 제2 카메라 모듈을 이용하여 상기 피사체 이미지를 포함하는 제2 이미지를 획득하는 동작;
상기 조건을 만족하는 것으로 결정된 경우, 상기 제1 이미지의 제1 피사체 좌표 및 상기 제2 이미지의 제2 피사체 좌표를 대응시키는 동작; 및
상기 제1 이미지 및 상기 제2 이미지를 합성한 합성 이미지를 표시하는 제2 미리보기 화면을 상기 디스플레이를 통해서 표시하는 동작을 포함하는 방법.
A method of operating an electronic device, comprising:
displaying, through the display, a first preview screen obtained by using the first camera module and displaying a first image including a subject image;
determining whether the first image satisfies a condition for determining whether image improvement is necessary;
obtaining a second image including the subject image by using the second camera module;
matching the first object coordinates of the first image and the second object coordinates of the second image when it is determined that the condition is satisfied; and
and displaying, through the display, a second preview screen displaying a composite image obtained by synthesizing the first image and the second image.
청구항 11에 있어서,
상기 제1 미리보기 화면에서 상기 피사체 이미지 영역을 구분하는 동작을 포함하는 방법.
12. The method of claim 11,
and classifying the subject image area on the first preview screen.
청구항 11에 있어서,
상기 이미지 개선이 필요한지 판단하는 조건은 적어도 임계 값에 관한 조건인, 방법.
12. The method of claim 11,
wherein the condition for determining whether the image enhancement is necessary is a condition for at least a threshold value.
청구항 11에 있어서,
TOF 카메라에 적어도 기반하여 피사체 및 광원 중 적어도 하나에 대한 거리 값을 획득하는 동작을 포함하는 방법.
12. The method of claim 11,
and obtaining a distance value for at least one of a subject and a light source based at least on a TOF camera.
청구항 14에 있어서,
상기 TOF 카메라에 적어도 기반하여 상기 피사체의 특징점을 추출하는 동작; 및
추출된 상기 특징점에 기반하여 제1 이미지에 관한 상기 제1 피사체 좌표를 생성하는 동작을 포함하는 방법.
15. The method of claim 14,
extracting the feature points of the subject based at least on the TOF camera; and
and generating the first object coordinates with respect to a first image based on the extracted feature points.
청구항 14에 있어서,
상기 TOF 카메라에 적어도 기반하여 획득한 피사체 및 광원 중 적어도 하나에 대한 거리 값에 기반하여 제2 카메라를 포함하는 제2 카메라 모듈로 전환하는 동작을 포함하는 방법.
15. The method of claim 14,
and switching to a second camera module including a second camera based on a distance value for at least one of a subject and a light source acquired based on at least the TOF camera.
청구항 14에 있어서,
상기 TOF 카메라에 적어도 기반하여 상기 피사체의 특징점을 추출하는 동작; 및
추출된 상기 특징점에 기반하여 제2 이미지에 관한 상기 제2 피사체 좌표를 생성하는 동작을 포함하는 방법.
15. The method of claim 14,
extracting the feature points of the subject based at least on the TOF camera; and
and generating the second object coordinates with respect to a second image based on the extracted feature points.
청구항 14에 있어서,
상기 TOF 카메라에 적어도 기반하여 획득한 피사체 및 광원 중 적어도 하나에 대한 거리 값에 기반하여 상기 제1 미리보기 화면에 가이드를 표시하는 동작을 포함하는 방법.
15. The method of claim 14,
and displaying a guide on the first preview screen based on a distance value with respect to at least one of a subject and a light source acquired based on at least the TOF camera.
청구항 18에 있어서,
상기 가이드를 상기 제2 미리보기 화면에 연속적으로 표시하는 동작을 포함하는 방법.
19. The method of claim 18,
and continuously displaying the guide on the second preview screen.
청구항 11에 있어서,
상기 이미지 개선은, 그림자 제거, 그림자 생성, 빛 반사 제거, 빛 반사 생성 중 적어도 하나인 방법.
12. The method of claim 11,
The image improvement is at least one of shadow removal, shadow generation, light reflection removal, and light reflection generation.
KR1020200082944A 2020-07-06 2020-07-06 Electronic device for image improvement and camera operation method of the electronic device KR20220005283A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200082944A KR20220005283A (en) 2020-07-06 2020-07-06 Electronic device for image improvement and camera operation method of the electronic device
PCT/KR2021/008443 WO2022010193A1 (en) 2020-07-06 2021-07-02 Electronic device for image improvement, and method for operating camera of electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200082944A KR20220005283A (en) 2020-07-06 2020-07-06 Electronic device for image improvement and camera operation method of the electronic device

Publications (1)

Publication Number Publication Date
KR20220005283A true KR20220005283A (en) 2022-01-13

Family

ID=79342009

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200082944A KR20220005283A (en) 2020-07-06 2020-07-06 Electronic device for image improvement and camera operation method of the electronic device

Country Status (2)

Country Link
KR (1) KR20220005283A (en)
WO (1) WO2022010193A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023219349A1 (en) * 2022-05-12 2023-11-16 Samsung Electronics Co., Ltd. Multi-camera device and methods for removing shadows from images

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010072813A (en) * 2008-09-17 2010-04-02 Fujitsu Ltd Image processing device and image processing program
JP2010268019A (en) * 2009-05-12 2010-11-25 Nikon Corp Photographing apparatus
JP2018098738A (en) * 2016-12-16 2018-06-21 キヤノン株式会社 Image processing device, imaging device, image processing method and image processing program
JP2020088810A (en) * 2018-11-30 2020-06-04 キヤノン株式会社 Imaging apparatus and control method of imaging apparatus
KR102606824B1 (en) * 2018-12-14 2023-11-27 삼성전자주식회사 Apparatus comprising multi-camera and image processing method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023219349A1 (en) * 2022-05-12 2023-11-16 Samsung Electronics Co., Ltd. Multi-camera device and methods for removing shadows from images

Also Published As

Publication number Publication date
WO2022010193A1 (en) 2022-01-13

Similar Documents

Publication Publication Date Title
KR102338576B1 (en) Electronic device which stores depth information associating with image in accordance with Property of depth information acquired using image and the controlling method thereof
CN111033569B (en) Apparatus for editing image using depth map and method thereof
US11558553B2 (en) Electronic device for stabilizing image and method for operating same
US10812768B2 (en) Electronic device for recording image by using multiple cameras and operating method thereof
US11606501B2 (en) Electronic device and image control method of the electronic device
KR20200017072A (en) Electronic device and method for providing notification relative to image displayed via display and image stored in memory based on image analysis
US11582391B2 (en) Electronic device capable of controlling image display effect, and method for displaying image
EP3718296B1 (en) Electronic device and method for controlling autofocus of camera
EP3641294B1 (en) Electronic device and method for obtaining images
KR102423295B1 (en) An apparatus for composing objects using depth map and a method thereof
KR102502583B1 (en) Method for controlling synchronization of multiple image sensors and electronic device implementing the same
KR20200101230A (en) Electronic device for recommending composition and operating method thereof
EP4096218A1 (en) Video recording method using plurality of cameras, and device therefor
KR20200067027A (en) Electronic device for acquiring depth information using at least one of cameras or depth sensor
KR20210101629A (en) Camera assembly and electronic device including the same
KR102512839B1 (en) Electronic device and method obtaining image using cameras through adjustment of position of external device
US20220268935A1 (en) Electronic device comprising camera and method thereof
KR20220005283A (en) Electronic device for image improvement and camera operation method of the electronic device
KR20210144151A (en) Electronic device and method for generating images by performing auto white balance
KR102457559B1 (en) Electronic device and method for correcting image based on object included image
KR20210142312A (en) Electronic device comprising camera and microphone and method of operating the same
KR20200092762A (en) Electronic device and method for recognizing occlusion of camera thereof
KR102668233B1 (en) Electronic device for obtaining images by controlling frame rate for external object moving through point ofinterest and operating method thereof
KR20210137799A (en) Image processing method and electronic device thereof
KR20210108263A (en) Electronic device and method for distinguishing object and background from photograph