KR20210115185A - Image processing method and appratus - Google Patents

Image processing method and appratus Download PDF

Info

Publication number
KR20210115185A
KR20210115185A KR1020200030591A KR20200030591A KR20210115185A KR 20210115185 A KR20210115185 A KR 20210115185A KR 1020200030591 A KR1020200030591 A KR 1020200030591A KR 20200030591 A KR20200030591 A KR 20200030591A KR 20210115185 A KR20210115185 A KR 20210115185A
Authority
KR
South Korea
Prior art keywords
frame
data
base frame
electronic device
image
Prior art date
Application number
KR1020200030591A
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 KR1020200030591A priority Critical patent/KR20210115185A/en
Priority to PCT/KR2021/001914 priority patent/WO2021182759A1/en
Publication of KR20210115185A publication Critical patent/KR20210115185A/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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory
    • H04N5/23267
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/142Edging; Contouring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/144Movement detection
    • H04N5/23229
    • H04N5/23258

Landscapes

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

Abstract

The present invention relates to an image processing method to correct shaking in an image and an apparatus thereof. According to various embodiments of the present invention, the electronic device comprises: a camera module; a sensor module; a memory; and a processor operatively coupled to the camera module, the sensor module, and the memory. The processor is configured to convert motion-related data of the electronic device acquired from the camera module and the sensor module into blur detection data; detect a frame in which blur occurs in an imaging operation according to a first frame rate on the basis of the converted blur detection data; and when the detected frame is a base frame, remove the first base frame in which the blur is detected and generate a second base frame to replace the removed first base frame to process the image according to a second frame rate. Various other embodiments are possible.

Description

이미지 처리 방법 및 장치{IMAGE PROCESSING METHOD AND APPRATUS}IMAGE PROCESSING METHOD AND APPRATUS

본 개시의 다양한 실시예들은 이미지 처리 방법 및 장치에 관한 것이다.Various embodiments of the present disclosure relate to an image processing method and apparatus.

전자 장치를 이용하여 사진 또는 동영상을 촬영하는 이용자가 증가함에 따라 전자 장치에 포함된 카메라의 성능 또한 향상되고 있다.As the number of users taking pictures or moving pictures by using an electronic device increases, the performance of a camera included in the electronic device is also improved.

최근에는 전자 장치에 포함된 카메라로 촬영된 결과물의 품질을 고려하여, 다양한 이미지 스태빌라이저(image stabilizer)가 전자 장치의 카메라에 적용될 수 있다.Recently, various image stabilizers may be applied to the camera of the electronic device in consideration of the quality of a result captured by a camera included in the electronic device.

종래의 전자 장치는 카메라 사용 시 사용자의 손떨림 방지를 위해 이미지 스태빌라이저를 이용하며, 이를 통해 사진 또는 영상의 촬영 결과물의 흔들림을 최소화 할 수 있다. 전자 장치는, 이미지 스태빌라이저를 비롯한 하드웨어의 흔들림 보정 및/또는 소프트웨어를 통한 흔들림 보정을 수행할 수 있다.Conventional electronic devices use an image stabilizer to prevent a user's hand shake when using a camera, and through this, shake of a photograph or video result can be minimized. The electronic device may perform shake compensation of hardware including an image stabilizer and/or shake compensation through software.

사용자의 카메라 사용이 어두운 공간 혹은 광량이 충분하지 못한 곳에서 이루어지는 경우, 전자 장치의 프로세서는 카메라 모듈로 들어오는 광량 부족을 해소하기 위해 셔터 스피드(shutter speed)를 조절할 수 있다. 예를 들면, 셔터 스피드를 느리게 조절하게 되면, 사용자의 손 떨림 등으로 전자 장치의 움직임량이 증가하게 되고 이미지(예: 사진, 또는 영상) 흔들림 발생량이 많아 지게 되어 흔들림 보정 동작 또는 처리가 빈번하게 이루어질 수 있다. 전자 장치의 이미지 흔들림 보정 동작 또는 처리가 증가하는 경우 촬영의 결과물이 뭉개지거나 변형이 될 수 있다.When the user uses the camera in a dark space or in a place where the amount of light is insufficient, the processor of the electronic device may adjust a shutter speed in order to solve the insufficient amount of light entering the camera module. For example, if the shutter speed is adjusted slowly, the amount of movement of the electronic device increases due to the user's hand shake, etc., and the amount of image (eg, photo, or video) shake increases. can When the image stabilization operation or processing of the electronic device is increased, the result of photographing may be crushed or deformed.

다양한 실시예들은, 전자 장치에서 이미지(예: 사진, 또는 영상)의 흔들림 보정을 처리하는 방법 및 장치를 제공할 수 있다. 또한, 다양한 실시예들은, 전자 장치에서의 이미지 처리 방법 및 장치를 제공할 수 있다.Various embodiments may provide a method and apparatus for processing shake correction of an image (eg, photo or video) in an electronic device. Also, various embodiments may provide an image processing method and apparatus in an electronic device.

본 개시의 다양한 실시예에 따른 전자 장치는, 카메라 모듈, 센서 모듈, 메모리 및 상기 카메라 모듈, 상기 센서 모듈, 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고, 상기 프로세서는, 상기 카메라 모듈 및 상기 센서 모듈로부터 획득된 상기 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하고, 상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발생한 프레임을 검출하며, 상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하고, 상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 이미지 처리하도록 설정될 수 있다.An electronic device according to various embodiments of the present disclosure includes a camera module, a sensor module, a memory, and a processor operatively connected to the camera module, the sensor module, and the memory, wherein the processor includes: Converts motion-related data of the electronic device obtained from the camera module and the sensor module into data for blur detection, and captures images according to a first frame rate based on the converted data for blur detection Detects a frame in which blur is generated in operation, and when the detected frame is a base frame, removes a first base frame in which blur is detected, and a second base frame to replace the removed first base frame may be set to generate and process an image according to the second frame rate.

본 개시의 다양한 실시예에 따른 전자 장치의 이미지 처리 방법은, 카메라 모듈 및 센서 모듈로부터 획득된, 상기 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하는 동작, 상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발생한 프레임을 검출하는 동작, 상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하는 동작, 및 상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 합성하는 동작을 포함할 수 있다.An image processing method of an electronic device according to various embodiments of the present disclosure includes an operation of converting motion-related data of the electronic device obtained from a camera module and a sensor module into data for detecting blur, and detecting the converted blur An operation of detecting a frame in which a blur occurs in an imaging operation according to a first frame rate based on the data for a first frame rate, and when the detected frame is a base frame, a first base frame in which the blur is detected and generating a second base frame to replace the removed first base frame and synthesizing it according to a second frame rate.

본 개시의 다양한 실시예에 따른 명령들을 저장하고 있는 저장 매체는, 상기 명령들은 적어도 하나의 프로세서에 의하여 실행될 때에 상기 프로세서로 하여금 적어도 하나의 동작을 수행하도록 설정된 것으로서, 상기 동작은, 카메라 모듈 및 센서 모듈로부터 획득된 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하는 동작, 상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발행한 프레임을 검출하는 동작, 상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하는 동작, 및 상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 합성하는 동작을 포함할 수 있다.The storage medium storing instructions according to various embodiments of the present disclosure is configured to cause the processor to perform at least one operation when the instructions are executed by at least one processor, wherein the operation includes a camera module and a sensor Converting motion-related data of the electronic device obtained from the module into data for blur detection, and based on the converted data for blur detection, blur is issued in an imaging operation according to a first frame rate an operation of detecting one frame, an operation of removing a first base frame in which blur is detected when the detected frame is a base frame, and an operation of removing a second base frame to replace the removed first base frame and synthesizing according to the second frame rate.

본 개시의 다양한 실시예들에 따르면, 전자 장치를 이용한 촬영 시 이루어지는 흔들림 보정으로 인해 발생할 수 있는 뭉개짐을 고려하여 뭉개진 프레임을 보완할 추가적인 프레임을 구비하기 위해 촬영의 프레임 레이트(frame rate)를 변경할 수 있다. 예를 들면, 전자 장치는, 촬영 시 프레임 레이트를 높게 설정해 촬영을 수행할 수 있다.According to various embodiments of the present disclosure, the frame rate of photographing may be changed in order to provide an additional frame to compensate for the crushed frame in consideration of crushing that may occur due to shake correction performed during photographing using an electronic device. have. For example, the electronic device may perform photographing by setting a high frame rate during photographing.

또한, 전자 장치의 촬영 시, 흔들림 보정으로 인해 이미지 저해 현상(예: 블러(blur))이 발생할 우려가 있는 프레임을 카메라 모션 및/또는 자이로 모션의 정보가 포함된 블러 검출용 데이터를 기반으로 확인하여 제거하고, 제거된 프레임과 시계열적 연속성이 있는 프레임으로 제거된 프레임을 대체함으로써 매끄러운 영상을 표시할 수 있다.In addition, when photographing an electronic device, a frame that is likely to cause image disturbance (eg, blur) due to image stabilization is checked based on data for blur detection that includes information about camera motion and/or gyro motion A smooth image can be displayed by removing the removed frame and replacing the removed frame with a frame having time-series continuity with the removed frame.

도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는, 다양한 실시예들에 따른, 카메라 모듈을 예시하는 블럭도이다.
도 3은 다양한 실시예들에 따른, 전자 장치에 관한 블럭도이다.
도 4는 다양한 실시예들에 따른, 이미지 처리 기능을 가지는 전자 장치의 동작 방법에 관한 흐름도이다.
도 5a는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 베이스 프레임 추출에 관한 예시도이다.
도 5b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 시 베이스 프레임의 블러 검출에 관한 예시도이다.
도 6a는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 베이스 프레임의 제2 데이터 획득에 관한 예시도이다.
도 6b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 대체되는 베이스 프레임의 제2 데이터 활용에 관한 예시도이다.
도 7a는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 제1 프레임 레이트에 따른 모션 변화량에 대한 예시도이다.
도 7b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 제1 프레임 레이트에 따른 모션 변화량에 의한 피크(peak) 프레임 제거 후 모션 변화량에 대한 예시도이다.
도 8a 및 도 8b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 베이스 프레임을 제거 및/또는 생성하여 이미지 처리하는 방법에 관한 예시도이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure;
2 is a block diagram illustrating a camera module, according to various embodiments.
3 is a block diagram of an electronic device according to various embodiments of the present disclosure;
4 is a flowchart illustrating a method of operating an electronic device having an image processing function, according to various embodiments of the present disclosure;
5A is an exemplary diagram illustrating base frame extraction when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;
5B is an exemplary diagram illustrating blur detection of a base frame during an imaging operation of an electronic device, according to various embodiments of the present disclosure;
6A is an exemplary diagram illustrating second data acquisition of a base frame when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;
6B is an exemplary diagram illustrating second data utilization of a replaced base frame when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;
7A is an exemplary diagram of a motion variation according to a first frame rate when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;
7B is an exemplary diagram of a motion variation after removal of a peak frame due to a motion variation according to a first frame rate when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;
8A and 8B are exemplary diagrams of a method of processing an image by removing and/or generating a base frame when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;

도 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 network environment 100 according to various embodiments. Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input device 150 , a sound output device 155 , a display device 160 , an audio module 170 , and a sensor module ( 176 , interface 177 , haptic module 179 , camera module 180 , power management module 188 , battery 189 , communication module 190 , subscriber identification module 196 , or antenna module 197 . ) may be included. In some embodiments, at least one of these components (eg, the display device 160 or the camera module 180 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components may be implemented as one integrated circuit. For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 160 (eg, a display).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

도 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 camera module 180, in accordance with various embodiments. Referring to FIG. 2 , the camera module 180 includes a lens assembly 210 , a flash 220 , an image sensor 230 , an image stabilizer 240 , a memory 250 (eg, a buffer memory), or an image signal processor. (260). The lens assembly 210 may collect light emitted from a subject, which is an image to be captured. The lens assembly 210 may include one or more lenses. According to an embodiment, the camera module 180 may include a plurality of lens assemblies 210 . In this case, the camera module 180 may form, for example, a dual camera, a 360 degree camera, or a spherical camera. Some of the plurality of lens assemblies 210 may have the same lens properties (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly may be a different lens assembly. It may have one or more lens properties different from the lens properties of . The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens.

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

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

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

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

도 3은 다양한 실시예들에 따른, 전자 장치에 관한 블럭도이다.3 is a block diagram of an electronic device according to various embodiments of the present disclosure;

도 3을 참조하면, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101))는 프로세서(310)(예: 도 1의 프로세서(120)), 카메라 모듈(320)(예: 도 1의 카메라 모듈(180)), 메모리(330)(예: 도 1의 메모리(130)), 및 센서 모듈(340)(예: 도1의 센서 모듈(176))을 포함할 수 있으며, 도 1의 전자 장치(101)의 구조 및/또는 기능 중 적어도 일부를 포함할 수 있다.Referring to FIG. 3 , the electronic device (eg, the electronic device 101 of FIG. 1 ) according to various embodiments includes a processor 310 (eg, the processor 120 of FIG. 1 ), a camera module 320 (eg, the electronic device 101 of FIG. 1 ). : the camera module 180 of FIG. 1 ), a memory 330 (eg, the memory 130 of FIG. 1 ), and a sensor module 340 (eg, the sensor module 176 of FIG. 1 ). , at least a part of the structure and/or function of the electronic device 101 of FIG. 1 .

다양한 실시예들에 따른, 프로세서(310)는 이미지 시그널 프로세서(321)(예: 도 2의 이미지 시그널 프로세서(260))를 포함할 수 있으며, 도 1의 프로세서(120) 및/또는 도 2의 이미지 시그널 프로세서(260)의 구조 및/또는 기능 중 적어도 일부를 포함할 수 있다. 이미지 시그널 프로세서(321)는, 예를 들면, 카메라 모듈(320)(예: 도 1의 카메라 모듈(180))의 내부에 보조 프로세서 형태로 포함될 수도 있고 메인 프로세서에 포함된 형태로 제공될 수도 있다.According to various embodiments, the processor 310 may include an image signal processor 321 (eg, the image signal processor 260 of FIG. 2 ), the processor 120 of FIG. 1 and/or the image signal processor 260 of FIG. 2 . It may include at least a part of the structure and/or function of the image signal processor 260 . The image signal processor 321 may be included in the camera module 320 (eg, the camera module 180 of FIG. 1 ) in the form of an auxiliary processor or may be provided in the form included in the main processor, for example. .

일 실시예에 따르면, 프로세서(310)는 전자 장치의 전반적인 동작들을 제어하는 기능을 수행할 수 있다. 예를 들면, 프로세서(310)는 카메라 어플리케이션의 구동에 기반하여 영상 촬영 등 촬상 동작을 수행함에 있어서, 센서 모듈(340)(예: 도 1의 센서 모듈(176))을 통한 전자 장치의 움직임(예: 사용자의 손떨림에서 야기되는 흔들림, 촬영 방법에 의한 흔들림 등)을 감지 할 수 있다. 또한, 프로세서(310) 및/또는 이미지 시그널 프로세서(321)(예: 도 2의 이미지 시그널 프로세서(260))는 전자 장치의 움직임 감지를 보정하기 위한 제어를 할 수 있다. 또한 다양한 실시예에 따르면, 전자 장치의 프로세서(310) 및/또는 이미 시그널 프로세서(321)는 이미지 저해 현상 또는 열화 현상(예: 블러(blur) 현상, 지터(jitter) 현상)을 보정하기 위한 제어를 수행할 수 있다.According to an embodiment, the processor 310 may perform a function of controlling overall operations of the electronic device. For example, when the processor 310 performs an image capturing operation such as image capturing based on the driving of the camera application, the electronic device moves through the sensor module 340 (eg, the sensor module 176 of FIG. 1 ). For example: shake caused by the user's hand shake, shake caused by the shooting method, etc.) can be detected. In addition, the processor 310 and/or the image signal processor 321 (eg, the image signal processor 260 of FIG. 2 ) may perform a control for correcting motion detection of the electronic device. Also, according to various embodiments, the processor 310 and/or the signal processor 321 of the electronic device already controls the image for compensating for deterioration or deterioration (eg, blur and jitter). can be performed.

