Image processing device and image processing method

The electronic device addresses image quality and autofocus issues by using gain correction values from a look-up table to compensate for optical image stabilizer operations, enhancing image resolution and focus accuracy.

WO2024242518A1PCT designated stage expired Publication Date: 2024-11-28SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2024/095488
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-24
Filing Date
2024-03-14
Publication Date
2024-11-28

AI Technical Summary

Technical Problem

Image quality degradation due to shading artifacts and autofocus accuracy issues caused by the operation of optical image stabilizers in electronic devices with image sensors having symmetrical phase detection pixels.

Method used

An electronic device with a camera module that includes an optical image stabilizer, a lens unit, and an image sensor, where the processor executes instructions to obtain gain correction values by moving the optical image stabilizer to different positions, capturing images, and storing these values in a look-up table to correct shading effects and improve autofocus accuracy.

Benefits of technology

The solution effectively reduces image quality degradation and enhances autofocus performance by correcting shading artifacts and compensating for optical image stabilizer operations, resulting in improved image resolution and focus accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024095488_28112024_PF_FP_ABST
    Figure KR2024095488_28112024_PF_FP_ABST
Patent Text Reader

Abstract

An electronic device according to one embodiment may comprise: a camera module including a camera; a memory for storing instructions; and at least one processor operatively connected to the camera module and the memory. The camera module can comprise: a lens unit including at least one lens; an image sensor for converting received light into an electrical signal; and an optical image stabilizer for controlling the position of the lens unit and / or the image sensor on the basis of the movement of the electronic device. The image sensor can include a micro lens and a plurality of light-receiving elements disposed at positions corresponding to the micro lens. The instructions are executed by the at least one processor so that the electronic device can acquire a gain calibration value corresponding to image stabilizer operation information about the position of the optical image stabilizer. The instructions are executed by the at least one processor so that, according to the electronic device controlling the operation of the optical image stabilizer on the basis of the image stabilizer operation information, the electronic device can obtain image data from the plurality of light-receiving elements on the basis of the gain calibration value corresponding to the image stabilizer operation information. Various other embodiments are possible.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing device and image processing method

[0001] The present disclosure relates to an image processing device and an image processing method.

[0002] Camera modules capable of capturing and processing images can be incorporated into electronic devices. For example, a mobile device may include one or more camera modules. The camera module can acquire digital images based on information acquired through an image sensor that includes a photodetector capable of detecting optical signals and outputting them as electrical signals.

[0003] A camera module included in an electronic device may include various functions for capturing high-quality digital images. For example, the camera module may include an image stabilizer to prevent image quality degradation caused by shaking of the mobile device by the user when capturing an image while holding the mobile device. For example, the camera module may include an autofocus controller to automatically focus on a subject.

[0004] The above information may be provided as background art to aid in understanding the present disclosure. No claim or determination is made as to whether any of the above is applicable as prior art in connection with the present disclosure.

[0005] An electronic device according to one embodiment may include a camera module, a memory storing instructions, and at least one processor operatively connected to the camera module and the memory. The camera module may include a lens unit including at least one lens, an image sensor converting received light into an electrical signal, and an optical image stabilizer configured to control a position of at least one of the lens unit and the image sensor based on a movement of the electronic device. The image sensor may include a microlens, and a plurality of light-receiving elements arranged at positions corresponding to the microlenses. The at least one processor may be configured to execute the instructions to obtain a gain correction value corresponding to image stabilizer operation information related to a position of the optical image stabilizer, and to control an operation of the optical image stabilizer based on the image stabilizer operation information, thereby obtaining image data from the plurality of light-receiving elements based on the gain correction value corresponding to the image stabilizer operation information.

[0006] According to one embodiment, a method for obtaining a gain correction value for correcting a gain value used to read a pixel value from an image sensor included in a camera module may include an operation of capturing a first image while an optical image stabilizer included in the camera module is moved to a first position. The method may further include an operation of capturing a second image while the optical image stabilizer is moved to a second position different from the first position. The method may further include an operation of obtaining gain correction values ​​for each of a plurality of positions of the optical image stabilizer from at least the first image and the second image. The method may include an operation of storing a look-up table including the gain correction values ​​in a memory.

[0007] A computer-readable non-transitory recording medium according to one embodiment may store a look-up table including gain correction values, including a first gain correction value corresponding to a first image captured through an image sensor of a camera module while an optical image stabilizer included in the camera module is moved to a first position, and a second gain correction value corresponding to a second image captured through an image sensor of the camera module while the optical image stabilizer is moved to a second position different from the first position.

[0008] FIG. 1 is a block diagram of an electronic device within a network environment according to various embodiments.

[0009] FIG. 2 is a block diagram illustrating a camera module according to various embodiments.

[0010] FIG. 3 is a diagram illustrating a principal ray incident angle for an image sensor according to one embodiment.

[0011] FIG. 4 is a diagram illustrating the effect of shade on an image sensor according to one embodiment.

[0012] FIG. 5 is a diagram conceptually illustrating the configuration of an image sensor according to one embodiment.

[0013] FIG. 6 is a diagram illustrating examples of patterns of an image sensor according to one embodiment.

[0014] FIG. 7 is a diagram illustrating a configuration of an electronic device according to one embodiment.

[0015] FIG. 8 is a flowchart illustrating a process of processing an image by an electronic device according to one embodiment.

[0016] FIG. 9 is a flowchart illustrating a process for an electronic device to acquire an image according to one embodiment.

[0017] FIG. 10 is a flowchart illustrating a process for obtaining a gain correction value for a camera of an electronic device according to one embodiment.

[0018] FIG. 11 is a conceptual diagram illustrating lens or image sensor positions associated with the operation of an optical image stabilizer to obtain a gain correction value according to one embodiment.

[0019] FIG. 12 is a diagram conceptually illustrating a gain correction value obtained according to one embodiment.

[0020] Fig. 13 is a diagram schematically illustrating output values ​​of pixels output from an image sensor according to one embodiment.

[0021] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to various embodiments. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with the electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of the electronic device (104) or the server (108) via a second network (199) (e.g., a long-range wireless communication network). In one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).

[0022] The processor (120) may, for example, execute software (e.g., a program (140)) to control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) and perform various data processing or operations. According to one embodiment, as at least a part of the data processing or operations, the processor (120) may store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the commands or data stored in the volatile memory (132), and store result data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (121). For example, when the electronic device (101) includes the main processor (121) and the auxiliary processor (123), the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as a part thereof.

[0023] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.

[0024] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).

[0025] 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).

[0026] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0027] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can 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 can be used to receive incoming calls. In one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.

[0028] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.

[0029] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).

[0030] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can 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, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0031] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

[0032] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0033] The haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

[0034] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

[0035] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0036] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0037] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).

[0038] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.

[0039] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., 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), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).

[0040] According to various embodiments, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.

[0041] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).

[0042] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In one embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0043] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "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 "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.

[0044] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0045] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.

