KR20220156335A - Electronic device and method for processing image based on depth information using the same - Google Patents

Electronic device and method for processing image based on depth information using the same Download PDF

Info

Publication number
KR20220156335A
KR20220156335A KR1020210064234A KR20210064234A KR20220156335A KR 20220156335 A KR20220156335 A KR 20220156335A KR 1020210064234 A KR1020210064234 A KR 1020210064234A KR 20210064234 A KR20210064234 A KR 20210064234A KR 20220156335 A KR20220156335 A KR 20220156335A
Authority
KR
South Korea
Prior art keywords
subject
subjects
frames
electronic device
frame
Prior art date
Application number
KR1020210064234A
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 KR1020210064234A priority Critical patent/KR20220156335A/en
Priority to PCT/KR2022/004678 priority patent/WO2022244972A1/en
Publication of KR20220156335A publication Critical patent/KR20220156335A/en

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/55Depth or shape recovery from multiple images
    • 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
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

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

Abstract

According to various embodiments of the present disclosure, an electronic device comprises a camera, a sensor circuit, and a processor operatively connected to the camera and the sensor circuit. The processor can be configured to: obtain a plurality of frames including a plurality of subjects through the camera; identify depth information of the plurality of subjects included in the plurality of frames through the sensor circuit; remove, from the plurality of frames, a first subject having first depth information from among the plurality of subjects, on the basis of the depth information of the plurality of subjects; and generate an image by combining the plurality of frames from which the first subject is removed. Various other embodiments are also possible in addition to embodiments disclosed in the present document. The present invention can easily perform an operation of processing an image.

Description

전자 장치 및 이를 이용한 뎁스 정보에 기반한 이미지 처리 방법 {ELECTRONIC DEVICE AND METHOD FOR PROCESSING IMAGE BASED ON DEPTH INFORMATION USING THE SAME}Electronic device and image processing method based on depth information using the same {ELECTRONIC DEVICE AND METHOD FOR PROCESSING IMAGE BASED ON DEPTH INFORMATION USING THE SAME}

본 개시의 다양한 실시예들은 전자 장치 및 이를 이용한 뎁스 정보에 기반하여 이미지를 처리하는 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device and a method of processing an image based on depth information using the same.

전자 장치는 피사체를 촬영하여 이미지 또는 동영상을 생성 및 저장할 수 있도록 카메라 기능을 제공하고 있다. 전자 장치는 카메라를 통해 영상 촬영 시 방해물이 존재하는 경우, 카메라를 통해 획득되는 영상으로부터 방해물을 제거하여, 촬영하고자 하는 주 피사체에 대한 이미지를 획득할 수 있다. 또는, 전자 장치는 카메라를 통해 획득되는 영상에서 딥 러닝 기반으로 검출된 방해물을 제거하여, 촬영하고자 하는 주 피사체에 대한 이미지를 획득할 수 있다.Electronic devices provide a camera function to generate and store images or videos by capturing a subject. When an obstacle exists when capturing an image through a camera, the electronic device may obtain an image of a main subject to be photographed by removing the obstacle from an image acquired through the camera. Alternatively, the electronic device may obtain an image of a main subject to be photographed by removing an obstacle detected based on deep learning in an image obtained through a camera.

하지만, 카메라를 통해 획득되는 영상에 방해물이 존재하는지 여부를 결정하기까지 많은 시간이 소요될 수 있을 뿐만 아니라, 방해물 검출을 위해 매번 딥 러닝 모델 최적화를 위한 사전 학습이 이루어져야 하는 번거로움이 있다.However, it may take a lot of time to determine whether an obstacle exists in an image obtained through a camera, and it is inconvenient to perform pre-learning to optimize a deep learning model each time to detect an obstacle.

본 개시의 다양한 실시예들에 따른 전자 장치는, 카메라를 통해 촬영 시점이 상이한 복수의 피사체들을 포함하는 복수의 이미지들을 획득할 수 있다. 전자 장치는, 센서를 통해 확인되는 복수의 피사체들에 대한 뎁스 정보(depth information)에 기반하여, 복수의 피사체들 중 근거리에 위치하는 피사체를 이미지에서 제거하고, 근거리에 위치하는 피사체에 의해 가려진 원거리에 위치하는 주 피사체의 일부 영역을 복원할 수 있다.An electronic device according to various embodiments of the present disclosure may acquire a plurality of images including a plurality of subjects at different photographing points of time through a camera. The electronic device removes a subject located at a short distance among the plurality of subjects from an image based on depth information on a plurality of subjects confirmed through a sensor, and removes a subject located at a short distance from the image, and detects a long distance covered by the subject located at a short distance. A partial area of the main subject located at may be restored.

본 개시의 다양한 실시예들에 따른 전자 장치는, 카메라, 센서 회로, 및 상기 카메라 및 상기 센서 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 카메라를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득하고, 상기 센서 회로를 통해 상기 복수의 프레임들에 포함된 상기 복수의 피사체들에 대한 뎁스 정보를 확인하고, 상기 복수의 피사체들에 대한 뎁스 정보에 기반하여, 상기 복수의 프레임들로부터 상기 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거하고, 및 상기 제1 피사체가 제거된 복수의 프레임들을 합성하여, 이미지를 생성하도록 설정될 수 있다.An electronic device according to various embodiments of the present disclosure includes a camera, a sensor circuit, and a processor operatively connected to the camera and the sensor circuit, wherein the processor includes a plurality of subjects including a plurality of subjects through the camera. Obtain frames of, check depth information on the plurality of subjects included in the plurality of frames through the sensor circuit, and based on the depth information on the plurality of subjects, the plurality of frames It may be set to generate an image by removing a first subject having first depth information from among the plurality of subjects and combining a plurality of frames from which the first subject is removed.

본 개시의 다양한 실시예들에 따른 전자 장치의 뎁스 정보에 기반한 이미지 처리 방법은, 카메라를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득하는 동작, 센서 회로를 통해 상기 복수의 프레임들에 포함된 상기 복수의 피사체들에 대한 뎁스 정보를 확인하는 동작, 상기 복수의 피사체들에 대한 뎁스 정보에 기반하여, 상기 복수의 프레임들로부터 상기 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거하는 동작, 및 상기 제1 피사체가 제거된 복수의 프레임들을 합성하여, 이미지를 생성하는 동작을 포함할 수 있다.An image processing method based on depth information of an electronic device according to various embodiments of the present disclosure includes an operation of acquiring a plurality of frames including a plurality of subjects through a camera, and included in the plurality of frames through a sensor circuit. Checking depth information of the plurality of subjects, removing a first subject having first depth information among the plurality of subjects from the plurality of frames based on the depth information of the plurality of subjects and generating an image by synthesizing a plurality of frames from which the first subject is removed.

본 개시의 다양한 실시예들에 따른 전자 장치는, 센서를 통해 확인된 복수의 피사체들에 대한 뎁스 정보를 이용하여 복수의 피사체들 중 방해물에 해당하는 근거리에 위치하는 피사체를 카메라를 통해 획득되는 이미지에서 제거하고, 카메라를 통해 상이한 시점에 획득되는 복수의 이미지들에 기반하여 원거리에 위치하는 주 피사체의 일부 영역을 복원함에 따라 이미지를 처리하는 동작을 용이하게 수행할 수 있다.In an electronic device according to various embodiments of the present disclosure, an image obtained through a camera of a subject located at a short distance corresponding to an obstacle among a plurality of subjects using depth information on a plurality of subjects identified through a sensor , and an image processing operation may be easily performed by restoring a partial region of a main subject located at a distance based on a plurality of images acquired at different times through a camera.

도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는, 다양한 실시예들에 따른, 카메라 모듈을 예시하는 블록도이다.
도 3은, 다양한 실시예들에 따른, 전자 장치를 도시한 블록도이다.
도 4a는, 다양한 실시예들에 따른, 뎁스 정보에 기반하여 이미지를 처리하는 방법을 설명하기 위한 흐름도이다.
도 4b는, 다양한 실시예들에 따른, 뎁스 정보에 기반하여 이미지를 처리하는 방법을 설명하기 위한 흐름도이다.
도 5a 및 도 5b는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 상이한 시점에 복수의 피사체들을 포함하는 복수의 프레임들을 획득하는 방법을 설명하기 위한 도면이다.
도 5c는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 복수의 피사체들을 포함하는 복수의 프레임들에 대한 뎁스 맵을 생성하는 방법을 설명하기 위한 도면이다.
도 6은, 다양한 실시예들에 따른, 복수의 피사체들의 거리 별 픽셀 개수에 기반하여 전자 장치로부터 근거리에 위치하는 피사체가 방해물인지 여부를 확인하는 방법을 설명하기 위한 그래프이다.
도 7a는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 복수의 프레임들로부터 제1 뎁스 정보를 가지는 제1 피사체를 제거하고, 제1 피사체가 제거된 프레임의 영역을 보간하는 방법을 설명하기 위한 도면이다.
도 7b는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 보간된 프레임들을 합성하여 이미지를 생성하는 방법을 설명하기 위한 도면이다.
도 8a 및 도 8b는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 상이한 시점에 복수의 피사체들을 포함하는 복수의 프레임들을 획득하는 방법을 설명하기 위한 도면이다.
도 8c는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 복수의 피사체들을 포함하는 복수의 프레임들에 대한 뎁스 맵을 생성하는 방법을 설명하기 위한 도면이다.
도 9a는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 복수의 프레임들로부터 제1 뎁스 정보를 가지는 제1 피사체를 제거하고, 제1 피사체가 제거된 프레임의 영역을 보간하는 방법을 설명하기 위한 도면이다.
도 9b는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 보간된 프레임들을 합성하여 이미지를 생성하는 방법을 설명하기 위한 도면이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2 is a block diagram illustrating a camera module, in accordance with various embodiments.
3 is a block diagram illustrating an electronic device, according to various embodiments.
4A is a flowchart illustrating a method of processing an image based on depth information, according to various embodiments.
4B is a flowchart illustrating a method of processing an image based on depth information, according to various embodiments.
5A and 5B are diagrams for explaining a method of acquiring a plurality of frames including a plurality of subjects at different viewpoints in an obstruction removal mode in panoramic photographing according to various embodiments.
5C is a diagram for explaining a method of generating a depth map for a plurality of frames including a plurality of subjects in an obstruction removal mode in panoramic photography, according to various embodiments.
6 is a graph for explaining a method of determining whether an object located at a short distance from an electronic device is an obstacle based on the number of pixels for each distance of a plurality of objects, according to various embodiments.
7A is a method of removing a first subject having first depth information from a plurality of frames in an obstruction removal mode in a panoramic photographing and interpolating a region of a frame from which the first subject is removed, according to various embodiments; It is a drawing for explaining.
FIG. 7B is a diagram for explaining a method of generating an image by synthesizing interpolated frames in an obstruction removal mode in panoramic photography, according to various embodiments.
8A and 8B are diagrams for describing a method of obtaining a plurality of frames including a plurality of subjects at different viewpoints in an obstruction removal mode in normal photographing, according to various embodiments.
FIG. 8C is a diagram for explaining a method of generating a depth map for a plurality of frames including a plurality of subjects in an obstruction removal mode in normal shooting, according to various embodiments.
9A is a method of removing a first subject having first depth information from a plurality of frames in an obstruction removal mode in normal shooting and interpolating a region of a frame from which the first subject is removed, according to various embodiments; It is a drawing for explaining.
9B is a diagram for explaining a method of generating an image by synthesizing interpolated frames in an obstruction removal mode in normal shooting, according to various embodiments.

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

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(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 through a second network 199. It may communicate with at least one of 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 module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.

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

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The secondary processor 123 may, for example, take the place 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, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 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 one embodiment, the auxiliary processor 123 (eg, an image signal processor or a communication processor) may be implemented as part of other functionally related components (eg, the camera module 180 or the communication module 190). have. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited. The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples. The artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.

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

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101 . The sound output module 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. A receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

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

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

센서 모듈(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, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102). According to one 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 may be physically connected to an external electronic device (eg, the electronic device 102). According to one 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 electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses. According to one 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 one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

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

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one 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(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(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). Establishment and communication through the established communication channel may be supported. 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 one embodiment, the communication module 190 may be 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, a : a local area network (LAN) 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, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications network such as a computer network (eg, a LAN or a WAN). These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 uses 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 or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology). NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)). -latency communications)) can be supported. The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported. The wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199). According to one embodiment, the wireless communication module 192 may be used to realize peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency (for realizing URLLC). Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). 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 selected from the plurality of antennas by the communication module 190, for example. can be chosen 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, a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module 197 in addition to the radiator.

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a lower surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 signal ( e.g. commands or data) can be exchanged with each other.

일 실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104) 간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.According to an embodiment, commands 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 external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself. Alternatively or additionally, one or more external electronic devices may be requested to perform the function or at least part of the service. One or more external electronic devices receiving 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 deliver the execution result to the electronic device 101 . The electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed. To this end, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 . The electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

도 2는, 다양한 실시예들에 따른, 카메라 모듈(180)을 예시하는 블록도(200)이다. 2 is a block diagram 200 illustrating a camera module 180, in accordance with 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 that is an image capturing target. The lens assembly 210 may include one or more lenses. According to one 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 have the same lens properties as other lens assemblies. 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 a subject. According to one 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 is, for example, an 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, It may include a plurality of image sensors having a property, or a plurality of image sensors having other 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)는, 카메라 모듈(180)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 카메라 모듈(180) 또는 전자 장치(101)의 그런 움직임을 감지할 수 있다. 일 실시예에 따르면, 이미지 스태빌라이저(240)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있다. 메모리(250)는 이미지 센서(230)를 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: Bayer-patterned 이미지 또는 높은 해상도의 이미지)는 메모리(250)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 디스플레이 모듈(160)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(250)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(260)에 의해 획득되어 처리될 수 있다. 일 실시예에 따르면, 메모리(250)는 메모리(130)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.The image stabilizer 240 moves at least one lens or image sensor 230 included in the lens assembly 210 in a specific direction in response to movement of the camera module 180 or the electronic device 101 including the same. Operation characteristics of the image sensor 230 may be controlled (eg, read-out timing is adjusted, etc.). This makes it possible to compensate at least part of the negative effect of the movement on the image being taken. According to an embodiment, the image stabilizer 240 uses a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 180 to control the camera module 180 or an electronic device ( 101) can detect such a movement. According to one embodiment, the image stabilizer 240 may be implemented as, for example, an optical image stabilizer. The memory 250 may at least temporarily store at least a portion of an image acquired through the image sensor 230 for a next image processing task. 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, a Bayer-patterned image or a high-resolution image) is stored in the memory 250 and , a copy image (eg, a low resolution image) corresponding thereto may be previewed through the display module 160 . Thereafter, when a specified condition is satisfied (eg, a user input or a system command), at least a part of the original image stored in the memory 250 may be obtained and processed by the image signal processor 260 , for example. According to one 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 processes on an image acquired through the image sensor 230 or an image stored in the memory 250 . The one or more image processes, 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) may be controlled (eg, exposure time control, read-out timing control, etc.) The image processed by the image signal processor 260 is stored again 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 module 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 may be configured as a separate processor that operates independently of the processor 120. The image signal processor 260 may be configured as a processor 120 When configured as a separate processor, at least one image processed by the image signal processor 260 may be displayed through the display module 160 as it is or after additional image processing by the processor 120 .