예를 들어, 이미지 저해 현상을 줄이기 위한 제어는 이미지 처리(image processing)을 수행하는 것일 수 있다. 이미지 처리는 사진 또는 영상을 처리하는 기법을 적용하는 과정을 지칭할 수 있다. 이미지 처리 기법으로는 아날로그, 광학, 또는 디지털 처리 기법 등 다양한 방식이 이용될 수 있다.For example, the control for reducing the image inhibition phenomenon may be performing image processing. Image processing may refer to a process of applying a photo or image processing technique. As the image processing technique, various methods such as analog, optical, or digital processing techniques may be used.

이러한 전자 장치의 움직임으로 인한 이미지 처리(예: 영상 흔들림 방지)를 위해서는 여러 가지 방식이 사용될 수 있다. 예를 들어, 광학적 흔들림 보정(optical image stabilization, OIS)은 하드웨어 엘리먼트(예: 도 2의 이미지 스태빌라이저(240))를 이용하여 물리적으로 흔들림을 보정하는 방식을 포함할 수 있고, 디지털 흔들림 보정(video digital image stabilization, VDIS 또는 DIS) 또는 전자적 흔들림 보정(electrical image stabilization, EIS)은 이미지 센서(예: 도 2의 이미지 센서(230))의 출력 값에 소프트웨어적인 처리를 수행하여 영상 흔들림을 보정하는 방식을 포함할 수 있다.Various methods may be used for image processing (eg, image shake prevention) due to the movement of the electronic device. For example, optical image stabilization (OIS) may include a method of physically correcting shake using a hardware element (eg, the image stabilizer 240 of FIG. 2 ), and digital image stabilization (video) Digital image stabilization (VDIS or DIS) or electrical image stabilization (EIS) is a method of compensating for image shake by performing software processing on an output value of an image sensor (eg, the image sensor 230 of FIG. 2 ). may include.

예를 들면, 광학적 흔들림 보정(OIS)의 경우, 카메라 모듈(320)에 흔들림이 감지되면, 이를 보정하기 위한 하드웨어 엘리먼트가 동작하는 것일 수 있다. 예를 들어, 전자 장치의 카메라 렌즈(예: 도 2의 렌즈 어셈블리(210))가 전자 장치(예: 카메라)의 움직임(예: 모션)을 따라가며 피사체의 초점을 유지하고 이미지 센서에 들어오는 빛의 양을 일정하게 유지할 수 있다. 이와 같이 하드웨어 엘리먼트를 통한 흔들림 보정인 OIS는 센서 모듈(340)(예: 자이로 센서, 가속도 센서, 및/또는 제스처 센서 등)를 이용하여 파악한 전자 장치 및/또는 카메라 모듈(320)의 움직임에 따라, 물리적 또는 기계적으로 렌즈(예: 도 2의 렌즈 어셈블리(210))를 이동하여 수평을 유지할 수 있다. 또한, OIS는 렌즈(예: 도 2의 렌즈 어셈블리(210))와 이미지 센서(예: 도 2의 이미지 센서(230))가 함께 움직이면서 흔들림 보정을 할 수도 있다.For example, in the case of optical shake compensation (OIS), when shake is detected by the camera module 320, a hardware element for correcting the shake may be operated. For example, the camera lens of the electronic device (eg, the lens assembly 210 of FIG. 2 ) follows the movement (eg, motion) of the electronic device (eg, the camera) to maintain focus of the subject and light entering the image sensor amount can be kept constant. As described above, the OIS, which is shake compensation through a hardware element, according to the movement of the electronic device and/or camera module 320 detected using the sensor module 340 (eg, a gyro sensor, an acceleration sensor, and/or a gesture sensor, etc.) , by physically or mechanically moving the lens (eg, the lens assembly 210 of FIG. 2 ) to maintain the horizontal level. In addition, the OIS may perform shake correction while a lens (eg, the lens assembly 210 of FIG. 2 ) and an image sensor (eg, the image sensor 230 of FIG. 2 ) move together.

예를 들면, 디지털 흔들림 보정인 VDIS(또는 DIS)는 영상의 프레임과 프레임 간의 차이(different image)를 기반으로 움직임 벡터를 추출하고, 이미지 처리를 통해 선명도를 증가시킬 수 있다. 또한, VDIS는 영상에 기반하여 움직임 벡터를 추출하여 흔들림 외에 피사체 자체의 움직임에 대해서도 흔들림으로 인식할 수 있다.For example, the digital shake correction VDIS (or DIS) may extract a motion vector based on a difference between frames of an image and increase sharpness through image processing. In addition, the VDIS extracts a motion vector based on the image to recognize the movement of the subject itself as a shake in addition to the shake.

예를 들면, 전자적 흔들림 보정인 EIS는 자이로 센서를 이용하여 흔들림의 양을 추출하고 이후의 흔들림 보정은VDIS와 동일한 방식으로 이루어질 수 있다.For example, EIS, which is electronic shake compensation, uses a gyro sensor to extract the amount of shake, and subsequent shake compensation can be performed in the same way as VDIS.

도 3를 참조하면, 다양한 실시예들에 따른, 카메라 모듈(320)은 도 2에 도시된 구성요소들을 포함할 수 있으며, 도 1의 카메라 모듈(180), 도 2의 카메라 모듈의 구조 및/또는 기능 중 적어도 일부를 포함할 수 있다.Referring to FIG. 3 , according to various embodiments, the camera module 320 may include the components shown in FIG. 2 , the camera module 180 of FIG. 1 , the structure of the camera module of FIG. 2 and / Or it may include at least some of the functions.

다양한 실시예들에 따른, 이미지 시그널 프로세서(321)는 이미지 저해 현상 또는 열화 현상을 보정하기 위한 제어를 수행할 수 있다. 일 실시예에 따르면, 이미지 시그널 프로세서(321)는 고주파 모션(high frequency motion)을 보정하는데 용이한 광학적 흔들림 보정(optical image stabilization, OIS)과 저주파 모션(low frequency motion)을 보정하는데 용이한 디지털 흔들림 보정(video digital image stabilization, VDIS)를 사용할 수 있다. OIS는, 예를 들면, 전자 장치(예: 카메라) 움직임의 반대 방향으로 움직여 보정 범위 안에서 움직임이 적게 만들어주기 때문에 입력 영상의 모션을 줄여주는 효과를 제공할 수 있고, VDIS는 입력 영상과 자이로 데이터(gyro data)를 통해 얻어진 개별 모션의 조합으로 흔들림 보정을 수행하기 때문에 입력 영상의 흔들림을 그대로 이용할 수 있다. 광학적 흔들림 보정 및/또는 디지털 흔들림 보정은 입출력의 가시 영역(field of view, FOV)을 조정하여 수행될 수 있다.According to various embodiments, the image signal processor 321 may perform a control for correcting an image deterioration phenomenon or deterioration phenomenon. According to an exemplary embodiment, the image signal processor 321 includes an optical image stabilization (OIS) that is easy to correct a high frequency motion and a digital shake that is easy to correct a low frequency motion. You can use video digital image stabilization (VDIS). OIS can provide the effect of reducing the motion of the input image because, for example, it moves in the opposite direction to the movement of the electronic device (eg camera) and makes less movement within the compensation range, and VDIS can provide the effect of reducing the motion of the input image and the gyro data. Since shake correction is performed by combining individual motions obtained through (gyro data), the shake of the input image can be used as it is. Optical shake correction and/or digital shake correction may be performed by adjusting a field of view (FOV) of input/output.

본 개시의 영상 흔들림 방지와 관련된 VDIS는 영상의 디지털 신호처리에 의해 흔들림 양을 검출하고, 영상 특성을 식별하여 시스템을 제어하여 흔들림을 보정할 수 있다. 예를 들어, 흔들림 보정 알고리즘은 흔들림 보정 파라미터를 연속적으로 두 프레임 간 지역 화소 움직임 벡터(local motion vector, LMV)로부터 프레임 움직임 벡터(frame motion vector, FMV)를 추정하는 방식일 수 있다. 움직임 추정과 보상은 동영상 압축의 기반 기술이며, 움직임 추정은 블록 매칭 알고리즘(block matching algorithm, BMA), 기울기 매칭 알고리즘(gradient matching algorithm, GMA), 위상 상관(phase correlation) 등이 사용될 수 있다. 예를 들어, VDIS는 전자 장치의 사용자가 촬상 동작을 수행할 때 전자 장치의 흔들림의 양을 검출하고 촬영한 영상의 특성을 식별하여 최종적으로 영상의 흔들림을 보정할 수 있다.The VDIS related to the image shake prevention of the present disclosure can correct the shake by detecting the amount of shake by digital signal processing of the image, identifying the image characteristics, and controlling the system. For example, the shake compensation algorithm may be a method of continuously estimating a frame motion vector (FMV) from a local motion vector (LMV) between two frames for a shake compensation parameter. Motion estimation and compensation are basic techniques of video compression, and motion estimation may use a block matching algorithm (BMA), a gradient matching algorithm (GMA), phase correlation, and the like. For example, the VDIS may detect the amount of shake of the electronic device when the user of the electronic device performs an imaging operation, identify characteristics of a captured image, and finally correct the shake of the image.

영상 흔들림 보정을 하는 경우 이미지 지터(image jitter) 현상이 발생할 수 있다.When image stabilization is performed, image jitter may occur.

블러(blur) 현상은 이미지의 포커스가 선명하지 않아 이미지 내의 객체들의 엣지(edge)가 명확하지 않고 흐려져 번지는 듯이 보이는 현상을 의미할 수 있다. 예를 들어, 블러 현상은 이미지 블러(image blur), 모션 블러(motion blur) 또는 블러(blur)로 지칭될 수 있다.The blur phenomenon may refer to a phenomenon in which the edges of objects in the image are not clear and appear blurry because the focus of the image is not clear. For example, the blur phenomenon may be referred to as image blur, motion blur, or blur.

블러가 발생하는 이유는 여러 가지가 존재할 수 있다. 예를 들어, 피사체의 움직임이 셔터 스피드(shutter speed) 보다 빠른 경우 발생할 수 있다. 다른 예로, 어두운 환경 혹은 광량이 부족한 환경(예: 실내)에서 촬상 동작이 이루어질 경우, 전자 장치(카메라)가 부족한 광량을 충당하기 위하여 셔터 스피드를 낮추는 경우 발생할 수 있다.There may be several reasons for blur. For example, it may occur when the movement of the subject is faster than the shutter speed. As another example, when an imaging operation is performed in a dark environment or an environment in which light is insufficient (eg, indoors), the electronic device (camera) lowers the shutter speed in order to compensate for the insufficient amount of light.

이미지 지터(image jitter)는 블러(blur)가 반복되는 영상을 보정하기 위해 OIS 및/또는 VDIS와 같은 흔들림 보정 동작 또는 처리를 수행할 때 발생할 수 있는 현상이다. Image jitter is a phenomenon that may occur when a shake correction operation or processing such as OIS and/or VDIS is performed to correct an image with repeated blur.

예를 들면, 지터는 광량이 충분하지 않은 실내 혹은 어두운 구간에서 발생될 수 있다. 지터를 개선하기 위한 방안으로는 성능이 뛰어난 이미지 센서를 사용하여 광량이 부족한 구간에서도 셔터 스피드를 높이거나, VDIS와 더불어 OIS를 사용하여 입력으로 들어오는 영상의 흔들림을 제거하거나, VDIS를 통한 보정을 약하게 설정하여 지터 자체를 적게 나타나도록 하는 것이 가능할 수 있다.For example, jitter may be generated indoors or in a dark section where the amount of light is not sufficient. As a measure to improve jitter, use a high-performance image sensor to increase the shutter speed even in a section with insufficient light, use VDIS and OIS to eliminate video shake, or reduce the correction through VDIS. It may be possible to set it so that the jitter itself appears less.

다양한 실시예들에 따른 이미지 시그널 프로세서(321)는 카메라 어플리케이션의 구동에 기반하여 촬상 동작의 수행 시, 카메라 모듈에 포함될 수 있는 이미지 센서로부터 감지한 이미지 및/또는 촬영 중인 전자 장치의 움직임을 감지하여 전자 장치의 움직임 관련 데이터를 수집하는 센서 모듈(340)로부터 상기 전자 장치의 움직임 관련 데이터를 수신할 수 있다. 또한, 이미지 시그널 프로세서(321)는, 수신한 정보(예: 이미지 및/또는 움직임 관련 데이터)를 블러 검출용 데이터로 변환하여 이를 기반으로 촬상 동작에서 블러가 발생한 프레임을 검출할수 있다. 일 실시예에 따르면, 이미지 시그널 프로세서(321)는 블러가 발생한 프레임이 베이스 프레임(base frame)인 경우 제거 후 대체할 베이스 프레임을 생성할 수 있다.The image signal processor 321 according to various embodiments detects an image detected by an image sensor that may be included in a camera module and/or a motion of an electronic device being photographed when performing an imaging operation based on driving of a camera application. Motion related data of the electronic device may be received from the sensor module 340 that collects motion related data of the electronic device. In addition, the image signal processor 321 may convert the received information (eg, image and/or motion-related data) into data for blur detection, and detect a frame in which blur occurs in the imaging operation based on the data for blur detection. According to an embodiment, when the frame in which the blur occurs is a base frame, the image signal processor 321 may generate a base frame to be replaced after removal.

다양한 실시예들에 따른 이미지 시그널 프로세서(321)는 카메라 모듈(320) 및/또는 센서 모듈(340)로부터 수신한 전자 장치의 움직임 관련 데이터를 기반으로 소프트웨어를 통해 흔들림 보정을 제어할 수 있다. 이미지 시그널 프로세서(321)는 전자 장치의 움직임 관련 데이터를 제1 프레임 레이트(예: 120fps)에 맞추어, 프레임 별로 카메라 모션 및/또는 자이로 모션에 관한 정보가 포함된 블러 검출용 데이터로 변환하도록 제어할 수 있다. 이하, 제1 프레임 레이트는, 예를 들어, 촬영 프레임 레이트와 혼용되어 사용될 수 있다.The image signal processor 321 according to various embodiments may control shake correction through software based on motion-related data of the electronic device received from the camera module 320 and/or the sensor module 340 . The image signal processor 321 controls to convert the motion-related data of the electronic device into data for blur detection including information on camera motion and/or gyro motion for each frame by matching the first frame rate (eg, 120 fps). can Hereinafter, the first frame rate may be used in combination with, for example, a photographing frame rate.

다양한 실시예들에 따른 이미지 시그널 프로세서(321)는 제1 프레임 레이트에 맞추어 촬영 동작을 수행하는 동안, 프레임 별 카메라 모션 및/또는 자이로 모션에 관한 정보가 포함된 블러 검출용 데이터를 수집하여 블러가 발생한 프레임을 검출하도록 제어할 수 있다. 이미지 시그널 프로세서(321)는 블러 검출용 데이터를 기반으로, 제1 프레임 레이트에 맞추어 촬영된 개별 프레임의 카메라 모션 및/또는 자이로 모션의 변화 폭이 미리 설정된 변화 폭을 초과하는 경우 블러가 발생한 프레임으로 검출하도록 제어할 수 있다. 예를 들어, 이미지 시그널 프로세서(321)가 기준으로 삼는 미리 설정된 카메라 모션 및/또는 자이로 모션의 변화 폭은, 블러가 반복되어 흔들림 보정 시 지터가 발생할 우려가 있을 정도의 변화 폭으로 테이블이 정해져 있을 수 있으며, 사용자의 설정에 의해 변경이 가능할 수 있다.The image signal processor 321 according to various embodiments collects data for blur detection including information on camera motion and/or gyro motion for each frame while performing a photographing operation according to the first frame rate, It can be controlled to detect the generated frame. Based on the data for blur detection, the image signal processor 321 converts the blurring frame to a frame in which the change width of the camera motion and/or the gyro motion of each frame captured according to the first frame rate exceeds a preset change width. can be controlled to detect. For example, the range of change in the preset camera motion and/or gyro motion that the image signal processor 321 uses as a standard is set in a table with a range of change to the extent that there is a risk of jitter when blur is repeated and shake is corrected. and may be changed by the user's setting.

