KR20220014764A - Electronic device and method for generating training data of artificial intelligence learning model thereof - Google Patents

Electronic device and method for generating training data of artificial intelligence learning model thereof Download PDF

Info

Publication number
KR20220014764A
KR20220014764A KR1020200094808A KR20200094808A KR20220014764A KR 20220014764 A KR20220014764 A KR 20220014764A KR 1020200094808 A KR1020200094808 A KR 1020200094808A KR 20200094808 A KR20200094808 A KR 20200094808A KR 20220014764 A KR20220014764 A KR 20220014764A
Authority
KR
South Korea
Prior art keywords
image
electronic device
light source
virtual light
learning model
Prior art date
Application number
KR1020200094808A
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 KR1020200094808A priority Critical patent/KR20220014764A/en
Priority to PCT/KR2021/007194 priority patent/WO2022025413A1/en
Publication of KR20220014764A publication Critical patent/KR20220014764A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4015Demosaicing, e.g. colour filter array [CFA], Bayer pattern
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/001Image restoration
    • G06T5/60
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N5/2257
    • H04N5/23229
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]

Abstract

In accordance with one embodiment of the present disclosure, an electronic device can include a communication circuit, a memory, and a processor operatively connected with the memory. In accordance with one embodiment, the memory can store instructions which, when executed, cause the processor to: acquire a first image; generate a virtual light source image, insert the virtual light source image into the first image to generate a first output image; insert the virtual light source image into the first image, and then, process the same through a first filter to generate a first input image; and generate the first input image and the first output image as a first training dataset of an artificial intelligence learning model for image compensation. Various embodiments identified through the present specifications can be possible. Therefore, the present invention is capable of maximizing a training effect and embodying a more precise and more accurate artificial intelligence learning model.

Description

전자 장치 및 전자 장치의 인공 지능 학습 모델의 훈련 데이터 생성 방법{Electronic device and method for generating training data of artificial intelligence learning model thereof}Electronic device and method for generating training data of artificial intelligence learning model of an electronic device {Electronic device and method for generating training data of artificial intelligence learning model thereof}

본 문서에서 개시되는 실시 예들은, 인공 지능 학습 모델을 훈련시키는 기술과 관련된다.Embodiments disclosed in this document relate to a technique for training an artificial intelligence learning model.

최근의 다양한 전자 장치들은 디스플레이 및 카메라를 포함하고 있다. 디스플레이는 표시 영역에 위치하는 복수의 화소를 이용하여 이미지를 표시할 수 있다. 디스플레이는 화소를 구동하기 위한 구동부들 및 신호 배선들을 포함할 수 있다. 전자 장치가 카메라를 통하여 밝은 광원을 촬영하는 경우 이미지 내의 광원 주변의 픽셀들은 포화되어 원하는 이미지를 촬영하지 못하는 문제점이 발생할 수 있다. 또한, 카메라와 디스플레이가 서로 영향을 미치도록 배치된 경우, 디스플레이의 픽셀 또는 배선이 카메라로 들어오는 광을 회절시켜서 이미지의 해상도가 열화됨과 함께 광원 주변에 빛 갈라짐 또는 빛 번짐 현상이 발생할 수 있다.Recently, various electronic devices include a display and a camera. The display may display an image using a plurality of pixels located in the display area. The display may include drivers and signal wires for driving the pixels. When the electronic device captures a bright light source through a camera, pixels around the light source in the image are saturated and a desired image cannot be captured. In addition, when the camera and the display are arranged to affect each other, pixels or wires of the display may diffract light entering the camera, thereby degrading image resolution and causing light splitting or light bleeding around the light source.

본 발명의 다양한 실시예들은, 디스플레이 하부에 배치된 카메라를 이용하여 촬영한 이미지를 보상하기 위한 인공지능 학습 모델의 훈련 데이터를 생성하는 전자 장치 및 방법을 제공하고자 한다.Various embodiments of the present disclosure provide an electronic device and method for generating training data of an artificial intelligence learning model for compensating for an image captured using a camera disposed under a display.

본 발명의 다양한 실시예들은, 광원을 포함하는 이미지를 보상하기 위한 인공지능 학습 모델의 훈련 데이터 셋을 생성하는 전자 장치 및 전자 장치의 인공지능 학습 모델 훈련 데이터 생성 방법을 제공하고자 한다.Various embodiments of the present disclosure provide an electronic device for generating a training data set of an AI learning model for compensating an image including a light source, and a method for generating training data for an AI learning model of the electronic device.

본 개시에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있다.The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by those of ordinary skill in the art to which the present invention belongs from the description below. have.

본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 통신 회로, 메모리 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함할 수 있다. 일 실시예에 따르면, 상기 메모리는, 실행 시, 상기 프로세서가, 제1 이미지를 획득하고, 가상 광원 이미지를 생성하고, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하고, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 후, 제1 필터 처리하여 제1 입력 이미지를 생성하고, 상기 제1 입력 이미지 및 상기 제1 출력 이미지를 이미지를 보상하기 위한 인공지능 학습 모델의 제1 훈련 데이터 셋으로 생성하도록 하는 인스트럭션들(instructions)을 저장할 수 있다.An electronic device according to an embodiment disclosed in this document may include a communication circuit, a memory, and a processor operatively connected to the memory. According to an embodiment, the memory, when executed, causes the processor to acquire a first image, generate a virtual light source image, insert the virtual light source image into the first image to generate a first output image, , After inserting the virtual light source image into the first image, a first filter process is performed to generate a first input image, and an artificial intelligence learning model for compensating an image for the first input image and the first output image. Instructions for generating the first training data set may be stored.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치의 인공지능 학습 모델의 훈련 데이터 생성 방법은, 제1 이미지를 획득하는 동작, 가상 광원 이미지를 생성하는 동작, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하는 동작, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 후 제1 필터 처리하여 제1 입력 이미지를 생성하는 동작, 및 상기 제1 입력 이미지 및 상기 제1 출력 이미지를 상기 카메라를 통해 촬영된 이미지를 보상하기 위한 인공지능 학습 모델의 제1 훈련 데이터 셋으로 생성하는 동작을 포함할 수 있다.In addition, the method for generating training data for an artificial intelligence learning model of an electronic device according to an embodiment disclosed in this document includes the operation of acquiring a first image, the operation of generating a virtual light source image, and the operation of generating the virtual light source image as the first generating a first output image by inserting it into an image, inserting the virtual light source image into the first image and performing a first filter process to generate a first input image, and the first input image and the first image and generating an output image as a first training data set of an artificial intelligence learning model for compensating for an image captured by the camera.

본 문서에 개시되는 실시 예들에 따르면, 디스플레이 하부에 배치된 카메라를 이용하여 촬영한 이미지를 보상하기 위한 인공지능 학습 모델을 훈련시킬 수 있다.According to the embodiments disclosed in this document, it is possible to train an artificial intelligence learning model for compensating for an image captured by using a camera disposed under the display.

본 문서에 개시되는 실시 예들에 따르면, 광원을 포함한 이미지를 보상하기 위한 인공지능 학습 모델을 훈련시키기 위한 가상의 훈련 데이터 세트를 생성 및 제공할 수 있다.According to the embodiments disclosed in this document, it is possible to generate and provide a virtual training data set for training an artificial intelligence learning model for compensating an image including a light source.

본 문서에 개시되는 실시 예들에 따르면, 인공지능 학습 모델의 훈련 데이터 셋을 생성하는 경우, 가상 광원 이미지를 포함시킴으로써 이미지 촬영 시의 빛 갈라짐 및 빛 번짐 현상을 해결하고, 이미지의 화질을 개선할 수 있도록 인공지능 학습 모델을 훈련시킬 수 있다.According to the embodiments disclosed in this document, when generating the training data set of the artificial intelligence learning model, by including the virtual light source image, it is possible to solve the light splitting and light spreading phenomenon during image shooting, and improve the image quality An artificial intelligence learning model can be trained to

본 문서에 개시되는 실시 예들에 따르면, 보다 적은 수의 촬영 데이터에 기반하여 무한정의 훈련 데이터 셋을 생성하고, 이를 기반으로 인공지능 학습 모델을 훈련시킴으로써, 훈련 효과를 최대화하고 더 정교하고 정확한 인공지능 학습 모델을 구현할 수 있다.According to the embodiments disclosed in this document, by generating an infinite training data set based on a smaller number of shooting data and training an artificial intelligence learning model based on this, the training effect is maximized and more sophisticated and accurate artificial intelligence A learning model can be implemented.

이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.In addition, various effects directly or indirectly identified through this document may be provided.

도 1은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치를 나타낸다.
도 2a는 일 실시예에 따른 전자 장치의 블록도이다.
도 2b는 일 실시예에 따른 전자 장치의 블록도이다.
도 3a 및 3b는 다양한 실시예에 따른 광원 이미지들의 예시이다.
도 4는 일 실시예에 따른 전자 장치의 이미지 보상 동작을 설명하기 위한 도면이다.
도 5는 일 실시예에 따른 전자 장치의 인공지능 학습 모델을 훈련시키는 동작을 설명하기 위한 도면이다.
도 6은 일 실시예에 따른 전자 장치의 가상 광원 이미지 생성 동작을 설명하기 위한 도면이다.
도 7은 일 실시예에 따른 전자 장치의 훈련 이미지 셋을 생성하는 동작을 설명하기 위한 도면이다.
도 8은 일 실시예에 따른 전자 장치의 인공지능 학습 모델 훈련 방법의 흐름도이다.
도 9는 일 실시예에 따른 전자 장치의 가상 광원 이미지 생성 동작의 흐름도이다.
도 10은 일 실시예에 따른 전자 장치의 이미지 보상 동작의 흐름도이다.
도 11은 일 실시예에 따른 전자 장치의 디스플레이의 평면도이다.
도 12는 일 실시예에 따른 전자 장치의 제1 표시 영역의 단면도이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
1 illustrates an electronic device in a network environment according to various embodiments of the present disclosure.
2A is a block diagram of an electronic device according to an exemplary embodiment.
2B is a block diagram of an electronic device according to an exemplary embodiment.
3A and 3B are examples of light source images according to various embodiments.
4 is a diagram for explaining an image compensation operation of an electronic device according to an exemplary embodiment.
5 is a diagram for explaining an operation of training an artificial intelligence learning model of an electronic device according to an exemplary embodiment.
6 is a diagram for explaining an operation of generating a virtual light source image of an electronic device according to an exemplary embodiment.
7 is a diagram for describing an operation of generating a training image set of an electronic device according to an exemplary embodiment.
8 is a flowchart of a method for training an artificial intelligence learning model of an electronic device according to an exemplary embodiment.
9 is a flowchart of an operation of generating a virtual light source image of an electronic device according to an exemplary embodiment.
10 is a flowchart of an image compensation operation of an electronic device according to an exemplary embodiment.
11 is a plan view of a display of an electronic device according to an exemplary embodiment.
12 is a cross-sectional view of a first display area of an electronic device according to an exemplary embodiment.
In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar components.

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

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, 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 stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 . According to an embodiment, the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 101 includes the main processor 121 and the sub-processor 123 , the sub-processor 123 may use less power than the main processor 121 or may be set to be specialized for a specified function. can 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))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the co-processor 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. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which artificial intelligence is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.

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

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

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

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

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