[0046] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) through an application store (e.g., Play Store™) or directly between two user devices (e.g., smart phones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.

[0047] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each 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, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

[0048] FIG. 2 is a block diagram (200) illustrating a camera module (180) according to various embodiments. Referring to FIG. 2, the camera module (180) may include a lens assembly (210), a flash (220), an image sensor (230), an image stabilizer (240), a memory (250) (e.g., a buffer memory), or an image signal processor (260). The lens assembly (210) may collect light emitted from a subject that is a target of image capturing. The lens assembly (210) may include one or more lenses. According to one embodiment, the camera module (180) may include a plurality of lens assemblies (210). In this case, the camera module (180) may form, for example, a dual camera, a 360-degree camera, or a spherical camera. Some of the plurality of lens assemblies (210) may have the same lens properties (e.g., angle of view, focal length, autofocus, f-number, or optical zoom), or at least one lens assembly may have one or more lens properties that are different from the lens properties of the other lens assemblies. A lens assembly (210) may include, for example, a wide-angle lens or a telephoto lens.

[0049] The flash (220) can emit light used to enhance light emitted or reflected from a subject. According to one embodiment, the flash (220) can include one or more light-emitting diodes (e.g., red-green-blue (RGB) LED, white LED, infrared LED, or ultraviolet LED), or a xenon lamp. The image sensor (230) can acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the lens assembly (210) into an electrical signal. According to one embodiment, the image sensor (230) can include one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, a plurality of image sensors having the same property, or a plurality of image sensors having different properties. Each image sensor included in the image sensor (230) can be implemented using, for example, a CCD (charged coupled device) sensor or a CMOS (complementary metal oxide semiconductor) sensor.

[0050] The image stabilizer (240) can move at least one lens or image sensor (230) included in the lens assembly (210) in a specific direction or control the operating characteristics of the image sensor (230) (e.g., adjusting the read-out timing, etc.) in response to the movement of the camera module (180) or the electronic device (101) including the same. This allows compensating for at least some of the negative effects of the movement on the captured image. In one embodiment, the image stabilizer (240) can detect such movement of the camera module (180) or the electronic device (101) using a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module (180). In one embodiment, the image stabilizer (240) can be implemented as, for example, an optical image stabilizer. The memory (250) can temporarily store at least a portion of the image acquired through the image sensor (230) for the next image processing task. For example, when image acquisition is delayed due to the shutter, or when multiple images are acquired at high speed, the acquired original image (e.g., a Bayer-patterned image or a high-resolution image) is stored in the memory (250), and a corresponding copy image (e.g., a low-resolution image) can be previewed through the display module (160). Thereafter, when a specified condition is satisfied (e.g., a user input or a system command), at least a portion of the original image stored in the memory (250) can be acquired and processed, for example, by the image signal processor (260). According to one embodiment, the memory (250) can be configured as at least a portion of the memory (130) or as a separate memory that operates independently therefrom.

[0051] The image signal processor (260) can perform one or more image processing operations on an image acquired through an image sensor (230) or an image stored in a memory (250). The one or more image processing operations may include, for example, depth map generation, 3D modeling, panorama generation, feature extraction, image synthesis, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Additionally or alternatively, the image signal processor (260) may perform control (e.g., exposure time control, read-out timing control, etc.) for at least one of the components included in the camera module (180) (e.g., image sensor (230)). An image processed by the image signal processor (260) may be stored back in the memory (250) for further processing or provided to an external component of the camera module (180) (e.g., memory (130), display module (160), electronic device (102), electronic device (104), or server (108)). According to one embodiment, the image signal processor (260) may include at least one of the processors (120). It may be configured as a separate processor that is configured as a part of the processor (120) or operates independently of the processor (120). If the image signal processor (260) is configured as a separate processor from the processor (120), at least one image processed by the image signal processor (260) may be displayed through the display module (160) as is or after undergoing additional image processing by the processor (120).

[0052] According to one embodiment, the electronic device (101) may include a plurality of camera modules (180), each having different properties or functions. In this case, for example, at least one of the plurality of camera modules (180) may be a wide-angle camera, and at least another may be a telephoto camera. Similarly, at least one of the plurality of camera modules (180) may be a front camera, and at least another may be a rear camera.

[0053] An electronic device and an image processing method according to various embodiments can improve the image quality of an image captured using an optical image stabilizer.

[0054] An electronic device and an image processing method according to various embodiments can correct shading artifacts occurring in an image acquired through an image sensor having symmetrical phase detection pixels.

[0055] The technical problems to be achieved in this document are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by a person having ordinary skill in the technical field to which the present invention belongs from the description of this disclosure.

[0056] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments of this document are not limited to the aforementioned devices.

[0057] FIG. 3 is a diagram illustrating a principal ray incident angle for an image sensor (e.g., image sensor (230) of FIG. 2) according to one embodiment.

[0058] In one embodiment, an image sensor (e.g., image sensor (230) of FIG. 2) may include a plurality of micro lenses (331, 332) and a plurality of light-receiving elements (311, 312, 313, 314). The plurality of micro lenses (331, 332) may include an imaging means for channeling a light path to form an image. For example, the plurality of micro lenses (331, 332) may form a micro lens array. Light passing through each of the micro lenses (331, 332) may pass through a color filter (321, 322) positioned corresponding to each of the micro lenses (331, 332) and be incident on at least one of the light-receiving elements (311, 312, 313, 314). The color filter (321, 322) may include a color filtering means for filtering the wavelength of light passing through it. The light-receiving elements (311, 312, 313, 314) may include a light detection means capable of converting the received light into an electrical signal. For example, the light-receiving elements (311, 312, 313, 314) may include a photo diode (PD). The light-receiving elements (311, 312, 313, 314) may be arranged in multiple numbers on one microlens (331 or 332) to detect a phase difference for controlling an auto-focus function. For example, the light-receiving elements (311, 312, 313, 314) may be arranged in a symmetrical arrangement with respect to one microlens (331 or 332). For example, light-receiving elements (or photodiodes) may be arranged in a 2 x 2 array for one micro lens (331 or 332). However, the 2 x 2 array is only an example, and the M x N (M, N are natural numbers) array of light-receiving elements (or photodiodes) arranged for one micro lens (331 or 332) may be configured in various ways.In the present disclosure, the embodiment is described based on an example in which pixels including light-receiving elements are arranged in a square shape, but is not limited thereto. An image sensor according to an embodiment (e.g., the image sensor (230) of FIG. 2) may be arranged in various ways within a range in which values ​​detected from the pixels have symmetry (or linearity). For example, an image sensor according to an embodiment (e.g., the image sensor (230) of FIG. 2) may include pixels arranged in a diamond shape that is a square rotated 45 degrees.

[0059] In one embodiment, the output of each light-receiving element may have a sensitivity deviation depending on the chief ray angle (CRA) of the chief ray of light incident on the image sensor (e.g., the image sensor (230) of FIG. 2) with respect to the optical axis. Referring to FIG. 3, the chief ray angle (303, 304) with respect to the lens chief ray (301, 302) of the microlens may vary depending on the optical position, and the sensor chief ray angle (343, 344) with respect to the sensor chief ray (341, 342) of the light-receiving element may be designed differently for each field. When the output of each light-receiving element is used as a pixel to generate image data, a deviation in the output pixel value may occur depending on the physical positions of the microlenses (331, 332) and the light-receiving elements (311, 312, 313, 314). The deviation of pixel values ​​caused by the physical positions of the micro lenses (331, 332) and the light receiving elements (311, 312, 313, 314) rather than the light received from the subject may be referred to as a shading effect. For example, among the light receiving elements (311) and (312), the light receiving element (312) may receive light according to the lens chief ray (301). Among the light receiving elements (313) and (314), the light receiving element (313) may receive light according to the lens chief ray (302). This may cause a deviation of pixel values.

[0060] FIG. 4 is a diagram illustrating the effect of shade on an image sensor (e.g., the image sensor (230) of FIG. 2) according to one embodiment.

[0061] The x-axis of Fig. 4 can represent the position of a pixel within a field when the field of an image acquired through an image sensor (e.g., the image sensor (230) of Fig. 2) is represented one-dimensionally. The y-axis of Fig. 4 can represent the output value (or pixel gain value) for the light-receiving element at the corresponding pixel position.

[0062] FIG. 4 (a) illustrates a case where there is no phase difference between the output values ​​(411) of the first light-receiving elements (e.g., light-receiving elements (311) of FIG. 3) arranged at a first position within each pixel and the output values ​​(412) of the second light-receiving elements (e.g., light-receiving elements (312) of FIG. 3) arranged at a second position within each pixel, and an error (413) due to a shading effect occurs. FIG. 4 (b) illustrates a case where there is a phase difference (424) between the output values ​​(421) of the first light-receiving elements (e.g., light-receiving elements (311) of FIG. 3) arranged at a first position within each pixel and the output values ​​(422) of the second light-receiving elements (e.g., light-receiving elements (312) of FIG. 3) arranged at a second position within each pixel, and no error due to a shading effect occurs. Referring to (a) and (b) of FIG. 4, in the case illustrated in (a) of FIG. 4, there is no phase difference originally, but when comparing the output values ​​(411, 412) within the region of interest (ROI), it can be determined that a phase difference (414) exists. When comparing the graphs within the region of interest (ROI) illustrated in (a) and (b) of FIG. 4, it may not be possible to distinguish between the case where a phase difference (424) exists and the case where an error (413) occurs due to a shading effect.

[0063] In addition, (c) of FIG. 4 illustrates a case where a phase difference exists between the output values ​​(431) of the first light-receiving elements (e.g., the light-receiving elements (311) of FIG. 3) each positioned within a pixel and the output values ​​(432) of the second light-receiving elements (e.g., the light-receiving elements (312) of FIG. 3) each positioned within a pixel, and an error (433) due to a shading effect also occurs. Referring to (c) of FIG. 4, an inaccurate phase difference (434) may be detected within a region of interest (ROI) due to the error (433) due to the shading effect.

[0064] An electronic device (e.g., electronic device (101) of FIG. 1) according to one embodiment can convert a color pattern of image data acquired from an image sensor (230) into a pattern (e.g., Bayer pattern) capable of performing color image conversion processing. The operation of converting image data into a color image to perform color image conversion processing may be referred to as a demosaicing operation. The operation of converting the color pattern of image data may be referred to as a remosaicing operation. If the remosaicing operation is performed without compensating for the shading effect reflected in the image data, the resolution of the image may be lowered.

[0065] An electronic device (e.g., the electronic device (101) of FIG. 1) according to one embodiment may perform an auto-focus function to adjust the focus of a camera included in a camera module (e.g., the camera module (180) of FIGS. 1 and 2) based on a phase difference of values ​​detected through light-receiving elements (e.g., the light-receiving elements (311, 312) of FIG. 1). To perform the auto-focus function, the electronic device (e.g., the electronic device (101) of FIG. 1) according to one embodiment may use a bundled image for the first light-receiving elements (e.g., the light-receiving elements (311, 313) of FIG. 3) and a bundled image for the second light-receiving elements (e.g., the light-receiving elements (312, 324) of FIG. 3). If a focus operation is performed without compensating for the shading effect reflected in the detected values, the accuracy of the auto-focus function may be reduced due to low-frequency noise unrelated to the subject.

[0066] FIG. 5 is a diagram conceptually illustrating the configuration of an image sensor (e.g., the image sensor (230) of FIG. 2) according to one embodiment.

[0067] In one embodiment, the image sensor (230) may include a micro lens array (MLA) (511), a color filter (513), a light receiving unit (515), and a computation unit (517).

[0068] In one embodiment, the microlens array (511) may be configured such that a light bundle (521) that passes through the lens unit (e.g., the lens assembly (210) of FIG. 2) and forms an image on the image sensor (230) is focused on a light-receiving element of the light-receiving unit (515). The light bundles (523) that pass through the microlens array (511) may have at least a portion of wavelengths other than a band corresponding to a specific color blocked as they pass through the color filter (513). The light bundles (525) that pass through the color filter (513) may be detected by a light-receiving element (e.g., a photodiode) of the light-receiving unit (515). The light-receiving unit (515) may include a light-receiving element that generates a charge when receiving light and converts it into an electrical signal, and a circuit that selectively reads out the charge of the light-receiving element. A circuit for digitizing the signal read from the light receiving unit (515) or reducing noise may be placed between the light receiving unit (515) and the calculation unit (517).

[0069] In one embodiment, the calculation unit (517) may perform an operation to process electrical data (527) output from the light receiving unit (515). The calculation unit (517) may output acquired data based on the calculation result. The output of the calculation unit (517) may be the output of the image sensor (230). In one embodiment, the calculation unit (517) may perform an operation to calibrate the read data as an operation to process the electrical data (527). For example, the operation performed by the calculation unit (517) may include at least one of an operation to reduce deviation between pixels due to optical characteristics or relative positions of sensors, an operation to reduce noise generated in an analog signal, an operation to remove defects, an operation to perform re-mosaic, or an operation according to a specific application (e.g., a proximity sensor function, a timing adjustment function, an HDR tone mapping function). In one embodiment, an electronic device (e.g., electronic device (101) of FIG. 1) may be configured to cause another processor (e.g., an application processor) to perform the operations performed by the operation unit (517). A sensor output (529) output from the operation unit (517) may be input to at least one processor (e.g., an application processor) through an interface.

[0070] FIG. 6 is a diagram illustrating examples of patterns of an image sensor (e.g., the image sensor (230) of FIG. 2) according to one embodiment.

[0071] In one embodiment, an image sensor (e.g., an image sensor (230) of FIG. 2) may include a plurality of micro lenses (e.g., a micro lens (511) of FIG. 5), a color filter (e.g., a color filter (513) of FIG. 5), and light-receiving elements (e.g., a light-receiving unit (515) of FIG. 5). The plurality of light-receiving elements included in the light-receiving elements (e.g., a light-receiving unit (515) of FIG. 5) may be arranged at positions corresponding to one micro lens. Referring to FIG. 6 (a), a first light-receiving element (631), a second light-receiving element (632), a third light-receiving element (633), and a fourth light-receiving element (634) arranged in a 2 x 2 array may be arranged at positions corresponding to the first micro lens (611). The color filter (e.g., the color filter (513) of FIG. 5) may be configured such that the green channel (621) is formed at a position corresponding to the first micro lens (611). The fifth light-receiving element (641), the sixth light-receiving element (642), the seventh light-receiving element (643), and the eighth light-receiving element (644) may be arranged at positions corresponding to the second micro lens (612). The color filter (e.g., the color filter (513) of FIG. 5) may be configured such that the red channel (622) is formed at a position corresponding to the second micro lens (612). The ninth light-receiving element (651), the tenth light-receiving element (652), the eleventh light-receiving element (653), and the twelfth light-receiving element (654) may be arranged at positions corresponding to the third micro lens (613). The color filter (e.g., the color filter (513) of FIG. 5) may be configured such that the blue channel (623) is formed at a position corresponding to the third micro lens (613). The 13th light-receiving element (661), the 14th light-receiving element (662), the 15th light-receiving element (663), and the 16th light-receiving element (664) may be arranged at positions corresponding to the fourth micro lens (614). The color filter (e.g., the color filter (513) of FIG. 5) may be configured such that the green channel (624) is formed at a position corresponding to the fourth micro lens (614).

[0072] An image sensor according to one embodiment (e.g., the image sensor (230) of FIG. 2) may be configured such that the pattern illustrated in (a) of FIG. 6 is repeated. However, in one embodiment, the pattern in which the image sensor (e.g., the image sensor (230) of FIG. 2) is configured is not limited to the pattern illustrated in (a) of FIG. 6. In one embodiment, a plurality of micro lenses may be arranged at positions corresponding to the same color channel. Referring to (b) of FIG. 6, four micro lenses (680) may be arranged at positions corresponding to an area where a green filter (670) is arranged. Four light-receiving elements (690) may be arranged on each of the micro lenses (680).

[0073] FIG. 7 is a diagram illustrating a configuration of an electronic device (101) (e.g., the electronic device (101) of FIG. 1) according to one embodiment.

[0074] In one embodiment, the electronic device (101) may include a lens unit (701) (e.g., lens assembly (210) of FIG. 2), an image sensor (703) (e.g., image sensor (230) of FIG. 2), a sensor interface (705), a Pre-ISP (707), an ISP chain (711), a controller (715) (e.g., processor (120) of FIG. 1), a display (717) (e.g., display module (160) of FIG. 1), memories (713, 719) (e.g., memory (130) of FIG. 1), a motion sensor (721) (e.g., sensor module (176) of FIG. 1), an optical image stabilizer (723) (e.g., image stabilizer (240) of FIG. 2), and an auto-focus controller (709).

[0075] In one embodiment, light information of a subject incident through the lens unit (701) may be converted into an electrical signal by the image sensor (703) and input to an image signal processor (e.g., the image signal processor (260) of FIG. 2) including a Pre-ISP (707) and an ISP chain (711) through the sensor interface (705). An infrared cut filter (IR cut filter) may be disposed on the upper surface of the image sensor (703). Light of a subject passing through the lens unit (701) may be partially filtered by the IR cut filter and then detected by the image sensor (703).

[0076] In one embodiment, operations related to an image signal may be performed before image signal processing performed by the ISP chain (711) in the Pre-ISP (707) block. For example, auto white balance (AWB), auto exposure (AE), and auto focusing (AF) operations may be performed in the Pre-ISP (707) block.

[0077] In one embodiment, the ISP chain (711) can process an image signal acquired through the image sensor (703). For example, the ISP chain (711) can perform at least one of lens shading correction, dead pixel correction, noise control, tone curve adjustment, edge enhancement, demosaicing, or remosaicing. In FIG. 7, the Pre-ISP (707) block and the ISP chain (711) block are illustrated separately from the image sensor (703) and the controller (715), but at least a portion of the Pre-ISP (707) and the ISP chain (711) may be implemented through a computational unit included in the image sensor (703) (e.g., the computational unit (517) of FIG. 5) or the controller (715).

[0078] In one embodiment, the Pre-ISP (707) and the ISP chain (711) may be implemented through at least one of a processor (or integrated circuit) included in the image sensor (703), a processor (or integrated circuit) included in the controller (715), or a separate processor (or integrated circuit).

[0079] In one embodiment, the controller (715) can control the display (717) to display an execution screen of an application executed by the controller (715) or an image stored in the memory (719). The memory (719) can include, for example, a non-volatile memory such as a flash memory. The controller (715) can display a preview screen that displays image data acquired through the image sensor (703) in real time through the display (717).

[0080] In one embodiment, the motion sensor (721) can detect movement of the electronic device (101). For example, the motion sensor (721) can include a gyro sensor. The optical image stabilizer (723) can offset the movement of the electronic device (101) by moving the lens (701) or the image sensor (703) in response to the movement of the electronic device (101) to eliminate or reduce shaking of the captured image. For example, the electronic device (101) can analyze the motion sensor (721) or the captured image to determine the movement of the electronic device (101) and control the optical image stabilizer (723) based on the determined movement.

[0081] In one embodiment, the ISP chain (711) can perform shading correction based on image stabilizer operation information related to the operation of the optical image stabilizer (723). The image stabilizer operation information can include information related to the operation of the optical image stabilizer (723). For example, the image stabilizer operation information can include a value related to a position of the optical image stabilizer (723) as the optical image stabilizer (723) operates. For example, the value related to the position of the image stabilizer (723) can include position information measuring the position of the optical image stabilizer (723). The position of the optical image stabilizer (723) can be detected through a position sensor (e.g., a Hall sensor, a tunnel magneto resistance (TMR) sensor, a giant magneto resistance (GMR) sensor, or an anisotropic magneto resistance (AMR) sensor), but can also be configured to detect position information without a position sensor. For example, a value related to the position of the image stabilizer (723) may include a control value for controlling the current value flowing in a coil included in the optical image stabilizer (723).

[0082] In one embodiment, the ISP chain (711) may obtain a gain correction value for performing shading correction based on image stabilizer operation information related to the operation of the optical image stabilizer (723). For example, the memory (713) may store a look-up table configured to determine a gain correction value based on the image stabilizer operation information. For example, the memory (713) may also store an algorithm for calculating a gain correction value according to a predetermined formula based on the image stabilizer operation information. For example, the gain correction value may be obtained based on a calculation performed according to a predetermined formula and a look-up table stored in the memory (713). In one embodiment, the image sensor (709) may bin the output of two or more light-receiving elements and output it. In one embodiment, for example, the memory (713) may further store a gain correction value for an output value output by binning two or more light-receiving elements. In one embodiment, for example, the electronic device (101) may correct the output value based on a gain correction value for two photodetectors that are merged when the image sensor (709) bins two or more photodetectors and outputs them. The ISP chain (711) may obtain corrected image data by applying the gain correction value to raw image data obtained from the image sensor (703). For example, the corrected image data may be obtained by correcting the gain value of a signal output from each pixel (or each photodetector) based on the gain correction value. For example, the ISP chain (711) may be configured to determine the gain correction value through an operation performed based on image stabilizer operation information.

[0083] In one embodiment, the electronic device (101) can acquire image data based on the determined gain correction value. The electronic device (101) (e.g., the ISP chain (711)) can determine a phase difference between pixels based on the image data corrected based on the gain correction value. The electronic device (101) can control the auto-focus controller (709) to adjust the focus based on the determined phase difference. By detecting the phase difference based on the image data corrected for the shadow effect caused by the operation of the optical image stabilizer (723), the auto-focus function performed together with the operation of the optical image stabilizer (723) can be improved.

[0084] In one embodiment, the electronic device (101) may perform a remosaic operation that transforms the color patterns of included pixels based on the corrected image data based on the determined gain correction value. By performing the remosaic operation based on the image data that has been corrected for the shading effect caused by the operation of the optical image stabilizer (723), the remosaic performance may be improved.

[0085] In one embodiment, the image sensor (703) may include a plurality of sensing lines constituting a unit for reading out the arranged light-receiving elements. Each of the plurality of sensing lines may be configured to read out pixel values ​​for two or more pixels. The image sensor (703) may be configured to read out the pixel values ​​based on gain correction values ​​for the light-receiving elements included in the sensing line that reads out the pixel values.

[0086] FIG. 8 is a flowchart (800) illustrating a process by which an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) processes an image according to one embodiment.