일 실시예에 따르면, 전자 장치(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 another one may be a rear camera.

도 3은, 다양한 실시예들에 따른, 전자 장치(301)를 도시한 블록도(300)이다.3 is a block diagram 300 illustrating an electronic device 301 according to various embodiments.

도 3을 참조하면, 전자 장치(301)(예: 도 1의 전자 장치(101))는 통신 회로(310)(예: 도 1의 통신 모듈(190)), 메모리(320)(예: 도 1의 메모리(130)), 카메라(330)(예: 도 1의 카메라 모듈(180)), 센서 회로(340)(예: 도 1의 센서 모듈(176)), 터치스크린 디스플레이(350)(예: 도 1의 디스플레이 모듈(160)), 및/또는 프로세서(360)(예: 도 1의 프로세서(120) 및/또는 도 2의 이미지 시그널 프로세서(260))를 포함할 수 있다.Referring to FIG. 3, an electronic device 301 (eg, the electronic device 101 of FIG. 1) includes a communication circuit 310 (eg, the communication module 190 of FIG. 1), a memory 320 (eg, the FIG. 1 memory 130), camera 330 (eg, camera module 180 of FIG. 1), sensor circuit 340 (eg, sensor module 176 of FIG. 1), touch screen display 350 ( Example: the display module 160 of FIG. 1), and/or a processor 360 (eg, the processor 120 of FIG. 1 and/or the image signal processor 260 of FIG. 2).

본 개시의 다양한 실시예들에 따르면, 통신 회로(310)(예: 도 1의 통신 모듈(190))는 외부 전자 장치(예: 도 1의 전자 장치(102, 104), 서버(108))와 통신 채널을 설립하고, 외부 전자 장치와 다양한 데이터를 송수신하도록 지원할 수 있다.According to various embodiments of the present disclosure, the communication circuit 310 (eg, the communication module 190 of FIG. 1 ) is an external electronic device (eg, the electronic devices 102 and 104 of FIG. 1 , the server 108 ) It is possible to establish a communication channel with and to support transmission and reception of various data with an external electronic device.

본 개시의 다양한 실시예들에 따르면, 메모리(320)(예: 도 1의 메모리(130))는 방해물 제거 모드로 설정되는 경우, 카메라(330)를 통해 획득되는 복수의 프레임들로부터 제1 뎁스 정보를 가지는 제1 피사체를 확인하는 인스트럭션들(instructions)을 저장할 수 있다. 메모리(320)는 복수의 프레임들 중 적어도 하나의 다른 프레임을 이용하여 복수의 프레임들에서 제1 피사체가 제거된 프레임의 영역을 보간하는 인스트럭션들을 저장할 수 있다. 메모리(320)는 제1 피사체가 제거된 영역에 보간된 프레임들을 합성하는 인스트럭션들을 저장할 수 있다.According to various embodiments of the present disclosure, when the memory 320 (eg, the memory 130 of FIG. 1 ) is set to the obstruction removal mode, a first depth from a plurality of frames obtained through the camera 330 Instructions for identifying a first subject having information may be stored. The memory 320 may store instructions for interpolating an area of a frame from which the first subject is removed from a plurality of frames by using at least one other frame among the plurality of frames. The memory 320 may store instructions for synthesizing interpolated frames in an area from which the first subject is removed.

본 개시의 다양한 실시예들에 따르면, 카메라(330)(예: 도 1의 카메라 모듈(180))는 수집된 영상을 프리뷰 화면으로 디스플레이(351)에 전달하여 사용자가 카메라(330)를 통해 비추어지는 영상을 확인하도록 할 수 있다. 카메라(330)는 촬영을 요청하는 입력에 응답하여, 상기 촬영을 요청하는 입력이 발생한 시점에 수집된 영상을 촬영하여 이미지 데이터를 생성할 수 있다. 일 실시예에서, 카메라(330)는 하나 이상 구비될 수 있다.According to various embodiments of the present disclosure, the camera 330 (eg, the camera module 180 of FIG. 1 ) transfers the collected image to the display 351 as a preview screen so that the user can view it through the camera 330. You can check the losing video. In response to a photographing request input, the camera 330 may generate image data by capturing an image collected at the time when the photographing request input occurs. In one embodiment, one or more cameras 330 may be provided.

본 개시의 다양한 실시예들에 따르면, 센서 회로(340)(예: 도 1의 센서 모듈(176))는 뎁스 센서(341) 및/또는 관성 센서(343)를 포함할 수 있다.According to various embodiments of the present disclosure, the sensor circuit 340 (eg, the sensor module 176 of FIG. 1 ) may include a depth sensor 341 and/or an inertial sensor 343 .

일 실시예에서, 뎁스 센서(341)는 피사체에 대한 뎁스 정보(depth information)를 획득할 수 있다. 뎁스 센서(341)는 전자 장치(301)와 복수의 피사체들 간 거리 정보를 측정할 수 있다. 뎁스 센서(341)는 카메라(330)를 통해 획득되는 복수의 피사체들을 포함하는 복수의 프레임들에 대한 뎁스 맵(depth map)을 생성할 수 있다.In one embodiment, the depth sensor 341 may obtain depth information on a subject. The depth sensor 341 may measure distance information between the electronic device 301 and a plurality of subjects. The depth sensor 341 may generate a depth map for a plurality of frames including a plurality of subjects acquired through the camera 330 .

일 실시예에서, 관성 센서(343)는 운동의 관성력을 검출하여 관성 측정 대상인 카메라(330)의 가속도, 속도, 방향, 및/또는 거리와 같은 다양한 항법 관련 정보를 제공할 수 있다. 예컨대, 관성 센서(343)는 가속도 센서, 자이로 센서, 및/또는 지자기 센서를 포함할 수 있다. In one embodiment, the inertial sensor 343 may detect the inertial force of motion and provide various navigation-related information such as acceleration, speed, direction, and/or distance of the camera 330 , which is an inertial measurement target. For example, the inertial sensor 343 may include an acceleration sensor, a gyro sensor, and/or a geomagnetic sensor.

일 실시예에서, 가속도 센서는 전자 장치(301)의 공간상 움직임을 측정하는 센서를 포함하며, 예컨대, 사용자가 전자 장치(301)가 이동할 때 발생하는 가속도의 변화 및/또는 각가속도의 변화를 감지하는 센서를 포함할 수 있다. 가속도 센서는 3축 방향의 가속도를 감지할 수 있다. 또한, 가속도 센서는 전자 장치(301)의 기울어짐을 감지할 수 있다.In one embodiment, the acceleration sensor includes a sensor that measures the movement of the electronic device 301 in space, and detects, for example, a change in acceleration and/or a change in angular acceleration that occurs when the user moves the electronic device 301. It may include a sensor that The acceleration sensor may detect acceleration in three axis directions. Also, the acceleration sensor may detect the inclination of the electronic device 301 .

일 실시예에서, 지자기 센서는 방위각(azimuth)을 측정하는 센서를 포함하며, 지구의 남북 방향으로 형성되어 있는 자기장(magnetic field)을 감지하여 방위각을 측정하는 센서를 포함할 수 있다. 지자기 센서는 3축 방향의 지자기를 감지할 수 있다.In one embodiment, the geomagnetic sensor includes a sensor for measuring an azimuth, and may include a sensor for measuring an azimuth by detecting a magnetic field formed in a north-south direction of the earth. The geomagnetic sensor may detect geomagnetism in three axial directions.

일 실시예에서, 자이로 센서는 전자 장치(301)의 회전 각속도를 측정하는 관성 센서를 포함하며, 회전하는 물체가 가진 관성력을 이용하여 현재의 방향을 알 수 있는 센서를 포함할 수 있다. 자이로 센서는 2축 방향의 회전 각속도를 측정할 수 있다.In one embodiment, the gyro sensor may include an inertial sensor that measures the rotational angular velocity of the electronic device 301 and may include a sensor that detects a current direction using an inertial force of a rotating object. The gyro sensor can measure rotational angular velocity in two axis directions.

본 개시의 다양한 실시예들에 따르면, 터치스크린 디스플레이(350)(예: 도 1의 디스플레이 모듈(160))는 디스플레이(351)와 터치패널(353)을 포함하는 일체형으로 구성될 수 있다.According to various embodiments of the present disclosure, the touch screen display 350 (eg, the display module 160 of FIG. 1 ) may be integrally configured including the display 351 and the touch panel 353 .

일 실시예에서, 터치스크린 디스플레이(350)는 프로세서(360)의 제어 하에 영상을 표시하며, 액정 디스플레이(liquid crystal display, LCD), 발광 다이오드(light-emitting diode, LED) 디스플레이, 유기 발광 다이오드(organic light-emitting diode, OLED) 디스플레이, 또는 마이크로 전자 기계 시스템(micro electro mechanical systems, MEMS) 디스플레이, 또는 전자 종이(electronic paper) 디스플레이 중 어느 하나로 구현될 수 있다. 하지만 이에 한정하는 것은 아니다. 예컨대, 터치스크린 디스플레이(350)는 롤러블(rollable), 슬라이더블(slidable), 스트레처블(stretchable), 또는 폴더블(foldable) 가능한 디스플레이를 포함할 수 있다.In one embodiment, the touch screen display 350 displays an image under the control of the processor 360, and includes a liquid crystal display (LCD), a light-emitting diode (LED) display, and an organic light emitting diode (OLED). It may be implemented as any one of an organic light-emitting diode (OLED) display, a micro electro mechanical systems (MEMS) display, or an electronic paper display. However, it is not limited thereto. For example, the touch screen display 350 may include a rollable, slidable, stretchable, or foldable display.

일 실시예에서, 터치스크린 디스플레이(350)는 프로세서(360)의 제어 하에 카메라 어플리케이션을 실행하는 것에 기반하여, 카메라 기능과 관련된 사용자 인터페이스를 표시할 수 있다. 터치스크린 디스플레이(350)는 프로세서(360)의 제어 하에 카메라(330)로부터 획득된 복수의 피사체들을 포함하는 프리뷰 이미지를 표시할 수 있다. 터치스크린 디스플레이(350)는 프로세서(360)의 제어 하에 파노라마 촬영을 수행하는 경우, 특정 방향(예: 수평 방향 및/또는 수직 방향)으로 이동을 가이드 하는 파노라마 뷰 경로를 표시할 수 있다.In one embodiment, the touchscreen display 350 may display a user interface related to a camera function based on executing a camera application under the control of the processor 360 . The touch screen display 350 may display a preview image including a plurality of subjects obtained from the camera 330 under the control of the processor 360 . When panoramic photography is performed under the control of the processor 360, the touch screen display 350 may display a panorama view path guiding movement in a specific direction (eg, a horizontal direction and/or a vertical direction).

본 개시의 다양한 실시예들에 따르면, 프로세서(360)(예: 도 1의 프로세서(120) 및/또는 도 2의 이미지 시그널 프로세서(260))는 예를 들어, 마이크로 컨트롤러 유닛(MCU, micro controller unit)을 포함할 수 있고, 운영체제(OS) 또는 임베디드 소프트웨어 프로그램을 구동하여 프로세서(360)에 연결된 다수의 하드웨어 구성 요소들을 제어할 수 있다. 예를 들어, 프로세서(360)는 메모리(320)에 저장된 인스트럭션들(instructions)(예: 도 1의 프로그램(140))에 따라 다수의 하드웨어 구성 요소들을 제어할 수 있다.According to various embodiments of the present disclosure, the processor 360 (eg, the processor 120 of FIG. 1 and/or the image signal processor 260 of FIG. 2 ) is, for example, a micro controller unit (MCU). unit), and may control a plurality of hardware components connected to the processor 360 by driving an operating system (OS) or an embedded software program. For example, the processor 360 may control a plurality of hardware components according to instructions stored in the memory 320 (eg, the program 140 of FIG. 1 ).

다양한 실시예들에서, 프로세서(360)는 전자 장치(301)의 전반적인 동작 및 전자 장치(301)의 내부 구성들 간의 신호 흐름을 제어하고, 데이터 처리를 수행할 수 있다.In various embodiments, the processor 360 may control overall operation of the electronic device 301 and signal flow between internal components of the electronic device 301 and may process data.

다양한 실시예들에 따른 프로세서(360)는 카메라(330)를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득할 수 있다. 복수의 피사체들은, 카메라(330)로부터 제1 거리(예: 근거리)에 위치하는 제1 피사체 및 제1 거리보다 큰 제2 거리(예: 원거리)에 위치하는 제2 피사체를 포함할 수 있다. 프로세서(360)는 뎁스 센서(341)를 통해 복수의 프레임들에 포함된 복수의 피사체들에 대한 뎁스 정보를 확인할 수 있다. 예컨대, 복수의 피사체들에 대한 뎁스 정보는, 카메라(330)와 복수의 피사체들 각각 간의 거리 정보 및/또는 거리 정보에 따른 히스토그램 정보(예: 각 프레임에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수)를 포함할 수 있다.The processor 360 according to various embodiments may acquire a plurality of frames including a plurality of subjects through the camera 330 . The plurality of subjects may include a first subject positioned at a first distance (eg, short distance) from the camera 330 and a second subject positioned at a second distance (eg, far distance) greater than the first distance. The processor 360 may check depth information on a plurality of subjects included in a plurality of frames through the depth sensor 341 . For example, the depth information of the plurality of subjects may include distance information between the camera 330 and each of the plurality of subjects and/or histogram information according to the distance information (eg, distance-by-distance to the plurality of subjects included in each frame). number of pixels).

일 실시예에서, 프로세서(360)는 복수의 피사체들에 대한 뎁스 정보에 기반하여, 복수의 프레임들로부터 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거할 수 있다. 예컨대, 제1 뎁스 정보를 가지는 제1 피사체는, 복수의 피사체들 중 카메라(330)로부터 근거리에 위치하는 피사체 및/또는 각 프레임에 포함된 복수의 피사체들 중 픽셀 개수가 지정된 개수 미만인 피사체(또는, 각 프레임에 포함된 복수의 피사체들 중 작은 픽셀 개수를 가지는 피사체)를 포함할 수 있다.In an embodiment, the processor 360 may remove a first subject having first depth information from among a plurality of subjects from a plurality of frames, based on depth information of the plurality of subjects. For example, the first subject having the first depth information may be a subject located at a short distance from the camera 330 among a plurality of subjects and/or a subject whose number of pixels is less than a specified number among the plurality of subjects included in each frame (or , a subject having a small number of pixels among a plurality of subjects included in each frame).

일 실시예에서, 프로세서(360)는 복수의 프레임들 각각에서 제1 피사체가 제거된 영역의 좌표 값을 확인하고, 제1 피사체가 제거된 영역의 좌표 값에 기반하여, 복수의 프레임들 중 RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인할 수 있다. 프로세서(360)는 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 제1 피사체가 제거된 영역을 보간(interpolation)할 수 있다. 프로세서(360)는 보간된 복수의 프레임들을 합성하여, 이미지를 생성하고, 이를 디스플레이(351)에 표시할 수 있다.In an embodiment, the processor 360 checks coordinate values of an area from which the first subject is removed in each of the plurality of frames, and based on the coordinate values of the area from which the first subject is removed, the processor 360 determines the RGB values of the plurality of frames. At least one other frame including a pixel having a value may be identified. The processor 360 may interpolate an area from which the first subject is removed in each frame based on the identified RGB values of at least one other frame. The processor 360 may synthesize a plurality of interpolated frames to generate an image and display the image on the display 351 .

다양한 실시예들에 따른 전자 장치(301)는, 카메라(330), 센서 회로(340), 및 상기 카메라(330) 및 상기 센서 회로(340)와 작동적으로 연결된 프로세서(360)를 포함하고, 상기 프로세서(360)는, 상기 카메라(330)를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득하고, 상기 센서 회로(340)를 통해 상기 복수의 프레임들에 포함된 상기 복수의 피사체들에 대한 뎁스 정보를 확인하고, 상기 복수의 피사체들에 대한 뎁스 정보에 기반하여, 상기 복수의 프레임들로부터 상기 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거하고, 및 상기 제1 피사체가 제거된 복수의 프레임들을 합성하여, 이미지를 생성하도록 설정될 수 있다.An electronic device 301 according to various embodiments includes a camera 330, a sensor circuit 340, and a processor 360 operatively connected to the camera 330 and the sensor circuit 340, The processor 360 acquires a plurality of frames including a plurality of subjects through the camera 330, and obtains information about the plurality of subjects included in the plurality of frames through the sensor circuit 340. Checking depth information, removing a first subject having first depth information among the plurality of subjects from the plurality of frames based on the depth information of the plurality of subjects, and It may be set to generate an image by synthesizing a plurality of removed frames.

다양한 실시예들에서, 상기 카메라를 통해 획득되는 복수의 프레임들은, 상기 전자 장치(301)의 이동에 따라 상이한 시점에 촬영되는 복수의 프레임들을 포함할 수 있다.In various embodiments, the plurality of frames obtained through the camera may include a plurality of frames captured at different points of time according to the movement of the electronic device 301 .

다양한 실시예들에서, 상기 복수의 피사체들에 대한 뎁스 정보는, 상기 카메라(330)로부터 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 히스토그램 정보를 포함할 수 있다.In various embodiments, the depth information of the plurality of subjects may include distance information between each of the plurality of subjects from the camera 330 and/or histogram information according to the distance information.

다양한 실시예들에서, 상기 히스토그램 정보는, 상기 복수의 프레임들 각각에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수를 포함할 수 있다.In various embodiments, the histogram information may include the number of pixels for each distance to a plurality of subjects included in each of the plurality of frames.

다양한 실시예들에 따른 상기 프로세서(360)는, 상기 카메라(330)와 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 상기 복수의 피사체들에 대한 거리 별 픽셀 개수를 확인하고, 및 상기 거리 정보 및/또는 상기 복수의 피사체들에 대한 거리 별 픽셀 개수에 기반하여, 상기 복수의 피사체들 중 상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 결정하도록 설정될 수 있다.The processor 360 according to various embodiments checks distance information between the camera 330 and each of the plurality of subjects and/or the number of pixels for each distance to the plurality of subjects according to the distance information, and , and based on the distance information and/or the number of pixels per distance to the plurality of subjects, the first subject having the first depth information among the plurality of subjects may be determined.

다양한 실시예들에 따른 상기 프로세서(360)는, 상기 복수의 피사체들 중 상기 카메라(330)로부터 근거리에 위치하는 피사체 및/또는 상기 복수의 피사체들 중 작은 픽셀 개수를 가지는 피사체를, 상기 제1 뎁스 정보를 가지는 제1 피사체로 결정하도록 설정될 수 있다.The processor 360 according to various embodiments selects a subject located at a short distance from the camera 330 from among the plurality of subjects and/or a subject having a small number of pixels among the plurality of subjects, the first It may be set to determine a first subject having depth information.

다양한 실시예들에 따른 상기 프로세서(360)는, 상기 센서 회로(340)를 통해 상기 복수의 프레임들에 대해 3차원 공간 좌표 상의 좌표 값을 설정할 수 있다.The processor 360 according to various embodiments may set coordinate values on 3D space coordinates for the plurality of frames through the sensor circuit 340 .

다양한 실시예들에 따른 상기 프로세서(360)는, 상기 복수의 프레임들 각각에 대한 3차원 공간 좌표 상의 좌표 값을 상기 각 프레임의 픽셀 좌표와 RGB 값에 매핑하도록 설정될 수 있다.The processor 360 according to various embodiments may be configured to map coordinate values on 3D spatial coordinates of each of the plurality of frames to pixel coordinates and RGB values of each frame.

다양한 실시예들에 따른 상기 프로세서(360)는, 상기 제1 뎁스 정보를 가지는 상기 제1 피사체가 제거된 영역의 좌표 값에 기반하여, 상기 복수의 프레임들 중 RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인하고, 및 상기 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 상기 제1 피사체가 제거된 영역을 보간하도록 설정될 수 있다.The processor 360 according to various embodiments includes a pixel having an RGB value among the plurality of frames based on coordinate values of an area from which the first subject having the first depth information is removed. At least one other frame may be identified, and an area from which the first subject is removed in each frame may be interpolated based on the identified RGB values of the at least one other frame.