오디오 모듈(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 module 150 , or an external electronic device (eg, a sound output module 155 ) connected directly or wirelessly with the electronic device 101 . A sound may be output through the electronic device 102 (eg, a speaker or headphones).

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

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

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

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

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

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, 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 188 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(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to 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 LAN (local area network) communication module, or a power line communication module). A corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a 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 or authenticated.

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

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

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

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

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

도 2a는 일 실시예에 따른 전자 장치의 블록도이다.2A is a block diagram of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 전자 장치(200a)(예: 도 1의 전자 장치(101))(예: PC, 또는 서버)는 통신 회로(210a) (예: 도 1의 통신 모듈(190)), 메모리(220a) (예: 도 1의 메모리(130)), 및 프로세서(230a) (예: 도 1의 프로세서(120))를 포함할 수 있다. 다양한 실시예에 따르면, 전자 장치(200a)는 독립적으로 또는 외부 전자 장치(예: (예: 도 1의 전자 장치(102, 104), 서버(106), 또는 도 2b의 전자 장치(200b))와 통합되어 인공지능 학습 모델을 훈련시킬 수 있다. 예를 들어, 인공지능 학습 시스템은 전자 장치(200a), 외부 전자 장치, 또는 전자 장치(200a)와 외부 전자 장치의 조합으로 구성될 수 있다.According to an embodiment, the electronic device 200a (eg, the electronic device 101 of FIG. 1 ) (eg, a PC or a server) includes a communication circuit 210a (eg, the communication module 190 of FIG. 1 ); It may include a memory 220a (eg, the memory 130 of FIG. 1 ), and a processor 230a (eg, the processor 120 of FIG. 1 ). According to various embodiments, the electronic device 200a is independently or externally configured (eg, (eg, the electronic devices 102 and 104 of FIG. 1 , the server 106 , or the electronic device 200b of FIG. 2B )). It is possible to train an AI learning model by being integrated with the AI learning system, for example, the AI learning system may be configured with the electronic device 200a, an external electronic device, or a combination of the electronic device 200a and an external electronic device.

일 실시예에 따르면, 통신 회로(210a)는 외부 전자 장치(예: (예: 도 1의 전자 장치(102, 104), 서버(106), 또는 도 2b의 전자 장치(200b))와 데이터를 송수신할 수 있다. 예를 들어, 통신 회로(210a)는 이미지 및/또는 영상을 외부 전자 장치에 전송하거나, 또는 수신할 수 있다. 예를 들어, 통신 회로(210a)는 프로세서(230a)에 의해 생성된 인공지능 학습 모델의 훈련 데이터 셋(예: 입력 이미지 및 출력 이미지)을 외부 전자 장치에 전송할 수 있다. 예를 들어, 통신 회로(210a)는 인공지능 학습 모델을 외부 전자 장치에 제공할 수 있다. 예를 들어, 통신 회로(210a)는 훈련된 이미지 보상을 위한 학습 모델을 외부 전자 장치에 제공할 수 있다.According to an embodiment, the communication circuit 210a communicates data with an external electronic device (eg, (eg, the electronic devices 102 and 104 of FIG. 1 , the server 106 , or the electronic device 200b of FIG. 2B )). For example, the communication circuit 210a may transmit or receive an image and/or an image to an external electronic device. For example, the communication circuit 210a may be configured by the processor 230a. The training data set (eg, input image and output image) of the generated artificial intelligence learning model may be transmitted to an external electronic device For example, the communication circuit 210a may provide the artificial intelligence learning model to the external electronic device For example, the communication circuit 210a may provide a learning model for training image compensation to an external electronic device.

일 실시예에 따르면, 메모리(220a)는 프로세서(230a)에 의해 실행되는 인스트럭션들을 포함할 수 있다. 일 실시예에 따르면, 메모리(220a)는 외부 전자 장치 또는 네트워크로부터 수신한 이미지 및/또는 영상을 적어도 적어도 일시적으로 저장할 수 있다. 일 실시예에 따르면, 메모리(220a)는 인공지능 학습 모델의 훈련 데이터 셋(예: 입력 이미지 및 출력 이미지 쌍(pair))을 저장할 수 있다.According to an embodiment, the memory 220a may include instructions executed by the processor 230a. According to an embodiment, the memory 220a may at least temporarily store an image and/or an image received from an external electronic device or a network. According to an embodiment, the memory 220a may store a training data set (eg, an input image and an output image pair) of the AI learning model.

일 실시예에 따르면, 일 실시예에 따르면, 프로세서(230a)는 전자 장치(200a)의 전반적인 동작을 제어할 수 있다. 일 실시예에 따르면, 프로세서(230a)는 인공지능 학습 모델을 훈련시킬 수 있다. 다양한 실시예에 따르며, 인공지능 학습 모델을 훈련시키는 시스템을 전자 장치(200a) (예: 프로세서(230a)(250)) 내부적으로 구현되거나, 전자 장치(200a)의 외부에 구현되거나, 또는 전자 장치(200a)와 외부의 조합으로 구현될 수도 있다. 예를 들어, 인공지능 학습 모델은 전자 장치(200a) 및 외부 장치 적어도 하나에 의해 훈련될 수 있다. 예를 들어, 인공지능 학습 시스템은 연합학습(federated learning)을 이용하여 훈련될 수 있다. 일 실시예에 따르면, 인공지능 학습 모델은 이미지를 보상하기 위한 이미지 보상 모델을 포함할 수 있다. 일 실시예에 따르면, 인공지능 학습 모델은, 뉴럴 네트워크(neural network), 지지 벡터 머신(support vector machine, SVN), 은닉 마르코프 모델(hidden Markov model, HMM), 및 베이시안(Baysian) 중 적어도 하나를 포함하는 머신 러닝(machine learning) 중 적어도 하나를 기반으로 훈련될 수 있다. 다양한 실시예에 따르면, 인공지능 학습 모델은 상기 언급한 머신 러닝 이외에도 학습 데이터로부터 패턴을 찾고, 패턴을 이용하여 실제 데이터에 적용할 수 있는 다양한 패턴 인식 알고리즘 중 적어도 하나를 기반으로 훈련될 수 있다.According to an embodiment, the processor 230a may control the overall operation of the electronic device 200a. According to an embodiment, the processor 230a may train an artificial intelligence learning model. According to various embodiments, a system for training an artificial intelligence learning model is implemented internally in the electronic device 200a (eg, the processors 230a and 250), external to the electronic device 200a, or the electronic device It may be implemented as a combination of (200a) and the outside. For example, the AI learning model may be trained by at least one of the electronic device 200a and an external device. For example, an artificial intelligence learning system may be trained using federated learning. According to an embodiment, the AI learning model may include an image compensation model for compensating for an image. According to an embodiment, the AI learning model is at least one of a neural network, a support vector machine (SVN), a hidden Markov model (HMM), and a Baysian. It may be trained based on at least one of machine learning including According to various embodiments, the artificial intelligence learning model may be trained based on at least one of various pattern recognition algorithms that can find patterns from learning data and apply the patterns to real data in addition to the aforementioned machine learning.

일 실시예에 따르면, 프로세서(230a)는 인공지능 학습 모델을 훈련시키기 위한 훈련 데이터 셋을 생성할 수 있다. 예를 들어, 훈련 데이터 셋은 한 쌍(pair)의 입력 이미지 및 출력 이미지를 포함할 수 있다.According to an embodiment, the processor 230a may generate a training data set for training the AI learning model. For example, the training data set may include a pair of input images and output images.

일 실시예에 따르면, 프로세서(230a)는 훈련 데이터 셋을 생성하기 위한 제1 이미지를 획득할 수 있다. 예를 들어, 제1 이미지는 전자 장치(200a) (예: 메모리(220a))에 기 저장된 이미지, 외부 전자 장치로부터 수신한 이미지, 및/또는 크롤링(crawling)을 통하여 획득한 이미지를 포함할 수 있다. 예를 들어, 제1 이미지는 훈련 데이터 셋(예: 입력 이미지 및 출력 이미지)를 생성하기 위한 임의의 이미지를 포함할 수 있다.According to an embodiment, the processor 230a may acquire a first image for generating a training data set. For example, the first image may include an image previously stored in the electronic device 200a (eg, the memory 220a), an image received from an external electronic device, and/or an image acquired through crawling. have. For example, the first image may include arbitrary images for generating a training data set (eg, an input image and an output image).

일 실시예에 따르면, 프로세서(230a)는 가상 광원 이미지를 생성할 수 있다. 예를 들어, 프로세서(230a)는 가상 광원의 크기, 색상, 강도(intensity), 모양, 밝기, 위치, 빛 번짐, 및 빛 갈라짐의 정도 중 적어도 하나의 파라미터에 기반하여 가상 광원 이미지를 생성할 수 있다. 일 실시예에 따르면, 상기 적어도 하나의 파라미터는 사용자의 입력에 따라 지정되거나, 프로세서(230a)에 의해 자동으로 지정될 수도 있다.According to an embodiment, the processor 230a may generate a virtual light source image. For example, the processor 230a may generate a virtual light source image based on at least one parameter of the size, color, intensity, shape, brightness, position, light spread, and degree of light splitting of the virtual light source. have. According to an embodiment, the at least one parameter may be designated according to a user input or may be automatically designated by the processor 230a.

일 실시예에 따르면, 프로세서(230a)는 가상 광원의 로우 이미지를 생성하고, 상기 로우 이미지를 지정된 대역 이하의 저역 통과 필터 처리하고, 상기 저역 통과 필터 처리한 이미지를 리사이징하고, 상기 리사이징한 이미지를 채색화(colorization) 및 베이어화(bayerization)하고, 상기 채색화 및 베이어화한 이미지를 디모자이싱(demosaicing)하는 동작을 통하여 가상 광원 이미지를 생성할 수 있다. 일 실시예에 따르면, 프로세서(230a)는 베이어(Bayer) 도메인(domain)에서 상기 가상 광원의 로우 이미지를 생성할 수 있다. 다양한 실시에에 따르면, 프로세서(230a)는 베이어(Bayer) 도메인이 아닌 다른 도메인(예: RGB 도메인)에서 다른 방식으로 가상 광원의 로우 이미지는 생성할 수도 있다. 다양한 실시예에 따르면, 상기 가상 광원 이미지를 생성하는 동작들 중 적어도 일부는 생략될 수 있다.According to an embodiment, the processor 230a generates a raw image of the virtual light source, processes the raw image with a low-pass filter of less than or equal to a specified band, resizes the low-pass filter-processed image, and performs the resizing of the image. A virtual light source image may be generated by performing colorization and Bayerization, and demosaicing the colored and Bayer-ized image. According to an embodiment, the processor 230a may generate a raw image of the virtual light source in a Bayer domain. According to various embodiments, the processor 230a may generate a raw image of the virtual light source in a domain other than the Bayer domain (eg, an RGB domain) in a different manner. According to various embodiments, at least some of the operations of generating the virtual light source image may be omitted.

일 실시예에 따르면, 프로세서(230a)는 가상 광원 이미지를 제1 이미지에 삽입하여 제1 출력 이미지를 생성할 수 있다. 예를 들어, 제1 출력 이미지는 인공지능 학습 모델을 훈련시키기 위한 출력 데이터일 수 있다. 예를 들어, 제1 출력 이미지는 제1 입력 이미지가 입력된 경우 훈련된 인공지능 학습 모델을 통하여 획득하고자 하는 타겟 이미지일 수 있다. According to an embodiment, the processor 230a may generate a first output image by inserting the virtual light source image into the first image. For example, the first output image may be output data for training an artificial intelligence learning model. For example, the first output image may be a target image to be acquired through a trained artificial intelligence learning model when the first input image is input.

일 실시예에 따르면, 프로세서(230a)는 가상 광원 이미지를 제2 필터 처리하고, 제2 필터 처리한 가상 광원 이미지를 제1 이미지에 삽입하여 제1 출력 이미지를 생성할 수 있다. 예를 들어, 제2 필터는 실제 카메라를 통하여 광원을 촬영하는 경우와 유사하게 가상 광원 이미지를 보정하기 위한 필터일 수 있다.According to an embodiment, the processor 230a may generate a first output image by second filtering the virtual light source image and inserting the second filtered virtual light source image into the first image. For example, the second filter may be a filter for correcting the virtual light source image similarly to the case of photographing the light source through a real camera.

일 실시예에 따르면, 프로세서(230a)는 가상 광원 이미지를 제1 이미지에 삽입한 후, 제1 필터 처리하여 제1 입력 이미지를 생성할 수 있다. 일 실시예에 따르면, 제1 필터는 가상 광원 이미지를 삽입한 제1 이미지를 실제의 촬영 이미지와 대응되도록 보정하기 위한 필터일 수 있다. 예를 들어, 제1 필터는 실제 카메라를 통한 이미지 촬영 시 나타나는 효과(예: 회절 효과)를 가상 광원 이미지를 삽입한 제1 이미지에 적용하기 위한 필터일 수 있다. 예를 들어, 제1 입력 이미지는 인공지능 학습 모델을 훈련시키기 위한 입력 데이터일 수 있다.According to an embodiment, the processor 230a inserts the virtual light source image into the first image and then performs a first filter process to generate the first input image. According to an embodiment, the first filter may be a filter for correcting the first image in which the virtual light source image is inserted to correspond to the actual photographed image. For example, the first filter may be a filter for applying an effect (eg, a diffraction effect) appearing when an image is captured by a real camera to the first image into which the virtual light source image is inserted. For example, the first input image may be input data for training an artificial intelligence learning model.

일 실시예에 따르면, 프로세서(230a)는 제1 입력 이미지 및 제1 출력 이미지를, 이미지를 보상하기 위한 인공지능 학습 모델의 훈련 데이터 셋으로 생성할 수 있다. 예를 들어, 인공지능 학습 모델은 제1 입력 이미지가 입력된 경우 제1 출력 이미지 또는 제1 출력 이미지와 유사한 결과 이미지가 도출되도록 훈련될 수 있다. According to an embodiment, the processor 230a may generate the first input image and the first output image as a training data set of an artificial intelligence learning model for compensating the image. For example, when the first input image is input, the artificial intelligence learning model may be trained to derive a first output image or a result image similar to the first output image.

일 실시예에 따르면, 프로세서(230a)는 훈련 데이터 셋을 생성하기 위한 제2 이미지를 획득할 수 있다. 예를 들어, 제2 이미지는 제1 이미지와 동일하거나, 또는 상이할 수 있다. 예를 들어, 제2 이미지는 전자 장치(200a)(예: 메모리(220a))에 기 저장된 이미지, 외부 전자 장치로부터 수신한 이미지, 및/또는 크롤링(crawling)을 통하여 획득한 이미지를 포함할 수 있다. 예를 들어, 제2 이미지는 훈련 데이터 셋(예: 입력 이미지 및 출력 이미지)를 생성하기 위한 임의의 이미지를 포함할 수 있다.According to an embodiment, the processor 230a may acquire a second image for generating a training data set. For example, the second image may be the same as or different from the first image. For example, the second image may include an image previously stored in the electronic device 200a (eg, the memory 220a), an image received from an external electronic device, and/or an image acquired through crawling. have. For example, the second image may include arbitrary images for generating a training data set (eg, an input image and an output image).

일 실시예에 따르면, 프로세서(230a)는 제2 이미지를 제2 출력 이미지로 생성하고, 제2 이미지를 제1 필터 처리하여 제2 입력 이미지를 생성할 수 있다. 일 실시예에 따르면, 프로세서(230a)는 제2 입력 이미지 및 제2 출력 이미지를 인공지능 학습 모델의 제2 훈련 데이터 셋으로 생성할 수 있다.According to an embodiment, the processor 230a may generate a second image as a second output image, and may generate a second input image by performing a first filter process on the second image. According to an embodiment, the processor 230a may generate the second input image and the second output image as the second training data set of the AI learning model.

일 실시예에 따르면, 제1 훈련 데이터 셋은 가상 광원 이미지를 포함하는 훈련 데이터 셋일 수 있고, 제2 훈련 데이터 셋은 가상 광원 이미지를 포함하지 않는 훈련 데이터 셋일 수 있다.According to an embodiment, the first training data set may be a training data set including a virtual light source image, and the second training data set may be a training data set not including a virtual light source image.

다양한 실시예에 따르면, 프로세서(230a)는 훈련 데이터 셋(예: 제1 훈련 데이터 셋 및/또는 제2 훈련 데이터 셋)을 이용하여 자체적으로 인공지능 학습 모델을 훈련 시키거나, 전자 장치(200a) 외부의 인공지능 학습 시스템을 통하여 인공지능 학습 모델을 훈련시킬 수 있다. 예를 들어, 프로세서(230a)는 통신 회로(210a)를 통하여 외부의 인공지능 학습 시스템에 생성한 훈련 데이터 셋을 제공할 수 있다. 예를 들어, 전자 장치(200a)(200a) 및 외부 전자 장치가 함께 인공지능 학습 시스템을 구성하는 경우, 전자 장치(200a)(200a) 및 외부 전자 장치가 함께 인공지능 학습 모델을 훈련시킬 수 있다.According to various embodiments, the processor 230a trains an artificial intelligence learning model by itself using a training data set (eg, a first training data set and/or a second training data set), or the electronic device 200a An artificial intelligence learning model can be trained through an external artificial intelligence learning system. For example, the processor 230a may provide the generated training data set to an external artificial intelligence learning system through the communication circuit 210a. For example, when the electronic devices 200a and 200a and the external electronic device together form an AI learning system, the electronic devices 200a and 200a and the external electronic device may train the AI learning model together. .

다양한 실시예에 따르면, 전자 장치(200a)는 일부 구성이 생략되거나, 도 1에 도시된 전자 장치(101) 또는 도 2b에 도시된 전자 장치(200b)의 구성 중 적어도 일부를 더 포함할 수 있다.According to various embodiments, some components of the electronic device 200a may be omitted or may further include at least some of the components of the electronic device 101 illustrated in FIG. 1 or the electronic device 200b illustrated in FIG. 2B . .

본 개시의 다양한 실시예들에 따르면, 가상 광원을 포함하는 훈련 데이터 셋(예: 제1 입력 이미지 및 제1 출력 이미지)을 통하여 이미지 보상을 위한 인공지능 학습 모델을 훈련시킴으로써, 빛의 회절에 따른 이미지의 손상 또는 변형을 보상할 수 있으며, 이미지 내의 빛의 포화, 빛 번짐 또는 빛 갈라짐 현상을 보상할 수 있는 인공지능 학습 모델을 제공할 수 있다. 본 개시의 다양한 실시예들에 따르면, 이미지 보상을 위한 인공지능 학습 모델을 훈련시킴에 있어서, 실제의 측정 데이터(예: 촬영된 이미지)가 아닌 합성 데이터(예: 합성 이미지)를 생성하여 훈련 데이터로 사용함으로써, 학습에 필요한 파라미터 값을 원하는 대로 설정하거나, 변경할 수 있기 때문에 인공지능 학습 모델의 훈련 효과를 증가시킬 수 있다. 본 개시의 다양한 실시예들에 따르면, 인공지능 학습 모델에 필요한 훈련 데이터 셋(예: 제1 입력 이미지 및 제1 출력 이미지)를 동일한 소스(예: 제1 이미지)로부터 생성함으로써, 실제 촬영 이미지를 인공지능 학습 모델의 훈련 데이터로 이용할 때 발생할 수 있는 시차(disparity), 주변 환경에 따른 노이즈(노이즈 변화), 실 촬영 시의 움직임, 및/또는 카메라(이미지 센서)의 한계(예: 광의 포화 값)로 인한 오차 및 문제점을 최소화할 수 있다.According to various embodiments of the present disclosure, by training an artificial intelligence learning model for image compensation through a training data set (eg, a first input image and a first output image) including a virtual light source, It can compensate for damage or deformation of an image, and can provide an artificial intelligence learning model that can compensate for light saturation, light blurring, or light splitting within an image. According to various embodiments of the present disclosure, in training an artificial intelligence learning model for image compensation, synthetic data (eg, a composite image) is generated instead of actual measurement data (eg, a photographed image) to train the training data By using it, the training effect of the artificial intelligence learning model can be increased because the parameter values required for learning can be set or changed as desired. According to various embodiments of the present disclosure, by generating a training data set (eg, a first input image and a first output image) required for an artificial intelligence learning model from the same source (eg, a first image), an actual photographed image is generated Disparity that may occur when used as training data for an artificial intelligence learning model, noise (noise change) depending on the surrounding environment, motion during actual shooting, and/or limitations of the camera (image sensor) (eg, light saturation value) ), errors and problems can be minimized.

도 2b는 일 실시예에 따른 전자 장치의 블록도이다.2B is a block diagram of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 전자 장치(200b)(예: 도 1의 전자 장치(101))(예: 모바일 장치)는 디스플레이(210b)(예: 도 1의 디스플레이 모듈(160)), 카메라(220b)(예: 도 1의 카메라 모듈 (180)), 통신 회로(230b)(예: 도 1의 통신 모듈(190)), 메모리(240b)(예: 도 1의 메모리(130)), 및 프로세서(250b)(예: 도 1의 프로세서(120))를 포함할 수 있다.According to an embodiment, the electronic device 200b (eg, the electronic device 101 of FIG. 1 ) (eg, a mobile device) includes a display 210b (eg, the display module 160 of FIG. 1 ) and a camera 220b. ) (eg, camera module 180 of FIG. 1 ), communication circuit 230b (eg, communication module 190 of FIG. 1 ), memory 240b (eg, memory 130 of FIG. 1 ), and a processor 250b (eg, processor 120 of FIG. 1 ).

일 실시예에 따르면, 디스플레이(210b)는 이미지 및/또는 영상을 표시할 수 있다. 일 실시예에 따르면, 디스플레이(210b)는 복수 개의 픽셀들을 포함할 수 있다. 일 실시예에 따르면, 디스플레이(210b)는 상이한 픽셀 밀도를 가지는 복수 개의 영역을 포함할 수 있다. 일 실시예에 따르면, 디스플레이(210b)는 각 픽셀들을 구동시키기 위한 배선을 포함할 수 있다.According to an embodiment, the display 210b may display an image and/or an image. According to an embodiment, the display 210b may include a plurality of pixels. According to an embodiment, the display 210b may include a plurality of regions having different pixel densities. According to an embodiment, the display 210b may include wires for driving respective pixels.

일 실시예에 따르면, 카메라(220b)는 디스플레이(210b)의 적어도 일부 영역의 하부에 배치될 수 있다. 예를 들어, 카메라(220b)는 UDC(under display camera)를 포함할 수 있다. 일 실시예에 따르면, 카메라(220b)는 디스플레이(210b)를 투과하여 입사되는 광을 기반으로 이미지를 생성할 수 있다. 예를 들어, 카메라(220b)가 디스플레이(210b) 아래에 배치되는 경우, 전자 장치(200b)의 전면(디스플레이(210b)가 배치된 면)에서 카메라(220b)(예: 카메라(220b) 홀)이 없이 디스플레이(210b)의 면적을 최대화할 수 있다. 다른 실시예에 따르면, 디스플레이(210b)의 화상 표시 영역은 적어도 2개 이상의 부 영역을 포함할 수 있다. 예를 들어, 적어도 2개 이상의 부 영역은 픽셀 밀도가 상대적으로 높은 제1 영역 및 픽셀 밀도가 상대적으로 낮은 제2 영역을 포함할 수 있다. 일 실시예에 따르면, 카메라(220b)의 적어도 일부는 상기 제2 영역 아래에 배치될 수 있다.According to an embodiment, the camera 220b may be disposed below at least a partial area of the display 210b. For example, the camera 220b may include an under display camera (UDC). According to an embodiment, the camera 220b may generate an image based on the light incident through the display 210b. For example, when the camera 220b is disposed under the display 210b, the camera 220b (eg, the camera 220b hole) in the front of the electronic device 200b (the surface on which the display 210b is disposed). Without this, the area of the display 210b may be maximized. According to another embodiment, the image display area of the display 210b may include at least two sub-areas. For example, the at least two sub-regions may include a first region having a relatively high pixel density and a second region having a relatively low pixel density. According to an embodiment, at least a portion of the camera 220b may be disposed under the second area.

일 실시예에 따르면, 통신 회로(230b)는 외부 전자 장치(예: 도 1의 전자 장치(102, 104), 서버(106), 또는 도 2a의 전자 장치(200a))와 데이터를 송수신할 수 있다. 예를 들어, 통신 회로(230b)는 이미지 및/또는 영상을 외부 전자 장치에 전송하거나, 또는 수신할 수 있다. 예를 들어, 통신 회로(230b)는 외부 전자 장치로부터 인공지능 학습 모델을 수신할 수 있다. According to an embodiment, the communication circuit 230b may transmit/receive data to and from an external electronic device (eg, the electronic devices 102 and 104 of FIG. 1 , the server 106 , or the electronic device 200a of FIG. 2A ). have. For example, the communication circuit 230b may transmit or receive an image and/or an image to an external electronic device. For example, the communication circuit 230b may receive an artificial intelligence learning model from an external electronic device.

일 실시예에 따르면, 메모리(240b)는 프로세서(250b)에 의해 실행되는 인스트럭션들을 포함할 수 있다. 일 실시예에 따르면, 메모리(240b)는 카메라(220b)를 통해 촬영한 이미지 및/또는 영상을 저장하거나, 외부 전자 장치로부터 수신한 이미지 및/또는 영상을 저장할 수 있다. According to an embodiment, the memory 240b may include instructions executed by the processor 250b. According to an embodiment, the memory 240b may store an image and/or an image captured by the camera 220b or an image and/or an image received from an external electronic device.

일 실시예에 따르면, 프로세서(250b)는 전자 장치(200b)의 전반적인 동작을 제어할 수 있다. According to an embodiment, the processor 250b may control the overall operation of the electronic device 200b.

일 실시예에 따르면, 프로세서(250b)는 카메라(220b)를 통하여 이미지를 캡쳐할 수 있다. 일 실시예에 따르면, 프로세서(250b)는 캡쳐한 이미지를 인공지능 학습 모델을 기반으로 보상할 수 있다. 예를 들어, 프로세서(250b)는 통신 회로(230b)를 통하여 외부 전자 장치(예: 도 2a의 전자 장치(200a)로부터 인공지능 학습 모델을 제공 받고, 제공 받은 인공지능 학습 모델을 기반으로 캡쳐한 이미지를 보상할 수 있다.According to an embodiment, the processor 250b may capture an image through the camera 220b. According to an embodiment, the processor 250b may compensate the captured image based on the AI learning model. For example, the processor 250b receives an artificial intelligence learning model from an external electronic device (eg, the electronic device 200a of FIG. 2A ) through the communication circuit 230b, and captures based on the received artificial intelligence learning model. image can be compensated.

예를 들어, 카메라(220b)가 디스플레이(210b) 아래 배치된 경우, 디스플레이(210b)의 픽셀 및 배선으로 인하여 디스플레이(210b)를 통하여 카메라(220b)로 입사되는 광이 회절을 일으킬 수 있다. 예를 들어, 광원을 촬영 시, 광이 강한 회절을 일으켜 이미지의 광원 주변부에 빛 갈라짐 및 빛 번짐 현상이 발생할 수 있다. 또는, 카메라(220b)를 통하여 광원 촬영 시, 이미지 내 픽셀이 포화되어 정보의 손실이 발생할 수 있다. 일 실시예에 따르면, 프로세서(250b)는 가상 광원 이미지를 이용하여 생성된 입력 이미지 및 출력 이미지를 포함하는 훈련 데이터 셋을 기반으로 훈련된 인공지능 학습 모델을 기반으로 이미지를 보상하여 캡처한 이미지 내의 빛 갈라짐, 및 빛 번짐 현상을 보상하고, 이미지의 품질을 향상시킬 수 있다.For example, when the camera 220b is disposed under the display 210b, light incident to the camera 220b through the display 210b may cause diffraction due to pixels and wiring of the display 210b. For example, when photographing a light source, light may cause strong diffraction, which may cause light splitting and light spreading around the light source of the image. Alternatively, when the light source is photographed through the camera 220b, pixels in the image are saturated and information loss may occur. According to an embodiment, the processor 250b compensates for an image based on an artificial intelligence learning model trained based on a training data set including an input image and an output image generated using a virtual light source image, and compensates for an image within the captured image. It is possible to compensate for light splitting and light blurring, and to improve image quality.

다양한 실시예에 따르면, 전자 장치(200b)는 일부 구성이 생략되거나, 도 1에 도시된 전자 장치(101)의 구성 중 적어도 일부를 더 포함할 수 있다. 다양한 실시예에 따르면, 전자 장치(200b)는 도 2의 전자 장치(200a)의 구성 중 적어도 일부를 포함하거나, 또는 도 2의 전자 장치(200a)의 동작 중 적어도 일부를 수행할 수 있다.According to various embodiments, some components of the electronic device 200b may be omitted or may further include at least some of the components of the electronic device 101 illustrated in FIG. 1 . According to various embodiments, the electronic device 200b may include at least a part of the configuration of the electronic device 200a of FIG. 2 or perform at least a part of the operation of the electronic device 200a of FIG. 2 .

도 3a 및 3b는 다양한 실시예에 따른 광원 이미지들의 예시이다. 3A and 3B are examples of light source images according to various embodiments.

도 3a를 참조하면, 제1 이미지(310)는 카메라(예: 외부 전자 장치(예: 도 2b의 전자 장치(200b)의 카메라(220b))를 이용하여 실제 광원을 촬영한 경우의 이미지를 나타내며, 제2 이미지(320)는 일 실시예에 따른 전자 장치(예: 도 2a의 전자 장치(200a))가 생성한 가상 광원 이미지를 포함하는 제1 입력 이미지를 나타내고, 제3 이미지(330)는 일 실시예에 따른 전자 장치(예: 도 2a의 전자 장치(200a))가 생성한 제1 출력 이미지를 나타낸다.Referring to FIG. 3A , the first image 310 represents an image when an actual light source is photographed using a camera (eg, an external electronic device (eg, the camera 220b of the electronic device 200b of FIG. 2B ). , the second image 320 represents a first input image including a virtual light source image generated by the electronic device (eg, the electronic device 200a of FIG. 2A ) according to an embodiment, and the third image 330 is A first output image generated by an electronic device (eg, the electronic device 200a of FIG. 2A ) according to an embodiment is shown.

도 3b를 참조하면, 제4 이미지(340)는 카메라(예: 외부 전자 장치(예: 도 2b의 전자 장치(200b))의 카메라(220b))를 이용하여 실제 광원을 촬영한 경우의 이미지를 나타내며, 제5 이미지(350)는 일 실시예에 따른 전자 장치(예: 도 2a의 전자 장치(200a))가 생성한 가상 광원 이미지를 포함하는 제1 입력 이미지를 나타내고, 제6 이미지(360)는 일 실시예에 따른 전자 장치(예: 도 2a의 전자 장치(200a))가 생성한 제1 출력 이미지를 나타낸다.Referring to FIG. 3B , the fourth image 340 is an image obtained when an actual light source is photographed using a camera (eg, the camera 220b of an external electronic device (eg, the electronic device 200b of FIG. 2B )). The fifth image 350 represents a first input image including a virtual light source image generated by an electronic device (eg, the electronic device 200a of FIG. 2A ) according to an embodiment, and a sixth image 360 . denotes a first output image generated by the electronic device (eg, the electronic device 200a of FIG. 2A ) according to an embodiment.

일 실시예에 따르면, 전자 장치(예: 도 2a의 전자 장치(200a))는 제1 이미지(310) 및 제4 이미지(340)와 같이 실제 광원을 촬영한 사진에서 발생할 수 있는 빛의 회절, 빛 번짐 및/또는 빛 갈라짐 현상을 보상하기 위하여 인공지능 학습 모델의 훈련 데이터 셋을 생성할 수 있다.According to an embodiment, the electronic device (eg, the electronic device 200a of FIG. 2A ) may include diffraction of light that may occur in a photo taken with a real light source, such as the first image 310 and the fourth image 340 , In order to compensate for light scattering and/or light divergence, a training data set of an artificial intelligence learning model may be generated.

예를 들어, 전자 장치는 가상 광원 이미지를 생성하고, 가상 광원 이미지에 실제 광원을 촬영한 이미지와 유사한 효과를 적용하기 위하여 제1 필터 처리하여 제2 이미지(320) 및 제5 이미지(350)와 같은 입력 이미지를 생성할 수 있다. 예를 들어, 전자 장치는 가상 광원 이미지를 생성하고, 이를 기반으로 제3 이미지(330) 및 제6 이미지(360)와 같은 제1 출력 이미지(즉, 타겟 이미지)를 생성할 수 있다.For example, the electronic device generates a virtual light source image, performs a first filter process to apply an effect similar to an image obtained by photographing a real light source to the virtual light source image, thereby generating the second image 320 and the fifth image 350 You can create the same input image. For example, the electronic device may generate a virtual light source image and generate first output images (ie, target images) such as the third image 330 and the sixth image 360 based on the generated virtual light source image.

일 실시예에 따르면, 전자 장치는 제1 입력 이미지와 제1 출력 이미지 쌍(pair)를 인공지능 학습 모델의 훈련 데이터로 생성 및 제공할 수 있다. 일 실시예에 따르면, 외부 전자 장치(예: 도 2b의 전자 장치(200b))는 전자 장치(예: 도 2a의 전자 장치(200a))에 의해 훈련된 인공지능 학습 모델에 기반하여 외부 전자 장치의 카메라를 통하여 촬영한 이미지(예: 제1 이미지(310) 또는 제4 이미지(340))를 보정할 수 있다. 예를 들어, 외부 전자 장치는 인공지능 학습 모델에 기반하여 촬영된 이미지를 보상하여 타겟 이미지와 같이 빛 번짐, 빛 갈라짐 및/또는 빛의 포화로 인한 정보 손실을 보상한 이미지(예: 제3 이미지(330) 또는 제6 이미지(360))를 획득할 수 있다.According to an embodiment, the electronic device may generate and provide a pair of a first input image and a first output image as training data of the AI learning model. According to an embodiment, the external electronic device (eg, the electronic device 200b of FIG. 2B ) is an external electronic device based on an artificial intelligence learning model trained by the electronic device (eg, the electronic device 200a of FIG. 2A ) An image (for example, the first image 310 or the fourth image 340) captured through the camera of For example, the external electronic device compensates the captured image based on the artificial intelligence learning model to compensate for information loss due to light blurring, light splitting, and/or light saturation, such as the target image (eg, the third image). (330) or the sixth image 360) may be acquired.

다양한 실시예에 따르면, 도 3a 및 도 3b에 도시된 실제 광원 이미지(310, 340), 제1 입력 이미지(320, 350), 및 제1 출력 이미지(330, 360)은 일 예시로서, 전자 장치가 보상할 수 있는 광원(예: 광원을 포함하는 이미지)의 형태는 이에 한정되지 않으며, 다양한 형태 및/또는 모양의 광원을 보상할 수 있다.According to various embodiments, the actual light source images 310 and 340, the first input images 320 and 350, and the first output images 330 and 360 shown in FIGS. 3A and 3B are an example, and the electronic device The type of light source (eg, an image including the light source) that can be compensated is not limited thereto, and various types and/or shapes of light sources may be compensated.

도 4는 일 실시예에 따른 전자 장치의 이미지 보상 동작을 설명하기 위한 도면이다.4 is a diagram for explaining an image compensation operation of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 410 동작에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2b의 전자 장치(200b))는 카메라(예: 도 1의 카메라 모듈(180) 또는 도 2의 카메라(220b))를 통하여 이미지를 획득할 수 있다. 일 실시예에 따르면, 전자 장치의 카메라는 디스플레이(예: 도 1의 디스플레이 모듈(160) 또는 도 2b의 디스플레이(210b))의 일 영역의 하부에 배치될 수 있다. 예를 들어, 디스플레이 하부에 배치된 카메라를 이용하여 이미지 촬영 시, 디스플레이의 픽셀 및/또는 배선으로 인한 빛의 회절로 인하여 이미지 내에 빛의 포화, 빛 번짐, 및/또는 빛 갈라짐이 발생할 수 있다.According to an embodiment, in operation 410 , the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200b of FIG. 2B ) receives a camera (eg, the camera module 180 of FIG. 1 or the electronic device 200b of FIG. 2 ). An image may be acquired through the camera 220b). According to an embodiment, the camera of the electronic device may be disposed under an area of a display (eg, the display module 160 of FIG. 1 or the display 210b of FIG. 2B ). For example, when an image is taken using a camera disposed under the display, light saturation, light bleeding, and/or light splitting may occur in the image due to diffraction of light due to pixels and/or wiring of the display.