[0087] In operation 810, an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) according to one embodiment can control an optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) based on a physical movement of the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7). For example, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) can move an optical image stabilizer (OIS) carrier included in the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7)) based on a result of detecting the physical movement of the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7).

[0088] In operation 820, an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) according to one embodiment may obtain image stabilizer operation information related to control of an optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the image stabilizer (723) of FIG. 7). For example, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may obtain position information for the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the image stabilizer (723) of FIG. 7). For example, an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) may be configured to obtain information for controlling an optical image stabilizer (e.g., image stabilizer (240) of FIG. 2, image stabilizer (723) of FIG. 7).

[0089] In one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) can obtain a gain correction value for compensating for a shadow effect based on image stabilizer operation information related to the operation of an optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the image stabilizer (723) of FIG. 7). For example, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) can obtain the gain correction value based on the image stabilizer operation information from a look-up table stored in a memory (e.g., the memory (130) of FIG. 1, the memory (713) of FIG. 7). For example, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) can also obtain the gain correction value by performing a predefined operation on the image stabilizer operation information.

[0090] In operation 830, an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) can acquire image data based on a gain correction value. The electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) can apply the gain correction value to raw image data acquired through an image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7). As a gain value for offsetting a shading effect is applied to pixel values ​​included in the raw image data, corrected image data that compensates for the shading effect can be acquired.