다양한 실시예들에 따른 상기 프로세서(360)는, 상기 제1 피사체가 제거된 영역을 보간한 복수의 프레임들을 합성하여, 상기 이미지를 생성하도록 설정될 수 있다.The processor 360 according to various embodiments may be set to generate the image by synthesizing a plurality of frames obtained by interpolating an area from which the first subject is removed.

다양한 실시예들에서, 상기 생성된 이미지는, 상기 복수의 피사체들 중 제2 뎁스 정보를 가지는 제2 피사체를 포함할 수 있다.도 4a는, 다양한 실시예들에 따른, 뎁스 정보에 기반하여 이미지를 처리하는 방법을 설명하기 위한 흐름도(400)이다.In various embodiments, the generated image may include a second subject having second depth information among the plurality of subjects. FIG. 4A illustrates an image based on depth information according to various embodiments. It is a flowchart 400 for explaining a method of processing.

도 4a를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))의 프로세서(예: 도 3의 프로세서(360))는 401동작에서, 카메라(예: 도 3의 카메라(330))를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득할 수 있다. 복수의 피사체들은, 카메라(330)로부터 제1 거리(예: 근거리)에 위치하는 제1 피사체 및 제1 거리보다 큰 제2 거리(예: 원거리)에 위치하는 제2 피사체를 포함할 수 있다. 하지만 이에 한정하는 것은 아니다.Referring to FIG. 4A , a processor (eg, the processor 360 of FIG. 3 ) of an electronic device (eg, the electronic device 301 of FIG. 3 ), in operation 401 , a camera (eg, the camera 330 of FIG. 3 ) It is possible to obtain a plurality of frames including a plurality of subjects through. The plurality of subjects may include a first subject positioned at a first distance (eg, short distance) from the camera 330 and a second subject positioned at a second distance (eg, far distance) greater than the first distance. However, it is not limited thereto.

다양한 실시예들에서, 카메라(330)를 통해 이미지를 촬영하는 경우, 복수의 피사체들 중 카메라(330)로부터 제1 거리에 위치하는 제1 피사체에 의해 제1 거리보다 큰 제2 거리에 위치하는 제2 피사체(예: 타겟 피사체)가 가려질 수 있다. 프로세서(360)는 복수의 프레임들로부터 제2 거리에 위치하는 제2 피사체를 가리는 제1 거리에 위치하는 제1 피사체를 제거하여, 제2 거리에 위치하는 제2 피사체(예: 타겟 피사체)만을 포함하는 이미지를 획득하기 위해, 후술하는 403동작 내지 407동작을 수행할 수 있다.In various embodiments, when an image is captured through the camera 330, a first subject located at a first distance from the camera 330 among a plurality of subjects is located at a second distance greater than the first distance. The second subject (eg, the target subject) may be covered. The processor 360 removes the first subject located at the first distance from the plurality of frames that covers the second subject located at the second distance, and only uses the second subject (eg, the target subject) located at the second distance. Operations 403 to 407 described below may be performed to acquire the included image.

일 실시예에서, 프로세서(360)는 403동작에서, 센서 회로(예: 도 3의 센서 회로(340))를 통해 복수의 프레임들에 포함된 복수의 피사체들에 대한 뎁스(depth) 정보를 확인할 수 있다. 프로세서(360)는 405동작에서, 복수의 피사체들에 대한 뎁스 정보에 기반하여, 복수의 프레임들로부터 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거할 수 있다.In an embodiment, the processor 360 checks depth information on a plurality of subjects included in a plurality of frames through a sensor circuit (eg, the sensor circuit 340 of FIG. 3 ) in operation 403 . can In operation 405, the processor 360 may remove a first subject having first depth information among a plurality of subjects from a plurality of frames, based on the depth information of the plurality of subjects.

다양한 실시예들에서, 복수의 피사체들에 대한 뎁스 정보는, 카메라(330)와 복수의 피사체들 각각 간의 거리 정보 및/또는 거리 정보에 따른 히스토그램 정보를 포함할 수 있다. 히스토그램 정보는, 각 프레임에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수를 포함할 수 있다.In various embodiments, the depth information of the plurality of subjects may include distance information between the camera 330 and each of the plurality of subjects and/or histogram information according to the distance information. The histogram information may include the number of pixels for each distance to a plurality of subjects included in each frame.

다양한 실시예들에서, 제1 뎁스 정보를 가지는 제1 피사체는, 복수의 피사체들 중 카메라(330)로부터 근거리에 위치하는 피사체 및/또는 각 프레임에 포함된 복수의 피사체들 중 픽셀 개수가 지정된 개수 미만인 피사체(또는, 각 프레임에 포함된 복수의 피사체들 중 작은 픽셀 개수를 가지는 피사체)를 포함할 수 있다.In various embodiments, the first subject having the first depth information may be a subject located at a short distance from the camera 330 among a plurality of subjects and/or a specified number of pixels among a plurality of subjects included in each frame. It may include a subject (or a subject having a small number of pixels among a plurality of subjects included in each frame).

일 실시예에서, 프로세서(360)는 407동작에서, 제1 피사체가 제거된 복수의 프레임들을 합성하여, 이미지를 생성할 수 있다. 예컨대, 프로세서(360)는 복수의 프레임들 각각에서 제1 피사체가 제거된 영역의 좌표 값을 확인하고, 제1 피사체가 제거된 영역의 좌표 값에 기반하여, 복수의 프레임들 중 RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인할 수 있다. 프로세서(360)는 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 제1 피사체가 제거된 영역을 보간(interpolation)할 수 있다. 프로세서(360)는 보간된 복수의 프레임들을 합성하여, 이미지를 생성할 수 있다.In an embodiment, in operation 407, the processor 360 may generate an image by synthesizing a plurality of frames from which the first subject is removed. For example, the processor 360 checks coordinate values of an area from which the first subject is removed in each of a plurality of frames, and based on the coordinate values of the area from which the first subject is removed, RGB values among the plurality of frames exist. At least one other frame containing a pixel that The processor 360 may interpolate an area from which the first subject is removed in each frame based on the identified RGB values of at least one other frame. The processor 360 may generate an image by synthesizing a plurality of interpolated frames.

다양한 실시예들에 따른 전술한 도 4a의 각 동작과 관련하여, 후술하는 도 4b에서 다양한 실시예들이 설명될 것이다.In relation to each operation of FIG. 4A described above according to various embodiments, various embodiments will be described in FIG. 4B to be described later.

도 4b는, 다양한 실시예들에 따른, 뎁스 정보에 기반하여 이미지를 처리하는 방법을 설명하기 위한 흐름도(450)이다.4B is a flowchart 450 illustrating a method of processing an image based on depth information, according to various embodiments.

도 4b를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))의 프로세서(예: 도 3의 프로세서(360))는 451동작에서, 카메라 어플리케이션을 실행할 수 있다. 예컨대, 프로세서(360)는 카메라 어플리케이션을 실행하는 입력을 검출하는 것에 기반하여, 카메라(예: 도 3의 카메라(330))를 통해 획득되는 프리뷰 이미지를 디스플레이(예: 도 3의 디스플레이(351))에 표시할 수 있다.Referring to FIG. 4B , a processor (eg, the processor 360 of FIG. 3 ) of an electronic device (eg, the electronic device 301 of FIG. 3 ) may execute a camera application in operation 451 . For example, the processor 360 displays a preview image obtained through a camera (eg, the camera 330 of FIG. 3 ) based on detecting an input for executing a camera application (eg, the display 351 of FIG. 3 ). ) can be displayed.

일 실시예에서, 프로세서(360)는 카메라 어플리케이션을 실행하는 입력을 검출하는 것에 기반하여, 디스플레이(351)에 표시된 프리뷰 이미지 상에 촬영 버튼을 제공할 수 있다. 촬영 버튼을 선택하는 사용자 입력이 검출되면, 프로세서(360)는 촬영을 시작할 수 있다.In one embodiment, the processor 360 may provide a photographing button on the preview image displayed on the display 351 based on detecting an input for executing the camera application. When a user input for selecting a photographing button is detected, the processor 360 may start photographing.

일 실시예에서, 프로세서(360)는 453동작에서, 방해물 제거 모드로 설정되어 있는지 여부를 확인할 수 있다. 예컨대, 프로세서(360)는 복수의 촬영 모드를 제공할 수 있다. 복수의 촬영 모드는, 일반(또는 자동), 동영상, 셀피, 라이브 포커스, 슬로우 모션, 프로, 및/또는 파노라마를 포함할 수 있다. 일 실시예에서, 방해물 제거 모드는 일반 촬영 및/또는 파노라마 촬영에서 제공될 수 있다. 하지만 이에 한정하는 것은 아니다.In one embodiment, in operation 453, the processor 360 may check whether the blockage removal mode is set. For example, the processor 360 may provide a plurality of shooting modes. The plurality of shooting modes may include normal (or automatic), video, selfie, live focus, slow motion, pro, and/or panorama. In one embodiment, the obstruction removal mode may be provided in normal shooting and/or panoramic shooting. However, it is not limited thereto.

전술한 파노라마 촬영에서의 방해물 제거 모드는 후술하는 도 5a 내지 도 7b에서 다양한 실시예들이 설명될 것이다. 또한, 일반 촬영에서의 방해물 제거 모드는 후술하는 도 8a 내지 도 9b에서 다양한 실시예들에 설명될 것이다.Various embodiments of the obstruction removal mode in the above-described panoramic photographing will be described with reference to FIGS. 5A to 7B to be described later. Also, the obstruction removal mode in normal shooting will be described in various embodiments in FIGS. 8A to 9B to be described later.

일 실시예에서, 방해물 제거 모드로 설정된 것으로 확인되면(예: 453동작의 YES), 프로세서(360)는 455동작에서, 카메라(330)를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득할 수 있다. 예컨대, 복수의 피사체들은, 카메라(330)로부터 제1 거리(예: 근거리)에 위치하는 제1 피사체 및 제1 거리보다 큰 제2 거리(예: 원거리)에 위치하는 제2 피사체를 포함할 수 있다. 일 실시예에서, 파노라마 촬영에서의 방해물 제거 모드인 경우, 프로세서(360)는 특정 방향(예: 수평 방향 및/또는 수직 방향)으로 이동을 가이드 하는 파노라마 뷰 경로를 디스플레이(351)에 표시할 수 있다. In one embodiment, if it is confirmed that the obstacle removal mode is set (eg, YES in operation 453), the processor 360 may acquire a plurality of frames including a plurality of subjects through the camera 330 in operation 455. have. For example, the plurality of subjects may include a first subject located at a first distance (eg, short distance) from the camera 330 and a second subject located at a second distance (eg, far distance) greater than the first distance. have. In one embodiment, in the case of an obstruction removal mode in panoramic shooting, the processor 360 may display a panoramic view path guiding movement in a specific direction (eg, a horizontal direction and/or a vertical direction) on the display 351. have.

일 실시예에서, 프로세서(360)는 특정 방향(예: 수평 방향 및/또는 수직 방향)으로 전자 장치(301)가 이동하는 것을 검출할 수 있다. 전자 장치(301)의 이동에 따라 카메라(330)의 구도는 변경될 수 있다. 복수의 피사체들을 포함하는 복수의 프레임들은, 전자 장치(301)의 이동(예: 수평 방향 및/또는 수직 방향으로의 이동)에 따라 상이한 시점(예: 촬영 시점)에 획득되는 복수의 프레임들(예: 제1 프레임, 제2 프레임, 제3 프레임, …, 제n-2 프레임, 제n-1 프레임, 및 제n 프레임)을 포함할 수 있다. 예컨대, 프로세서(360)는 전자 장치(301)의 이동을 검출하는 것에 기반하여, 제1 시점에 제1 프레임을 획득하고, 제2 시점에 제2 프레임을 획득하고, 제3 시점에 제3 프레임을 획득할 수 있다. 계속해서, 전자 장치(301)의 이동을 검출하는 것에 기반하여, 프로세서(360)는 제n-2 시점에 제n-2 프레임을 획득하고, 제n-1 시점에 제n-1 프레임을 획득하고, 제n 시점에 제n 프레임을 획득할 수 있다.In one embodiment, the processor 360 may detect movement of the electronic device 301 in a specific direction (eg, a horizontal direction and/or a vertical direction). As the electronic device 301 moves, the composition of the camera 330 may change. A plurality of frames including a plurality of subjects are a plurality of frames (e.g., acquired at different points in time (e.g., shooting time) according to movement of the electronic device 301 (e.g., movement in a horizontal direction and/or a vertical direction). Example: the first frame, the second frame, the third frame, ..., the n−2 th frame, the n−1 th frame, and the n th frame). For example, the processor 360 obtains a first frame at a first time point, a second frame at a second time point, and a third frame at a third time point based on the detection of movement of the electronic device 301 . can be obtained. Subsequently, based on the detection of the movement of the electronic device 301, the processor 360 obtains the n-2th frame at the n-2th time point, and obtains the n-1th frame at the n-1th time point. and an n-th frame may be acquired at an n-th time point.

일 실시예에서, 제1 시점은 촬영 요청이 검출된 시점(예: 전술한 촬영 버튼을 선택하는 사용자 입력이 검출된 시점)을 포함할 수 있으며, 제n 시점은 촬영이 종료되는 시점을 포함할 수 있다. 하지만 이에 한정하는 것은 아니다.In one embodiment, the first point of view may include a time point when a photographing request is detected (eg, a time point when a user input for selecting the above-described photographing button is detected), and the n-th point of time may include a time point when photographing ends. can However, it is not limited thereto.

일 실시예에서, 복수의 프레임들 각각은 일부 중첩된 영역을 가질 수 있다. 예컨대, 제1 프레임과 제2 프레임 및/또는 제3 프레임은 일부 중첩된 영역을 가질 수 있으며, 제n-2 프레임과 제n-1 프레임 및/또는 제n 프레임은 일부 중첩된 영역을 가질 수 있다.In one embodiment, each of the plurality of frames may have some overlapping area. For example, the first frame, the second frame, and/or the third frame may have partially overlapped areas, and the n-2th frame, the n-1th frame, and/or the nth frame may have partially overlapped areas. have.

다른 실시예에서, 일반 촬영에서의 방해물 제거 모드인 경우, 프로세서(360)는 전자 장치(301)의 센서 회로(340)를 통해 모션 제스처(예: 전자 장치(301)를 특정 방향으로 흔드는 제스처)를 검출할 수 있다. 프로세서(360)는 모션 제스처를 검출하는 것에 응답하여, 카메라(330)를 통해 상이한 시점에 복수의 피사체들을 포함하는 복수의 프레임들을 획득할 수 있다.In another embodiment, in the case of an obstruction removal mode in normal shooting, the processor 360 performs a motion gesture (eg, a gesture of shaking the electronic device 301 in a specific direction) through the sensor circuit 340 of the electronic device 301 . can be detected. In response to detecting the motion gesture, the processor 360 may obtain a plurality of frames including a plurality of subjects at different viewpoints through the camera 330 .

일 실시예에서, 프로세서(360)는 457동작에서, 센서 회로(예: 도 3의 센서 회로(340))를 통해 복수의 프레임들에 대한 뎁스 맵(depth map)을 생성할 수 있다. 예컨대, 프로세서(360)는 센서 회로(340) 예컨대, 뎁스 센서(예: 뎁스 센서(341))를 이용하여 카메라(330)를 통해 획득되는 복수의 프레임들에 대한 뎁스 맵을 생성할 수 있다. 예컨대, 프로세서(360)는 전자 장치(301)가 특정 방향으로 이동하는 것에 기반하여, 뎁스 센서(341)를 이용하여 제1 시점에 획득된 제1 프레임에 대한 뎁스 맵을 생성하고, 제2 시점에 획득된 제2 프레임에 대한 뎁스 맵을 생성하고, 제n 시점에 획득된 제n 프레임에 대한 뎁스 맵을 생성할 수 있다.In an embodiment, the processor 360 may generate a depth map for a plurality of frames through a sensor circuit (eg, the sensor circuit 340 of FIG. 3 ) in operation 457 . For example, the processor 360 may generate a depth map for a plurality of frames acquired through the camera 330 using the sensor circuit 340 , for example, a depth sensor (eg, the depth sensor 341 ). For example, the processor 360 generates a depth map for a first frame acquired at a first point of view using the depth sensor 341 based on the movement of the electronic device 301 in a specific direction, and the second point of view A depth map for the second frame acquired at , and a depth map for the n-th frame obtained at the n-th point of view may be generated.

일 실시예에서, 프로세서(360)는 459동작에서, 생성된 복수의 프레임들에 대한 뎁스 맵에 기반하여, 복수의 피사체들에 대한 뎁스 정보를 확인할 수 있다. 복수의 피사체들에 대한 뎁스 정보는, 카메라(330)와 복수의 피사체들 각각 간의 거리 정보를 포함할 수 있다. 이에 한정하는 것은 아니며, 복수의 피사체들에 대한 뎁스 정보는, 카메라(330)와 복수의 피사체들 각각 간의 거리 정보에 따른 히스토그램 정보를 더 포함할 수 있다. 카메라(330)와 복수의 피사체들 각각 간의 거리 정보에 따른 히스토그램 정보는, 각 프레임에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수를 포함할 수 있다.In an embodiment, in operation 459, the processor 360 may check depth information on a plurality of subjects based on the generated depth maps of the plurality of frames. Depth information about the plurality of subjects may include distance information between the camera 330 and each of the plurality of subjects. The present invention is not limited thereto, and the depth information of the plurality of subjects may further include histogram information according to distance information between the camera 330 and each of the plurality of subjects. Histogram information according to distance information between the camera 330 and each of the plurality of subjects may include the number of pixels for each distance to the plurality of subjects included in each frame.