일 실시예에 따르면, 420 동작에서, 전자 장치는 획득한 이미지를 전처리할 수 있다. 예를 들어, 전자 장치는 획득한 이미지의 적어도 일부에 대하여, 상기 획득한 이미지의 특성 또는 디스플레이의 특성에 적어도 기반하여 전처리(예: 해상도, 밝기, 또는 크기 조정)를 수행할 수 있다.According to an embodiment, in operation 420 , the electronic device may pre-process the acquired image. For example, the electronic device may perform preprocessing (eg, resolution, brightness, or size adjustment) on at least a portion of the acquired image based at least on characteristics of the acquired image or characteristics of a display.

일 실시예에 따르면, 430 동작에서, 전자 장치는 인공지능 학습 모델을 기반으로 이미지를 보상할 수 있다. 일 실시예에 따르면, 인공지능 학습 모델은 카메라(예: UDC(under display camera))를 통하여 획득한 이미지를 보상하기 위한 학습 모델일 수 있다. According to an embodiment, in operation 430 , the electronic device may compensate an image based on the artificial intelligence learning model. According to an embodiment, the AI learning model may be a learning model for compensating for an image acquired through a camera (eg, an under display camera (UDC)).

일 실시예에 따르면, 인공지능 학습 모델은 외부 전자 장치(미도시)(예: 도 2a의 전자 장치(200a))에 의해 생성된 학습 데이터 셋(예: 입력 이미지 및 출력 이미지 쌍(pair))을 이용하여 훈련될 수 있다. 예를 들어, 학습 데이터 셋은 전자 장치에 의해 생성된 가상 광원 이미지를 포함하는 입력 이미지 및 출력 이미지를 포함할 수 있다. 예를 들어, 전자 장치는 외부 전자 장치로부터, 훈련된 인공지능 학습 모델을 제공 받고, 제공 받은 인공지능 학습 모델을 기반으로 이미지를 보상하여, 이미지에 포함된 빛의 포화로 인한 손실, 빛 번짐, 및/또는 빛 갈라짐 현상을 보상한 이미지를 생성할 수 있다.According to an embodiment, the AI learning model is a training data set (eg, an input image and an output image pair) generated by an external electronic device (not shown) (eg, the electronic device 200a of FIG. 2A ). can be trained using For example, the training data set may include an input image and an output image including a virtual light source image generated by the electronic device. For example, an electronic device receives a trained artificial intelligence learning model from an external electronic device, and compensates for an image based on the received artificial intelligence learning model, so that loss due to saturation of light contained in the image, light blur, and/or an image in which light splitting is compensated may be generated.

일 실시예에 따르면, 440 동작에서, 전자 장치는 이미지를 후처리할 수 있다. 예를 들어, 전자 장치는 보상한 이미지의 적어도 일부에 대하여, 상기 보상한 이미지의 특성 또는 디스플레이의 특성에 적어도 기반하여 후처리(예: 해상도, 밝기, 또는 색상 조정)를 수행할 수 있다.According to an embodiment, in operation 440 , the electronic device may post-process the image. For example, the electronic device may perform post-processing (eg, adjustment of resolution, brightness, or color) on at least a portion of the compensated image based on at least characteristics of the compensated image or display characteristics.

일 실시예에 따르면, 450 동작에서, 전자 장치는 처리된 이미지를 획득할 수 있다. 예를 들어, 최종 획득한 이미지는 이미지 내에 포함된 광원으로 인한 빛 번짐, 빛 갈라짐, 및/또는 광의 포화 현상이 보상된 이미지일 수 있다.According to an embodiment, in operation 450 , the electronic device may acquire a processed image. For example, the finally acquired image may be an image in which light blurring, light splitting, and/or light saturation caused by a light source included in the image is compensated.

도 5는 일 실시예에 따른 전자 장치의 인공지능 학습 모델을 훈련시키는 동작을 설명하기 위한 도면이다.5 is a diagram for explaining an operation of training an artificial intelligence learning model of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2a의 전자 장치(200a))는 이미지 보상을 위한 인공지능 학습 모델을 훈련시키기 위한 훈련 데이터 셋(517)을 생성할 수 있다. 예를 들어, 훈련 데이터 셋(517)은 한 쌍(pair)의 입력 이미지 및 출력 이미지를 포함할 수 있다.According to an embodiment, the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200a of FIG. 2A ) generates a training data set 517 for training an artificial intelligence learning model for image compensation. can do. For example, the training data set 517 may include a pair of input images and output images.

일 실시예에 따르면, 전자 장치는 제1 이미지(501)를 획득할 수 있다. 예를 들어, 제1 이미지(501)는 전자 장치에 기 저장된 이미지, 외부 전자 장치로부터 수신한 이미지, 및/또는 크롤링(crawling)을 통하여 획득한 이미지를 포함할 수 있다. 예를 들어, 제1 이미지(501)는 훈련 데이터 셋(517)(예: 입력 이미지 및 출력 이미지)를 생성하기 위한 임의의 이미지를 포함할 수 있다.According to an embodiment, the electronic device may acquire the first image 501 . For example, the first image 501 may include an image pre-stored in the electronic device, an image received from an external electronic device, and/or an image acquired through crawling. For example, the first image 501 may include an arbitrary image for generating the training data set 517 (eg, an input image and an output image).

일 실시예에 따르면, 503 동작에서, 전자 장치는 가상 광원 이미지를 생성할 수 있다. 일 실시예에 따르면, 가상 광원 이미지는 전자 장치에 의해 생성된 합성 이미지, 또는 전자 장치 또는 외부 전자 장치에 의해 실제의 조명이 촬영된 이미지를 포함할 수 있다. 예를 들어, 전자 장치는 가상 광원 생성 파라미터를 기반으로 가상 광원 이미지를 생성할 수 있다. 예를 들어, 가상 광원 생성 파라미터는 가상 광원의 크기, 색상, 강도(intensity), 모양, 밝기, 위치, 빛 번짐, 및 빛 갈라짐의 정도 중 적어도 하나를 포함할 수 있다. 일 실시예에 따르면, 가상 광원 생성 파라미터는 사용자의 입력에 따라 지정되거나, 전자 장치에 의해 자동으로 지정될 수도 있다. 일 실시예에 따르면, 전자 장치는 복수 개의 가상 광원 생성 파라미터를 적용하여 하나의 이미지(예: 제1 이미지)에 대해 복수 개의 가상 광원 이미지를 생성할 수 있다.According to an embodiment, in operation 503 , the electronic device may generate a virtual light source image. According to an embodiment, the virtual light source image may include a composite image generated by the electronic device, or an image obtained by photographing actual lighting by the electronic device or an external electronic device. For example, the electronic device may generate a virtual light source image based on a virtual light source generation parameter. For example, the virtual light source generation parameter may include at least one of a size, color, intensity, shape, brightness, location, light spread, and degree of light splitting of the virtual light source. According to an embodiment, the virtual light source generation parameter may be designated according to a user input or may be automatically designated by the electronic device. According to an embodiment, the electronic device may generate a plurality of virtual light source images with respect to one image (eg, a first image) by applying a plurality of virtual light source generation parameters.