다양한 실시예들에 따른 이미지 시그널 프로세서(321)는 블러가 검출된 프레임이 존재하는 경우, 검출된 이미지(프레임)이 베이스 프레임에 해당하는지 확인할 수 있다. 베이스 프레임은 제2 프레임 레이트(예: 30fps)에 맞추어 표시되는 프레임들을 지칭할 수 있다. 이하, 제2 프레임 레이트는, 예를 들어, 출력 프레임 레이트와 혼용되어 사용될 수 있다. 예를 들어, 이미지 시그널 프로세서(321)는, 제1 프레임 레이트를 30fps 이상으로 설정하여 제2 프레임 레이트가 30fps로 맞추어 표시되도록 할 수 있다. 30fps로 출력되는 영상을 생성하기 위하여, 본 문서의 예시는 전자 장치의 영상 촬영 동작 시 제1 프레임 레이트가 120fps인 기본 동작을 통하여 촬영을 수행하는 것으로 설정한다. 이미지 시그널 프로세서(321)는 120fps로 촬영되는 연속된 4개의 프레임 중 첫 번째 프레임을 베이스 프레임(base frame)으로 확인할 수 있고, 각 베이스 프레임들을 추출하여 최종적으로 30fps의 제2 프레임 레이트에 따른 영상을 표시할 수 있다. 예를 들어, 이미지 시그널 프로세서(321)가 120fps의 기본 동작을 통해 얻은 프레임으로 영상을 생성하게 되면 프레임 간 노출 시간이 짧아 블러의 양이 줄어들 수는 있으나, 짧은 노출 시간으로 인해 30fps 대비 영상이 어두워지고 노이즈(noise)가 발생할 수 있다.When there is a frame in which blur is detected, the image signal processor 321 according to various embodiments may check whether the detected image (frame) corresponds to a base frame. The base frame may refer to frames displayed according to the second frame rate (eg, 30 fps). Hereinafter, the second frame rate may be used in combination with, for example, an output frame rate. For example, the image signal processor 321 may set the first frame rate to 30 fps or higher so that the second frame rate is adjusted to 30 fps and displayed. In order to generate an image output at 30 fps, in the example of this document, it is set that capturing is performed through a basic operation in which the first frame rate is 120 fps during an image capturing operation of the electronic device. The image signal processor 321 may identify a first frame among four consecutive frames shot at 120 fps as a base frame, extract each base frame, and finally generate an image according to a second frame rate of 30 fps. can be displayed For example, when the image signal processor 321 generates an image with frames obtained through a basic operation of 120 fps, the amount of blur may be reduced because the exposure time between frames is short, but the image is dark compared to 30 fps due to the short exposure time. and noise may be generated.

전자 장치의 촬상 동작 시 프레임 레이트가 높게 되면, 셔터 스피드가 빨라지므로 블러로 인한 지터의 발생이 줄어들 수 있다. 다양한 실시예들에 따르면, 전자 장치의 영상 흔들림 보정으로 발생하게 되는 지터는 이미지 자체를 기반으로 하거나 자이로 센서를 기반으로 하여 검출이 가능할 수 있다.When the frame rate is high during the imaging operation of the electronic device, the shutter speed increases, so that jitter due to blur may be reduced. According to various embodiments, jitter generated by image stabilization of the electronic device may be detected based on the image itself or based on the gyro sensor.

이미지 자체를 기반으로 한 지터의 검출은, 예를 들면, 입력 영상 간의 필터링을 통해 확인하여 블러가 많이 존재하면 이미지 첨예성(sharpen)이 저하되기 때문에 영상 전체의 첨예도의 정도를 척도로 지터를 검출할 수 있다.The detection of jitter based on the image itself is checked, for example, through filtering between input images, and if there is a lot of blur, the image sharpness is lowered. can be detected.

자이로 센서를 기반으로 한 지터의 검출은, 예를 들면, 자이로 모션을 통해 흔들림 보정 시 지터가 발생되는 조건과 발생 구간을 구분하여 이루어질 수 있다. 예를 들어, 움직이지 않는 조건(static)은 지터가 발생되지 않으며 수평 회전(panning) 조건은 한 방향으로 일정하게 움직이기 때문에 지터 발생으로 인해 영상 전체에 큰 영향은 없게 된다. 지터의 검출은, 예를 들면, 정지 또는 수평 회전 조건을 제외한 걷거나 뛰는 상황에서 제1 프레임 레이트에 맞춘 프레임 별 카메라 모션 및/또는 자이로 모션을 추출하면 모션의 기울기가 급격하게 변경되는 부분에서 VDIS가 이루어질 시 지터가 발생하게 되므로, 제1 프레임 레이트에 맞춘 프레임 별 블러 검출용 데이터(예: 프레임 별 카메라 모션 및/또는 자이로 모션 정보)를 기반으로 이루어질 수 있다. 본 개시의 경우 지터의 검출 지표로 활용이 될 수 있는 블러를 검출함으로써 지터를 방지할 수 있으며, 프레임 별 자이로 데이터를 기반으로 한 블러 검출 시 1개의 프레임 당 최소 3개 이상의 자이로 데이터를 추출하여 자이로 모션을 계산해 블러를 검출해낼 수 있다.The detection of jitter based on the gyro sensor may be performed, for example, by dividing a condition in which jitter is generated during shake compensation through a gyro motion and a period in which the jitter is generated. For example, a static condition does not generate jitter, and a panning condition causes constant movement in one direction, so that jitter does not significantly affect the entire image. The detection of jitter is, for example, when the camera motion and/or gyro motion is extracted for each frame according to the first frame rate in a walking or running situation except for stationary or horizontal rotation conditions, the VDIS is used in a part where the inclination of the motion changes rapidly Since jitter is generated when this is performed, it may be performed based on data for detecting blur for each frame (eg, camera motion and/or gyro motion information for each frame) tailored to the first frame rate. In the case of the present disclosure, jitter can be prevented by detecting blur that can be used as a jitter detection index, and when blur detection based on gyro data for each frame, at least three gyro data per frame are extracted to extract the gyro data. Blur can be detected by calculating motion.

다양한 실시예들에 따른 이미지 시그널 프로세서(321)는 제2 프레임 레이트에 맞추어 베이스 프레임의 블러 여부를 검출할 수 있다. 이미지 시그널 프로세서(321)는 지터 발생 가능성이 있는 블러 검출 베이스 프레임을 제거하고, 제거된 베이스 프레임을 대체할 베이스 프레임을 생성하도록 할 수 있다. 이미지 시그널 프로세서(321)가 생성하는 베이스 프레임은 제거된 베이스 프레임의 자이로 데이터를 이용하고, 시계열적 연속성을 가지는 프레임의 이미지 정보(예: 영상 정보)를 이용하여 생성되는 것일 수 있다. 예를 들어, 이미지 시그널 프로세서(321)가 대체 베이스 프레임을 생성하는 과정은 제거된 베이스 프레임의 시계열적 연속성을 가지는 프레임으로부터 평균적인 값을 연산하여 합성하여 대체하는 것일 수 있고, 시계열적 연속성을 가지는 프레임을 그대로 대체하는 것일 수도 있으며, 두 가지 방식 모두를 이용하는 것일 수 있다.The image signal processor 321 according to various embodiments may detect whether the base frame is blurred according to the second frame rate. The image signal processor 321 may remove a blur detection base frame that is likely to generate jitter and generate a base frame to replace the removed base frame. The base frame generated by the image signal processor 321 may be generated using gyro data of the removed base frame and image information (eg, image information) of frames having time-series continuity. For example, the process of generating the replacement base frame by the image signal processor 321 may be a process of calculating and synthesizing and replacing an average value from frames having time series continuity of the removed base frame, and having time series continuity It may be to replace the frame as it is, or it may be to use both methods.

다양한 실시예들에 따른 이미지 시그널 프로세서(321)는 전자 장치의 촬상 동작에 따른 제어를 담당할 수 있다. 예를 들어, 이미지 시그널 프로세서(321)는 전자 장치의 움직임에 따른 영상 흔들림 방지를 위한 보정(예를 들어, OIS, VDIS 등)에 이용되는 이미지 센서(예: 도 2의 이미지 센서(230)) 및/또는 이미지 스태빌라이저(예: 도 2의 이미지 스태빌라이저(240))를 제어할 수 있다.The image signal processor 321 according to various embodiments may be in charge of controlling according to an imaging operation of the electronic device. For example, the image signal processor 321 may include an image sensor (eg, the image sensor 230 of FIG. 2 ) used for correction (eg, OIS, VDIS, etc.) for preventing image shake due to the movement of the electronic device. and/or an image stabilizer (eg, the image stabilizer 240 of FIG. 2 ).

이미지 저장부(322)(예: 도 2의 메모리(250))는, 예를 들면, 전자 장치의 촬상 동작을 통해 얻게 된 이미지들을 저장할 수 있으며, 본 개시에서 예로 들고 있는 제1 프레임 레이트(예: 촬영 프레임 레이트)가 120fps로 설정된 이미지 센서(예: 도 2의 이미지 센서(230))들을 통해 획득한 프레임들을 저장할 수 있다. 이미지 저장부(322)에 저장되는 프레임들을 이용하여 이미지 시그널 프로세서(321)는, 예를 들면, 대체할 베이스 프레임을 생성할 수 있다.The image storage unit 322 (eg, the memory 250 of FIG. 2 ) may store, for example, images obtained through an imaging operation of the electronic device, and a first frame rate (eg, an example of the present disclosure). : The frames acquired through the image sensors (eg, the image sensor 230 of FIG. 2 ) in which the shooting frame rate) is set to 120 fps may be stored. The image signal processor 321 may generate, for example, a base frame to be replaced by using the frames stored in the image storage unit 322 .

다양한 실시예들에 따른, 메모리(330)는 도 1의 메모리(130)의 구조 및/또는 기능 중 적어도 일부를 포함할 수 있다. According to various embodiments, the memory 330 may include at least some of the structure and/or functions of the memory 130 of FIG. 1 .

다양한 실시예들에 따른, 센서 모듈(340)은 도 1의 센서 모듈(176)의 구조 및/또는 기능 중 적어도 일부를 포함할 수 있다. 예를 들어, 센서 모듈(340)은 자이로 센서를 포함할 수 있고, 전자 장치의 움직임(예: 사용자의 손떨림에서 야기되는 흔들림, 촬영 방법에 의한 흔들림 등)을 감지하도록 제어될 수 있다. 다른 실시예에 따르면, 센서 모듈(340)은 전자 장치의 움직임을 감지한 결과로 생성된 전자 장치의 움직임 관련 데이터(예: 제2데이터)를 이미지 시그널 프로세서(321)로 송신(예: 감지 결과의 전송)하도록 제어될 수 있다.According to various embodiments, the sensor module 340 may include at least some of the structure and/or function of the sensor module 176 of FIG. 1 . For example, the sensor module 340 may include a gyro sensor, and may be controlled to detect a movement of the electronic device (eg, a shake caused by a user's hand shake, a shake caused by a photographing method, etc.). According to another embodiment, the sensor module 340 transmits the motion-related data (eg, second data) of the electronic device generated as a result of detecting the motion of the electronic device to the image signal processor 321 (eg, the detection result) of transmission) can be controlled.

도 4는 다양한 실시예들에 따른, 이미지 처리 기능을 가지는 전자 장치의 동작 방법에 관한 흐름도이다. 예를 들면, 전자 장치(예: 도 1의 전자 장치(101))에서의 영상 흔들림 방지 기능에 관한 흐름도이다. 이하 실시예들에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며 적어도 두 가지 이상의 동작들이 병렬적으로 수행될 수도 있다. 이하, 본 개시의 다양한 실시예에 따른 전자 장치의 동작은 전자 장치의 프로세서(예: 도 1의 프로세서(120), 도 3의 프로세서(310), 또는 도 3의 이미지 시그널 프로세서(321))에 의하여 수행될 수 있다.4 is a flowchart illustrating a method of operating an electronic device having an image processing function, according to various embodiments of the present disclosure; For example, it is a flowchart related to an image shake prevention function in an electronic device (eg, the electronic device 101 of FIG. 1 ). In the following embodiments, each operation may be sequentially performed, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two or more operations may be performed in parallel. Hereinafter, the operation of the electronic device according to various embodiments of the present disclosure is performed by the processor of the electronic device (eg, the processor 120 of FIG. 1 , the processor 310 of FIG. 3 , or the image signal processor 321 of FIG. 3 ). can be performed by

도 4를 참조하면, 프로세서는 동작 401에서 제1 프레임 레이트(frame rate)에 맞추어 촬영을 수행하도록 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320))을 제어할 수 있다. 예를 들어, 전자 장치의 제1 프레임 레이트는 120fps로 설정되어 있을 수 있다. 제1 프레임 레이트를 120fps로 맞추어 촬영을 수행하는 경우, 연속된 4개의 프레임 마다 첫 번째 프레임(예: 베이스 프레임)만을 나열하게 되면 영상 촬영의 결과물은 30fps로 표시될 수 있다.Referring to FIG. 4 , the processor controls the camera module (eg, the camera module 180 of FIG. 1 and the camera module 320 of FIG. 3 ) to perform shooting according to a first frame rate in operation 401 . can do. For example, the first frame rate of the electronic device may be set to 120 fps. When shooting is performed by setting the first frame rate to 120 fps, if only the first frame (eg, base frame) is listed in every four consecutive frames, the result of image capturing may be displayed at 30 fps.

프로세서는 동작 402에서 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340))을 통해 전자 장치의 움직임 관련 데이터를 감지하도록 제어할 수 있다. 센서 모듈은, 예를 들면, 자이로 센서, 가속도 센서, 및/또는 제스처 센서 등을 포함할 수 있다. 전자 장치의 움직임 관련 데이터는, 예를 들면, 촬영 중인 이미지에 기반한 제1 데이터(예: 이미지 센서를 통해 감지된 데이터) 및/또는 전자 장치의 움직임을 기반으로 한 제2 데이터(예: 센서 모듈을 통해 감지된 데이터)를 포함할 수 있다. 이하, 제1 데이터는 이미지 엣지(edge) 데이터를 포함할 수 있고, 제2 데이터는 자이로(gyro) 데이터를 포함할 수 있다. 프로세서는, 동작 401의 제1 프레임 레이트에 맞추어 일정한 시간 간격(예: 동일한 시간 간격, 동일한 거리 간격)으로 촬영을 제어할 수 있다.In operation 402, the processor may control to detect movement-related data of the electronic device through a sensor module (eg, the sensor module 176 of FIG. 1 and the sensor module 340 of FIG. 3 ). The sensor module may include, for example, a gyro sensor, an acceleration sensor, and/or a gesture sensor. The motion-related data of the electronic device may include, for example, first data (eg, data sensed through an image sensor) based on an image being photographed and/or second data based on the motion of the electronic device (eg, a sensor module) data detected through ). Hereinafter, the first data may include image edge data, and the second data may include gyro data. The processor may control photographing at regular time intervals (eg, the same time interval and the same distance interval) in accordance with the first frame rate in operation 401 .

도 4를 참조하면, 프로세서는 동작 403에서 제1 프레임 레이트에 맞추어 전자 장치의 움직임 관련 데이터(예: 제1 데이터, 또는 제2 데이터)를 블러(blur) 검출 데이터로 변환할 수 있다. 프로세서는 전자 장치의 움직임 관련 데이터를 제1 프레임 레이트에 맞추어 프레임 별로 카메라 모션 및/또는 자이로 모션에 관한 정보가 포함될 수 있는 블러 검출 데이터로 변환할 수 있다.Referring to FIG. 4 , in operation 403 , the processor may convert motion-related data (eg, first data or second data) of the electronic device into blur detection data according to a first frame rate. The processor may convert motion-related data of the electronic device into blur detection data that may include information on camera motion and/or gyro motion for each frame according to the first frame rate.

동작 403의 블러 검출 데이터 중 카메라 모션에 관한 정보는, 예를 들면, 제1 프레임 레이트에 맞추어 수집되는 프레임 별 카메라의 모션에 관한 지표에 해당할 수 있다. 또한, 프로세서는 카메라 모션(camera motion)을 연산할 수 있다. 예를 들어, 카메라 모션은 전자 장치의 촬상 동작의 수행에서 일어나는 전자 장치의 움직임을 의미할 수 있으며, 카메라의 궤적 혹은 이동 경로 등으로 표현이 될 수도 있다.The information on the camera motion among the blur detection data in operation 403 may correspond to, for example, an index regarding the motion of the camera for each frame collected according to the first frame rate. In addition, the processor may calculate a camera motion. For example, the camera motion may mean a movement of the electronic device that occurs when the electronic device performs an imaging operation, and may be expressed as a trajectory or a movement path of the camera.

