KR20230175066A - Electronic device including camera, and method of operation thereof - Google Patents

Electronic device including camera, and method of operation thereof Download PDF

Info

Publication number
KR20230175066A
KR20230175066A KR1020220086516A KR20220086516A KR20230175066A KR 20230175066 A KR20230175066 A KR 20230175066A KR 1020220086516 A KR1020220086516 A KR 1020220086516A KR 20220086516 A KR20220086516 A KR 20220086516A KR 20230175066 A KR20230175066 A KR 20230175066A
Authority
KR
South Korea
Prior art keywords
distance
electronic device
camera
area
sensor
Prior art date
Application number
KR1020220086516A
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 PCT/KR2023/005603 priority Critical patent/WO2023249231A1/en
Publication of KR20230175066A publication Critical patent/KR20230175066A/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/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/672Focus control based on electronic image sensor signals based on the phase difference signals
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/18Focusing aids
    • G03B13/20Rangefinders coupled with focusing arrangements, e.g. adjustment of rangefinder automatically focusing camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • 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
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • 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
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

본 발명의 일 실시예들에 따른 전자 장치는, 초점 거리가 서로 상이한 복수의 카메라들, 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서, 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서 및 상기 복수의 카메라들, 상기 거리 센서 및 상기 움직임 센서와 작동적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, 상기 거리 센서로부터 상기 오브젝트와의 거리 데이터 및 상기 움직임 센서로부터 상기 전자 장치의 이동 또는 회전에 관련한 움직임 데이터를 수신하며, 상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하고, 상기 거리 맵을 기반으로, 상기 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하도록 설정될 수 있다.An electronic device according to embodiments of the present invention includes a plurality of cameras with different focal lengths, a distance sensor for detecting the distance to an object located in a first area, and a movement for detecting movement or rotation of the electronic device. a sensor and at least one processor operatively connected to the plurality of cameras, the distance sensor, and the motion sensor, wherein the at least one processor receives distance data from the distance sensor to the object and data from the motion sensor. Receiving movement data related to movement or rotation of the electronic device, and based on the movement data, a distance map for a second area that includes at least a portion of the first area so that the distance data corresponds to the first area may be set to generate and determine a camera to acquire an image among the plurality of cameras based on the distance map.

Figure P1020220086516
Figure P1020220086516

Description

카메라를 포함하는 전자 장치 및 그 동작 방법 {ELECTRONIC DEVICE INCLUDING CAMERA, AND METHOD OF OPERATION THEREOF}Electronic device including a camera and method of operating the same {ELECTRONIC DEVICE INCLUDING CAMERA, AND METHOD OF OPERATION THEREOF}

본 개시의 일 실시예들은, 거리 센서 및 복수의 카메라들을 포함하는 전자 장치 및 그 동작 방법에 관한 것이다.Embodiments of the present disclosure relate to an electronic device including a distance sensor and a plurality of cameras and a method of operating the same.

전자 장치(예: 스마트폰)는 복수의 카메라들을 포함할 수 있다. 예를 들어, 전자 장치는 전자 장치의 전면에 배치되는 적어도 하나의 카메라 이외에, 전자 장치의 후면에 배치되는 복수의 카메라들을 포함할 수 있다.An electronic device (eg, a smartphone) may include a plurality of cameras. For example, the electronic device may include a plurality of cameras disposed on the rear of the electronic device in addition to at least one camera disposed on the front of the electronic device.

전자 장치는 전자 장치와 피사체(오브젝트) 사이의 거리에 기반하여, 초점 거리가 서로 상이한 복수의 카메라들(예: 전자 장치의 후면에 배치되는 복수의 카메라들) 중에서, 이미지를 획득하기 위한 카메라를 선택할 수 있다. 예를 들어, 전자 장치는 복수의 카메라들 중에서, 전자 장치와 피사체 사이의 거리가 멀수록 초점 거리가 긴 카메라를 이미지를 획득하기 위한 카메라로 선택할 수 있다.The electronic device selects a camera for acquiring an image from among a plurality of cameras with different focal lengths (e.g., a plurality of cameras disposed on the back of the electronic device) based on the distance between the electronic device and the subject (object). You can choose. For example, the electronic device may select a camera with a longer focal length among a plurality of cameras as the camera for acquiring an image as the distance between the electronic device and the subject increases.

전자 장치는 전자 장치 및 피사체 간 거리를 측정하기 위한 거리 센서(range sensor)를 포함하고, 거리 센서에서 측정한 전자 장치와 피사체 사이의 거리를 이용하여 초점 거리가 서로 상이한 복수의 카메라들 중에서 이미지를 획득하기 위한 카메라를 선택할 수 있다. 또한, 전자 장치는 거리 센서에서 측정한 전자 장치와 피사체 사이의 거리를 자동 초점 기능(AF: Auto Focus)에 활용할 수 있다.The electronic device includes a distance sensor for measuring the distance between the electronic device and the subject, and uses the distance between the electronic device and the subject measured by the distance sensor to select an image from a plurality of cameras with different focal lengths. You can select a camera to acquire. Additionally, the electronic device can utilize the distance between the electronic device and the subject measured by the distance sensor for an auto focus function (AF: Auto Focus).

다만, Single-zone 거리 센서는 상대적으로 좁은 화각(FOV: Field Of View)을 가지고, 이에 따라 카메라의 촬영 영역을 충분하게 커버하지 못하는 문제가 있다. 이를 해결하기 위하여, 상대적으로 넓은 화각을 갖는 Multi-zone 거리 센서를 적용할 수 있으나, 부피가 상대적으로 크고, 비용이 상대적으로 크게 발생되며, 동일 전류 사용시 감지 거리가 감소되는 문제가 있다.However, single-zone distance sensors have a relatively narrow field of view (FOV), which has the problem of not sufficiently covering the camera's shooting area. To solve this problem, a multi-zone distance sensor with a relatively wide viewing angle can be applied, but the volume is relatively large, the cost is relatively high, and the detection distance is reduced when using the same current.

일 실시예들에 따른 전자 장치는, 초점 거리가 서로 상이한 복수의 카메라들, 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서, 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서 및 상기 복수의 카메라들, 상기 거리 센서 및 상기 움직임 센서와 작동적으로 연결된 적어도 하나의 프로세서를 포함할 수 있다. 일 실시예들에 따른 적어도 하나의 프로세서는, 상기 거리 센서로부터 상기 오브젝트와의 거리 데이터 및 상기 움직임 센서로부터 상기 전자 장치의 이동 또는 회전에 관련한 움직임 데이터를 수신하도록 설정될 수 있다. 적어도 하나의 프로세서는, 상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하도록 설정될 수 있다. 적어도 하나의 프로세서는, 상기 거리 맵을 기반으로, 상기 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하도록 설정될 수 있다.An electronic device according to one embodiment includes a plurality of cameras having different focal lengths, a distance sensor that detects the distance to an object located in a first area, a motion sensor that detects movement or rotation of the electronic device, and the It may include at least one processor operatively connected to a plurality of cameras, the distance sensor, and the motion sensor. At least one processor according to one embodiment may be configured to receive distance data to the object from the distance sensor and movement data related to movement or rotation of the electronic device from the motion sensor. At least one processor may be set to generate a distance map for a second area that includes at least a portion of the first area, based on the motion data, so that the distance data corresponds to the first area. At least one processor may be configured to determine a camera to acquire an image from among the plurality of cameras based on the distance map.

일 실시예들에 따른 전자 장치의 동작 방법은, 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서로부터 거리 데이터 및 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서로부터 움직임 데이터를 수신하는 동작을 포함할 수 있다. 일 실시예들에 따른 전자 장치의 동작 방법은, 상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하는 동작을 포함할 수 있다. 일 실시예들에 따른 전자 장치의 동작 방법은, 상기 거리 맵을 기반으로, 초점 거리가 서로 상이한 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하는 동작을 포함할 수 있다.A method of operating an electronic device according to embodiments includes receiving distance data from a distance sensor that detects the distance to an object located in a first area and movement data from a motion sensor that detects movement or rotation of the electronic device. Can include actions. A method of operating an electronic device according to embodiments includes generating, based on the motion data, a distance map for a second area that includes at least a portion of the first area so that the distance data corresponds to the first area. It may include actions such as: A method of operating an electronic device according to embodiments may include determining a camera to acquire an image from among a plurality of cameras having different focal lengths based on the distance map.

일 실시예에 따른 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체로서, 상기 하나 이상의 프로그램은 전자 장치의 적어도 하나의 프로세서에 의해 실행될 때, 상기 전자 장치가 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서로부터 거리 데이터 및 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서로부터 움직임 데이터를 수신하는 프로그램을 포함할 수 있다. 일 실시예들에 따른 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체는, 상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하는 프로그램을 포함할 수 있다. 일 실시예들에 따른 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체는, 상기 거리 맵을 기반으로, 초점 거리가 서로 상이한 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하는 프로그램을 포함할 수 있다.A non-transitory computer-readable storage medium storing one or more programs according to an embodiment, wherein when the one or more programs are executed by at least one processor of an electronic device, the electronic device interacts with an object located in a first area. It may include a program that receives distance data from a distance sensor that detects the distance and movement data from a motion sensor that detects movement or rotation of the electronic device. A non-transitory computer-readable storage medium storing one or more programs according to one embodiment may include at least a portion of the first area so that the distance data corresponds to the first area based on the motion data. 2 May include a program that generates a street map for an area. A non-transitory computer-readable storage medium storing one or more programs according to embodiments may include a program for determining a camera to acquire an image among a plurality of cameras with different focal lengths based on the distance map. You can.

일 실시예에 따른 카메라를 포함하는 전자 장치 및/또는 그 동작 방법에 따르면, 상대적으로 좁은 측정 범위를 갖는 Single-zone 거리 센서를 이용함으로써 원가를 절감하고, 센서의 크기 및 Hidden hole의 크기가 축소되어 디자인 자유도를 향상시킴과 동시에, 상대적으로 넓은 범위의 거리를 감지할 수 있다. 이에 따라, 복수의 카메라들 사이의 전환 및 자동 초점 기능의 정상적인 작동이 가능할 수 있다.According to an electronic device including a camera and/or a method of operating the same according to an embodiment, costs are reduced by using a single-zone distance sensor with a relatively narrow measurement range, and the size of the sensor and hidden hole are reduced. This improves design freedom and allows detection of a relatively wide range of distances. Accordingly, switching between multiple cameras and normal operation of the autofocus function may be possible.

도 1은, 일 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는, 일 실시예들에 따른, 전자 장치의 블록도이다.
도 3은, 일 실시예에 따른, 전자 장치의 후면 일부를 나타내는 도면이다.
도 4는, 일 실시예에 따른, 복수의 카메라들의 촬영 범위 및 거리 센서의 감지 범위를 도시한 것이다.
도 5는, 일 실시예에 따른, 거리별 광각 카메라의 촬영 범위 및 Single-zone 거리 센서의 감지 범위를 비교한 것이다.
도 6은, 일 실시예에 따른, 거리별 광각 카메라의 촬영 범위 및 Multi-zone 거리 센서의 감지 범위를 비교한 것이다.
도 7은, 일 실시예에 따른, 전자 장치의 이동에 의한 제1 영역의 이동을 도시한 것이다.
도 8은, 일 실시예에 따른, 전자 장치의 이동 또는 회전에 따른 제1 영역의 이동에 관한 예시이다.
도 9는, 일 실시예에 따른, 전자 장치의 이동 또는 회전에 대한 미리 설정된 기준에 관한 예시이다.
도 10은, 일 실시예에 따른, 전자 장치의 이동에 따라 제2 영역을 매핑하는 예시이다.
도 11은, 일 실시예에 따른, 전자 장치의 이동 및 회전에 따라 제2 영역을 매핑하는 예시이다.
도 12는, 일 실시예들에 따른, 이미지를 제공하기 위한 방법을 설명하는 흐름도이다.
도 13a 및 도 13b는, 일 실시예들에 따른, 이미지를 획득할 카메라의 결정 및 전환하기 위한 방법을 설명하는 흐름도이다.
1 is a block diagram of an electronic device in a network environment, according to one embodiment.
Figure 2 is a block diagram of an electronic device, according to one embodiment.
Figure 3 is a diagram showing a portion of the back of an electronic device, according to one embodiment.
FIG. 4 illustrates a capturing range of a plurality of cameras and a sensing range of a distance sensor, according to an embodiment.
Figure 5 compares the shooting range of a wide-angle camera and the detection range of a single-zone distance sensor for each distance, according to an embodiment.
Figure 6 compares the shooting range of a wide-angle camera and the detection range of a multi-zone distance sensor for each distance, according to one embodiment.
FIG. 7 illustrates movement of the first area due to movement of the electronic device, according to one embodiment.
Figure 8 is an example of movement of the first area according to movement or rotation of the electronic device, according to one embodiment.
Figure 9 is an example of a preset standard for movement or rotation of an electronic device, according to an embodiment.
FIG. 10 is an example of mapping a second area according to movement of an electronic device, according to an embodiment.
FIG. 11 is an example of mapping a second area according to movement and rotation of an electronic device, according to an embodiment.
Figure 12 is a flowchart explaining a method for providing an image, according to one embodiment.
13A and 13B are flowcharts illustrating a method for determining and switching a camera to acquire an image, according to one embodiment.