일 실시예에 따르면, 503의 가상 광원 이미지 생성 동작의 적어도 일부는, 507 동작 또는 511 동작의 가상 광원 이미지 삽입 동작의 적어도 일부로서 같이 수행될 수 있다. 예를 들어, 가상 광원 이미지 생성 동작의 적어도 일부(예: 위치 파라미터에 따라 가상 광원을 이미지 내에 특정 위치에 배치하는 동작)은 503 동작, 507 동작, 또는 511 동작에서 수행될 수 있다.According to an embodiment, at least a part of the operation of generating the virtual light source image in operation 503 may be performed together as at least a part of the operation of inserting the virtual light source image in operation 507 or 511 . For example, at least a part of the virtual light source image generating operation (eg, disposing the virtual light source at a specific position in the image according to the position parameter) may be performed in operation 503 , operation 507 , or operation 511 .

일 실시예에 따르면, 전자 장치는 505 동작에서, 가상 광원 이미지를 제2 필터 처리할 수 있다. 예를 들어, 제2 필터는 실제 카메라(220)를 통하여 광원을 촬영하는 경우와 유사하게 가상 광원 이미지를 보정하기 위한 필터일 수 있다. 예를 들어, 제2 필터는 광원 디자인 파라미터를 기반으로 설정될 수 있다. 예를 들어, 광원 디자인 파라미터는 가상 광원 이미지에 포함된 가상 광원의 경계부 추가, 광원 형태(패턴) 처리, 빛 번짐, 빛 갈라짐을 인공지능 학습 모델의 훈련에 적합한 형태로 조정하기 위한 다양한 값들을 포함할 수 있다. 일 실시예에 따르면, 505 동작은 선택적인(optional) 동작으로서 생략될 수 있다.According to an embodiment, in operation 505 , the electronic device may perform a second filter process on the virtual light source image. For example, the second filter may be a filter for correcting the virtual light source image similar to the case of photographing the light source through the real camera 220 . For example, the second filter may be set based on a light source design parameter. For example, the light source design parameter includes various values for adjusting the boundary of the virtual light source included in the virtual light image, light source shape (pattern) processing, light spreading, and light splitting into a form suitable for training of an artificial intelligence learning model. can do. According to an embodiment, operation 505 may be omitted as an optional operation.

일 실시예에 따르면, 507 동작에서, 전자 장치는 가상 광원 이미지를 제1 이미지(501)에 삽입하여 제1 출력 이미지(509)를 생성할 수 있다.According to an embodiment, in operation 507 , the electronic device may generate the first output image 509 by inserting the virtual light source image into the first image 501 .

일 실시예에 따르면, 511 동작에서, 전자 장치는 가상 광원 이미지를 제1 이미지(501)에 삽입할 수 있다. 일 실시예에 따르면, 511 동작과 507 동작은 동일한 동작일 수 있다. 예를 들어, 505 동작이 생략되는 경우, 507 동작과 511 동작은 단일 동작으로 수행될 수 있다.According to an embodiment, in operation 511 , the electronic device may insert the virtual light source image into the first image 501 . According to an embodiment, operations 511 and 507 may be the same operation. For example, when operation 505 is omitted, operations 507 and 511 may be performed as a single operation.

일 실시예에 따르면, 513 동작에서, 전자 장치는 가상 광원 이미지를 삽입한 제1 이미지(501)를 제1 필터 처리하여 제1 입력 이미지(515)를 생성할 수 있다. 일 실시예에 따르면, 제1 필터는 가상 광원 이미지를 삽입한 제1 이미지(501)를 실제의 촬영 이미지와 대응되도록 보정하기 위한 필터일 수 있다. 예를 들어, 제1 필터는 실제 카메라(220)를 통한 이미지 촬영 시 나타나는 효과(예: 회절 효과)를 가상 광원 이미지를 삽입한 제1 이미지(501)에 적용하기 위한 필터일 수 있다. 일 실시예에 따르면, 전자 장치는 상기 가상 광원 이미지를 상기 제1 이미지(501)에 삽입한 이후, 점 확산 함수(point spread function, PSF)를 이용하여(예: convolution 연산 사용) 상기 제1 필터 처리할 수 있다. 예를 들어, 전자 장치는 측정 데이터 또는 시뮬레이션을 기반으로 제1 필터를 처리할 PSF를 획득할 수 있다. According to an embodiment, in operation 513 , the electronic device may perform a first filter processing on the first image 501 in which the virtual light source image is inserted to generate the first input image 515 . According to an embodiment, the first filter may be a filter for correcting the first image 501 in which the virtual light source image is inserted to correspond to the actual photographed image. For example, the first filter may be a filter for applying an effect (eg, a diffraction effect) appearing when an image is captured through the real camera 220 to the first image 501 in which the virtual light source image is inserted. According to an embodiment, after inserting the virtual light source image into the first image 501 , the electronic device uses a point spread function (PSF) (eg, a convolution operation) to insert the first filter can be processed For example, the electronic device may acquire the PSF to process the first filter based on measurement data or simulation.

일 실시예에 따르면, 전자 장치는 복수 개의 가상 광원 생성 파라미터를 적용하여 다양한 가상 광원 이미지를 생성함으로써, 하나의 이미지(예: 제1 이미지)에 대해 입력 이미지(예: 제1 입력 이미지) 또는 출력 이미지(예: 제1 출력 이미지)를 생성할 수 있다.According to an embodiment, the electronic device generates various virtual light source images by applying a plurality of virtual light source generation parameters, thereby generating an input image (eg, a first image) or an output for one image (eg, a first image). An image (eg, a first output image) may be generated.

일 실시예에 따르면, 전자 장치는 제1 입력 이미지(515) 및 제1 출력 이미지(509)를 인공지능 학습 모델의 제1 훈련 데이터 셋(517)으로 생성할 수 있다.According to an embodiment, the electronic device may generate the first input image 515 and the first output image 509 as the first training data set 517 of the AI learning model.

일 실시예에 따르면, 전자 장치는 제2 이미지(519)를 획득할 수 있다. 예를 들어, 제2 이미지(519)는 전자 장치에 기 저장된 이미지, 외부 전자 장치로부터 수신한 이미지, 및/또는 크롤링(crawling)을 통하여 획득한 이미지를 포함할 수 있다. 예를 들어, 제2 이미지(519)는 제1 이미지(501)와 동일하거나, 또는 상이할 수 있다.According to an embodiment, the electronic device may acquire the second image 519 . For example, the second image 519 may include an image previously stored in the electronic device, an image received from an external electronic device, and/or an image acquired through crawling. For example, the second image 519 may be the same as or different from the first image 501 .

일 실시예에 따르면, 전자 장치는 제2 이미지(519)를 제2 출력 이미지(521)로 생성할 수 있다.According to an embodiment, the electronic device may generate the second image 519 as the second output image 521 .

일 실시예에 따르면, 523 동작에서, 전자 장치는 제2 이미지(519)를 제1 필터 처리하여 제2 입력 이미지(525)를 생성할 수 있다. 일 실시예에 따르면, 제1 필터는 제2 이미지(519)를 실제의 촬영 이미지와 대응되도록 보정하기 위한 필터일 수 있다. 예를 들어, 제1 필터는 실제 카메라를 통한 이미지 촬영 시 나타나는 효과(예: 회절 효과)를 제2 이미지(519)에 적용하기 위한 필터일 수 있다. 다양한 실시예에 따르면, 513 동작에서 적용하는 제1 필터와 523 동작에서 적용하는 제1 필터는 동일한 필터일 수도 있고, 상이한 필터일 수도 있다.According to an embodiment, in operation 523 , the electronic device may perform a first filter process on the second image 519 to generate a second input image 525 . According to an embodiment, the first filter may be a filter for correcting the second image 519 to correspond to an actual photographed image. For example, the first filter may be a filter for applying an effect (eg, a diffraction effect) that appears when an image is actually captured by a camera to the second image 519 . According to various embodiments, the first filter applied in operation 513 and the first filter applied in operation 523 may be the same filter or different filters.

일 실시예에 따르면, 전자 장치는 제2 입력 이미지(525) 및 제2 출력 이미지(521)를 인공지능 학습 모델의 제2 훈련 데이터 셋(517)으로 생성할 수 있다.According to an embodiment, the electronic device may generate the second input image 525 and the second output image 521 as the second training data set 517 of the AI learning model.

일 실시예에 따르면, 전자 장치는 527 동작에서, 생성한 훈련 데이터 셋(517)을 인공지능 학습 모델에 제공할 수 있다. 다양한 실시예에 따르면, 전자 장치는 훈련 데이터 셋(517)(예: 제1 훈련 데이터 셋(제1 입력 이미지 및 제1 출력 이미지) 및/또는 제2 훈련 데이터 셋(제2 입력 이미지 및 제2 출력 이미지))을 이용하여 자체적으로 인공지능 학습 모델을 훈련 시키거나, 전자 장치 외부의 인공지능 학습 시스템을 통하여 인공지능 학습 모델을 훈련시킬 수 있다. 예를 들어, 전자 장치는 외부의 인공지능 학습 시스템에 생성한 훈련 데이터 셋(517)을 제공할 수 있다. 일 실시예에 따르면, 전자 장치는 외부 전자 장치로부터 외부 전자 장치가 생성한 훈련 데이터 셋을 수신하고, 수신한 훈련 데이터 셋에 기반하여 인공지능 학습 모델을 훈련시킬 수도 있다. 일 실시예에 따르면, 전자 장치는 외부 전자 장치와 연동하여 인공지능 학습 모델을 훈련시킬 수도 있다. 예를 들어, 전자 장치가 외부 전자 장치와 인공지능 학습 시스템을 형성하는 경우, 전자 장치와 외부 전자 장치가 연동하여 인공지능 학습 모델을 훈련시킬 수 있다.According to an embodiment, in operation 527 , the electronic device may provide the generated training data set 517 to the AI learning model. According to various embodiments, the electronic device is configured with a training data set 517 (eg, a first training data set (a first input image and a first output image) and/or a second training data set (a second input image and a second input image) It is possible to train the AI learning model by itself using the output image)) or to train the AI learning model through an AI learning system external to the electronic device. For example, the electronic device may provide the generated training data set 517 to an external artificial intelligence learning system. According to an embodiment, the electronic device may receive a training data set generated by the external electronic device from the external electronic device, and train the AI learning model based on the received training data set. According to an embodiment, the electronic device may train an artificial intelligence learning model in conjunction with an external electronic device. For example, when the electronic device forms an artificial intelligence learning system with an external electronic device, the electronic device and the external electronic device may work together to train an artificial intelligence learning model.

일 실시예에 따르면, 전자 장치가 생성한 훈련 데이터 셋(517)을 기반으로 인공지능 학습 모델을 훈련하여 이미지 보상 모델(529)이 생성될 수 있다. 예를 들어, 전자 장치는 이미지 보상 모델(529)을 기반으로 카메라를 통하여 촬영한 이미지를 보상할 수 있다. 예를 들어, 전자 장치는 촬영한 이미지에서 빛의 회절에 따른 이미지의 손상 또는 변형을 보상할 수 있으며, 촬영한 이미지 내의 빛의 포화, 빛 번짐 또는 빛 갈라짐 현상을 보상할 수 있다.According to an embodiment, the image compensation model 529 may be generated by training the AI learning model based on the training data set 517 generated by the electronic device. For example, the electronic device may compensate for an image captured by the camera based on the image compensation model 529 . For example, the electronic device may compensate for damage or deformation of an image due to diffraction of light in a photographed image, and may compensate for light saturation, light spreading, or light splitting in the photographed image.

도 6은 일 실시예에 따른 전자 장치의 가상 광원 이미지 생성 동작을 설명하기 위한 도면이다. 일 실시예에 따르면, 도 6의 동작들은 도 5의 가상 광원 이미지 생성(503)을 수행하는 일 예시일 수 있다.6 is a diagram for explaining an operation of generating a virtual light source image of an electronic device according to an exemplary embodiment. According to an embodiment, the operations of FIG. 6 may be an example of generating the virtual light source image 503 of FIG. 5 .

일 실시예에 따르면, 610 동작에서 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2a의 전자 장치(200a))는 가상 광원의 로우 이미지를 생성할 수 있다. 예를 들어, 전자 장치는 가상 광원을 포함하는 로우 이미지(660)를 생성할 수 있다. 이하의 설명에서는 편의를 위하여 이미지 내의 가상 광원의 일 영역(670)을 기준으로 설명한다.According to an embodiment, in operation 610 , the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200a of FIG. 2A ) may generate a raw image of the virtual light source. For example, the electronic device may generate the raw image 660 including the virtual light source. In the following description, for convenience, one area 670 of the virtual light source in the image will be described.

일 실시예에 따르면, 전자 장치는 베이어 도메인(Bayer domain)에서 상기 가상 광원의 로우 이미지를 생성할 수 있다. 예를 들어, 전자 장치는 실제 카메라(예: CMOS(complementary metal-oxide-semiconductor) / CCD(charge coupled device) 센서)를 이용하여 촬영하는 이미지와 유사하게 베이어 도메인에서 가상 광원의 초기 이미지를 생성할 수 있다. 예를 들어, 671과 같이 이미지 내에서 가상 광원의 경계가 형성될 수 있다.According to an embodiment, the electronic device may generate a raw image of the virtual light source in a Bayer domain. For example, an electronic device may generate an initial image of a virtual light source in the Bayer domain similar to an image captured using a real camera (eg, complementary metal-oxide-semiconductor (CMOS) / charge coupled device (CCD) sensor). can For example, a boundary of a virtual light source may be formed in the image as 671 .

일 실시예에 따르면, 620 동작에서, 전자 장치는 가상 광원의 로우 이미지를 지정된 대역 이하의 저역 통과 필터(low pass filter, LPF) 처리할 수 있다. 예를 들어, 672를 참고하면, 전자 장치는 LPF를 통하여 로우 이미지의 가상 광원에 실제의 카메라 촬영 시 렌즈 및/또는 광학적 구조에 따라 발생할 수 있는 블러링(blurring) 효과를 반영할 수 있다. According to an embodiment, in operation 620 , the electronic device may perform a low pass filter (LPF) process on the raw image of the virtual light source below a specified band. For example, referring to 672 , the electronic device may reflect a blurring effect that may occur depending on a lens and/or an optical structure when an actual camera is photographed in a virtual light source of a raw image through the LPF.

일 실시예에 따르면, 630 동작에서, 전자 장치는 저역 통과 필터 처리한 이미지를 리사이징(resizing)할 수 있다. 예를 들어, 전자 장치는 가상 광원을 원하는 광원 사이즈에 대응되도록 리사이징할 수 있다. 예를 들어, 전자 장치는 지정된 거리에 대응하도록 가상 광원을 리사이징할 수 있다. 예를 들어, 전자 장치는 특정 거리에 있는 실제의 광원에 대응하도록 가상 광원을 리사이징할 수 있다. 예를 들어, 전자 장치는 가상 광원의 이미지 중 적어도 일부를 다운샘플링(downsampling)하여 가상 광원의 가장자리를 실제의 광원과 유사하게 처리할 수 있다. 예를 들어, 673과 유사하게, 전자 장치는 가상 광원의 가장자리 부분을 처리하여 직선에 가까운 형태로 형성하였던 가상 광원의 가장자리를 실제 촬영된 광원의 가장자리의 형태에 더 유사해지도록 변형할 수 있다.According to an embodiment, in operation 630 , the electronic device may resize the low-pass filter-processed image. For example, the electronic device may resize the virtual light source to correspond to a desired size of the light source. For example, the electronic device may resize the virtual light source to correspond to a specified distance. For example, the electronic device may resize the virtual light source to correspond to an actual light source located at a specific distance. For example, the electronic device may downsample at least a portion of an image of the virtual light source to process an edge of the virtual light source similarly to an actual light source. For example, similar to 673, the electronic device may deform the edge of the virtual light source that is formed in a shape close to a straight line by processing the edge of the virtual light source to be more similar to the shape of the edge of the actually photographed light source.

일 실시예에 따르면, 640 동작에서, 전자 장치는 리사이징한 이미지를 채색화(colorization), 베이어화(bayerization)할 수 있다. 예를 들어, 전자 장치는 그레이스케일(grayscale)을 가지는 이미지를 R, G, B 3채널로 변환하고 색상을 설정할 수 있다. 예를 들어, 전자 장치는 리상이징한 이미지를 RGB 색상을 가지는 이미지(674)로 변환할 수 있다.According to an embodiment, in operation 640 , the electronic device may colorize or bayerize the resized image. For example, the electronic device may convert an image having a grayscale into three R, G, and B channels and set a color. For example, the electronic device may convert the re-imaged image into an image 674 having RGB colors.

일 실시예에 따르면, 650 동작에서, 전자 장치는 채색화 및 베이어화한 이미지를 디모자이싱(demosaicing)할 수 있다. 예를 들어, 전자 장치는 디모자이싱을 수행하여 R, G, B 3-채널(channel)을 가지는 가상 광원 이미지(675)를 생성할 수 있다.According to an embodiment, in operation 650 , the electronic device may demosaicing the colored and Bayer-ized images. For example, the electronic device may perform demosaicing to generate a virtual light source image 675 having R, G, and B 3-channels.