동작 403의 블러 검출 데이터 중 자이로 모션에 관한 정보는, 예를 들면, 프레임 모션을 수집하는 것일 수 있다. 프레임 모션은 이미지 모션(image motion)과 자이로 모션(gyro motion)을 포함하는 개념일 수 있으며, 프레임 모션은 흔들림 보정을 위한 VDIS에서 활용되는 것으로 30fps 또는 60fps 등을 기본 동작으로 할 수 있다. 전자 장치의 카메라 모듈에 포함될 수 있는 이미지 스태빌라이저(예: 도 2의 이미지 스태빌라이저(240))는 VDIS를 수행할 수 있으며, 이미지 스태빌라이저를 제어하는 것은 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서, 도 3의 이미지 시그널 프로세서(321))일 수 있다. 프레임 모션은 제2 프레임 레이트에 맞추어 나열되는 베이스 프레임(base frame)들의 표시 영상에서 베이스 프레임 간의 모션으로 이해될 수 있다. 이는 이미지 모션과 자이로 모션을 통한 벡터의 활용으로 획득될 수 있다.Information about the gyro motion among the blur detection data in operation 403 may be, for example, collecting frame motion. Frame motion may be a concept including image motion and gyro motion, and frame motion is utilized in VDIS for shake compensation and may be 30fps or 60fps as a basic motion. An image stabilizer that may be included in the camera module of the electronic device (eg, the image stabilizer 240 of FIG. 2 ) may perform VDIS, and a processor (eg, the processor 120 of FIG. 1 , FIG. 1 ) controls the image stabilizer. 2, the image signal processor 321 of FIG. 3). The frame motion may be understood as motion between base frames in a display image of base frames arranged according to the second frame rate. This can be achieved by utilizing vectors through image motion and gyro motion.

도 4를 참조하면, 프로세서는 동작 404에서 블러 검출 데이터를 기반으로 제2 프레임 레이트에 맞추어 프레임 별 블러를 검출할 수 있다. 예를 들어, 제2 프레임 레이트를 30fps로 하여 영상을 표시하기 위하여 120fps의 촬영 프레임 레이트에 맞추어 촬영 시 4개의 프레임을 한 묶음의 단위로 할 수 있다. 베이스 프레임은 한 묶음 단위의 첫 번째 프레임을 지칭할 수 있으며, 이는 묶음 단위의 시작점을 어떻게 설정하는지에 따라 달라질 수 있고 커스터마이징(customizing)에 의해 변경이 용이할 수 있다.Referring to FIG. 4 , in operation 404 , the processor may detect the blur for each frame according to the second frame rate based on the blur detection data. For example, in order to display an image at a second frame rate of 30 fps, four frames may be set as a unit when shooting according to a shooting frame rate of 120 fps. The base frame may refer to the first frame of a bundle unit, which may vary depending on how the start point of the bundle unit is set, and may be easily changed by customizing.

도 4를 참조하면, 프로세서는 동작 405에서 베이스 프레임에 블러가 존재하는지 검출할 수 있다. 베이스 프레임에 블러가 존재하는지 검출하는 이유는, 베이스 프레임에 블러가 발생하였다면 흔들림 보정으로 인하여 영상에 지터가 발생할 확률이 높기 때문일 수 있다.Referring to FIG. 4 , the processor may detect whether blur exists in the base frame in operation 405 . The reason for detecting whether blur exists in the base frame may be because, if blur occurs in the base frame, there is a high probability of jitter occurring in the image due to shake correction.

도 4를 참조하면, 프로세서는 동작 405에서 베이스 프레임에 블러가 존재하는 것으로 확인된 경우, 동작 406에서 블러의 존재하는 베이스 프레임을 제거할 수 있다. 베이스 프레임에 블러가 존재하게 되면 영상에 지터가 발생할 확률이 높은바, 프로세서는 동작 406를 통하여 블러가 존재하는 베이스 프레임을 제거할 수 있다.Referring to FIG. 4 , when it is determined that blur exists in the base frame in operation 405 , the processor may remove the existing base frame in operation 406 . When blur is present in the base frame, there is a high probability that jitter occurs in the image, and the processor may remove the base frame in which the blur is present through operation 406 .

도 4를 참조하면, 프로세서는 동작 405에서 베이스 프레임에 블러가 존재하지 않는 것으로 확인된 경우, 추가적인 동작을 수행하지 않고, 종료할 수 있다.Referring to FIG. 4 , when it is determined that blur does not exist in the base frame in operation 405 , the processor may terminate without performing an additional operation.

도 4를 참조하면, 프로세서는 동작 407에서, 동작 406을 통해 제거된 베이스 프레임을 대체할 베이스 프레임을 생성할 수 있다. 예를 들어, 프로세서는 제거된 베이스 프레임을 대신하여 영상에 표시될 새로운 베이스 프레임을 생성 및 대체할 수 있다. 일 실시예에 따르면, 프로세서는 제거된 베이스 프레임과 시계열적 연속성을 갖는 프레임을 기반으로 대체할 베이스 프레임을 생성할 수 있으며, 제거된 베이스 프레임의 자이로 데이터는 생성된 베이스 프레임에 그대로 이용할 수 있다. 또한, 대체할 베이스 프레임의 영상 정보(예: 이미지 정보)는 시계열적 연속성을 가지는 프레임들의 평균적인 값을 합성하여 획득될 수 있고, 시계열적 연속성을 가지는 프레임을 그대로 이용하여 대체될 수도 있으며, 두 가지 방식 모두를 이용할 수도 있다.Referring to FIG. 4 , in operation 407 , the processor may generate a base frame to replace the base frame removed in operation 406 . For example, the processor may generate and replace a new base frame to be displayed in an image in place of the removed base frame. According to an embodiment, the processor may generate a replacement base frame based on the removed base frame and a frame having time-series continuity, and gyro data of the removed base frame may be used as it is in the generated base frame. In addition, image information (eg, image information) of the base frame to be replaced may be obtained by synthesizing the average values of frames having time-series continuity, or may be replaced by using frames with time-series continuity as it is, You can use both methods.

도 4에 도시되지는 않았으나, 프로세서는 흔들림 보정을 통해 어두워진 프레임에 대해서는 디지털 게인 보상(digital gain interpolation)을 할 수 있다. 프로세서는 롤링 셔터 보상(rolling shutter compensation, RSC) 값을 연산할 수 있다. 프로세서는 제2 프레임 레이트(예: 30fps)에 맞추어 표시되는 영상이 RSC를 통하여 베이스 프레임의 싱크(sync)가 맞는지 자이로 데이터를 이용하여 확인할 수 있다. 프로세서가 활용하게 되는 자이로 데이터는, 제거된 베이스 프레임이 존재하더라도 제거된 베이스 프레임의 자이로 데이터를 그대로 활용하게 될 수 있다.Although not shown in FIG. 4 , the processor may perform digital gain interpolation with respect to the darkened frame through shake correction. The processor may calculate a rolling shutter compensation (RSC) value. The processor may check whether an image displayed according to the second frame rate (eg, 30 fps) is in sync with the base frame through the RSC using the gyro data. As for the gyro data used by the processor, even if the removed base frame exists, the gyro data of the removed base frame may be used as it is.

도 5a 및 도 5b는 전자 장치의 촬상 동작 수행에 따른 영상의 표시를 위한 베이스 프레임의 추출 방법에 대한 예시도이다. 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101))의 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320))을 이용하여 촬영을 수행하도록 제어할 수 있다. 다양한 실시예에 따르면, 전자 장치의 영상 촬영 수행에 있어서, 프로세서는 제1 프레임 레이트(예: 120fps)에 맞추어 개별 프레임 마다 블러의 존재 여부를 검출할 수 있다.5A and 5B are exemplary diagrams of a method of extracting a base frame for displaying an image according to an imaging operation performed by an electronic device. Processors (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , and the image signal processor of FIG. 3 ) of the electronic device (eg, the electronic device 101 of FIG. 1 ) according to various embodiments 321)) may control to perform photographing using a camera module (eg, the camera module 180 of FIG. 1 and the camera module 320 of FIG. 3 ). According to various embodiments, when the electronic device performs image capturing, the processor may detect the presence of blur for each individual frame in accordance with the first frame rate (eg, 120 fps).

예를 들면, 프로세서는 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340))을 통해 자이로 모션(gyro motion)을 획득할 수 있다. 프로세서는 자이로 모션을 이용하여 카메라의 궤적을 프레임 별로 얻을 수 있다. 일 실시예에 따르면, 프로세서는 프레임 넘버(예: 시간의 흐름에 따른 순서로 매긴 번호)에 따른 카메라 궤적의 급변 구간(예: 모션의 기울기가 크게 변경되는 구간)이 존재 시, 해당 프레임에서 블러가 존재한다고 판단할 수 있다. 예를 들면, 전술한 카메라 궤적의 급변 구간은 도 3의 설명에 기재된 바와 같이 블러 검출 데이터에 포함될 수 있는 카메라 모션 및/또는 자이로 모션의 변화 폭에 해당할 수 있다. 또한, 프로세서는 제1 프레임 레이트에 맞추어 프레임 별로 블러의 존재 유무를 판단하여 지터가 발생할 염려가 있는 블러 프레임을 검출할 수 있고, 제2 프레임 레이트(예: 30fps)에 따른 베이스 프레임에 블러가 있는지 판단할 수 있다.For example, the processor may acquire a gyro motion through a sensor module (eg, the sensor module 176 of FIG. 1 and the sensor module 340 of FIG. 3 ). The processor may obtain the trajectory of the camera for each frame by using the gyro motion. According to an embodiment, the processor, when there is a section (for example, a section in which the inclination of motion is greatly changed) of the camera trajectory according to the frame number (e.g., a number assigned in order according to the passage of time) exists, blur in the corresponding frame can be judged to exist. For example, the aforementioned rapid change section of the camera trajectory may correspond to a change width of a camera motion and/or a gyro motion that may be included in the blur detection data as described in the description of FIG. 3 . In addition, the processor can detect a blur frame that is likely to cause jitter by determining the presence or absence of blur for each frame in accordance with the first frame rate, and whether there is blur in the base frame according to the second frame rate (eg 30 fps). can judge

도 5a는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 베이스 프레임 추출에 관한 예시도이다.5A is an exemplary diagram illustrating base frame extraction when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;

도 5a를 참조하면, 다양한 실시예들에 따른 전자 장치는 카메라 어플리케이션의 실행에 기반하여 영상의 촬영 시(예: 촬상 동작 시) 제1 프레임 레이트에 맞추어 촬영을 수행할 수 있다. 예를 들어, 전자 장치를 통해 출력하고자 하는 영상의 프레임 레이트를 30fps에 맞추기 위하여 120fps의 프레임 레이트로 실제 촬영을 하고, 전자 장치의 프로세서를 통한 이미지 합성 및/또는 생성을 통해 30fps로 영상이 출력이 되도록 조정이 가능할 수 있다.Referring to FIG. 5A , the electronic device according to various embodiments may perform capturing according to a first frame rate when capturing an image (eg, during an image capturing operation) based on execution of a camera application. For example, in order to match the frame rate of the image to be output through the electronic device to 30 fps, actual shooting is performed at a frame rate of 120 fps, and the image is output at 30 fps through image synthesis and/or creation through the processor of the electronic device. It may be possible to adjust as much as possible.

도 5a를 참조하면, 다양한 실시예에 따른 전자 장치의 촬상 동작은 120fps의 제2 프레임 레이트에 맞추어 실시 중일 수 있다. 도 5a에 도시된 프레임들(510 내지 580)은 각각 1개의 프레임을 나타낼 수 있다. 전자 장치를 통한 영상 촬영으로 출력되는 영상이 30fps로 반영이 되려면, 120fps로 촬영 중인 영상을 4개의 프레임 씩 1개의 묶음으로 하여 각 묶음 별 베이스 프레임 (base)(예: 1번 프레임(510), 5번 프레임(550))을 추출하여 나열하는 방식을 이용할 수 있다. 베이스 프레임은 각 묶음의 첫 번째 프레임을 의미할 수 있다.Referring to FIG. 5A , an imaging operation of the electronic device according to various embodiments may be being performed according to a second frame rate of 120 fps. Each of the frames 510 to 580 illustrated in FIG. 5A may represent one frame. In order for the image output by the image shooting through the electronic device to be reflected at 30 fps, the image being shot at 120 fps is divided into one bundle of 4 frames each, and a base frame for each bundle (eg, frame 1 510), A method of extracting and arranging the fifth frame 550) may be used. The base frame may mean the first frame of each bundle.

도 5a를 참조하면, 영상 촬영을 진행함에 있어서, 30fps의 영상을 출력하기 위한 시작점(예: 첫 번째 베이스 프레임)은 전자 장치의 기본 설정에 의해 정해지거나 커스터마이징을 통해 변경이 가능할 수 있다. 예를 들어, 도 5a의 1번 프레임(510)을 촬영하여 추출을 시작하는 순간이 시작점으로 설정될 수 있다. 또 다른 실시예로, 5번 프레임(550)을 시작점으로 하게 될 수 있으며, 제1 프레임 레이트(예: 120fps)를 통한 촬영으로 제2 프레임 레이트(예: 30fps)의 영상을 얻기 위해서는 1개의 묶음 당 4개의 프레임이 요구될 수 있다.Referring to FIG. 5A , when capturing an image, a starting point (eg, a first base frame) for outputting an image of 30 fps may be determined by a basic setting of the electronic device or may be changed through customization. For example, the moment when the first frame 510 of FIG. 5A is photographed and extraction is started may be set as the starting point. As another embodiment, the 5th frame 550 may be a starting point, and in order to obtain an image of a second frame rate (eg 30 fps) by shooting through a first frame rate (eg, 120 fps), one bundle Four frames per may be required.

도 5a에 도시된 프레임들(510 내지 580)은 가로 축을 시간(time)으로 하여 시간 순서대로 나열된 것이며, 프레임들 간의 시간 간격은 일정하게 조정될 수 있다. 또한, 프레임 별로 획득되는 제2 데이터(예: 자이로 데이터)(gyro data)(511 내지 583)(예: 510 내지 580 프레임에서의 3개의 세로 줄로 도시)는 임의의 시간 간격을 기준으로 하여 획득될 수 있다. 일 실시예에 따르면, 도시된 프레임들(510 내지 580) 간의 시간 간격 및/또는 제2 데이터의 시간 간격은, 도시된 실시예에 한정되는 것은 아니며, 다양한 실시예에 따라 시간 간격이 변경될 수 있다. 예를 들면, 자이로 데이터가 추출되는 시간 간격이 동일 또는 유사하지 않고, 서로 상이할 수 있다.The frames 510 to 580 illustrated in FIG. 5A are arranged in chronological order with the horizontal axis as time, and the time interval between the frames may be constantly adjusted. In addition, the second data (eg, gyro data) 511 to 583 (eg, shown by three vertical lines in frames 510 to 580) acquired for each frame may be acquired based on an arbitrary time interval. can According to an embodiment, the time interval between the illustrated frames 510 to 580 and/or the time interval of the second data is not limited to the illustrated embodiment, and the time interval may be changed according to various embodiments. have. For example, time intervals for extracting gyro data may not be the same or similar, and may be different from each other.

도 5a를 참조하면, 전자 장치의 촬상 동작 시 획득되는 프레임 별 제2 데이터가 셀로의 줄로 3개씩 도시되었으나, 이는 예시에 불과할 뿐 개수에 한정은 없으며 3개 이상이 포함될 수도 있다.Referring to FIG. 5A , three pieces of second data for each frame obtained during an imaging operation of the electronic device are shown in rows of cells, but this is only an example and the number is not limited and may include three or more.