도 1은, 일 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 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))로 통합될 수 있다.1 is a block diagram of an electronic device 101 in a network environment 100, according to one embodiment. Referring to FIG. 1, in the network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (e.g., a short-range wireless communication network) or a second network 199. It is possible to communicate with at least one of the electronic device 104 or the server 108 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to one 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, and 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 may include an antenna module 197. In some embodiments, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added to the electronic device 101. In some embodiments, some of these components (e.g., sensor module 176, camera module 180, or antenna module 197) are integrated into one component (e.g., 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 (e.g., program 140) to operate at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of data processing or computation, the processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132. The commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134. According to one embodiment, the processor 120 includes a main processor 121 (e.g., a central processing unit or an application processor) or an auxiliary processor 123 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device 101 includes a main processor 121 and a secondary processor 123, the secondary processor 123 may be set to use lower power than the main processor 121 or be specialized for a designated function. You can. The auxiliary processor 123 may be implemented separately from the main processor 121 or as part of it.

보조 프로세서(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 auxiliary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or while the main processor 121 is in an active (e.g., application execution) state. ), together with the main processor 121, at least one of the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190) At least some of the functions or states related to can be controlled. According to one embodiment, co-processor 123 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 180 or communication module 190). there is. According to one embodiment, the auxiliary processor 123 (eg, neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 108). Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited. An artificial intelligence model may include multiple artificial neural network layers. Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above. In addition to hardware structures, artificial intelligence models may additionally or alternatively include software 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. Data may include, for example, input data or output data for software (e.g., program 140) and instructions related thereto. 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 application 146.

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive commands or data to be used in a component of the electronic device 101 (e.g., the processor 120) from outside the electronic device 101 (e.g., a user). The input module 150 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, 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. Speakers can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. 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 can 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 one 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 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 101). Sound may be output through the electronic device 102 (e.g., speaker or headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects the operating state (e.g., power or temperature) of the electronic device 101 or the external environmental state (e.g., 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 includes, 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 IR (infrared) sensor, a biometric 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 can be used to connect the electronic device 101 directly or wirelessly with 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 can 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 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can 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 can 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 can manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101. According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, 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)를 확인 또는 인증할 수 있다. Communication module 190 is configured to provide a direct (e.g., wired) communication channel or wireless communication channel between electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108). It can support establishment and communication through established communication channels. Communication module 190 operates independently of processor 120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (e.g., 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 (e.g., : LAN (local area network) communication module, or power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 198 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (e.g., legacy It may communicate with an external electronic device 104 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 192 uses subscriber information (e.g., 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 can be confirmed 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 5G networks after 4G networks and next-generation communication technologies, for example, NR access technology (new radio access technology). NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported. The wireless communication module 192 may support high frequency bands (eg, mmWave bands), for example, to achieve high data rates. The wireless communication module 192 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101, an external electronic device (e.g., electronic device 104), or a network system (e.g., second network 199). According to one embodiment, the wireless communication module 192 supports Peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mmTC, or U-plane latency (e.g., 164 dB or less) for realizing URLLC. Example: Downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) can 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 or from the outside (eg, an external electronic device). According to one embodiment, the antenna module 197 may include an antenna including a radiator made 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 connected to the plurality of antennas by, for example, the communication module 190. can be selected Signals or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna. According to some embodiments, in addition to the radiator, other components (eg, radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module 197.

일 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to one embodiment, the antenna module 197 may form a mmWave antenna module. According to one embodiment, a mmWave antenna module includes: a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in 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 (e.g., 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 one 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 of the same or different type as the electronic device 101. According to one embodiment, all or part of the operations performed in the electronic device 101 may be executed in one or more of 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 may perform the function or service instead of executing the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least part of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may process the result as is or additionally and provide it as at least part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology can be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In one 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 (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

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

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

본 문서의 일 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part 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)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.One embodiment of the present document is one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these. For example, a processor (e.g., processor 120) of a device (e.g., electronic device 101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.

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

일 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 일 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 일 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to one embodiment, each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is. According to one embodiment, one or more of the above-described corresponding components or operations may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple 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 component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. . According to embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, or omitted. Alternatively, one or more other operations may be added.

이하에서는 본 문서에서 설명되는 전자 장치(예: 전자 장치(101))의 일 실시예들이 설명된다. Hereinafter, embodiments of an electronic device (eg, electronic device 101) described in this document will be described.

도 2는, 일 실시예들에 따른, 전자 장치(200, 예: 도 1의 전자 장치(101))의 블록도이다.FIG. 2 is a block diagram of an electronic device 200 (eg, electronic device 101 of FIG. 1 ) according to one embodiment.

도 2를 참조하면, 전자 장치(200)는 디스플레이(250), 복수의 카메라들(230), 거리 센서(210), 움직임 센서(220) 및/또는 프로세서(240)를 포함할 수 있다. 일 실시예로 거리 센서(210) 및/또는 움직임 센서(220)는 센서 모듈(예: 도 1의 센서 모듈(176)에 포함될 수 있다.Referring to FIG. 2 , the electronic device 200 may include a display 250, a plurality of cameras 230, a distance sensor 210, a motion sensor 220, and/or a processor 240. In one embodiment, the distance sensor 210 and/or the motion sensor 220 may be included in a sensor module (eg, the sensor module 176 of FIG. 1).

일 실시예에서, 디스플레이(250)는 도 1의 디스플레이 모듈(160)에 포함될 수 있다. 일 실시예에서, 디스플레이(250)는, 복수의 카메라들(230)을 통하여 획득되는 이미지(예: 동적 이미지 및/또는 정지 이미지)를 표시할 수 있다. 예를 들어, 디스플레이(250)는, 전자 장치(200)에 카메라 어플리케이션이 실행되는 경우, 복수의 카메라들(230) 중 어느 하나(예: 제1 카메라(231))를 통하여 획득된 프리뷰(preview)를 표시할 수 있다. 다른 예를 들어, 디스플레이(250)는, 복수의 카메라들(230) 중 어느 하나를 통하여 이미지가 획득되는 경우, 획득된 이미지를 표시할 수 있다.In one embodiment, display 250 may be included in display module 160 of FIG. 1 . In one embodiment, the display 250 may display images (eg, dynamic images and/or still images) acquired through a plurality of cameras 230. For example, when a camera application is executed on the electronic device 200, the display 250 displays a preview acquired through one of the plurality of cameras 230 (e.g., the first camera 231). ) can be displayed. For another example, when an image is acquired through one of the plurality of cameras 230, the display 250 may display the acquired image.

일 실시예로, 전자 장치(200)는 디스플레이(250)를 제어하기 위한 디스플레이 드라이버 IC(DDI)를 더 포함할 수 있다. 디스플레이 드라이버 IC는, 예를 들면, 영상 데이터, 또는 상기 영상 데이터를 제어하기 위한 명령에 대응하는 영상 제어 신호를 포함하는 영상 정보를 인터페이스 모듈을 통해 전자 장치(200)의 다른 구성요소로부터 수신할 수 있다. 디스플레이 드라이버 IC에 의해 수행되는 동작들 중 적어도 일부 동작은 프로세서(240)(예: 도 1의 프로세서(120))에 의해 동일하게 수행될 수 있다In one embodiment, the electronic device 200 may further include a display driver IC (DDI) to control the display 250. The display driver IC may receive, for example, image information including image data or an image control signal corresponding to a command for controlling the image data from other components of the electronic device 200 through an interface module. there is. At least some of the operations performed by the display driver IC may be equally performed by the processor 240 (e.g., processor 120 of FIG. 1).

도 3은, 일 실시예에 따른, 전자 장치(200)의 후면 일부를 나타내는 도면이다. FIG. 3 is a diagram illustrating a portion of the rear of the electronic device 200, according to one embodiment.

도 3을 더 참조하면, 전자 장치(200)는, 제1 카메라(231), 제2 카메라(232), 제3 카메라(233), 제4 카메라(234) 및/또는 거리 센서(210)를 포함할 수 있다. 전자 장치(200)가 후면에 4개의 카메라들을 포함하는 것으로 예시하고 있지만, 이에 제한되지 않는다. 예를 들어, 전자 장치(200)는 후면을 통하여 2개의 카메라들, 3개의 카메라들, 또는 5개 이상의 카메라들을 포함할 수 있다. 일 실시예에서, 전자 장치(200)는, 전면에 적어도 하나의 카메라(예: 전면 카메라)를 포함할 수 있다. 이하에서, 설명의 편의를 위하여, 제1 카메라(231), 제2 카메라(232), 제3 카메라(233) 및 제4 카메라(234)와 같이, 전자 장치(200)의 후면에 배치되는 2개 이상의 카메라들을 '복수의 카메라들'로 지칭하기로 한다.Referring further to FIG. 3, the electronic device 200 uses a first camera 231, a second camera 232, a third camera 233, a fourth camera 234, and/or a distance sensor 210. It can be included. Although the electronic device 200 is illustrated as including four cameras on the rear, it is not limited thereto. For example, the electronic device 200 may include two cameras, three cameras, or five or more cameras through the rear. In one embodiment, the electronic device 200 may include at least one camera (eg, a front camera) on the front. Hereinafter, for convenience of explanation, 2 disposed on the rear of the electronic device 200, such as the first camera 231, the second camera 232, the third camera 233, and the fourth camera 234. More than one camera will be referred to as ‘multiple cameras’.

일 실시예로, 제1 카메라(231), 제2 카메라(232), 제3 카메라(233) 및 제4 카메라(234)는 각각 광각 카메라, 초광각 카메라, 제1 망원 카메라, 및 제2 망원 카메라로 지칭될 수 있다. 일 실시예에서, 제1 카메라(231), 제2 카메라(232), 제3 카메라(233) 및 제4 카메라(234)는 서로 다른 초점 거리들을 가질 수 있다. 예를 들어, 제1 카메라(231), 제2 카메라(232), 제3 카메라(233) 및 제4 카메라(234)는, 제2 카메라(232), 제1 카메라(231), 제3 카메라(233), 제4 카메라(234) 순서대로, 짧은 초점 거리들을 가질 수 있다. In one embodiment, the first camera 231, the second camera 232, the third camera 233, and the fourth camera 234 are a wide-angle camera, an ultra-wide-angle camera, a first telephoto camera, and a second telephoto camera, respectively. It may be referred to as . In one embodiment, the first camera 231, the second camera 232, the third camera 233, and the fourth camera 234 may have different focal lengths. For example, the first camera 231, the second camera 232, the third camera 233, and the fourth camera 234 are the second camera 232, the first camera 231, and the third camera. 233, and the fourth camera 234, in that order, may have short focal lengths.

일 실시예에서, 제1 카메라(231), 제2 카메라(232), 제3 카메라(233) 및 제4 카메라(234)는 서로 다른 화각(FOV)을 가질 수 있다. 예를 들어, 제1 카메라(231), 제2 카메라(232), 제3 카메라(233) 및 제4 카메라(234)는 약 83°, 약 120°, 약 35°, 약 10°의 화각(FOV)을 각각 가질 수 있다.In one embodiment, the first camera 231, the second camera 232, the third camera 233, and the fourth camera 234 may have different angles of view (FOV). For example, the first camera 231, the second camera 232, the third camera 233, and the fourth camera 234 have a view angle of about 83°, about 120°, about 35°, and about 10°. Each can have a FOV).

일 실시예로 거리 센서(210)는, 전자 장치(200)(예: 거리 센서(210))와 오브젝트(예: 피사체) 사이의 거리를 측정하기 위한 구성일 수 있다. 거리 센서(210)는 발광부(Tx)로부터 방출된 지정된 종류의 신호가 오브젝트에 반사된 후, 수광부(Rx)로 입사되는 이동 시간 및 이동 속도에 기반하여, 전자 장치(200)와 오브젝트 사이의 거리를 측정하는 TOF(Time Of Flight) 방식일 수 있다. 예를 들어, 거리 센서(210)가 이용하는 지정된 신호의 종류에 따라, 음파 방식(예: 초음파(ultrasonic) 센서), 적외선 방식(예: 적외선(infrared) 센서), 레이저 방식(예: 라이다(LIDAR, light detection and ranging) 센서), 전파 방식(예: 레이더(RADAR, radio detecting and ranging) 센서) 및/또는 광학 방식(예: 카메라 센서(passive sensor))으로 구현될 수 있다.In one embodiment, the distance sensor 210 may be configured to measure the distance between the electronic device 200 (eg, the distance sensor 210) and an object (eg, a subject). The distance sensor 210 measures the distance between the electronic device 200 and the object based on the movement time and movement speed at which a specified type of signal emitted from the light emitting unit (Tx) is reflected by the object and then incident on the light receiving unit (Rx). It may be a TOF (Time Of Flight) method that measures distance. For example, depending on the type of designated signal used by the distance sensor 210, an acoustic wave method (e.g., ultrasonic sensor), an infrared method (e.g., an infrared sensor), a laser method (e.g., LiDAR ( It may be implemented in a LIDAR (light detection and ranging) sensor), a radio wave method (e.g., a radar (radio detecting and ranging) sensor), and/or an optical method (e.g., a camera sensor (passive sensor)).

일 실시예로, 거리 센서(210)는 특정 주파수의 광원을 발광하고, 예를 들어 적외선(IR: Infrared Ray)을 발광할 수 있다. 예를 들어, 적외선의 파장은 940nm 또는 1400nm 이 이용될 수 있다.In one embodiment, the distance sensor 210 may emit a light source of a specific frequency, for example, infrared ray (IR). For example, the wavelength of infrared rays may be 940 nm or 1400 nm.

일 실시예로, 복수의 카메라들(230)은 서로 측방으로 이격되게 배치되어, 각각의 촬영 범위 사이에 중첩되지 않는 오차범위가 존재할 수 있다. 추가로, 거리 센서(210)도 복수의 카메라들(230)과의 위치 차이로 인한 오차범위가 존재할 수 있다.In one embodiment, the plurality of cameras 230 are arranged to be laterally spaced apart from each other, so that there may be a non-overlapping error range between each shooting range. Additionally, the distance sensor 210 may also have an error range due to the difference in position with the plurality of cameras 230.

도 4는, 일 실시예에 따른, 복수의 카메라들(230)의 촬영 범위 및 거리 센서(210)의 감지 범위(R1)를 도시한 것이다.FIG. 4 illustrates the capturing range of the plurality of cameras 230 and the sensing range R1 of the distance sensor 210, according to one embodiment.

도 4를 더 참조하면, 일 실시예로, 거리 센서(210)는 복수의 카메라들(230)의 측방에 배치되고, 예를 들어 거리 센서(210)는 복수의 카메라들(230)로부터 각각 측방으로 이격된 위치에 고정될 수 있다. 이에 따라, 거리 센서(210)의 감지 범위(R1)는 복수의 카메라 각각의 촬영 범위(FOV)와 적어도 일부 상이할 수 있다.Referring further to FIG. 4, in one embodiment, the distance sensor 210 is disposed on the side of the plurality of cameras 230, for example, the distance sensor 210 is positioned on the side from each of the plurality of cameras 230. It can be fixed in a spaced position. Accordingly, the detection range (R1) of the distance sensor 210 may be at least partially different from the capturing range (FOV) of each of the plurality of cameras.

구체적으로, 일 실시예에 따른 Single-zone 거리 센서(210)의 감지 범위(R1)는 복수의 카메라 중 망원 카메라(예: 제3 카메라(233) 및 제4 카메라(234))의 촬영 범위를 대부분 포함할 수 있으나, 복수의 카메라 중 광각 카메라(예: 제1 카메라(231)) 및/또는 초광각 카메라(예: 제2 카메라(232))의 촬영 범위 중 일부만을 포함할 수 있다. 즉, 거리 센서(210)는 복수의 카메라의 촬영 범위의 일부에 위치된 오브젝트에 대해서만 거리를 감지할 수 있고, 감지 범위(R1)를 벗어난 촬영 범위의 나머지 일부의 오브젝트에 대해서는 거리를 감지할 수 없다. 이에 따라, 전자 장치(200)는 복수의 카메라의 촬영 범위에 위치한 오브젝트에 대하여 자동으로 초점을 맞추지 못하거나, 초점 거리가 적절한 카메라로의 전환이 어려울 수 있다.Specifically, the detection range (R1) of the single-zone distance sensor 210 according to one embodiment is the shooting range of the telephoto camera (e.g., the third camera 233 and the fourth camera 234) among the plurality of cameras. It may include most of the cameras, but may only include a portion of the shooting range of the wide-angle camera (e.g., the first camera 231) and/or the ultra-wide-angle camera (e.g., the second camera 232) among the plurality of cameras. That is, the distance sensor 210 can only detect distances for objects located in a portion of the shooting range of a plurality of cameras, and can detect distances for objects in the remaining portion of the shooting range outside the detection range (R1). does not exist. Accordingly, the electronic device 200 may not be able to automatically focus on an object located in the capturing range of a plurality of cameras, or it may be difficult to switch to a camera with an appropriate focal length.

도 5는, 일 실시예에 따른, 거리별 광각 카메라의 촬영 범위 및 Single-zone 거리 센서의 감지 범위를 비교한 것이다. 도 6은, 일 실시예에 따른, 거리별 광각 카메라의 촬영 범위 및 Multi-zone 거리 센서의 감지 범위(R1)를 비교한 것이다.Figure 5 compares the shooting range of a wide-angle camera and the detection range of a single-zone distance sensor for each distance, according to an embodiment. Figure 6 compares the shooting range of a wide-angle camera and the detection range (R1) of a multi-zone distance sensor for each distance, according to an embodiment.

도 5 내지 도 6는, 전자 장치(예: 광각 카메라)로부터 각각 100[mm], 300[mm], 1000[mm] 및 2000[mm] 이격된 위치에서 광각 카메라의 촬영 범위 및 거리 센서(각각 Single-zone 및 Multi-zone)의 감지 범위(R1)를 표시한 것이다.5 to 6 show the shooting range and distance sensor of the wide-angle camera (respectively This indicates the detection range (R1) of single-zone and multi-zone).

도 6의 상대적으로 넓은 화각을 갖는 Multi-zone 거리 센서는 근접 거리에서 감지 범위(R1)와 광각 카메라의 촬영 범위 사이에 오차가 일부 발생되지만, 거리 센서의 감지 범위(R1)가 광각 카메라의 촬영 범위의 상당 범위를 커버할 수 있다. Multi-zone 거리 센서의 화각은 복수의 카메라들의 프리뷰 영역을 대부분 커버할 수 있도록 Single-zone 거리 센서의 화각보다 상대적으로 확장될 수 있다.The multi-zone distance sensor with a relatively wide angle of view in Figure 6 generates some error between the detection range (R1) and the shooting range of the wide-angle camera at close range, but the detection range (R1) of the distance sensor is greater than that of the wide-angle camera. It can cover a significant amount of the range. The field of view of a multi-zone distance sensor can be relatively expanded than that of a single-zone distance sensor to cover most of the preview area of multiple cameras.

이에 대비하여, 도 5의 상대적으로 좁은 화각을 갖는 Single-zone 거리 센서는 광각 카메라의 촬영 범위의 극히 일부만을 커버하는 것으로, 근접 거리(예: 100 [mm])에서는 광각 카메라의 촬영 범위의 우측 영역 전체 및 좌측 상단 영역을 거의 커버할 수 없다. 또한, Single-zone 거리 센서는 제공할 수 있는 거리 값이 1개이므로, 근거리 및 원거리에 오브젝트가 혼재하는 환경에서 오브젝트와의 거리를 감지할 수 없다.In contrast, the single-zone distance sensor with a relatively narrow field of view in Figure 5 covers only a small portion of the wide-angle camera's shooting range, and at a close distance (e.g., 100 [mm]), it is located on the right side of the wide-angle camera's shooting range. It can barely cover the entire area and the upper left area. Additionally, since a single-zone distance sensor can provide only one distance value, it cannot detect the distance to an object in an environment where objects are mixed at a close and far distance.

본 개시는, 전자 장치의 움직임 데이터를 기반으로, 상대적으로 좁은 측정 범위를 갖는 Single-zone 거리 센서의 거리 데이터로 상대적으로 넓은 범위의 거리 맵을 생성하는, 카메라를 포함하는 전자 장치 및 그 동작 방법에 관한 것이다.The present disclosure provides an electronic device including a camera and a method of operating the same, which generates a relatively wide-range distance map with distance data from a single-zone distance sensor with a relatively narrow measurement range, based on movement data of the electronic device. It's about.

따라서, 본 개시에서 특별한 언급이 없는 한, 일 실시예에 따른 거리 센서는, 상대적으로 좁은 화각을 갖는 Single-zone 거리 센서를 의미할 수 있다. 예를 들어, Single-zone 거리 센서의 화각은 망원 카메라의 화각 수준으로 좁을 수 있다. 본 개시의 일 실시예에 따른 전자 장치는, 상대적으로 좁은 화각을 갖는 Single-zone 거리 센서를 이용하면서도 감지 범위(R1)를 확대하기 위한 것이다.Therefore, unless otherwise specified in the present disclosure, the distance sensor according to an embodiment may refer to a single-zone distance sensor having a relatively narrow angle of view. For example, the angle of view of a single-zone distance sensor may be as narrow as that of a telephoto camera. The electronic device according to an embodiment of the present disclosure is intended to expand the detection range (R1) while using a single-zone distance sensor with a relatively narrow field of view.

일 실시예에 따른 움직임 센서(220)는, 전자 장치(200)의 이동을 감지하는 가속도 센서(221) 및/또는 전자 장치(200)의 회전을 감지하는 자이로 센서(222)를 포함할 수 있다. 예를 들어, 가속도 센서(221)와 자이로 센서(222)는 하나의 칩으로 구성될 수 있다. 가속도 센서(221)는 3축 방향으로 전자 장치(200)의 가속도, 속도 및/또는 이동을 감지할 수 있고, 자이로 센서(222)는 3축 방향을 기준으로 하는 전자 장치(200)의 각가속도, 각속도 및/또는 회전을 감지할 수 있다.The motion sensor 220 according to one embodiment may include an acceleration sensor 221 that detects movement of the electronic device 200 and/or a gyro sensor 222 that detects rotation of the electronic device 200. . For example, the acceleration sensor 221 and the gyro sensor 222 may be comprised of one chip. The acceleration sensor 221 may detect the acceleration, speed, and/or movement of the electronic device 200 in three axes, and the gyro sensor 222 may detect the angular acceleration of the electronic device 200 based on the three axes. Angular velocity and/or rotation can be detected.

일 실시예로, 전자 장치(200)는 프로세서(예: 도 1의 프로세서(120))를 포함할 수 있고, 전자 장치(200)의 동작을 수행하기 위한 전반적인 동작을 제어할 수 있다. 일 실시예에서, 프로세서(240)는, 전자 장치(200)의 동작을 수행하기 위하여 적어도 하나 이상의 프로세서(240)들을 포함할 수 있다. 일 실시예로 프로세서(240)는 전자 장치(200)의 전반적인 구동을 관장하는 AP(241, Application Processor) 및/또는 센서 모듈의 전반적인 구동을 관장하는 Sensor Hub(242)를 포함할 수 있다.In one embodiment, the electronic device 200 may include a processor (eg, the processor 120 of FIG. 1) and may control overall operations for performing the operation of the electronic device 200. In one embodiment, the processor 240 may include at least one processor 240 to perform the operation of the electronic device 200. In one embodiment, the processor 240 may include an AP (241, Application Processor) that manages the overall operation of the electronic device 200 and/or a Sensor Hub (242) that manages the overall operation of the sensor module.

일 실시예로, 프로세서(240)는 복수의 카메라들(230), 거리 센서(210) 및/또는 움직임 센서(220)와 작동적으로 연결될 수 있다. 구체적으로, 프로세서(240)는 복수의 카메라들(230), 거리 센서(210) 및/또는 움직임 센서(220)과 신호 또는 데이터를 송신 또는 수신할 수 있도록 연결될 수 있다.In one embodiment, the processor 240 may be operatively connected to a plurality of cameras 230, distance sensor 210, and/or motion sensor 220. Specifically, the processor 240 may be connected to a plurality of cameras 230, the distance sensor 210, and/or the motion sensor 220 to transmit or receive signals or data.

일 실시예로, 전자 장치(200)는 메모리(예: 도 1의 메모리(130)를 더 포함할 수 있고, 일 실시예에서 메모리는 전자 장치(200)의 동작을 수행하기 위한 정보를 저장할 수 있다. 메모리가 전자 장치(200)의 동작을 수행하기 위하여 저장하는 정보에 대하여 상세히 후술하도록 한다.In one embodiment, the electronic device 200 may further include a memory (e.g., memory 130 of FIG. 1), and in one embodiment, the memory may store information for performing an operation of the electronic device 200. The information that the memory stores to perform the operation of the electronic device 200 will be described in detail later.

일 실시예로, 전자 장치(200)는 전면을 통하여, 전자 장치(200)의 주변 환경으로부터 수신된 광에 기반하여 전자 장치(200)의 주변의 밝기를 측정하기 위한 조도 센서를 더 포함할 수 있다.In one embodiment, the electronic device 200 may further include an illumination sensor for measuring the surrounding brightness of the electronic device 200 based on light received from the surrounding environment of the electronic device 200 through the front. there is.

일 실시예로, 전자 장치(200)(예: 도 1의 프로세서(120))는, 거리 센서(210)에서 제1 영역(R1)에 위치된 오브젝트와의 거리를 감지한 거리 데이터를 수신할 수 있다. 일 실시예로, 거리 데이터는 제1 영역(R1)의 내부에서 오브젝트가 차지하는 위치 정보 및/또는 전자 장치(200)로부터 오브젝트 사이의 거리가 포함된 데이터일 수 있다.In one embodiment, the electronic device 200 (e.g., the processor 120 in FIG. 1) may receive distance data that detects the distance to an object located in the first region R1 from the distance sensor 210. You can. In one embodiment, the distance data may be data including location information occupied by the object within the first area R1 and/or the distance between the object and the electronic device 200.

여기서, 제1 영역(R1)은 거리 센서(210)의 화각(FOV) 및 감지 범위(R1)에 대응되는 영역일 수 있다. 일 실시예로, 제1 영역(R1)은 거리 맵이 생성되는 제2 영역 또는 복수의 카메라들(230)의 촬영 범위와 일부 상이하거나 중심이 일치하지 않고 서로 이격될 수 있다.Here, the first area (R1) may be an area corresponding to the field of view (FOV) and detection range (R1) of the distance sensor 210. In one embodiment, the first area R1 may be slightly different from the second area in which the distance map is generated or the capturing range of the plurality of cameras 230, or its center may not be the same and may be spaced apart from each other.

일 실시예로, 전자 장치(200)는 움직임 센서(220)로부터 전자 장치(200)의 이동 또는 회전에 관련한 움직임 데이터를 수신할 수 있다. 일 실시예로, 움직임 데이터는 전자 장치(200)가 미리 설정된 3축 방향으로 각각 회전된 각도과 관련한 정보 및/또는 전자 장치(200)가 미리 설정된 3축 방향으로 각각 이동된 거리와 관련한 정보가 포함될 수 있다.In one embodiment, the electronic device 200 may receive movement data related to movement or rotation of the electronic device 200 from the motion sensor 220. In one embodiment, the movement data may include information related to the angle at which the electronic device 200 is rotated in each of the three preset directions and/or information related to the distance the electronic device 200 is moved in each of the three preset directions. You can.

일 실시예로, 전자 장치(200)는 수신한 움직임 데이터를 기반으로, 수신한 거리 데이터가 제1 영역(R1)에 대응하도록, 제2 영역에 대한 거리 맵을 생성할 수 있다. 여기서, 제2 영역은 제1 영역(R1)을 적어도 일부 포함하는 영역일 수 있고, 복수의 카메라들(230) 중 어느 하나(예: 프리뷰를 제공하는 카메라)의 촬영 범위에 포함될 수 있다. 즉, 전자 장치(200)는 복수의 카메라들(230)의 촬영 범위에 포함된 제2 영역에 대하여 거리 맵을 생성할 수 있다. 예를 들어, 제2 영역은 전자 장치(200)로부터 미리 설정된 거리(예: 1 [m]) 이격된 위치로 설정될 수 있고, 복수 개의 구역(zone)으로 구분될 수 있다. In one embodiment, the electronic device 200 may generate a distance map for the second area based on the received motion data so that the received distance data corresponds to the first area R1. Here, the second area may include at least a portion of the first area R1 and may be included in the capturing range of one of the plurality of cameras 230 (eg, a camera providing a preview). That is, the electronic device 200 may generate a distance map for the second area included in the capturing range of the plurality of cameras 230. For example, the second area may be set to be a preset distance (eg, 1 [m]) away from the electronic device 200 and may be divided into a plurality of zones.

일 실시예로, 전자 장치(200)는 움직임 데이터를 기반으로, 제2 영역의 내부에 위치된 제1 영역(R1)의 적어도 일부에 거리 데이터를 매핑하여 거리 맵을 생성할 수 있다. 전자 장치(200)는, 거리 센서(210)의 상대적으로 좁은 화각에 대응하는 제1 영역(R1)의 거리 데이터를 상대적으로 넓은 제2 영역에 매핑할 수 있다.In one embodiment, the electronic device 200 may generate a distance map by mapping distance data to at least a portion of the first area R1 located inside the second area based on the movement data. The electronic device 200 may map the distance data of the first area R1 corresponding to the relatively narrow viewing angle of the distance sensor 210 to the relatively wide second area.

도 7은, 일 실시예에 따른, 전자 장치(예: 도 2의 전자 장치(200))의 이동에 의한 제1 영역(R1)의 이동을 도시한 것이다. FIG. 7 illustrates movement of the first region R1 due to movement of an electronic device (eg, the electronic device 200 of FIG. 2 ), according to an embodiment.

도 7을 참조하면, 거리 센서(210)는, 전자 장치의 움직임에 의해 변경되는 제1 영역(R1)에 각각 대응하는 복수의 거리 데이터를 미리 설정된 주기에 기반하여 생성할 수 있다. 여기서, 미리 설정된 주기는 전자 장치의 거리 센서(210) 또는 움직임 센서(예: 도 2의 움직임 센서(220))의 동작 주기일 수 있다. 전자 장치는 미리 설정된 주기에 따른 개별 frame 마다 제1 영역(R1)에 대응하는 거리 데이터를 각각 저장함으로써, 복수 개의 frame을 생성할 수 있다.Referring to FIG. 7 , the distance sensor 210 may generate a plurality of distance data each corresponding to the first area R1 that changes due to movement of the electronic device based on a preset period. Here, the preset cycle may be the operation cycle of the distance sensor 210 or the motion sensor (eg, the motion sensor 220 in FIG. 2) of the electronic device. The electronic device may generate a plurality of frames by storing distance data corresponding to the first area R1 for each individual frame according to a preset period.

예시로, 전자 장치가 회전하는 상황(예시 1) 및 좌측에서 우측으로 이동하는 상황(예시 2)에서 각 frame 에서의 거리 데이터는 하기와 같다.As an example, in a situation where the electronic device is rotating (Example 1) and moving from left to right (Example 2), the distance data in each frame is as follows.

센서 종류sensor type 1frame1 frame 2frame2frame 3frame3frame 4frame4frame 5frame5frame 6frame6frame 7frame7frame 8frame8frame 9frame9frame 거리 센서 측정값(예시 1 & 2)Distance sensor measurements (Examples 1 & 2) 50 cm50cm 50 cm50cm 50 cm50cm 50 cm50cm 50 cm50cm 50 cm50cm 20 cm20cm 20 cm20cm 20 cm20cm 자이로 센서 측정값(예시 1)Gyro sensor measurements (Example 1) 15 °15° 15.5°15.5° 16 °16° 16.5°16.5° 17 °17° 17.5°17.5° 18 °18° 18.5°18.5° 19 °19° 자이로 센서 측정값(예시 2)Gyro sensor measurements (Example 2) 15 °15° 15 °15° 15 °15° 15 °15° 15 °15° 15 °15° 15 °15° 15 °15° 15 °15°

거리 센서(210)는 [표 1]에 표시된 것과 같이, 1 frame 내지 6 frame 에서는 오브젝트가 50 [cm] 이격된 것으로 감지하였으나, 7 frame 내지 9 frame 에서는 오브젝트가 20 [cm] 이격된 것으로 감지하였다. 전자 장치는 복수 개의 frame 에서의 거리 데이터를 제2 영역의 복수 개의 구역(zone)에 매핑할 수 있다. 일 실시예로, 전자 장치는 일부 시간 지연을 고려하여, 유효한 frame의 개수를 제한하도록 미리 설정된 frame 개수를 설정할 수 있다. 즉, 전자 장치는 미리 설정된 frame 개수 이하의 거리 데이터를 거리 맵에 매핑할 수 있다.As shown in [Table 1], the distance sensor 210 detected that the object was separated by 50 [cm] in frames 1 to 6, but detected that the object was separated by 20 [cm] in frames 7 to 9. . The electronic device may map distance data from a plurality of frames to a plurality of zones in the second area. In one embodiment, the electronic device may set a preset number of frames to limit the number of valid frames, taking some time delay into account. In other words, the electronic device can map distance data of less than a preset number of frames to the distance map.

일 실시예로, 전자 장치는 카메라 전환의 조건 또는 AF(자동 초점) 동작 재수행 여부를 고려하여 미리 설정된 거리 데이터의 미리 설정된 크기 이상의 변화가 발생하지 않는 경우, 미리 설정된 frame 개수를 증가시킬 수 있다. 반대로, 거리 데이터의 미리 설정된 크기 이상의 변화가 발생한 경우, 미리 설정된 frame 개수를 감소시킬 수 있다. In one embodiment, the electronic device may increase the number of preset frames if a change in the preset distance data does not occur by more than the preset size in consideration of camera switching conditions or whether to re-perform AF (autofocus) operation. . Conversely, if a change in the distance data exceeds the preset size occurs, the preset number of frames can be reduced.

일 실시예로, 전자 장치는 미리 설정된 frame 개수 이하의 frame을 이용하여, 거리 센서로부터 수신한 복수의 거리 데이터를 움직임 센서로부터 수신한 움직임 데이터에 기반하여 제2 영역에 각각 매핑함으로써 거리 맵을 생성할 수 있다. 이에 따라, 전자 장치는 제2 영역의 일부 구역은 50 [cm]으로, 제2 영역의 다른 일부 구역은 20 [cm]인 거리 맵을 생성할 수 있다.In one embodiment, the electronic device generates a distance map by mapping a plurality of distance data received from the distance sensor to a second area based on the movement data received from the motion sensor, using frames less than or equal to the preset number of frames. can do. Accordingly, the electronic device may generate a distance map in which some areas of the second area are 50 [cm] and other areas of the second area are 20 [cm].

도 8은, 일 실시예에 따른, 전자 장치(200)의 이동 또는 회전에 따른 제1 영역의 이동에 관한 예시이다. 도 9는, 일 실시예에 따른, 전자 장치(200)의 이동 또는 회전에 대한 미리 설정된 기준에 관한 예시이다.FIG. 8 is an example of movement of the first area according to movement or rotation of the electronic device 200, according to an embodiment. FIG. 9 is an example of a preset standard for movement or rotation of the electronic device 200, according to an embodiment.

도 8 내지 도 9를 더 참조하면, 전자 장치(200)는, 전자 장치(200)의 움직임에 기반하여 제2 영역(R2)의 내부에서 이동되는 제1 영역(R1)의 적어도 일부의 위치를 확인하고, 확인된 제1 영역(R1)의 위치에 전자 장치(200)의 움직임 이전에 측정한 제1 영역(R1) 이내의 오브젝트(O)에 대응하는 거리 데이터를 매핑할 수 있다.Referring further to FIGS. 8 and 9 , the electronic device 200 determines the position of at least a portion of the first region R1 that moves within the second region R2 based on the movement of the electronic device 200. Distance data corresponding to the object O within the first area R1 measured before the movement of the electronic device 200 may be mapped to the confirmed location of the first area R1.

일 실시예로 전자 장치(200)는, 미리 설정된 기준을 기반으로, 움직임 데이터에 따른 제1 영역(R1)의 이동된 위치를 확인할 수 있다. In one embodiment, the electronic device 200 may check the moved position of the first region R1 according to motion data based on a preset standard.

일 실시예로, 전자 장치(200)는 미리 설정된 기준에 따라, 전자 장치(200)의 이동 또는 회전에 의한 미리 설정된 제2 영역(R2) 이내에서 제1 영역(R1)의 이동된 위치를 확인할 수 있다. 제2 영역(R2)은 복수의 구역(zone)으로 구획되며, 제1 영역(R1)은 제2 영역(R2)의 복수의 구역 중 적어도 일부에 대응되고, 전자 장치(200)의 이동 또는 회전에 의해 제1 영역(R1)에 대응되는 복수의 구역 중 일부가 변경될 수 있다.In one embodiment, the electronic device 200 determines the moved position of the first area R1 within the preset second area R2 by movement or rotation of the electronic device 200 according to a preset standard. You can. The second region R2 is divided into a plurality of zones, and the first region R1 corresponds to at least a portion of the plurality of zones of the second region R2, and the movement or rotation of the electronic device 200 Some of the plurality of areas corresponding to the first area R1 may be changed.

일 실시예로, 전자 장치(200)는 미리 설정된 기준에 따라, 전자 장치(200)의 3축 방향 각각으로의 이동 또는 3축 방향을 각각 기준으로 하는 회전에 따른 제1 영역(R1)이 특정 방향으로 이동되도록 설정될 수 있다. 예시로, 전자 장치(200)가 우측방으로 이동하는 경우에 제1 영역(R1)이 우측방으로 이동되도록 설정될 수 있다. 또한, 전자 장치(200)가 좌측방으로 이동하는 경우에 제1 영역(R1)이 좌측방으로 이동되도록 설정될 수 있다. 또한, 전자 장치(200)가 상방으로 이동하는 경우에 제1 영역(R1)이 상방으로 이동되도록 설정될 수 있다. 또한, 전자 장치(200)가 하방으로 이동하는 경우에 제1 영역(R1)이 하방으로 이동되도록 설정될 수 있다. 또한, 전자 장치(200)가 세로 방향의 축을 기준으로 반시계 방향으로 회전하는 경우, 제1 영역(R1)이 좌측방으로 이동되도록 설정될 수 있다. 또한, 전자 장치(200)가 세로 방향의 축을 기준으로 시계 방향으로 회전하는 경우, 제1 영역(R1)이 우측방으로 이동되도록 설정될 수 있다. In one embodiment, the electronic device 200 specifies the first region R1 according to movement in each of the three axes or rotation based on the three axes of the electronic device 200 according to a preset standard. It can be set to move in one direction. For example, when the electronic device 200 moves to the right room, the first area R1 may be set to move to the right room. Additionally, when the electronic device 200 moves to the left room, the first area R1 may be set to move to the left room. Additionally, when the electronic device 200 moves upward, the first region R1 may be set to move upward. Additionally, when the electronic device 200 moves downward, the first region R1 may be set to move downward. Additionally, when the electronic device 200 rotates counterclockwise about the vertical axis, the first region R1 may be set to move to the left. Additionally, when the electronic device 200 rotates clockwise about the vertical axis, the first region R1 may be set to move to the right.

일 실시예로, 전자 장치(200)는 미리 설정된 기준에 따라, 제1 영역(R1)에 대응되는 복수의 구역 중 일부가 특정 이동량 또는 특정 회전량에 따라 이동되도록 설정될 수 있다. 예시로, 거리 센서의 화각이 20°이고, 제2 영역(R2)이 전자 장치(200)로부터 1 [m] 이격된 위치에 설정된 경우, 미리 설정된 기준은, 제1 영역(R1)이 전자 장치(200)의 3도 틸팅(tilting)에 의해 제2 영역(R2)의 복수의 구역(zone) 중 하나만큼 이동될 수 있다. 또한, 전자 장치(200)의 34 [cm] 이동에 의해, 제1 영역(R1)이 제2 영역(R2)의 복수의 구역(zone) 중 하나만큼 이동될 수 있다.In one embodiment, the electronic device 200 may be set to move some of the plurality of areas corresponding to the first region R1 according to a specific movement amount or a specific rotation amount according to a preset standard. For example, when the angle of view of the distance sensor is 20° and the second area R2 is set at a position 1 [m] away from the electronic device 200, the preset standard is that the first area R1 is set at a distance of 1 [m] from the electronic device 200. By tilting 200 by 3 degrees, it can be moved by one of the plurality of zones of the second region R2. Additionally, when the electronic device 200 moves by 34 [cm], the first region R1 may be moved by one of the plurality of zones of the second region R2.

제2 영역(R2)의 복수의 구역(zone)을 몇 개로 구분할지, 제2 영역(R2)에서 제1 영역(R1)에 대응하는 구역의 이동을 위한 전자 장치(200)의 회전 또는 이동의 정도에 관련한 미리 설정된 기준은 복수의 카메라들과 거리 센서의 성능 및 배치에 따라 변경될 수 있다. 여기서, 미리 설정된 기준은 실제 실험을 통한 실측치로 확인될 수 있다.How to divide a plurality of zones in the second region R2, and how to rotate or move the electronic device 200 to move the zone corresponding to the first region R1 in the second region R2. Preset standards related to the degree may change depending on the performance and arrangement of a plurality of cameras and distance sensors. Here, the preset standards can be confirmed with actual measurements through actual experiments.

도 10은, 일 실시예에 따른, 전자 장치(예: 도 2의 전자 장치(200))의 이동에 따라 제2 영역(R2)을 매핑하는 예시이다. 도 11은, 일 실시예에 따른, 전자 장치(예: 도 2의 전자 장치(200))의 이동 및 회전에 따라 제2 영역(R2)을 매핑하는 예시이다.FIG. 10 is an example of mapping the second area R2 according to the movement of an electronic device (eg, the electronic device 200 of FIG. 2 ) according to an embodiment. FIG. 11 is an example of mapping the second area R2 according to the movement and rotation of an electronic device (eg, the electronic device 200 of FIG. 2 ) according to an embodiment.

도 10 내지 도 11을 참조하면, 전자 장치는 제1 영역(R1)의 이동된 위치를 기반으로, 제2 영역(R2)에 포함된 제1 영역(R1)의 적어도 일부에 거리 데이터를 매핑할 수 있다.Referring to FIGS. 10 and 11 , the electronic device maps distance data to at least a portion of the first area (R1) included in the second area (R2) based on the moved position of the first area (R1). You can.

도 10에 도시한 것과 같이, frame 1에서 거리 센서가 1 [m]를 감지하고, frame 1과 frame 2 사이에 움직임 센서가 x축으로 17.7 [cm] 이동한 것으로 감지한 경우, 전자 장치는 제1 영역(R1)을 중심에서 좌측에 위치된 구역에 대응되는 것으로 확인하고, 해당 구역에 1 [m]의 거리 데이터를 매핑할 수 있다. 또한, frame 2에서 거리 센서가 1 [m]를 감지하고, frame 2와 frame 3 사이에 움직임 센서가 x축으로 17.7 [cm] 이동한 것으로 감지한 경우, 전자 장치는 frame 1의 제1 영역(R1)이 좌측으로 더 이동된 것으로 확인하며, frame 2의 제1 영역(R1)이 제2 영역(R2)의 중심에서 좌측에 위치된 구역에 대응되는 것으로 확인하고, 해당 구역에 각각 1 [m]의 거리 데이터를 매핑할 수 있다. 또한, frame 3에서 거리 센서가 50 [cm]를 감지하고, frame 3와 frame 4 사이에 움직임 센서가 x축으로 17.7 [cm] 이동한 것으로 감지한 경우, 전자 장치는 frame 1의 제1 영역(R1)이 제2 영역(R2)에서 이탈된 것으로 확인하며, frame 2의 제1 영역(R1)이 좌측으로 더 이동된 것으로 확인하여 해당 구역에 1 [m]의 거리 데이터를 매핑하고, frame 3의 제1 영역(R1)이 제2 영역(R2)의 중심에서 좌측에 위치된 구역에 대응되는 것으로 확인하여 해당 구역에 50 [cm]의 거리 데이터를 매핑할 수 있다.As shown in FIG. 10, when the distance sensor detects 1 [m] in frame 1 and the motion sensor detects that it has moved 17.7 [cm] in the x-axis between frame 1 and frame 2, the electronic device Area 1 (R1) can be confirmed to correspond to the area located to the left of the center, and distance data of 1 [m] can be mapped to that area. In addition, if the distance sensor detects 1 [m] in frame 2 and the motion sensor detects that 17.7 [cm] has moved in the x-axis between frame 2 and frame 3, the electronic device detects the first area of frame 1 ( R1) is confirmed to have moved further to the left, and the first area (R1) of frame 2 is confirmed to correspond to the area located to the left of the center of the second area (R2), and 1 [m ] distance data can be mapped. In addition, if the distance sensor detects 50 [cm] in frame 3 and the motion sensor detects that it has moved 17.7 [cm] in the x-axis between frame 3 and frame 4, the electronic device detects the first area of frame 1 ( R1) is confirmed to have deviated from the second area (R2), and the first area (R1) of frame 2 is confirmed to have moved further to the left, and 1 [m] of distance data is mapped to that area, and frame 3 By confirming that the first region R1 corresponds to a region located to the left of the center of the second region R2, distance data of 50 [cm] can be mapped to the corresponding region.

도 10에 도시한 것과 같이, frame 1에서 거리 센서가 1 [m]를 감지하고, frame 1과 frame 2 사이에 움직임 센서가 x축으로 17.7 [cm] 이동한 것으로 감지한 경우, 전자 장치는 제1 영역(R1)을 제2 영역(R2)의 중심에서 좌측에 위치된 구역에 대응되는 것으로 확인하고, 해당 구역에 1 [m]의 거리 데이터를 매핑할 수 있다. 또한, frame 2에서 거리 센서가 1 [m]를 감지하고, frame 2와 frame 3 사이에 움직임 센서가 x축으로 17.7 [cm] 이동한 것으로 감지한 경우, 전자 장치는 frame 1의 제1 영역(R1)이 좌측으로 더 이동된 것으로 확인하며, frame 2의 제1 영역(R1)이 제2 영역(R2)의 중심에서 좌측에 위치된 구역에 대응되는 것으로 확인하고, 해당 구역에 각각 1 [m]의 거리 데이터를 매핑할 수 있다. 또한, frame 3에서 거리 센서가 50[cm]를 감지하고, 움직임 센서가 x축을 기준으로 3°회전한 것으로 감지한 경우, frame 1 내지 frame 2에서 감지한 거리 데이터가 모두 중심에서 하방에 위치된 구역에 대응되는 것으로 확인하고, 해당 구역에 각각 1 [m]의 거리 데이터를 매핑할 수 있다. As shown in FIG. 10, when the distance sensor detects 1 [m] in frame 1 and the motion sensor detects that it has moved 17.7 [cm] in the x-axis between frame 1 and frame 2, the electronic device Area 1 (R1) is confirmed to correspond to the area located to the left of the center of the second area (R2), and distance data of 1 [m] can be mapped to the area. In addition, if the distance sensor detects 1 [m] in frame 2 and the motion sensor detects that 17.7 [cm] has moved in the x-axis between frame 2 and frame 3, the electronic device detects the first area of frame 1 ( R1) is confirmed to have moved further to the left, and the first area (R1) of frame 2 is confirmed to correspond to the area located to the left of the center of the second area (R2), and 1 [m ] distance data can be mapped. Additionally, if the distance sensor detects 50[cm] in frame 3 and the motion sensor detects a 3° rotation based on the x-axis, all distance data detected in frames 1 to 2 are located below the center. It is confirmed that it corresponds to a zone, and distance data of 1 [m] can be mapped to each zone.

일 실시예에 따라, 전자 장치는 제2 영역(R2)에 매핑한 거리 맵을 기반으로, 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정할 수 있다. According to one embodiment, the electronic device may determine a camera to acquire an image from among a plurality of cameras based on a distance map mapped to the second area R2.

일 실시예로, 복수의 카메라들에 포함된 제1 카메라, 제2 카메라, 제3 카메라 및 제4 카메라는 각각 서로 다른 초점 거리들을 가진 광각 카메라, 초광각 카메라, 제1 망원 카메라, 및 제2 망원 카메라일 수 있고, 전자 장치는 제2 영역(R2)에 매핑된 거리 맵을 기반으로 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정할 수 있다.In one embodiment, the first camera, second camera, third camera, and fourth camera included in the plurality of cameras are a wide-angle camera, an ultra-wide-angle camera, a first telephoto camera, and a second telephoto camera, respectively, having different focal lengths. It may be a camera, and the electronic device may determine a camera to acquire an image from among a plurality of cameras based on a distance map mapped to the second area R2.

일 실시예로, 전자 장치는 복수의 카메라들 중 제1 카메라를 통하여 프리뷰를 획득할 수 있다. 여기서, 제1 카메라는 카메라 어플리케이션 실행시 자동으로 활성화되는 카메라로, 광각 카메라일 수 있다. 전자 장치는 디스플레이(예: 도 2의 디스플레이(250))를 통해 사용자에게 프리뷰를 표시할 수 있다. 프리뷰는 정지된 이미지 또는 연속 이미지일 수 있고, 거리 맵이 생성되는 제2 영역(R2)이 포함될 수 있다.In one embodiment, the electronic device may obtain a preview through a first camera among a plurality of cameras. Here, the first camera is a camera that is automatically activated when the camera application is executed and may be a wide-angle camera. The electronic device may display a preview to the user through a display (eg, display 250 of FIG. 2). The preview may be a still image or a continuous image, and may include a second region R2 where a distance map is generated.

일 실시예로, 전자 장치는 제1 카메라를 통하여 프리뷰를 획득하여 디스플레이에 표시하는 상태에서, 제2 영역(R2)에 매핑한 거리 맵을 기반으로 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정할 수 있다. 예시로, 오브젝트와의 거리에 대한 하기와 같은 기준에 기반하여, 이미지를 획득할 카메라를 결정할 수 있다.In one embodiment, the electronic device acquires a preview through the first camera and displays it on the display, and determines a camera to acquire an image from among a plurality of cameras based on the distance map mapped to the second area R2. You can. As an example, a camera to acquire an image can be determined based on the following criteria for the distance to the object.

오브젝트와의 거리Distance from object 줌 배율zoom scale UW (28 cm ↓)UW (28 cm ↓) Wide (30 cm ↑)Wide (30cm ↑) *1.0 이상 ~ *3.0 미만*1.0 or higher ~ *3.0 or higher Wide (40 cm ↓)Wide (40 cm ↓) Tele1 (50 cm ↑)Tele1 (50 cm ↑) *3.0 이상 ~ *10.0 미만*3.0 or higher ~ *10.0 or higher Tele1 (80 cm ↓)Tele1 (80 cm ↓) Tele2 (100 cm ↑)Tele2 (100 cm ↑) *10.0 이상 ~ *15.0 미만*10.0 or higher ~ *15.0 or higher

[표 2]와 같이, 전자 장치는 제2 영역(R2)에 매핑한 거리 맵의 거리 데이터를 기반으로, 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정할 수 있다. 구체적으로, 제2 영역(R2)의 복수의 구역(zone)에 각각 매핑된 거리 데이터를 기반으로, 이미지를 획득할 카메라를 결정할 수 있다.예를 들어, 전자 장치는 오브젝트와의 거리가 28 [cm] 이하인 경우, 초광각 카메라(UW, 예: 제2 카메라)를 이미지를 획득할 카메라로 결정할 수 있고, 오브젝트와의 거리가 30 [cm] 이상인 경우, 광각 카메라(Wide, 제1 카메라)를 이미지를 획득할 카메라로 결정할 수 있다. 오브젝트와의 거리가 28 [cm] 초과 30 [cm] 미만인 히스테리시스 구간에서는, 프리뷰를 제공하는 카메라를 이미지를 획득할 카메라로 유지할 수 있다. As shown in [Table 2], the electronic device may determine a camera to acquire an image from among a plurality of cameras based on distance data of the distance map mapped to the second area R2. Specifically, a camera to acquire an image may be determined based on distance data mapped to each of a plurality of zones in the second region R2. For example, the electronic device may determine the distance to the object is 28 [ cm] or less, the ultra-wide-angle camera (UW, e.g., the second camera) can be determined as the camera to acquire the image, and if the distance to the object is more than 30 [cm], the wide-angle camera (Wide, the first camera) can be used to acquire the image. You can decide which camera to acquire. In the hysteresis section where the distance to the object is more than 28 [cm] and less than 30 [cm], the camera that provides the preview can be maintained as the camera that acquires the image.

또한, 전자 장치는 오브젝트와의 거리가 40 [cm] 이하인 경우, 광각 카메라(Wide, 제1 카메라)를 이미지를 획득할 카메라로 결정하고, 오브젝트와의 거리가 50 [cm] 이상인 경우, 제1 망원 카메라(Tele2, 제3 카메라)를 이미지를 획득할 카메라로 결정할 수 있다. 오브젝트와의 거리가 40 [cm] 초과 50 [cm] 미만인 히스테리시스 구간에서는, 프리뷰를 제공하는 카메라를 이미지를 획득할 카메라로 유지할 수 있다. In addition, if the distance to the object is 40 [cm] or less, the electronic device determines the wide-angle camera (Wide, first camera) as the camera to acquire the image, and if the distance to the object is 50 [cm] or more, the first camera The telephoto camera (Tele2, third camera) can be selected as the camera to acquire the image. In the hysteresis section where the distance to the object is more than 40 [cm] and less than 50 [cm], the camera that provides the preview can be maintained as the camera that acquires the image.

또한, 전자 장치는 오브젝트와의 거리가 80 [cm] 이하인 경우, 제1 망원 카메라(Tele1, 제3 카메라)를 이미지를 획득할 카메라로 결정할 수 있고, 오브젝트와의 거리가 100 [cm] 이상인 경우, 제2 망원 카메라(Tele2, 제4 카메라)를 이미지를 획득할 카메라로 결정할 수 있다. 오브젝트와의 거리가 80 [cm] 초과 100 [cm] 미만인 히스테리시스 구간에서는, 프리뷰를 제공하는 카메라를 이미지를 획득할 카메라로 유지할 수 있다. Additionally, if the distance to the object is 80 [cm] or less, the electronic device may determine the first telephoto camera (Tele1, third camera) as the camera to acquire the image, and if the distance to the object is 100 [cm] or more. , the second telephoto camera (Tele2, fourth camera) can be determined as the camera to acquire the image. In the hysteresis section where the distance to the object is more than 80 [cm] and less than 100 [cm], the camera that provides the preview can be maintained as the camera that acquires the image.

일 실시예로, 전자 장치는, 거리 맵에 기반하여 결정한 이미지를 획득할 카메라를 기반으로, 이미지를 획득할 카메라를 전환할 수 있다. 예를 들어, 전자 장치는 카메라 어플리케이션의 실행시 또는 카메라의 전환 이후에, 제1 카메라를 통해 프리뷰를 획득할 수 있고, 프리뷰를 제공하는 상태에서 제1 카메라와 상이한 제2 카메라를 이미지를 획득할 카메라로 결정한 경우, 이미지를 획득할 카메라를 제2 카메라로 전환할 수 있다. 일 실시예로, 프리뷰를 제공하는 카메라와 이미지를 획득할 카메라로 결정한 카메라가 동일한 경우, 이미지를 획득할 카메라를 전환하지 않을 수 있다.In one embodiment, the electronic device may switch the camera to acquire the image based on the camera to acquire the image determined based on the distance map. For example, the electronic device may acquire a preview through a first camera when executing a camera application or after switching cameras, and acquire an image using a second camera different from the first camera while providing the preview. If you decide on a camera, you can switch the camera to acquire the image to the second camera. In one embodiment, if the camera providing the preview and the camera determined as the camera to acquire the image are the same, the camera to acquire the image may not be switched.

일 실시예로, 전자 장치는, 생성한 거리 맵에 매핑된 거리 데이터를 기반으로, 자동 초점(AF: Auto focus) 기능을 수행하도록 동작하거나, 또는 이미지를 획득할 카메라를 적절한 초점 거리를 갖는 카메라로 결정하고 전환하도록 동작할 수 있다.In one embodiment, the electronic device operates to perform an auto focus (AF) function based on distance data mapped to the generated distance map, or selects a camera to acquire an image using a camera with an appropriate focal length. You can decide and operate to switch.

도 12는, 일 실시예들에 따른, 이미지를 제공하기 위한 방법을 설명하는 흐름도(1200)이다.FIG. 12 is a flowchart 1200 illustrating a method for providing an image, according to one embodiment.

도 12를 참조하면, 일 실시예에 따른 전자 장치는, 동작 1210에서, 복수의 카메라들 중 제1 카메라를 통하여 프리뷰를 획득하도록 동작할 수 있다. 예를 들어, 제1 카메라는 확대 배율이 1.0 배에 적절한 광각 카메라일 수 있다. 전자 장치는 획득한 프리뷰를 이미지 또는 영상으로 디스플레이에 표시할 수 있다. 거리 맵이 생성되는 제2 영역은 프리뷰의 범위 이내에 포함될 수 있다.Referring to FIG. 12, in operation 1210, the electronic device according to one embodiment may operate to obtain a preview through a first camera among a plurality of cameras. For example, the first camera may be a wide-angle camera with an appropriate magnification factor of 1.0. The electronic device can display the acquired preview as an image or video on the display. The second area in which the distance map is generated may be included within the range of the preview.

일 실시예에 따른 전자 장치는, 동작 1230에서, 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서로부터 거리 데이터 및 전자 장치의 이동 또는 회전을 감지하는 움직임 센서로부터 움직임 데이터를 수신하도록 동작할 수 있다. 구체적으로, 전자 장치는 프리뷰를 표시하는 상태에서, 거리 센서로부터 제1 영역의 거리 데이터를 수신하고, 움직임 센서로부터 움직임 데이터를 수신할 수 있다. 거리 데이터 및 움직임 데이터는 동시에 수신될 수도 있고, 순차적으로 수신될 수 있으며 그 순서는 변경될 수 있다.In operation 1230, the electronic device according to an embodiment is operated to receive distance data from a distance sensor that detects the distance to an object located in the first area and movement data from a motion sensor that detects movement or rotation of the electronic device. can do. Specifically, while displaying a preview, the electronic device may receive distance data of the first area from the distance sensor and motion data from the motion sensor. Distance data and motion data may be received simultaneously or sequentially and the order may be changed.

일 실시예에 따른 전자 장치는, 동작 1250에서, 움직임 데이터를 기반으로, 거리 데이터가 제1 영역에 대응하도록, 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하도록 동작할 수 있다. 일 실시예로, 전자 장치는 움직임 데이터를 기반으로, 제2 영역의 내부에 위치된 제1 영역의 적어도 일부에 거리 데이터를 매핑하여 거리 맵을 생성할 수 있다. 일 실시예로, 전자 장치는 미리 설정된 주기에 기반하여 거리 센서에 의해 감지된 복수의 거리 데이터를 거리 맵에 매핑할 수 있고, 여기서 복수의 거리 데이터는 움직임 데이터에 대응하여 변경되는 제1 영역에 각각 대응하는 복수의 데이터일 수 있다.In operation 1250, the electronic device according to an embodiment may operate to generate a distance map for a second area that includes at least a portion of the first area, based on the movement data, so that the distance data corresponds to the first area. there is. In one embodiment, the electronic device may generate a distance map by mapping distance data to at least a portion of the first area located inside the second area, based on the movement data. In one embodiment, the electronic device may map a plurality of distance data detected by a distance sensor to a distance map based on a preset cycle, where the plurality of distance data is stored in a first area that changes in response to movement data. Each may be a plurality of corresponding data.

일 실시예에 따른 전자 장치는, 동작 1250의 적어도 일부로 동작 1251에서, 미리 설정된 기준을 기반으로, 움직임 데이터에 따른 제1 영역의 이동된 위치를 확인하도록 동작할 수 있다. 예를 들어, 전자 장치는, 움직임 데이터의 이동 또는 회전에 각각 대응하는 미리 설정된 기준에 따라, 제1 영역의 이동된 위치를 확인할 수 있다. In operation 1251, at least as part of operation 1250, the electronic device according to one embodiment may operate to check the moved position of the first area according to the motion data based on a preset standard. For example, the electronic device may confirm the moved position of the first area according to a preset standard corresponding to movement or rotation of the motion data, respectively.

일 실시예에 따른 전자 장치는, 동작 1250의 적어도 일부로 동작 1252에서, 확인한 이동된 위치를 기반으로, 제1 영역의 적어도 일부에 거리 데이터를 매핑하도록 동작할 수 있다. 구체적으로 전자 장치는, 움직임 데이터에 기반하여 확인한 이동된 제1 영역의 거리 데이터를 제2 영역에 포함된 제1 영역의 적어도 일부에 매핑함으로써 거리 맵을 생성할 수 있다.In operation 1252, as at least part of operation 1250, the electronic device according to an embodiment may operate to map distance data to at least a portion of the first area based on the confirmed moved location. Specifically, the electronic device may generate a distance map by mapping distance data of the moved first area identified based on the motion data to at least a portion of the first area included in the second area.

일 실시예에 따른 전자 장치는, 동작 1260에서, 거리 데이터에 미리 설정된 크기 이상의 변화가 발생하는 경우, 거리 맵에서 복수의 카메라 중 적어도 하나의 촬영 범위에 대응하는 거리 데이터의 존재 여부에 기반하여, 전자 장치의 움직임을 유도하는 노티피케이션을 제공하도록 동작할 수 있다. 구체적으로 전자 장치는, 거리 센서에서 감지한 제1 영역의 오브젝트와의 거리 데이터에 미리 설정된 크기 이상의 변화가 발생하는 경우, 오브젝트와의 거리 데이터에 기반하여 이미지를 획득할 카메라를 결정하거나 결정한 카메라로 전환할 수 있다. 전자 장치는 카메라를 전환하기 이전에, 거리 맵에서 복수의 카메라 중 적어도 하나의 촬영 범위에 대응하는 거리 데이터의 존재 여부에 기반하여, 전자 장치의 움직임을 유도하는 노티피케이션을 제공할 수 있다. 여기서 복수의 카메라 중 적어도 하나는, 트와의 거리 데이터에 기반하여 이미지를 획득할 카메라 또는 프리뷰를 제공하는 카메라일 수 있다.The electronic device according to one embodiment, in operation 1260, when a change of more than a preset size occurs in the distance data, based on the presence or absence of distance data corresponding to the shooting range of at least one of the plurality of cameras in the distance map, It may operate to provide notifications that induce movement of the electronic device. Specifically, when a change of more than a preset size occurs in the distance data with the object in the first area detected by the distance sensor, the electronic device determines a camera to acquire an image based on the distance data with the object, or selects the camera with the determined camera. You can switch. Before switching cameras, the electronic device may provide a notification that induces movement of the electronic device based on the presence or absence of distance data corresponding to the shooting range of at least one of the plurality of cameras in the distance map. Here, at least one of the plurality of cameras may be a camera that acquires an image based on distance data from the camera or a camera that provides a preview.

일 실시예로, 전자 장치는 변화된 거리 데이터에 따라 전환될 카메라의 촬영 범위에 대응하는 거리 데이터가 생성된 거리 맵에 매핑되었는지 여부를 기반으로, 전자 장치의 움직임을 유도하는 노티피케이션을 제공할 수 있다. 예를 들어, 전자 장치는, 거리 데이터에 미리 설정된 크기 이상의 변화가 발생하고, 변화가 발생된 거리 데이터에 따라 전환될 카메라가 제3 카메라인 경우, 거리 맵에 제3 카메라의 촬영 범위에 대응하는 거리 데이터가 존재하는지 판단할 수 있다. 전자 센서는, 거리 맵에 제3 카메라의 촬영 범위에 대응하는 거리 데이터가 존재하지 않음에 기반하여, 거리 센서의 감지 범위인 제1 영역이 제3 카메라의 촬영 범위에 포함되도록 전자 장치의 움직임을 유도하는 노티피케이션을 제공할 수 있다. 예시로, 전자 장치는, 전자 장치를 일측 방향으로 이동하거나, 또는 일측으로 회전하도록 유도하는 노티피케이션을 제공할 수 있다.In one embodiment, the electronic device may provide a notification that induces movement of the electronic device based on whether the distance data corresponding to the shooting range of the camera to be switched according to the changed distance data has been mapped to the generated distance map. You can. For example, when a change greater than a preset size occurs in the distance data and the camera to be switched according to the distance data in which the change occurred is a third camera, the electronic device displays a recording range corresponding to the shooting range of the third camera in the distance map. It can be determined whether distance data exists. The electronic sensor moves the electronic device so that the first area, which is the detection range of the distance sensor, is included in the shooting range of the third camera, based on the fact that there is no distance data corresponding to the shooting range of the third camera in the distance map. Inducing notifications can be provided. As an example, an electronic device may provide a notification that induces the electronic device to move in one direction or rotate to one side.

일 실시예로, 동작 1260은 필수적인 동작이 아닌 선택적인 동작으로, 전자 장치의 동작 방법에서 포함되거나 또는 제외될 수 있다.In one embodiment, operation 1260 is an optional operation rather than an essential operation, and may be included or excluded from the operation method of the electronic device.

일 실시예에 따른 전자 장치는, 동작 1270에서, 제2 영역의 거리 맵을 기반으로, 초점 거리가 서로 상이한 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정할 수 있다.In operation 1270, the electronic device according to an embodiment may determine a camera to acquire an image from among a plurality of cameras with different focal lengths based on the distance map of the second area.

일 실시예에 따른 전자 장치는, 동작 1280에서, 상기 결정한 이미지를 획득할 카메라가 복수의 카메라들 중 제2 카메라인 경우, 이미지를 획득할 카메라를 제1 카메라로부터 제2 카메라로 전환하도록 동작할 수 있다. 여기서, 제2 카메라는 제1 카메라와는 상이한 카메라로, 복수의 카메라들 중 제1 카메라와 상이한 모든 카메라일 수 있다. 예를 들어, 상기 결정한 이미지를 획득할 카메라가 복수의 카메라들 중 제1 카메라인 경우, 카메라의 전환 없이 제1 카메라의 실행을 유지할 수 있다.In operation 1280, the electronic device according to an embodiment operates to switch the camera to acquire the image from the first camera to the second camera when the camera to acquire the determined image is a second camera among the plurality of cameras. You can. Here, the second camera is a camera different from the first camera, and may be any camera different from the first camera among the plurality of cameras. For example, if the camera to acquire the determined image is the first camera among a plurality of cameras, execution of the first camera may be maintained without switching cameras.

구체적으로, 이미지를 획득할 카메라의 결정 및 전환에 관하여는 하기의 도 13a 및 도 13b와 함께 후술한다.Specifically, determination and switching of cameras to acquire images will be described later with reference to FIGS. 13A and 13B below.

일 실시예에 따른 전자 장치는, 동작 1290에서, 제2 영역의 거리 맵을 기반으로, 자동 초점 기능을 수행할 수 있다. 전자 장치는, 이미지를 획득할 카메라로 전환한 이후 또는 실행한 카메라를 유지한 상태로, 제2 영역의 거리 맵을 기반으로 자동 초점 기능을 수행할 수 있다. 일 실시예로, 전자 장치는, 제2 영역의 거리 맵에서, 전환되거나 유지된 이미지를 획득할 카메라의 촬영 범위에 포함되는 거리 데이터를 이용하여, 자동 초점 기능을 수행할 수 있다.In operation 1290, the electronic device according to one embodiment may perform an autofocus function based on the distance map of the second area. The electronic device may perform an autofocus function based on the distance map of the second area after switching to a camera to acquire an image or while maintaining the camera in operation. In one embodiment, the electronic device may perform an autofocus function using distance data included in the shooting range of a camera to acquire a switched or maintained image in the distance map of the second area.

도 13a 및 도 13b는, 일 실시예들에 따른, 이미지를 획득할 카메라의 결정 및 전환하기 위한 방법을 설명하는 흐름도(1300)이다.13A and 13B are flowcharts 1300 illustrating a method for determining and switching a camera to acquire an image, according to one embodiment.

도 13a 및 도 13b를 참조하면, 일 실시예에 따른 전자 장치는, 동작 1310에서, 카메라 어플리케이션의 실행시, 제1 카메라를 실행할 수 있다. 일 실시예로, 전자 장치는 제1 카메라를 이용하여 프리뷰를 획득하고, 획득한 프리뷰를 디스플레이에 표시할 수 있다.Referring to FIGS. 13A and 13B , the electronic device according to one embodiment may execute the first camera when executing a camera application in operation 1310. In one embodiment, the electronic device may obtain a preview using the first camera and display the obtained preview on the display.

일 실시예에 따른 전자 장치는, 동작 1320에서, 제1 카메라를 실행한 상태에서 확대 배율이 제1 배율(예시로, 3배) 미만인지 확인할 수 있다. 또한, 일 실시예에 따른 전자 장치는, 제1 카메라를 실행한 상태에서 확대 배율이 제1 배율 미만인 경우, 거리 센서로부터 수신한 거리 데이터를 제1 거리와 비교할 수 있다.In operation 1320, the electronic device according to one embodiment may check whether the magnification is less than the first magnification (for example, 3 times) while the first camera is running. Additionally, the electronic device according to one embodiment may compare the distance data received from the distance sensor with the first distance when the magnification is less than the first magnification while the first camera is running.

일 실시예로, 전자 장치는 동작 1341에서, 거리 데이터가 제1 거리 미만인지 확인할 수 있다. 여기서 제1 거리는 오브젝트와의 거리를 기반으로 제1 카메라로부터 제2 카메라로 전환되기 위한 임계값에 해당하는 거리로, 예를 들어 28 [cm]로 미리 설정될 수 있다. 전자 장치는, 거리 데이터가 제1 거리 미만인 경우, 동작 1351에서, 제2 카메라의 촬영 범위의 거리 데이터가 존재하는지 거리 맵을 기반으로 확인할 수 있다. 일 실시예로 전자 장치는, 제2 카메라의 촬영 범위의 거리 데이터가 제1 거리 미만인 경우 및/또는 제2 카메라의 촬영 범위의 거리 데이터가 존재하지 않는 경우, 동작 1372에서, 제2 카메라로 전환할 수 있다. 일 실시예로, 전자 장치는, 거리 데이터가 제1 거리 이상인 경우 및/또는 제2 카메라의 촬영 범위의 거리 데이터가 제1 거리 이상인 경우, 동작 1371에서, 제1 카메라의 실행을 유지할 수 있다. In one embodiment, the electronic device may check whether the distance data is less than the first distance in operation 1341. Here, the first distance is a distance corresponding to the threshold for switching from the first camera to the second camera based on the distance to the object, and may be preset to, for example, 28 [cm]. If the distance data is less than the first distance, in operation 1351, the electronic device may check whether distance data in the capturing range of the second camera exists based on the distance map. In one embodiment, when the distance data of the capturing range of the second camera is less than the first distance and/or if the distance data of the capturing range of the second camera does not exist, the electronic device switches to the second camera in operation 1372. can do. In one embodiment, the electronic device may maintain execution of the first camera in operation 1371 when the distance data is greater than or equal to the first distance and/or when the distance data of the capturing range of the second camera is greater than or equal to the first distance.

일 실시예에 따른 전자 장치는, 동작 1320에서, 제1 카메라를 실행한 상태에서 확대 배율이 제1 배율 미만인지 확인할 수 있다. 일 실시예에 따른 전자 장치는, 제1 카메라를 실행한 상태에서 확대 배율이 제1 배율 이상인 경우, 동작 1330에서, 제1 카메라를 실행한 상태에서 확대 배율이 제1 배율보다 크게 설정된 제2 배율(예시로, 10배) 미만인지 확인할 수 있다. 일 실시예에 따른 전자 장치는, 제1 카메라를 실행한 상태에서 확대 배율이 제2 배율 미만인 경우, 거리 센서로부터 수신한 거리 데이터를 제2 거리와 비교할 수 있다. In operation 1320, the electronic device according to one embodiment may check whether the magnification is less than the first magnification while the first camera is running. According to one embodiment, when the magnification is greater than or equal to the first magnification while the first camera is running, the electronic device sets the second magnification to be larger than the first magnification in operation 1330. You can check if it is less than (for example, 10 times). The electronic device according to one embodiment may compare the distance data received from the distance sensor with the second distance when the magnification magnification is less than the second magnification while the first camera is running.

일 실시예로, 전자 장치는 동작 1342에서, 거리 데이터가 제2 거리 미만인지 확인할 수 있다. 여기서 제2 거리는 오브젝트와의 거리를 기반으로 제1 카메라로부터 제3 카메라로 전환되기 위한 임계값에 해당하는 거리로, 예를 들어 40 [cm]로 미리 설정될 수 있다. 전자 장치는, 거리 데이터가 제2 거리 미만인 경우, 동작 1352에서, 제1 카메라의 촬영 범위의 거리 데이터가 존재하는지 거리 맵을 기반으로 확인할 수 있다. 일 실시예로 전자 장치는, 제1 카메라의 촬영 범위의 거리 데이터가 제2 거리 미만인 경우 및/또는 제1 카메라의 촬영 범위의 거리 데이터가 존재하지 않는 경우, 동작 1374에서, 제1 카메라의 실행을 유지할 수 있다. 일 실시예로, 전자 장치는, 거리 데이터가 제2 거리 이상인 경우 및/또는 제1 카메라의 촬영 범위의 거리 데이터가 제2 거리 이상인 경우, 동작 1373에서, 제3 카메라로 전환할 수 있다. In one embodiment, the electronic device may check whether the distance data is less than the second distance in operation 1342. Here, the second distance is a distance corresponding to the threshold for switching from the first camera to the third camera based on the distance to the object, and may be preset to, for example, 40 [cm]. If the distance data is less than the second distance, in operation 1352, the electronic device may check whether distance data in the shooting range of the first camera exists based on the distance map. In one embodiment, when the distance data of the capturing range of the first camera is less than the second distance and/or when the distance data of the capturing range of the first camera does not exist, in operation 1374, the electronic device executes the first camera. can be maintained. In one embodiment, the electronic device may switch to the third camera in operation 1373 when the distance data is greater than or equal to the second distance and/or when the distance data of the capturing range of the first camera is greater than or equal to the second distance.

일 실시예에 따른 전자 장치는, 제1 카메라를 실행한 상태에서 확대 배율이 제2 배율 이상인 경우, 거리 센서로부터 수신한 거리 데이터를 제3 거리와 비교할 수 있다. The electronic device according to one embodiment may compare the distance data received from the distance sensor with the third distance when the magnification is greater than or equal to the second magnification while the first camera is running.

일 실시예로, 전자 장치는 동작 1343에서, 거리 데이터가 제3 거리 미만인지 확인할 수 있다. 여기서 제3 거리는 오브젝트와의 거리를 기반으로 제1 카메라로부터 제3 카메라 또는 제4 카메라로 전환되기 위한 경계값에 해당하는 거리로, 예를 들어 80 [cm]로 미리 설정될 수 있다. 전자 장치는, 거리 데이터가 제3 거리 미만인 경우, 동작 1353에서, 제3 카메라의 촬영 범위의 거리 데이터가 존재하는지 거리 맵을 기반으로 확인할 수 있다. 일 실시예로 전자 장치는, 제3 카메라의 촬영 범위의 거리 데이터가 제3 거리 미만인 경우 및/또는 제3 카메라의 촬영 범위의 거리 데이터가 존재하지 않는 경우, 동작 1376에서, 제3 카메라로 전환할 수 있다. 일 실시예로, 전자 장치는, 거리 데이터가 제3 거리 이상인 경우 및/또는 제3 카메라의 촬영 범위의 거리 데이터가 제3 거리 이상인 경우, 동작 1375에서, 제4 카메라로 전환할 수 있다.In one embodiment, the electronic device may check whether the distance data is less than the third distance in operation 1343. Here, the third distance is a distance corresponding to the boundary value for switching from the first camera to the third or fourth camera based on the distance to the object, and may be preset to, for example, 80 [cm]. If the distance data is less than the third distance, in operation 1353, the electronic device may check whether distance data in the capturing range of the third camera exists based on the distance map. In one embodiment, the electronic device switches to the third camera in operation 1376 when the distance data of the capturing range of the third camera is less than the third distance and/or if the distance data of the capturing range of the third camera does not exist. can do. In one embodiment, the electronic device may switch to the fourth camera in operation 1375 when the distance data is greater than or equal to the third distance and/or when the distance data of the capturing range of the third camera is greater than or equal to the third distance.

추가로, 도 13에는 이미지를 획득할 카메라로 전환 또는 유지한 이후에 동작이 종료되는 것으로 도시하였으나, 미리 설정된 주기에 기반하여 지속적으로 업데이트되는 거리 맵에 따라, 이미지를 획득할 카메라를 지속적으로 전환하거나 유지할 수 있다. 여기에서, 카메라의 전환을 위한 제1 거리, 제2 거리 및 제3 거리에 각각 히스테리시스 구간을 적용하여, 각각 30 [cm], 50 [cm] 및 100 [cm]의 임계값 또는 경계값을 적용할 수 있다.Additionally, in Figure 13, the operation is shown to end after switching to or maintaining the camera to acquire the image, but the camera to acquire the image is continuously switched according to the distance map that is continuously updated based on a preset cycle. You can do it or keep it. Here, hysteresis sections are applied to the first, second, and third distances for camera switching, respectively, and thresholds or boundary values of 30 [cm], 50 [cm], and 100 [cm] are applied, respectively. can do.

일 실시예들에 따른 전자 장치는, 초점 거리가 서로 상이한 복수의 카메라들, 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서, 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서 및 상기 복수의 카메라들, 상기 거리 센서 및 상기 움직임 센서와 작동적으로 연결된 적어도 하나의 프로세서를 포함할 수 있다. 일 실시예들에 따른 적어도 하나의 프로세서는, 상기 거리 센서로부터 상기 오브젝트와의 거리 데이터 및 상기 움직임 센서로부터 상기 전자 장치의 이동 또는 회전에 관련한 움직임 데이터를 수신하도록 설정될 수 있다. 일 실시예들에 따른 적어도 하나의 프로세서는, 상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하도록 설정될 수 있다. 일 실시예들에 따른 적어도 하나의 프로세서는, 상기 거리 맵을 기반으로, 상기 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하도록 설정될 수 있다.An electronic device according to one embodiment includes a plurality of cameras having different focal lengths, a distance sensor that detects the distance to an object located in a first area, a motion sensor that detects movement or rotation of the electronic device, and the It may include at least one processor operatively connected to a plurality of cameras, the distance sensor, and the motion sensor. At least one processor according to one embodiment may be configured to receive distance data to the object from the distance sensor and movement data related to movement or rotation of the electronic device from the motion sensor. At least one processor according to one embodiment is configured to generate, based on the motion data, a distance map for a second area that includes at least a portion of the first area so that the distance data corresponds to the first area. can be set. At least one processor according to one embodiment may be configured to determine a camera to acquire an image among the plurality of cameras based on the distance map.

일 실시예들에 따른 전자 장치에서, 상기 거리 센서는, 발광부 및 수광부를 포함하고, 상기 발광부에서 방출되어 상기 오브젝트에 의해 반사된 광을 상기 수광부에서 수신함에 기반하여, 상기 오브젝트와의 거리를 감지하는 TOF(Time Of Flight) 방식일 수 있다.In the electronic device according to one embodiment, the distance sensor includes a light emitting unit and a light receiving unit, and determines the distance to the object based on receiving light emitted from the light emitting unit and reflected by the object at the light receiving unit. It may be a TOF (Time Of Flight) method that detects.

일 실시예들에 따른 전자 장치에서, 상기 움직임 센서는, 상기 전자 장치의 이동을 감지하는 가속도 센서 또는 상기 전자 장치의 회전을 감지하는 자이로 센서를 포함할 수 있다.In the electronic device according to one embodiment, the motion sensor may include an acceleration sensor that detects movement of the electronic device or a gyro sensor that detects rotation of the electronic device.

일 실시예들에 따른 전자 장치에서, 상기 거리 센서는, 상기 복수의 카메라들의 측방에 배치되어, 감지 범위가 상기 복수의 카메라 각각의 촬영 범위와 적어도 일부 상이할 수 있다.In the electronic device according to one embodiment, the distance sensor may be disposed on a side of the plurality of cameras, and the detection range may be at least partially different from the capturing range of each of the plurality of cameras.

일 실시예들에 따른 전자 장치에서, 상기 적어도 하나의 프로세서는, 상기 움직임 데이터를 기반으로, 상기 제2 영역의 내부에 위치된 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하여 상기 거리 맵을 생성하도록 설정될 수 있다.In the electronic device according to one embodiment, the at least one processor maps the distance data to at least a portion of the first area located inside the second area based on the motion data to create the distance map. It can be set to generate .

일 실시예들에 따른 전자 장치에서, 상기 적어도 하나의 프로세서는, 미리 설정된 기준을 기반으로, 상기 움직임 데이터에 따른 상기 제1 영역의 이동된 위치를 확인하도록 설정될 수 있다. 일 실시예들에 따른 적어도 하나의 프로세서는, 상기 확인한 이동된 위치를 기반으로, 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하도록 설정될 수 있다.In the electronic device according to one embodiment, the at least one processor may be set to check the moved position of the first area according to the motion data based on a preset standard. At least one processor according to one embodiment may be configured to map the distance data to at least a portion of the first area based on the confirmed moved location.

일 실시예들에 따른 전자 장치에서, 상기 거리 센서는, 상기 전자 장치의 움직임에 의해 변경되는 상기 제1 영역에 각각 대응하는 복수의 거리 데이터를 미리 설정된 주기에 기반하여 생성하도록 설정될 수 있다. 상기 적어도 하나의 프로세서는, 상기 움직임 데이터에 기반하여, 상기 거리 센서로부터 수신한 상기 복수의 거리 데이터를 상기 제2 영역에 각각 매핑하여 상기 거리 맵을 생성하도록 설정될 수 있다.In the electronic device according to one embodiment, the distance sensor may be set to generate a plurality of distance data each corresponding to the first area that changes due to movement of the electronic device based on a preset period. The at least one processor may be set to generate the distance map by mapping the plurality of distance data received from the distance sensor to the second area, based on the motion data.

일 실시예들에 따른 전자 장치에서, 상기 적어도 하나의 프로세서는, 상기 복수의 카메라들 중 제1 카메라를 통하여 프리뷰를 획득하도록 설정되고, 상기 프리뷰의 범위 이내에 상기 제2 영역이 포함될 수 있다.In the electronic device according to one embodiment, the at least one processor is set to obtain a preview through a first camera among the plurality of cameras, and the second area may be included within the range of the preview.

일 실시예들에 따른 전자 장치에서, 상기 적어도 하나의 프로세서는, 상기 결정한 카메라가 상기 복수의 카메라들 중 제2 카메라인 경우, 상기 이미지를 획득할 카메라를 상기 제1 카메라로부터 상기 제2 카메라로 전환하도록 설정될 수 있다.In the electronic device according to one embodiment, when the determined camera is a second camera among the plurality of cameras, the at least one processor switches the camera to acquire the image from the first camera to the second camera. It can be set to switch.

일 실시예들에 따른 전자 장치에서, 상기 적어도 하나의 프로세서는, 상기 거리 데이터에 미리 설정된 크기 이상의 변화가 발생하는 경우, 상기 거리 맵에서 상기 복수의 카메라 중 적어도 하나의 촬영 범위에 대응하는 거리 데이터의 존재 여부에 기반하여, 상기 전자 장치의 움직임을 유도하는 노티피케이션을 제공하도록 설정될 수 있다.In the electronic device according to one embodiment, the at least one processor, when a change of more than a preset size occurs in the distance data, displays distance data corresponding to a shooting range of at least one of the plurality of cameras in the distance map. Based on the presence or absence of , it can be set to provide a notification that induces movement of the electronic device.

일 실시예들에 따른 전자 장치의 동작 방법은, 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서로부터 거리 데이터 및 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서로부터 움직임 데이터를 수신하는 동작을 포함할 수 있다. 일 실시예들에 따른 전자 장치의 동작 방법은, 상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하는 동작을 포함할 수 있다. 일 실시예들에 따른 전자 장치의 동작 방법은, 상기 거리 맵을 기반으로, 초점 거리가 서로 상이한 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하는 동작을 포함할 수 있다.A method of operating an electronic device according to embodiments includes receiving distance data from a distance sensor that detects the distance to an object located in a first area and movement data from a motion sensor that detects movement or rotation of the electronic device. Can include actions. A method of operating an electronic device according to embodiments includes generating, based on the motion data, a distance map for a second area that includes at least a portion of the first area so that the distance data corresponds to the first area. It may include actions such as: A method of operating an electronic device according to embodiments may include determining a camera to acquire an image from among a plurality of cameras having different focal lengths based on the distance map.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 거리 센서는, 발광부에서 방출되어 상기 오브젝트에 의해 반사된 광을 수광부에서 수신함에 기반한 TOF(Time Of Flight) 방식으로, 상기 오브젝트와의 거리를 감지할 수 있다.In a method of operating an electronic device according to one embodiment, the distance sensor determines the distance to the object using a TOF (Time Of Flight) method based on receiving light emitted from a light emitter and reflected by the object at a light receiving unit. can be detected.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 움직임 센서는, 상기 전자 장치의 이동을 감지하는 가속도 센서 또는 상기 전자 장치의 회전을 감지하는 자이로 센서를 통해 상기 전자 장치의 움직임을 감지할 수 있다.In a method of operating an electronic device according to embodiments, the motion sensor may detect movement of the electronic device through an acceleration sensor that detects movement of the electronic device or a gyro sensor that detects rotation of the electronic device. there is.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 거리 센서는, 상기 복수의 카메라들의 측방에 배치되어, 감지 범위가 상기 복수의 카메라 각각의 촬영 범위와 적어도 일부 상이할 수 있다.In a method of operating an electronic device according to embodiments, the distance sensor may be disposed on a side of the plurality of cameras, and a detection range may be at least partially different from a capturing range of each of the plurality of cameras.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 제2 영역에 대한 거리 맵을 생성하는 동작의 적어도 일부로, 상기 움직임 데이터를 기반으로, 상기 제2 영역의 내부에 위치된 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하여 상기 거리 맵을 생성할 수 있다.In a method of operating an electronic device according to embodiments, at least as part of an operation of generating a distance map for the second area, based on the motion data, the first area located inside the second area The distance map may be generated by mapping the distance data to at least a portion of the distance map.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 제2 영역에 대한 거리 맵을 생성하는 동작의 적어도 일부로, 미리 설정된 기준을 기반으로, 상기 움직임 데이터에 따른 상기 제1 영역의 이동된 위치를 확인하는 동작을 포함할 수 있다. 일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 확인한 이동된 위치를 기반으로, 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하는 동작을 포함할 수 있다.In a method of operating an electronic device according to one embodiment, at least as part of an operation of generating a distance map for the second area, the moved position of the first area according to the motion data is determined based on a preset standard. May include confirmation actions. A method of operating an electronic device according to embodiments may include mapping the distance data to at least a portion of the first area based on the confirmed moved location.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 거리 데이터는, 미리 설정된 주기에 기반하여 상기 거리 센서에 의해 감지된, 상기 전자 장치의 움직임에 의해 변경되는 상기 제1 영역에 각각 대응하는 복수의 데이터일 수 있다. 일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 제2 영역에 대한 거리 맵을 생성하는 동작의 적어도 일부로, 상기 움직임 데이터에 기반하여, 상기 거리 센서로부터 수신한 상기 복수의 거리 데이터를 상기 제2 영역에 각각 매핑하여 상기 거리 맵을 생성할 수 있다.In a method of operating an electronic device according to embodiments, the distance data may include a plurality of data, each corresponding to the first area that is changed by movement of the electronic device and detected by the distance sensor based on a preset cycle. It may be data from . In a method of operating an electronic device according to embodiments, at least as part of an operation of generating a distance map for the second area, the plurality of distance data received from the distance sensor is transmitted to the second area based on the motion data. The distance map can be created by mapping each of the two areas.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 복수의 카메라들 중 제1 카메라를 통하여 프리뷰를 획득하는 동작을 더 포함할 수 있다. 일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 프리뷰의 범위 이내에 상기 제2 영역이 포함될 수 있다.A method of operating an electronic device according to embodiments may further include obtaining a preview through a first camera among the plurality of cameras. In a method of operating an electronic device according to embodiments, the second area may be included within the range of the preview.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 결정한 카메라가 상기 복수의 카메라들 중 제2 카메라인 경우, 상기 이미지를 획득할 카메라를 상기 제1 카메라로부터 상기 제2 카메라로 전환하는 동작을 더 포함할 수 있다.In a method of operating an electronic device according to embodiments, when the determined camera is a second camera among the plurality of cameras, an operation of switching the camera to acquire the image from the first camera to the second camera More may be included.

일 실시예들에 따른 전자 장치의 동작 방법에서, 상기 거리 데이터에 미리 설정된 크기 이상의 변화가 발생하는 경우, 상기 거리 맵에서 상기 복수의 카메라 중 적어도 하나의 촬영 범위에 대응하는 거리 데이터의 존재 여부에 기반하여, 상기 전자 장치의 움직임을 유도하는 노티피케이션을 제공하는 동작을 더 포함할 수 있다.In a method of operating an electronic device according to embodiments, when a change of more than a preset size occurs in the distance data, whether distance data corresponding to a shooting range of at least one of the plurality of cameras exists in the distance map is determined. Based on this, the operation of providing a notification that induces movement of the electronic device may be further included.

일 실시예에 따른 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체로서, 상기 하나 이상의 프로그램은 전자 장치의 적어도 하나의 프로세서에 의해 실행될 때, 상기 전자 장치가 제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서로부터 거리 데이터 및 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서로부터 움직임 데이터를 수신하는 프로그램을 포함할 수 있다. 일 실시예들에 따른 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체는, 상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하는 프로그램을 포함할 수 있다. 일 실시예들에 따른 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체는, 상기 거리 맵을 기반으로, 초점 거리가 서로 상이한 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하는 프로그램을 포함할 수 있다.A non-transitory computer-readable storage medium storing one or more programs according to an embodiment, wherein when the one or more programs are executed by at least one processor of an electronic device, the electronic device interacts with an object located in a first area. It may include a program that receives distance data from a distance sensor that detects the distance and movement data from a motion sensor that detects movement or rotation of the electronic device. A non-transitory computer-readable storage medium storing one or more programs according to one embodiment may include at least a portion of the first area so that the distance data corresponds to the first area based on the motion data. 2 May include a program that generates a street map for an area. A non-transitory computer-readable storage medium storing one or more programs according to embodiments may include a program for determining a camera to acquire an image among a plurality of cameras with different focal lengths based on the distance map. You can.

200 : 전자 장치
210 : 거리 센서
220 : 움직임 센서
230 : 복수의 카메라들
240 : 프로세서
250 : 디스플레이
200: electronic device
210: distance sensor
220: motion sensor
230: Multiple cameras
240: processor
250: display

Claims (20)

전자 장치에 있어서,
초점 거리가 서로 상이한 복수의 카메라들;
제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서;
상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서; 및
상기 복수의 카메라들, 상기 거리 센서 및 상기 움직임 센서와 작동적으로 연결된 적어도 하나의 프로세서를 포함하고,
상기 적어도 하나의 프로세서는:
상기 거리 센서로부터 상기 오브젝트와의 거리 데이터 및 상기 움직임 센서로부터 상기 전자 장치의 이동 또는 회전에 관련한 움직임 데이터를 수신하며,
상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하고,
상기 거리 맵을 기반으로, 상기 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하도록 설정된,
전자 장치.
In electronic devices,
A plurality of cameras with different focal lengths;
A distance sensor that detects the distance to an object located in the first area;
a motion sensor that detects movement or rotation of the electronic device; and
At least one processor operatively connected to the plurality of cameras, the distance sensor, and the motion sensor,
The at least one processor:
Receiving distance data to the object from the distance sensor and movement data related to movement or rotation of the electronic device from the motion sensor,
Based on the motion data, generate a distance map for a second area that includes at least a portion of the first area so that the distance data corresponds to the first area,
Based on the distance map, set to determine a camera to acquire an image among the plurality of cameras,
Electronic devices.
제 1 항에 있어서,
상기 거리 센서는, 발광부 및 수광부를 포함하고, 상기 발광부에서 방출되어 상기 오브젝트에 의해 반사된 광을 상기 수광부에서 수신함에 기반하여, 상기 오브젝트와의 거리를 감지하는 TOF(Time Of Flight) 방식인,
전자 장치.
According to claim 1,
The distance sensor includes a light emitting unit and a light receiving unit, and is a time of flight (TOF) method that detects the distance to the object based on receiving light emitted from the light emitting unit and reflected by the object at the light receiving unit. person,
Electronic devices.
제 1 항에 있어서,
상기 움직임 센서는, 상기 전자 장치의 이동을 감지하는 가속도 센서 또는 상기 전자 장치의 회전을 감지하는 자이로 센서를 포함하는, 전자 장치.
According to claim 1,
The motion sensor includes an acceleration sensor that detects movement of the electronic device or a gyro sensor that detects rotation of the electronic device.
제 1 항에 있어서,
상기 거리 센서는, 상기 복수의 카메라들의 측방에 배치되어, 감지 범위가 상기 복수의 카메라 각각의 촬영 범위와 적어도 일부 상이한,
전자 장치.
According to claim 1,
The distance sensor is disposed on the side of the plurality of cameras and has a detection range that is at least partially different from a shooting range of each of the plurality of cameras.
Electronic devices.
제 1 항에 있어서,
상기 적어도 하나의 프로세서는, 상기 움직임 데이터를 기반으로, 상기 제2 영역의 내부에 위치된 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하여 상기 거리 맵을 생성하도록 설정된,
전자 장치.
According to claim 1,
The at least one processor is set to generate the distance map by mapping the distance data to at least a portion of the first area located inside the second area based on the motion data,
Electronic devices.
제 5 항에 있어서,
상기 적어도 하나의 프로세서는, 미리 설정된 기준을 기반으로, 상기 움직임 데이터에 따른 상기 제1 영역의 이동된 위치를 확인하고,
상기 확인한 이동된 위치를 기반으로, 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하도록 설정된,
전자 장치.
According to claim 5,
The at least one processor determines the moved position of the first area according to the motion data based on a preset standard,
Set to map the distance data to at least a portion of the first area based on the confirmed moved location,
Electronic devices.
제 1 항에 있어서,
상기 거리 센서는, 상기 전자 장치의 움직임에 의해 변경되는 상기 제1 영역에 각각 대응하는 복수의 거리 데이터를 미리 설정된 주기에 기반하여 생성하고,
상기 적어도 하나의 프로세서는, 상기 움직임 데이터에 기반하여, 상기 거리 센서로부터 수신한 상기 복수의 거리 데이터를 상기 제2 영역에 각각 매핑하여 상기 거리 맵을 생성하도록 설정된,
전자 장치.
According to claim 1,
The distance sensor generates a plurality of distance data, each corresponding to the first area changed by movement of the electronic device, based on a preset period,
The at least one processor is set to generate the distance map by mapping the plurality of distance data received from the distance sensor to the second area based on the motion data,
Electronic devices.
제 1 항에 있어서,
상기 적어도 하나의 프로세서는, 상기 복수의 카메라들 중 제1 카메라를 통하여 프리뷰를 획득하도록 설정되고,
상기 프리뷰의 범위 이내에 상기 제2 영역이 포함된,
전자 장치.
According to claim 1,
The at least one processor is configured to obtain a preview through a first camera among the plurality of cameras,
The second area is included within the range of the preview,
Electronic devices.
제 8 항에 있어서,
상기 적어도 하나의 프로세서는, 상기 결정한 카메라가 상기 복수의 카메라들 중 제2 카메라인 경우, 상기 이미지를 획득할 카메라를 상기 제1 카메라로부터 상기 제2 카메라로 전환하도록 설정된,
전자 장치.
According to claim 8,
The at least one processor is set to switch the camera for acquiring the image from the first camera to the second camera when the determined camera is a second camera among the plurality of cameras,
Electronic devices.
제 1 항에 있어서,
상기 적어도 하나의 프로세서는, 상기 거리 데이터에 미리 설정된 크기 이상의 변화가 발생하는 경우, 상기 거리 맵에서 상기 복수의 카메라 중 적어도 하나의 촬영 범위에 대응하는 거리 데이터의 존재 여부에 기반하여, 상기 전자 장치의 움직임을 유도하는 노티피케이션을 제공하도록 설정된,
전자 장치.
According to claim 1,
The at least one processor, when a change of more than a preset size occurs in the distance data, based on the presence or absence of distance data corresponding to a shooting range of at least one of the plurality of cameras in the distance map, the electronic device Set to provide notifications that encourage movement,
Electronic devices.
전자 장치의 동작 방법에 있어서,
제1 영역에 위치된 오브젝트와의 거리를 감지하는 거리 센서로부터 거리 데이터 및 상기 전자 장치의 이동 또는 회전을 감지하는 움직임 센서로부터 움직임 데이터를 수신하는 동작;
상기 움직임 데이터를 기반으로, 상기 거리 데이터가 상기 제1 영역에 대응하도록, 상기 제1 영역을 적어도 일부 포함하는 제2 영역에 대한 거리 맵을 생성하는 동작; 및
상기 거리 맵을 기반으로, 초점 거리가 서로 상이한 복수의 카메라들 중에서 이미지를 획득할 카메라를 결정하는 동작을 포함하는,
전자 장치의 동작 방법.
In a method of operating an electronic device,
Receiving distance data from a distance sensor that detects a distance to an object located in a first area and movement data from a motion sensor that detects movement or rotation of the electronic device;
Based on the motion data, generating a distance map for a second area that includes at least a portion of the first area so that the distance data corresponds to the first area; and
Based on the distance map, determining a camera to acquire an image among a plurality of cameras with different focal lengths,
How electronic devices work.
제 11 항에 있어서,
상기 거리 센서는, 발광부에서 방출되어 상기 오브젝트에 의해 반사된 광을 수광부에서 수신함에 기반한 TOF(Time Of Flight) 방식으로, 상기 오브젝트와의 거리를 감지하는,
전자 장치의 동작 방법.
According to claim 11,
The distance sensor detects the distance to the object using a TOF (Time Of Flight) method based on receiving light emitted from a light emitter and reflected by the object at a light receiver.
How electronic devices work.
제 11 항에 있어서,
상기 움직임 센서는, 상기 전자 장치의 이동을 감지하는 가속도 센서 또는 상기 전자 장치의 회전을 감지하는 자이로 센서를 통해 상기 전자 장치의 움직임을 감지하는,
전자 장치의 동작 방법.
According to claim 11,
The motion sensor detects movement of the electronic device through an acceleration sensor that detects movement of the electronic device or a gyro sensor that detects rotation of the electronic device.
How electronic devices work.
제 11 항에 있어서,
상기 거리 센서는, 상기 복수의 카메라들의 측방에 배치되어, 감지 범위가 상기 복수의 카메라 각각의 촬영 범위와 적어도 일부 상이한,
전자 장치의 동작 방법.
According to claim 11,
The distance sensor is disposed on the side of the plurality of cameras and has a detection range that is at least partially different from a shooting range of each of the plurality of cameras.
How electronic devices work.
제 11 항에 있어서,
상기 제2 영역에 대한 거리 맵을 생성하는 동작의 적어도 일부로, 상기 움직임 데이터를 기반으로, 상기 제2 영역의 내부에 위치된 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하여 상기 거리 맵을 생성하는,
전자 장치의 동작 방법.
According to claim 11,
At least as part of the operation of generating a distance map for the second area, based on the motion data, the distance data is mapped to at least a portion of the first area located inside the second area to generate the distance map. generating,
How electronic devices work.
제 15 항에 있어서,
상기 제2 영역에 대한 거리 맵을 생성하는 동작의 적어도 일부로,
미리 설정된 기준을 기반으로, 상기 움직임 데이터에 따른 상기 제1 영역의 이동된 위치를 확인하는 동작, 및
상기 확인한 이동된 위치를 기반으로, 상기 제1 영역의 적어도 일부에 상기 거리 데이터를 매핑하는 동작을 포함하는,
전자 장치의 동작 방법.
According to claim 15,
At least as part of the operation of generating a distance map for the second area,
An operation of confirming the moved position of the first area according to the motion data based on a preset standard, and
Comprising the operation of mapping the distance data to at least a portion of the first area based on the confirmed moved location,
How electronic devices work.
제 11 항에 있어서,
상기 거리 데이터는, 미리 설정된 주기에 기반하여 상기 거리 센서에 의해 감지된, 상기 전자 장치의 움직임에 의해 변경되는 상기 제1 영역에 각각 대응하는 복수의 데이터이고,
상기 제2 영역에 대한 거리 맵을 생성하는 동작의 적어도 일부로, 상기 움직임 데이터에 기반하여, 상기 거리 센서로부터 수신한 상기 복수의 거리 데이터를 상기 제2 영역에 각각 매핑하여 상기 거리 맵을 생성하는,
전자 장치의 동작 방법.
According to claim 11,
The distance data is a plurality of data each corresponding to the first area detected by the distance sensor based on a preset cycle and changed by movement of the electronic device,
At least as part of the operation of generating a distance map for the second area, generating the distance map by mapping the plurality of distance data received from the distance sensor to the second area based on the motion data, respectively.
How electronic devices work.
제 11 항에 있어서,
상기 복수의 카메라들 중 제1 카메라를 통하여 프리뷰를 획득하는 동작을 더 포함하고,
상기 프리뷰의 범위 이내에 상기 제2 영역이 포함된,
전자 장치의 동작 방법.
According to claim 11,
Further comprising obtaining a preview through a first camera among the plurality of cameras,
The second area is included within the range of the preview,
How electronic devices work.
제 18 항에 있어서,
상기 결정한 카메라가 상기 복수의 카메라들 중 제2 카메라인 경우, 상기 이미지를 획득할 카메라를 상기 제1 카메라로부터 상기 제2 카메라로 전환하는 동작을 더 포함하는,
전자 장치의 동작 방법.
According to claim 18,
When the determined camera is a second camera among the plurality of cameras, further comprising switching the camera to acquire the image from the first camera to the second camera,
How electronic devices work.
제 11 항에 있어서,
상기 거리 데이터에 미리 설정된 크기 이상의 변화가 발생하는 경우, 상기 거리 맵에서 상기 복수의 카메라 중 적어도 하나의 촬영 범위에 대응하는 거리 데이터의 존재 여부에 기반하여, 상기 전자 장치의 움직임을 유도하는 노티피케이션을 제공하는 동작을 더 포함하는,
전자 장치의 동작 방법.
According to claim 11,
When a change of more than a preset size occurs in the distance data, a notification that induces movement of the electronic device based on the presence or absence of distance data corresponding to a shooting range of at least one of the plurality of cameras in the distance map Further comprising the operation of providing a service,
How electronic devices work.
KR1020220086516A 2022-06-22 2022-07-13 Electronic device including camera, and method of operation thereof KR20230175066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/005603 WO2023249231A1 (en) 2022-06-22 2023-04-25 Electronic device comprising camera, and operating method therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20220076312 2022-06-22
KR1020220076312 2022-06-22

Publications (1)

Publication Number Publication Date
KR20230175066A true KR20230175066A (en) 2023-12-29

Family

ID=89334363

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220086516A KR20230175066A (en) 2022-06-22 2022-07-13 Electronic device including camera, and method of operation thereof

Country Status (2)

Country Link
KR (1) KR20230175066A (en)
WO (1) WO2023249231A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102085766B1 (en) * 2013-05-30 2020-04-14 삼성전자 주식회사 Method and Apparatus for controlling Auto Focus of an photographing device
KR102371634B1 (en) * 2015-09-10 2022-03-08 엘지이노텍 주식회사 depth extraction method for stereo camera
US10147216B1 (en) * 2017-11-01 2018-12-04 Essential Products, Inc. Intelligent camera
KR20200100498A (en) * 2019-02-18 2020-08-26 삼성전자주식회사 An electronic device and method of controlling auto focusing thereof
KR20220072616A (en) * 2020-11-25 2022-06-02 삼성전자주식회사 Electronic devices including multiple cameras and methods of controlling the electronic devices

Also Published As

Publication number Publication date
WO2023249231A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
KR102289369B1 (en) Electronic device and method for displaying images on a flexible display
KR20220053214A (en) Electronic device and method for supporting zoom functionality
US20230007149A1 (en) Electronic device including camera module and method for operating the electronic device
US20240111172A1 (en) Camera module including image stabilization assembly and electronic device including the camera module
KR20230175066A (en) Electronic device including camera, and method of operation thereof
KR20220090716A (en) Electronic device, and method for grouping external devices by space in electronic device
KR20220112952A (en) Electronic device, and method for mataining sho0ting composition in electronic device
KR20220026774A (en) Electronic device for adjusting position of external device and operating method thereof
EP4274219A1 (en) Electronic device comprising plurality of lenses, and method for controlling same
KR20240079123A (en) An electronic device for determining view area of an image and method thereof
US20240163543A1 (en) Electronic device comprising camera and method for operating electronic device
US20240054740A1 (en) Augmented reality device and electronic device interacting with augmented reality device
US20240236491A1 (en) Method for correcting shaking during shooting and electronic device therefor
US20230396885A1 (en) Electronic device including camera module and electronic device operating method
US20230360245A1 (en) Measurement method using ar, and electronic device
US20230236321A1 (en) Electronic device for obtaining distance information and method for controlling the same
US20230022380A1 (en) Electronic device and method for image stabilization by considering antenna performance
KR20230060427A (en) Electronic device for controlling external electronic device and operating method thereof
KR20240014407A (en) Electronic device and method comprising camera
KR20230086256A (en) Electronic device and method of operating the same
KR20230114658A (en) Electronic device with flexible display
KR20220064269A (en) electronic device and method for displaying user interface
KR20230151857A (en) Electronic device and method for using camera with wearing of lens accessory
KR20230051410A (en) Electronic device and method for providing location-based services
KR20240047265A (en) Method for controlling camera and electronic device for supporting the same