일 실시예에 따르면, 전자 장치가 생성한 가상 광원 이미지에 포함된 가상 광원의 밝기는 지정된 밝기 기준보다 크게 설정될 수 있다. 예를 들어, 실제의 카메라를 통한 이미지 촬영 시에는 카메라의 성능 한계로 인하여 픽셀들의 밝기 포화 값이 존재할 수 있다. 예를 들어, 일 실시예에 따른 전자 장치는 가상의 광원을 포함하는 이미지를 생성하기 때문에, 가상 광원 이미지에 포함된 광원은 카메라의 성능과 무관하게 더 높은 밝기 값을 가질 수 있다. 일 실시예에 따르면, 가상 광원 이미지를 인공지능 학습 모델의 훈련 데이터로 활용함으로써, 실제의 이미지만을 훈련 데이터로 활용하는 경우보다 정교한 학습 모델의 생성이 가능할 수 있다.According to an embodiment, the brightness of the virtual light source included in the virtual light source image generated by the electronic device may be set to be greater than a specified brightness reference. For example, when an image is actually captured by a camera, brightness saturation values of pixels may exist due to a performance limitation of the camera. For example, since the electronic device according to an embodiment generates an image including a virtual light source, the light source included in the virtual light source image may have a higher brightness value regardless of camera performance. According to an embodiment, by using the virtual light source image as training data of the artificial intelligence learning model, it may be possible to generate a more sophisticated learning model than when only real images are used as training data.

다양한 실시예에 따르면, 전자 장치는 베이어 도메인뿐만 아니라 다른 도메인에서 다른 방식으로 학습을 위한 가상 조명을 생성할 수도 있다.According to various embodiments, the electronic device may generate virtual lighting for learning in a different manner in other domains as well as in the Bayer domain.

도 7은 일 실시예에 따른 전자 장치의 훈련 이미지 셋을 생성하는 동작을 설명하기 위한 도면이다.7 is a diagram for explaining an operation of generating a training image set of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2a의 전자 장치(200a))는 가상 광원 생성 알고리즘에 기반하여 인공지능 학습 모델의 훈련 데이터 셋(예: 입력 이미지(715)와 출력 이미지(735) 셋, 또는 입력 이미지(725)와 출력 이미지(745) 셋)을 생성할 수 있다. According to an embodiment, the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200a of FIG. 2A ) uses a training data set (eg, an input image) of an artificial intelligence learning model based on a virtual light source generation algorithm. 715 and three output images 735 or three input images 725 and 745) may be generated.

일 실시예에 따르면, 전자 장치는 가상 광원을 생성(711, 721)하고, 가상 광원을 임의의 이미지에 삽입(713, 723)하고, 가상 광원이 삽입된 이미지를 제1 필터 처리하여 입력 이미지(715, 725)를 생성할 수 있다. 일 실시예에 따르면, 제1 필터는 가상 광원 이미지에 실제의 광원을 촬영할 때 발생할 수 있는 빛의 회절로 인한 현상을 적용하기 위한 필터일 수 있다.According to an embodiment, the electronic device generates a virtual light source (711, 721), inserts the virtual light source into an arbitrary image (713, 723), and performs a first filter process on the image into which the virtual light source is inserted to obtain an input image ( 715, 725) can be created. According to an embodiment, the first filter may be a filter for applying a phenomenon due to diffraction of light that may occur when photographing an actual light source to the virtual light source image.

일 실시예에 따르면, 전자 장치는 가상 광원을 생성(731, 741)하고, 가상 광원을 제2 필터 처리(733, 743)하고, 제2 필터 처리한 가상 광원을 임의의 이미지에 삽입하여 출력 이미지(735, 745)를 생성할 수 있다.According to an embodiment, the electronic device generates a virtual light source (731, 741), performs a second filter process on the virtual light source (733, 743), and inserts the second filter-processed virtual light source into an arbitrary image to produce an output image (735, 745) can be created.

일 실시예에 따르면, 전자 장치는 생성한 입력 이미지 및 출력 이미지 쌍(pair) (예: 입력 이미지(715)와 출력 이미지(735) 셋, 또는 입력 이미지(725)와 출력 이미지(745) 셋)을 이미지 보상을 위한 인공지능 학습 모델의 훈련 데이터로 제공할 수 있다. 예를 들어, 전자 장치는 제1 형태의 가상 광원에 대한 제1 훈련 데이터 셋(입력 이미지(715) 및 출력 이미지(735))를 생성하거나, 또는 제2 형태의 가상 광원에 대한 제2 훈련 데이터 셋(입력 이미지(725) 및 출력 이미지(745))를 생성할 수 있다.According to an embodiment, the electronic device generates a pair of an input image and an output image (eg, three input images 715 and 735, or three input images 725 and 745). can be provided as training data of an artificial intelligence learning model for image compensation. For example, the electronic device generates a first training data set (an input image 715 and an output image 735) for a virtual light source of a first type, or second training data for a virtual light source of a second type Three (input image 725 and output image 745) may be generated.

일 실시예에 따르면, 전자 장치는 가상의 광원 이미지를 포함하는 훈련 데이터 셋(입력 이미지 및 출력 이미지)를 생성할 수 있기 때문에, 다양한 광원 및 다양한 파라미터에 대한 훈련 데이터 셋을 생성할 수 있다. 예를 들어, 전자 장치는 보다 적은 수의 촬영 데이터에 기반하여 무한정의 훈련 데이터 셋을 생성하고, 이를 기반으로 인공지능 학습 모델을 훈련시킴으로써, 훈련 효과를 최대화하고 더 정교하고 정확한 인공지능 학습 모델을 구현할 수 있다. 예를 들어, 전자 장치는 다양한 파라미터에 기반하여 복수 개의 가상 광원 이미지 및/또는 훈련 데이터 셋을 생성함으로써, 적은 수의 소스 이미지로부터 다량의 훈련 데이터를 생성할 수 있다. 일 실시예에 따르면, 전자 장치는 동일한 소스 이미지를 기반으로 가상의 광원을 포함하는 입력 이미지 및 출력 이미지 셋을 생성함으로써, 실제 촬영 이미지를 인공지능 학습 모델의 훈련 데이터로 이용할 때 발생할 수 있는 시차(disparity), 주변 환경에 따른 노이즈(노이즈 변화), 실 촬영 시의 움직임, 및/또는 카메라(220)(이미지 센서)의 한계(예: 광의 포화 값)로 인한 오차 및 문제점을 최소화할 수 있다.According to an embodiment, since the electronic device may generate a training data set (an input image and an output image) including a virtual light source image, it may generate a training data set for various light sources and various parameters. For example, an electronic device generates an infinite training data set based on a smaller number of shooting data and trains an AI learning model based on it, thereby maximizing the training effect and developing a more sophisticated and accurate AI learning model. can be implemented For example, the electronic device may generate a large amount of training data from a small number of source images by generating a plurality of virtual light source images and/or training data sets based on various parameters. According to an embodiment, by generating an input image and an output image set including a virtual light source based on the same source image, the electronic device generates a parallax ( disparity), noise (noise change) according to the surrounding environment, movement during actual shooting, and/or errors and problems caused by limitations (eg, light saturation value) of the camera 220 (image sensor) may be minimized.

일 실시예에 따른 전자 장치는, 통신 회로; 메모리; 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함할 수 있다.An electronic device according to an embodiment includes a communication circuit; Memory; and a processor operatively coupled to the memory.

일 실시예에 따르면, 상기 메모리는, 실행 시, 상기 프로세서가, 제1 이미지를 획득하고, 가상 광원 이미지를 생성하고, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하고, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 후, 제1 필터 처리하여 제1 입력 이미지를 생성하고, 상기 제1 입력 이미지 및 상기 제1 출력 이미지를 이미지를 보상하기 위한 인공지능 학습 모델의 제1 훈련 데이터 셋으로 생성하도록 하는 인스트럭션들(instructions)을 저장할 수 있다.According to an embodiment, the memory, when executed, causes the processor to acquire a first image, generate a virtual light source image, insert the virtual light source image into the first image to generate a first output image, , After inserting the virtual light source image into the first image, a first filter process is performed to generate a first input image, and an artificial intelligence learning model for compensating for an image with the first input image and the first output image. Instructions for generating the first training data set may be stored.

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 가상 광원의 로우 이미지를 생성하고, 상기 로우 이미지를 지정된 대역 이하의 저역 통과 필터 처리하고, 상기 저역 통과 필터 처리한 이미지를 리사이징하고, 상기 리사이징한 이미지를 채색화(colorization) 및 베이어화(bayerization)하고, 상기 채색화 및 베이어화한 이미지를 디모자이싱(demosaicing)하여 상기 가상 광원 이미지를 생성하도록 할 수 있다.According to an embodiment, the instructions include, by the processor, generating a raw image of a virtual light source, low-pass filtering the raw image below a specified band, resizing the low-pass filter-processed image, and the resizing One image may be colorized and Bayerized, and the colored and Bayerized image may be demosaiced to generate the virtual light source image.

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 베이어(Bayer) 도메인(domain)에서 상기 가상 광원의 로우 이미지를 생성하도록 할 수 있다.According to an embodiment, the instructions may cause the processor to generate a raw image of the virtual light source in a Bayer domain.

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 제2 이미지를 획득하고, 상기 제2 이미지를 제2 출력 이미지로 생성하고, 상기 제2 이미지를 상기 제1 필터 처리하여 제2 입력 이미지를 생성하고, 상기 제2 입력 이미지 및 상기 제2 출력 이미지를 상기 인공지능 학습 모델의 제2 훈련 데이터 셋으로 생성하도록 할 수 있다.According to an embodiment, the instructions include, by the processor, obtaining a second image, generating the second image as a second output image, and processing the second image with the first filter to obtain a second input image and generate the second input image and the second output image as a second training data set of the artificial intelligence learning model.

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 가상 광원 이미지를 제2 필터 처리하고, 상기 제2 필터 처리한 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하도록 할 수 있다.According to an embodiment, the instructions cause the processor to generate a first output image by second filtering the virtual light source image and inserting the second filtered virtual light source image into the first image. can

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 가상 광원의 크기, 색상, 강도(intensity), 모양, 밝기, 위치, 빛 번짐, 및 빛 갈라짐의 정도 중 적어도 하나의 파라미터에 기반하여 상기 가상 광원 이미지를 생성하도록 할 수 있다.According to an embodiment, the instructions may be configured by the processor based on at least one parameter of a size, color, intensity, shape, brightness, location, light spread, and degree of light splitting of the virtual light source. You can create a light source image.

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 이후, 점 확산 함수(point spread function, PSF)를 이용하여 상기 제1 필터 처리하도록 할 수 있다.According to an embodiment, the instructions may cause the processor to process the first filter using a point spread function (PSF) after inserting the virtual light source image into the first image. .

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 훈련 데이터 셋으로부터 패턴을 인식하여 실제의 데이터에 적용할 수 있는 패턴 인식 알고리즘 중 적어도 하나를 기반으로 상기 인공지능 학습 모델을 훈련하도록 할 수 있다.According to an embodiment, the instructions may cause the processor to recognize a pattern from the training data set and train the AI learning model based on at least one of pattern recognition algorithms that can be applied to actual data. have.

일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 뉴럴 네트워크(neural network), 지지 벡터 머신(support vector machine, SVN), 은닉 마르코프 모델(hidden Markov model, HMM), 및 베이시안(Baysian) 중 적어도 하나를 포함하는 머신 러닝(machine learning) 중 적어도 하나를 기반으로 상기 인공지능 학습 모델을 훈련하도록 할 수 있다.According to an embodiment, the instructions include, by the processor, a neural network, a support vector machine (SVN), a hidden Markov model (HMM), and a Baysian. The artificial intelligence learning model may be trained based on at least one of machine learning including at least one.

일 실시에에 따른 전자 장치는, 디스플레이; 상기 디스플레이의 적어도 일부 영역의 아래에 배치되는 카메라; 통신 회로; 메모리; 및 상기 디스플레이, 상기 카메라, 상기 통신 회로, 및 상기 메모리와 작동적으로(opertavely) 연결되는 프로세서를 포함할 수 있다. 일 실시예에 따르면, 상기 메모리는, 실행 시, 상기 프로세서가, 상기 카메라를 이용하여 이미지를 캡쳐하고, 상기 캡쳐한 이미지를 인공지능 학습 모델을 기반으로 보상하도록 할 수 있다. 일 실시예에 따르면, 상기 인공지능 학습 모델은 가상 광원 이미지를 이용하여 생성된 입력 이미지 및 출력 이미지를 포함하는 훈련 데이터 셋을 기반으로 훈련될 수 있다.An electronic device according to an embodiment includes a display; a camera disposed under at least a partial area of the display; communication circuit; Memory; and a processor operatively coupled to the display, the camera, the communication circuitry, and the memory. According to an embodiment, when the memory is executed, the processor may capture an image using the camera and compensate the captured image based on an artificial intelligence learning model. According to an embodiment, the AI learning model may be trained based on a training data set including an input image and an output image generated using a virtual light source image.

도 8은 일 실시예에 따른 전자 장치의 인공지능 학습 모델 훈련 방법의 흐름도이다.8 is a flowchart of a method for training an artificial intelligence learning model of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 810 동작에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2a의 전자 장치(200a))는 제1 이미지를 획득할 수 있다. 예를 들어, 제1 이미지는 전자 장치에 기 저장된 이미지, 외부 전자 장치로부터 수신한 이미지, 및/또는 크롤링(crawling)을 통하여 획득한 이미지를 포함할 수 있다. 예를 들어, 제1 이미지는 훈련 데이터 셋(예: 입력 이미지 및 출력 이미지)를 생성하기 위한 임의의 이미지를 포함할 수 있다.According to an embodiment, in operation 810 , the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200a of FIG. 2A ) may acquire a first image. For example, the first image may include an image pre-stored in the electronic device, an image received from an external electronic device, and/or an image acquired through crawling. For example, the first image may include arbitrary images for generating a training data set (eg, an input image and an output image).

일 실시예에 따르면, 820 동작에서, 전자 장치는 가상 광원 이미지를 생성할 수 있다. 예를 들어, 프로세서는 가상 광원의 크기, 색상, 강도(intensity), 모양, 밝기, 위치, 빛 번짐, 및 빛 갈라짐의 정도 중 적어도 하나의 파라미터에 기반하여 가상 광원 이미지를 생성할 수 있다. 일 실시예에 따르면, 상기 적어도 하나의 파라미터는 사용자의 입력에 따라 지정되거나, 프로세서에 의해 자동으로 지정될 수도 있다.According to an embodiment, in operation 820, the electronic device may generate a virtual light source image. For example, the processor may generate the virtual light source image based on at least one parameter among a size, color, intensity, shape, brightness, location, light spread, and degree of light splitting of the virtual light source. According to an embodiment, the at least one parameter may be designated according to a user input or may be automatically designated by a processor.

일 실시예에 따르면, 830 동작에서, 전자 장치는 가상 광원 이미지를 제1 이미지에 삽입하여 제1 출력 이미지를 생성할 수 있다. 예를 들어, 제1 출력 이미지는 인공지능 학습 모델을 훈련시키기 위한 출력 데이터일 수 있다. 예를 들어, 제1 출력 이미지는 제1 입력 이미지가 입력된 경우 훈련된 인공지능 학습 모델을 통하여 획득하고자 하는 타겟 이미지일 수 있다. 일 실시예에 따르면, 전자 장치는 가상 광원 이미지를 제2 필터 처리하고, 제2 필터 처리한 가상 광원 이미지를 제1 이미지에 삽입하여 제1 출력 이미지를 생성할 수 있다. 예를 들어, 제2 필터는 실제 카메라를 통하여 광원을 촬영하는 경우와 유사하게 가상 광원 이미지를 보정하기 위한 필터일 수 있다.According to an embodiment, in operation 830 , the electronic device may generate a first output image by inserting the virtual light source image into the first image. For example, the first output image may be output data for training an artificial intelligence learning model. For example, the first output image may be a target image to be acquired through a trained artificial intelligence learning model when the first input image is input. According to an embodiment, the electronic device may generate a first output image by performing a second filter process on the virtual light source image and inserting the second filtered virtual light source image into the first image. For example, the second filter may be a filter for correcting the virtual light source image similarly to the case of photographing the light source through a real camera.

일 실시예에 따르면, 840 동작에서, 전자 장치는 가상 광원 이미지를 제1 이미지에 삽입하고 제1 필터 처리하여 제1 입력 이미지를 생성할 수 있다. 일 실시예에 따르면, 제1 필터는 가상 광원 이미지를 삽입한 제1 이미지를 실제의 촬영 이미지와 대응되도록 보정하기 위한 필터일 수 있다. 예를 들어, 제1 필터는 실제 카메라를 통한 이미지 촬영 시 나타나는 회절 효과를 가상 광원 이미지를 삽입한 제1 이미지에 적용하기 위한 필터일 수 있다. 예를 들어, 제1 입력 이미지는 인공지능 학습 모델을 훈련시키기 위한 입력 데이터일 수 있다.According to an embodiment, in operation 840 , the electronic device inserts the virtual light source image into the first image and performs first filter processing to generate the first input image. According to an embodiment, the first filter may be a filter for correcting the first image in which the virtual light source image is inserted to correspond to the actual photographed image. For example, the first filter may be a filter for applying a diffraction effect appearing when an image is captured through a real camera to the first image in which the virtual light source image is inserted. For example, the first input image may be input data for training an artificial intelligence learning model.

일 실시예에 따르면, 850 동작에서, 전자 장치는 제1 입력 이미지 및 제1 출력 이미지를 카메라를 통해 촬영된 이미지를 보상하기 위한 인공지능 학습 모델의 훈련 데이터 셋으로 생성 및/또는 제공할 수 있다. 예를 들어, 인공지능 학습 모델은 제1 입력 이미지가 입력된 경우 제1 출력 이미지가 도출되도록 훈련될 수 있다. 예를 들어, 인공지능 학습 모델은 제1 입력 이미지가 입력된 경우, 제1 출력 이미지와 유사한 결과 이미지가 도출되도록 훈련될 수 있다. 다양한 실시예에 따르면, 전자 장치는 훈련 데이터 셋(예: 제1 훈련 데이터 셋 및/또는 제2 훈련 데이터 셋)을 이용하여 자체적으로 인공지능 학습 모델을 훈련 시키거나, 전자 장치 외부의 인공지능 학습 시스템을 통하여 인공지능 학습 모델을 훈련시킬 수 있다. 예를 들어, 전자 장치는 통신 회로를 통하여 외부의 인공지능 학습 시스템에 생성한 훈련 데이터 셋을 제공할 수 있다.According to an embodiment, in operation 850 , the electronic device may generate and/or provide the first input image and the first output image as a training data set of an artificial intelligence learning model for compensating for an image captured by the camera. . For example, the AI learning model may be trained to derive a first output image when a first input image is input. For example, when the first input image is input, the artificial intelligence learning model may be trained to derive a result image similar to the first output image. According to various embodiments, the electronic device trains an artificial intelligence learning model by itself using a training data set (eg, a first training data set and/or a second training data set), or learns an artificial intelligence external to the electronic device. It is possible to train an artificial intelligence learning model through the system. For example, the electronic device may provide the generated training data set to an external artificial intelligence learning system through a communication circuit.

