KR20200110906A - Electronic device for auto focusing function and operating method thereof - Google Patents
Electronic device for auto focusing function and operating method thereof Download PDFInfo
- Publication number
- KR20200110906A KR20200110906A KR1020190030396A KR20190030396A KR20200110906A KR 20200110906 A KR20200110906 A KR 20200110906A KR 1020190030396 A KR1020190030396 A KR 1020190030396A KR 20190030396 A KR20190030396 A KR 20190030396A KR 20200110906 A KR20200110906 A KR 20200110906A
- Authority
- KR
- South Korea
- Prior art keywords
- image
- electronic device
- processor
- focus
- focus lens
- Prior art date
Links
Images
Classifications
-
- H04N5/232127—
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
- H04N23/685—Vibration or motion blur correction performed by mechanical compensation
- H04N23/687—Vibration or motion blur correction performed by mechanical compensation by shifting the lens or sensor position
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
- H04N23/673—Focus control based on electronic image sensor signals based on contrast or high frequency components of image signals, e.g. hill climbing method
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS 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/00—Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
- G03B13/32—Means for focusing
- G03B13/34—Power focusing
- G03B13/36—Autofocus systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
- H04N23/675—Focus control based on electronic image sensor signals comprising setting of focusing regions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
- H04N23/6811—Motion detection based on the image signal
-
- H04N5/23293—
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
Description
본 발명의 다양한 실시 예들은 자동 초점 조절 기능을 제공하기 위한 전자 장치에 관한 것으로, 구체적으로, 자동 초점 조절 기능 수행 중 발생되는 워블링(Wobbling) 현상을 제거하기 위한 전자 장치 및 그 동작 방법에 관한 것이다.Various embodiments of the present invention relate to an electronic device for providing an automatic focus adjustment function, and more particularly, to an electronic device for removing a wobbling phenomenon that occurs while performing an automatic focus adjustment function, and an operating method thereof. will be.
최근 들어, 디지털 카메라, 디지털 캠코더, 또는 스마트 폰과 같이 카메라가 장착된 전자 장치의 보급이 활발히 이루어지고 있다. 이러한 카메라가 장착된 전자 장치는 촬영 기능을 제공할 수 있다. 예를 들어, 전자 장치는 카메라로부터 실시간으로 획득한 영상을 이용하여 디스플레이에 프리뷰 화면을 출력하고 촬영 입력이 수신되면 카메라로부터 촬영 영상을 획득할 수 있다.In recent years, digital cameras, digital camcorders, and electronic devices equipped with cameras, such as smart phones, have been actively spreading. An electronic device equipped with such a camera may provide a photographing function. For example, the electronic device may output a preview screen on a display using an image acquired in real time from a camera and obtain a captured image from the camera when a capturing input is received.
또한, 전자 장치는 피사체에 대한 초점을 자동으로 맞추는 자동 초점 기능을 제공한다. In addition, the electronic device provides an auto focus function that automatically focuses on a subject.
일반적으로, 자동 초점 기능은 카메라에 포함된 렌즈를 앞뒤로(back and forth) 이동시켜 피사체에 대해 초점을 맞추는 기능이며, 전자 장치는 자동 초점 기능이 실행되는 동안 카메라를 통해 수신되는 이미지를 표시 장치를 통해 프리뷰 이미지 또는 라이브 뷰로 출력할 수 있다. 하지만, 자동 초점 기능이 이루어지는 도중에는 초점 렌즈의 잦은 이동으로 인해, 표시 장치에 출력되는 이미지의 시야(field of view)이 수시로 흔들리는 현상(예: 워블링(Wobbling) 현상)이 발생되는 문제점이 존재한다. In general, the auto focus function is a function that focuses on a subject by moving the lens included in the camera back and forth, and the electronic device displays an image received through the camera while the auto focus function is being executed. It can be output as a preview image or live view. However, there is a problem that the field of view of the image output to the display device is frequently shaken (e.g., wobbling) due to frequent movement of the focus lens during the auto focus function. .
따라서, 본 발명의 다양한 실시 예들은 전자 장치에서 이미지의 흔들림 현상을 일으키지 않고 자동 초점을 수행하기 위한 전자 장치 및 그의 동작 방법을 제공하기 위한 것이다.Accordingly, various embodiments of the present disclosure are directed to providing an electronic device and a method of operating the same for performing autofocus without causing image shaking in an electronic device.
본 문서에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in this document are not limited to the technical problems mentioned above, and other technical problems that are not mentioned can be clearly understood by those of ordinary skill in the technical field to which the present invention belongs from the following description. There will be.
본 발명의 다양한 실시 예들에 따른 전자 장치는, 초점 렌즈를 포함하는 카메라 모듈, 표시 장치 및 프로세서를 포함하며, 상기 프로세서는, 상기 초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하도록 상기 카메라 모듈을 제어하고, 상기 제 1 이미지를 출력하도록 상기 표시 장치를 제어하고, 상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하도록 상기 카메라 모듈을 제어하고, 상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하고, 상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하도록 제어할 수 있다.An electronic device according to various embodiments of the present disclosure includes a camera module including a focus lens, a display device, and a processor, wherein the processor includes the camera module to acquire a first image at a first position of the focus lens. Control, control the display device to output the first image, control the camera module to acquire a second image at a second position of the focus lens while the first image is output, and the first Based on the image and the second image, a defocus amount for the focus lens at the second position may be calculated, and the on-focus area may be detected based on the calculated defocus amount.
본 발명의 다양한 실시 예들에 따른 전자 장치의 동작 방법은, 초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하는 동작, 상기 제 1 이미지를 표시 장치를 통해 출력하는 동작, 상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하는 동작, 상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하는 동작 및, 상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하는 동작을 포함할 수 있다.An operation method of an electronic device according to various embodiments of the present disclosure includes an operation of acquiring a first image at a first position of a focus lens, an operation of outputting the first image through a display device, and an operation of outputting the first image. During the operation, an operation of acquiring a second image at a second position of the focus lens, an operation of calculating a defocus amount for the focus lens at the second position based on the first image and the second image, and the calculation It may include an operation of detecting an on-focus area based on the defocused amount.
본 발명의 다양한 실시 예들에 따른 컴퓨터 판독 가능한 기록 매체는 초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하는 동작, 상기 제 1 이미지를 표시 장치를 통해 출력하는 동작, 상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하는 동작, 상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하는 동작 및, 상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하는 동작을 실행시키기 위한 프로그램을 저장할 수 있다.The computer-readable recording medium according to various embodiments of the present disclosure includes an operation of acquiring a first image at a first position of a focus lens, an operation of outputting the first image through a display device, and an operation of outputting the first image. , An operation of acquiring a second image at a second position of the focus lens, an operation of calculating a defocus amount for the focus lens at the second position based on the first image and the second image, and the calculated A program for executing an operation of detecting an on-focus area based on the amount of defocus can be stored.
다양한 실시 예들에 따른 전자 장치는 자동 초점 기능의 초기 동작으로 탐색 위치가 결정될 때까지 최초 획득된 이미지를 출력함으로써, 이미지 흔들림(wobbling) 현상이 발생되는 것을 방지하는 효과를 제공할 수 있다. The electronic device according to various embodiments of the present disclosure may provide an effect of preventing image wobbling from occurring by outputting an image initially acquired until a search position is determined by an initial operation of an auto focus function.
본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtainable in the present invention are not limited to the above-mentioned effects, and other effects not mentioned can be clearly understood by those of ordinary skill in the technical field to which the present invention belongs from the following description. will be.
도 1은, 다양한 실시 예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는, 다양한 실시 예들에 따른, 카메라 모듈을 예시하는 블럭도이다.
도 3은 본 발명의 다양한 실시 예에 따른 전자 장치의 자동 초점 동작을 설명하기 위한 도면이다.
도 4는 본 발명의 다양한 실시 예에 따른 전자 장치에서 자동 초점 기능을 제공하기 위한 흐름도이다.
도 5a는 일반적인 전자 장치의 자동 초점 기능을 설명하기 위한 예시도이다.
도 5b는 본 발명의 다양한 실시 예에 따른 전자 장치의 자동 초점 기능을 설명하기 위한 예시도이다.
도 6은 본 발명의 다양한 실시 예에 따른 전자 장치에서 디포커스 량을 산출하기 위한 흐름도이다.
도 7은 본 발명의 다양한 실시 예에 따른 전자 장치에서 온 포커스 영역을 검출하기 위한 흐름도이다.
도 8은 본 발명의 다양한 실시 예에 따른 전자 장치에서 온 포커스 영역을 검출하는 동작을 설명하기 위한 예시도이다.
도 9는 본 발명의 다양한 실시 예에 따른 전자 장치에서 탐색 위치에 기초하여 초점 렌즈를 이동시키기 위한 흐름도이다.
도 10a 내지 도 10c는 본 발명의 다양한 실시 예에 따른 전자 장치에서 탐색 위치에 기초하여 초점 렌즈를 이동시키기 위한 동작을 설명하기 위한 예시도이다.
도 11은 본 발명의 다양한 실시 예에 따른 전자 장치에서 제 2 이미지에 기초하여 화면을 갱신하기 위한 흐름도이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2 is a block diagram illustrating a camera module, according to various embodiments.
3 is a diagram illustrating an auto focus operation of an electronic device according to various embodiments of the present disclosure.
4 is a flowchart for providing an auto focus function in an electronic device according to various embodiments of the present disclosure.
5A is an exemplary diagram for describing an auto focus function of a general electronic device.
5B is an exemplary diagram illustrating an auto focus function of an electronic device according to various embodiments of the present disclosure.
6 is a flowchart for calculating a defocus amount in an electronic device according to various embodiments of the present disclosure.
7 is a flowchart for detecting an on focus area in an electronic device according to various embodiments of the present disclosure.
8 is an exemplary diagram for describing an operation of detecting an on focus area in an electronic device according to various embodiments of the present disclosure.
9 is a flowchart for moving a focus lens based on a search position in an electronic device according to various embodiments of the present disclosure.
10A to 10C are exemplary diagrams for explaining an operation of moving a focus lens based on a search position in an electronic device according to various embodiments of the present disclosure.
11 is a flowchart for updating a screen based on a second image in an electronic device according to various embodiments of the present disclosure.
In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar components.
이하 본 발명의 다양한 실시 예를 첨부된 도면을 참조하여 상세히 설명한다. 그리고, 본 발명의 실시 예를 설명함에 있어서, 관련된 공지기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단된 경우 그 상세한 설명은 생략한다. 그리고 후술되는 용어들은 본 발명의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.Hereinafter, various embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, in describing an embodiment of the present invention, when it is determined that a detailed description of a related known function or configuration may unnecessarily obscure the subject matter of the present invention, a detailed description thereof will be omitted. In addition, terms to be described later are terms defined in consideration of the functions of the present invention, which may vary according to the intention or custom of users or operators. Therefore, the definition should be made based on the contents throughout this specification.
도 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), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시 예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다1 is a block diagram of an electronic device 101 in a
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(123)은 메인 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. The
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The
입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(150)은, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The
음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The
표시 장치(160)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 표시 장치(160)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다. The display device 160 may visually provide information to the outside of the electronic device 101 (eg, a user). The display device 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to an embodiment, the display device 160 may include a touch circuitry set to sense a touch, or a sensor circuit (eg, a pressure sensor) set to measure the strength of a force generated by the touch. have.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(170)은, 입력 장치(150)를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.The
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The
인터페이스(177)는 전자 장치(101)이 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(178)은, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The
배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg,
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and signals ( 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)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external
도 2는, 다양한 실시 예들에 따른, 카메라 모듈(180)을 예시하는 블럭도(200)이다. 도 2를 참조하면, 카메라 모듈(180)은 렌즈 어셈블리(210), 플래쉬(220), 이미지 센서(230), 이미지 스태빌라이저(240), 메모리(250)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(260)를 포함할 수 있다. 렌즈 어셈블리(210)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(210)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 복수의 렌즈 어셈블리(210)들을 포함할 수 있다. 이런 경우, 카메라 모듈(180)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)를 형성할 수 있다. 복수의 렌즈 어셈블리(210)들 중 일부는 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 어셈블리의 렌즈 속성들과 다른 하나 이상의 렌즈 속성들을 가질 수 있다. 렌즈 어셈블리(210)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다. 2 is a block diagram 200 illustrating a
플래쉬(220)는 피사체로부터 방출 또는 반사되는 빛을 강화하기 위하여 사용되는 빛을 방출할 수 있다. 일 실시 예에 따르면, 플래쉬(220)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다. 이미지 센서(230)는 피사체로부터 방출 또는 반사되어 렌즈 어셈블리(210)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일 실시 예에 따르면, 이미지 센서(230)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(230)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서를 이용하여 구현될 수 있다.The flash 220 may emit light used to enhance light emitted or reflected from a subject. According to an embodiment, the flash 220 may include one or more light emitting diodes (eg, red-green-blue (RGB) LED, white LED, infrared LED, or ultraviolet LED), or a xenon lamp. The image sensor 230 may acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the
이미지 스태빌라이저(240)는 카메라 모듈(180) 또는 이를 포함하는 전자 장치(101)의 움직임에 반응하여, 렌즈 어셈블리(210)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(230)를 특정한 방향으로 움직이거나 이미지 센서(230)의 동작 특성을 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 이는 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향의 적어도 일부를 보상하게 해 준다. 일 실시 예에 따르면, 이미지 스태빌라이저(240)는, 일 실시 예에 따르면, 이미지 스태빌라이저(240)은 카메라 모듈(180)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 카메라 모듈(180) 또는 전자 장치(101)의 그런 움직임을 감지할 수 있다. 일 실시 예에 따르면, 이미지 스태빌라이저(240)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있다. 메모리(250)는 이미지 센서(230)을 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: Bayer-patterned 이미지 또는 높은 해상도의 이미지)는 메모리(250)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 표시 장치(160)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(250)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(260)에 의해 획득되어 처리될 수 있다. 일 실시 예에 따르면, 메모리(250)는 메모리(130)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.The image stabilizer 240 may move at least one lens or image sensor 230 included in the
이미지 시그널 프로세서(260)는 이미지 센서(230)을 통하여 획득된 이미지 또는 메모리(250)에 저장된 이미지에 대하여 하나 이상의 이미지 처리들을 수행할 수 있다. 상기 하나 이상의 이미지 처리들은, 예를 들면, 깊이 지도(depth map) 생성, 3차원 모델링, 파노라마 생성, 특징점 추출, 이미지 합성, 또는 이미지 보상(예: 노이즈 감소, 해상도 조정, 밝기 조정, 블러링(blurring), 샤프닝(sharpening), 또는 소프트닝(softening)을 포함할 수 있다. 추가적으로 또는 대체적으로, 이미지 시그널 프로세서(260)는 카메라 모듈(180)에 포함된 구성 요소들 중 적어도 하나(예: 이미지 센서(230))에 대한 제어(예: 노출 시간 제어, 또는 리드 아웃 타이밍 제어 등)를 수행할 수 있다. 이미지 시그널 프로세서(260)에 의해 처리된 이미지는 추가 처리를 위하여 메모리(250)에 다시 저장 되거나 카메라 모듈(180)의 외부 구성 요소(예: 메모리(130), 표시 장치(160), 전자 장치(102), 전자 장치(104), 또는 서버(108))로 제공될 수 있다. 일 실시 예에 따르면, 이미지 시그널 프로세서(260)는 프로세서(120)의 적어도 일부로 구성되거나, 프로세서(120)와 독립적으로 운영되는 별도의 프로세서로 구성될 수 있다. 이미지 시그널 프로세서(260)이 프로세서(120)과 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(260)에 의해 처리된 적어도 하나의 이미지는 프로세서(120)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 표시 장치(160)를 통해 표시될 수 있다. The image signal processor 260 may perform one or more image processing on an image acquired through the image sensor 230 or an image stored in the memory 250. The one or more image processes may be, for example, depth map generation, 3D modeling, panorama generation, feature point extraction, image synthesis, or image compensation (e.g. noise reduction, resolution adjustment, brightness adjustment, blurring ( blurring), sharpening, or softening In addition or alternatively, the image signal processor 260 includes at least one of the components included in the camera module 180 (eg, an image sensor). Control (eg, exposure time control, read-out timing control, etc.) for (230) The image processed by the image signal processor 260 is stored again in the memory 250 for further processing. Alternatively, it may be provided as an external component of the camera module 180 (for example, the memory 130, the display device 160, the
일 실시 예에 따르면, 전자 장치(101)는 각각 다른 속성 또는 기능을 가진 복수의 카메라 모듈(180)들을 포함할 수 있다. 이런 경우, 예를 들면, 상기 복수의 카메라 모듈(180)들 중 적어도 하나는 광각 카메라이고, 적어도 다른 하나는 망원 카메라일 수 있다. 유사하게, 상기 복수의 카메라 모듈(180)들 중 적어도 하나는 전면 카메라이고, 적어도 다른 하나는 후면 카메라일 수 있다.According to an embodiment, the electronic device 101 may include a plurality of
도 3은 본 발명의 다양한 실시 예에 따른 전자 장치의 자동 초점 동작을 설명하기 위한 도면(300)이다. 3 is a diagram 300 illustrating an autofocus operation of an electronic device according to various embodiments of the present disclosure.
도 3을 참조하면, 전자 장치는 도 1에 도시된 전자 장치(101)에 포함된 적어도 일부 구성 요소를 포함할 수 있다. 일 실시 예에 따르면, 전자 장치는 도시된 바와 같이, 카메라 모듈(180), 프로세서(120) 및 표시 장치(160)를 포함할 수 있다. Referring to FIG. 3, the electronic device may include at least some components included in the electronic device 101 illustrated in FIG. 1. According to an embodiment, as illustrated, the electronic device may include a
다양한 실시 예에 따르면, 카메라 모듈(180)은 초점 렌즈(310)와 구동부(312)를 포함할 수 있다. According to various embodiments, the
초점 렌즈(310)는, 도 2를 통해 전술한 바와 같이, 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 일 실시 예에 따르면, 초점 렌즈(310)는 위치가 조절됨으로써 렌즈 어셈블리(예: 도 2의 렌즈 어셈블리(210)의 초점을 조절할 수 있다. 예를 들어, 초점 렌즈(310)는 온 포커스(on-focus) 영역으로 이동될 수 있다. The focus lens 310 may collect light emitted from a subject to be imaged, as described above with reference to FIG. 2. According to an embodiment, the focus lens 310 may adjust the focus of the lens assembly (eg, the
구동부(312)는 초점 렌즈(310)를 구동시킬 수 있다. 일 실시 예에 따르면, 구동부(312)는 온 포커스 상태가 되도록 초점 렌즈(310)를 온 포커스 영역으로 이동시킬 수 있다. 예를 들어, 구동부(312)는 서보 모터(servo motor) 또는 초음파 모터를 포함할 수 있으며, 이러한 구동부(312)는 자동 초점 모터 등으로 참조될 수 있다. 그러나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 일 실시 예로, 구동부(312)는 초점 렌즈(310)를 온 포커스 영역으로 이동시킬 수 있는 다양한 종류의 자동 초점 모터로 구성될 수도 있다.The driving unit 312 may drive the focus lens 310. According to an embodiment, the driving unit 312 may move the focus lens 310 to the on focus area so as to be in the on focus state. For example, the driving unit 312 may include a servo motor or an ultrasonic motor, and the driving unit 312 may be referred to as an auto focus motor or the like. However, this is only exemplary, and embodiments of the present invention are not limited thereto. As an example, the driving unit 312 may be configured with various types of auto focus motors capable of moving the focus lens 310 to the on focus area.
다양한 실시 예에 따르면, 프로세서(120)는 이미지 분석부(320), 디포커스(defocus) 량 산출부(322) 및 출력 제어부(320)를 포함할 수 있다. According to various embodiments, the
프로세서(120)는 자동 초점 기능을 수행하여 온 포커스 이미지를 생성할 수 있다. 온 포커스 이미지는 피사체에 초점이 맞춰진 이미지일 수 있다. 일 실시 예에 따르면, 자동 초점 기능은 탐색 위치 결정 동작과 온 포커스 영역 검출 동작을 포함할 수 있다. 탐색 위치 결정 동작은 온 포커스 영역 검출 동작의 시작 위치를 결정하는 동작일 수 있다. 또한, 온 포커스 영역 검출 동작은 탐색 위치를 기준으로 초점 렌즈(310)를 단계적으로 이동시켜 온 포커스 영역으로 위치시키는 동작일 수 있다. 전술한 탐색 위치 결정 동작 및 온 포커스 영역 검출 동작에 대하여는 다양한 명칭으로 지칭될 수도 있다. The
다양한 실시 예에 따르면, 프로세서(120)는 다양한 공지의 기술을 이용하여 탐색 위치 결정 동작을 수행할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 초점 렌즈(310)의 디포커스 량에 기초하여 탐색 위치를 결정할 수 있다. 디포커스 량은 초점 렌즈(310)가 온 포커스 영역에서 벗어난 정도를 나타내는 값일 수 있다. 예를 들어, 프로세서(120)의 이미지 분석부(320)는 서로 초점이 다른 제 1 이미지의 적어도 일부와 제 2 이미지의 적어도 일부에 대한 주파수 분석을 통해 포커스 신호 값을 산출하고, 프로세서(120)의 디포커스 량 산출부(322)는 포커스 신호 값에 기초하여 디포커스 량을 산출할 수 있다. 포커스 신호 값은 제 1 이미지(또는 제 1 이미지의 일부)와 제 2 이미지(또는 제 2 이미지의 일부) 간의 상흐림(blur) 량과 연관될 수 있다. 그러나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 예를 들어, 프로세서(120)는 제 1 이미지와 제 2 이미지간의 대비(contrast), 제 1 이미지와 제 2 이미지 간의 위상차(phase difference) 등을 포커스 신호 값으로 사용할 수도 있다. According to various embodiments, the
일 실시 예에 따르면, 초점 렌즈(310)에 대한 디포커스 량이 산출되면, 프로세서(120)는 디포커스 량에 기초하여 온 포커스 영역의 대략적인 위치를 예측할 수 있으며, 이를 기초로 하여 초점 렌즈(310)의 이동 방향과 이동 량을 판단할 수 있다. 예를 들어, 프로세서(120)는, 초점 렌즈(310)가 온 포커스 영역으로부터 기준 범위 이상 벗어난 경우, 초점 렌즈(310)의 현재 위치로부터 초점 영역 방향으로 제 1 거리만큼 이격된 위치를 탐색 위치로 결정할 수 있다. 다른 예로, 프로세서(120)는, 초점 렌즈(310)가 온 포커스 영역으로부터 기준 범위를 벗어나지 않는 경우, 초점 렌즈(310)의 현재 위치로부터 초점 영역 방향으로 제 1 거리보다 짧은 제 2 거리만큼 이격된 위치를 탐색 위치로 결정할 수 있다. 본 실시 예에서는 디포커스 량에 기초하여 초점 렌즈(310)의 이동 방향 및 위치가 변경되는 것으로 설명하였으나, 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 일 실시 예로, 프로세서(120)는 디포커스 량에 기초하여 초점 렌즈(310)의 이동 속도도 조절할 수도 있다. 예를 들어, 프로세서(120)는 초점 렌즈(310)가 온 포커스 영역으로부터 기준 범위 이상 벗어난 경우, 제 1 속도로 초점 렌즈(310)를 탐색 위치로 이동시킬 수 있다. 다른 예로, 프로세서(120)는 초점 렌즈(310)가 온 포커스 영역으로부터 기준 범위를 벗어나지 않는 경우, 제 1 속도보다 느린 제 2 속도로 초점 렌즈(310)를 탐색 위치로 이동시킬 수도 있다.According to an embodiment, when the amount of defocus for the focus lens 310 is calculated, the
다양한 실시 예에 따르면, 프로세서(120)는 탐색 위치를 결정하는 동안, 제 2 이미지의 출력을 제한할 수 있다. 일 실시 예에 따르면, 프로세서(120)의 출력 제어부(324)는, 탐색 위치를 결정하는 동안, 초점 렌즈(310)가 제 1 위치에 위치한 상태에서 획득된 제 1 이미지가 표시 장치(160)에 출력되도록 처리할 수 있다. 예를 들어, 출력 제어부(324)는, 제 1 위치의 초점 렌즈(310)가 온 포커스 영역으로부터 멀어지는 반대 방향의 제 2 위치로 이동하는 경우에도, 제 2 이미지 대신에 제 1 이미지를 출력할 수 있다. 이로 인하여, 초점 렌즈(310)의 위치 변동으로 배율이 변하는 이미지가 출력되는 것을 방지하고, 이로 인하여 표시 장치(160)에 출력되는 이미지가 흔들리는 워블링 현상을 제거하는 효과를 제공할 수 있다.According to various embodiments, the
다양한 실시 예에 따르면, 프로세서(120)는, 전술한 탐색 위치 결정 동작이 완료되면, 결정된 탐색 위치에 기초하여 온 포커스 영역을 검출할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 제 2 위치의 초점 렌즈(310)를 단계적으로 이동시키면서 초점 렌즈(310)가 온 포커스 영역에 근접하였는지를 판단할 수 있다. 예를 들어, 프로세서(120)는 초점 렌즈(310)가 이동된 위치에서 획득되는 이미지에 대한 포커스 신호 값(예: 콘트라스트 값)을 분석하고, 최대 포커스 신호 값이 측정되는 경우 온 포커스 영역에 근접하였다고 판단할 수 있다. According to various embodiments of the present disclosure, when the above-described search position determining operation is completed, the
다양한 실시 예에 따르면, 프로세서(120)는 온 포커스 영역 검출 동작 수행 시, 탐색 위치 결정 동작에서 획득된 이미지를 출력할 수도 있다. 일 실시 예에 따르면, 프로세서(120)의 출력 제어부(324)는 초점 렌즈(310)가 제 2 위치에서 탐색 시작 위치인 제 3 위치로 이동하는 동안 제 2 위치에서 획득된 제 2 이미지가 표시 장치(160)를 통해 출력되도록 처리할 수 있다. 이로 인하여, 도9, 도 10a 내지 도 10c 및 도 11을 통해 후술하는 바와 같이, 사용자가 체감하는 이미지의 배율 변화를 감소시킬 수 있다. According to various embodiments of the present disclosure, when the on-focus area detection operation is performed, the
전술한 실시 예에서는 카메라 모듈(180)과 분리된 프로세서(120)에 의해 자동 초점 기능이 수행되는 구성에 대하여 설명하였다. 그러나 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 일 실시 예로, 전자 장치의 자동 초점 기능은 카메라 모듈(180)에 포함된 프로세서(예: 도 2의 이미지 시그널 프로세서(260))에 의해 수행될 수도 있다.In the above-described embodiment, a configuration in which the auto focus function is performed by the
다양한 실시 예에 따른 전자 장치는 초점 렌즈를 포함하는 카메라 모듈, 표시 장치 및 프로세서를 포함하며, 상기 프로세서는, 상기 초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하도록 상기 카메라 모듈을 제어하고, 상기 제 1 이미지를 출력하도록 상기 표시 장치를 제어하고, 상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하도록 상기 카메라 모듈을 제어하고, 상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하고, 상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하도록 제어할 수 있다.An electronic device according to various embodiments of the present disclosure includes a camera module including a focus lens, a display device, and a processor, wherein the processor controls the camera module to acquire a first image at a first position of the focus lens, and Controls the display device to output a first image, controls the camera module to acquire a second image at a second position of the focus lens while the first image is output, and controls the first image and the
다양한 실시 예에 따르면, 상기 프로세서는, 상기 디포커스 량이 산출되기 전까지 상기 제 2 이미지의 출력이 제한되도록 상기 표시 장치를 제어할 수 있다.According to various embodiments of the present disclosure, the processor may control the display device to limit the output of the second image until the amount of defocus is calculated.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 디포커스 량이 산출되는 것에 대응하여, 상기 초점 렌즈의 제 3 위치에서 제 3 이미지를 획득하도록 상기 카메라 모듈을 제어하고, 상기 제 1 이미지를 상기 제 3 이미지로 갱신하도록 상기 표시 장치를 제어할 수 있다.According to various embodiments, the processor controls the camera module to acquire a third image at a third position of the focus lens in response to the calculation of the defocus amount, and converts the first image to the third image. The display device can be controlled to update to.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 제 3 이미지로 갱신되기 전에, 상기 제 2 이미지를 출력하도록 상기 표시 장치를 제어할 수 있다.According to various embodiments of the present disclosure, the processor may control the display device to output the second image before being updated to the third image.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 가까워지는 제 1 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하도록 상기 표시 장치를 제어할 수 있다.According to various embodiments, the processor outputs the second image before being updated to the third image when the second position is in a first direction closer to the on focus area based on the first position. The display device can be controlled so as to be performed.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 이상 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하도록 상기 표시 장치를 제어할 수 있다.According to various embodiments of the present disclosure, when the focus lens moves more than a reference distance based on the second position in the first direction, the processor displays the display to output the second image before being updated to the third image. You can control the device.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 미만 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하도록 상기 표시 장치를 제어할 수 있다.According to various embodiments of the present disclosure, when the focus lens moves less than a reference distance based on the second position in the first direction, the processor is configured to maintain the output of the first image before being updated to the third image. The display device can be controlled.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 멀어지는 제 2 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하도록 상기 표시 장치를 제어할 수 있다.According to various embodiments of the present disclosure, when the second position is in a second direction away from the on-focus area based on the first position, the processor may output the first image before being updated to the third image. The display device can be controlled to hold.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 제 3 이미지의 콘트라스트에 기초하여 상기 온 포커스 영역을 검출하도록 제어할 수 있다.According to various embodiments of the present disclosure, the processor may control to detect the on focus area based on the contrast of the third image.
다양한 실시 예에 따르면, 상기 프로세서는, 상기 제 1 이미지와 상기 제 2 이미지 간의 상흐림(blur)에 기초하여 상기 디포커스 량을 산출하도록 제어할 수 있다.According to various embodiments of the present disclosure, the processor may control to calculate the amount of defocus based on a blur between the first image and the second image.
도 4는 본 발명의 다양한 실시 예에 따른 전자 장치에서 자동 초점 기능을 제공하기 위한 흐름도(400)이다. 이하 실시 예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 4 is a
도 4를 참조하면, 다양한 실시 예에 따른, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 410에서, 디포커스 량 산출을 위한 제 1 이미지를 획득하고, 획득된 제 1 이미지를 표시 장치(160)에 출력할 수 있다. 제 1 이미지는 초점 렌즈(예: 도 3의 초점 렌즈(310))가 제 1 위치에 위치한 상태에서 획득된 이미지일 수 있다. 일 실시 예에 따르면, 프로세서(120)는 제 1 이미지가 획득되도록 카메라 모듈(예: 도 3의 카메라 모듈(180))을 제어할 수 있다.Referring to FIG. 4, according to various embodiments, the electronic device 300 (eg, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 420에서, 디포커스 량 산출을 위한 제 2 이미지를 획득할 수 있다. 제 2 이미지는 제 1 위치에 위치한 초점 렌즈(310)가 제 2 위치로 이동된 상태에서 획득된 이미지일 수 있다. 예를 들어, 프로세서(120)는, 카메라 모듈을 제어하여, 초점 렌즈(310)의 위치 변동에 의해 이미지 배율이 제 1 이미지 대비 증가 또는 감소한 제 2 이미지를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 제 1 이미지가 표시 장치(106)에 출력되는 상태에서 제 2 이미지를 획득할 수 있다. 예를 들어, 프로세서(120)는 도 5b를 통해 후술하는 바와 같이, 획득된 제 2 이미지의 출력을 제한할 수 있다.According to various embodiments of the present disclosure, in
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 430에서, 제 1 이미지와 제 2 이미지에 기초하여 초점 렌즈(310)에 대한 디포커스 량을 산출할 수 있다. 도 3을 통해 전술한 바와 같이, 디포커스 량은 현재 초점 렌즈(310)가 온 포커스 영역에서 벗어난 정도를 나타내는 값일 수 있다. 일 실시 예에 따르면, 프로세서(120)는 제 1 이미지가 출력되는 상태에서 디포커스 량을 산출할 수 있다. 예를 들어, 프로세서(120)는 초점 렌즈(310)에 대한 디포커스 량이 산출되기 전까지 제 2 이미지 대신에 제 1 이미지가 표시 장치(106)에 출력되도록 처리할 수 있다. According to various embodiments, in
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 440에서, 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하는 동작을 수행할 수 있다. 예를 들어, 프로세서(120)는 디포커스 량에 기초하여 온 포커스 영역의 검출 동작이 시작되는 위치를 결정할 수 있다. 또한, 프로세서(120)는 결정된 시작 위치에 기초하여, 초점 렌즈(310)를 단계적으로 온 포커스 영역으로 이동시킬 수 있다.According to various embodiments of the present disclosure, in
도 5a 및 도 5b는 일반적인 전자 장치의 자동 초점 기능과 본 발명의 다양한 실시 예에 따른 전자 장치의 자동 초점 기능을 비교 설명하기 위한 예시도(500), (550)이다. 5A and 5B are
도 5a를 참조하면, 일반적인 전자 장치(102)는 카메라 모듈에 포함된 렌즈를 앞뒤로(back and forth) 이동시켜 피사체에 대해 초점을 맞추는 자동 초점 기능을 제공할 수 있다. 이러한 전자 장치(102)는 자동 초점 기능이 실행되는 동안 카메라 모듈(예: 도 3의 카메라 모듈(180))을 통해 획득되는 이미지(502)를 표시 장치(160)를 통해 프리뷰 이미지 또는 라이브 뷰 형태로 출력(504)할 수 있다. 예를 들어, 도시된 바와 같이, 전자 장치(102)는 제 1 렌즈 위치에서 획득된 제 1 이미지를 출력하는 상태에서 초점 렌즈(310)가 제 2 렌즈 위치로 이동하는 경우, 제 2 렌즈 위치에서 획득된 제 2 이미지를 이용하여 화면을 갱신할 수 있다. 이때, 도시된 바와 같이, 초점 렌즈(310)가 제 1 렌즈 위치와 반대 방향인 제 2 렌즈 위치로 이동한 후, 다시 제 2 렌즈 위치와 반대 방향인 제 3 렌즈 위치로 이동하는 경우, 전자 장치(102)는 제 1 이미지보다 화면 배율이 감소된 제 2 이미지를 출력한 후, 제 2 이미지보다 화면 배율이 증가한 제 3 이미지를 출력함에 따라 출력 이미지가 흔들리는 워블링 현상이 발생될 수 있다.Referring to FIG. 5A, a general
도 5b를 참조하면, 본 발명의 다양한 실시 예에 따른 전자 장치(102)는 자동 초점 기능이 수행되는 동안 이미지의 출력을 제어함으로써 워블링 현상을 방지할 수 있다. 구체적으로, 전자 장치(102)는 적어도 디포커스 량을 산출하는 동안, 제 2 이미지의 출력을 제한하고 제 1 이미지의 출력을 유지할 수 있다. 예를 들어, 초점 렌즈(310)가 제 1 렌즈 위치와 반대 방향인 제 2 렌즈 위치로 이동한 후, 다시 제 2 렌즈 위치와 반대 방향인 제 3 렌즈 위치로 이동하는 경우, 전자 장치(102)는 제 1 이미지를 출력한 후 제 3 이미지를 출력(550)하여 사용자는 이미지 배율이 선형적으로 증가하거나 감소하는 것으로 인식할 수 있다. Referring to FIG. 5B, the
도 6은 본 발명의 다양한 실시 예에 따른 전자 장치에서 디포커스 량을 산출하기 위한 흐름도(600)이다. 이하 설명되는 도 6의 동작들은, 도 4의 동작 410 및 동작 430의 다양한 실시 예를 나타낸 것일 수 있다. 또한, 이하 실시 예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 6 is a
도 6을 참조하면, 다양한 실시 예에 따른, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 610에서, 제 1 렌즈 위치에 기초하여 제 1 이미지를 획득하여 출력할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 제 1 위치의 초점 렌즈(예: 도 3의 초점 렌즈(310))를 통해 입사된 피사체의 빛을 감지하여 피사체에 대한 제 1 이미지를 획득할 수 있다. Referring to FIG. 6, according to various embodiments, the electronic device 300 (for example, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 620에서, 획득된 제 1 이미지의 일부 영역을 추출할 수 있다. 일 실시 예에 따르면, 제 1 이미지의 일부 영역은 포커스 검출을 위해 사용되는 부분일 수 있다. 일 실시 에에 따르면, 프로세서(120)는 제 1 이미지의 중앙 부분을 포커스 검출을 위해 사용할 수 있다. 그러나 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 일 실시 예로, 프로세서(120)는 제 1 이미지의 코너 부분, 제 1 이미지 내에서 검출되는 엣지 부분 등 제 1 이미지의 다양한 부분을 포커스 검출을 위해 사용할 수도 있다. 일 실시 예에 따르면, 프로세서(120)는 획득된 제 1 이미지 또는 제 1 이미지의 일부 영역을 전자 장치(300) 내부 또는 외부(예: 전자 장치(102), (104) 또는 서버(108))에 저장할 수도 있다.According to various embodiments, the electronic device 300 (for example, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 630에서, 제 1 위치의 초점 렌즈(310)를 제 2 위치로 변경할 수 있다. 초점 렌즈(310)가 이동하는 제 2 위치는 미리 정의된 알고리즘에 의해 결정될 수 있다. According to various embodiments, the electronic device 300 (eg, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 640에서, 제 2 렌즈 위치에 기초하여 제 2 이미지를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 제 1 위치에서 제 2 위치로 위치가 변경된 초점 렌즈(310)를 통해 입사된 피사체의 빛을 감지하여 피사체에 대한 제 2 이미지를 획득할 수 있다.According to various embodiments of the present disclosure, in
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 650에서, 제 2 이미지의 출력을 제한하고 제 1 이미지의 출력을 유지할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 초점 렌즈(310)의 이동 방향이 변경됨에 따라 제 1 이미지 대비 이미지 배율이 증가 또는 감소한 제 2 이미지가 출력되는 것을 방지할 수 있다. According to various embodiments of the present disclosure, in operation 650, the electronic device 300 (eg, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 660에서, 획득된 제 2 이미지의 일부 영역을 추출할 수 있다. 일 실시 예에 따르면, 제 2 이미지의 일부 영역은 포커스 검출을 위해 사용되는 부분일 수 있다. 일 실시 에에 따르면, 프로세서(120)는 제 2 이미지의 중앙 부분을 포커스 검출을 위해 사용할 수 있다. 그러나 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 일 실시 예로, 프로세서(120)는 제 2 이미지의 코너 부분, 제 2 이미지 내에서 검출되는 엣지 부분 등 제 2 이미지의 다양한 부분을 포커스 검출을 위해 사용할 수도 있다. 일 실시 예에 따르면, 프로세서(120)는 획득된 제 2 이미지 또는 제 2 이미지의 일부 영역을 전자 장치(300) 내부 또는 외부(예: 전자 장치(102), (104) 또는 서버(108))에 저장할 수도 있다.According to various embodiments, the electronic device 300 (eg, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 670에서, 추출된 영역들에 기초하여 포커스 신호 값을 측정할 수 있다. 일 실시 예에 따르면, 프로세서(120)는, 도 3을 통해 전술한 바와 같이, 제 1 이미지(또는 제 1 이미지의 일부 영역) 및 제 2 이미지(또는 제 2 이미지의 일부 영역)에 대한 주파수 분석을 통해, 이미지 간 상흐림, 콘트라스트, 위상차 등과 같은 포커스 신호 값을 측정할 수 있다. According to various embodiments of the present disclosure, in
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 680에서, 산출된 포커스 신호 값에 기초하여 초점 렌즈(310)에 대한 디포커스 량을 산출할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 다양한 포커스 신호 값에 대응하는 디포커스 량을 미리 정의한 기준 디포커스 량을 저장할 수 있다. 이러한 경우, 프로세서(120)는 산출된 포커스 신호 값을 기준 디포커스 량과 비교함으로써 현재 초점 렌즈(310)에 대한 디포커스 량을 산출할 수 있다. 다양한 실시 예에 따르면, 프로세서(120)는, 도 3을 통해 전술한 바와 같이, 산출된 디포커스 량에 기초하여 탐색 위치를 결정할 수 있다. 일 실시 예에 따르면, 프로세서(120)는, 초점 렌즈(310)가 온 포커스 영역으로부터 기준 범위 이상 벗어난 경우, 초점 렌즈(310)의 현재 위치로부터 초점 영역 방향으로 제 1 거리만큼 이격된 위치를 탐색 위치로 결정할 수 있다. 다른 실시 예에 따르면, 프로세서(120)는, 초점 렌즈(310)가 온 포커스 영역으로부터 기준 범위를 벗어나지 않는 경우, 초점 렌즈(310)의 현재 위치로부터 초점 영역 방향으로 제 1 거리보다 짧은 제 2 거리만큼 이격된 위치를 탐색 위치로 결정할 수 있다. According to various embodiments, the electronic device 300 (eg, the
도 7은 본 발명의 다양한 실시 예에 따른 전자 장치에서 온 포커스 영역을 검출하기 위한 흐름도(700)이다. 그리고, 도 8은 본 발명의 다양한 실시 예에 따른 전자 장치에서 온 포커스 영역을 검출하는 동작을 설명하기 위한 예시도이다. 이하 설명되는 도 7의 동작들은, 도 4의 동작 440의 다양한 실시 예를 나타낸 것일 수 있다. 또한, 이하 실시 예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 7 is a
도 7을 참조하면, 다양한 실시 예에 따른, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 710에서, 제 1 이미지의 출력을 유지할 수 있다. 제 1 이미지는 초점 렌즈(예: 도 3의 초점 렌즈(310))의 이전 위치에서 획득된 이미지일 수 있다. 일 실시 예에 따르면, 프로세서(120)는 제 2 렌즈 위치에 기초하여 제 2 이미지가 획득되더라도 제 2 이미지 대신에 초점 렌즈(310)의 이전 위치에서 획득된 제 1 이미지를 출력할 수 있다.Referring to FIG. 7, according to various embodiments, the electronic device 300 (eg, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 720에서, 탐색 위치에 기초하여 초점 렌즈(310)를 이동시킬 수 있다. According to various embodiments of the present disclosure, in
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 730에서, 탐색 위치로 이동된 초점 렌즈(310)를 이용하여 탐색 동작을 수행할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 탐색 위치로 이동된 초점 렌즈(310)를 통해 획득되는 이미지에 대한 포커스 신호 값(예: 콘트라스트 값)을 측정할 수 있다. 또한, 프로세서(120)는 온 포커스 영역으로 초점 렌즈(310)를 단계적으로 이동시키면서 이미지를 획득하고, 획득된 이미지에 대한 포커스 신호 값을 측정할 수 있다. According to various embodiments of the present disclosure, in operation 730, the electronic device 300 (for example, the
다양한 실시 예에 따르면, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 740에서, 초점 렌즈(310)가 온 포커스 영역에 근접하였는지 여부를 판단할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 초점 렌즈(310)가 이동된 위치에서 획득되는 이미지에 대한 포커스 신호 값이 최대 포커스 신호 값으로 측정되는 경우 온 포커스 영역에 근접하였다고 판단할 수 있다. 예를 들어, 프로세서(120)는 초점 렌즈(310)의 이전 위치에 대한 포커스 신호 값(예: 제 1 포커스 신호 값)에 대한 초점 렌즈(310)의 현재 위치에 대한 포커스 신호 값(예: 제 2 포커스 신호 값)의 비율(예: 제 2 포커스 신호 값 / 제 1 포커스 신호 값)을 산출할 수 있다. 또한, 프로세서(120)는 초점 렌즈(310)의 이동에 따라 포커스 신호 값의 비율이 증가하다가 감소하거나 포커스 신호 값의 비율이 감소하다가 증가하는 시점에 대하여 온 포커스 영역에 근접하였다고 판단할 수 있다.According to various embodiments of the present disclosure, in operation 740, the electronic device 300 (eg, the
다양한 실시 예에 따르면, 초점 렌즈(310)가 온 포커스 영역에 근접하지 않음을 판단한 경우, 다시 말해서, 초점 렌즈(310)의 이동에 따른 포커스 신호 값의 비율이 지속적으로 증가하거나 감소하는 경우, 전자 장치(300)(예: 도 3의 프로세서(120))는 탐색 동작을 반복하여 수행할 수 있다. 예를 들어, 프로세서(120)는 동작 730에서 언급한 바와 같이, 온 포커스 영역으로 초점 렌즈(310)를 단계적으로 이동시키면서 이미지를 획득하고, 획득된 이미지에 대한 포커스 신호 값을 측정할 수 있다.According to various embodiments, when it is determined that the focus lens 310 is not close to the on-focus area, that is, when the ratio of the focus signal value according to the movement of the focus lens 310 continuously increases or decreases, the electronic The device 300 (eg, the
다양한 실시 예에 따르면, 초점 렌즈(310)가 온 포커스 영역에 근접함을 판단한 경우, 다시 말해서, 초점 렌즈(310)의 이동에 따른 포커스 신호 값의 비율이 증가하다가 감소하거나 감소하다가 증가하는 경우, 전자 장치(300)(예: 도 3의 프로세서(120))는, 동작 750에서, 온 포커스 이미지를 생성할 수 있다. 일 실시 예에 따르면, 온 포커스 이미지는 온 포커스 영역에 위치한 초점 렌즈(310)를 통해 피사체에 초점이 맞춰진 이미지일 수 있다. 예를 들어, 프로세서(120)는, 온 포커스 이미지를 생성하기 위하여, 온 포커스 위치를 검출하고, 검출된 온 포커스 위치로 초점 렌즈(310)를 이동시킬 수 있다. 예컨대, 프로세서(120)는, 도 8에 도시된 바와 같이, 3점 보간을 이용하여 온 포커스 위치를 검출할 수 있다. 구체적으로, 프로세서(120)는 초점 렌즈(310)를 단계적으로 이동시키면서 각각의 위치에 대한 포커스 신호 값을 산출할 수 있다. 예를 들어, 프로세서(120)는 제 1 위치부터 제 7 위치까지 이동하면서 포커스 신호 값을 산출할 수 있다. 또한, 프로세서(120)는 제 6 위치에서 제 7 위치로 초점 렌즈(310)가 이동하는 지점에서 온 포커스 영역 근처에 위치함을 판단할 수 있다. 이러한 경우, 프로세서(120)는 5번 위치 및 6번 위치의 포커스 신호 값을 연결한 선(L1)과 7번 위치의 포커스 신호 값의 접선(L2)이 만나는 점(P)를 온 포커스 지점으로 판단하고, 최종적으로 초점 렌즈(310)를 P 지점으로 이동시킬 수 있다. 그러나 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 일 실시 예로, 프로세서(120)는 공지된 다양한 방식에 기초하여 온 포커스 지점을 판단할 수도 있다. 일 실시 예에 따르면, 프로세서(120)는 생성된 온 포커스 이미지를 프리뷰 이미지 또는 라이브 뷰로 출력할 수 있다. 그러나 이는 예시적일 뿐, 본 발명의 실시 예가 이에 한정되는 것이 아니다. 예를 들어, 프로세서(120)는 온 포커스 이미지를 전자 장치(300) 내부 또는 외부(예: 전자 장치(102), (104) 또는 서버(108))에 저장할 수도 있다.According to various embodiments, when it is determined that the focus lens 310 is close to the on-focus area, that is, when the ratio of the focus signal value according to the movement of the focus lens 310 increases and then decreases or decreases and then increases, The electronic device 300 (eg, the
도 9는 본 발명의 다양한 실시 예에 따른 전자 장치에서 탐색 위치에 기초하여 초점 렌즈를 이동시키기 위한 흐름도(900)이다. 이하 설명되는 도 9의 동작들은, 도 7의 동작 720의 다양한 실시 예를 나타낸 것일 수 있다. 또한, 이하 실시 예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 9 is a
도 9를 참조하면, 다양한 실시 예에 따른, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 910에서, 제 1 렌즈 위치를 기준으로 제 2 렌즈 위치가 제 1 방향에 존재하는지 또는 제 1 렌즈 위치를 기준으로 제 2 렌즈 위치가 제 2 방향에 존재하는지를 판단할 수 있다. 예를 들어, 제 1 렌즈 위치는 디포커스 량 산출을 위한 제 1 이미지의 획득 위치이며, 제 2 렌즈 위치는 디포커스 량 산출을 위한 제 2 이미지의 획득 위치일 수 있다. 또한, 제 1 방향은 제 1 렌즈 위치를 기준으로 온 포커스 영역으로 가까워지는 방향이며, 제 2 방향은 제 1 렌즈 위치를 기준으로 온 포커스 영역과 멀어지는 방향일 수 있다. Referring to FIG. 9, in
다양한 실시 예에 따르면, 제 2 렌즈 위치가 제 1 방향에 존재한다고 판단되는 경우, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 920에서, 이전에 획득된 제 2 이미지에 기초하여 화면을 갱신할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 탐색 위치로 초점 렌즈(예: 도 3의 초점 렌즈(310))가 이동할 때까지 제 2 이미지가 화면에 표시되도록 처리할 수 있다. 예를 들어, 도 10a 내지 도 10c를 통해 후술하는 바와 같이, 프로세서(120)는 제 1 이미지 출력 후 제 2 이미지를 일시적으로 출력함으로써 제 3 이미지 출력 시 사용자가 체감하는 이미지의 배율 변화를 감소시킬 수 있다. According to various embodiments, when it is determined that the second lens position is in the first direction, the electronic device 300 (for example, the
다양한 실시 예에 따르면, 제 2 렌즈 위치가 제 2 방향에 존재한다고 판단되는 경우, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 930에서, 제 1 이미지의 출력을 유지할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 탐색 위치로 초점 렌즈(310)가 이동할 때까지 제 1 이미지의 출력을 유지할 수 있다.According to various embodiments, when it is determined that the second lens position is in the second direction, the electronic device 300 (eg, the
도 10a 내지 도 10c는 본 발명의 다양한 실시 예에 따른 전자 장치에서 탐색 위치에 기초하여 초점 렌즈를 이동시키기 위한 동작을 설명하기 위한 예시도이다. 10A to 10C are exemplary views illustrating an operation of moving a focus lens based on a search position in an electronic device according to various embodiments of the present disclosure.
도 10a를 참조하면, 전술한 바와 같이, 다양한 실시 예에 따른 전자 장치(300)는 제 1 렌즈 위치에 기초하여 획득된 제 1 이미지와 제 2 렌즈 위치에 기초하여 획득된 제 2 이미지(1002)에 기초하여 디포커스 량을 산출할 수 있다. 또한, 전자 장치(300)는 디포커스 량이 산출되는 동안 제 2 이미지의 출력을 제한하고 제 1 이미지만을 출력함으로써 워블링 현상을 방지할 수 있다(1004). 또한, 전자 장치(300)는 디포커스 량에 기초하여 초점 렌즈(310)를 제 3 렌즈 위치로 이동시켜 온 포커스 영역을 검출하는 동작을 수행할 수 있다.Referring to FIG. 10A, as described above, the
다양한 실시 예에 따르면, 전자 장치(300)는 초점 렌즈(310)를 제 3 위치로 이동시키는 동안 제 2 이미지를 출력하도록 제어할 수 있다. 도 10a에 도시된 바와 같이, 초점 렌즈(310)의 이동에 따라 이미지 배율이 선형적으로 증가하는 이미지들이 획득될 수 있으나, 본 발명의 다양한 실시에 따른 전자 장치(300)는 워블링 현상을 방지하기 위하여 제 2 이미지 대신에 제 1 이미지를 출력한 후, 초점 렌즈(310)가 제 3 렌즈 위치로 이동하는 동안(또는 제 3 이미지가 출력되기 전까지) 제 2 이미지를 출력(1002)함으로써 사용자가 체감하는 이미지에 대한 배율 변화를 감소시킬 수 있다.According to various embodiments of the present disclosure, the
예를 들어, 도 10b에 도시된 바와 같이, 제 3 이미지(1013)가 출력되기 전까지 제 1 이미지(1011)의 출력이 유지되는 경우, 사용자가 체감하는 이미지에 대한 배율 변화가 커질 수 있다. 이에 반하여, 도 10c에 도시된 바와 같이, 제 3 이미지(1013)가 출력되기 전에 제 2 이미지(1012)를 일시적으로 출력하는 경우, 도 10b에 도시된 상황 대비 사용자가 체감하는 이미지에 대한 배율 변화를 감소시킬 수 있다. For example, as illustrated in FIG. 10B, when the output of the
도 11은 본 발명의 다양한 실시 예에 따른 전자 장치에서 제 2 이미지에 기초하여 화면을 갱신하기 위한 흐름도(1100)이다. 이하 설명되는 도 11의 동작들은, 도 9의 동작 920의 다양한 실시 예를 나타낸 것일 수 있다. 또한, 이하 실시 예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 11 is a flowchart 1100 for updating a screen based on a second image in an electronic device according to various embodiments of the present disclosure. The operations of FIG. 11 described below may represent various embodiments of
도 11을 참조하면, 다양한 실시 예에 따른, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 1110에서, 초점 렌즈(예: 도 3의 초점 렌즈(310))가 제 2 렌즈 위치를 기준으로 미리 정의된 기준 거리만큼 이격하여 탐색 동작을 수행하는지 여부를 판단할 수 있다. 기준 거리는 사용자가 이미지의 배율 변화를 체감할 수 있는 상황을 판단하기 위한 값일 수 있다.Referring to FIG. 11, in operation 1110 of the electronic device 300 (eg, the
다양한 실시 예에 따르면, 기준 거리만큼 이격된 상태에서 탐색 동작을 수행하는 경우, 다시 말해서, 사용자가 이미지의 배율 변화를 체감할 수 있는 상황인 경우, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 1120에서, 제 2 이미지에 기초하여 화면을 갱신할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 탐색 위치로 초점 렌즈(310)가 이동할 때까지 제 2 이미지가 화면에 표시되도록 처리할 수 있다. According to various embodiments, when a search operation is performed in a state spaced apart by a reference distance, that is, in a situation in which a user can experience a change in magnification of an image, the electronic device 300 (eg, the processor of FIG. 3 ). In operation 1120 (120), the screen may be updated based on the second image. According to an embodiment, the
다양한 실시 예에 따르면, 기준 거리만큼 이격되지 않은 상태에서 탐색 동작을 수행하는 경우, 다시 말해서, 사용자가 이미지의 배율 변화를 체감할 수 없는 상황인 경우, 전자 장치(300)(예: 도 3의 프로세서(120))는 동작 1130에서, 제 1 이미지의 출력을 유지할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 탐색 위치로 초점 렌즈(310)가 이동할 때까지 제 1 이미지의 출력을 유지할 수 있다.According to various embodiments, when a search operation is performed without being separated by a reference distance, that is, when a user cannot experience a change in magnification of an image, the electronic device 300 (eg, in FIG. 3 ). The
다양한 실시 예에 따르면, 전자 장치의 동작 방법은, 초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하는 동작, 상기 제 1 이미지를 표시 장치를 통해 출력하는 동작, 상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하는 동작, 상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하는 동작 및, 상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, a method of operating an electronic device may include an operation of acquiring a first image at a first position of a focus lens, an operation of outputting the first image through a display device, and while the first image is output, An operation of acquiring a second image at a second position of the focus lens, an operation of calculating a defocus amount for the focus lens at the second position based on the first image and the second image, and the calculated D It may include an operation of detecting the on-focus area based on the amount of focus.
다양한 실시 예에 따르면, 상기 디포커스 량을 산출하는 동작은, 상기 제 1 이미지가 출력되는 동안 상기 제 2 이미지의 출력을 제한하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, calculating the amount of defocus may include limiting the output of the second image while the first image is being output.
다양한 실시 예에 따르면, 상기 온 포커스 영역을 검출하는 동작은, 상기 초점 렌즈의 제 3 위치에서 제 3 이미지를 획득하는 동작 및 상기 제 1 이미지를 상기 제 3 이미지로 갱신하는 동작을 포함할 수 있다.According to various embodiments, detecting the on-focus area may include acquiring a third image at a third position of the focus lens, and updating the first image to the third image. .
다양한 실시 예에 따르면, 상기 온 포커스 영역을 검출하는 동작은, 상기 제 3 이미지로 갱신되기 전에, 상기 제 2 이미지를 출력하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, the detecting of the on-focus area may include outputting the second image before being updated to the third image.
다양한 실시 예에 따르면, 상기 온 포커스 영역을 검출하는 동작은, 상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 가까워지는 제 1 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, when the second position is in a first direction approaching the on focus area based on the first position, the detecting of the on focus area may be performed before being updated to the third image. It may include an operation of outputting the second image.
다양한 실시 예에 따르면, 상기 온 포커스 영역을 검출하는 동작은, 상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 이상 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, when the focus lens moves by a reference distance or more based on the second position in the first direction, the detection of the on-focus area is performed by the second image before being updated to the third image. It may include an operation of outputting an image.
다양한 실시 예에 따르면, 상기 온 포커스 영역을 검출하는 동작은, 상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 미만 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, when the focus lens moves less than a reference distance based on the second position in the first direction, the detecting of the on-focus area is performed before being updated to the third image. It may include the operation of maintaining the image output.
다양한 실시 예에 따르면, 상기 온 포커스 영역을 검출하는 동작은, 상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 멀어지는 제 2 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, when the second position is in a second direction away from the on focus area based on the first position, the detecting of the on focus area may be performed before being updated to the third image. It may include an operation of maintaining the output of the first image.
다양한 실시 예에 따르면, 상기 온 포커스 영역을 검출하는 동작은, 상기 제 3 이미지의 콘트라스트를 산출하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, detecting the on-focus area may include calculating a contrast of the third image.
다양한 실시 예에 따르면, 상기 디포커스 량을 산출하는 동작은, 상기 제 1 이미지와 상기 제 2 이미지 간의 상흐림(blur)을 산출하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, calculating the amount of defocus may include calculating a blur between the first image and the second image.
다양한 실시 예에 따르면, 컴퓨터 판독 가능한 기록 매체는 초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하는 동작, 상기 제 1 이미지를 표시 장치를 통해 출력하는 동작, 상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하는 동작, 상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하는 동작 및, 상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하는 동작을 실행시키기 위한 프로그램을 저장할 수 있다.According to various embodiments, the computer-readable recording medium includes an operation of acquiring a first image at a first position of a focus lens, an operation of outputting the first image through a display device, and an operation of outputting the first image. Acquiring a second image at a second position of a focus lens, calculating a defocus amount for the focus lens at the second position based on the first image and the second image, and the calculated defocus A program for executing an operation of detecting the on-focus area based on the amount may be stored.
본 문서에 개시된 다양한 실시 예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시 예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. The electronic device according to the exemplary embodiment of the present document is not limited to the above-described devices.
본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시 예들로 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나",“A 또는 B 중 적어도 하나, "A, B 또는 C," "A, B 및 C 중 적어도 하나, 및 “A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, “기능적으로” 또는 “통신적으로”라는 용어와 함께 또는 이런 용어 없이, “커플드” 또는 “커넥티드”라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of the present document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutes of the corresponding embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or a plurality of the items unless clearly indicated otherwise in a related context. In this document, "A or B", "at least one of A and B", "at least one of A or B, "A, B or C," "at least one of A, B and C, and "A, B Each of the phrases such as ", or at least one of C" may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the component from other corresponding components, and the components may be referred to in other aspects (eg, importance or Order) is not limited. Some (eg, first) component is referred to as “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When mentioned, it means that any of the above components can be connected to the other components directly (eg by wire), wirelessly, or via a third component.
본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시 예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, parts, or circuits. The module may be an integrally configured component or a minimum unit of the component or a part thereof that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시 예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체 는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document include one or more commands stored in a storage medium (eg, internal memory 136 or external memory 138) that can be read by a machine (eg, electronic device 101). It may be implemented as software (for example, the program 140) including them. For example, the processor (eg, the processor 120) of the device (eg, the electronic device 101) may call and execute at least one command among one or more commands stored from a storage medium. This makes it possible for the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here,'non-transient' only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium. It does not distinguish between temporary storage cases.
일 실시 예에 따르면, 본 문서에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, a method according to various embodiments disclosed in the present document may be provided by being included in a computer program product. Computer program products can be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or two user devices ( It can be distributed (e.g., downloaded or uploaded) directly between, e.g. smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a storage medium that can be read by a device such as a server of a manufacturer, a server of an application store, or a memory of a relay server.
다양한 실시 예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시 예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular number or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar to that performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be sequentially, parallel, repeatedly, or heuristically executed, or one or more of the operations may be executed in a different order or omitted. , Or one or more other actions may be added.
Claims (20)
초점 렌즈를 포함하는 카메라 모듈;
표시 장치; 및
프로세서를 포함하며, 상기 프로세서는,
상기 초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하도록 상기 카메라 모듈을 제어하고,
상기 제 1 이미지를 출력하도록 상기 표시 장치를 제어하고,
상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하도록 상기 카메라 모듈을 제어하고,
상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하고,
상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하도록 제어하는 전자 장치.
In the electronic device,
A camera module including a focus lens;
Display device; And
Includes a processor, the processor,
Controlling the camera module to acquire a first image at a first position of the focus lens,
Controlling the display device to output the first image,
While the first image is being output, controlling the camera module to acquire a second image at a second position of the focus lens,
Calculating a defocus amount for the focus lens at the second position based on the first image and the second image,
An electronic device that controls to detect an on-focus area based on the calculated amount of defocus.
상기 프로세서는,
상기 디포커스 량이 산출되기 전까지 상기 제 2 이미지의 출력이 제한되도록 상기 표시 장치를 제어하는 전자 장치.
The method of claim 1,
The processor,
An electronic device that controls the display device to limit the output of the second image until the amount of defocus is calculated.
상기 프로세서는,
상기 디포커스 량이 산출되는 것에 대응하여, 상기 초점 렌즈의 제 3 위치에서 제 3 이미지를 획득하도록 상기 카메라 모듈을 제어하고,
상기 제 1 이미지를 상기 제 3 이미지로 갱신하도록 상기 표시 장치를 제어하는 전자 장치.
The method of claim 1,
The processor,
In response to the calculation of the amount of defocus, controlling the camera module to acquire a third image at a third position of the focus lens,
An electronic device that controls the display device to update the first image with the third image.
상기 프로세서는,
상기 제 3 이미지로 갱신되기 전에, 상기 제 2 이미지를 출력하도록 상기 표시 장치를 제어하는 전자 장치.
The method of claim 3,
The processor,
An electronic device that controls the display device to output the second image before being updated with the third image.
상기 프로세서는,
상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 가까워지는 제 1 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하도록 상기 표시 장치를 제어하는 전자 장치.
The method of claim 4,
The processor,
An electronic device configured to control the display device to output the second image before being updated to the third image when the second position is in a first direction closer to the on focus area based on the first position.
상기 프로세서는,
상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 이상 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하도록 상기 표시 장치를 제어하는 전자 장치.
The method of claim 5,
The processor,
When the focus lens moves by a reference distance or more based on the second position in the first direction, the electronic device controls the display device to output the second image before being updated to the third image.
상기 프로세서는,
상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 미만 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하도록 상기 표시 장치를 제어하는 전자 장치.
The method of claim 6,
The processor,
When the focus lens moves less than a reference distance based on the second position in the first direction, the electronic device controls the display device to maintain the output of the first image before being updated to the third image.
상기 프로세서는,
상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 멀어지는 제 2 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하도록 상기 표시 장치를 제어하는 전자 장치.
The method of claim 4,
The processor,
An electronic device that controls the display device to maintain the output of the first image before being updated to the third image when the second position is in a second direction away from the on focus area based on the first position .
상기 프로세서는,
상기 제 3 이미지의 콘트라스트에 기초하여 상기 온 포커스 영역을 검출하도록 제어하는 전자 장치.
The method of claim 3,
The processor,
The electronic device controls to detect the on-focus area based on the contrast of the third image.
상기 프로세서는,
상기 제 1 이미지와 상기 제 2 이미지 간의 상흐림(blur)에 기초하여 상기 디포커스 량을 산출하도록 제어하는 전자 장치.
The method of claim 1,
The processor,
An electronic device controlling to calculate the amount of defocus based on a blur between the first image and the second image.
초점 렌즈의 제 1 위치에서 제 1 이미지를 획득하는 동작;
상기 제 1 이미지를 표시 장치를 통해 출력하는 동작;
상기 제 1 이미지가 출력되는 동안, 상기 초점 렌즈의 제 2 위치에서 제 2 이미지를 획득하는 동작;
상기 제 1 이미지 및 상기 제 2 이미지에 기초하여 상기 제 2 위치의 초점 렌즈에 대한 디포커스 량을 산출하는 동작; 및,
상기 산출된 디포커스 량에 기초하여 온 포커스 영역을 검출하는 동작을 포함하는 방법.
In the method of operating an electronic device,
Acquiring a first image at a first position of the focus lens;
Outputting the first image through a display device;
Obtaining a second image at a second position of the focus lens while the first image is being output;
Calculating a defocus amount for the focus lens at the second position based on the first image and the second image; And,
And detecting an on-focus area based on the calculated amount of defocus.
상기 디포커스 량을 산출하는 동작은,
상기 제 1 이미지가 출력되는 동안 상기 제 2 이미지의 출력을 제한하는 동작을 포함하는 방법.
The method of claim 11,
The operation of calculating the defocus amount,
And limiting the output of the second image while the first image is being output.
상기 온 포커스 영역을 검출하는 동작은,
상기 초점 렌즈의 제 3 위치에서 제 3 이미지를 획득하는 동작; 및
상기 제 1 이미지를 상기 제 3 이미지로 갱신하는 동작을 포함하는 방법.
The method of claim 11,
The operation of detecting the on-focus area,
Acquiring a third image at a third position of the focus lens; And
And updating the first image to the third image.
상기 온 포커스 영역을 검출하는 동작은,
상기 제 3 이미지로 갱신되기 전에, 상기 제 2 이미지를 출력하는 동작을 더 포함하는 방법.
The method of claim 13,
The operation of detecting the on-focus area,
The method further comprising outputting the second image before being updated with the third image.
상기 온 포커스 영역을 검출하는 동작은,
상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 가까워지는 제 1 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하는 동작을 포함하는 방법.
The method of claim 14,
The operation of detecting the on-focus area,
And outputting the second image before being updated to the third image when the second position is in a first direction approaching an on focus area based on the first position.
상기 온 포커스 영역을 검출하는 동작은,
상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 이상 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 2 이미지를 출력하는 동작을 포함하는 방법.
The method of claim 15,
The operation of detecting the on-focus area,
And outputting the second image before being updated to the third image when the focus lens moves more than a reference distance based on the second position in the first direction.
상기 온 포커스 영역을 검출하는 동작은,
상기 초점 렌즈가 상기 제 1 방향의 상기 제 2 위치를 기준으로 기준거리 미만 이동하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하는 동작을 포함하는 방법.
The method of claim 16,
The operation of detecting the on-focus area,
And when the focus lens moves less than a reference distance based on the second position in the first direction, maintaining the output of the first image before being updated to the third image.
상기 온 포커스 영역을 검출하는 동작은,
상기 제 1 위치를 기준으로 상기 제 2 위치가 온 포커스 영역으로 멀어지는 제 2 방향에 존재하는 경우, 상기 제 3 이미지로 갱신되기 전에 상기 제 1 이미지를 출력을 유지하는 동작을 포함하는 방법.
The method of claim 14,
The operation of detecting the on-focus area,
And maintaining the output of the first image before being updated to the third image when the second position is in a second direction away from the on focus area based on the first position.
상기 온 포커스 영역을 검출하는 동작은,
상기 제 3 이미지의 콘트라스트를 산출하는 동작을 포함하는 방법.
The method of claim 13,
The operation of detecting the on-focus area,
And calculating the contrast of the third image.
상기 디포커스 량을 산출하는 동작은,
상기 제 1 이미지와 상기 제 2 이미지 간의 상흐림(blur)을 산출하는 동작을 포함하는 방법.
The method of claim 11,
The operation of calculating the defocus amount,
And calculating a blur between the first image and the second image.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020190030396A KR20200110906A (en) | 2019-03-18 | 2019-03-18 | Electronic device for auto focusing function and operating method thereof |
US16/821,359 US11297237B2 (en) | 2019-03-18 | 2020-03-17 | Electronic device for auto focusing function and operating method thereof |
PCT/KR2020/003651 WO2020190008A1 (en) | 2019-03-18 | 2020-03-17 | Electronic device for auto focusing function and operating method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020190030396A KR20200110906A (en) | 2019-03-18 | 2019-03-18 | Electronic device for auto focusing function and operating method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20200110906A true KR20200110906A (en) | 2020-09-28 |
Family
ID=72515106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020190030396A KR20200110906A (en) | 2019-03-18 | 2019-03-18 | Electronic device for auto focusing function and operating method thereof |
Country Status (3)
Country | Link |
---|---|
US (1) | US11297237B2 (en) |
KR (1) | KR20200110906A (en) |
WO (1) | WO2020190008A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11750927B2 (en) | 2021-08-12 | 2023-09-05 | Deepx Co., Ltd. | Method for image stabilization based on artificial intelligence and camera module therefor |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110971895B (en) * | 2019-12-18 | 2022-07-08 | 北京百度网讯科技有限公司 | Video jitter detection method and device |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003032521A (en) | 2001-07-12 | 2003-01-31 | Nikon Corp | Camera |
JP2003322788A (en) | 2002-04-30 | 2003-11-14 | Konica Minolta Holdings Inc | Camera |
JP3971246B2 (en) * | 2002-06-03 | 2007-09-05 | 富士フイルム株式会社 | Digital photography device |
JP2004023580A (en) | 2002-06-19 | 2004-01-22 | Konica Minolta Holdings Inc | Digital camera |
EP1667433B1 (en) | 2003-09-04 | 2012-04-18 | Canon Kabushiki Kaisha | Imaging device, control method thereof, and control program |
JP4344299B2 (en) * | 2004-09-16 | 2009-10-14 | 富士通マイクロエレクトロニクス株式会社 | Imaging apparatus and autofocus focusing time notification method |
JP5013705B2 (en) * | 2005-11-21 | 2012-08-29 | 三星電子株式会社 | Imaging device, screen display method, focus adjustment method, exposure adjustment method, and computer program |
US7729602B2 (en) * | 2007-03-09 | 2010-06-01 | Eastman Kodak Company | Camera using multiple lenses and image sensors operable in a default imaging mode |
JP4518131B2 (en) * | 2007-10-05 | 2010-08-04 | 富士フイルム株式会社 | Imaging method and apparatus |
JP2011119930A (en) * | 2009-12-02 | 2011-06-16 | Seiko Epson Corp | Imaging apparatus, imaging method, and imaging program |
KR101085925B1 (en) | 2010-03-23 | 2011-11-23 | 삼성전자주식회사 | Image pickup apparatus to perform auto focusing function by using plurality of band pass filters and auto focusing method applied the same |
KR101483827B1 (en) * | 2012-12-28 | 2015-01-16 | 삼성전기주식회사 | Auto focus contrl apparatus and method for auto focus controlling |
US9729776B2 (en) * | 2014-08-27 | 2017-08-08 | Mediatek Inc. | Camera auto-focus apparatus for performing lens position compensation to determine focused lens position and related camera auto-focus method |
JP2017228913A (en) | 2016-06-22 | 2017-12-28 | オリンパス株式会社 | Imaging apparatus |
KR102382871B1 (en) | 2017-07-18 | 2022-04-05 | 삼성전자주식회사 | Electronic Device for controlling lens focus and the controlling Method thereof |
JP7086571B2 (en) * | 2017-11-16 | 2022-06-20 | キヤノン株式会社 | Image pickup device, lens device and control method thereof |
KR102593303B1 (en) * | 2018-01-16 | 2023-10-25 | 삼성전자 주식회사 | Electronic device and methof to control auto focus of camera |
-
2019
- 2019-03-18 KR KR1020190030396A patent/KR20200110906A/en unknown
-
2020
- 2020-03-17 WO PCT/KR2020/003651 patent/WO2020190008A1/en active Application Filing
- 2020-03-17 US US16/821,359 patent/US11297237B2/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11750927B2 (en) | 2021-08-12 | 2023-09-05 | Deepx Co., Ltd. | Method for image stabilization based on artificial intelligence and camera module therefor |
Also Published As
Publication number | Publication date |
---|---|
WO2020190008A1 (en) | 2020-09-24 |
US11297237B2 (en) | 2022-04-05 |
US20200304717A1 (en) | 2020-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102525000B1 (en) | Electronic device for blurring an image obtained by combining a plurality of images based on depth information and method of driving the electronic device | |
CN113454982B (en) | Electronic device for stabilizing image and method of operating the same | |
KR20190032061A (en) | Electronic device performing image correction and operation method of thereof | |
KR102382871B1 (en) | Electronic Device for controlling lens focus and the controlling Method thereof | |
KR102452564B1 (en) | Apparatus and method for estimating optical image stabilization motion | |
US10819897B2 (en) | Electronic device and method for controlling autofocus of camera | |
KR102552923B1 (en) | Electronic device for acquiring depth information using at least one of cameras or depth sensor | |
KR102661185B1 (en) | Electronic device and method for obtaining images | |
KR102383134B1 (en) | Electronic device for processing image based on priority and method for operating thefeof | |
KR20200117562A (en) | Electronic device, method, and computer readable medium for providing bokeh effect in video | |
KR20190122018A (en) | Electronic Device and the Method for Generating Depth Information thereof | |
KR20200100498A (en) | An electronic device and method of controlling auto focusing thereof | |
KR102524982B1 (en) | Apparatus and method for applying noise pattern to image processed bokeh | |
KR102439502B1 (en) | Electronic device and method for processing image of the same | |
US11297237B2 (en) | Electronic device for auto focusing function and operating method thereof | |
KR20200113522A (en) | Method for performing fucntion according to gesture input and electronic device performing thereof | |
KR20210092620A (en) | Camera movement controlling method and apparatus | |
US11467673B2 (en) | Method for controlling camera and electronic device therefor | |
US11032462B2 (en) | Method for adjusting focus based on spread-level of display object and electronic device supporting the same | |
KR20210144151A (en) | Electronic device and method for generating images by performing auto white balance | |
KR20210142312A (en) | Electronic device comprising camera and microphone and method of operating the same | |
KR20210058363A (en) | Electronic device for using depth information and operating method thereof | |
KR20200092762A (en) | Electronic device and method for recognizing occlusion of camera thereof | |
KR102668212B1 (en) | Method and electronic device for auto focusing | |
US11323610B2 (en) | Autofocus method and electronic device performing same |