도 5a를 참조하면, 프로세서는 1번 프레임(510)부터 2번 프레임(520)까지의 이미지 모션(image motion)은 MV12로 도시될 수 있고, MV12에 대응하는 자이로 모션(gyro motion)은 MVg12로 도시될 수 있다. 프레임들(510 내지 580) 간의 이미지 모션 및/또는 자이로 모션은 MV12, 및/또는 MVg12와 동일 또는 유사하므로, 이하 중복되는 설명은 생략하도록 한다. 프로세서가 자이로 모션(gyro motion)을 찾는데 중요한 영향을 미치는 것은 베이스 프레임일 수 있다. 그러나 베이스 프레임 이외의 프레임들을 통해 카메라의 이동 방향을 미리 알 수 있다. 도 5a의 1번 프레임부터 5번 프레임까지의 이미지 모션(image motion)에(MV15(motion vector)) 대응하는 자이로 모션은 MVg15(gyro motion vector) 이지만, MVg56, MVg67, 및 MVg78을 통해 카메라의 이동 방향을 알 수 있다. 이와 같이 카메라 궤적을 이용하여 모션 스무딩(motion smoothing)을 하게 될 때 미래 시점의 움직임 정보를 추가적으로 예측할 수 있기 때문에 모션에 대한 대응을 하기 쉬울 수 있다. 예를 들어, 이전의 모션으로부터 MVg15 까지는 panning 동작 이었다고 가정 시 MVg56, MVg67, 및 MVg78을 통해 앞으로도 panning 으로 동작할지, 속도는 어떻게 될지 미리 분석을 할 수 있다. 따라서 연속적인 급격한 움직임에 대해 프로세서가 대응을 유연하게 할 수 있다.Referring to FIG. 5A , the processor indicates that the image motion from the first frame 510 to the second frame 520 may be shown as MV12, and the gyro motion corresponding to MV12 may be shown as MVg12. can be shown. Since the image motion and/or the gyro motion between the frames 510 to 580 is the same as or similar to the MV12 and/or MVg12, a redundant description will be omitted below. It may be the base frame that has a significant influence on the processor to find the gyro motion. However, the movement direction of the camera can be known in advance through frames other than the base frame. The gyro motion corresponding to the image motion (MV15 (motion vector)) from frame 1 to frame 5 in FIG. 5A is gyro motion vector (MVg15), but the movement of the camera through MVg56, MVg67, and MVg78 direction can be found. As described above, when motion smoothing is performed using the camera trajectory, motion information at a future viewpoint can be additionally predicted, so it can be easy to respond to motion. For example, assuming that it was a panning operation from the previous motion to MVg15, it is possible to analyze in advance whether panning operation will be performed and the speed will be through MVg56, MVg67, and MVg78. Therefore, the processor can flexibly respond to continuous sudden movements.

도 5b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 시 베이스 프레임의 블러 검출에 관한 예시도이다.5B is an exemplary diagram illustrating blur detection of a base frame during an imaging operation of an electronic device, according to various embodiments of the present disclosure;

다양한 실시예에 따른 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 전자 장치(예: 도 1의 전자 장치(101))의 촬상 동작 시, 베이스 프레임(base)을 추출하여 제2 프레임 레이트에 맞추어 영상을 출력하도록 제어할 수 있다.The processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , and the image signal processor 321 of FIG. 3 ) according to various embodiments of the present disclosure includes an electronic device (eg, the electronic device 101 of FIG. 1 ). )), it is possible to control to extract a base frame and output an image according to the second frame rate.

도 5a 및 도 5b를 참조하면, 프로세서는 전자 장치의 촬상 동작 시 흔들림 보정의 동작을 제어할 수 있다. 프로세서는 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320))의 이미지 스태빌라이저(예: 도 2의 이미지 스태빌라이저(240))를 제어하여 흔들림 방지를 위한 보정 동작을 수행하도록 할 수 있다. 예를 들어, 흔들림 보정은 광학적 영상 흔들림 방지(optical image stabilizer, OIS), 및/또는 전자적 영상 흔들림 방지(video digital image stabilizer, VDIS)의 방식일 수 있다.5A and 5B , the processor may control an operation of shake correction during an imaging operation of the electronic device. The processor controls the image stabilizer (eg, the image stabilizer 240 of FIG. 2 ) of the camera module (eg, the camera module 180 of FIG. 1 and the camera module 320 of FIG. 3 ) to perform a correction operation for preventing shake can make it work. For example, the shake correction may be an optical image stabilizer (OIS) and/or a video digital image stabilizer (VDIS) method.

도 5a 및 도 5b를 참조하면, 도 5a에서 베이스 프레임은 1번 프레임(510)과 5번 프레임(550)이 될 수 있다. 예를 들어, 프로세서는 흔들림 방지를 위해 자동 조리개 조절(automatic exposure, AE) 등을 이용하여 이미지 스태빌라이저를 통해 흔들림 방지를 위한 보정을 제어할 수 있다. 프로세서의 흔들림 보정의 결과, 베이스 프레임 중 하나인 5번 프레임(550)(예: 제1 베이스 프레임)에는 이미지 열화인 블러(blur)가 발생될 수 있다.Referring to FIGS. 5A and 5B , in FIG. 5A , the base frame may be a No. 1 frame 510 and a No. 5 frame 550 . For example, the processor may control correction for image stabilization through the image stabilizer by using automatic exposure (AE) or the like for image stabilization. As a result of the shake correction of the processor, blur, which is image deterioration, may occur in the fifth frame 550 (eg, the first base frame), which is one of the base frames.

베이스 프레임에 블러가 발생되면, 제2 프레임 레이트(예: 30fps)에 맞추어 베이스 프레임들(510, 550)을 합성하여 영상을 표시하게 될 때 지터(jitter)가 발생될 수 있다. 프로세서는 지터가 발생할 확률이 높은 블러 프레임을 검출할 수 있다.When blur is generated in the base frame, jitter may be generated when an image is displayed by synthesizing the base frames 510 and 550 according to the second frame rate (eg, 30 fps). The processor may detect a blur frame having a high probability of occurrence of jitter.

다양한 실시예에 따른 프로세서는 블러가 발생된 베이스 프레임(예: 제1 베이스 프레임)을 제거할 수 있다. 도 5b를 참조하면, 5번 프레임(550)은 베이스 프레임이지만, 블러가 생겨 흔들림 보정 시(예: OIS, VDIS 등) 지터 발생 확률이 높은 바, 프로세서는 5번 프레임(550)이 베이스 프레임으로서 부적합하므로 제거하는 동작을 수행하도록 제어할 수 있다. 일 실시예에 따르면, 프로세서는 제거된 5번 프레임(550)을 대체할 베이스 프레임(예: 제2 베이스 프레임)을 생성하도록 제어할 수 있다. 이 때, 프로세서는 기존의 5번 프레임(550)에서 추출한 시간 별 자이로 데이터 및 5번 프레임(550)과 시간적 연속성을 갖는 프레임(예: 4번 프레임(540), 6번 프레임(560))의 이미지를 활용하여 새로운 베이스 프레임(예: 제2 베이스 프레임)을 생성할 수 있다. 새로이 생성되는 베이스 프레임은 4번 프레임(540) 또는 6번 프레임(560)의 이미지(예: 제1 데이터)를 그대로 활용하는 것(예: 프레임의 이미지 교체)일 수 있고, 4번 프레임(540) 및 6번 프레임(560)의 평균적인 값으로 합성한 이미지(미도시)를 활용하는 것일 수도 있으며, 이에 한정되는 것은 아니다.The processor according to various embodiments may remove a base frame (eg, a first base frame) in which blur is generated. Referring to FIG. 5B , although the fifth frame 550 is a base frame, there is a high probability of jitter occurring when blur is generated (eg, OIS, VDIS, etc.) and the processor determines that the fifth frame 550 is the base frame. Since it is inappropriate, it can be controlled to perform an action to remove it. According to an embodiment, the processor may control to generate a base frame (eg, a second base frame) to replace the removed fifth frame 550 . At this time, the processor performs time-specific gyro data extracted from the existing frame 5 550 and frames having temporal continuity with the frame 5 550 (eg, frame 4 540 and frame 6 560). A new base frame (eg, a second base frame) may be generated using the image. The newly generated base frame may be using the image (eg, first data) of the 4th frame 540 or 6th frame 560 as it is (eg, replacing the image of the frame), and the 4th frame 540 ) and an image (not shown) synthesized with the average value of the 6th frame 560 may be used, but is not limited thereto.

다양한 실시예에 따르면, 새로운 베이스 프레임(예: 제2 베이스 프레임)으로의 대체 과정은, 제거된 베이스 프레임(550) (예: 제1 베이스 프레임)의 주변 프레임(예: 4번 프레임(540), 6번 프레임(560))의 영상 정보(예: 이미지 정보)를 활용하는 것이고, 생성된 베이스 프레임 (예: 제2 베이스 프레임)에 적용되는 자이로 데이터는 제거된 베이스 프레임(550) (예: 제1 베이스 프레임)의 제2 데이터를 이용하는 것일 수 있다.According to various embodiments, the replacement process with a new base frame (eg, the second base frame) may include a peripheral frame (eg, the fourth frame 540 ) of the removed base frame 550 (eg, the first base frame). , is to utilize the image information (eg, image information) of the 6th frame 560), and the gyro data applied to the generated base frame (eg, the second base frame) is the removed base frame 550 (eg: The second data of the first base frame) may be used.

다양한 실시예들에 따른 블러 검출 과정은, 이미지 센서(예: 도 2의 이미지 센서(230))를 포함할 수 있는 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320)) 및/또는 자이로 센서를 포함할 수 있는 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340))을 통해 감지한 영상 정보로부터 제1 데이터(예: 이미지 센서를 통해 감지한 촬영 이미지를 기반으로 할 수 있다.) 및/또는 제2 데이터(예: 센서 모듈을 통해 감지한 전자 장치의 움직임을 기반으로 할 수 있다.)를 감지하여 수집하는 과정을 포함할 수 있다.The blur detection process according to various embodiments includes a camera module (eg, the camera module 180 of FIG. 1 , the camera module of FIG. 3 ) that may include an image sensor (eg, the image sensor 230 of FIG. 2 ). 320)) and/or the first data (eg, image It may be based on a captured image sensed by a sensor) and/or second data (eg, it may be based on a movement of an electronic device sensed through a sensor module) and includes a process of detecting and collecting can do.

다양한 실시예들에 따른 움직임 관련 데이터 획득 과정은, 프로세서가 전자 장치의 카메라 촬영(예: 촬상 동작)에 의한 이미지들의 제1 데이터 및/또는 제2 데이터의 전자적 데이터를 획득하는 과정을 포함할 수 있다. 상기 제1 데이터 및/또는 제2 데이터는 개별 프레임에서 일정 간격으로 추출되는 타임 스탬프(time stamp)로 볼 수 있으며, 이는 프로세서에서 활용이 될 수 있다. 예를 들면, 제2 데이터는 각속도와 타임 스탬프의 정보를 포함할 수 있으며, 타임 스탬프를 획득하는 것은 프로세서(예: 메인 프로세서(121))를 이용한 것일 수 있다.The process of acquiring motion-related data according to various embodiments may include a process in which the processor acquires electronic data of first data and/or second data of images by a camera photographing (eg, imaging operation) of the electronic device. have. The first data and/or the second data may be viewed as time stamps extracted from individual frames at regular intervals, which may be utilized by the processor. For example, the second data may include information on angular velocity and time stamp, and obtaining the time stamp may be performed using a processor (eg, the main processor 121 ).

도 6a는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 베이스 프레임의 제2 데이터(예: 자이로 데이터) 획득에 관한 예시도이다.6A is an exemplary diagram of acquiring second data (eg, gyro data) of a base frame when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;

도 5a 내지 도 6a를 참조하면, 도 5a 및 도 5b의 개별 프레임들(510 내지 580) 별 세로 줄(511 내지 583)은 개별 프레임들의 제2 데이터일 수 있다. 또한, 도 6a의 1번 프레임(510) 및 5번 프레임(550)의 가로 줄은 개별 프레임들의 제2 데이터일 수 있으며, 도 5a 내지 도 5b에 도시된 프레임 별 세로 줄에 대응될 수 있다.Referring to FIGS. 5A to 6A , vertical lines 511 to 583 for each of the individual frames 510 to 580 of FIGS. 5A and 5B may be second data of the individual frames. In addition, horizontal lines of frames 1 510 and 5 550 of FIG. 6A may be second data of individual frames, and may correspond to vertical lines for each frame shown in FIGS. 5A to 5B .

도 5a 내지 도 6a를 참조하면, 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 전자 장치의 움직임 관련 데이터(예: 제1 데이터, 제2 데이터)를 감지하도록 제어할 수 있다. 예를 들어, 프로세서는 이미지 센서(예: 도 2의 이미지 센서(230))를 통해 감지한 영상 정보(예: 이미지 정보)로부터 확인한 제1 데이터(예: 이미지 엣지 데이터), 및/또는 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340))을 통해 감지한 전자 장치의 움직임 정보로부터 확인한 제2 데이터(예: 자이로 데이터)를 획득할 수 있다.5A to 6A , the processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , and the image signal processor 321 of FIG. 3 ) may include movement-related data (eg, the processor 120 of FIG. 1 ). : The first data, the second data) can be controlled to be detected. For example, the processor may include first data (eg, image edge data) confirmed from image information (eg, image information) detected through an image sensor (eg, image sensor 230 of FIG. 2 ), and/or a sensor module Second data (eg, gyro data) identified from motion information of the electronic device sensed through (eg, the sensor module 176 of FIG. 1 , and the sensor module 340 of FIG. 3 ) may be acquired.

도 5a 내지 도 6a을 참조하면, 프로세서는 개별 프레임 마다 임의의 시간 간격으로 제2 데이터(511 내지 513, 551 내지 553)를 수집할 수 있다. 예를 들어, 프로세서는 센서 모듈을 통해 1번 프레임(510)의 제2 데이터(511 내지 513)를 3회에 걸쳐 감지하도록 제어할 수 있다. 이 경우 감지된제2 데이터 1_1(gyro data 1_1)(511), 제2 데이터 1_2(gyro data 1_2)(512), 및 제2 데이터 1_3(gyro data 1_3)(513)는 임의의 시간 간격(예: 거리 간격)에 따라 감지될 수 있다. 프로세서가 제2 데이터를 획득하는 임의의 시간 간격은 개별 프레임을 촬영하는 시간에 대응하여 달라질 수 있으며, 제1 프레임 레이트(예: 120fps)에 따라 변경 가능할 수 있다. 또한, 동일한 시간 간격은 각속도를 이용하여 거리를 연산되어, 개별 프레임 마다 동일한 간격의 개념이 적용될 수 있다.5A to 6A , the processor may collect second data 511 to 513 and 551 to 553 at arbitrary time intervals for each individual frame. For example, the processor may control the second data 511 to 513 of the first frame 510 to be sensed three times through the sensor module. In this case, the detected second data 1_1 (gyro data 1_1) 511, the second data 1_2 (gyro data 1_2) 512, and the second data 1_3 (gyro data 1_3) 513 are random time intervals (eg : distance interval) can be detected. An arbitrary time interval at which the processor acquires the second data may vary according to the time taken for individual frames, and may be changeable according to the first frame rate (eg, 120 fps). In addition, the same time interval is calculated using the angular velocity, so the concept of the same interval can be applied to each individual frame.

도 5a 내지 도 6a를 참조하면, 다양한 실시예들에 따른 프로세서는 임의의 시간 간격에 따라 감지된 5번 프레임(550)의 제2 데이터(551 내지 553)를 획득할 수 있다. 예를 들어, 프로세서가 베이스 프레임인 5번 프레임(550)에서 획득한 제2 데이터(551 내지 553)는 제2 데이터 5_1(gyro data 5_1)(551), 제2 데이터 5_2(gyro data 5_2)(552), 및 제2 데이터 5_3(gyro data 5_3)(553)으로 도시되어 있으나, 이는 예시에 불과하고 3개 이상의 제2 데이터를 수집할 수도 있다.5A to 6A , the processor according to various embodiments may acquire second data 551 to 553 of the fifth frame 550 sensed according to an arbitrary time interval. For example, the second data 551 to 553 obtained by the processor in frame 5 550, which is the base frame, includes second data 5_1 (gyro data 5_1) 551, second data 5_2 (gyro data 5_2) ( 552 ) and second data 5_3 ( gyro data 5_3 ) 553 , but this is only an example and three or more pieces of second data may be collected.