일 실시예에 따르면, 전자 장치는 상기 동작들과 별도로 가상 광원 이미지를 포함하지 않는 훈련 데이터 셋을 생성할 수 있다. 예를 들어, 전자 장치는 제2 이미지를 획득하고, 제2 이미지를 제2 출력 이미지로 생성하고, 제2 이미지를 제1 필터 처리하여 제2 입력 이미지를 생성할 수 있다. 예를 들어, 전자 장치는 제2 입력 이미지 및 제2 출력 이미지를 인공지능 학습 모델의 제2 훈련 데이터 셋으로 생성할 수 있다.According to an embodiment, the electronic device may generate a training data set that does not include a virtual light source image separately from the above operations. For example, the electronic device may acquire the second image, generate the second image as a second output image, and process the second image with a first filter to generate a second input image. For example, the electronic device may generate the second input image and the second output image as the second training data set of the AI learning model.

본 개시의 다양한 실시예들에 따르면, 이미지 보상을 위한 인공지능 학습 모델을 훈련시킴에 있어서, 실제의 측정 데이터(예: 카메라(220)를 통한 촬영 이미지)뿐만 아니라 합성 데이터(예: 합성 이미지)를 생성하여 훈련 데이터로 사용함으로써, 학습에 필요한 파라미터 값을 원하는 대로 설정하거나, 변경할 수 있기 때문에 인공지능 학습 모델의 훈련 효과를 증가시킬 수 있다. 본 개시의 다양한 실시예들에 따르면, 인공지능 학습 모델에 필요한 훈련 데이터 셋(예: 제1 입력 이미지 및 제1 출력 이미지)를 동일한 소스(예: 제1 이미지)로부터 생성함으로써, 실제 촬영 이미지를 인공지능 학습 모델의 훈련 데이터로 이용할 때 발생할 수 있는 시차(disparity), 주변 환경에 따른 노이즈(노이즈 변화), 실 촬영 시의 움직임, 및/또는 카메라(220)(이미지 센서)의 한계(예: 광의 포화 값)로 인한 오차 및 문제점을 최소화할 수 있다.According to various embodiments of the present disclosure, in training an artificial intelligence learning model for image compensation, not only actual measurement data (eg, an image captured by the camera 220 ) but also synthetic data (eg, a composite image) By generating and using as training data, the training effect of the AI learning model can be increased because the parameter values required for learning can be set or changed as desired. According to various embodiments of the present disclosure, by generating a training data set (eg, a first input image and a first output image) required for an artificial intelligence learning model from the same source (eg, a first image), an actual photographed image is generated Disparity that may occur when used as training data for an artificial intelligence learning model, noise (noise change) depending on the surrounding environment, movement during actual shooting, and/or limitations of the camera 220 (image sensor) (eg: It is possible to minimize errors and problems due to the saturation value of light).

도 9는 일 실시예에 따른 전자 장치의 가상 광원 이미지 생성 동작의 흐름도이다.9 is a flowchart of an operation of generating a virtual light source image of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 910 동작에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2a의 전자 장치(200a))는 가상 광원의 로우 이미지를 생성할 수 있다. 일 실시예에 따르면, 프로세서는 베이어(Bayer) 도메인(domain)에서 상기 가상 광원의 로우 이미지를 생성할 수 있다. According to an embodiment, in operation 910 , the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200a of FIG. 2A ) may generate a raw image of the virtual light source. According to an embodiment, the processor may generate a raw image of the virtual light source in a Bayer domain.

일 실시예에 따르면, 920 동작에서, 전자 장치는 로우 이미지를 저역 통과 필터 처리할 수 있다. 예를 들어, 전자 장치는 LPF를 통하여 로우 이미지의 가상 광원에 실제의 카메라 촬영 시 렌즈 및/또는 광학적 구조에 따라 발생할 수 있는 블러링(blurring) 효과를 반영할 수 있다.According to an embodiment, in operation 920 , the electronic device may low-pass filter the raw image. For example, the electronic device may reflect a blurring effect that may occur depending on a lens and/or an optical structure when an actual camera is photographed in a virtual light source of a raw image through the LPF.

일 실시예에 따르면, 930 동작에서, 전자 장치는 저역 통과 필터 처리한 이미지를 리사이징(resizing)할 수 있다. 예를 들어, 전자 장치는 특정 거리에 있는 실제의 광원에 대응하도록 가상 광원을 리사이징할 수 있다. 예를 들어, 전자 장치는 가상 광원의 이미지 중 적어도 일부를 다운샘플링(downsampling)하여 가상 광원의 가장자리를 실제의 광원과 유사하게 처리할 수 있다.According to an embodiment, in operation 930 , the electronic device may resize the low-pass filter-processed image. For example, the electronic device may resize the virtual light source to correspond to an actual light source located at a specific distance. For example, the electronic device may downsample at least a portion of an image of the virtual light source to process an edge of the virtual light source similarly to an actual light source.

일 실시예에 따르면, 940 동작에서, 전자 장치는 리사이징한 이미지를 채색화(colorization) 및 베이어화(bayerization)할 수 있다. . 예를 들어, 전자 장치는 그레이스케일(grayscale)을 가지는 이미지를 R, G, B 3채널로 변환하고 색상을 설정할 수 있다.According to an embodiment, in operation 940 , the electronic device may colorize and bayerize the resized image. . For example, the electronic device may convert an image having a grayscale into three R, G, and B channels and set a color.

일 실시예에 따르면, 950 동작에서, 전자 장치는 채색화 및 베이어화한 이미지를 디모자이싱(demosaicing)할 수 있다. 예를 들어, 전자 장치는 디모자이싱을 수행하여 최종적으로 R, G, B 3-채널(channel)을 가지는 가상 광원 이미지를 생성할 수 있다.According to an embodiment, in operation 950 , the electronic device may demosaicing the colored and Bayer-ized images. For example, the electronic device may perform demosaicing to finally generate a virtual light source image having R, G, and B 3-channels.

다양한 실시예에 따르면, 상기 가상 광원 이미지를 생성하는 동작들 중 적어도 일부는 생략될 수 있다.According to various embodiments, at least some of the operations of generating the virtual light source image may be omitted.

도 10은 일 실시예에 따른 전자 장치의 이미지 보상 동작의 흐름도이다.10 is a flowchart of an image compensation operation of an electronic device according to an exemplary embodiment.

일 실시예에 따르면, 1010 동작에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2b의 전자 장치(200b))는 카메라를 이용하여 이미지를 캡쳐할 수 있다. 일 실시예에 따르면, 전자 장치의 카메라는 전자 장치의 디스플레이의 적어도 일부 영역의 하부에 배치될 수 있다. 예를 들어, 카메라는 UDC(under display camera)일 수 있다.According to an embodiment, in operation 1010 , the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200b of FIG. 2B ) may capture an image using a camera. According to an embodiment, the camera of the electronic device may be disposed below at least a partial area of the display of the electronic device. For example, the camera may be an under display camera (UDC).

일 실시예에 따르면, 1020 동작에서, 전자 장치는 인공지능 학습 모델을 기반으로 이미지를 보상할 수 있다. 예를 들어, 인공지능 학습 모델은 이미지를 보상하기 위한 학습 모델일 수 있다. 일 실시예에 따르면, 인공지능 학습 모델은 외부 전자 장치(예: 도 2a의 전자 장치(200a))에 의해 도 8 내지 도 9에서 설명한 방식으로 훈련될 수 있다. 예를 들어, 전자 장치는 외부 전자 장치로부터 가상 광원 이미지를 이용하여 생성된 입력 이미지 및 출력 이미지를 포함하는 훈련 데이터 셋을 기반으로 훈련된 인공지능 학습 모델을 수신할 수 있다. 예를 들어, 전자 장치는 외부 전자 장치로부터 수신한 인공지능 학습 모델에 기반하여 이미지를 보상할 수 있다.According to an embodiment, in operation 1020 , the electronic device may compensate an image based on the artificial intelligence learning model. For example, the AI learning model may be a learning model for rewarding an image. According to an embodiment, the AI learning model may be trained by an external electronic device (eg, the electronic device 200a of FIG. 2A ) in the manner described with reference to FIGS. 8 to 9 . For example, the electronic device may receive an artificial intelligence learning model trained based on a training data set including an input image and an output image generated using a virtual light source image from an external electronic device. For example, the electronic device may compensate an image based on an artificial intelligence learning model received from an external electronic device.

본 개시의 다양한 실시예들에 따르면, 가상 광원을 포함하는 훈련 데이터 셋(예: 제1 입력 이미지 및 제1 출력 이미지)를 통하여 훈련된 이미지 보상을 위한 인공지능 학습 모델을 이용하여 이미지를 보상함으로써, 빛의 회절에 따른 이미지의 손상 또는 변형을 보상하고, 이미지의 퀄리티를 향상시킬 수 있다.According to various embodiments of the present disclosure, by compensating an image using an artificial intelligence learning model for image compensation trained through a training data set (eg, a first input image and a first output image) including a virtual light source, , it is possible to compensate for damage or deformation of an image due to diffraction of light, and to improve image quality.

일 실시예에 따른 전자 장치의 인공지능 학습 모델의 훈련 데이터 생성 방법은, 제1 이미지를 획득하는 동작; 가상 광원 이미지를 생성하는 동작; 상기 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하는 동작; 상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 후, 제1 필터 처리하여 제1 입력 이미지를 생성하는 동작; 및 상기 제1 입력 이미지 및 상기 제1 출력 이미지를 상기 카메라를 통해 촬영된 이미지를 보상하기 위한 인공지능 학습 모델의 제1 훈련 데이터 셋으로 생성하는 동작을 포함할 수 있다.According to an embodiment, a method for generating training data for an artificial intelligence learning model of an electronic device includes: acquiring a first image; generating a virtual light source image; inserting the virtual light source image into the first image to generate a first output image; inserting the virtual light source image into the first image and performing a first filter process to generate a first input image; and generating the first input image and the first output image as a first training data set of an artificial intelligence learning model for compensating for an image captured by the camera.

일 실시예에 따르면, 상기 가상 광원 이미지를 생성하는 동작은, 가상 광원의 로우(raw) 이미지를 생성하는 동작; 상기 로우 이미지를 지정된 대역 이하의 저역 통과 필터 처리하는 동작; 상기 저역 통과 필터 처리한 이미지를 리사이징하는 동작; 상기 리사이징한 이미지를 채색화(colorization) 및 베이어화(bayerization)하는 동작; 및 상기 채색화 및 베이어화한 이미지를 디모자이싱(demosaicing)하여 상기 가상 광원 이미지를 생성하는 동작을 포함할 수 있다.According to an embodiment, the generating of the virtual light source image may include generating a raw image of the virtual light source; processing the raw image with a low-pass filter of less than or equal to a specified band; resizing the low-pass filter-processed image; Colorization and Bayerization of the resized image; and demosaicing the colored and Bayer-ized images to generate the virtual light source image.

일 실시예에 따르면, 상기 가상 광원의 로우 이미지를 생성하는 동작은, 베이어(Bayer) 도메인(domain)에서 상기 가상 광원의 로우 이미지를 생성하는 동작을 포함할 수 있다. According to an embodiment, the generating of the raw image of the virtual light source may include generating the raw image of the virtual light source in a Bayer domain.

일 실시예에 따르면, 상기 방법은, 제2 이미지를 획득하는 동작; 상기 제2 이미지를 제2 출력 이미지로 생성하는 동작; 상기 제2 이미지를 제1 필터 처리하여 제2 입력 이미지를 생성하는 동작; 및 상기 제2 입력 이미지 및 상기 제2 출력 이미지를 상기 인공지능 학습 모델의 제2 훈련 데이터 셋으로 생성하는 동작을 더 포함할 수 있다.According to an embodiment, the method includes: acquiring a second image; generating the second image as a second output image; generating a second input image by processing the second image with a first filter; and generating the second input image and the second output image as a second training data set of the artificial intelligence learning model.

일 실시예에 따르면, 상기 제1 출력 이미지를 생성하는 동작은, 상기 가상 광원 이미지를 제2 필터 처리하는 동작; 및 상기 제2 필터 처리한 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하는 동작을 포함할 수 있다.According to an embodiment, the generating of the first output image may include: second filtering the virtual light source image; and inserting the second filter-processed virtual light source image into the first image to generate a first output image.

일 실시예에 따르면, 상기 가상 광원 이미지를 생성하는 동작은, 가상 광원의 크기, 색상, 강도(intensity), 모양, 밝기, 위치, 빛 번짐, 및 빛 갈라짐의 정도 중 적어도 하나의 파라미터에 기반하여 상기 가상 광원 이미지를 생성하는 동작을 포함할 수 있다.According to an embodiment, the generating of the virtual light source image is based on at least one parameter among the size, color, intensity, shape, brightness, location, light spread, and degree of light splitting of the virtual light source. and generating the virtual light source image.

일 실시예에 따르면, 상기 제1 입력 이미지를 생성하는 동작은, 상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 이후, 점 확산 함수(point spread function, PSF)를 이용하여 상기 제1 필터 처리하는 동작을 포함할 수 있다.According to an embodiment, the generating of the first input image includes inserting the virtual light source image into the first image and then processing the first filter using a point spread function (PSF). It can include actions.

일 실시예에 따르면, 상기 인공지능 학습 모델은, 상기 훈련 데이터 셋으로부터 패턴을 인식하여 실제의 데이터에 적용할 수 있는 패턴 인식 알고리즘 중 적어도 하나를 기반으로 훈련될 수 있다.According to an embodiment, the AI learning model may be trained based on at least one of pattern recognition algorithms that can recognize a pattern from the training data set and apply it to actual data.

일 실시예에 따르면, 상기 인공지능 학습 모델은, 뉴럴 네트워크(neural network), 지지 벡터 머신(support vector machine, SVN), 은닉 마르코프 모델(hidden Markov model, HMM), 및 베이시안(Baysian) 중 적어도 하나를 포함하는 머신 러닝(machine learning) 중 적어도 하나를 기반으로 훈련될 수 있다.According to an embodiment, the AI learning model is at least one of a neural network, a support vector machine (SVN), a hidden Markov model (HMM), and a Baysian. It may be trained based on at least one of machine learning including one.

일 실시예에 따른, 전자 장치의 이미지 보상 방법은, 상기 전자 장치의 카메라를 이용하여 이미지를 캡쳐하는 동작; 및 상기 캡쳐한 이미지를 인공지능 학습 모델을 기반으로 보상하는 동작을 포함할 수 있다. 일 실시예에 따르면, 상기 인공지능 학습 모델은 가상 광원 이미지를 이용하여 생성된 입력 이미지 및 출력 이미지를 포함하는 훈련 데이터 셋을 기반으로 훈련될 수 있다.According to an embodiment, an image compensation method of an electronic device includes: capturing an image using a camera of the electronic device; and compensating for the captured image based on an artificial intelligence learning model. According to an embodiment, the AI learning model may be trained based on a training data set including an input image and an output image generated using a virtual light source image.

도 11은 일 실시예에 따른 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2b의 전자 장치(200b))의 디스플레이(1200)의 평면도이다.11 is a plan view of a display 1200 of an electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200b of FIG. 2B ) according to an exemplary embodiment.

일 실시예에 따르면, 디스플레이(1200)(예: 디스플레이 패널)는 가요성 기판을 포함할 수 있다. 일 실시예에 따른 전자 장치는 폴더블(foldable) 디스플레이, 롤러블(rollable) 디스플레이, 확장 가능한(extendable) 디스플레이, 플렉서블(flexible) 디스플레이와 같은 변형 가능한(deformable) 디스플레이를 포함할 수 있다.According to an embodiment, the display 1200 (eg, a display panel) may include a flexible substrate. The electronic device according to an embodiment may include a deformable display such as a foldable display, a rollable display, an extendable display, and a flexible display.

일 실시예에 따른 전자 장치의 디스플레이(1200)는 복수의 화소(PX)가 위치하는 표시 영역(DA) 및 이미지를 표시하지 않는 비표시 영역(NA)을 포함할 수 있다. 예를 들어, 비표시 영역(NA)은 표시 영역(DA)을 둘러싸며 위치할 수 있다. 다양한 실시예에 따르면, 도 11에 도시된 바와 달리, 비표시 영역(NA)은 표시 영역(DA)의 가장자리의 적어도 일부와 접하지 않을 수도 있다.The display 1200 of the electronic device according to an embodiment may include a display area DA in which the plurality of pixels PX are located and a non-display area NA in which an image is not displayed. For example, the non-display area NA may be positioned to surround the display area DA. According to various exemplary embodiments, unlike illustrated in FIG. 11 , the non-display area NA may not contact at least a portion of an edge of the display area DA.

일 실시예에 따르면, 표시 영역(DA)은 제1 표시 영역(DA1) 및 제2 표시 영역(DA2)을 포함할 수 있다. 일 실시예에 따르면, 제1 표시 영역(DA1) 아래에는 카메라 모듈이 배치될 수 있다. 일 실시예에 따르면, 디스플레이(1200)의 제1 표시 영역(DA1)의 적어도 일부는 카메라 모듈과 제1 방향(Dr1)으로 중첩할 수 있다. 예를 들어, 제1 표시 영역(DA1)은 카메라 모듈(미도시)의 화각 및/또는 디스플레이(1200)과 카메라 모듈 사이의 거리에 의해 결정될 수 있다. 제1 표시 영역(DA1)은 카메라 모듈로 입사하는 광이 투과하는 표시 영역(DA)의 일부 영역일 수 있다.According to an embodiment, the display area DA may include a first display area DA1 and a second display area DA2. According to an embodiment, a camera module may be disposed under the first display area DA1. According to an embodiment, at least a portion of the first display area DA1 of the display 1200 may overlap the camera module in the first direction Dr1. For example, the first display area DA1 may be determined by an angle of view of a camera module (not shown) and/or a distance between the display 1200 and the camera module. The first display area DA1 may be a partial area of the display area DA through which light incident to the camera module passes.