일 실시예에서, 프로세서(360)는 461동작에서, 복수의 피사체들에 대한 뎁스 정보에 기반하여, 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 확인할 수 있다.In an embodiment, in operation 461, the processor 360 may identify a first subject having first depth information among a plurality of subjects based on the depth information of the plurality of subjects.

예컨대, 프로세서(360)는 카메라(330)와 복수의 피사체들 각각의 거리 정보 및/또는 거리 정보에 따른 히스토그램 정보에 기반하여, 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 확인할 수 있다. 예컨대, 제1 뎁스 정보를 가지는 제1 피사체는, 복수의 피사체들 중 카메라(330)로부터 근거리에 위치하는 피사체 및/또는 각 프레임에 포함된 복수의 피사체들 중 픽셀 개수가 지정된 개수 미만인 피사체(또는, 각 프레임에 포함된 복수의 피사체들 중 작은 픽셀 개수를 가지는 특정 거리의 피사체)를 포함할 수 있다.For example, the processor 360 may identify a first subject having first depth information among a plurality of subjects based on distance information between the camera 330 and each of the plurality of subjects and/or histogram information according to the distance information. have. For example, the first subject having the first depth information may be a subject located at a short distance from the camera 330 among a plurality of subjects and/or a subject whose number of pixels is less than a specified number among the plurality of subjects included in each frame (or , an object of a specific distance having a small number of pixels among a plurality of objects included in each frame).

일 실시예에서, 프로세서(360)는 463동작에서, 복수의 프레임들로부터 제1 뎁스 정보를 가지는 제1 피사체를 제거할 수 있다. 프로세서(360)는 465동작에서, 복수의 프레임들 각각에서 제1 피사체가 제거된 영역의 좌표 값을 확인할 수 있다. 예컨대, 프로세서(360)는 카메라(330)를 통해 복수의 프레임들을 획득하는 경우, 관성 센서(예: 도 3의 관성 센서(343))를 활성화할 수 있다. 프로세서(360)는 관성 센서(343)를 이용하여 복수의 프레임들에 대해 3차원 공간 좌표 상의 좌표 값을 설정할 수 있다. 복수의 프레임들 각각의 3차원 공간 좌표는 각 프레임의 픽셀의 좌표와 RGB 값에 매칭될 수 있다. 프로세서(360)는 할당된 복수의 프레임들 각각에 대한 3차원 공간 좌표 상의 좌표 값과 이에 매칭되는 픽셀의 좌표 및 RGB 값을 메모리(예: 도 3의 메모리(320))에 저장할 수 있다.In an embodiment, in operation 463, the processor 360 may remove the first subject having the first depth information from the plurality of frames. In operation 465, the processor 360 may check a coordinate value of an area from which the first subject is removed in each of a plurality of frames. For example, the processor 360 may activate an inertial sensor (eg, the inertial sensor 343 of FIG. 3 ) when acquiring a plurality of frames through the camera 330 . The processor 360 may set coordinate values on 3D space coordinates for a plurality of frames using the inertial sensor 343 . The 3D spatial coordinates of each of the plurality of frames may be matched with pixel coordinates and RGB values of each frame. The processor 360 may store in a memory (eg, the memory 320 of FIG. 3 ) coordinate values on 3D spatial coordinates for each of a plurality of allocated frames, and coordinates and RGB values of pixels matched thereto.

일 실시예에서, 프로세서(360)는 467동작에서, 각 프레임에서 제1 피사체가 제거된 영역의 좌표 값에 기반하여, RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인할 수 있다. 프로세서(360)는 469동작에서, 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 제1 피사체가 제거된 영역을 보간할 수 있다.In an embodiment, in operation 467, the processor 360 may identify at least one other frame including a pixel having an RGB value based on the coordinate values of the region from which the first subject is removed in each frame. In operation 469, the processor 360 may interpolate an area from which the first subject is removed in each frame based on the identified RGB values of at least one other frame.

예컨대, 파노라마 촬영에서의 방해물 제거 모드인 경우, 프로세서(360)는 카메라(330)의 이동(예: 카메라(330)의 구도를 변경)으로 상이한 시점(예: 촬영 시점)에 획득되는 복수의 프레임들 중 제1 피사체가 제거된 영역의 좌표 값에 대응하는 좌표에 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 프로세서(360)는 RGB 값이 존재하는 픽셀을 포함하는 프레임에 기반하여, 각 프레임에서 제1 피사체가 제거된 영역을 보간할 수 있다.For example, in the case of the obstruction removal mode in panoramic photography, the processor 360 moves the camera 330 (eg, changes the composition of the camera 330) to obtain a plurality of frames at different points in time (eg, a shooting point). Among them, a frame including a pixel having an RGB value at a coordinate corresponding to a coordinate value of an area from which the first subject is removed may be identified. The processor 360 may interpolate an area from which the first subject is removed in each frame based on frames including pixels having RGB values.

다른 실시예에서, 일반 촬영에서의 방해물 제거 모드인 경우, 프로세서(360)는 전자 장치(301)의 모션 제스처를 검출하는 것에 응답하여 획득된 복수의 프레임들 중 제1 피사체가 제거된 영역의 좌표 값에 대응하는 좌표에 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 프로세서(360)는 RGB 값이 존재하는 픽셀을 포함하는 프레임에 기반하여, 각 프레임에서 제1 피사체가 제거된 영역을 보간할 수 있다.In another embodiment, in the case of the obstacle removal mode in normal shooting, the processor 360 may include coordinates of an area from which the first subject is removed among a plurality of frames obtained in response to detecting the motion gesture of the electronic device 301. A frame including a pixel having an RGB value at a coordinate corresponding to the value can be checked. The processor 360 may interpolate an area from which the first subject is removed in each frame based on frames including pixels having RGB values.

일 실시예에서, 프로세서(360)는 471동작에서, 보간된 복수의 프레임들을 합성하여, 이미지를 생성할 수 있다. 프로세서(360)는 473동작에서, 생성된 이미지를 표시할 수 있다.In one embodiment, in operation 471, the processor 360 may generate an image by synthesizing a plurality of interpolated frames. The processor 360 may display the generated image in operation 473.

일 실시예에서, 방해물 제거 모드로 설정되지 않은 것으로 확인되면(예: 453동작의 NO), 프로세서(360)는 475동작에서, 일반 촬영 모드를 수행할 수 있다. 예컨대, 일반 촬영 모드는, 예컨대, 카메라(330)로부터 제1 거리에 위치하는 제1 피사체 및 제1 거리보다 큰 제2 거리에 위치하는 제2 피사체를 포함하는 이미지를 획득하는 모드를 포함할 수 있다.In one embodiment, if it is determined that the obstruction removal mode is not set (eg, NO in operation 453), the processor 360 may perform a normal photographing mode in operation 475. For example, the general photographing mode may include, for example, a mode for obtaining an image including a first subject located at a first distance from the camera 330 and a second subject located at a second distance greater than the first distance. have.

다양한 실시예들에 따른 전자 장치(301)의 뎁스 정보에 기반한 이미지 처리 방법은, 카메라(330)를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득하는 동작, 센서 회로(340)를 통해 상기 복수의 프레임들에 포함된 상기 복수의 피사체들에 대한 뎁스 정보를 확인하는 동작, 상기 복수의 피사체들에 대한 뎁스 정보에 기반하여, 상기 복수의 프레임들로부터 상기 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거하는 동작, 및 상기 제1 피사체가 제거된 복수의 프레임들을 합성하여, 이미지를 생성하는 동작을 포함할 수 있다. An image processing method based on depth information of an electronic device 301 according to various embodiments includes an operation of obtaining a plurality of frames including a plurality of subjects through a camera 330 and the plurality of frames through a sensor circuit 340. Checking depth information on the plurality of subjects included in the frames of, based on the depth information on the plurality of subjects, first depth information among the plurality of subjects from the plurality of frames The holding may include an operation of removing the first subject, and an operation of generating an image by synthesizing a plurality of frames from which the first subject is removed.

다양한 실시예들에서, 상기 카메라(330)를 통해 획득되는 복수의 프레임들은, 상기 전자 장치(301)의 이동에 따라 상이한 시점에 촬영되는 복수의 프레임들을 포함할 수 있다.In various embodiments, the plurality of frames obtained through the camera 330 may include a plurality of frames captured at different points of time according to the movement of the electronic device 301 .

다양한 실시예들에서, 상기 복수의 피사체들에 대한 뎁스 정보는, 상기 카메라(330)로부터 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 히스토그램 정보를 포함할 수 있다In various embodiments, the depth information of the plurality of subjects may include distance information between each of the plurality of subjects from the camera 330 and/or histogram information according to the distance information.

다양한 실시예들에서, 상기 히스토그램 정보는, 상기 복수의 프레임들 각각에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수를 포함할 수 있다.In various embodiments, the histogram information may include the number of pixels for each distance to a plurality of subjects included in each of the plurality of frames.

다양한 실시예들에 따른 상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 제거하는 동작은, 상기 카메라(330)와 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 상기 복수의 피사체들에 대한 거리 별 픽셀 개수를 확인하는 동작, 및 상기 거리 정보 및/또는 상기 복수의 피사체들에 대한 거리 별 픽셀 개수에 기반하여, 상기 복수의 피사체들 중 상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 결정하는 동작을 포함할 수 있다.The operation of removing the first subject having the first depth information according to various embodiments may include distance information between the camera 330 and each of the plurality of subjects and/or the plurality of subjects according to the distance information An operation of checking the number of pixels by distance to the plurality of subjects, and based on the distance information and / or the number of pixels by distance to the plurality of subjects, the first having the first depth information among the plurality of subjects An operation of determining a subject may be included.

다양한 실시예들에 따른 상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 결정하는 동작은, 상기 복수의 피사체들 중 상기 카메라로부터 근거리에 위치하는 피사체 및/또는 상기 복수의 피사체들 중 작은 픽셀 개수를 가지는 피사체를, 상기 제1 뎁스 정보를 가지는 제1 피사체로 결정하는 동작을 포함할 수 있다.The operation of determining the first subject having the first depth information according to various embodiments may include determining a subject located at a short distance from the camera among the plurality of subjects and/or a small number of pixels among the plurality of subjects. An operation of determining a subject having the first depth information as a first subject having the first depth information.

다양한 실시예들에 따른 상기 복수의 피사체들에 대한 뎁스 정보를 확인하는 동작은, 상기 센서 회로(340)를 통해 상기 복수의 프레임들에 대해 3차원 공간 좌표 상의 좌표 값을 설정하는 동작을 포함할 수 있다.The operation of checking the depth information of the plurality of subjects according to various embodiments may include an operation of setting coordinate values on 3D space coordinates for the plurality of frames through the sensor circuit 340. can

다양한 실시예들에 따른 전자 장치(301)의 뎁스 정보에 기반한 이미지 처리 방법은, 상기 복수의 프레임들 각각에 대한 3차원 공간 좌표 상의 좌표 값을 상기 각 프레임의 픽셀 좌표와 RGB 값에 매핑하는 동작을 더 포함할 수 있다.An image processing method based on depth information of an electronic device 301 according to various embodiments includes an operation of mapping coordinate values on 3D spatial coordinates of each of the plurality of frames to pixel coordinates and RGB values of each frame may further include.

다양한 실시예들에 따른 전자 장치(301)의 뎁스 정보에 기반한 이미지 처리 방법은, 상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 제거한 후, 상기 제1 뎁스 정보를 가지는 상기 제1 피사체가 제거된 영역의 좌표 값에 기반하여, 상기 복수의 프레임들 중 RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인하는 동작, 및 상기 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 상기 제1 피사체가 제거된 영역을 보간하는 동작을 더 포함할 수 있다.In the image processing method based on the depth information of the electronic device 301 according to various embodiments, after removing the first subject having the first depth information, the first subject having the first depth information is removed Based on the coordinate values of the region, an operation of identifying at least one other frame including a pixel having an RGB value among the plurality of frames, and based on the identified RGB values of the at least one other frame, each An operation of interpolating a region from which the first subject is removed from the frame may be further included.

다양한 실시예들에 따른 상기 이미지를 생성하는 동작은, 상기 제1 피사체가 제거된 영역을 보간한 복수의 프레임들을 합성하여, 상기 이미지를 생성하는 동작을 포함할 수 있다.The generating of the image according to various embodiments may include generating the image by synthesizing a plurality of frames obtained by interpolating a region from which the first subject is removed.

다양한 실시예들에서, 상기 생성된 이미지는, 상기 복수의 피사체들 중 제2 뎁스 정보를 가지는 제2 피사체를 포함할 수 있다.In various embodiments, the generated image may include a second subject having second depth information among the plurality of subjects.

도 5a 및 도 5b는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 상이한 시점에 복수의 피사체들을 포함하는 복수의 프레임들을 획득하는 방법을 설명하기 위한 도면(500, 550)이다.5A and 5B are diagrams 500 and 550 for explaining a method of acquiring a plurality of frames including a plurality of subjects at different viewpoints in an obstruction removal mode in panoramic photography, according to various embodiments.

도 5a를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))는 카메라(예: 도 3의 카메라(330))를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득할 수 있다. 예컨대, 복수의 피사체들은, 제1 피사체(505) 및 제2 피사체(510)를 포함할 수 있다. 제1 피사체(505)는 카메라(330)로부터 제1 거리(520)에 위치하는 피사체를 포함할 수 있다. 제2 피사체(510)는 카메라(330)로부터 제1 거리(520)보다 큰 제2 거리(515)에 위치하는 피사체를 포함할 수 있다.Referring to FIG. 5A , an electronic device (eg, the electronic device 301 of FIG. 3 ) may acquire a plurality of frames including a plurality of subjects through a camera (eg, the camera 330 of FIG. 3 ). For example, the plurality of subjects may include a first subject 505 and a second subject 510 . The first subject 505 may include a subject located at a first distance 520 from the camera 330 . The second subject 510 may include a subject located at a second distance 515 greater than the first distance 520 from the camera 330 .

일 실시예에서, 파노라마 촬영에서의 방해물 제거 모드로 설정된 경우, 전자 장치(301)는 특정 방향(예: 수평 방향 및/또는 수직 방향)으로 이동을 가이드하는 파노라마 뷰 경로를 제공할 수 있다. 전자 장치(301)는전자 장치(301)의 이동(525)을 검출할 수 있으며, 전자 장치(301)의 이동(525)에 기반하여, 카메라(330)를 통해 상이한 시점에 촬영되는 복수의 피사체들을 포함하는 복수의 프레임들을 획득할 수 있다. 예컨대, 상이한 시점에 촬영되는 복수의 프레임들은, 제1 시점에 획득된 제1 범위(530)의 제1 프레임, 제2 시점에 획득된 제2 범위(535)의 제2 프레임, 및/또는 제3 시점에 획득된 제3 범위(540)의 제3 프레임을 포함할 수 있다. 일 실시예에서, 제1 범위(530), 제2 범위(535), 및 제3 범위(540)는 전자 장치(301)의 이동(525)에 기반하여 상이한 시점(예: 촬영 시점)에 획득되는 카메라(330)의 화각 범위를 의미할 수 있다.In one embodiment, when set to the obstruction removal mode in panoramic photography, the electronic device 301 may provide a panorama view path for guiding movement in a specific direction (eg, a horizontal direction and/or a vertical direction). The electronic device 301 may detect movement 525 of the electronic device 301, and based on the movement 525 of the electronic device 301, a plurality of subjects photographed at different times through the camera 330. It is possible to obtain a plurality of frames including . For example, a plurality of frames photographed at different viewpoints may include a first frame of the first range 530 obtained at a first viewpoint, a second frame of the second range 535 obtained at a second viewpoint, and/or a second frame of the second range 535 obtained at a second viewpoint. It may include the third frame of the third range 540 obtained at the third viewpoint. In one embodiment, the first range 530, the second range 535, and the third range 540 are obtained at different points in time (eg, a shooting point) based on the movement 525 of the electronic device 301. It may refer to the range of the angle of view of the camera 330 to be.

다양한 실시예들에서, 복수의 프레임들을 제1 범위(530)의 제1 프레임, 제2 범위(535)의 제2 프레임, 및/또는 제3 범위(540)의 제3 프레임으로 가정하여 설명하였지만, 이에 한정하는 것은 아니다. 복수의 프레임들은 3개의 프레임을 초과하는 프레임들을 포함할 수 있다.In various embodiments, it has been described assuming that the plurality of frames are the first frame of the first range 530, the second frame of the second range 535, and/or the third frame of the third range 540. , but is not limited thereto. The plurality of frames may include frames exceeding three frames.

다양한 실시예들에서, 전자 장치(301)가 특정 방향 예컨대, 수평 방향(및/또는 수직 방향)으로 이동(525)함에 따라 상이한 시점에 획득되는 복수의 프레임들은, 서로 중첩된 영역을 가질 수 있다. 예컨대, 제1 범위(530)의 제1 프레임과 제2 범위(535)의 제2 프레임은 일부 중첩된 영역을 포함할 수 있으며, 제2 범위(535)의 제2 프레임과 제3 범위(540)의 제3 프레임은 일부 중첩된 영역을 포함할 수 있다.In various embodiments, as the electronic device 301 moves 525 in a specific direction, for example, a horizontal direction (and/or a vertical direction), a plurality of frames obtained at different times may have areas overlapping each other. . For example, the first frame of the first range 530 and the second frame of the second range 535 may include partially overlapping regions, and the second frame of the second range 535 and the third frame 540 of the second range 535 may include overlapping regions. The third frame of ) may include some overlapping regions.