일 실시예에 따르면, 베이스 프레임인 5번 프레임(550)에 블러가 발생하여 제거를 하게 되는 경우, 프로세서는 제거될 베이스 프레임(예: 5번 프레임(550))(예: 제1 베이스 프레임)의 제2 데이터(예: 551 내지 553)를 활용할 수 있다. 도 5b를 참조하면, 프로세서는 베이스 프레임인 5번 프레임(550)의 블러 발생으로 5번 프레임(550)의 제거 시, 기존의 5번 프레임(550)의 제2 데이터(551 내지 553)를 대체할 베이스 프레임(예: 제2 베이스 프레임)에 적용할 수 있다. 프로세서가 제2 데이터를 활용하는 것은, 해당 시간에 획득한 데이터를 기반으로 하여 영상의 표시에 있어서 연속성을 부여하고 매끄러운 움직임을 표현하기 위한 것일 수 있다.According to an embodiment, when blur is generated in the fifth frame 550 that is the base frame and is removed, the processor determines the base frame to be removed (eg, the fifth frame 550) (eg, the first base frame) of the second data (eg, 551 to 553) may be used. Referring to FIG. 5B , the processor replaces the existing second data 551 to 553 of the fifth frame 550 when the fifth frame 550 is removed due to blur of the fifth frame 550 , which is the base frame. It can be applied to the base frame to be used (eg, the second base frame). The processor's use of the second data may be to provide continuity in image display and express smooth motion based on data acquired at a corresponding time.

도 6b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 대체되는 베이스 프레임의 제2 데이터(예: 자이로 데이터) 활용에 관한 예시도이다.6B is an exemplary diagram illustrating use of second data (eg, gyro data) of a base frame that is replaced when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;

도 5a 내지 도 6b를 참조하면, 도 5a 및 도 5b의 개별 프레임들(510 내지 580) 별 세로 줄은 개별 프레임들의 제2 데이터일 수 있다. 또한, 도 6a 및 도 6b의 1번 프레임(510) 및 대체 프레임(new)(610)(예: 제2 베이스 프레임)의 가로 줄은 개별 프레임들의 제2 데이터일 수 있으며, 도 5a 내지 도 5b에 도시된 프레임 별 세로 줄에 대응될 수 있다.Referring to FIGS. 5A to 6B , a vertical line for each of the individual frames 510 to 580 of FIGS. 5A and 5B may be second data of the individual frames. In addition, horizontal lines of the first frame 510 and the replacement frame 610 (eg, the second base frame) of FIGS. 6A and 6B may be second data of individual frames, and FIGS. 5A to 5B . It may correspond to the vertical line for each frame shown in .

도 5a 내지 도 6b를 참조하면, 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 제거된 베이스 프레임(550)(예: 제1 베이스 프레임)을 대체할 새로운 베이스 프레임(new)(610)(예: 제2 베이스 프레임)을 생성하도록 제어할 수 있다. 새로운 베이스 프레임(610)은 한 가지 이상의 방식으로 생성될 수 있다. 일 실시예에 따르면, 프로세서는 제거된 베이스 프레임(550)의 시간적 연속성을 갖는 주변 프레임(예: 4번 프레임(540), 6번 프레임(560))의 이미지 정보를 새로운 베이스 프레임(610)의 이미지 정보로 활용할 수 있다. 또한, 프로세서가 활용하게 되는 상기 주변 프레임들은 블러가 발생되지 않은 프레임일 수 있으며, 제거된 프레임(550)보다 상대적으로 블러가 덜 발생된 프레임일 수 있다.5A to 6B , the processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , and the image signal processor 321 of FIG. 3 ) includes the removed base frame 550 ( Example: It is possible to control to generate a new base frame (new) 610 (eg, a second base frame) to replace the first base frame. The new base frame 610 may be created in one or more ways. According to an embodiment, the processor converts image information of the neighboring frames having temporal continuity of the removed base frame 550 (eg, the fourth frame 540 and the sixth frame 560 ) into the new base frame 610 . It can be used as image information. In addition, the neighboring frames utilized by the processor may be frames in which no blur is generated, and may be frames in which blur is relatively less than that of the removed frame 550 .

다른 실시예에 따르면, 프로세서는 제거된 베이스 프레임(550)(예: 제1 베이스 프레임)의 시간적 연속성을 갖는 주변의 프레임들(예: 4번 프레임(540), 6번 프레임(560))의 이미지 정보의 평균적인 값을 연산하여 합성하도록 제어할 수 있다. 또한, 프로세서가 활용하게 되는 상기 주변 프레임들은 블러가 발생되지 않은 프레임일 수 있으며, 제거된 프레임(550)(예: 제1 베이스 프레임)보다 상대적으로 블러가 덜 발생된 프레임일 수 있다.According to another embodiment, the processor is configured to perform the processing of adjacent frames (eg, frame 4 540 and frame 6 560) having temporal continuity of the removed base frame 550 (eg, the first base frame). The average value of image information can be calculated and controlled to be synthesized. Also, the adjacent frames used by the processor may be frames in which no blur is generated, and may be frames in which blur is relatively less than that of the removed frame 550 (eg, the first base frame).

다른 실시예에 따르면, 프로세서는 새로운 베이스 프레임(610)(예: 제2 베이스 프레임)을 상기 두 가지 방식을 함께 활용하여 생성할 수도 있다.According to another embodiment, the processor may generate a new base frame 610 (eg, a second base frame) by using the two methods together.

도 5a 내지 도 6b를 참조하면, 프로세서는 제거된 베이스 프레임(550)(예: 제1 베이스 프레임)으로부터 획득한 제2 데이터(551 내지 553)를 새로운 베이스 프레임(610)(예: 제2 베이스 프레임)에 적용할 수 있다. 예를 들어, 프로세서는 생성된 베이스 프레임(610)의 움직임 관련 데이터 중 제2 데이터를 제거된 프레임(550)으로부터 획득하여, 제2 프레임 레이트로 출력되는 영상의 움직임을 매끄럽게 표시하도록 제어할 수 있다. 다양한 실시예에 따르면, 프로세서는 제거된 프레임(550)을 대체할 새로운 프레임(610)의 제1 데이터를 합성 및/또는 변경(예: 제거된 프레임의 주변 프레임 중 하나로 대체)하고, 제2 데이터는 제거된 프레임(550)으로부터 획득하여 적용하도록 제어할 수 있다.5A to 6B , the processor converts the second data 551 to 553 obtained from the removed base frame 550 (eg, the first base frame) into a new base frame 610 (eg, the second base). frame) can be applied. For example, the processor may obtain the second data among the motion-related data of the generated base frame 610 from the removed frame 550 and control to smoothly display the motion of the image output at the second frame rate. . According to various embodiments, the processor synthesizes and/or changes first data of a new frame 610 to replace the removed frame 550 (eg, replaces the removed frame with one of adjacent frames), and the second data can be obtained and applied from the removed frame 550 .

도 7a는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 제1 프레임 레이트에 따른 모션 변화량에 대한 예시도이다.7A is an exemplary diagram of a motion variation according to a first frame rate when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;

도 7a를 참조하면, 다양한 실시예들에 따른 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 카메라 모듈 (예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320))에 포함될 수 있는 이미지 센서 (예: 도 2의 이미지 센서(230))를 통해 감지한 영상 정보로부터 수집한 제1 데이터를 확인하여 픽셀(pixel)의 피크(peak)인 프레임(예: 702 프레임)을 검출할 수 있다. 도 7a의 도시는 개별 프레임 번호(frame number)(가로축)에 따른 픽셀 수(pixel)(세로축)를 나타낼 수 있다. 프로세서는 블러(blur)가 발생하여 픽셀이 증가하는 피크를 찾아내고, 지터의 가능성이 있는 프레임을 검출하는 데 활용할 수 있다.Referring to FIG. 7A , the processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , and the image signal processor 321 of FIG. 3 ) according to various embodiments includes a camera module (eg: Check first data collected from image information detected through an image sensor (eg, the image sensor 230 of FIG. 2 ) that may be included in the camera module 180 of FIG. 1 and the camera module 320 of FIG. 3 ) Thus, a frame (eg, a 702 frame) that is a peak of a pixel may be detected. 7A may represent the number of pixels (vertical axis) according to individual frame numbers (horizontal axis). The processor can find peaks in which pixels increase due to blur, and can be used to detect frames with possible jitter.

도 7a에 도시된 프레임은 701, 702, 703 프레임으로, 프로세서는 프레임 별 모션(motion) 변화량의 연산 시 임의의 시간 간격으로 제어할 수 있다. 예를 들어, 프로세서는 701, 702 프레임 간 및 702, 703 프레임 간의 모션 변화량 연산을 임의의 시간 간격에 의해 제어할 수 있다. 임의의 시간 간격은 동일 또는 유사할 수 있으며, 사용자에 의해 변경 가능할 수 있다.The frames shown in FIG. 7A are frames 701, 702, and 703, and the processor may control the amount of motion change for each frame at arbitrary time intervals. For example, the processor may control the motion variation calculation between frames 701 and 702 and between frames 702 and 703 by an arbitrary time interval. Any time interval may be the same or similar, and may be changeable by the user.

도 7a를 참조하면, 프로세서는 701, 702 프레임 간의 모션 변화량을 연산하여 704의 값을 획득할 수 있다. 또한, 프로세서는 702, 703 프레임 간의 모션 변화량을 705의 값으로 획득할 수 있다. 다양한 실시예에 따르면, 프로세서는 연산된 모션 변화량을 기반으로 전자 장치의 움직임에 따른 이미지 처리를 수행할 수 있다.Referring to FIG. 7A , the processor may obtain a value of 704 by calculating the amount of motion variation between frames 701 and 702 . Also, the processor may obtain a motion variation between frames 702 and 703 as a value of 705. According to various embodiments, the processor may perform image processing according to the movement of the electronic device based on the calculated motion variation.

도 7b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 제1 프레임 레이트에 따른 모션 변화량에 의한 피크(peak) 프레임 제거 후 모션 변화량에 대한 예시도이다.7B is an exemplary diagram of a motion variation after removal of a peak frame due to a motion variation according to a first frame rate when an electronic device performs an imaging operation, according to various embodiments of the present disclosure;

도 7b를 참조하면, 픽셀의 피크 프레임인 702 프레임을 제거하고 연산된 모션 변화량이 도시된다. 도 7a를 참조할 때, 임의의 시간 간격으로 촬영이 된 프레임에서, 프로세서는 중간에 위치한 702 프레임을 제거하게 되고, 기존(예: 도 7a의 모션 변화량(704, 705)) 보다 2배의 시간 간격에 따른 모션 변화량(706)을 연산할 수 있다. 이는 도 7a의 701, 702 및 703 프레임에 대한 모션 변화량(704, 705)이 아닌, 701 프레임에서 703 프레임으로 변하는 모션 변화량(706)을 연산하게 된 것으로, 도 7a의 모션 변화량(704, 705)보다 큰 값(706)으로 연산될 수 있다. 즉, 프로세서가 픽셀의 피크 프레임으로서 이미지 블러가 많은 프레임(예: 도 7b의 702 프레임)을 제거하게 되면 모션 변화량의 값은 증가하지만, VDIS를 통해 프레임 간 흔들림을 보정하기 때문에 문제가 발생하지 않을 수 있다. 일 실시예에 따르면, 프로세서의 702 프레임 제거로 인하여 프레임 드랍(frame drop)이 발생할 수 있기 때문에, 프로세서는 제거된 프레임(예: 702 프레임)과 시계열적 연속성이 있는 영상(예: 701 프레임, 703 프레임)을 통해 보간(interpolation) 영상을 만들어 대체하여 흔들림 보정을 제어하도록 설정될 수 있다.Referring to FIG. 7B , the amount of motion variation calculated after removing the 702 frame, which is the peak frame of the pixel, is shown. Referring to FIG. 7A , in frames taken at arbitrary time intervals, the processor removes frames 702 located in the middle, and doubles the time compared to the existing ones (eg, motion variations 704 and 705 in FIG. 7A ). A motion change amount 706 according to the interval may be calculated. This is to calculate the motion variation 706 that changes from the 701 frame to the 703 frame instead of the motion variation 704 and 705 for frames 701, 702, and 703 of FIG. 7A, and the motion variation 704 and 705 of FIG. 7A It can be computed with a larger value 706 . That is, if the processor removes a frame with a lot of image blur (for example, frame 702 in Fig. 7B) as the peak frame of the pixel, the value of the motion variation increases, but no problem occurs because inter-frame shake is corrected through VDIS. can According to an embodiment, since a frame drop may occur due to the removal of the frame 702 by the processor, the processor performs time series continuity with the deleted frame (eg, frame 702) (eg, frame 701, 703). frame) to create and replace an interpolation image may be set to control shake correction.

도 8a 및 도 8b는 다양한 실시예들에 따른, 전자 장치의 촬상 동작 실행 시 베이스 프레임을 제거 및/또는 생성하여 이미지 처리하는 방법에 관한 예시도이다. 예를 들면, 전자 장치에서, 베이스 프레임 제거 및/또는 생성으로 영상 흔들림을 방지하는 방법에 관한 예시도이다.8A and 8B are exemplary diagrams of a method of processing an image by removing and/or generating a base frame when an electronic device performs an imaging operation, according to various embodiments of the present disclosure; For example, it is an exemplary diagram of a method of preventing image shake by removing and/or generating a base frame in an electronic device.

도 5a 내지 도 8b를 참조하면, 전자 장치(예: 도 1의 전자 장치(101))의 프로세서는 제1 프레임 레이트(예: 120fps)에 맞추어 촬상 동작이 이루어지도록 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320))을 제어할 수 있다. 도 8a를 참조하면, 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 복수의 프레임들(811 내지 814, 821 내지 824, 831 내지 834) 중 임의의 프레임을 베이스 프레임으로 추출할 수 있다. 일 실시예에 따르면, 프로세서는 베이스 프레임(예: 811, 821, 831)에 블러(blur)가 있는 경우 해당 베이스 프레임(예: 821 프레임)을 제거할 수 있다.Referring to FIGS. 5A to 8B , the processor of the electronic device (eg, the electronic device 101 of FIG. 1 ) performs an imaging operation according to a first frame rate (eg, 120 fps) with a camera module (eg, in FIG. 1 ). The camera module 180 and the camera module 320 of FIG. 3 ) may be controlled. Referring to FIG. 8A , a processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , and the image signal processor 321 of FIG. 3 ) may include a plurality of frames 811 to 814 and 821 to 824, 831 to 834) may be extracted as the base frame. According to an embodiment, when there is a blur in the base frames (eg, 811, 821, and 831), the processor may remove the corresponding base frame (eg, 821 frames).

도 8a를 참조하면, 제1 프레임 레이트에 따라 촬영되는 프레임들은 시간 순서에 대응하여 제n 프레임으로 지칭될 수 있다. 예를 들어, 제1 프레임 레이트에 따른 구간 별(810, 820, 830)(예: 묶음 별) 베이스 프레임들은 1번 프레임(811), 5번 프레임(821), 및 9번 프레임(831)일 수 있다.Referring to FIG. 8A , frames photographed according to a first frame rate may be referred to as an nth frame corresponding to a temporal sequence. For example, the base frames for each section (810, 820, 830) (eg, for each bundle) according to the first frame rate are the first frame 811 , the fifth frame 821 , and the ninth frame 831 . can

도 8a 및 도 8b를 참조하면, 프로세서는 베이스 프레임들(811, 821, 831) 중 두 번째 베이스 프레임이 되어야 할 5번 프레임(821)의 블러를 검출하여 제거 할 수 있다. 일 실시예에 따르면, 프로세서는 제거된 5번 프레임(821)(예: 제1 베이스 프레임)을 대체할 베이스 프레임(801)(예: 제2 베이스 프레임)을 생성하도록 설정될 수 있다. 프로세서는 1번 프레임(811), 새로운 베이스 프레임(801), 및 9번 프레임(831)을 기반으로 하여 30fps의 제2 프레임 레이트에 맞추어 영상 결과물을 표시하도록 설정될 수 있다.Referring to FIGS. 8A and 8B , the processor may detect and remove blur in a fifth frame 821 that is to be the second base frame among the base frames 811 , 821 , and 831 . According to an embodiment, the processor may be configured to generate a base frame 801 (eg, a second base frame) to replace the removed frame 5 821 (eg, a first base frame). The processor may be set to display the image result according to the second frame rate of 30 fps based on the first frame 811 , the new base frame 801 , and the ninth frame 831 .