[0091] FIG. 9 is a flowchart (900) illustrating a process for obtaining an image by an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) according to one embodiment.

[0092] In operation 910, an electronic device according to an embodiment (e.g., the electronic device 101 of FIG. 1, the electronic device 101 of FIG. 7) may obtain corrected image data that has been corrected based on a gain correction value (e.g., the gain correction value obtained in operation 820 of FIG. 8). The gain correction value may include gain values ​​to be applied to each pixel of the image. The corrected image data may be obtained by applying a gain corresponding to the gain correction value to at least some of the pixel values ​​included in the raw image data. The gains applied to each pixel may be different.

[0093] In operation 921, an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) according to one embodiment may perform a remosaic operation on the corrected image data. The remosaic operation may include an operation of converting a color pattern of pixels included in the image data into another pattern. For example, a Bayer image having a Bayer pattern may be obtained by performing a remosaic operation on image data having the pattern illustrated in FIG. 6 (a) or the pattern illustrated in FIG. 6 (b). In one embodiment, since the corrected image data has a shading effect removed or reduced, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may obtain image data having a higher resolution through the remosaic operation.

[0094] In operation 922, an electronic device according to an embodiment (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may perform image signal processing on image data to which demosaicing is applied in operation 921 to obtain an image. For example, the image signal processing may include at least one of demosaicing, dead pixel correction, noise control, tone curve adjustment, or edge enhancement. Demosaicing may refer to an operation of converting image data into a color image. For example, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may obtain an RGB color image in which each pixel has an RGB value from image data having a Bayer pattern through the demosaicing operation. Dead pixel correction may refer to correcting a dead pixel value included in the image data. Noise control may refer to detecting and reducing noise within an image. Tone curve adjustment can refer to the operation of mapping the tones of image data. Edge enhancement can refer to the operation of detecting edges within an image and correcting them to make the image more vivid.

[0095] In operation 931, an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) according to one embodiment may obtain phase difference information from the corrected image data. For example, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may obtain phase difference information between images from two or more images included in the corrected image data.

[0096] In operation 932, an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) according to one embodiment may perform a focus adjustment function based on phase difference information. The electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may estimate a distance to a subject based on the phase difference information and adjust the focus by moving a lens included in a camera module (e.g., the camera module (180) of FIGS. 1 and 2) included in the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7). By removing the shadow effect from the output of the image sensor, the accuracy of the focus adjustment function may be improved.

[0097] In one embodiment, the corrected image data acquired in operation 910 may be used for operations other than those described above. For example, the corrected image data may be used for operations such as vertical phase difference calculation, horizontal phase difference calculation, or flare detection.

[0098] FIG. 10 is a flowchart (1000) illustrating a process for obtaining a gain correction value for a camera (e.g., a camera module (180) of FIGS. 1 and 2) of an electronic device (e.g., an electronic device (101) of FIG. 1, an electronic device (101) of FIG. 7) according to one embodiment. The operations included in the flowchart (1000) may be performed during a manufacturing process or development process for manufacturing an electronic device (e.g., an electronic device (101) of FIG. 1, an electronic device (101) of FIG. 7). However, the present invention is not limited thereto. The operations included in the flowchart (1000) may also be performed by a completed electronic device (e.g., an electronic device (101) of FIG. 1, an electronic device (101) of FIG. 7).

[0099] In one embodiment, a gain correction value can be obtained based on the results of capturing images at two or more positions where at least one of the positions of an optical stabilizer (e.g., image stabilizer (240) of FIG. 2, optical image stabilizer (723) of FIG. 7) or an auto-focus controller (e.g., auto-focus controller (709) of FIG. 7) is different.

[0100] According to one embodiment, in operation 1010, first image data may be acquired through a camera (e.g., a camera module (180) of FIGS. 1 and 2) of an electronic device (e.g., an electronic device (101) of FIG. 1, an electronic device (101) of FIG. 7) while an optical image stabilizer (e.g., an image stabilizer (240) of FIG. 2, an optical image stabilizer (723) of FIG. 7)) is positioned at a first OIS position. The first image data may be an image of a surface light source having a constant gain over the entire area based on the first OIS position.

[0101] According to one embodiment, in operation 1020, second image data may be acquired through a camera (e.g., the camera module (180) of FIGS. 1 and 2) while an optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) is positioned at a second OIS position different from the first OIS position. For example, the second OIS position may include a center point of an area in which the optical image stabilizer can move or a position symmetrical with respect to the first OIS position with respect to the center point. In the present disclosure, the center point may mean a center of a range of movement of an image sensor or optical system that can be controlled by the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7). In addition, when the first OIS position and the second OIS position are symmetrical with respect to each other, data at the second OIS position may be generated from data at the first OIS position in a symmetrical relationship with the first OIS position. Alternatively, the opposite is also possible. For example, referring to FIG. 12, the correction value of the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6, the light-receiving element (LT) of FIG. 12) may be symmetrical with respect to the correction value of the second light-receiving element (e.g., the first light-receiving element (632) of FIG. 6, the light-receiving element (RT) of FIG. 12) with respect to the longitudinal axis passing through the center point of the OIS movement area. The correction value of the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6, the light-receiving element (LT) of FIG. 12) may also be symmetrical with respect to the correction value of the third light-receiving element (633) with respect to the light-receiving element (RB) of FIG. 12) with respect to the center point of the OIS movement area. The correction value of the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6, the light-receiving element (LT) of FIG. 12) may be symmetrical with the correction value of the fourth light-receiving element (e.g., the fourth light-receiving element (634) of FIG. 6, the light-receiving element (LB) of FIG. 12) based on the horizontal axis passing through the center point of the OIS movement area.Therefore, the second gain correction value (1211-2) for the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6, the light-receiving element (LT) of FIG. 12) may have a symmetrical relationship with the twelfth gain correction value (1214-3) for the fourth light-receiving element (e.g., the fourth light-receiving element (634) of FIG. 6, the light-receiving element (RB) of FIG. 12) in which the OIS moves symmetrically with respect to the center point of the OIS movement area. The twelfth gain correction value (1214-3) may be obtained by performing a rotational transformation on the second gain correction value (1211-2). By utilizing this characteristic, correction values ​​at each OIS position symmetrical to the vertical axis, horizontal axis, and center point may be predicted using only the correction value at the first OIS position.