예를 들어, 카메라 모듈은 컬러 이미지를 획득하는 컬러 카메라일 수 있다. 예를 들어, 카메라 모듈은 제1 이미지 센서를 포함할 수 있다. 일 실시 예에서, 카메라 모듈의 제1 이미지 센서는 제1 색을 나타내는 파장대의 광만 투과시키는 제1 컬러 필터, 제2 색을 나타내는 파장대의 광만 투과시키는 제2 컬러 필터 및/또는 제3 색을 나타내는 파장대의 광만 투과시키는 제3 컬러 필터를 포함할 수 있다. 카메라 모듈의 제1 이미지 센서는 3원색으로 분해한 색도 신호를 추출할 수 있다. 예를 들어, 제1 색은 적색이고, 제2 색은 녹색이고, 제3 색은 청색일 수 있다. 다양한 실시예에 따르면, 전자 장치는 카메라를 추가로 더 포함할 수도 있다. 예를 들어, 일 실시예에 따른 전자 장치는 흑백 카메라, 및/또는 TOF(time of flight) 센서를 포함하는 카메라를 더 포함할 수도 있다.For example, the camera module may be a color camera that acquires a color image. For example, the camera module may include a first image sensor. In an embodiment, the first image sensor of the camera module may include a first color filter that transmits only light in a wavelength band representing the first color, a second color filter that transmits only light in a wavelength band representing the second color, and/or a third color A third color filter that transmits only light in a wavelength band may be included. The first image sensor of the camera module may extract a chromaticity signal decomposed into three primary colors. For example, the first color may be red, the second color may be green, and the third color may be blue. According to various embodiments, the electronic device may further include a camera. For example, the electronic device according to an embodiment may further include a black-and-white camera and/or a camera including a time of flight (TOF) sensor.

일 실시 예에 따르면, 제2 표시 영역(DA2)은 표시 영역(DA)에서 제1 표시 영역(DA1)을 제외한 나머지 영역일 수 있다. 예를 들어, 제1 표시 영역(DA1)은 제2 표시 영역(DA2)에 의해 둘러싸일 수 있다. 일 실시예에 따른 전자 장치에서, 제1 방향(Dr1)에서 볼 때, 카메라 모듈과 중첩하는 제1 표시 영역(DA1)에 적어도 하나의 화소(PX)가 위치할 수 있다. According to an embodiment, the second display area DA2 may be the remaining area of the display area DA except for the first display area DA1. For example, the first display area DA1 may be surrounded by the second display area DA2 . In the electronic device according to an embodiment, when viewed in the first direction Dr1 , at least one pixel PX may be located in the first display area DA1 overlapping the camera module.

일 실시 예에 따르면, 화소(PX)는 이미지를 표시하는 최소 단위일 수 있다. 예를 들어, 화소(PX)는 적색 부화소(미도시), 녹색 부화소(미도시) 또는 청색 부화소(미도시) 중 적어도 하나를 포함하여 컬러 화상을 표시할 수 있다. 또 다른 예로, 복수의 화소(PX)는 적색 부화소 및 청색 부화소가 동일 열에 교번하여 위치하고, 인접 열에 녹색 부화소가 위치하는 RGBG 펜타일(pentile) 구조를 포함할 수 있다. 그러나, 이에 한정되지 않고, 복수의 화소(PX)는 RGB 스트라이프 구조를 포함할 수도 있다.According to an embodiment, the pixel PX may be a minimum unit for displaying an image. For example, the pixel PX may display a color image including at least one of a red sub-pixel (not shown), a green sub-pixel (not shown), or a blue sub-pixel (not shown). As another example, the plurality of pixels PX may include an RGBG pentile structure in which red subpixels and blue subpixels are alternately positioned in the same column and green subpixels are positioned in adjacent columns. However, the present invention is not limited thereto, and the plurality of pixels PX may include an RGB stripe structure.

다양한 실시예에 따르면, 전자 장치의 구조는 도 11에 도시된 것에 한정되는 것은 아니며, 전자 장치의 구조 및 구성 요소들의 배치는 변경될 수 있다.According to various embodiments, the structure of the electronic device is not limited to that illustrated in FIG. 11 , and the structure and arrangement of components of the electronic device may be changed.

도 12는 일 실시예에 따른 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2b의 전자 장치(200b))의 제1 표시 영역(DA1)의 단면도이다. 12 is a cross-sectional view of a first display area DA1 of an electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200b of FIG. 2B ) according to an exemplary embodiment.

일 실시예에 따른 전자 장치는 윈도우(1250), 디스플레이(1200) (예: 디스플레이 패널) 및/또는 디스플레이(1200)의 아래에 위치하는 카메라 모듈(1260)을 포함할 수 있다. 디스플레이(1200)은 기판(1210), 제1 차광 부재(1290), 화소 회로층(1220), 유기 발광층(1230) 및/또는 봉지층(1240)을 포함할 수 있다. The electronic device according to an embodiment may include a window 1250 , a display 1200 (eg, a display panel), and/or a camera module 1260 positioned below the display 1200 . The display 1200 may include a substrate 1210 , a first light blocking member 1290 , a pixel circuit layer 1220 , an organic emission layer 1230 , and/or an encapsulation layer 1240 .

기판(1210)은 표시 영역(DA)의 전면에 위치할 수 있다. 예를 들어, 기판(1210)은 제1 표시 영역(DA1) 및 제2 표시 영역(DA2)에 위치할 수 있다. 기판(1210)은 투명한 물질을 포함하여 광이 투과할 수 있다. 예를 들어, 기판(1210)은 PET(polyethylene terephthalate)를 포함할 수 있다. 다른 예를 들어, 기판(1210)은 PI(polyimide) 또는 유리를 포함할 수도 있다.The substrate 1210 may be positioned on the front surface of the display area DA. For example, the substrate 1210 may be positioned in the first display area DA1 and the second display area DA2 . The substrate 1210 may include a transparent material to allow light to pass therethrough. For example, the substrate 1210 may include polyethylene terephthalate (PET). As another example, the substrate 1210 may include polyimide (PI) or glass.

기판(1210) 위에는 화소 회로층(1220)이 위치할 수 있다. 화소 회로층(1220)은 화소 구동을 위한 신호를 전달하는 배선들(미도시), 복수의 트랜지스터들(미도시) 및/또는 층간 절연막(미도시)을 포함할 수 있다. 화소 회로층(1220)은 제1 표시 영역(DA1)에서 투과 영역(TA)에는 위치하지 않을 수 있다. 화소 회로층(1220)은 제1 방향(Dr1)에서 볼 때, 제1 표시 영역(DA1)의 투과 영역(TA)과 중첩되는 위치에는 배치되지 않을 수 있다. 화소 회로층(1220)은, 제2 표시 영역(DA2)에 위치할 수 있고, 투과 영역(TA)을 제외한 제1 표시 영역(DA1)에 위치할 수 있다. 화소 회로층(1220)은 제1 방향(Dr1)에서 볼 때, 제1 표시 영역(DA1)의 투과 영역(TA)과 중첩되지 않는 제1 표시 영역(DA1)에 위치할 수 있다. 그러나, 실시예에 따라서는, 디스플레이(1200)의 투과 영역(TA)에 화소 회로층(1220)의 일부 구성이 위치할 수도 있다. A pixel circuit layer 1220 may be positioned on the substrate 1210 . The pixel circuit layer 1220 may include wirings (not shown) that transmit a signal for driving a pixel, a plurality of transistors (not shown), and/or an interlayer insulating layer (not shown). The pixel circuit layer 1220 may not be located in the transmission area TA of the first display area DA1. The pixel circuit layer 1220 may not be disposed at a position that overlaps the transmissive area TA of the first display area DA1 when viewed in the first direction Dr1 . The pixel circuit layer 1220 may be located in the second display area DA2 and may be located in the first display area DA1 excluding the transparent area TA. The pixel circuit layer 1220 may be positioned in the first display area DA1 that does not overlap the transmissive area TA of the first display area DA1 when viewed in the first direction Dr1 . However, in some embodiments, a portion of the pixel circuit layer 1220 may be located in the transmission area TA of the display 1200 .

일 실시예에 따르면, 제1 표시 영역(DA1)에는, 기판(1210) 및 화소 회로층(1220) 사이에 위치하는 제1 차광 부재(1290)가 위치할 수 있다. 예를 들어, 제1 차광 부재(1290)는 플로팅(floating)되어 화소 회로층(1220)과 전기적으로 연결되지 않을 수 있다. 제1 차광 부재(1290)는 제1 차광 부재(1290)를 제1 방향(Dr1)으로 관통하는 복수의 제1 오프닝들(OP1)을 포함할 수 있다. According to an embodiment, a first light blocking member 1290 positioned between the substrate 1210 and the pixel circuit layer 1220 may be positioned in the first display area DA1 . For example, the first light blocking member 1290 may float and may not be electrically connected to the pixel circuit layer 1220 . The first light blocking member 1290 may include a plurality of first openings OP1 passing through the first light blocking member 1290 in the first direction Dr1 .

화소 회로층(1220) 위에는 유기 발광층(1230)이 위치할 수 있다. 예를 들어, 유기 발광층(1230)은 저분자 유기물 또는 PEDOT(Poly 3,4-ethylenedioxythiophene)와 같은 고분자 유기물을 포함할 수 있다. 또 다른 예로, 유기 발광층(1230)은 정공 주입층(hole injection layer, HIL), 정공 수송층(hole transporting layer, HTL), 전자 수송층(electron transporting layer, ETL), 또는 전자 주입층(electron injection layer, EIL) 중 하나 이상을 더 포함하는 다중막일 수 있다. 유기 발광층(1230)은 제1 색을 발광하는 제1 유기 발광층(1231), 제2 색을 발광하는 제2 유기 발광층(1232) 및/또는 제3 색을 발광하는 제3 유기 발광층(1233)을 포함할 수 있다. 유기 발광층(1230)은 제1 표시 영역(DA1)의 투과 영역(TA)에는 위치하지 않을 수 있다. 유기 발광층(1230)은 제1 방향(Dr1)에서 볼 때, 제1 표시 영역(DA1)의 투과 영역(TA)과 중첩되는 위치에는 배치되지 않을 수 있다. 유기 발광층(1230)은 제1 방향(Dr1)에서 볼 때, 제1 표시 영역(DA1)의 투과 영역(TA)과 중첩되지 않는 제1 표시 영역(DA1)에 위치할 수 있다. 유기 발광층(1230)은, 제2 표시 영역(DA2)에 위치할 수 있고, 투과 영역(TA)을 제외한 제1 표시 영역(DA1)에 위치할 수 있다. 제1 표시 영역(DA1)의 유기 발광층(1030)의 밀도(단위 면적 내에 유기 발광층이 차지하는 면적)는 제2 표시 영역(DA2)의 유기 발광층의 밀도와 다를 수 있다. 하나 실시예로, 제1 표시 영역(DA1)의 유기 발광층(1030)의 밀도는 제2 표시 영역(DA2)의 유기 발광층의 밀도보다 낮을 수 있다.An organic emission layer 1230 may be positioned on the pixel circuit layer 1220 . For example, the organic emission layer 1230 may include a low molecular weight organic material or a high molecular weight organic material such as poly 3,4-ethylenedioxythiophene (PEDOT). As another example, the organic light emitting layer 1230 may include a hole injection layer (HIL), a hole transporting layer (HTL), an electron transporting layer (ETL), or an electron injection layer (electron injection layer, EIL) may be a multilayer further comprising at least one of. The organic light emitting layer 1230 includes a first organic light emitting layer 1231 emitting a first color, a second organic light emitting layer 1232 emitting a second color, and/or a third organic light emitting layer 1233 emitting a third color. may include The organic emission layer 1230 may not be located in the transmission area TA of the first display area DA1 . The organic emission layer 1230 may not be disposed at a position overlapping the transmission area TA of the first display area DA1 when viewed in the first direction Dr1 . The organic emission layer 1230 may be positioned in the first display area DA1 that does not overlap the transmissive area TA of the first display area DA1 when viewed in the first direction Dr1 . The organic emission layer 1230 may be located in the second display area DA2 and may be located in the first display area DA1 except for the transmission area TA. The density of the organic emission layer 1030 of the first display area DA1 (the area occupied by the organic emission layer within a unit area) may be different from the density of the organic emission layer of the second display area DA2 . In one embodiment, the density of the organic emission layer 1030 of the first display area DA1 may be lower than the density of the organic emission layer of the second display area DA2 .

유기 발광층(1230) 위에는 봉지층(1240)이 위치할 수 있다. 봉지층(1240)은 화소 회로층(1220) 및 유기 발광층(1230)을 덮어 밀봉할 수 있다. 예를 들어, 유기 발광 다이오드(OLED)는 수분과 산소에 매우 취약하므로, 봉지층(1240)이 화소 회로층(1220) 및 유기 발광층(1230)을 밀봉하여 외부의 수분 및 산소의 유입을 차단할 수 있다. 일 실시 예에서, 봉지층(1240)은 복수의 층을 포함할 수 있다. 예를 들어, 봉지층(1240)은 무기막과 유기막을 모두 포함하는 복합막을 포함할 수 있다. 또 다른 예로, 봉지층(1240)은 무기막, 유기막, 무기막이 순차적으로 배치된 3중층을 포함할 수 있다. An encapsulation layer 1240 may be positioned on the organic emission layer 1230 . The encapsulation layer 1240 may cover and seal the pixel circuit layer 1220 and the organic emission layer 1230 . For example, since the organic light emitting diode (OLED) is very vulnerable to moisture and oxygen, the encapsulation layer 1240 may seal the pixel circuit layer 1220 and the organic light emitting layer 1230 to block the inflow of external moisture and oxygen. have. In an embodiment, the encapsulation layer 1240 may include a plurality of layers. For example, the encapsulation layer 1240 may include a composite film including both an inorganic film and an organic film. As another example, the encapsulation layer 1240 may include a triple layer in which an inorganic layer, an organic layer, and an inorganic layer are sequentially disposed.

봉지층(1240) 위에는 윈도우(1250)가 위치할 수 있다. 윈도우(1250)는 투명할 수 있고, 광을 투과 시킬 수 있다. 예를 들어, 윈도우(1250)는 강화 유리, 또는 강화 플라스틱 또는 구부러질 수 있는(flexible) 고분자 소재를 포함할 수 있다. 윈도우(1250)는 투명 접착층(미도시)에 의해 디스플레이(1200)에 부착될 수 있다. 실시예에 따라서는, 윈도우(1250)는 복수의 층을 포함할 수 있다. 일 실시예에 따른 전자 장치는 윈도우(1250)의 일 면에 위치하는 코팅층(또는, 보호층)을 더 포함할 수도 있다. 실시예에 따라서는, 디스플레이(1200)은 봉지층(1240) 위에 위치하는 컬러 필터층(미도시)을 더 포함할 수도 있다. A window 1250 may be positioned on the encapsulation layer 1240 . The window 1250 may be transparent and may transmit light. For example, the window 1250 may include tempered glass, reinforced plastic, or a flexible polymer material. The window 1250 may be attached to the display 1200 by a transparent adhesive layer (not shown). According to an embodiment, the window 1250 may include a plurality of layers. The electronic device according to an embodiment may further include a coating layer (or a protective layer) positioned on one surface of the window 1250 . According to an embodiment, the display 1200 may further include a color filter layer (not shown) positioned on the encapsulation layer 1240 .

카메라 모듈(1260)은 디스플레이(1200) 아래에 위치할 수 있다. 제1 방향(Dr1)에서 볼 때(또는, 디스플레이(1200)의 위에서 볼 때), 카메라 모듈(1260)은 디스플레이(1200)의 제1 표시 영역(DA1)과 중첩할 수 있다. 카메라 모듈(1260)은 디스플레이(1200)의 제1 표시 영역(DA1)을 투과하는 광을 이용하여 이미지를 획득할 수 있다. 일 실시 예에서, 카메라 모듈(1260)은 컬러 이미지를 획득하는 컬러 카메라일 수 있다. 예를 들어, 카메라 모듈(1260)은 제1 이미지 센서를 포함할 수 있고, 제1 이미지 센서는 컬러 필터를 포함할 수 있다.The camera module 1260 may be located below the display 1200 . When viewed in the first direction Dr1 (or when viewed from above the display 1200 ), the camera module 1260 may overlap the first display area DA1 of the display 1200 . The camera module 1260 may acquire an image by using light passing through the first display area DA1 of the display 1200 . In an embodiment, the camera module 1260 may be a color camera that acquires a color image. For example, the camera module 1260 may include a first image sensor, and the first image sensor may include a color filter.

다양한 실시예에 따르면, 전자 장치의 구조는 도 12에 도시된 것에 한정되는 것은 아니며, 전자 장치(예: 디스플레이)의 구조 및 구성 요소들의 배치는 변경될 수 있다.According to various embodiments, the structure of the electronic device is not limited to that illustrated in FIG. 12 , and the structure and arrangement of components of the electronic device (eg, display) may be changed.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.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 구성요소를 통하여 연결될 수 있다는 것을 의미한다.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, but it should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. 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 be used simply to distinguish an element from other elements in question, and may refer elements to 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)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present document, one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101) may be implemented as software (eg, the program 140) including For example, a processor (eg, processor 120 ) of a device (eg, electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term refers to the case 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))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store™) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly between smartphones (eg: smartphones) and online. 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, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have. According to various embodiments, one or more components or operations among the 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.

Claims (20)