도 5a 내지 도 8b를 참조하면, 프로세서는 도 7b의 모션 변화량에 의한 피크(peak) 프레임 제거 후 흔들림 보정을 수행할 수 있다. 예를 들면, 프로세서는 복수의 프레임들(811 내지 814, 821 내지 824, 831 내지 834) 중 블러가 있는 프레임(821)을 제거할 수 있다. 또한, 프로세서는 블러가 없는 프레임들(예: 6번 프레임(822)의 제1 데이터 및 5번 프레임(821)의 제2 데이터 활용)을 이용하여 보간 영상을 생성할 수 있고, 흔들림 보정을 수행할 수 있다. 예를 들면, 프로세서는 베이스 프레임들(811, 821, 831)을 기준으로, 블러가 있는 베이스 프레임(821)을 제거하고 대체 베이스 프레임(801)을 생성하여, 블러가 없는 베이스 프레임들(811, 801, 831)을 표시하여 제2 프레임 레이트에 따른 영상을 생성할 수 있다.5A to 8B , the processor may perform shake correction after removing a peak frame due to the motion variation of FIG. 7B . For example, the processor may remove the frame 821 having a blur among the plurality of frames 811 to 814 , 821 to 824 , and 831 to 834 . Also, the processor may generate an interpolated image using frames without blur (eg, using the first data of the sixth frame 822 and the second data of the fifth frame 821 ) and perform shake correction. can do. For example, based on the base frames 811 , 821 , and 831 , the processor removes the base frame 821 with blur and generates a replacement base frame 801 , so that the base frames 811 , 811 without the blur are generated. 801 and 831 ), an image according to the second frame rate may be generated.

다른 실시예에 따르면, 프로세서는 5번 프레임(821)을 기준으로 블러가 없는 경우, 5번 프레임(821) 내지 8번 프레임(824)을 합성(예: 도 8a의 5번 내지 8번 프레임(821 내지 824)의 움직임 관련 데이터들의 평균 값)하여 베이스 프레임을 생성할 수 있다. 예를 들면, 프로세서는 새로운 베이스 프레임을 생성하면서, 전자 장치의 움직임 관련 데이터(예: 제1 데이터, 제2 데이터) 중 제2 데이터도 합성할 수 있다. 또한, 프로세서는 상기 새로운 베이스 프레임들을 기반으로 하여 30fps의 제2 프레임 레이트에 맞추어 영상 결과물을 표시하도록 제어할 수 있다.According to another embodiment, when there is no blur based on the fifth frame 821, the processor synthesizes the fifth frames 821 to the eighth frames 824 (eg, the fifth to eighth frames ( 821 to 824) of the motion-related data) to generate the base frame. For example, while generating a new base frame, the processor may also synthesize second data among motion-related data (eg, first data and second data) of the electronic device. Also, the processor may control to display an image result according to a second frame rate of 30 fps based on the new base frames.

다양한 실시예에 따르면, 프로세서는 새로운 베이스 프레임(예: 도 8b의 801) 생성 및/또는 블러가 없는 프레임들의 합성(예: 도 8a의 1번 내지 4번 프레임(811 내지 814)의 움직임 관련 데이터들의 평균 값)을 이용하여 새로운 베이스 프레임을 생성해 영상 결과물을 표시하도록 제어할 수 있다. 예를 들면, 프로세서는 도 8a에서, 1번 묶음(810)(예: 1번 구간)에서는 1번 프레임을 베이스 프레임으로 설정하고, 2번 묶음(820)(예: 2번 구간)에서는 블러가 있는 베이스 프레임(821)을 제거하면서 대체 베이스 프레임(801)을 생성(예: 6번 프레임(822)의 제1 데이터 및 5번 프레임(821)의 제2 데이터 활용)하고, 3번 묶음(830)(예: 3번 구간)에서는 9번 프레임(831) 내지 12번 프레임(834)을 합성(9번 내지 12번 프레임(831 내지 834)의 움직임 관련 데이터들의 평균 값)하여 새로운 베이스 프레임(미도시)를 생성할 수 있고, 상기 베이스 프레임들을 기반으로 제2 프레임 레이트에 따른 영상을 생성할 수 있다. 즉, 프로세서는 상기 1번 묶음(810)의 1번 프레임(811), 2번 묶음(820)의 대체 베이스 프레임(801), 및 3번 묶음(830)의 새로운 베이스 프레임(미도시)을 기반으로 제2 프레임 레이트에 따른 영상 결과물을 표시하도록 제어할 수 있다.According to various embodiments, the processor generates a new base frame (eg, 801 in FIG. 8B ) and/or synthesizes frames without blur (eg, motion-related data of frames 1 to 4 ( 811 to 814 ) in FIG. 8A ) The average value of these values) can be used to generate a new base frame and control to display the image result. For example, in FIG. 8A , the processor sets frame No. 1 as the base frame in bundle 1 810 (eg, section 1), and blur is applied in bundle 2 820 (eg, section 2). While removing the existing base frame 821, the replacement base frame 801 is generated (eg, the first data of the 6th frame 822 and the second data of the 5th frame 821 are utilized), and the 3rd bundle 830 ) (eg, section 3), the 9th frame 831 to 12th frame 834 is synthesized (average value of motion-related data of 9th to 12th frames 831 to 834) to create a new base frame (not shown). time), and an image according to the second frame rate may be generated based on the base frames. That is, the processor is based on the first frame 811 of the first bundle 810, the replacement base frame 801 of the second bundle 820, and a new base frame (not shown) of the third bundle 830. can be controlled to display an image result according to the second frame rate.

본 개시의 다양한 실시예에 따른, 전자 장치(예: 도 1의 전자 장치(101))는 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320)), 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340)), 메모리(예: 도 1의 메모리(130)), 및 상기 카메라 모듈, 상기 센서 모듈, 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))를 포함하고, 상기 프로세서는, 상기 카메라 모듈 및 상기 센서 모듈로부터 획득된 상기 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하고, 상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발생한 프레임을 검출하며, 상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하고, 상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 이미지 처리하도록 설정될 수 있다.According to various embodiments of the present disclosure, the electronic device (eg, the electronic device 101 of FIG. 1 ) includes a camera module (eg, the camera module 180 of FIG. 1 , the camera module 320 of FIG. 3 ), and a sensor module (eg, sensor module 176 of FIG. 1 , sensor module 340 of FIG. 3 ), a memory (eg, memory 130 of FIG. 1 ), and the camera module, the sensor module, and operative with the memory and a processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , and the image signal processor 321 of FIG. 3 ) operatively connected, the processor comprising: the camera module and Converts motion-related data of the electronic device obtained from the sensor module into data for blur detection, and based on the converted data for blur detection, blurs in an imaging operation according to a first frame rate Detects a frame in which , if the detected frame is a base frame, removes the first base frame in which blur is detected, and generates a second base frame to replace the removed first base frame. , may be set to process the image according to the second frame rate.

본 개시의 다양한 실시예에 따른, 전자 장치(예: 도 1의 전자 장치(101))의 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340))은 자이로 센서를 포함할 수 있다. 본 개시의 다양한 실시예에 따른, 전자 장치의 카메라 모듈은 이미지 센서를 포함하고, 상기 전자 장치의 움직임 관련 데이터는 상기 카메라 모듈의 이미지 센서로부터 획득된 제1 데이터, 또는 센서 모듈로부터 획득된 제2 데이터 중 적어도 하나를 포함할 수 있다.According to various embodiments of the present disclosure, a sensor module (eg, the sensor module 176 of FIG. 1 , and the sensor module 340 of FIG. 3 ) of the electronic device (eg, the electronic device 101 of FIG. 1 ) is a gyro sensor may include. According to various embodiments of the present disclosure, a camera module of an electronic device includes an image sensor, and the motion-related data of the electronic device includes first data obtained from an image sensor of the camera module, or second data obtained from a sensor module It may include at least one of data.

본 개시의 다양한 실시예에 따른, 전자 장치(예: 도 1의 전자 장치(101))의 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 움직임 관련 데이터를 제1 프레임 레이트에 따른 프레임 별로 카메라 모션 또는 자이로 모션에 관한 데이터가 포함된 블러 검출용 데이터로 변환하도록 설정될 수 있다. 본 개시의 다양한 실시예에 따른, 전자 장치의 프로세서는 상기 블러 검출용 데이터를 기반으로, 상기 제1 프레임 레이트에 따라 개별 프레임의 카메라 모션 또는 자이로 모션의 변화 폭이 미리 지정된 변화 폭을 초과하는 경우 블러가 발생한 프레임으로 검출하도록 설정될 수 있다.The processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , the image of FIG. 3 ) of the electronic device (eg, the electronic device 101 of FIG. 1 ) according to various embodiments of the present disclosure The signal processor 321) may be configured to convert motion-related data into data for blur detection including data related to camera motion or gyro motion for each frame according to the first frame rate. According to various embodiments of the present disclosure, when the change width of the camera motion or the gyro motion of an individual frame exceeds a predetermined change width based on the blur detection data, the processor of the electronic device according to various embodiments of the present disclosure It can be set to detect as a frame in which blur occurs.

본 개시의 다양한 실시예에 따른, 전자 장치(예: 도 1의 전자 장치(101))의 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 대체할 제2 베이스 프레임 생성 시, 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임의 이미지 엣지(edge) 데이터가 포함된 제1 데이터를 이용하도록 설정될 수 있다. 본 개시의 다양한 실시예에 따른, 전자 장치의 프로세서는 상기 대체할 제2 베이스 프레임 생성 시, 상기 제거된 제1 베이스 프레임의 자이로 데이터가 포함된 제2 데이터를 이용하도록 설정될 수 있다.The processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , the image of FIG. 3 ) of the electronic device (eg, the electronic device 101 of FIG. 1 ) according to various embodiments of the present disclosure When generating the second base frame to be replaced, the signal processor 321 may be configured to use first data including image edge data of a frame having time-series continuity with the removed first base frame. According to various embodiments of the present disclosure, the processor of the electronic device may be configured to use second data including gyro data of the removed first base frame when generating the replacement second base frame.

본 개시의 다양한 실시예에 따른, 전자 장치(예: 도 1의 전자 장치(101))의 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))는 이미지 처리 시, 제1 프레임 레이트에 따라 촬영되어 제거되지 않은 베이스 프레임들과 제2 베이스 프레임을 합성하여, 제2 프레임 레이트에 따라 이미지 처리하도록 설정될 수 있다. 본 개시의 다양한 실시예에 따른, 전자 장치의 프로세서는 대체할 제2 베이스 프레임 생성시, 상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임들의 움직임 관련 데이터의 평균적인 값을 이용하도록 설정될 수 있다.The processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , the image of FIG. 3 ) of the electronic device (eg, the electronic device 101 of FIG. 1 ) according to various embodiments of the present disclosure The signal processor 321 may be set to process the image according to the second frame rate by synthesizing the second base frame with the base frames that are photographed and not removed according to the first frame rate during image processing. According to various embodiments of the present disclosure, the processor of the electronic device may be set to use an average value of motion-related data of frames having time-series continuity with the removed first base frame when generating a second base frame to be replaced. can

본 개시의 다양한 실시예에 따른, 전자 장치(예: 도 1의 전자 장치(101))의 이미지 처리 방법은 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320)) 및 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340))로부터 획득된, 상기 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하는 동작, 상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발생한 프레임을 검출하는 동작, 상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하는 동작, 및 상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 합성하는 동작을 포함할 수 있다.An image processing method of an electronic device (eg, the electronic device 101 of FIG. 1 ) according to various embodiments of the present disclosure includes a camera module (eg, the camera module 180 of FIG. 1 , the camera module 320 of FIG. 3 ) ) and a sensor module (eg, the sensor module 176 of FIG. 1 , the sensor module 340 of FIG. 3 ), converting the motion-related data of the electronic device into data for detecting blur, the An operation of detecting a frame in which blur is generated in an imaging operation according to a first frame rate based on the converted blur detection data, and when the detected frame is a base frame, the blur is detected It may include an operation of removing the first base frame, and an operation of generating a second base frame to replace the removed first base frame and synthesizing it according to a second frame rate.

본 개시의 다양한 실시예에 따른, 이미지 처리 방법의 변환하는 동작은 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320))의 이미지 센서로부터 움직임 관련 데이터 중 제1 데이터를 획득하는 동작 또는 센서 모듈로부터 상기 움직임 관련 데이터 중 제2 데이터를 획득하는 동작 중 적어도 하나를 포함할 수 있다. 본 개시의 다양한 실시예에 따른, 이미지 처리 방법의 변환하는 동작은 상기 움직임 관련 데이터를 제1 프레임 레이트에 따른 프레임 별로 카메라 모션 또는 자이로 모션에 관한 데이터가 포함되도록 변환하는 동작을 포함할 수 있다.The converting operation of the image processing method according to various embodiments of the present disclosure includes a first of motion-related data from an image sensor of a camera module (eg, the camera module 180 of FIG. 1 and the camera module 320 of FIG. 3 ). It may include at least one of an operation of acquiring data or an operation of acquiring second data among the motion-related data from a sensor module. The converting operation of the image processing method according to various embodiments of the present disclosure may include converting the motion-related data to include data related to a camera motion or a gyro motion for each frame according to the first frame rate.

본 개시의 다양한 실시예에 따른, 이미지 처리 방법의 검출하는 동작은 블러 검출용 데이터를 기반으로, 제1 프레임 레이트에 따라 개별 프레임의 카메라 모션 또는 자이로 모션의 변화 폭이 미리 지정된 변화 폭을 초과하는 경우, 블러가 발생한 프레임으로 검출하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, the detecting operation of the image processing method is performed when, based on data for blur detection, a change width of a camera motion or a gyro motion of an individual frame exceeds a predetermined change width according to the first frame rate. In this case, an operation of detecting a frame in which blur occurs may be included.

본 개시의 다양한 실시예에 따른, 이미지 처리 방법의 합성하는 동작은 대체할 제2 베이스 프레임 생성 시, 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임의 이미지 엣지(edge) 데이터가 포함된 제1 데이터를 이용하는 동작을 포함할 수 있다. 본 개시의 다양한 실시예에 따른, 이미지 처리 방법의 합성하는 동작은 상기 대체할 제2 베이스 프레임 생성 시, 상기 제거된 제1 베이스 프레임의 자이로 데이터가 포함된 제2 데이터를 이용하는 동작을 포함할 수 있다. 본 개시의 다양한 실시예에 따른, 이미지 처리 방법의 합성하는 동작은 제1 프레임 레이트에 따라 촬영되어 제거되지 않은 베이스 프레임들과 상기 제2 베이스 프레임을 합성하는 동작, 및 상기 합성된 베이스 프레임들을 제2 프레임 레이트에 따라 이미지 처리하는 동작을 포함할 수 있다. 본 개시의 다양한 실시예에 따른, 이미지 처리 방법의 합성하는 동작은 상기 대체할 제2 베이스 프레임 생성시, 상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임들의 움직임 관련 데이터의 평균적인 값을 이용하는 동작을 포함할 수 있다.The synthesizing operation of the image processing method according to various embodiments of the present disclosure includes the first base frame including the removed first base frame and image edge data of the frame having time-series continuity when the second base frame to be replaced is generated. 1 may include an operation using data. The synthesizing of the image processing method according to various embodiments of the present disclosure may include using second data including gyro data of the removed first base frame when generating the replacement second base frame. have. According to various embodiments of the present disclosure, the synthesizing of the image processing method includes synthesizing the second base frame with base frames that are not photographed and removed according to the first frame rate, and generating the synthesized base frames. 2 It may include an operation of processing the image according to the frame rate. In the synthesizing operation of the image processing method according to various embodiments of the present disclosure, an average value of motion-related data of frames having time-series continuity with the removed first base frame is obtained when the second base frame to be replaced is generated. It may include an action to use.