도 5b를 참조하면, 전자 장치(301)는 참조번호 <551>에 도시된 바와 같이 카메라(330)를 통해 제1 범위(530)의 복수의 피사체들 예컨대, 제1 피사체(505) 및 제2 피사체(510)를 포함하는 제1 프레임을 획득할 수 있다. 일 실시예에 따른 제1 프레임에서 제2 피사체(510)는 숫자 “2”, “3”, 및 “4”를 포함할 수 있다. 숫자 “2”, “3”, 및 “4”를 포함하는 제2 피사체(510)의 일부 영역은 제1 피사체(505)에 의해 가려질 수 있다.Referring to FIG. 5B , the electronic device 301, for example, a first subject 505 and a second subject 505 in a first range 530 through a camera 330 as shown by reference number <551>. A first frame including the subject 510 may be obtained. In the first frame according to an embodiment, the second subject 510 may include numbers “2”, “3”, and “4”. A partial area of the second subject 510 including the numbers “2”, “3”, and “4” may be covered by the first subject 505 .

다른 예를 들어, 전자 장치(301)는 참조번호 <553>에 도시된 바와 같이 전자 장치(301)의 이동(525)으로 카메라(330)를 통해 제2 범위(535)의 복수의 피사체들 예컨대, 제1 피사체(505) 및 제2 피사체(510)를 포함하는 제2 프레임을 획득할 수 있다. 일 실시예에 따른 제2 프레임에서 제2 피사체(510)는 숫자 “3”, “4”, 및 “5”를 포함할 수 있다. 숫자 “3”, “4”, 및 “5”를 포함하는 제2 피사체(510)의 일부 영역은 제1 피사체(505)에 의해 가려질 수 있다.For another example, the electronic device 301 moves 525 of the electronic device 301 as shown in reference numeral <553> through the camera 330 to view a plurality of subjects in the second range 535, for example , a second frame including the first subject 505 and the second subject 510 may be acquired. In the second frame according to an embodiment, the second subject 510 may include the numbers “3”, “4”, and “5”. A partial area of the second subject 510 including the numbers “3”, “4”, and “5” may be covered by the first subject 505 .

또 다른 예를 들어, 전자 장치(301)는 참조번호 <555>에 도시된 바와 같이 전자 장치(301)의 이동(525)으로 카메라(330)를 통해 제3 범위(540)의 복수의 피사체들 예컨대, 제1 피사체(505) 및 제2 피사체(510)를 포함하는 제3 프레임을 획득할 수 있다. 일 실시예에 따른 제3 프레임에서 제2 피사체(510)는 숫자 “4”, “5”, “6”, 및 “7”의 일부를 포함할 수 있다. 숫자 “4”, “5”, “6”, 및 “7”을 포함하는 제2 피사체(510)의 일부 영역은 제1 피사체(505)에 의해 가려질 수 있다.As another example, as shown in reference number <555>, the electronic device 301 moves 525 to capture a plurality of subjects in the third range 540 through the camera 330. For example, a third frame including the first subject 505 and the second subject 510 may be acquired. In the third frame according to an embodiment, the second subject 510 may include parts of the numbers “4”, “5”, “6”, and “7”. A partial area of the second subject 510 including the numbers “4”, “5”, “6”, and “7” may be covered by the first subject 505 .

다양한 실시예들에서, 전자 장치(301)는 센서 회로(예: 도 3의 센서 회로(340))를 통해 복수의 프레임들에 포함된 복수의 피사체들에 대한 뎁스(depth) 정보에 기반하여, 복수의 피사체들 중 방해물에 해당하는 피사체를 결정할 수 있다.In various embodiments, the electronic device 301 based on depth information on a plurality of subjects included in a plurality of frames through a sensor circuit (eg, the sensor circuit 340 of FIG. 3 ), A subject corresponding to an obstacle may be determined among a plurality of subjects.

전술한 복수의 피사체들에 대한 뎁스 정보에 기반하여, 복수의 피사체들 중 방해물에 해당하는 피사체를 결정하는 동작과 관련하여, 후술하는 도 5c 및 도 6에서 다양한 실시예들이 설명될 것이다.Various embodiments will be described with reference to FIGS. 5C and 6 to be described later with respect to an operation of determining a subject corresponding to an obstacle among a plurality of subjects based on depth information of the plurality of subjects described above.

도 5c는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 복수의 피사체들을 포함하는 복수의 프레임들에 대한 뎁스 맵을 생성하는 방법을 설명하기 위한 도면(580)이다.FIG. 5C is a diagram 580 for explaining a method of generating a depth map for a plurality of frames including a plurality of subjects in an obstruction removal mode in panoramic photography, according to various embodiments.

도 5c를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))는 센서 회로(예: 센서 회로(340)) 예컨대, 뎁스 센서(예: 도 3의 뎁스 센서(341))를 이용하여 복수의 피사체들에 대한 뎁스 정보를 확인할 수 있다. 예컨대, 전자 장치(301)는 뎁스 센서(341)를 이용하여 카메라(예: 도 3의 카메라(330))를 통해 획득되는 복수의 프레임들에 대한 뎁스 맵(depth map)을 생성할 수 있다. Referring to FIG. 5C, an electronic device (eg, the electronic device 301 of FIG. 3) uses a sensor circuit (eg, the sensor circuit 340), for example, a depth sensor (eg, the depth sensor 341 of FIG. 3). Thus, depth information of a plurality of subjects may be checked. For example, the electronic device 301 may generate a depth map for a plurality of frames obtained through a camera (eg, the camera 330 of FIG. 3 ) using the depth sensor 341 .

예컨대, 전자 장치(301)는 참조번호 <581>에 도시된 바와 같이, 제1 범위(530)의 제1 프레임에 대한 뎁스 맵(예: 도 5b의 참조번호 <551>에 도시된 제1 프레임에 대한 뎁스 맵)을 생성할 수 있다. 다른 예를 들어, 전자 장치(301)는 참조번호 <583>에 도시된 바와 같이, 제2 범위(535)의 제2 프레임에 대한 뎁스 맵(예: 도 5b의 참조번호 <553>에 도시된 제2 프레임에 대한 뎁스 맵)을 생성할 수 있다. 또 다른 예를 들어, 전자 장치(301)는 참조번호 <585>에 도시된 바와 같이, 제3 범위(540)의 제3 프레임에 대한 뎁스 맵(예: 도 5b의 참조번호 <555>에 도시된 제3 프레임에 대한 뎁스 맵)을 생성할 수 있다.For example, as shown in reference number <581>, the electronic device 301 provides a depth map for the first frame of the first range 530 (eg, the first frame shown in reference number <551> in FIG. 5B). depth map) can be created. For another example, as shown in reference number <583>, the electronic device 301 provides a depth map for the second frame of the second range 535 (eg, the depth map shown in reference number <553> in FIG. 5B). A depth map for the second frame) may be generated. For another example, as shown in reference number <585>, the electronic device 301 provides a depth map for the third frame of the third range 540 (eg, shown in reference number <555> in FIG. 5B). A depth map for the third frame) may be generated.

다양한 실시예들에 따른 도 5c에서 복수의 피사체들 중 카메라(330)로부터 제1 거리(520)에 위치하는 제1 피사체(505)는 옅은 음영으로 나타낼 수 있으며, 제1 거리(520)보다 큰 제2 거리(515)에 위치하는 제2 피사체(510)는 진한 음영으로 나타낼 수 있다.In FIG. 5C according to various embodiments, a first subject 505 positioned at a first distance 520 from the camera 330 among a plurality of subjects may be represented by a light shade, and may be larger than the first distance 520. The second subject 510 located at the second distance 515 may be represented by a dark shade.

일 실시예에서, 전자 장치(301)는 제1 범위(530)의 제1 프레임에 대한 뎁스 맵(예: 참조번호 <581> 참조), 제2 범위(535)의 제2 프레임에 대한 뎁스 맵(예: 참조번호 <583> 참조), 및/또는 제3 범위(540)의 제3 프레임에 대한 뎁스 맵(예: 참조번호 <585> 참조)에 기반하여, 복수의 피사체들에 대한 뎁스 정보를 확인할 수 있다.In an embodiment, the electronic device 301 provides a depth map for a first frame in the first range 530 (eg, see reference number <581>) and a depth map for a second frame in the second range 535. (eg, reference number <583>), and/or depth map for the third frame of the third range 540 (eg, reference number <585>), depth information about a plurality of subjects can be checked.

일 실시예에서, 복수의 피사체들에 대한 뎁스 정보는, 카메라(330)와 복수의 피사체들 각각 간의 거리 정보를 포함할 수 있다. 예컨대, 전자 장치(301)는 복수의 프레임들에 대한 뎁스 맵에 기반하여, 카메라(330)와 카메라(330)에 포함된 이미지 센서(예: 도 2의 이미지 센서(230))의 전체 영역 또는 일부 영역에 대응하는 복수의 피사체들 각각 간의 거리 정보를 추출할 수 있다. 전자 장치(301)는 카메라(330)와 복수의 피사체들 각각 간의 거리 정보에 기반하여, 복수의 피사체들 중 근거리에 위치하는 적어도 하나의 피사체(예: 카메라(330)로부터 제1 거리(520)에 위치하는 제1 피사체(505))를 확인할 수 있다.In an embodiment, the depth information of the plurality of subjects may include distance information between the camera 330 and each of the plurality of subjects. For example, the electronic device 301 detects the entire area of the camera 330 and an image sensor included in the camera 330 (eg, the image sensor 230 of FIG. 2 ) or Distance information between each of a plurality of subjects corresponding to a partial area may be extracted. The electronic device 301 determines at least one subject (eg, a first distance 520 from the camera 330) located at a short distance among the plurality of subjects, based on distance information between the camera 330 and each of the plurality of subjects. It is possible to check the first subject 505 located at .

일 실시예에서, 전자 장치(301)는 카메라(330)에 포함된 RGB 센서(미도시)를 이용하여 복수의 피사체들을 포함하는 프레임에서 동일한 속성을 가지는 적어도 하나의 피사체를 확인할 수 있다. 예컨대, 속성은, 색상 및/또는 형상(예: 모양 및/또는 면적)을 포함할 수 있다. 전자 장치(301)는 동일한 속성을 가지는 적어도 하나의 피사체가 지정된 조건을 만족하는지 여부를 확인할 수 있다. 예컨대, 지정된 조건은, 카메라(330)와 동일한 속성 정보를 가지는 적어도 하나의 피사체 간 거리가, 카메라(330)와 적어도 하나의 다른 피사체 간 거리와 동일하거나 또는 작은 조건을 포함할 수 있다. 예컨대, 동일한 속성을 가지는 적어도 하나의 피사체의 거리 정보가 지정된 조건을 만족하는 경우, 전자 장치(301)는 동일한 속성을 가지는 적어도 하나의 피사체를 포함하는 영역을 지정하고, 이를 근거리에 위치하는 적어도 하나의 피사체(예: 카메라(330)로부터 제1 거리(520)에 위치하는 제1 피사체(505))로 확인할 수 있다.In an embodiment, the electronic device 301 may identify at least one subject having the same property in a frame including a plurality of subjects by using an RGB sensor (not shown) included in the camera 330 . For example, attributes may include color and/or shape (eg, shape and/or area). The electronic device 301 may check whether at least one subject having the same attribute satisfies a specified condition. For example, the specified condition may include a condition in which the distance between the camera 330 and at least one subject having the same attribute information is equal to or smaller than the distance between the camera 330 and at least one other subject. For example, when distance information of at least one subject having the same property satisfies a specified condition, the electronic device 301 designates an area including at least one subject having the same property, and designates an area including at least one subject having the same property, and designates an area including at least one subject having the same property, may be identified as a subject of (eg, a first subject 505 located at a first distance 520 from the camera 330).

다양한 실시예들에서, 복수의 피사체들에 대한 뎁스 정보는, 거리 정보에 따른 히스토그램 정보를 더 포함할 수 있다. 히스토그램 정보는, 각 프레임에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수를 포함할 수 있다. 전자 장치(301)는 복수의 피사체들에 대한 거리 정보 및/또는 거리 정보에 따른 히스토그램 정보에 기반하여, 근거리에 위치하는 적어도 하나의 피사체(예: 카메라(330)로부터 제1 거리(520)에 위치하는 제1 피사체(505))를 확인할 수 있다.In various embodiments, depth information on a plurality of subjects may further include histogram information according to distance information. The histogram information may include the number of pixels for each distance to a plurality of subjects included in each frame. The electronic device 301 determines at least one subject (eg, a first distance 520 from the camera 330) located at a short distance based on distance information and/or histogram information according to the distance information for a plurality of subjects. A positioned first subject 505 may be identified.

전술한 복수의 피사체들의 거리 별 픽셀 개수에 기반하여 근거리에 위치하는 적어도 하나의 피사체(예: 카메라(330)로부터 제1 거리(520)에 위치하는 제1 피사체(505))를 확인하는 구성과 관련하여, 후술하는 도 6에서 다양한 실시예들이 설명될 것이다.A configuration for checking at least one subject (eg, a first subject 505 located at a first distance 520 from the camera 330) based on the number of pixels for each distance of the plurality of subjects described above In this regard, various embodiments will be described in FIG. 6 to be described later.

도 6은, 다양한 실시예들에 따른, 복수의 피사체들의 거리 별 픽셀 개수에 기반하여 카메라(330)로부터 근거리에 위치하는 피사체가 방해물인지 여부를 확인하는 방법을 설명하기 위한 그래프(600)이다.FIG. 6 is a graph 600 for explaining a method of determining whether an object located at a short distance from the camera 330 is an obstacle based on the number of pixels for each distance of a plurality of objects, according to various embodiments.

도 6을 참조하면, 전자 장치(예: 도 3의 전자 장치(301))는 제1 범위(예: 도 5a의 제1 범위(530))의 제1 프레임에 대한 뎁스 맵(예: 도 5c의 참조번호 <581> 참조), 제2 범위(예: 도 5a의 제2 범위(535))의 제2 프레임에 대한 뎁스 맵(예: 도 5c의 참조번호 <583> 참조), 및/또는 제3 범위(예: 도 5a의 제3 범위(540))의 제3 프레임에 대한 뎁스 맵(예: 도 5c의 참조번호 <585> 참조)에 기반하여, 뎁스 정보 예컨대, 각 프레임에 포함된 복수의 피사체들에 대한 픽셀 개수를 확인할 수 있다. 예컨대, 전자 장치(301)는 카메라(330)와 복수의 피사체들 각각 간의 거리 정보(610)에 따른 픽셀 개수(620)(예: 뎁스 분포)를 확인할 수 있다.Referring to FIG. 6 , an electronic device (eg, the electronic device 301 of FIG. 3 ) generates a depth map (eg, FIG. 5C ) for a first frame of a first range (eg, the first range 530 of FIG. 5A ). Reference number <581> of), a depth map for the second frame of the second range (eg, second range 535 of FIG. 5A) (eg, reference number <583> of FIG. 5C), and/or Based on the depth map (eg, see reference number <585> of FIG. 5C) of the third frame of the third range (eg, the third range 540 of FIG. 5A), depth information, for example, included in each frame The number of pixels of a plurality of subjects may be checked. For example, the electronic device 301 may check the number of pixels 620 (eg, depth distribution) according to distance information 610 between the camera 330 and each of a plurality of subjects.