전자 장치에 있어서,
통신 회로;
메모리; 및
상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고,
상기 메모리는, 실행 시, 상기 프로세서가,
제1 이미지를 획득하고,
가상 광원 이미지를 생성하고,
상기 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하고,
상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 후, 제1 필터 처리하여 제1 입력 이미지를 생성하고,
상기 제1 입력 이미지 및 상기 제1 출력 이미지를 이미지를 보상하기 위한 인공지능 학습 모델의 제1 훈련 데이터 셋으로 생성하도록 하는 인스트럭션들(instructions)을 저장하는 전자 장치.
In an electronic device,
communication circuit;
Memory; and
a processor operatively coupled to the memory;
The memory, when executed, the processor,
acquiring a first image,
create a virtual light image,
inserting the virtual light source image into the first image to generate a first output image,
After inserting the virtual light source image into the first image, a first filter process is performed to generate a first input image,
An electronic device for storing the instructions for generating the first input image and the first output image as a first training data set of an artificial intelligence learning model for compensating an image.
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
가상 광원의 로우 이미지를 생성하고,
상기 로우 이미지를 지정된 대역 이하의 저역 통과 필터 처리하고,
상기 저역 통과 필터 처리한 이미지를 리사이징하고,
상기 리사이징한 이미지를 채색화(colorization) 및 베이어화(bayerization)하고,
상기 채색화 및 베이어화한 이미지를 디모자이싱(demosaicing)하여 상기 가상 광원 이미지를 생성하도록 하는 전자 장치.
The method according to claim 1,
The instructions, the processor,
create a raw image of the virtual light source,
Low-pass filter processing for the raw image below a specified band,
Resizing the low-pass filter-processed image,
Colorization and Bayerization of the resized image,
An electronic device for generating the virtual light source image by demosaicing the colored and Bayer-ized images.
청구항 2에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
베이어(Bayer) 도메인(domain)에서 상기 가상 광원의 로우 이미지를 생성하도록 하는 전자 장치.
3. The method according to claim 2,
The instructions, the processor,
An electronic device for generating a raw image of the virtual light source in a Bayer domain.
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
제2 이미지를 획득하고,
상기 제2 이미지를 제2 출력 이미지로 생성하고,
상기 제2 이미지를 상기 제1 필터 처리하여 제2 입력 이미지를 생성하고,
상기 제2 입력 이미지 및 상기 제2 출력 이미지를 상기 인공지능 학습 모델의 제2 훈련 데이터 셋으로 생성하도록 하는 전자 장치.
The method according to claim 1,
The instructions, the processor,
acquiring a second image;
generating the second image as a second output image;
generating a second input image by processing the second image with the first filter;
An electronic device configured to generate the second input image and the second output image as a second training data set of the artificial intelligence learning model.
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 가상 광원 이미지를 제2 필터 처리하고,
상기 제2 필터 처리한 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하도록 하는 전자 장치.
The method according to claim 1,
The instructions, the processor,
processing the virtual light source image with a second filter,
An electronic device for generating a first output image by inserting the virtual light source image processed by the second filter into the first image.
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
가상 광원의 크기, 색상, 강도(intensity), 모양, 밝기, 위치, 빛 번짐, 및 빛 갈라짐의 정도 중 적어도 하나의 파라미터에 기반하여 상기 가상 광원 이미지를 생성하도록 하는 전자 장치.
The method according to claim 1,
The instructions, the processor,
An electronic device configured to generate the virtual light source image based on at least one parameter of a size, color, intensity, shape, brightness, position, light spread, and degree of light splitting of the virtual light source.
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 이후, 점 확산 함수(point spread function, PSF)를 이용하여 상기 제1 필터 처리하도록 하는 전자 장치.
The method according to claim 1,
The instructions, the processor,
After inserting the virtual light source image into the first image, the electronic device performs the first filter process using a point spread function (PSF).
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 훈련 데이터 셋으로부터 패턴을 인식하여 실제의 데이터에 적용할 수 있는 패턴 인식 알고리즘 중 적어도 하나를 기반으로 상기 인공지능 학습 모델을 훈련하도록 하는 전자 장치.
The method according to claim 1,
The instructions, the processor,
An electronic device that recognizes a pattern from the training data set and trains the AI learning model based on at least one of pattern recognition algorithms that can be applied to actual data.
청구항 1에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
뉴럴 네트워크(neural network), 지지 벡터 머신(support vector machine, SVN), 은닉 마르코프 모델(hidden Markov model, HMM), 및 베이시안(Baysian) 중 적어도 하나를 포함하는 머신 러닝(machine learning) 중 적어도 하나를 기반으로 상기 인공지능 학습 모델을 훈련하도록 하는 전자 장치.
The method according to claim 1,
The instructions, the processor,
At least one of a neural network, a support vector machine (SVN), a hidden Markov model (HMM), and a machine learning comprising at least one of a Baysian. An electronic device for training the artificial intelligence learning model based on
전자 장치의 인공지능 학습 모델의 훈련 데이터 생성 방법에 있어서,
제1 이미지를 획득하는 동작;
가상 광원 이미지를 생성하는 동작;
상기 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하는 동작;
상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 후, 제1 필터 처리하여 제1 입력 이미지를 생성하는 동작; 및
상기 제1 입력 이미지 및 상기 제1 출력 이미지를 상기 카메라를 통해 촬영된 이미지를 보상하기 위한 인공지능 학습 모델의 제1 훈련 데이터 셋으로 생성하는 동작을 포함하는 방법.
A method for generating training data for an artificial intelligence learning model of an electronic device, the method comprising:
acquiring a first image;
generating a virtual light source image;
inserting the virtual light source image into the first image to generate a first output image;
inserting the virtual light source image into the first image and then performing a first filter process to generate a first input image; and
and generating the first input image and the first output image as a first training data set of an artificial intelligence learning model for compensating for an image captured by the camera.
청구항 10에 있어서,
상기 가상 광원 이미지를 생성하는 동작은,
가상 광원의 로우(raw) 이미지를 생성하는 동작;
상기 로우 이미지를 지정된 대역 이하의 저역 통과 필터 처리하는 동작;
상기 저역 통과 필터 처리한 이미지를 리사이징하는 동작;
상기 리사이징한 이미지를 채색화(colorization) 및 베이어화(bayerization)하는 동작; 및
상기 채색화 및 베이어화한 이미지를 디모자이싱(demosaicing)하여 상기 가상 광원 이미지를 생성하는 동작을 포함하는 방법.
11. The method of claim 10,
The operation of generating the virtual light source image includes:
generating a raw image of the virtual light source;
processing the raw image with a low-pass filter of less than or equal to a specified band;
resizing the low-pass filter-processed image;
Colorization and Bayerization of the resized image; and
and demosaicing the colored and Bayer-ized images to generate the virtual light source image.
청구항 11에 있어서,
상기 가상 광원의 로우 이미지를 생성하는 동작은, 베이어(Bayer) 도메인(domain)에서 상기 가상 광원의 로우 이미지를 생성하는 동작을 포함하는 방법.
12. The method of claim 11,
The generating of the raw image of the virtual light source includes generating a raw image of the virtual light source in a Bayer domain.
청구항 10에 있어서,
제2 이미지를 획득하는 동작;
상기 제2 이미지를 제2 출력 이미지로 생성하는 동작;
상기 제2 이미지를 제1 필터 처리하여 제2 입력 이미지를 생성하는 동작; 및
상기 제2 입력 이미지 및 상기 제2 출력 이미지를 상기 인공지능 학습 모델의 제2 훈련 데이터 셋으로 생성하는 동작을 더 포함하는 방법.
11. The method of claim 10,
acquiring a second image;
generating the second image as a second output image;
generating a second input image by processing the second image with a first filter; and
The method further comprising generating the second input image and the second output image as a second training data set of the artificial intelligence learning model.
청구항 10에 있어서,
상기 제1 출력 이미지를 생성하는 동작은,
상기 가상 광원 이미지를 제2 필터 처리하는 동작; 및
상기 제2 필터 처리한 가상 광원 이미지를 상기 제1 이미지에 삽입하여 제1 출력 이미지를 생성하는 동작을 포함하는 방법.
11. The method of claim 10,
The operation of generating the first output image includes:
processing the virtual light source image with a second filter; and
and inserting the second filter-processed virtual light source image into the first image to generate a first output image.
청구항 10에 있어서,
상기 가상 광원 이미지를 생성하는 동작은,
가상 광원의 크기, 색상, 강도(intensity), 모양, 밝기, 위치, 빛 번짐, 및 빛 갈라짐의 정도 중 적어도 하나의 파라미터에 기반하여 상기 가상 광원 이미지를 생성하는 동작을 포함하는 방법.
11. The method of claim 10,
The operation of generating the virtual light source image includes:
and generating the virtual light source image based on at least one parameter selected from the group consisting of size, color, intensity, shape, brightness, location, light spreading, and light splitting of the virtual light source.
청구항 10에 있어서,
상기 제1 입력 이미지를 생성하는 동작은,
상기 가상 광원 이미지를 상기 제1 이미지에 삽입한 이후, 점 확산 함수(point spread function, PSF)를 이용하여 상기 제1 필터 처리하는 동작을 포함하는 방법.
11. The method of claim 10,
The operation of generating the first input image includes:
and inserting the virtual light source image into the first image and then performing the first filter processing using a point spread function (PSF).
청구항 10에 있어서,
상기 인공지능 학습 모델은, 상기 훈련 데이터 셋으로부터 패턴을 인식하여 실제의 데이터에 적용할 수 있는 패턴 인식 알고리즘 중 적어도 하나를 기반으로 훈련되는 방법.
11. The method of claim 10,
The artificial intelligence learning model is trained based on at least one of pattern recognition algorithms that can be applied to actual data by recognizing a pattern from the training data set.
청구항 10에 있어서,
상기 인공지능 학습 모델은, 뉴럴 네트워크(neural network), 지지 벡터 머신(support vector machine, SVN), 은닉 마르코프 모델(hidden Markov model, HMM), 및 베이시안(Baysian) 중 적어도 하나를 포함하는 머신 러닝(machine learning) 중 적어도 하나를 기반으로 훈련되는 방법.
11. The method of claim 10,
The artificial intelligence learning model is machine learning including at least one of a neural network, a support vector machine (SVN), a hidden Markov model (HMM), and a Baysian. A method that is trained based on at least one of (machine learning).
전자 장치에 있어서,
디스플레이;
상기 디스플레이의 적어도 일부 영역의 아래에 배치되는 카메라;
통신 회로;
메모리; 및
상기 디스플레이, 상기 카메라, 상기 통신 회로, 및 상기 메모리와 작동적으로(opertavely) 연결되는 프로세서를 포함하고,
상기 메모리는, 실행 시, 상기 프로세서가,
상기 카메라를 이용하여 이미지를 캡쳐하고,
상기 캡쳐한 이미지를 인공지능 학습 모델을 기반으로 보상하도록 하고,
상기 인공지능 학습 모델은 가상 광원 이미지를 이용하여 생성된 입력 이미지 및 출력 이미지를 포함하는 훈련 데이터 셋을 기반으로 훈련된 전자 장치.
In an electronic device,
display;
a camera disposed under at least a partial area of the display;
communication circuit;
Memory; and
a processor operatively coupled with the display, the camera, the communication circuitry, and the memory;
The memory, when executed, the processor,
Capture an image using the camera,
to compensate the captured image based on an artificial intelligence learning model,
The artificial intelligence learning model is an electronic device trained based on a training data set including an input image and an output image generated using a virtual light source image.
전자 장치의 이미지 보상 방법에 있어서,
상기 전자 장치의 카메라를 이용하여 이미지를 캡쳐하는 동작; 및
상기 캡쳐한 이미지를 인공지능 학습 모델을 기반으로 보상하는 동작을 포함하고,
상기 인공지능 학습 모델은 가상 광원 이미지를 이용하여 생성된 입력 이미지 및 출력 이미지를 포함하는 훈련 데이터 셋을 기반으로 훈련된 방법.
A method for compensating an image of an electronic device, the method comprising:
capturing an image using a camera of the electronic device; and
Compensating the captured image based on an artificial intelligence learning model,
The artificial intelligence learning model is trained based on a training data set including an input image and an output image generated using a virtual light source image.
KR1020200094808A 2020-07-29 2020-07-29 Electronic device and method for generating training data of artificial intelligence learning model thereof KR20220014764A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200094808A KR20220014764A (en) 2020-07-29 2020-07-29 Electronic device and method for generating training data of artificial intelligence learning model thereof
PCT/KR2021/007194 WO2022025413A1 (en) 2020-07-29 2021-06-09 Electronic device and method for generating training data of artificial intelligence learning model by electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200094808A KR20220014764A (en) 2020-07-29 2020-07-29 Electronic device and method for generating training data of artificial intelligence learning model thereof

Publications (1)

Publication Number Publication Date
KR20220014764A true KR20220014764A (en) 2022-02-07

Family

ID=80036495

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200094808A KR20220014764A (en) 2020-07-29 2020-07-29 Electronic device and method for generating training data of artificial intelligence learning model thereof

Country Status (2)

Country Link
KR (1) KR20220014764A (en)
WO (1) WO2022025413A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102388581B1 (en) 2022-02-25 2022-04-21 지성산업 주식회사 Artificial Intelligence deep learning applied NFT-based image processing method and its chapter
KR102519094B1 (en) * 2022-10-18 2023-04-14 주식회사 페블러스 An electronic device for providing a virtual environment for generating synthetic data, a method of operating the electronic device, and a system including the electronic device
US11722796B2 (en) 2021-02-26 2023-08-08 Samsung Electronics Co., Ltd. Self-regularizing inverse filter for image deblurring
US11721001B2 (en) 2021-02-16 2023-08-08 Samsung Electronics Co., Ltd. Multiple point spread function based image reconstruction for a camera behind a display
US11954833B2 (en) 2021-04-02 2024-04-09 Samsung Electronics Co., Ltd Electronic device for supporting machine learning-based image processing
WO2024085414A1 (en) * 2022-10-17 2024-04-25 삼성전자주식회사 Electronic device and control method thereof
WO2024085422A1 (en) * 2022-10-18 2024-04-25 삼성전자 주식회사 Electronic device, method for operating electronic device, and image editing system
WO2024085552A1 (en) * 2022-10-18 2024-04-25 주식회사 페블러스 Electronic device for providing virtual environment for generating synthetic data, operation method of electronic device, and system comprising electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117082359B (en) * 2023-10-16 2024-04-19 荣耀终端有限公司 Image processing method and related equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6742231B2 (en) * 2016-12-09 2020-08-19 キヤノン株式会社 Image processing apparatus and method, and imaging apparatus
US10430978B2 (en) * 2017-03-02 2019-10-01 Adobe Inc. Editing digital images utilizing a neural network with an in-network rendering layer
KR102166547B1 (en) * 2018-10-31 2020-10-16 한국전력공사 System and method for predicting information based on images
JP6696095B1 (en) * 2018-11-07 2020-05-20 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Image processing device, imaging device, image processing method, and program
US11295514B2 (en) * 2018-11-16 2022-04-05 Nvidia Corporation Inverse rendering of a scene from a single image

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11721001B2 (en) 2021-02-16 2023-08-08 Samsung Electronics Co., Ltd. Multiple point spread function based image reconstruction for a camera behind a display
US11722796B2 (en) 2021-02-26 2023-08-08 Samsung Electronics Co., Ltd. Self-regularizing inverse filter for image deblurring
US11954833B2 (en) 2021-04-02 2024-04-09 Samsung Electronics Co., Ltd Electronic device for supporting machine learning-based image processing
KR102388581B1 (en) 2022-02-25 2022-04-21 지성산업 주식회사 Artificial Intelligence deep learning applied NFT-based image processing method and its chapter
WO2024085414A1 (en) * 2022-10-17 2024-04-25 삼성전자주식회사 Electronic device and control method thereof
KR102519094B1 (en) * 2022-10-18 2023-04-14 주식회사 페블러스 An electronic device for providing a virtual environment for generating synthetic data, a method of operating the electronic device, and a system including the electronic device
WO2024085422A1 (en) * 2022-10-18 2024-04-25 삼성전자 주식회사 Electronic device, method for operating electronic device, and image editing system
WO2024085552A1 (en) * 2022-10-18 2024-04-25 주식회사 페블러스 Electronic device for providing virtual environment for generating synthetic data, operation method of electronic device, and system comprising electronic device

Also Published As

Publication number Publication date
WO2022025413A1 (en) 2022-02-03

Similar Documents

Publication Publication Date Title
KR20220014764A (en) Electronic device and method for generating training data of artificial intelligence learning model thereof
KR20220080663A (en) Method, electronic apparatus and storage medium for controlling optical sensor based on strain information of stretchable display
US20230260439A1 (en) Method, electronic device, and storage medium for controlling optical sensor on basis of tensile information of stretchable display
US11706532B2 (en) Method for providing image and electronic device supporting the same
EP4325590A1 (en) Electronic device comprising display having diffuse reflection structure
US20230214632A1 (en) Method for processing image through neural network and electronic device thereof
US20230082406A1 (en) Electronic device including camera and method for operating the same
US20230217793A1 (en) Display panel for under display camera and electronic device including the same
US20230121758A1 (en) Method for providing image and electronic device supporting the same
US20230154131A1 (en) Electronic device for generating image and method thereof
KR20230026921A (en) Method for providing image and electronic device supporting the same
KR20230050617A (en) Method for providing image and electronic devcie supporting the same
KR20230018957A (en) An electronic device for improving image quality deterioration due to diffraction and control method thereof
KR20240035277A (en) Display panel and electronic device including light control material
KR20240043025A (en) Method for displaying augmented reality object and electronic device supporting the same
KR20230069759A (en) Electronic device for generating an image and method thereof
KR20240014403A (en) Method for processing image throuth neural network and electronic device thereof
KR20230052041A (en) Method for providing image and electronic device supporting the same
KR20230052777A (en) Display device and electronic device for controlling viewing angle
KR20230141403A (en) A wearable device with transparent display and operating method thereof
KR20240035270A (en) Camera module and electronic device comprisng same
KR20230081212A (en) Electronic device including touch sensor integrated display
KR20230092424A (en) Electronic device including under display camera and operating method thereof
KR20230055311A (en) Electronic device and method for identifying content
KR20230068114A (en) Camera module and electronic device including the same