[0102] For example, the second OIS position may include a position where the camera has a different focal length compared to the first OIS position.

[0103] The second image data may be a surface light source photographed with a constant gain over the entire area based on the second OIS position.

[0104] The first and second image data may not be images captured by the sensor to be corrected, but rather may be arbitrary image data modified by extracting common elements from other sensors. The image capture process specified in the embodiment may be partially or entirely omitted.

[0105] According to one embodiment, operations 1010 and 1020 may be performed while maintaining other settings (e.g., exposure value, white balance parameters) of a camera (e.g., camera module (180) of FIGS. 1 and 2). Operations 1010 and 1020 may each be performed for different positions of an auto focus (AF) controller. For example, the position of the auto focus controller may be changed two or more times while performing at least one of operations 1010 and 1020.

[0106] According to one embodiment, in operation 1030, a gain correction value for each OIS position may be obtained based on at least the first image data and the second image data. The gain correction value for each OIS position may be obtained without capturing all frames for all OIS positions that can be controlled by an optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7). The shading effect appearing at each OIS position may have symmetry with respect to the light-receiving elements arranged at positions corresponding to the microlenses. For example, the shading effect appearing at each OIS position may have symmetry with respect to a center point or vicinity of a center point of an area in which the optical image stabilizer can move. In one embodiment, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may utilize symmetry to obtain gain correction values ​​for all OIS positions from image frames captured based on some OIS positions.

[0107] According to one embodiment, in operation 1040, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may store a gain correction value for each OIS position in a memory (e.g., the memory (130) of FIG. 1, the memory (713) of FIG. 7). For example, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may store a look-up table that associates and stores the gain correction value with each OIS position in the memory (e.g., the memory (130) of FIG. 1, the memory (713) of FIG. 7). The electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may be configured to determine a gain correction value corresponding to the OIS position based on image stabilizer operation information corresponding to the OIS position from the look-up table.

[0108] FIG. 11 is a conceptual diagram illustrating the position of a lens or image sensor in relation to the operation of an optical image stabilizer for obtaining a gain correction value according to one embodiment.

[0109] In one embodiment, in a calibration operation for calibrating a gain value for compensating for a shading effect, a camera (e.g., a camera module (180) of FIGS. 1 and 2) may photograph a surface light source in which the gain appears constant across the entire area. In the calibration operation, the camera (e.g., a camera module (180) of FIGS. 1 and 2) may move the relative position or direction between a lens and an image sensor using an optical image stabilizer (e.g., an image stabilizer (240) of FIG. 2, an optical image stabilizer (723) of FIG. 7) and then photograph the surface light source again. In order to move the relative position or direction between the lens and the image sensor, the camera (e.g., the camera module (180) of FIGS. 1 and 2) can move at least one of the lens or the image sensor. In this document, for the convenience of explanation, the operation of moving the relative position or direction between the lens and the image sensor using an optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) may be referred to as 'moving the position of the optical image stabilizer (or OIS position)'. In the calibration process, the camera (e.g., the camera module (180) of FIGS. 1 and 2) may perform the process of moving the position of the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) and then re-capturing the surface light source multiple times. In the calibration process, the camera (e.g., the camera module (180) of FIGS. 1 and 2) may re-capture the surface light source after changing the focus position. A camera (e.g., a camera module (180) of FIGS. 1 and 2) can move the position of a focus lens or an image sensor so that the length of the optical path from the focus lens to the image sensor is changed to adjust the focus position. During the calibration process, the camera (e.g., a camera module (180) of FIGS. 1 and 2) can change the focus position and then re-capture the surface light source multiple times.

[0110] In one embodiment, referring to (a) of FIG. 11, a camera (e.g., a camera module (180) of FIGS. 1 and 2) can obtain an image of a surface light source based on a first position (1110). The camera (e.g., a camera module (180) of FIGS. 1 and 2) can obtain an image of a surface light source based on a second position (1120) that is an OIS position moved from the first position (1110). The camera (e.g., a camera module (180) of FIGS. 1 and 2) can obtain an image of a surface light source based on a third position (1130). The camera (e.g., a camera module (180) of FIGS. 1 and 2) can obtain an image of a surface light source based on a fourth position (1100) that is an OIS position moved from the first position (1110). In one embodiment, an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) can obtain a look-up table including gain correction values ​​from images captured by a surface light source.

[0111] In one embodiment, referring to (b) of FIG. 11, a camera (e.g., a camera module (180) of FIGS. 1 and 2) can acquire an image of a surface light source based on a fifth position (1105). The fifth position (1105) may be a center point of an operating range of an optical image stabilizer. The fifth position (1105) may be specified regardless of a focal length of the camera (e.g., a camera module (180) of FIGS. 1 and 2). The camera (e.g., a camera module (180) of FIGS. 1 and 2) can acquire an image of a surface light source based on a sixth position (1125) that is a position that is moved by an OIS position and a focal position from the fifth position (1105). The camera (e.g., a camera module (180) of FIGS. 1 and 2) can acquire an image of a surface light source based on a seventh position (1135) that has the same focal position as the sixth position (1125) and a different OIS position. A camera (e.g., a camera module (180) of FIGS. 1 and 2) can acquire images of a surface light source based on an eighth position (1145) and a ninth position (1155), which have different focus positions from the focus positions corresponding to the sixth position (1125) and the seventh position (1135), respectively. The OIS position of the eighth position (1145) may be different from the sixth position (1125). The OIS position of the ninth position (1155) may be different from the seventh position (1135). An electronic device (e.g., an electronic device (101) of FIG. 1, an electronic device (101) of FIG. 7) can acquire a look-up table including a gain correction value from images of a surface light source captured at each of a plurality of positions.

[0112] However, the positions for capturing the images shown in (a) or (b) of FIG. 11 are provided as examples, and the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may also obtain a look-up table from images of a surface light source captured at other positions in order to measure the shading effect according to the operating state of the optical image stabilizer at the time of capturing. When the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) uses a common look-up table for multiple sensors, the process of capturing an image to acquire data for calibrating the sensor may be partially or entirely omitted. That is, the operation of capturing an image to acquire data may be partially or entirely omitted, and the gain of the sensor may be corrected using data applied to another sensor. An electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) can acquire two sets of image data captured based on different AF positions at the center point of an area in which an optical image stabilizer can move to obtain data for correction of an autofocus operation.

[0113] FIG. 12 is a diagram conceptually illustrating gain correction values ​​obtained according to one embodiment. FIG. 12 conceptually illustrates a look-up table including gain correction values ​​for each light-receiving element and each OIS position according to one embodiment.

[0114] Referring to FIG. 12, the look-up table may include frames captured for a plurality of OIS positions for light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634, 641, 642, 643, 644, 651, 652, 653, 654, 661, 662, 663, 664) of FIG. 6) according to a pattern constituting an image sensor (e.g., image sensor (230) of FIG. 2, image sensor (703) of FIG. 7). For example. The look-up table may include frames captured for 5 x 5 OIS positions for each of four light-receiving elements (e.g., a first light-receiving element (631) positioned at a first position in FIG. 6, a second light-receiving element (632) positioned at a second position adjacent in a first direction from the first light-receiving element (631), a third light-receiving element (633) positioned at a third position adjacent in a second direction from the first light-receiving element (631), and a fourth light-receiving element (634) positioned at a fourth position adjacent to the second light-receiving element (632) and the third light-receiving element (633)). If capturing images for all 25 OIS positions is performed during the calibration process, the number of steps that must be performed for calibration may increase. Therefore, gain correction values ​​may be obtained for some of the 5 x 5 OIS positions by capturing images based on the positions. Gain correction values ​​for the remaining OIS positions may be obtained by utilizing symmetry based on the acquired gain correction values.

[0115] In one embodiment, the look-up table may include a first gain correction value (1211-1) based on an image captured through a first light-receiving element (LT) (e.g., the first light-receiving element (631) of FIG. 6) at a first location (e.g., the first location (1110) of FIG. 11). A second gain correction value (1211-2) may be based on an image captured through a first light-receiving element (LT) (e.g., the first light-receiving element (631) of FIG. 6) at a second location (e.g., the second location (1120) of FIG. 11). A third gain correction value (1211-3) may be based on an image captured through a first light-receiving element (LT) (e.g., the first light-receiving element (631) of FIG. 6) at a third location (e.g., the third location (1130) of FIG. 11). A gain correction value for a position between two positions can be estimated from the gain correction values ​​of the two positions. For example, a gain correction value for a position between a first position (1110) and a second position (1120) can be obtained by interpolating the gain correction value of the first position and the gain correction value of the second position.