일 실시예에서, 전자 장치(301)는 거리 정보(610)에 따른 각 프레임에 포함된 복수의 피사체들에 대한 픽셀 개수(620)에 기반하여, 복수의 피사체들을 근거리(예: 제1 거리(520))에 위치하는 피사체와 원거리(예: 제2 거리(515))에 위치하는 피사체를 구분할 수 있다.In an embodiment, the electronic device 301 selects a plurality of subjects at a short distance (eg, a first distance (eg, a first distance ( 520)) and a subject located at a long distance (eg, the second distance 515) may be distinguished.

예컨대, 도 6에 도시된 바와 같이, 복수의 피사체들은 카메라(330)로부터 상이한 거리에 위치함에 따라 일정 간격으로 분리될 수 있다. 전자 장치(301)는 카메라(330)로부터 제1 거리(520)에 위치하는 제1 피사체(505)(예: 근거리(예: 약 30~50cm)에 위치하는 피사체)와 카메라(330)로부터 제1 거리(520)보다 큰 제2 거리(515)에 위치하는 제2 피사체(510)(예: 원거리(예: 약 180~250cm)에 위치하는 피사체)를 구분할 수 있다.For example, as shown in FIG. 6 , a plurality of subjects may be separated at regular intervals as they are located at different distances from the camera 330 . The electronic device 301 includes a first subject 505 (eg, a subject located at a short distance (eg, about 30 to 50 cm)) located at a first distance 520 from the camera 330 and a subject located at a distance 520 from the camera 330. A second subject 510 (eg, a subject located at a long distance (eg, about 180 to 250 cm)) located at a second distance 515 greater than the first distance 520 may be identified.

일 실시예에서, 전자 장치(301)는 거리 정보(610)에 따른 각 프레임에 포함된 복수의 피사체들에 대한 픽셀 개수(620)에 기반하여, 제1 거리(520)에 위치하는 제1 피사체(505)(예: 근거리(예: 약 30~50cm)에 위치하는 피사체)를 방해물(예: 도 4b의 461동작에서 결정된 제1 뎁스 정보를 가지는 제1 피사체(505))로 결정할 수 있다.In an embodiment, the electronic device 301 determines the first subject located at the first distance 520 based on the number of pixels 620 of the plurality of subjects included in each frame according to the distance information 610. 505 (eg, a subject located at a short distance (eg, about 30 to 50 cm)) may be determined as an obstacle (eg, the first subject 505 having the first depth information determined in operation 461 of FIG. 4B).

다양한 실시예들에서, 전자 장치(301)는 제1 거리(520)에 위치하는 제1 피사체(505)를 방해물로 결정하고, 전술한 도 4b의 463동작 내지 473동작을 수행할 수 있다.In various embodiments, the electronic device 301 may determine the first subject 505 located at the first distance 520 as an obstacle and perform operations 463 to 473 of FIG. 4B .

도 7a는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 복수의 프레임들로부터 제1 뎁스 정보를 가지는 제1 피사체를 제거하고, 제1 피사체가 제거된 프레임의 영역을 보간하는 방법을 설명하기 위한 도면(700)이다.7A is a method of removing a first subject having first depth information from a plurality of frames in an obstruction removal mode in a panoramic photographing and interpolating a region of a frame from which the first subject is removed, according to various embodiments; It is a drawing 700 for explaining.

다양한 실시예들에서, 전자 장치(예: 도 3의 전자 장치(301))는 도 5a 내지 도 6의 실시예들에 따라 방해물로 결정된 카메라(예: 도 3의 카메라(330))로부터 근거리(예: 도 5a의 제1 거리(520))에 위치하는 피사체 예컨대, 제1 피사체(예: 도 5a의 제1 피사체(505))를 복수의 프레임들로부터 제거할 수 있다.In various embodiments, an electronic device (eg, electronic device 301 of FIG. 3 ) is determined to be an obstacle according to embodiments of FIGS. 5A to 6 (eg, camera 330 of FIG. 3 ) at a short distance ( Example: A subject located at a first distance 520 of FIG. 5A , for example, a first subject (eg, first subject 505 of FIG. 5A ) may be removed from a plurality of frames.

다양한 실시예들에서, 전자 장치(301)는 카메라(330)를 통해 복수의 프레임들을 획득하는 경우, 관성 센서(예: 도 3의 관성 센서(343))를 활성화할 수 있다. 프로세서(360)는 관성 센서(343)를 이용하여 복수의 프레임들에 대해 공간 좌표 상의 좌표 값을 설정할 수 있다. 각 프레임에 할당된 3차원 공간 좌표는 각 프레임의 픽셀의 좌표와 RGB 값에 매칭될 수 있다. 예컨대, 제1 범위(예: 도 5a의 제1 범위(530))의 제1 프레임(예: 도 5b의 참조번호 <551>에 도시된 제1 프레임)의 일부, 제2 범위(예: 도 5a의 제2 범위(535))의 제2 프레임(예: 도 5b의 참조번호 <553>에 도시된 제2 프레임)의 일부, 및/또는 제3 범위(예: 도 5a의 제3 범위(540))의 제3 프레임(예: 도 5b의 참조번호 <555>에 도시된 제3 프레임)의 일부는 중첩되는 영역을 가질 수 있으며, 중첩되는 영역은 동일한 좌표 값을 가질 수 있다.In various embodiments, the electronic device 301 may activate an inertial sensor (eg, the inertial sensor 343 of FIG. 3 ) when acquiring a plurality of frames through the camera 330 . The processor 360 may set coordinate values on spatial coordinates for a plurality of frames using the inertial sensor 343 . The 3D spatial coordinates allocated to each frame may be matched with pixel coordinates and RGB values of each frame. For example, a part of a first frame (eg, a first frame shown by reference numeral <551> in FIG. 5B) of a first range (eg, first range 530 of FIG. 5A), a second range (eg, figure Part of the second frame (e.g., the second frame shown in reference numeral <553> of FIG. 5B) of the second range 535 of FIG. 5A, and/or the third range (e.g., the third range of FIG. 5A ( 540) may have overlapping regions, and the overlapping regions may have the same coordinate values.

일 실시예에서, 전자 장치(301)는 복수의 프레임들 각각에서 제1 뎁스 정보를 가지는 제1 피사체(예: 제1 프레임의 711a, 711b, 711c, 제2 프레임의 721a, 721b, 721c, 및 제3 프레임의 731a, 731b, 731c)가 제거된 영역의 백그라운드 픽셀 값을 보간 및 생성할 수 있다. 예컨대, 전자 장치(301)는 각 프레임에서 제1 피사체가 제거된 영역의 좌표 값에 기반하여, 복수의 프레임들 중 RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인할 수 있다. 전자 장치(301)는 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 제1 뎁스 정보를 가지는 제1 피사체(예: 제1 프레임의 711a, 711b, 711c, 제2 프레임의 721a, 721b, 721c, 및 제3 프레임의 731a, 731b, 731c)가 제거된 영역을 보간할 수 있다.In an embodiment, the electronic device 301 detects a first subject having first depth information in each of a plurality of frames (eg, 711a, 711b, and 711c in the first frame, 721a, 721b, and 721c in the second frame, and A background pixel value of an area from which 731a, 731b, and 731c) of the third frame are removed may be interpolated and generated. For example, the electronic device 301 may identify at least one other frame including a pixel having an RGB value among a plurality of frames based on the coordinate values of the region from which the first subject is removed in each frame. The electronic device 301 determines the first subject having the first depth information in each frame (eg, 711a, 711b, and 711c in the first frame, and 721a in the second frame) based on the identified RGB values of at least one other frame. , 721b, 721c, and 731a, 731b, 731c of the third frame) may be interpolated.

예컨대, 도 7a를 참조하면, 전자 장치(301)는, 참조번호 <710>에 도시된 바와 같이, 제1 범위(530)의 제1 프레임으로부터 제1 뎁스 정보를 가지는 제1 피사체(711a, 711b, 711c)를 제거한 프레임을 획득할 수 있다. 전자 장치(301)는 제1 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(711a, 711b, 711c)의 좌표 값에 기반하여 RGB 값이 존재하는 다른 적어도 하나의 프레임을 확인하고, RGB 값이 존재하는 다른 적어도 하나의 프레임에 기반하여 제1 피사체가 제거된 영역(711a, 711b, 711c)을 복원할 수 있다. 예컨대, 전자 장치(301)는 참조번호 <710>에 도시된 제1 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(711a, 711b, 711c)의 좌표 값에 기반하여, 참조번호 <720>에 도시된 제2 프레임 및/또는 참조번호 <730>에 도시된 제3 프레임에서 제1 피사체가 제거된 영역(711a, 711b, 711c)의 좌표 값에 대응하는 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 전자 장치(301)는 제1 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(711b, 711c)을, 이에 대응하는 적어도 하나의 다른 프레임의 영역 예컨대, 제2 프레임의 영역(722a, 722b) 및 제3 프레임의 영역(732a)에 기반하여 보간할 수 있다.For example, referring to FIG. 7A , the electronic device 301, as shown by reference number <710>, first subjects 711a and 711b having first depth information from the first frame of the first range 530 , 711c) can be obtained. The electronic device 301 identifies at least one other frame in which RGB values exist based on the coordinate values of the regions 711a, 711b, and 711c from which the first subject having the first depth information is removed from the first frame, The areas 711a, 711b, and 711c from which the first subject is removed may be reconstructed based on at least one other frame having RGB values. For example, the electronic device 301 based on the coordinate values of the regions 711a, 711b, and 711c from which the first subject having the first depth information in the first frame shown in reference number <710> has been removed, reference number <710>. 720> and/or the third frame shown in reference number <730>, pixels having RGB values corresponding to coordinate values of regions 711a, 711b, and 711c from which the first subject is removed are selected. You can check the containing frame. The electronic device 301 converts the regions 711b and 711c from which the first subject having the first depth information is removed in the first frame to at least one other frame region corresponding thereto, for example, the region 722a of the second frame. 722b) and interpolation based on the area 732a of the third frame.

다른 예를 들어, 전자 장치(301)는 참조번호 <720>에 도시된 바와 같이, 제2 범위(535)의 제2 프레임으로부터 제1 뎁스 정보를 가지는 제1 피사체(721a, 721b, 721c)를 제거한 프레임을 획득할 수 있다. 전자 장치(301)는 참조번호 <720>에 도시된 제2 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(721a, 721b, 721c)의 좌표 값에 기반하여, 참조번호 <710>에 도시된 제1 프레임 및/또는 참조번호 <730>에 도시된 제3 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(721a, 721b, 721c)의 좌표 값에 대응하는 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 예컨대, 전자 장치(301)는 제2 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(721a, 721b, 721c)을, 이에 대응하는 적어도 하나의 다른 프레임의 영역 예컨대, 제1 프레임의 영역(712a, 712b) 및 제3 프레임의 영역(733a, 733b)에 기반하여 보간할 수 있다. For another example, as shown in reference number <720>, the electronic device 301 selects the first subjects 721a, 721b, and 721c having the first depth information from the second frame of the second range 535. Removed frames can be obtained. The electronic device 301 determines reference number <710> based on the coordinate values of the areas 721a, 721b, and 721c from which the first subject having the first depth information is removed in the second frame shown in reference number <720>. RGB values corresponding to coordinate values of regions 721a, 721b, and 721c from which the first subject having the first depth information is removed in the first frame shown in and/or the third frame shown in reference number <730> are You can check frames that contain existing pixels. For example, the electronic device 301 converts the areas 721a, 721b, and 721c from which the first subject having the first depth information is removed in the second frame to at least one other frame corresponding to the areas 721a, 721b, and 721c of the first frame. Interpolation may be performed based on the regions 712a and 712b and the regions 733a and 733b of the third frame.

또 다른 예를 들어, 전자 장치(301)는 참조번호 <730>에 도시된 바와 같이, 제3 범위(540)의 제3 프레임으로부터 제1 뎁스 정보를 가지는 제1 피사체(731a, 731b, 731c)를 제거한 프레임을 획득할 수 있다. 전자 장치(301)는 참조번호 <730>에 도시된 제3 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(731a, 731b)의 좌표 값에 기반하여, 참조번호 <710>에 도시된 제1 프레임 및/또는 참조번호 <720>에 도시된 제2 프레임에서 제1 피사체가 제거된 영역(731a, 731b)의 좌표 값에 대응하는 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 예컨대, 전자 장치(301)는 제3 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(731a, 731b)을, 이에 대응하는 적어도 하나의 다른 프레임의 영역 예컨대, 제1 프레임의 영역(713a) 및 제2 프레임의 영역(723a, 723b)에 기반하여 보간할 수 있다.As another example, the electronic device 301, as shown in reference number <730>, the first subject 731a, 731b, 731c having the first depth information from the third frame of the third range 540 It is possible to obtain a frame from which is removed. The electronic device 301 is shown in reference number <710> based on the coordinate values of the regions 731a and 731b from which the first subject having the first depth information is removed in the third frame shown in reference number <730>. In the first frame and/or the second frame indicated by reference number <720>, a frame including pixels having RGB values corresponding to coordinate values of regions 731a and 731b from which the first subject is removed may be identified. have. For example, the electronic device 301 converts the areas 731a and 731b from which the first subject having the first depth information is removed in the third frame to at least one other frame area corresponding thereto, for example, the area of the first frame ( 713a) and interpolation may be performed based on the regions 723a and 723b of the second frame.

도 7b는, 다양한 실시예들에 따른, 파노라마 촬영에서의 방해물 제거 모드에서 보간된 프레임들을 합성하여 이미지를 생성하는 방법을 설명하기 위한 도면(735)이다.FIG. 7B is a diagram 735 for explaining a method of generating an image by synthesizing interpolated frames in an obstruction removal mode in panoramic photography, according to various embodiments.

도 7b를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))는 참조번호 <740>에 도시된 제1 피사체가 제거된 영역이 보간된 제1 프레임, 참조번호 <750>에 도시된 제1 피사체가 제거된 영역이 보간된 제2 프레임, 및/또는 참조번호 <760>에 도시된 제1 피사체가 제거된 영역이 보간된 제3 프레임을 합성하여, 이미지(예: 파노라마 이미지)를 생성할 수 있다.Referring to FIG. 7B, an electronic device (for example, the electronic device 301 of FIG. 3) is a first frame in which an area from which a first subject is removed shown by reference number <740> is interpolated, shown by reference number <750>. An image (e.g., a panoramic image) is synthesized by synthesizing a second frame in which the area from which the first subject has been removed is interpolated and/or a third frame in which the area from which the first subject is removed shown in reference number <760> is interpolated. can create

일 실시예에서, 전자 장치(301)는 참조번호 <770>에 도시된 바와 같이, 생성된 이미지(예: 파노라마 이미지)를 디스플레이(예: 도 3의 디스플레이(351))에 표시할 수 있다. 예컨대, 디스플레이(351)에 표시되는 이미지(예: 파노라마 이미지)는, 제1 뎁스 정보를 가지는 제1 피사체(예: 도 5a의 제1 피사체(505))가 제거되고, 제2 뎁스 정보를 가지는 제2 피사체(예: 도 5a의 제2 피사체(510))만을 포함하는 이미지를 포함할 수 있다.In an embodiment, the electronic device 301 may display the created image (eg, a panoramic image) on a display (eg, the display 351 of FIG. 3 ), as shown by reference number <770>. For example, in an image (eg, a panoramic image) displayed on the display 351, a first subject (eg, the first subject 505 of FIG. 5A ) having first depth information is removed, and a second subject having second depth information An image including only the second subject (eg, the second subject 510 of FIG. 5A) may be included.

도 8a 및 도 8b는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 상이한 시점에 복수의 피사체들을 포함하는 복수의 프레임들을 획득하는 방법을 설명하기 위한 도면(800, 850)이다.8A and 8B are diagrams 800 and 850 for explaining a method of obtaining a plurality of frames including a plurality of subjects at different viewpoints in an obstacle removal mode in normal photographing, according to various embodiments.

도 8a를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))는 카메라(예: 카메라(330))를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득할 수 있다. 예컨대, 복수의 피사체들은, 제1 피사체(805) 및 제2 피사체(810)를 포함할 수 있다. 제1 피사체(805)는 카메라(330)로부터 제1 거리(820)에 위치하는 피사체를 포함할 수 있다. 제2 피사체(810)는 카메라(330)로부터 제1 거리(820)보다 큰 제2 거리(815)에 위치하는 피사체를 포함할 수 있다.Referring to FIG. 8A , an electronic device (eg, the electronic device 301 of FIG. 3 ) may acquire a plurality of frames including a plurality of subjects through a camera (eg, the camera 330 ). For example, the plurality of subjects may include a first subject 805 and a second subject 810 . The first subject 805 may include a subject located at a first distance 820 from the camera 330 . The second subject 810 may include a subject located at a second distance 815 greater than the first distance 820 from the camera 330 .

일 실시예에서, 전자 장치(301)는 센서 회로(예: 도 3의 센서 회로(340))를 통해 특정 방향(예: 수평 방향 및/또는 수직 방향)으로의 모션 제스처(예: 특정 방향으로 전자 장치(301)를 흔드는 제스처)를 검출하는 것에 응답하여, 상이한 시점에 촬영되는 복수의 프레임들을 카메라(330)를 통해 획득할 수 있다. 예컨대, 상이한 시점에 촬영되는 복수의 프레임들은, 제1 시점에 획득된 제1 범위(830)의 제1 프레임, 제2 시점에 획득된 제2 범위(835)의 제2 프레임, 및/또는 제3 시점에 획득된 제3 범위(840)의 제3 프레임을 포함할 수 있다.In one embodiment, the electronic device 301 performs a motion gesture (eg, in a specific direction) in a specific direction (eg, a horizontal direction and/or a vertical direction) via a sensor circuit (eg, the sensor circuit 340 of FIG. 3 ). In response to detecting a gesture of shaking the electronic device 301 , a plurality of frames photographed at different viewpoints may be obtained through the camera 330 . For example, a plurality of frames photographed at different viewpoints may include a first frame of the first range 830 obtained at a first viewpoint, a second frame of the second range 835 obtained at a second viewpoint, and/or a second frame of the second range 835 obtained at a second viewpoint. It may include the third frame of the third range 840 obtained at the third viewpoint.

다양한 실시예들에서, 특정 방향(예: 수평 방향 및/또는 수직 방향)으로의 모션 제스처에 의해 상이한 시점에 획득되는 복수의 프레임들은, 서로 중첩된 영역을 가질 수 있다. 예컨대, 제1 프레임의 일부 영역, 제2 프레임의 일부 영역, 및/또는 제3 프레임의 일부 영역은, 서로 중첩될 수 있다.In various embodiments, a plurality of frames acquired at different times by a motion gesture in a specific direction (eg, a horizontal direction and/or a vertical direction) may have areas overlapping each other. For example, a partial area of the first frame, a partial area of the second frame, and/or a partial area of the third frame may overlap each other.

도 8b를 참조하면, 전자 장치(301)는 전자 장치(301)의 모션 제스처를 검출하는 것에 응답하여, 참조번호 <851>, <853>, 및 <855>에 도시된 바와 같이 카메라(330)를 통해 제1 범위(830)의 복수의 피사체들(예: 제1 피사체(805) 및 제2 피사체(810))을 포함하는 제1 프레임, 제2 범위(835)의 복수의 피사체들(예: 제1 피사체(805) 및 제2 피사체(810))을 포함하는 제2 프레임, 및 제3 범위(840)의 복수의 피사체들(예: 제1 피사체(805) 및 제2 피사체(810))을 포함하는 제3 프레임을 획득할 수 있다.Referring to FIG. 8B , in response to detecting a motion gesture of the electronic device 301, the electronic device 301 uses a camera 330 as shown in reference numerals <851>, <853>, and <855>. A first frame including a plurality of subjects (eg, the first subject 805 and the second subject 810) of the first range 830 and a plurality of subjects (eg, the second range 835) through : A second frame including the first subject 805 and the second subject 810, and a plurality of subjects in the third range 840 (eg, the first subject 805 and the second subject 810) ) It is possible to obtain a third frame including.