본 개시의 다양한 실시예에 따른, 명령들을 저장하고 있는 저장 매체의 상기 명령들은 적어도 하나의 프로세서(예: 도 1의 프로세서(120), 도 2의 이미지 시그널 프로세서(260), 도 3의 이미지 시그널 프로세서(321))에 의하여 실행될 때에 상기 프로세서로 하여금 적어도 하나의 동작을 수행하도록 설정된 것으로서, 상기 동작은, 카메라 모듈(예: 도 1의 카메라 모듈(180), 도 3의 카메라 모듈(320)) 및 센서 모듈(예: 도 1의 센서 모듈(176), 도 3의 센서 모듈(340))로부터 획득된 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하는 동작, 상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발행한 프레임을 검출하는 동작, 상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하는 동작, 및 상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 합성하는 동작을 포함할 수 있다. 본 개시의 다양한 실시예에 따른 저장 매체에 있어서, 상기 움직임 관련 데이터는 제1 데이터 또는 제2 데이터를 포함하고, 상기 제1 데이터는 이미지 엣지(edge) 데이터를 포함하며, 상기 제2 데이터는 자이로 데이터를 포함할 수 있다. 본 개시의 다양한 실시예에 따른 저장 매체에 있어서, 상기 합성하는 동작은 상기 대체할 제2 베이스 프레임 생성 시, 상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임의 제1 데이터를 이용하고, 상기 제1 베이스 프레임의 제2 데이터를 이용하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, the instructions of a storage medium storing instructions are performed by at least one processor (eg, the processor 120 of FIG. 1 , the image signal processor 260 of FIG. 2 , the image signal of FIG. 3 ). It is configured to cause the processor to perform at least one operation when executed by the processor 321), wherein the operation is performed by a camera module (eg, the camera module 180 of FIG. 1, the camera module 320 of FIG. 3) and converting motion-related data of the electronic device obtained from a sensor module (eg, the sensor module 176 of FIG. 1 and the sensor module 340 of FIG. 3 ) into data for blur detection, the converted blur An operation of detecting a frame in which blur is generated in an imaging operation according to a first frame rate based on the detection data, and when the detected frame is a base frame, the first blur is detected The method may include removing the base frame, and generating a second base frame to replace the removed first base frame and synthesizing it according to a second frame rate. In the storage medium according to various embodiments of the present disclosure, the motion-related data includes first data or second data, the first data includes image edge data, and the second data includes a gyro It may contain data. In the storage medium according to various embodiments of the present disclosure, the synthesizing operation uses first data of a frame having time-series continuity with the removed first base frame when generating the replacement second base frame, and using the second data of the first base frame.

Claims (20)

전자 장치에 있어서,
카메라 모듈;
센서 모듈;
메모리; 및
상기 카메라 모듈, 상기 센서 모듈, 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서; 를 포함하고,
상기 프로세서는,
상기 카메라 모듈 및 상기 센서 모듈로부터 획득된 상기 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하고,
상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발생한 프레임을 검출하며,
상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하고,
상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 이미지 처리하도록 설정된 전자 장치.
In an electronic device,
camera module;
sensor module;
Memory; and
a processor operatively coupled to the camera module, the sensor module, and the memory; including,
The processor is
converting the motion-related data of the electronic device obtained from the camera module and the sensor module into data for blur detection,
Based on the converted blur detection data, a frame in which blur occurs in an imaging operation according to a first frame rate is detected,
When the detected frame is a base frame, the first base frame in which the blur is detected is removed,
An electronic device configured to generate a second base frame to replace the removed first base frame and process an image according to a second frame rate.
제1항에 있어서,
상기 센서 모듈은
자이로 센서를 포함하는 전자 장치.
According to claim 1,
The sensor module is
An electronic device comprising a gyro sensor.
제1항에 있어서,
상기 카메라 모듈은
이미지 센서를 포함하고,
상기 전자 장치의 움직임 관련 데이터는
상기 카메라 모듈의 이미지 센서로부터 획득된 제1 데이터, 또는 상기 센서 모듈로부터 획득된 제2 데이터 중 적어도 하나를 포함하는 전자 장치.
According to claim 1,
The camera module is
an image sensor,
The movement-related data of the electronic device is
An electronic device comprising at least one of first data obtained from an image sensor of the camera module and second data obtained from the sensor module.
제1항에 있어서,
상기 프로세서는
상기 움직임 관련 데이터를 상기 제1 프레임 레이트에 따른 프레임 별로 카메라 모션 또는 자이로 모션에 관한 데이터가 포함된 상기 블러 검출용 데이터로 변환하도록 설정된 전자 장치.
According to claim 1,
the processor
An electronic device configured to convert the motion-related data into the blur detection data including data related to a camera motion or a gyro motion for each frame according to the first frame rate.
제4항에 있어서,
상기 프로세서는
상기 블러 검출용 데이터를 기반으로, 상기 제1 프레임 레이트에 따라 개별 프레임의 카메라 모션 또는 자이로 모션의 변화 폭이 미리 지정된 변화 폭을 초과하는 경우 블러가 발생한 프레임으로 검출하도록 설정된 전자 장치.
5. The method of claim 4,
the processor
An electronic device configured to detect a frame in which blur occurs when a change width of a camera motion or a gyro motion of an individual frame exceeds a preset change width according to the first frame rate, based on the blur detection data.
제3항에 있어서,
상기 프로세서는
상기 대체할 제2 베이스 프레임 생성 시, 상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임의 이미지 엣지(edge) 데이터가 포함된 제1 데이터를 이용하도록 설정된 전자 장치.
4. The method of claim 3,
the processor
An electronic device configured to use first data including image edge data of a frame having time-series continuity with the removed first base frame when generating the second base frame to be replaced.
제3항에 있어서,
상기 프로세서는
상기 대체할 제2 베이스 프레임 생성 시, 상기 제거된 제1 베이스 프레임의 자이로 데이터가 포함된 제2 데이터를 이용하도록 설정된 전자 장치.
4. The method of claim 3,
the processor
An electronic device configured to use second data including gyro data of the removed first base frame when generating the second base frame to be replaced.
제3항에 있어서,
상기 프로세서는
상기 이미지 처리 시,
상기 제1 프레임 레이트에 따라 촬영되어 제거되지 않은 베이스 프레임들과 상기 제2 베이스 프레임을 합성하여, 제2 프레임 레이트에 따라 이미지 처리하도록 설정된 전자 장치.
4. The method of claim 3,
the processor
When processing the image,
The electronic device is configured to synthesize the second base frame with the base frames photographed according to the first frame rate and not removed, and process the image according to the second frame rate.
제3항에 있어서,
상기 프로세서는
상기 대체할 제2 베이스 프레임 생성시, 상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임들의 움직임 관련 데이터의 평균적인 값을 이용하도록 설정된 전자 장치.
4. The method of claim 3,
the processor
An electronic device configured to use an average value of motion-related data of frames having time-series continuity with the removed first base frame when generating the second base frame to be replaced.
전자 장치의 이미지 처리 방법에 있어서,
카메라 모듈 및 센서 모듈로부터 획득된, 상기 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하는 동작;
상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발생한 프레임을 검출하는 동작;
상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하는 동작; 및
상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 합성하는 동작; 을 포함하는 방법.
In the image processing method of an electronic device,
converting motion-related data of the electronic device obtained from a camera module and a sensor module into data for detecting blur;
detecting a frame in which blur occurs in an imaging operation according to a first frame rate based on the converted blur detection data;
removing a first base frame in which blur is detected when the detected frame is a base frame; and
generating a second base frame to replace the removed first base frame and synthesizing it according to a second frame rate; How to include.
제10항에 있어서,
상기 변환하는 동작은
상기 카메라 모듈의 이미지 센서로부터 상기 움직임 관련 데이터 중 제1 데이터를 획득하는 동작 또는 상기 센서 모듈로부터 상기 움직임 관련 데이터 중 제2 데이터를 획득하는 동작 중 적어도 하나를 포함하는 방법.
11. The method of claim 10,
The converting operation is
and at least one of an operation of acquiring first data among the motion-related data from an image sensor of the camera module and an operation of acquiring second data of the motion-related data from the sensor module.
제10항에 있어서,
상기 변환하는 동작은
상기 움직임 관련 데이터를 상기 제1 프레임 레이트에 따른 프레임 별로 카메라 모션 또는 자이로 모션에 관한 데이터가 포함되도록 변환하는 동작을 포함하는 방법.
11. The method of claim 10,
The converting operation is
and converting the motion related data to include data related to a camera motion or a gyro motion for each frame according to the first frame rate.
제12항에 있어서,
상기 검출하는 동작은
상기 블러 검출용 데이터를 기반으로,
상기 제1 프레임 레이트에 따라 개별 프레임의 카메라 모션 또는 자이로 모션의 변화 폭이 미리 지정된 변화 폭을 초과하는 경우, 블러가 발생한 프레임으로 검출하는 동작을 포함하는 방법.
13. The method of claim 12,
The detecting operation is
Based on the data for blur detection,
and detecting a frame in which blur occurs when a change width of a camera motion or a gyro motion of an individual frame exceeds a predetermined change width according to the first frame rate.
제11항에 있어서,
상기 합성하는 동작은
상기 대체할 제2 베이스 프레임 생성 시, 상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임의 이미지 엣지(edge) 데이터가 포함된 제1 데이터를 이용하는 동작을 포함하는 방법.
12. The method of claim 11,
The synthesizing operation is
and using first data including image edge data of a frame having time-series continuity with the removed first base frame when generating the second base frame to be replaced.
제11항에 있어서,
상기 합성하는 동작은
상기 대체할 제2 베이스 프레임 생성 시, 상기 제거된 제1 베이스 프레임의 자이로 데이터가 포함된 제2 데이터를 이용하는 동작을 포함하는 방법.
12. The method of claim 11,
The synthesizing operation is
and using second data including gyro data of the removed first base frame when generating the second base frame to be replaced.
제11항에 있어서,
상기 합성하는 동작은
상기 제1 프레임 레이트에 따라 촬영되어 제거되지 않은 베이스 프레임들과 상기 제2 베이스 프레임을 합성하는 동작; 및
상기 합성된 베이스 프레임들을 제2 프레임 레이트에 따라 이미지 처리하는 동작을 포함하는 방법.
12. The method of claim 11,
The synthesizing operation is
synthesizing the second base frame with base frames that are photographed according to the first frame rate and are not removed; and
and image processing the synthesized base frames according to a second frame rate.
제11항에 있어서,
상기 합성하는 동작은
상기 대체할 제2 베이스 프레임 생성시, 상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임들의 움직임 관련 데이터의 평균적인 값을 이용하는 동작을 포함하는 방법.
12. The method of claim 11,
The synthesizing operation is
and using an average value of motion-related data of frames having time-series continuity with the removed first base frame when generating the second base frame to be replaced.
명령들을 저장하고 있는 저장 매체에 있어서, 상기 명령들은 적어도 하나의 프로세서에 의하여 실행될 때에 상기 프로세서로 하여금 적어도 하나의 동작을 수행하도록 설정된 것으로서,
상기 동작은,
카메라 모듈 및 센서 모듈로부터 획득된 전자 장치의 움직임 관련 데이터를 블러(blur) 검출용 데이터로 변환하는 동작;
상기 변환된 블러 검출용 데이터를 기반으로, 제1 프레임 레이트(frame rate)에 따른 촬상 동작에서 블러가 발행한 프레임을 검출하는 동작;
상기 검출된 프레임이 베이스 프레임(base frame)인 경우, 블러가 검출된 제1 베이스 프레임을 제거하는 동작; 및
상기 제거된 제1 베이스 프레임을 대체할 제2 베이스 프레임을 생성하여, 제2 프레임 레이트에 따라 합성하는 동작;을 포함하는 저장 매체.
A storage medium storing instructions, wherein the instructions are configured to cause the processor to perform at least one operation when executed by at least one processor,
The action is
converting motion-related data of the electronic device obtained from the camera module and the sensor module into data for detecting blur;
detecting a frame generated by blur in an imaging operation according to a first frame rate based on the converted blur detection data;
removing a first base frame in which blur is detected when the detected frame is a base frame; and
and generating a second base frame to replace the removed first base frame and synthesizing it according to a second frame rate.
제18항에 있어서,
상기 움직임 관련 데이터는 제1 데이터 또는 제2 데이터를 포함하고,
상기 제1 데이터는
이미지 엣지(edge) 데이터를 포함하며,
상기 제2 데이터는
자이로 데이터를 포함하는, 저장 매체.
19. The method of claim 18,
The motion-related data includes first data or second data,
The first data is
Contains image edge data,
The second data is
A storage medium containing gyro data.
제19항에 있어서,
상기 합성하는 동작은,
상기 대체할 제2 베이스 프레임 생성 시,
상기 제거된 제1 베이스 프레임과 시계열적 연속성을 갖는 프레임의 제1 데이터를 이용하고,
상기 제1 베이스 프레임의 제2 데이터를 이용하는 동작을 포함하는, 저장 매체.
20. The method of claim 19,
The synthesizing operation is
When generating the replacement second base frame,
Using the first data of the frame having time-series continuity with the removed first base frame,
and using second data of the first base frame.
KR1020200030591A 2020-03-12 2020-03-12 Image processing method and appratus KR20210115185A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200030591A KR20210115185A (en) 2020-03-12 2020-03-12 Image processing method and appratus
PCT/KR2021/001914 WO2021182759A1 (en) 2020-03-12 2021-02-15 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200030591A KR20210115185A (en) 2020-03-12 2020-03-12 Image processing method and appratus

Publications (1)

Publication Number Publication Date
KR20210115185A true KR20210115185A (en) 2021-09-27

Family

ID=77670765

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200030591A KR20210115185A (en) 2020-03-12 2020-03-12 Image processing method and appratus

Country Status (2)

Country Link
KR (1) KR20210115185A (en)
WO (1) WO2021182759A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055876A (en) * 2021-10-27 2023-05-02 北京字跳网络技术有限公司 Video processing method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5062968B2 (en) * 2004-08-11 2012-10-31 ソニー株式会社 Image processing apparatus and method, recording medium, and program
US9066014B2 (en) * 2013-10-11 2015-06-23 Facebook, Inc. Applying video stabilization to a multimedia clip
KR20150101779A (en) * 2014-02-27 2015-09-04 엘지디스플레이 주식회사 Image Display Device And Motion Blur Relieving Method Thereof
KR102608782B1 (en) * 2016-12-30 2023-12-04 삼성전자주식회사 Device and Method for Compensating Motion Effect of an Electronic Device in an Image
KR102622123B1 (en) * 2018-02-22 2024-01-09 삼성전자주식회사 Electronic device for photograping moving picture by adjusting threshold associated with movement of object in region of interest according to movement of electronic device and method for operating thereof

Also Published As

Publication number Publication date
WO2021182759A1 (en) 2021-09-16

Similar Documents

Publication Publication Date Title
KR102385360B1 (en) Electronic device performing image correction and operation method of thereof
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
US11558553B2 (en) Electronic device for stabilizing image and method for operating same
CN104205804B (en) Image processing apparatus, filming apparatus and image processing method
CN109672819B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
KR102677285B1 (en) Apparatus and method for generating slow motion video
KR102386385B1 (en) Electronic device and method for compressing image thereof
EP3707671B1 (en) Electronic device and method for correcting image corrected in first image processing scheme in external electronic device in second image processing scheme
KR102383134B1 (en) Electronic device for processing image based on priority and method for operating thefeof
KR102661185B1 (en) Electronic device and method for obtaining images
EP3609175B1 (en) Apparatus and method for generating moving image data including multiple section images in electronic device
CN108574803B (en) Image selection method and device, storage medium and electronic equipment
KR20190087215A (en) Electronic device and methof to control auto focus of camera
KR102330264B1 (en) Electronic device for playing movie based on movment information and operating mehtod thereof
KR20210101941A (en) Electronic device and method for generating high dynamic range images
KR20210115185A (en) Image processing method and appratus
US11917295B2 (en) Method for correcting shaking at high magnification and electronic device therefor
KR20210087809A (en) Electronic device comprising image sensor and method of operation thereof
KR102457462B1 (en) Apparatus and method for processing an image of electronic device
KR102301940B1 (en) Method and apparatus for image fusion
JP5660306B2 (en) Imaging apparatus, program, and imaging method
EP4395357A1 (en) Electronic device including camera, and moving image generating method for photographing moving object
EP4280154A1 (en) Image blurriness determination method and device related thereto
CN110913143B (en) Image processing method, image processing device, storage medium and electronic equipment
JP2009290588A (en) Motion vector detecting device and its method, and image pickup device