[0116] In one embodiment, data (1211-4) for an OIS position of (-3 deg, -3 deg) associated with a first light-receiving element (LT) (e.g., the first light-receiving element (631) of FIG. 6) is not included in the image captured through the first light-receiving element (LT) (e.g., the first light-receiving element (631) of FIG. 6). However, data for an OIS position of (-3 deg, -3 deg) associated with the first light-receiving element (LT) (e.g., the first light-receiving element (631) of FIG. 6) can be estimated by flipping data (the fifth gain correction value (1212-2)) for an OIS position of (+3 deg, -3 deg) through a second light-receiving element (RT) (e.g., the second light-receiving element (632) of FIG. 6). Similarly, a first gain correction value table (1210) for all OIS positions related to the light-receiving elements (LT, RT, LB, RB) (e.g., the first light-receiving element (631), the second light-receiving element (632), the third light-receiving element (633), and the fourth light-receiving element (634)) arranged at positions corresponding to the first microlens (e.g., the first microlens (611) of FIG. 6) can be obtained based on the fourth gain correction value (1212-1), the fifth gain correction value (1212-2), the sixth gain correction value (1212-3), the seventh gain correction value (1213-1), the eighth gain correction value (1213-2), the ninth gain correction value (1213-3), the tenth gain correction value (1214-1), the eleventh gain correction value (1214-2), and the twelfth gain correction value (1214-3) can be obtained.

[0117] FIG. 13 is a diagram schematically illustrating output values ​​of pixels output from an image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) according to one embodiment. FIG. 13 is a diagram schematically illustrating output values ​​of pixels output from an image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) in which the pattern illustrated in (a) of FIG. 6 is repeated. The output values ​​illustrated in FIG. 13 illustrate pixel values ​​before demosaicing processing is performed. Demosaicing processing may refer to an operation performed to obtain a color image from an image (e.g., an image composed of a Bayer pattern) other than a color image (e.g., an RGB image).

[0118] The first image (1310) illustrated in FIG. 13 may include data output without correcting the gain value. A difference may be large among a first output value (1311) of a first light-receiving element (e.g., a first light-receiving element (631) of FIG. 6), a second output value (1312) of a second light-receiving element (e.g., a second light-receiving element (632) of FIG. 6), a third output value (1313) of a third light-receiving element (e.g., a third light-receiving element (633) of FIG. 6), and a fourth output value (1314) of a fourth light-receiving element (e.g., a fourth light-receiving element (634) of FIG. 6) included in the first image (1310).

[0119] The second image (1320) illustrated in FIG. 13 may include data output in a state where the gain value is corrected. In one embodiment, the difference between the first output value (1321) of the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6), the second output value (1322) of the second light-receiving element (e.g., the second light-receiving element (632) of FIG. 6), the third output value (1323) of the third light-receiving element (e.g., the third light-receiving element (633) of FIG. 6), and the fourth output value (1324) of the fourth light-receiving element (e.g., the fourth light-receiving element (634) of FIG. 6) included in the second image (1320) may be relatively reduced.

[0120] In one embodiment, similar to the first gain correction value table (1210), a second gain correction value table (1220) related to light-receiving elements (e.g., the fifth light-receiving element (641), the sixth light-receiving element (642), the seventh light-receiving element (643), and the eighth light-receiving element (644)) positioned at positions corresponding to the second microlens (e.g., the second microlens (612) of FIG. 6) may be obtained. The second gain correction value table (1220) may include information for obtaining gain correction values ​​for color channels different from the first gain correction value table (1210). Similar to the first gain correction value table (1210), a third gain correction value table (1230) related to light-receiving elements (e.g., the ninth light-receiving element (651), the tenth light-receiving element (652), the eleventh light-receiving element (653), and the twelfth light-receiving element (654)) positioned corresponding to the third microlens (e.g., the third microlens (613) of FIG. 6)) can be obtained. Similar to the first gain correction value table (1210), a fourth gain correction value table (1240) related to light-receiving elements (e.g., the thirteenth light-receiving element (661), the fourteenth light-receiving element (662), the fifteenth light-receiving element (663), and the sixteenth light-receiving element (664)) positioned corresponding to the fourth microlens (e.g., the fourth microlens (614) of FIG. 6)) can be obtained.

[0121] In one embodiment, an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) may store only data based on captured images (e.g., 1212-1, 1211-2, 1211-3, 1212-1, 1212-2, 1212-3, 1213-1, 1213-2, 1213-3, 1214-1, 1214-2, 1214-3) in a memory (e.g., memory (713) of FIG. 7). The format of the data stored in the memory (e.g., memory (713) of FIG. 7) may be implemented in various ways. For example, the result of performing a binning operation on the captured images may be stored in the memory (e.g., memory (713) of FIG. 7). For example, a representative value similar to an actual shooting value may be stored in a memory (e.g., memory (713) of FIG. 7). For example, a compressed value obtained by processing data included in a captured image may be stored in the memory (713). However, the present invention is not limited thereto. When an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) captures an image through a camera (e.g., camera module (180) of FIGS. 1 and 2), the electronic device may obtain image stabilizer operation information related to the OIS position of an optical image stabilizer (e.g., image stabilizer (240) of FIG. 2, optical image stabilizer (723) of FIG. 7). The electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) may obtain a gain correction value for the OIS position related to the obtained control value by interpolating at least some of the stored data. In one embodiment, an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) may determine a gain correction value for each photodetector element from stored data based on an AF position associated with a focus adjustment operation.

[0122] An electronic device according to one embodiment (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) can correct pixel values ​​output from each light-receiving element based on a determined gain correction value.

[0123] An electronic device according to one embodiment (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) may include a camera module including a camera (e.g., camera module (180) of FIGS. 1 and 2), a memory storing instructions, and at least one processor (e.g., processor (120)) operatively connected to the camera module (e.g., camera module (180) of FIGS. 1 and 2) and the memory (e.g., memory (130) of FIG. 1, memory (713) of FIG. 7). The camera module (e.g., the camera module (180) of FIGS. 1 and 2) may include a lens unit (e.g., the lens assembly (210) of FIG. 2) including at least one lens, an image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) that converts received light into an electrical signal, and an optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) configured to control the position of at least one of the lens unit (e.g., the lens assembly (210) of FIG. 2) or the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7)) based on the movement of the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7). The image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) may include a micro lens (e.g., the micro lenses (611, 612, 613, 614) of FIG. 6), and a plurality of light-receiving elements (e.g., the light-receiving elements (631, 632, 633, 634) of FIG. 6) arranged at positions corresponding to the micro lenses (e.g., the micro lenses (611, 612, 613, 614) of FIG. 6).The above instructions may be executed by the at least one processor (e.g., processor (120)) to cause the electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 7) to obtain a gain correction value corresponding to image stabilizer operation information related to a position of the optical image stabilizer (e.g., image stabilizer (240) of FIG. 2, optical image stabilizer (723) of FIG. 7). The instructions may be executed by the at least one processor (e.g., processor (120)) to control the operation of the optical image stabilizer (e.g., image stabilizer (240) of FIG. 2, optical image stabilizer (723) of FIG. 7) based on the image stabilizer operation information, thereby obtaining image data from the plurality of light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) based on the gain correction value corresponding to the image stabilizer operation information.

[0124] In one embodiment, the plurality of light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) may include a 2 x 2 array of light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) arranged at positions corresponding to the micro-lenses (e.g., micro-lenses (611, 612, 613, 614) of FIG. 6). The image sensor (e.g., image sensor (230) of FIG. 2, image sensor (703) of FIG. 7) may include a color filter having a single color channel in an area corresponding to the micro-lenses (e.g., micro-lenses (611, 612, 613, 614) of FIG. 6).

[0125] In one embodiment, the gain correction value may include a plurality of gain correction values ​​corresponding to each of the plurality of light-receiving elements (e.g., light-receiving elements 631, 632, 633, 634 of FIG. 6). The memory (e.g., memory 130 of FIG. 1, memory 713 of FIG. 7) may store the plurality of gain correction values ​​stored in association with the image stabilizer operation information or a look-up table including information for obtaining the plurality of gain correction values. The instructions may be executed by the at least one processor (e.g., processor 120) to cause the electronic device (e.g., electronic device 101 of FIG. 1, electronic device 101 of FIG. 7) to obtain the plurality of gain correction values ​​from the look-up table based on the image stabilizer operation information.

[0126] In one embodiment, the look-up table may include data generated for the plurality of light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) based on data including first data captured while the position of the optical image stabilizer (e.g., image stabilizer (240) of FIG. 2, optical image stabilizer (723) of FIG. 7) is at a first position, second data captured while the position is at a second position, and third data captured while the position is at a third position corresponding to a focus position different from the first and second positions.