다양한 실시예들에 따른 상이한 시점에 획득되는 복수의 피사체들을 포함하는 복수의 프레임들에서 제2 피사체(810)는 숫자 “3”, “4”, “5”, 및/또는 “6”을 포함할 수 있다. 숫자 “3”, “4”, “5”, 및/또는 “6”을 포함하는 제2 피사체(810)의 일부 영역은 제1 피사체(805)에 의해 가려질 수 있다.In a plurality of frames including a plurality of subjects acquired at different viewpoints according to various embodiments, the second subject 810 includes the numbers “3”, “4”, “5”, and/or “6”. can do. A partial area of the second subject 810 including the numbers “3”, “4”, “5”, and/or “6” may be covered by the first subject 805 .

다양한 실시예들에서, 전자 장치(301)는 센서 회로(예: 도 3의 센서 회로(340))를 통해 복수의 프레임들에 포함된 복수의 피사체들에 대한 뎁스(depth) 정보에 기반하여, 복수의 피사체들 중 방해물에 해당하는 피사체를 결정할 수 있다.In various embodiments, the electronic device 301 based on depth information on a plurality of subjects included in a plurality of frames through a sensor circuit (eg, the sensor circuit 340 of FIG. 3 ), A subject corresponding to an obstacle may be determined among a plurality of subjects.

도 8c는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 복수의 피사체들을 포함하는 복수의 프레임들에 대한 뎁스 맵을 생성하는 방법을 설명하기 위한 도면(880)이다.FIG. 8C is a diagram 880 for explaining a method of generating a depth map for a plurality of frames including a plurality of subjects in an obstruction removal mode in normal shooting, according to various embodiments.

도 8c를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))는 센서 회로(예: 센서 회로(340)) 예컨대, 뎁스 센서(예: 도 3의 뎁스 센서(341))를 이용하여 복수의 피사체들에 대한 뎁스 정보를 확인할 수 있다. 예컨대, 전자 장치(301)는 뎁스 센서(341)를 이용하여 카메라(330)를 통해 획득되는 복수의 프레임들에 대한 뎁스 맵(depth map)을 생성할 수 있다. Referring to FIG. 8C , an electronic device (eg, the electronic device 301 of FIG. 3 ) uses a sensor circuit (eg, the sensor circuit 340 ), for example, a depth sensor (eg, the depth sensor 341 of FIG. 3 ). Thus, depth information of a plurality of subjects may be checked. For example, the electronic device 301 may generate a depth map for a plurality of frames acquired through the camera 330 using the depth sensor 341 .

예컨대, 전자 장치(301)는 참조번호 <881>에 도시된 바와 같이, 제1 범위(830)의 제1 프레임에 대한 뎁스 맵(예: 도 8b의 참조번호 <851>에 대한 뎁스 맵)을 생성할 수 있다. 다른 예를 들어, 전자 장치(301)는 참조번호 <883>에 도시된 바와 같이, 제2 범위(835)의 제2 프레임에 대한 뎁스 맵(예: 도 8b의 참조번호 <583>에 대한 뎁스 맵)을 생성할 수 있다. 또 다른 예를 들어, 전자 장치(301)는 참조번호 <885>에 도시된 바와 같이, 제3 범위(840)의 제3 프레임에 대한 뎁스 맵(예: 도 8b의 참조번호 <855>에 대한 뎁스 맵)을 생성할 수 있다.For example, as shown in reference number <881>, the electronic device 301 generates a depth map for the first frame of the first range 830 (eg, a depth map for reference number <851> in FIG. 8B). can create For another example, as shown in reference number <883>, the electronic device 301 provides a depth map for the second frame of the second range 835 (eg, a depth map for reference number <583> in FIG. 8B). map) can be created. For another example, as shown in reference number <885>, the electronic device 301 provides a depth map for a third frame of the third range 840 (eg, a depth map for reference number <855> in FIG. 8B). depth map).

다양한 실시예들에 따른 도 8c에서 복수의 피사체들 중 카메라(330)로부터 제1 거리(820)에 위치하는 제1 피사체(805)를 옅은 음영으로 나타낼 수 있으며, 제1 거리(820)보다 큰 제2 거리(815)에 위치하는 제2 피사체(810)를 진한 음영으로 나타낼 수 있다.In FIG. 8C according to various embodiments, a first subject 805 located at a first distance 820 from the camera 330 may be represented by a light shade among a plurality of subjects, and a distance greater than the first distance 820 The second subject 810 located at the second distance 815 may be represented by a dark shade.

일 실시예에서, 전자 장치(301)는 제1 범위(830)의 제1 프레임에 대한 뎁스 맵(예: 참조번호 <881> 참조), 제2 범위(835)의 제2 프레임에 대한 뎁스 맵(예: 참조번호 <883> 참조), 및/또는 제3 범위(840)의 제3 프레임에 대한 뎁스 맵(예: 참조번호 <885> 참조)에 기반하여, 복수의 피사체들에 대한 뎁스 정보를 확인할 수 있다.In an embodiment, the electronic device 301 provides a depth map for a first frame in the first range 830 (eg, see reference number <881>) and a depth map for a second frame in the second range 835. (eg, see reference number <883>) and/or based on a depth map (eg, see reference number <885>) for the third frame of the third range 840, depth information about a plurality of subjects can be checked.

일 실시예에서, 복수의 피사체들에 대한 뎁스 정보는, 카메라(330)와 복수의 피사체들 각각 간의 거리 정보 및/또는 거리 정보에 따른 히스토그램 정보(예: 각 프레임에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수)를 포함할 수 있다. 전자 장치(301)는 카메라(330)와 복수의 피사체들 각각 간의 거리 정보 및/또는 거리 정보에 따른 히스토그램 정보에 기반하여, 복수의 피사체들 중 근거리에 위치하는 적어도 하나의 피사체(예: 카메라(330)로부터 제1 거리(820)에 위치하는 제1 피사체(805))를 확인할 수 있다.In an embodiment, the depth information of the plurality of subjects may include distance information between the camera 330 and each of the plurality of subjects and/or histogram information according to the distance information (eg, a plurality of subjects included in each frame). number of pixels per distance). The electronic device 301 selects at least one subject (eg, a camera ( 330), a first subject 805 located at a first distance 820 may be identified.

다양한 실시예들에서, 복수의 피사체들 중 근거리에 위치하는 적어도 하나의 피사체(예: 카메라(330)로부터 제1 거리(820)에 위치하는 제1 피사체(805))를 확인한 후, 전술한 도 4b의 463동작 내지 473동작을 수행할 수 있다.In various embodiments, after checking at least one subject (eg, a first subject 805 located at a first distance 820 from the camera 330) located at a short distance among a plurality of subjects, Operations 463 to 473 of 4b may be performed.

도 9a는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 복수의 프레임들로부터 제1 뎁스 정보를 가지는 제1 피사체를 제거하고, 제1 피사체가 제거된 프레임의 영역을 보간하는 방법을 설명하기 위한 도면(900)이다.9A is a method of removing a first subject having first depth information from a plurality of frames in an obstruction removal mode in normal shooting and interpolating a region of a frame from which the first subject is removed, according to various embodiments; It is a drawing 900 for explaining.

다양한 실시예들에서, 전자 장치(예: 도 3의 전자 장치(301))는 도 8a 내지 도 8c의 실시예들에 따라 방해물로 결정된 카메라(예: 도 3의 카메라(330))로부터 근거리에 위치하는 피사체 예컨대, 제1 피사체(예: 제1 뎁스 정보를 가지는 제1 피사체)를 복수의 프레임들로부터 제거할 수 있다.In various embodiments, an electronic device (eg, electronic device 301 of FIG. 3 ) is at a short distance from a camera (eg, camera 330 of FIG. 3 ) that is determined to be an obstruction according to the embodiments of FIGS. 8A-8C . A positioned subject, for example, a first subject (eg, a first subject having first depth information) may be removed from a plurality of frames.

다양한 실시예들에서, 전자 장치(301)는 카메라(330)를 통해 복수의 프레임들을 획득하는 경우, 관성 센서(예: 도 3의 관성 센서(343))를 이용하여 복수의 프레임들에 대해 3차원 공간 좌표 상의 좌표 값을 설정할 수 있다. 전자 장치(301)는 복수의 프레임들에 대해 3차원 공간 좌표 상의 좌표 값을 할당하고, 할당된 좌표 값에 각 프레임의 픽셀의 좌표와 RGB 값을 매칭시킬 수 있다.In various embodiments, when acquiring a plurality of frames through the camera 330, the electronic device 301 uses an inertial sensor (eg, the inertial sensor 343 of FIG. 3 ) to obtain 3 frames for the plurality of frames. Coordinate values on dimensional space coordinates can be set. The electronic device 301 may allocate coordinate values on 3D space coordinates to a plurality of frames, and match pixel coordinates and RGB values of each frame to the allocated coordinate values.

일 실시예에서, 전자 장치(301)는 복수의 프레임들 각각에서 제1 뎁스 정보를 가지는 제1 피사체(예: 제1 프레임의 911a, 911b, 911c, 제2 프레임의 921a, 921b, 921c, 및 제3 프레임의 931a, 931b)가 제거된 영역의 백그라운드 픽셀 값을 보간 및 생성할 수 있다. 예컨대, 전자 장치(301)는 각 프레임에서 제1 피사체가 제거된 영역의 좌표 값에 기반하여, RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인할 수 있다. 전자 장치(301)는 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 제1 뎁스 정보를 가지는 제1 피사체(예: 제1 프레임의 911a, 911b, 911c, 제2 프레임의 921a, 921b, 921c, 및 제3 프레임의 931a, 931b)가 제거된 영역을 보간할 수 있다.In an embodiment, the electronic device 301 may display a first subject having first depth information in each of a plurality of frames (eg, 911a, 911b, and 911c in the first frame, 921a, 921b, and 921c in the second frame, and A background pixel value of an area where 931a and 931b) of the third frame are removed may be interpolated and generated. For example, the electronic device 301 may identify at least one other frame including a pixel having an RGB value based on the coordinate values of the region from which the first subject is removed in each frame. The electronic device 301 determines the first subject having the first depth information in each frame (eg, 911a, 911b, and 911c in the first frame, and 921a in the second frame) based on the identified RGB values of at least one other frame. , 921b, 921c, and 931a, 931b of the third frame) may be interpolated.

예컨대, 도 9a를 참조하면, 전자 장치(301)는, 참조번호 <910>에 도시된 바와 같이, 제1 범위(830)의 제1 프레임으로부터 제1 뎁스 정보를 가지는 제1 피사체(911a, 911b, 911c)를 제거한 프레임을 획득할 수 있다. 전자 장치(301)는 제1 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(911a, 911b, 911c)의 좌표 값에 기반하여 RGB 값이 존재하는 다른 적어도 하나의 프레임을 확인하고, RGB 값이 존재하는 다른 적어도 하나의 프레임에 기반하여 제1 피사체가 제거된 영역(911a, 911b, 911c)을 복원할 수 있다. 예컨대, 전자 장치(301)는 참조번호 <910>에 도시된 제1 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(911a, 911b, 911c)의 좌표 값에 기반하여, 참조번호 <920>에 도시된 제2 프레임 및/또는 참조번호 <930>에 도시된 제3 프레임에서 제1 피사체가 제거된 영역(911a, 911b, 911c)의 좌표 값에 대응하는 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 전자 장치(301)는 제1 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(911a, 911b, 911c)을 이에 대응하는 적어도 하나의 다른 프레임의 영역 예컨대, 제2 프레임의 영역(922a) 및 제3 프레임의 영역(932a, 932b)에 기반하여 보간할 수 있다.For example, referring to FIG. 9A , the electronic device 301, as shown by reference number <910>, first subjects 911a and 911b having first depth information from the first frame of the first range 830 , 911c) can be obtained. The electronic device 301 identifies at least one other frame in which RGB values exist based on the coordinate values of the regions 911a, 911b, and 911c from which the first subject having the first depth information is removed from the first frame, The regions 911a, 911b, and 911c from which the first subject is removed may be reconstructed based on at least one other frame having RGB values. For example, the electronic device 301 based on the coordinate values of the regions 911a, 911b, and 911c from which the first subject having the first depth information is removed in the first frame shown in reference number <910>, reference number < 920> and/or the third frame shown in reference number <930>, pixels having RGB values corresponding to coordinate values of regions 911a, 911b, and 911c from which the first subject has been removed are selected. You can check the containing frame. The electronic device 301 converts the areas 911a, 911b, and 911c from which the first subject having the first depth information is removed in the first frame to at least one other frame area 922a corresponding to the area 922a of the second frame. ) and the regions 932a and 932b of the third frame.

다른 예를 들어, 전자 장치(301)는 참조번호 <920>에 도시된 바와 같이, 제2 범위(835)의 제2 프레임으로부터 제1 뎁스 정보를 가지는 제1 피사체(921a, 921b, 921c)를 제거한 프레임을 획득할 수 있다. 전자 장치(301)는 참조번호 <920>에 도시된 제2 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(921a, 921b, 921c)의 좌표 값에 기반하여, 참조번호 <910>에 도시된 제1 프레임 및/또는 참조번호 <930>에 도시된 제3 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(921a, 921b, 921c)의 좌표 값에 대응하는 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 예컨대, 전자 장치(301)는 제2 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(921a, 921b, 921c)을 이에 대응하는 적어도 하나의 다른 프레임의 영역 예컨대, 제1 프레임의 영역(912a, 912b, 912c) 및 제3 프레임의 영역(933a, 932c)에 기반하여 보간할 수 있다. For another example, as shown in reference number <920>, the electronic device 301 selects the first subjects 921a, 921b, and 921c having the first depth information from the second frame of the second range 835. Removed frames can be obtained. The electronic device 301 determines reference number <910> based on the coordinate values of the regions 921a, 921b, and 921c from which the first subject having the first depth information is removed in the second frame shown in reference number <920>. RGB values corresponding to coordinate values of regions 921a, 921b, and 921c from which the first subject having the first depth information is removed in the first frame shown in and/or the third frame shown in reference number <930> are You can check frames that contain existing pixels. For example, the electronic device 301 converts the areas 921a, 921b, and 921c from which the first subject having the first depth information is removed in the second frame to at least one other frame area corresponding thereto, for example, the first frame area. Interpolation may be performed based on (912a, 912b, 912c) and areas (933a, 932c) of the third frame.

또 다른 예를 들어, 전자 장치(301)는 참조번호 <930>에 도시된 바와 같이, 제3 범위(840)의 제3 프레임으로부터 제1 뎁스 정보를 가지는 제1 피사체(931a, 931b)를 제거한 프레임을 획득할 수 있다. 전자 장치(301)는 참조번호 <930>에 도시된 제3 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(931a, 931b)의 좌표 값에 기반하여, 참조번호 <910>에 도시된 제1 프레임 및/또는 참조번호 <920>에 도시된 제2 프레임에서 제1 피사체가 제거된 영역(931a, 931b)의 좌표 값에 대응하는 RGB 값이 존재하는 픽셀을 포함하는 프레임을 확인할 수 있다. 예컨대, 전자 장치(301)는 제3 프레임에서 제1 뎁스 정보를 가지는 제1 피사체가 제거된 영역(931a, 931b)을 이에 대응하는 적어도 하나의 다른 프레임의 영역 예컨대, 제1 프레임의 영역(913a) 및 제2 프레임의 영역(923a)에 기반하여 보간할 수 있다.For another example, as shown in reference number <930>, the electronic device 301 removes the first subjects 931a and 931b having the first depth information from the third frame of the third range 840. frame can be obtained. The electronic device 301 is shown in reference number <910> based on the coordinate values of the regions 931a and 931b from which the first subject having the first depth information is removed in the third frame shown in reference number <930>. In the first frame and/or the second frame indicated by reference number <920>, a frame including pixels having RGB values corresponding to the coordinate values of the areas 931a and 931b from which the first subject has been removed may be identified. have. For example, the electronic device 301 converts the areas 931a and 931b from which the first subject having the first depth information is removed in the third frame to at least one other frame area corresponding thereto, for example, the area 913a of the first frame. ) and the area 923a of the second frame.

도 9b는, 다양한 실시예들에 따른, 일반 촬영에서의 방해물 제거 모드에서 보간된 프레임들을 합성하여 이미지를 생성하는 방법을 설명하기 위한 도면(935)이다.9B is a diagram 935 for explaining a method of generating an image by synthesizing interpolated frames in an obstruction removal mode in normal shooting, according to various embodiments.

도 9b를 참조하면, 전자 장치(예: 도 3의 전자 장치(301))는 참조번호 <940>에 도시된 제1 피사체가 제거된 영역이 보간된 제1 프레임, 참조번호 <950>에 도시된 제1 피사체가 제거된 영역이 보간된 제2 프레임, 및/또는 참조번호 <960>에 도시된 제1 피사체가 제거된 영역이 보간된 제3 프레임을 합성하여, 이미지를 생성할 수 있다.Referring to FIG. 9B , an electronic device (e.g., the electronic device 301 of FIG. 3) is a first frame in which an area from which a first subject is removed, indicated by reference number <940>, is interpolated, shown by reference number <950>. An image may be generated by synthesizing a second frame obtained by interpolating an area from which the first subject is removed, and/or a third frame obtained by interpolating an area from which the first subject is removed, shown in reference number <960>.

일 실시예에서, 전자 장치(301)는 참조번호 <970>에 도시된 바와 같이, 생성된 이미지를 디스플레이(예: 도 3의 디스플레이(351))에 표시할 수 있다. 예컨대, 디스플레이(351)에 표시되는 이미지는, 제1 뎁스 정보를 가지는 제1 피사체(예: 도 8a의 제1 피사체(805))가 제거되고, 제2 뎁스 정보를 가지는 제2 피사체(예: 도 8a의 제2 피사체(810))만을 포함하는 이미지를 포함할 수 있다.In one embodiment, the electronic device 301 may display the generated image on a display (eg, the display 351 of FIG. 3 ), as indicated by reference number <970>. For example, in the image displayed on the display 351, the first subject having the first depth information (eg, the first subject 805 of FIG. 8A ) is removed, and the second subject having the second depth information (eg, the first subject 805 of FIG. 8A ) An image including only the second subject 810 of FIG. 8A may be included.

다양한 실시예들에서, 제2 피사체(예: 원거리에 위치하는 타겟 피사체)와 제2 피사체를 가리는 제1 피사체(예: 근거리에 위치하는 방해물) 간의 거리 차에 의해 카메라(330)의 구도 별로 제1 피사체에 의해 가려진 제2 피사체의 영역이 변할 수 있는 점을 이용하여, 카메라(330)를 통해 전자 장치(301)의 이동(또는 모션 제스처)에 따라 상이한 시점에 획득되는 복수의 프레임들에서 제1 피사체를 제거하고, 제1 피사체가 제거된 영역을 다른 프레임에 기반하여 보간함에 따라, 주 피사체만을 포함하는 이미지를 용이하게 획득할 수 있다.In various embodiments, the composition of the camera 330 is determined by a distance difference between a second subject (eg, a target subject located at a distance) and a first subject (eg, an obstacle located at a short distance) covering the second subject. By using the fact that the area of the second subject covered by the first subject can change, a plurality of frames acquired at different times according to the movement (or motion gesture) of the electronic device 301 through the camera 330 are displayed. By removing the first subject and interpolating the area from which the first subject is removed based on the other frame, an image including only the main subject can be easily obtained.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices 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. An electronic device according to an embodiment of the present document is not limited to the aforementioned devices.

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

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits. can be used as A module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions. For example, according to one 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)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document provide 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). It may be implemented as software (eg, the program 140) including them. For example, a processor (eg, the processor 120 ) of a device (eg, the electronic device 101 ) may call at least one command among one or more instructions stored from a storage medium and execute it. This enables the device to be operated to perform at least one function according to the at least one command invoked. 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-temporary' only means that the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.

일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one 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. A 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 TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) online, directly between smart phones. In the case of online distribution, at least part of the computer program product may be temporarily stored or temporarily created in a device-readable storage medium such as a manufacturer's server, an application store server, or a relay server's memory.

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

301: 전자 장치 310: 통신 회로
320: 메모리 330: 카메라
340: 센서 회로 350: 터치스크린 디스플레이
360: 프로세서
301: electronic device 310: communication circuit
320: memory 330: camera
340: sensor circuit 350: touch screen display
360: processor

Claims (20)

전자 장치에 있어서,
카메라;
센서 회로; 및
상기 카메라 및 상기 센서 회로와 작동적으로 연결된 프로세서를 포함하고,
상기 프로세서는,
상기 카메라를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득하고,
상기 센서 회로를 통해 상기 복수의 프레임들에 포함된 상기 복수의 피사체들에 대한 뎁스 정보를 확인하고,
상기 복수의 피사체들에 대한 뎁스 정보에 기반하여, 상기 복수의 프레임들로부터 상기 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거하고, 및
상기 제1 피사체가 제거된 복수의 프레임들을 합성하여, 이미지를 생성하도록 설정된 전자 장치.
In electronic devices,
camera;
sensor circuit; and
a processor operatively connected with the camera and the sensor circuit;
the processor,
Obtaining a plurality of frames including a plurality of subjects through the camera,
Checking depth information on the plurality of subjects included in the plurality of frames through the sensor circuit;
removing a first subject having first depth information among the plurality of subjects from the plurality of frames based on the depth information of the plurality of subjects; and
An electronic device configured to generate an image by synthesizing a plurality of frames from which the first subject is removed.
제 1 항에 있어서,
상기 카메라를 통해 획득되는 복수의 프레임들은, 상기 전자 장치의 이동에 따라 상이한 시점에 촬영되는 복수의 프레임들을 포함하는 전자 장치.
According to claim 1,
The plurality of frames acquired through the camera include a plurality of frames captured at different points of time according to the movement of the electronic device.
제 1 항에 있어서,
상기 복수의 피사체들에 대한 뎁스 정보는, 상기 카메라로부터 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 히스토그램 정보를 포함하는 전자 장치.
According to claim 1,
The electronic device of claim 1 , wherein the depth information of the plurality of subjects includes distance information between each of the plurality of subjects from the camera and/or histogram information according to the distance information.
제 3 항에 있어서,
상기 히스토그램 정보는, 상기 복수의 프레임들 각각에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수를 포함하는 전자 장치.
According to claim 3,
The histogram information includes the number of pixels for each distance to the plurality of subjects included in each of the plurality of frames.
제 4 항에 있어서,
상기 프로세서는,
상기 카메라와 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 상기 복수의 피사체들에 대한 거리 별 픽셀 개수를 확인하고, 및
상기 거리 정보 및/또는 상기 복수의 피사체들에 대한 거리 별 픽셀 개수에 기반하여, 상기 복수의 피사체들 중 상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 결정하도록 설정된 전자 장치.
According to claim 4,
the processor,
Checking distance information between the camera and each of the plurality of subjects and/or the number of pixels for each distance to the plurality of subjects according to the distance information, and
The electronic device configured to determine the first subject having the first depth information among the plurality of subjects based on the distance information and/or the number of pixels per distance to the plurality of subjects.
제 5 항에 있어서,
상기 프로세서는,
상기 복수의 피사체들 중 상기 카메라로부터 근거리에 위치하는 피사체 및/또는 상기 복수의 피사체들 중 작은 픽셀 개수를 가지는 피사체를, 상기 제1 뎁스 정보를 가지는 제1 피사체로 결정하도록 설정된 전자 장치.
According to claim 5,
the processor,
The electronic device configured to determine a subject located at a short distance from the camera among the plurality of subjects and/or a subject having a small number of pixels among the plurality of subjects as the first subject having the first depth information.
제 1 항에 있어서,
상기 프로세서는,
상기 센서 회로를 통해 상기 복수의 프레임들에 대해 3차원 공간 좌표 상의 좌표 값을 설정하는 전자 장치.
According to claim 1,
the processor,
An electronic device that sets coordinate values on three-dimensional space coordinates for the plurality of frames through the sensor circuit.
제 7 항에 있어서,
상기 프로세서는,
상기 복수의 프레임들 각각에 대한 3차원 공간 좌표 상의 좌표 값을 상기 각 프레임의 픽셀 좌표와 RGB 값에 매핑하도록 설정된 전자 장치.
According to claim 7,
the processor,
An electronic device configured to map coordinate values on three-dimensional spatial coordinates of each of the plurality of frames to pixel coordinates and RGB values of each frame.
제 8 항에 있어서,
상기 프로세서는,
상기 제1 뎁스 정보를 가지는 상기 제1 피사체가 제거된 영역의 좌표 값에 기반하여, 상기 복수의 프레임들 중 RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인하고, 및
상기 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 상기 제1 피사체가 제거된 영역을 보간하도록 설정된 전자 장치.
According to claim 8,
the processor,
Identifying at least one other frame including a pixel having an RGB value among the plurality of frames based on coordinate values of an area from which the first subject having the first depth information is removed; and
The electronic device configured to interpolate an area from which the first subject is removed in each frame based on the identified RGB values of the at least one other frame.
제 9 항에 있어서,
상기 프로세서는,
상기 제1 피사체가 제거된 영역을 보간한 복수의 프레임들을 합성하여, 상기 이미지를 생성하도록 설정되고,
상기 생성된 이미지는, 상기 복수의 피사체들 중 제2 뎁스 정보를 가지는 제2 피사체를 포함하는 전자 장치.
According to claim 9,
the processor,
It is set to generate the image by synthesizing a plurality of frames obtained by interpolating an area from which the first subject is removed,
The generated image includes a second subject having second depth information among the plurality of subjects.
전자 장치의 뎁스 정보에 기반하여 이미지를 처리하는 방법에 있어서,
카메라를 통해 복수의 피사체들을 포함하는 복수의 프레임들을 획득하는 동작;
센서 회로를 통해 상기 복수의 프레임들에 포함된 상기 복수의 피사체들에 대한 뎁스 정보를 확인하는 동작;
상기 복수의 피사체들에 대한 뎁스 정보에 기반하여, 상기 복수의 프레임들로부터 상기 복수의 피사체들 중 제1 뎁스 정보를 가지는 제1 피사체를 제거하는 동작; 및
상기 제1 피사체가 제거된 복수의 프레임들을 합성하여, 이미지를 생성하는 동작을 포함하는 방법.
A method for processing an image based on depth information of an electronic device,
obtaining a plurality of frames including a plurality of subjects through a camera;
checking depth information of the plurality of subjects included in the plurality of frames through a sensor circuit;
removing a first subject having first depth information among the plurality of subjects from the plurality of frames based on the depth information of the plurality of subjects; and
and generating an image by synthesizing a plurality of frames from which the first subject is removed.
제 11 항에 있어서,
상기 카메라를 통해 획득되는 복수의 프레임들은, 상기 전자 장치의 이동에 따라 상이한 시점에 촬영되는 복수의 프레임들을 포함하는 방법.
According to claim 11,
The plurality of frames acquired through the camera include a plurality of frames captured at different points of time according to the movement of the electronic device.
제 11 항에 있어서,
상기 복수의 피사체들에 대한 뎁스 정보는, 상기 카메라로부터 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 히스토그램 정보를 포함하는 방법.
According to claim 11,
The depth information of the plurality of subjects includes distance information between each of the plurality of subjects from the camera and/or histogram information according to the distance information.
제 13 항에 있어서,
상기 히스토그램 정보는, 상기 복수의 프레임들 각각에 포함된 복수의 피사체들에 대한 거리 별 픽셀 개수를 포함하는 방법.
According to claim 13,
The histogram information includes the number of pixels for each distance to a plurality of subjects included in each of the plurality of frames.
제 14 항에 있어서,
상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 제거하는 동작은,
상기 카메라와 상기 복수의 피사체들 각각 간의 거리 정보 및/또는 상기 거리 정보에 따른 상기 복수의 피사체들에 대한 거리 별 픽셀 개수를 확인하는 동작; 및
상기 거리 정보 및/또는 상기 복수의 피사체들에 대한 거리 별 픽셀 개수에 기반하여, 상기 복수의 피사체들 중 상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 결정하는 동작을 포함하는 방법.
15. The method of claim 14,
The operation of removing the first subject having the first depth information,
checking distance information between the camera and each of the plurality of subjects and/or the number of pixels for each distance to the plurality of subjects according to the distance information; and
and determining the first subject having the first depth information among the plurality of subjects based on the distance information and/or the number of pixels per distance to the plurality of subjects.
제 15 항에 있어서,
상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 결정하는 동작은,
상기 복수의 피사체들 중 상기 카메라로부터 근거리에 위치하는 피사체 및/또는 상기 복수의 피사체들 중 작은 픽셀 개수를 가지는 피사체를, 상기 제1 뎁스 정보를 가지는 제1 피사체로 결정하는 동작을 포함하는 방법.
According to claim 15,
The operation of determining the first subject having the first depth information,
and determining, among the plurality of subjects, a subject located at a short distance from the camera and/or a subject having a small number of pixels among the plurality of subjects as a first subject having the first depth information.
제 11 항에 있어서,
상기 복수의 피사체들에 대한 뎁스 정보를 확인하는 동작은,
상기 센서 회로를 통해 상기 복수의 프레임들에 대해 3차원 공간 좌표 상의 좌표 값을 설정하는 동작을 포함하는 방법.
According to claim 11,
The operation of checking the depth information for the plurality of subjects,
and setting coordinate values on 3D spatial coordinates for the plurality of frames through the sensor circuit.
제 17 항에 있어서,
상기 복수의 프레임들 각각에 대한 3차원 공간 좌표 상의 좌표 값을 상기 각 프레임의 픽셀 좌표와 RGB 값에 매핑하는 동작을 더 포함하는 방법.
18. The method of claim 17,
The method further comprises mapping coordinate values on 3D spatial coordinates of each of the plurality of frames to pixel coordinates and RGB values of each frame.
제 18 항에 있어서,
상기 제1 뎁스 정보를 가지는 상기 제1 피사체를 제거한 후, 상기 제1 뎁스 정보를 가지는 상기 제1 피사체가 제거된 영역의 좌표 값에 기반하여, 상기 복수의 프레임들 중 RGB 값이 존재하는 픽셀을 포함하는 적어도 하나의 다른 프레임을 확인하는 동작; 및
상기 확인된 적어도 하나의 다른 프레임의 RGB 값에 기반하여, 각 프레임에서 상기 제1 피사체가 제거된 영역을 보간하는 동작을 더 포함하는 방법.
According to claim 18,
After removing the first subject having the first depth information, pixels having RGB values among the plurality of frames are selected based on coordinate values of an area from which the first subject having the first depth information is removed. checking at least one other frame including; and
The method further comprises interpolating an area from which the first subject is removed in each frame based on the identified RGB values of the at least one other frame.
제 19 항에 있어서,
상기 이미지를 생성하는 동작은,
상기 제1 피사체가 제거된 영역을 보간한 복수의 프레임들을 합성하여, 상기 이미지를 생성하는 동작을 포함하며,
상기 생성된 이미지는, 상기 복수의 피사체들 중 제2 뎁스 정보를 가지는 제2 피사체를 포함하는 방법.
According to claim 19,
The operation of generating the image,
generating the image by synthesizing a plurality of frames obtained by interpolating an area from which the first subject is removed;
The generated image includes a second subject having second depth information among the plurality of subjects.
KR1020210064234A 2021-05-18 2021-05-18 Electronic device and method for processing image based on depth information using the same KR20220156335A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020210064234A KR20220156335A (en) 2021-05-18 2021-05-18 Electronic device and method for processing image based on depth information using the same
PCT/KR2022/004678 WO2022244972A1 (en) 2021-05-18 2022-04-01 Electronic device and image processing method based on depth information using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210064234A KR20220156335A (en) 2021-05-18 2021-05-18 Electronic device and method for processing image based on depth information using the same

Publications (1)

Publication Number Publication Date
KR20220156335A true KR20220156335A (en) 2022-11-25

Family

ID=84140674

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210064234A KR20220156335A (en) 2021-05-18 2021-05-18 Electronic device and method for processing image based on depth information using the same

Country Status (2)

Country Link
KR (1) KR20220156335A (en)
WO (1) WO2022244972A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102356448B1 (en) * 2014-05-05 2022-01-27 삼성전자주식회사 Method for composing image and electronic device thereof
JP2016028311A (en) * 2014-07-10 2016-02-25 株式会社リコー Robot, program, and recording medium
KR102338989B1 (en) * 2015-12-16 2021-12-14 현대자동차주식회사 Vehicle and controlling method for the vehicle
KR102061867B1 (en) * 2018-09-10 2020-01-02 한성욱 Apparatus for generating image and method thereof
KR20210029905A (en) * 2019-09-08 2021-03-17 이명호 Method and computer program for remove photo background and taking composite photograph

Also Published As

Publication number Publication date
WO2022244972A1 (en) 2022-11-24

Similar Documents

Publication Publication Date Title
US20230164442A1 (en) Method for providing image and electronic device supporting same
US20230262321A1 (en) Electronic device and operating method thereof
EP4231629A1 (en) Electronic device for editing video by using object of interest, and operating method therefor
US20230239576A1 (en) Method, apparatus, and storage medium for providing slow shutter
KR20200113522A (en) Method for performing fucntion according to gesture input and electronic device performing thereof
US20240013405A1 (en) Object tracking method and electronic apparatus therefor
US20230388441A1 (en) Electronic device and method for capturing image by using angle of view of camera module
KR20210048725A (en) Method for controlling camera and electronic device therefor
KR20200101803A (en) Electronic device for generating depth map and method thereof
KR20220151932A (en) Electronic device and operation method thereof
KR20220156335A (en) Electronic device and method for processing image based on depth information using the same
US20220358776A1 (en) Electronic device and operating method thereof
US20230214632A1 (en) Method for processing image through neural network and electronic device thereof
KR20230039351A (en) Electronic device applying bokeh effect to image and operating method thereof
KR20220153305A (en) Method for generating a file including image data and motion data, electronic device thereof
KR20220127967A (en) Method, apparatus and storage medium for providing user interface
KR20230030320A (en) Electronic device including a plurality of cameras and method for thereof
KR20220128887A (en) Method and apparatus for measuring using augmented reality
KR20240079123A (en) An electronic device for determining view area of an image and method thereof
KR20220101998A (en) Electronic device being capable of auto focus and operating method thereof
KR20240073714A (en) Electronic device and method for increasing the resolution of digital bokeh image
KR20230016367A (en) Electronic device for generating images and method for operating the same
KR20230119570A (en) Electronic device for adjusting an image and method thereof
KR20230115178A (en) Electronic device including camera
KR20220040935A (en) The method for displaying preview image and the electronic device supporting the same

Legal Events

Date Code Title Description
A201 Request for examination