[0127] In one embodiment, the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) may include a carrier movable within the camera module (e.g., the camera module (180) of FIGS. 1 and 2) and a position sensor that detects position information related to the carrier. The instructions may be executed by the at least one processor (e.g., the processor (120)) to cause the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) to obtain, through the position sensor, the image stabilizer operation information associated with a time at which the electronic device reads the image data from the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7). The instructions may be executed by the at least one processor (e.g., the processor (120)) to cause the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) to obtain the gain correction value stored in the memory (e.g., the memory (130) of FIG. 1, the memory (713) of FIG. 7) based on the obtained image stabilizer operation information. The instructions may be executed by the at least one processor (e.g., the processor (120)) to cause the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) to obtain the image data based on pixel values ​​read from the plurality of light-receiving elements (e.g., the light-receiving elements (631, 632, 633, 634) of FIG. 6) based on the gain correction value.

[0128] In one embodiment, the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) may further include a focus adjuster that moves at least one of the at least one lens to adjust a focus of an image formed on the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7). The instructions may be executed by the at least one processor (e.g., the processor (120)) to cause the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) to receive image stabilizer operation information from the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7). The instructions may be executed by the at least one processor (e.g., the processor (120)) to cause the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) to obtain the image data from the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) based on the gain correction value determined based on the image stabilizer operation information. The instructions may be executed by the at least one processor (e.g., the processor (120)) to cause the electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 7) to control the focus adjuster based on an image signal included in the image data.

[0129] In one embodiment, the plurality of light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) may include a first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6) and a second light-receiving element (e.g., the second light-receiving element (632) of FIG. 6). The camera module (e.g., the camera module (180) of FIGS. 1 and 2) may be configured to output a first pixel value based on a first gain correction value for the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6)) and output a second pixel value based on a second gain correction value for the second light-receiving element (e.g., the second light-receiving element (632) of FIG. 6)) when the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7)) operates based on a first operation mode. The camera module (e.g., the camera module (180) of FIGS. 1 and 2) may be configured to output a third pixel value obtained by binning the output of the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6) and the second light-receiving element (e.g., the second light-receiving element (632) of FIG. 6)) based on a third gain correction value for the first light-receiving element (e.g., the first light-receiving element (631) of FIG. 6) and the second light-receiving element (e.g., the second light-receiving element (632) of FIG. 6)) when the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7)) operates based on the second operation mode.

[0130] In one embodiment, the memory (e.g., memory (130) of FIG. 1, memory (713) of FIG. 7) can store the first gain correction value, the second gain correction value, and the third gain correction value.

[0131] In one embodiment, the memory (e.g., memory (130) of FIG. 1, memory (713) of FIG. 7) may be configured to store the first gain correction value and the second gain correction value. The camera module (e.g., camera module (180) of FIGS. 1 and 2) may be configured to obtain the third gain correction value by performing an operation from the first gain correction value and the second gain correction value when operating based on the second operation mode.

[0132] In one embodiment, the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) may include a plurality of sensing lines. Each of the plurality of sensing lines may include at least two of the plurality of light-receiving elements (e.g., the light-receiving elements (631, 632, 633, 634) of FIG. 6). The image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) may be configured to read out a pixel value based on gain correction values ​​for at least two of the light-receiving elements included in a sensing line that reads out a pixel value among the plurality of sensing lines.

[0133] In one embodiment, the memory (e.g., memory (130) of FIG. 1, memory (713) of FIG. 7) may store a look-up table generated based on the symmetry of the gain correction value according to the position of the optical image stabilizer (e.g., image stabilizer (240) of FIG. 2, optical image stabilizer (723) of FIG. 7).

[0134] According to one embodiment, a method for obtaining a gain correction value for correcting a gain value used to read a pixel value from an image sensor (e.g., an image sensor (230) of FIG. 2, an image sensor (703) of FIG. 7) included in a camera module (e.g., a camera module (180) of FIGS. 1 and 2)) may include an operation of capturing a first image while an optical image stabilizer (e.g., an image stabilizer (240) of FIG. 2, an optical image stabilizer (723) of FIG. 7) included in the camera module (e.g., a camera module (180) of FIGS. 1 and 2) is moved to a first position. The method may further include an operation of capturing a second image while the optical image stabilizer (e.g., an image stabilizer (240) of FIG. 2, an optical image stabilizer (723) of FIG. 7) is moved to a second position different from the first position. The method may further include an operation of obtaining gain correction values ​​for each of a plurality of positions of the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) from at least the first image and the second image. The method may include an operation of storing a look-up table including the gain correction values ​​in a memory (e.g., the memory (130) of FIG. 1, the memory (713) of FIG. 7).

[0135] In one embodiment, the operation of capturing the first image and the operation of capturing the second image may be performed in a state where a focus adjuster included in the camera module (e.g., the camera module (180) of FIGS. 1 and 2) is in a third position. The method may further include an operation of capturing a third image in a state where the position of the focus adjuster is in a fourth position different from the third position. The operation of obtaining the gain correction value may include an operation of obtaining gain correction values ​​for each of a plurality of positions of the optical image stabilizer (e.g., the image stabilizer (240) of FIG. 2, the optical image stabilizer (723) of FIG. 7) from at least the first image, the second image, and the third image.

[0136] In one embodiment, the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) may include a micro lens (e.g., the micro lenses (611, 612, 613, 614) of FIG. 6), and a plurality of light-receiving elements (e.g., the light-receiving elements (631, 632, 633, 634) of FIG. 6) arranged at positions corresponding to the micro lenses (e.g., the micro lenses (611, 612, 613, 614) of FIG. 6).

[0137] In one embodiment, the plurality of light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) may include light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) arranged in a 2 x 2 array at positions corresponding to the micro lenses (e.g., micro lenses (611, 612, 613, 614) of FIG. 6).

[0138] In one embodiment, the operation of obtaining the gain correction values ​​may include an operation of obtaining the gain correction values ​​from the first image and the second image by taking into account the symmetrical relationship of the light-receiving elements (e.g., the light-receiving elements (631, 632, 633, 634) of FIG. 6).

[0139] A computer-readable non-transitory recording medium according to one embodiment comprises: a first gain correction value corresponding to a first image captured through an image sensor (e.g., an image sensor (230) of FIG. 2, an image sensor (703) of FIG. 7) of a camera module (e.g., a camera module (180) of FIGS. 1 and 2) in a state where an optical image stabilizer (e.g., an image stabilizer (240) of FIG. 2, an optical image stabilizer (723) of FIG. 7) included in the camera module (e.g., a camera module (180) of FIGS. 1 and 2) is moved to a first position; and an image sensor (e.g., an image sensor (230) of FIG. 2, an image sensor (703) of FIG. 7) of the camera module (e.g., a camera module (180) of FIGS. 1 and 2) in a state where the optical image stabilizer (e.g., an image stabilizer (240) of FIG. 2, an optical image stabilizer (723) of FIG. 7)) is moved to a second position different from the first position. A look-up table including gain correction values ​​including a second gain correction value corresponding to a second image captured through a sensor (703) can be stored.

[0140] In one embodiment, the first image and the second image may be captured while the focus adjuster included in the camera module (e.g., the camera module (180) of FIGS. 1 and 2) is in a third position. The look-up table may further include gain correction values ​​obtained by taking into account a third image captured while the focus adjuster is in a fourth position different from the third position.

[0141] In one embodiment, the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (703) of FIG. 7) may include a micro lens (e.g., the micro lenses (611, 612, 613, 614) of FIG. 6), and a plurality of light-receiving elements (e.g., the light-receiving elements (631, 632, 633, 634) of FIG. 6) arranged at positions corresponding to the micro lenses (e.g., the micro lenses (611, 612, 613, 614) of FIG. 6).

[0142] In one embodiment, the plurality of light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) may include light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6) arranged in a 2 x 2 array at positions corresponding to the micro lenses (e.g., micro lenses (611, 612, 613, 614) of FIG. 6).

[0143] In one embodiment, the gain value may be obtained by considering the symmetrical relationship of the light-receiving elements (e.g., light-receiving elements (631, 632, 633, 634) of FIG. 6).

[0144] According to various embodiments, an electronic device and an image processing method can be provided that can improve the image quality of an image by reducing the degradation of the image quality caused by the operation of an optical image stabilizer.

[0145] According to various embodiments, an electronic device and an image processing method capable of removing or reducing shadow artifacts in an image acquired through an image sensor having symmetric phase detection pixels may be provided.

[0146] According to various embodiments, an electronic device and an image processing method can be provided that can improve the resolution of an image by correcting shading artifacts that may appear in the image.

[0147] According to various embodiments, the performance of the autofocus function can be improved by correcting shadow artifacts that may appear in the image.

[0148] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned can be clearly understood by a person having ordinary skill in the art to which the present disclosure belongs from the description below.

[0149] The methods according to the embodiments described in the claims or specification of the present disclosure may be implemented in the form of hardware, software, or a combination of hardware and software.

[0150] When implemented in software, a computer-readable storage medium storing one or more programs (software modules) may be provided. The one or more programs stored in the computer-readable storage medium are configured for execution by one or more processors within an electronic device. The one or more programs include instructions that cause the electronic device to execute methods according to embodiments described in the claims or specification of the present disclosure.

[0151] These programs (software modules, software) may be stored in a random access memory, a non-volatile memory including a flash memory, a read only memory (ROM), an electrically erasable programmable read only memory (EEPROM), a magnetic disc storage device, a compact disc ROM (CD-ROM), a digital versatile disc (DVD) or other forms of optical storage, a magnetic cassette, or a memory formed by a combination of some or all of these. In addition, each configuration memory may be included in multiple numbers.

[0152] In the present disclosure, a function or operation performed by an electronic device may be performed by one or more processors executing one or more instructions included in a program stored in a memory. The function or operation of the electronic device mentioned in the present disclosure may be performed by one processor executing one or more instructions, or may be performed by a combination of multiple processors executing one or more instructions. The processor mentioned in the present disclosure may be understood to include a circuit for performing an operation or controlling other components of the electronic device. For example, the one or more processors may include a central processing unit (CPU), a microprocessor unit (MPU), an application processor (AP), a communication processor (CP), a neural processing unit (NPU), a system on a chip (SoC), or an integrated circuit (IC) configured to execute one or more instructions. The one or more processors may be configured to perform the operation of the electronic device described above.

[0153] In the present disclosure, a program (software module, software) may be stored in a non-volatile memory including a random access memory (RAM), a flash memory, a read only memory (ROM), an electrically erasable programmable read only memory (EEPROM), a magnetic disc storage device, a compact disc ROM (CD-ROM), digital versatile discs (DVDs) or other forms of optical storage devices, a magnetic cassette. Or, it may be stored in a memory formed by a combination of some or all of these. The memory may be formed by a single storage medium or may be formed by a combination of a plurality of storage media. The one or more instructions may be stored in a single storage medium or may be distributed and stored in a plurality of storage media.

[0154] Additionally, the program may be stored on an attachable storage device that is accessible via a communication network such as the Internet, an intranet, a local area network (LAN), a wide LAN (WLAN), or a storage area network (SAN), or a combination thereof. Such a storage device may be connected to a device performing an embodiment of the present disclosure via an external port. Additionally, a separate storage device on the communication network may be connected to a device performing an embodiment of the present disclosure.

[0155] In the specific embodiments of the present disclosure described above, components included in the disclosure are expressed in the singular or plural form, depending on the specific embodiment presented. However, the singular or plural expressions are selected to suit the presented situation for convenience of explanation, and the present disclosure is not limited to singular or plural components. Components expressed in the plural form may be composed of singular elements, or components expressed in the singular form may be composed of plural elements.

[0156] Additionally, in the present disclosure, terms such as “part”, “module”, etc. may refer to a hardware component such as a processor or circuit, and / or a software component executed by a hardware component such as a processor.

[0157] A "component" or "module" may be implemented by a program stored in an addressable storage medium and executed by a processor. For example, a "component" or "module" may be implemented by components such as software components, object-oriented software components, class components, and task components, as well as processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables.

[0158] The specific implementations described in this disclosure are merely exemplary and do not limit the scope of the present disclosure in any way. For the sake of brevity, descriptions of conventional electronic components, control systems, software, and other functional aspects of the systems may be omitted.

[0159] Additionally, in the present disclosure, “comprising at least one of a, b, or c” may mean “comprising only a, comprising only b, comprising only c, comprising both a and b, comprising both b and c, comprising both a and c, or comprising all of a, b, and c.”

[0160] While the detailed description of this disclosure has described specific embodiments, it should be understood that various modifications are possible without departing from the scope of this disclosure. Therefore, the scope of this disclosure should not be limited to the described embodiments, but should be defined not only by the scope of the claims described below, but also by equivalents thereof.

Claims

1. In electronic devices, A camera module comprising a camera; Memory for storing instructions; and comprising at least one processor operatively connected to the camera module and the memory; The above camera module: A lens unit comprising at least one lens, An image sensor that converts received light into an electrical signal, and An optical image stabilizer configured to control the position of at least one of the lens unit or the image sensor based on movement of the electronic device, The above image sensor: Micro lenses, and comprising a plurality of light-receiving elements arranged at positions corresponding to the above micro lenses; The above instructions are executed by the at least one processor, causing the electronic device to: Obtain a gain correction value corresponding to the image stabilizer operation information related to the position of the optical image stabilizer, An electronic device that controls the operation of the optical image stabilizer based on the image stabilizer operation information, thereby obtaining image data from the plurality of light-receiving elements based on the gain correction value corresponding to the image stabilizer operation information.

2. In claim 1, The above plurality of light-receiving elements include a 2 x 2 array of light-receiving elements arranged at positions corresponding to the micro lenses, An electronic device, wherein the image sensor includes a color filter having a single color channel in an area corresponding to the micro lens.

3. In claim 1, The above gain correction value includes a plurality of gain correction values ​​corresponding to each of the plurality of light-receiving elements, The above memory stores a look-up table including the plurality of gain correction values ​​stored in association with the image stabilizer operation information or information for obtaining the plurality of gain correction values, An electronic device, wherein the instructions, executed by the at least one processor, cause the electronic device to obtain the plurality of gain correction values ​​from the look-up table based on the image stabilizer operation information.

4. In claim 3, An electronic device, wherein the look-up table includes data generated for the plurality of light-receiving elements based on data including first data captured when the position of the optical image stabilizer is at a first position, second data captured when the position is at a second position, and third data captured when the position is at a third position corresponding to a focus position different from the first position and the second position.

5. In claim 1, The above image stabilizer: a movable carrier within the above camera module; and A position sensor for detecting position information related to the carrier is included, The above instructions are executed by the at least one processor, causing the electronic device to: Acquire the image stabilizer operation information related to the time of reading the image data from the image sensor through the position sensor, The gain correction value stored in the memory is obtained based on the acquired image stabilizer operation information, An electronic device that obtains the image data based on pixel values ​​read out from the plurality of light-receiving elements based on the gain correction value.

6. In claim 1, The electronic device further includes a focus adjuster for moving at least one of the at least one lens to adjust the focus of an image formed on the image sensor, The above instructions are executed by the at least one processor, so that the electronic device, Receive image stabilizer operation information from the optical image stabilizer, The image data is acquired from the image sensor based on the gain correction value determined based on the image stabilizer operation information, An electronic device that controls the focus adjuster based on an image signal included in the image data.

7. In claim 1, The above plurality of light-receiving elements include a first light-receiving element and a second light-receiving element, The above camera module: When the image sensor operates based on the first operation mode, a first pixel value is output based on a first gain correction value for the first light-receiving element, and a second pixel value is output based on a second gain correction value for the second light-receiving element. An electronic device configured to output a third pixel value obtained by binning the output of the first light-receiving element and the second light-receiving element based on a third gain correction value for the first light-receiving element and the second light-receiving element when the image sensor operates based on the second operation mode.

8. In claim 7, An electronic device, wherein the memory stores the first gain correction value, the second gain correction value, and the third gain correction value.

9. In claim 7, The above memory is configured to store the first gain correction value and the second gain correction value, An electronic device, wherein the camera module is configured to obtain the third gain correction value by performing a calculation from the first gain correction value and the second gain correction value when operating based on the second operation mode.

10. In claim 1, The above memory is, An electronic device storing a look-up table generated based on the symmetry of the gain correction value according to the position of the optical image stabilizer.

11. A method for obtaining a gain correction value for correcting a gain value used to read out a pixel value from an image sensor included in a camera module, An action of capturing a first image while moving an optical image stabilizer included in the above camera module to a first position; An action of capturing a second image while moving the optical image stabilizer to a second position different from the first position; An operation of obtaining gain correction values ​​for each of a plurality of positions of the optical image stabilizer from at least the first image and the second image; and A method comprising the action of storing a look-up table including the above gain correction values ​​in memory.

12. In claim 11, The above-mentioned first image shooting operation and the above-mentioned second image shooting operation are performed in a state where the focus adjuster included in the camera module is in the third position, The method further includes an operation of capturing a third image while the position of the focus adjuster is at a fourth position different from the third position, A method wherein the operation of obtaining the gain correction value includes an operation of obtaining gain correction values ​​for each of a plurality of positions of the optical image stabilizer from at least the first image, the second image and the third image.

13. In claim 11, The image sensor includes a micro lens and a plurality of light-receiving elements arranged at positions corresponding to the micro lenses, A method, wherein the plurality of light-receiving elements include light-receiving elements arranged in a 2 x 2 array at positions corresponding to the micro lenses.

14. In claim 13, A method wherein the operation of obtaining the gain correction values ​​includes an operation of obtaining the gain correction values ​​from the first image and the second image while taking into account the symmetrical relationship of the light-receiving elements.

15. In a non-transitory computer-readable recording medium, A recording medium storing a look-up table including gain correction values, the look-up table including a first gain correction value corresponding to a first image captured through an image sensor of the camera module while the optical image stabilizer included in the camera module is moved to a first position, and a second gain correction value corresponding to a second image captured through the image sensor of the camera module while the optical image stabilizer is moved to a second position different from the first position.

Citation Information

Patent Citations

  • Optical image stabilizer for camera module and gain calbration method thereof

    KR1020160095911A

  • Camera image stabilization

    US20110105181A1

  • Image Compensation Method, Electronic Device and Computer-Readable Storage Medium

    US20190387169A1

  • KR20190019504A

  • KR20220159133A