Electronic device and method for improving camera zoom performance thereof

By integrating an image signal processor and scaler in electronic devices to prioritize zoom requests, the device efficiently processes frames across different zoom magnifications, addressing slow zoom responsiveness and improving performance in low-light environments.

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

Patent Information

Application Number
PCT/KR2024/005529
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-07
Filing Date
2024-04-24
Publication Date
2024-11-07

AI Technical Summary

Technical Problem

Electronic devices, such as smartphones, experience slow camera zoom responsiveness due to pipeline delays in image processing, particularly when transitioning between zoom magnifications, and this issue is exacerbated in low-light environments where frame intervals increase.

Method used

The implementation of an electronic device configuration that includes an image signal processor and a scaler, where the processor processes frames at a first zoom magnification and the scaler scales subsequent frames to a new zoom magnification based on user input, prioritizing the zoom request to reduce pipeline delay and improve responsiveness.

Benefits of technology

This configuration significantly reduces the time it takes to adjust zoom levels, enhancing camera zoom performance by minimizing delays and maintaining responsiveness even in low-light conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024005529_07112024_PF_FP_ABST
    Figure KR2024005529_07112024_PF_FP_ABST
Patent Text Reader

Abstract

An electronic device according to one embodiment comprises: a display; an image sensor; an image signal processor for processing frames transmitted from the image sensor; a scaler arranged between an output end of an image pipeline and an input end of the display; a processor operatively connected to the image signal processor and the scaler; and a memory for storing instructions that can be executed by the processor, wherein, during a camera function execution, the instructions enable the electronic device to: acquire, from the image sensor, a first frame of a first zoom magnification; control that a second frame to Nth frames are image-processed at the first zoom magnification through the image signal processor while the first frame of the first zoom magnification processed through the image signal processor is output to the display; receive a user input for requesting the display of a second zoom magnification, which differs from the first zoom magnification at the time of N+1 frame acquisition; request the image signal processor to process the N+1 frame; set to transmit, to the scaler, a second zoom magnification request at the time of N+1 frame acquisition; and allow the scaler to scale, in a second frame output order, at the second zoom magnification requested at the time of N+1 frame acquisition, a second frame processed at the first zoom magnification in the image signal processor so as to transmit same to the display.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic devices and methods for improving camera zoom performance thereof

[0001] The present invention relates to an electronic device and a method for improving the camera zoom performance thereof.

[0002] An electronic device (e.g., a smartphone) provides a photographing function (e.g., a camera application) using at least one camera or image sensor (e.g., a camera module).

[0003] For example, an image captured by an image sensor (e.g., a frame image) may undergo image processing based on a hierarchical structure of a camera program module. The camera program module may include a camera application, a camera framework, a camera hardware abstraction layer (HAL), and a kernel layer.

[0004] Image processing may be performed in an image signal processor (hereinafter referred to as an ISP) included in a camera hardware abstraction layer. The ISP may perform image processing through an image pipeline structure. The image pipeline may include at least one of functional blocks that process a specific part of each pipeline, for example, auto focus, auto exposure, auto white balance, color adjustment, color conversion, noise reduction, sharpening, image enhancement (e.g., high-dynamic-range), image scaling (e.g., scalar), face detection, and encoding.

[0005] The camera program module processes requests from the camera application (hereinafter, “camera app”) by passing them to the framework and hardware abstraction layer in hierarchical order, and then passes the results back to the camera app through the kernel, camera hardware abstraction layer, and framework. As a result, there may be a time difference between the time a user requests a change in camera function and the time the image is processed by the camera program module and displayed as a result. In addition, since the ISP performs image processing on a frame-by-frame basis, a pipeline delay may also exist depending on the frame processing time.

[0006] In particular, for the camera zoom-in or zoom-out function, there is an issue of slow response to real-time camera zoom-in or zoom-out requests. For example, when a request to change the zoom ratio (e.g., 2x) is detected in the camera app, the camera app request is processed in the framework, hardware abstraction layer, and kernel order, and then the processing result (e.g., 2x image) can be passed to the camera app again through the kernel, hardware abstraction layer, and framework order.

[0007] For example, a camera app may experience slow camera zoom response because it will take the ISP at least 5 frames to process the image x frame interval (e.g. 33ms at 30fps, 100ms at 10fps) to acquire the resulting image (e.g. 165ms total delay) before the zoom change request is made.

[0008] Moreover, in low-light environments (e.g. night environments) where FPS drops, the frame interval (e.g. 100ms) is increased due to factors such as exposure time adjustment, resulting in slower zoom responsiveness.

[0009] Various embodiments propose methods and devices that can improve responsiveness to camera zoom performance.

[0010] However, the problem to be solved in this disclosure is not limited to the problem mentioned above, and may be expanded in various ways without departing from the spirit and scope of this disclosure.

[0011] An electronic device according to one embodiment may include a display. The electronic device may include an image sensor. The electronic device may include an image signal processor that processes frames transmitted from the image sensor. The electronic device may include a scaler disposed between an output terminal of the image signal processor and an input terminal of the display. The electronic device may include a processor operatively connected to the image signal processor and the scaler, and a memory that stores instructions executable by the processor. The instructions according to one embodiment may cause the electronic device to obtain a first frame at a first zoom ratio from the image sensor when a camera function is executed. The instructions according to one embodiment may control the processor to output the first frame at the first zoom ratio processed through the image signal processor to the display, while the second frame to the Nth frame are image-processed at the first zoom ratio through the image signal processor. In one embodiment, the instructions may cause the processor to request the image signal processor to process the N+1-th frame based on a user input requesting display of a second zoom factor different from the first zoom factor at the time of acquiring the N+1-th frame, and to transmit the second zoom factor request at the time of acquiring the N+1-th frame to the scaler. In one embodiment, the instructions may cause the scaler to scale a second frame processed by the image signal processor at the first zoom factor at the time of acquiring the N+1-th frame and transmit the scaled frame to the display at the second zoom factor requested at the time of acquiring the N+1-th frame, in a second frame output order.

[0012] An electronic device according to one embodiment may control the processor to perform image processing of second to N-th frames at the first zoom factor through an image signal processor while the processor outputs a first frame at a first zoom factor acquired from an image sensor to a display when executing a camera function. The processor according to one embodiment may control the image signal processor to request processing of the N+1-th frame based on a user input requesting display of a second zoom factor different from the first zoom factor at the time of acquiring the N+1-th frame, and to transmit the second zoom factor request at the time of acquiring the N+1-th frame to a scaler disposed between an image signal processor output terminal and a display input terminal. The processor according to one embodiment may control the scaler to scale a second frame processed at the first zoom factor by the image signal processor to the requested second zoom factor at the time of acquiring the N+1-th frame and transmit the scaled frame to the display in the order of outputting the second frame.

[0013] A method for improving camera zoom performance of an electronic device according to one embodiment may include, when a camera function is executed, an operation of acquiring a first frame at a first zoom ratio from an image sensor, an operation of controlling second to N-th frames to be image-processed at the first zoom ratio through the image signal processor while outputting the first frame at the first zoom ratio processed through an image signal processor to the display, an operation of receiving a user input requesting display of a second zoom ratio different from the first zoom ratio at the time of acquiring the N+1-th frame, an operation of requesting processing of the N+1-th frame to the image signal processor and transmitting a request for the second zoom ratio at the time of acquiring the N+1-th frame to a scaler disposed between an output terminal of the image signal processor and a display input terminal, and an operation of causing the scaler to scale the second frame processed at the first zoom ratio by the image signal processor to the requested second zoom ratio at the time of the N+1-th frame and output the scaled frame to the display in a second frame output order.

[0014] An electronic device according to one embodiment may include a computer-readable recording medium having recorded thereon a program for implementing a method for improving camera zoom performance.

[0015] Electronic devices, methods, and recording media according to various embodiments can improve zoom responsiveness by reducing pipeline delay time of the ISP by prioritizing processing a target zoom request of a camera app over an ISP output request through a scaler located at an ISP output end (e.g., an end end) based on a zoom request of a camera app.

[0016] In addition, various effects may be provided, either directly or indirectly, through this document.

[0017] FIG. 1 is a block diagram of an electronic device within a network environment according to one embodiment.

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

[0019] FIGS. 3A and 3B are drawings for explaining the pipeline delay of an image signal processor according to a comparative example.

[0020] FIG. 4 is a diagram illustrating a configuration of an electronic device including an image sensor according to various embodiments.

[0021] FIG. 5 is a diagram schematically illustrating the configuration of a camera program module of an electronic device according to one embodiment.

[0022] FIG. 6 illustrates a method for improving camera zoom-in performance of an electronic device according to one embodiment.

[0023] FIG. 7 illustrates an example of frame processing operations upon a camera zoom-in request of an electronic device according to one embodiment.

[0024] FIG. 8 illustrates a method for improving camera zoom-in performance of an electronic device according to one embodiment.

[0025] FIGS. 9A to 9C illustrate examples of frame processing operations upon a camera zoom-in request of an electronic device according to one embodiment.

[0026] FIG. 10 illustrates a method for improving camera zoom-out performance of an electronic device according to one embodiment.

[0027] Fig. 11 is a drawing for explaining an image margin ratio according to one embodiment.

[0028] FIG. 12 illustrates an example of frame processing operations when a camera zoom out request is made in an electronic device according to one embodiment.

[0029] FIG. 13 illustrates a method for improving camera zoom-out performance of an electronic device according to one embodiment.

[0030] FIG. 14 illustrates an example of frame processing operations when a camera zoom out request is made in an electronic device according to one embodiment.

[0031] FIG. 15 illustrates a method for improving camera zoom-out performance of an electronic device according to one embodiment.

[0032] FIGS. 16A to 16C illustrate examples of frame processing operations upon a camera zoom out request of an electronic device according to one embodiment.

[0033] FIG. 17 illustrates a method for improving camera zoom in-out performance of an electronic device according to one embodiment.

[0034] Electronic devices according to the 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 disclosed in this document are not limited to the aforementioned devices.

[0035] FIG. 1 is a block diagram of an electronic device within a network environment according to one embodiment.

[0036] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to 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)).

[0037] 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 calculations. According to one embodiment, as at least a part of the data processing or calculations, 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 a secondary 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 therewith. For example, if the electronic device (101) includes a main processor (121) and a secondary processor (123), the secondary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a specified function. The secondary processor (123) may be implemented separately from the main processor (121) or as a part thereof.

[0038] 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, in the electronic device (101) itself where artificial intelligence is performed, 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.

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

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

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

[0042] 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.

[0043] 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. In 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.

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

[0045] 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.

[0046] 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.

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

[0048] A 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. In one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

[0049] 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.

[0050] 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, for example, as at least a part of a power management integrated circuit (PMIC).

[0051] 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.

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

[0053] 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.

[0054] 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 by, for example, the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device through the selected at least one antenna. 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).

[0055] In one embodiment, 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.

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

[0057] 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 another 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.

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

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

[0060] The lens assembly (210) can collect light emitted from a subject that is the target of an image capture. The lens assembly (210) can include one or more lenses. According to one embodiment, the camera module (180) can include a plurality of lens assemblies (210). In this case, the camera module (180) can 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. The lens assembly (210) can include, for example, a wide-angle lens or a telephoto lens.

[0061] 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, for example, 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.

[0062] 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 read-out timing, etc.) in response to 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.

[0063] In one embodiment, the image stabilizer (240) may 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) may be implemented as, for example, an optical image stabilizer.

[0064] 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.

[0065] 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, readout timing control, etc.) for at least one of the components included in the camera module (180) (e.g., image sensor (230)). The 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)).

[0066] According to one embodiment, the image signal processor (260) may be configured as at least a part of the processor (120), or may be configured as a separate processor that operates independently of the processor (120). When 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) by the processor (120) as is or after undergoing additional image processing.

[0067] 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.

[0068] FIGS. 3A and 3B are drawings for explaining the pipeline delay of an image signal processor according to a comparative example.

[0069] Referring to FIGS. 3A and 3B, a camera device (e.g., a camera application) according to a comparative embodiment (or a prior art) can sequentially process and output consecutive frames acquired from an image sensor (315) through a camera program module according to an input order (e.g., a frame number).

[0070] The input data of the image signal processor (hereinafter referred to as ISP) (310) is an input image (e.g., a frame image) acquired from an image sensor (315), and the output data of the ISP (310) may be a result image (e.g., a preview image, a display image) output to a display. FIGS. 3A and 3B illustrate frame processing sequences when a user requests to change the camera zoom function from a 1.0 zoom ratio to a 2.0 zoom ratio. For example, <301> As illustrated, the camera application (hereinafter, “app”) can output the first frame (321) with a zoom ratio of 1.0 to the display as a result image (e.g., preview image, display image). The result image (e.g., preview image, display image) may mean an image in which the first frame (321) transmitted from the image sensor (315) is processed based on the ISP (310) pipeline structure, and then the result data is transmitted to the camera app.

[0071] While the first frame (321) is output to the display through the camera app, the ISP (310) can sequentially process the frames transmitted from the image sensor (315) according to the frame number (e.g., the second frame (322), the third frame (323), the fourth frame (324), the fifth frame (325), and the sixth frame (326)). When the camera app receives a user input requesting a camera function (e.g., a change in zoom ratio), the camera app can transmit an app zoom request based on the user input to the camera hardware abstraction layer through the framework. The app zoom request can reach the target zoom ratio (e.g., x2.0) according to a step request (e.g., x1.0 → x1.2 → x1.4 → x1.7 → x2.0) in units of frame input. The app zoom request can be applied to the ISP (310) pipeline input stage (e.g., the front stage).

[0072] For example, a camera device may receive an input requesting a change to a zoom ratio of 2.0 at the time of inputting the 7th frame (327). The ISP (310) may perform a processing procedure for changing the zoom ratio to 2.0 starting from the 7th frame (327) number.

[0073] According to a comparative example, the camera app may transmit an app zoom request to the ISP (310) included in the hardware abstraction layer in steps of 1.0 zoom factor → 1.2 zoom factor → 1.4 zoom factor → 1.7 zoom factor → 2.0 zoom factor to change to a target zoom factor (e.g., 2.0x).

[0074] for example, <302> As illustrated, the seventh frame (327) may be requested to be processed by the ISP at a zoom ratio of 1.2. The seventh frame (327) input from the image sensor may be processed and output as an image having a magnification size of 1.2 by a scaler (e.g., an internal scaler) function block included in the ISP (310) pipeline. Thereafter, the eighth frame (328) may be requested to the ISP (310) to be processed at a zoom ratio of 1.4, and the ninth frame (329) may be requested to the ISP (310) to be processed at a zoom ratio of 1.7, in order of the frame number. Next, the tenth frame (330) may be requested to the ISP (310) to be processed at a zoom ratio of 2.0, and the eleventh frame (331) may be requested to the ISP (310) to be processed at a zoom ratio of 2.0.

[0075] <303> and <304> As illustrated, the camera app may forward an app zoom request to the hardware abstraction layer until an image having a size of a target zoom ratio of 2.0 is received by the camera app. The camera app may recognize that the target zoom ratio has been reached at the time of receiving the 10th frame (330). At the time of receiving the 10th frame (330), the ISP (310) may be processing images through the ISP pipeline structure for the 11th frame (331), the 12th frame (332), the 13th frame (333), the 14th frame (334), and the 15th frame (335). The camera app may not forward an app zoom request for a change in zoom ratio to the ISP (310) starting from the 16th frame (366), which is the time when the 10th frame (330), which is an image having a target zoom ratio of 2.0, is received.

[0076] As described above, according to the comparative example, there is an issue in which a delay of approximately 5 frames occurs between the time of the zoom change request when the camera device requests a change from a 1.0x zoom ratio to a 2.0x zoom ratio and the time until the camera app receives the resulting image processed by the request.

[0077] Below, various embodiments will be described regarding electronic devices and methods that can improve camera zoom performance in electronic devices.

[0078] FIG. 4 is a diagram illustrating a configuration of an electronic device including an image sensor according to various embodiments.

[0079] Referring to FIG. 4, an electronic device according to one embodiment (e.g., an electronic device (101) of FIG. 1) may include an image sensor (410) (e.g., a camera module (180) of FIG. 1), a processor (420) (e.g., a processor (120) of FIG. 1), a memory (430) (e.g., a memory (130) of FIG. 1), a display (440) (e.g., a display module (160) of FIG. 1), and an input unit (450) (e.g., an input module (160) of FIG. 1). The electronic device (101) of FIG. 4 may further include at least some of the configurations and / or functions of the electronic device (1101) of FIG. 1.

[0080] According to one embodiment, the image sensor (410) (e.g., the image sensor (230) of FIG. 2) may be a component included in the camera module (180) of FIGS. 1 and 2. The image sensor (410) may convert an optical signal collected by an optical unit into an electrical signal and transmit the same to the processor (420). For example, the image sensor (410) may generate an input image (e.g., a frame image) based on the optical signal and transmit the input image to the processor (420). The input image may include Bayer pattern data or RGB data. For example, the image sensor (410) may include a pixel array and a color filter array (e.g., Bayer CFA, RGB filter), and each pixel may include a photodetector for detecting light. The image sensor (410) may generate a single input image including color information (e.g., Bayer pattern data, RGB data) regarding the intensity of light received through the color filter array.

[0081] According to one embodiment, the image sensor (410) may include, for example, a charge coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.

[0082] According to one embodiment, the image sensor (410) may include at least one sensor. If there are multiple image sensors (410), they may be implemented to have different functions, performances, or characteristics. For example, the multiple image sensors (410) may include multiple lenses having different fields of view.

[0083] According to one embodiment, the display (440) may include the configuration of the display module (160) of FIG. 1. The display (440) may display an image acquired from the image sensor (410) based on data processed by the processor (420). For example, the processor (420) may activate the camera module (180) of FIG. 1 and / or the image sensor (410) in performing a function related to the camera module or a camera application, and may display a result image (e.g., a preview image, a display image) processed by the processor (420) (e.g., an image signal processor) on the display (440). In response to a zoom-in or zoom-out function request, the processor (420) may display an image displayed on the display (440) that is at least partially enlarged or reduced in size.

[0084] According to one embodiment, the display (440) may be configured as an integral unit including a touch panel (not shown), such as a touchscreen display.

[0085] According to one embodiment, the input unit (450) may include the configuration of the input module (150) of FIG. 1. For example, the input unit (450) may be a touch panel, which is a part of a touchscreen display. The input unit (450) may receive input and data for controlling the operation of the electronic device. The input unit (450) may receive a camera operation command, a user input requesting to take a photo or video, or an input requesting to change an image zoom function (e.g., zoom in, zoom out).

[0086] According to one embodiment, the memory (430) can store various instructions that can be performed by the processor (420). The instructions can include arithmetic and logical operations, data movement, or control commands such as input / output that can be recognized by the processor (420). The memory (430) can temporarily or permanently store various data, including volatile memory (e.g., volatile memory (132) of FIG. 1) and non-volatile memory (e.g., non-volatile memory (134) of FIG. 1).

[0087] According to one embodiment, the processor (420) may be operatively, functionally, and / or electrically connected to each component of the electronic device (101) and may be configured to perform operations or data processing related to control and / or communication of each component. The processor (420) may include at least a portion of the configuration and / or functions of the processor (120) of FIG. 1 and / or the image signal processor (210) of FIG. 2. Operations performed by the processor (420) may be stored in the memory (430) and, when executed, may be executed by instructions that cause the processor (420) to operate.

[0088] According to one embodiment, the processor (420) may control at least one other component related to the function of the electronic device (101) and perform data processing or calculations for image processing. For example, the processor (420) may be, but is not limited to, an image signal processor (ISP, hereinafter referred to as an ISP), and may be an application processor.

[0089] Hereinafter, there will be no limitation to the operation and data processing functions that the processor (420) can implement on the electronic device (101), but a series of operations related to the camera zoom function will be described.

[0090] According to one embodiment, the processor (420) may enable a camera module or a camera application (hereinafter, “app”) in response to a camera service execution request. The processor (420) may receive input images acquired from an image sensor and provide processed images to the camera app.

[0091] The processor (420) can perform image processing on an input image by passing it through an ISP pipeline. The ISP pipeline may include at least one of functional blocks that process a specific part of each pipeline, for example, auto focus, auto exposure, auto white balance, color adjustment, color conversion, noise reduction, sharpening, image enhancement (e.g., high-dynamic-range), image scaling (e.g., scaler), face detection, and encoding. The ISP pipeline may have a different structure depending on the design, and in addition to the functional blocks described above, various functional blocks related to image processing may be added.

[0092] An electronic device (101) according to one embodiment includes a display (e.g., a display module (160) of FIG. 1, a display (440) of FIG. 4), an image sensor (e.g., an image sensor (230) of FIG. 2, an image sensor (410) of FIG. 4), an image sensor (540) of FIG. 5), an image signal processor (e.g., an image signal processor (260) of FIG. 2, an ISP (550) of FIG. 5) for processing frames transmitted from the image sensor), a scaler (e.g., a scaler (560) of FIG. 5) disposed between an output terminal of the image pipeline and an input terminal of the display), a processor (e.g., a processor (120) of FIG. 1, a processor (420) of FIG. 4) operatively connected to the image signal processor and the scaler, and the memory (e.g., a memory (130) of FIG. 1, a memory (250) of FIG. 2, a memory (430) of FIG. 4), wherein the memory (430) executes, when a camera function is executed, the The processor (420) may include instructions configured to control the second frame to the N-th frame to be image-processed at the first zoom factor through the image signal processor (550) while the processor (420) acquires the first frame at the first zoom factor from the image sensor (540), and outputs the first frame at the first zoom factor processed through the image signal processor (550) to the display (440), and to request the image signal processor (550) to process the N+1-th frame based on a user input requesting display of a second zoom factor different from the first zoom factor at the time of acquiring the N+1-th frame, and to transmit the second zoom factor request at the time of acquiring the N+1-th frame to the scaler (560), and to cause the scaler to scale the second frame processed at the first zoom factor by the image signal processor (550) to the requested second zoom factor at the time of acquiring the N+1-th frame and transmit the scaled frame to the display (440) in the second frame output order.

[0093] The memory (430) according to one embodiment may further include instructions configured to cause the scaler (560) to ignore the zoom ratio of the frame output from the image signal processor (550) and to process the second zoom ratio request transmitted from the processor (420) with priority.

[0094] The memory (430) according to one embodiment may further include instructions configured to cause the processor (420) to request the scaler (560) or the image signal processor (550) to divide an app zoom request from the first zoom ratio to the second zoom ratio into at least two zoom ratio change steps.

[0095] According to one embodiment, the memory (430) may further include instructions configured to cause the processor (420) to request processing with a zoom ratio corresponding to the app zoom request from the scaler (560) at the time of the second frame output, and simultaneously or in parallel, to request processing with a zoom ratio according to the app zoom request from the image signal processor (550) at the time of the N+1 frame input.

[0096] According to one embodiment, when the user input includes a first touch gesture requesting zoom in, the second zoom factor may be set to a zoom factor of a larger size than the first zoom factor.

[0097] According to one embodiment, when the user input includes a second touch gesture requesting zoom out, the second zoom factor may be set to a zoom factor of a reduced size than the first zoom factor.

[0098] In one embodiment, the user input includes a button input or progress bar input requesting zoom in, and the memory (430) may further include instructions for the processor (420) to set the second zoom factor to a target zoom factor, calculate an expected predicted zoom factor step from the first zoom factor to the second zoom factor separately from the zoom factor changing step, and set the zoom factor according to the predicted zoom factor step to be applied to the scaler (560).

[0099] The memory (430) according to one embodiment may further include an instruction for controlling the processor (420) to terminate the operation of the scaler (560) when the zoom ratio of the frame processed by the image signal processor (550) and the zoom ratio of the app zoom request transmitted to the scaler (560) are the same.

[0100] The memory (430) according to one embodiment may further include instructions for controlling the image signal processor (550) to process an image at a third zoom ratio by applying a margin ratio to the first zoom ratio output to the display (440).

[0101] The memory (430) according to one embodiment may further include instructions configured to control the image signal processor (550) to calculate a zoom speed through a difference between the first zoom magnification and the second zoom magnification, and to process an image at a fourth zoom magnification with the margin ratio increased when the zoom speed is close to the third zoom magnification, and to further add a zoom magnification change step between the first zoom magnification and the second zoom magnification.

[0102] According to one embodiment, the scaler (560) may be set to crop and output an image of a frame output from the image signal processor (550) according to a zoom ratio request.

[0103] FIG. 5 is a diagram schematically illustrating the configuration of a camera program module of an electronic device according to one embodiment.

[0104] Referring to FIG. 5, a camera program module of an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 4) according to one embodiment may operate under the control of the processor (420) of FIG. 4. The camera program module may be divided into an application layer, a hardware abstraction layer, and a kernel layer. Although not shown in the drawing, the camera program module may further include a framework layer. The framework calls a camera-related library at runtime, and the library may be connected to the hardware abstraction layer through binder communication to operate a camera application (hereinafter, “app”) or a camera device.

[0105] According to one embodiment, an application (e.g., a camera app) (500) may be an application at the top level of a camera program module and may perform a role of executing (opening) and managing a camera (e.g., a camera module (180) of FIGS. 1 and 2) of an electronic device (101) to use the camera. For example, a camera app may refer to application software that receives a user request related to a camera function and displays a result according to the input request through a display.

[0106] According to one embodiment, the hardware abstraction layer is an abstraction layer of the camera interface, and may perform the role of receiving a user request from the application (500), transmitting it to the driver (502), and transmitting the resulting data back to the application (500).

[0107] For example, the hardware abstraction layer may include a camera hardware control module, such as a receiver (510), a transmitter (530), a zoom controller (520), an image signal processor (hereinafter referred to as an ISP) (550), and a scaler (560).

[0108] According to one embodiment, the receiving unit (510) may perform a role of receiving a request (e.g., an app zoom request signal) from an application (500) at a hardware abstraction layer. The receiving unit (510) may be operatively connected to a zoom ratio calculation unit (521) and / or an ISP (550). The transmitting unit (530) may perform a role of transmitting a result image (e.g., a preview image, a display image) processed through the ISP (550) by being transmitted from a driver (502) of a kernel layer (e.g., a camera driver) to the application (500). The transmitting unit (530) may be operatively connected to a scaler (560) and / or an ISP (550).

[0109] The zoom controller (520) may include a zoom ratio calculation unit (521), an ISP control unit (522), and a scaler control unit (523), but this is only an example and is not limited thereto. The zoom controller (520) may perform a function of calculating a zoom ratio step, a function of controlling an ISP, and a function of controlling a scaler in relation to a camera zoom function.

[0110] According to one embodiment, the ISP (550) may acquire frames as input data from the image sensor (540) and perform image processing on the frames through an image pipeline according to the frame number. The input data of the ISP (550) may be frames acquired from the image sensor (540) (e.g., input images), and the output data of the ISP (550) may be image-processed frames (e.g., result images, or preview images / display images).

[0111] According to one embodiment, the ISP control unit (522) may control the overall operation of the ISP (550) under the control of a processor (e.g., the processor (420) of FIG. 4). The ISP control unit (522) may perform a role of controlling functional blocks included in the ISP pipeline structure. The functional blocks may include, but are not limited to, at least one of auto focus, auto exposure, auto white balance, color adjustment, color conversion, noise reduction, sharpening, image enhancement (e.g., high-dynamic-range), image scaling (e.g., scaler), face detection, and encoding, for example.

[0112] According to one embodiment, the ISP control unit (522) may perform the role of transmitting an app zoom request corresponding to a user input transmitted from an application (500) to the ISP input terminal and / or the role of transmitting a future zoom request expected from the zoom ratio calculation unit (521) to the input terminal of the ISP (550).

[0113] According to one embodiment, the zoom factor calculation unit (521) may perform a function of calculating a zoom step (e.g., an app factor change step) according to an expected future zoom factor through an algorithm in relation to a zoom in or zoom out function, separately from a zoom step (e.g., an app factor change step) according to an app zoom request in the application (500). The zoom factor calculation unit (521) may be operatively connected to a scaler control unit and / or a receiving unit.

[0114] According to one embodiment, the scaler (560) may be connected to the output terminal of the ISP (550) or may be located at the final end of the image pipeline within the ISP (550). The scaler (560) may be operatively connected to the scaler control unit (523) of the zoom controller (520). The scaler (560) may perform a function of scaling input images into an image size for display on a display or an image size for storage.

[0115] According to one embodiment, the scaler (560) may ignore the zoom ratio of the image requested from the ISP (550) and prioritize the zoom ratio requested from the scaler control unit (523) to scale (e.g., crop) the image and transmit it to the transmitter (530).

[0116] According to one embodiment, the scaler control unit (523) can control the operation of the scaler (560) located at the end of the ISP (550). The scaler control unit (523) can transmit information about a target zoom ratio corresponding to a user input transmitted from the application (500) to the scaler (560).

[0117] The scaler control unit (523) may perform a function of controlling the scaler (560) to scale (e.g., crop) a frame output from the ISP (550) to a predicted zoom ratio calculated by the zoom ratio calculation unit (521) or a target zoom ratio transmitted from the application (500).

[0118] FIG. 6 illustrates a method for improving camera zoom-in performance of an electronic device according to one embodiment.

[0119] Referring to FIG. 6, a processor (e.g., the processor (120) of FIG. 1, the processor (420) of FIG. 4) of an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 4 and FIG. 5) according to one embodiment may, in operation 610, output a first frame of a magnification to a display (e.g., the display module (160) of FIG. 1, (e.g., the display (440) of FIG. 4)) when a camera module (e.g., the camera module (180) of FIG. 1 and FIG. 2) or a camera application is executed. The first frame output to the display is a result image processed through the image signal processor (260) of FIG. 2 and / or the image signal processor (550) of FIG. 5 (hereinafter, referred to as ISP) at the request of the camera app, and may mean a preview image or a display image.

[0120] In operation 620, the processor (420) can control the ISP (550) to process the second frame to the Nth frame at the a magnification while the first frame is output through the display (440).

[0121] In operation 630, the processor (420) may receive a user input requesting display of a zoom factor b that is enlarged more than a zoom factor a by a touch gesture (e.g., pinch in) at the N+1 frame input time.

[0122] For example, if the a zoom factor is 1.0 zoom, the b zoom factor may be 2.0 zoom, but this is only an example.

[0123] In operation 640, the processor (420) may request the ISP (550) to process the N+1-th frame acquired from the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (410) of FIG. 4, and the image sensor (540) of FIG. 5), and may request the scaler (e.g., the scaler (560) of FIG. 5) to process the b-th magnification at the time of inputting the N+1-th frame.

[0124] In operation 650, the processor (420) can control the scaler (560) to ignore the zoom ratio output of the second frame output from the ISP (550) and scale (e.g., crop) the second frame output from the ISP (550) to the b-th zoom ratio at the time of the N+1-th frame and transmit it to the display.

[0125] In operation 660, the processor (420) can control to output the image scaled at the requested b-th zoom ratio at the N+1-th frame to the display in the second frame number order.

[0126] FIG. 7 illustrates an example of frame processing operations upon a camera zoom-in request of an electronic device according to one embodiment.

[0127] Referring to FIG. 7, a processor (e.g., the processor (120) of FIG. 1, the processor (420) of FIG. 4) of an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 4 and FIG. 5) according to one embodiment may control a frame processed through an ISP (e.g., the image signal processor (260) of FIG. 2, the ISP (550) of FIG. 5) to be output as a result image through a camera app when a camera module (e.g., the camera module (180) of FIG. 1 and FIG. 2) or a camera application is executed. The ISP (550) may process input frames in frame number order and output the image-processed frames to a scaler (560) or a display (not shown) located behind the ISP (550) (e.g., an output end, an end).

[0128] For example, <701> As illustrated, while the first frame (711) with a 1.0 zoom ratio is output to the display through the camera app, the ISP (550) may be processing the second frame (712), the third frame (713), the fourth frame (714), the fifth frame (715), and the sixth frame (716) in that order based on the 1.0 zoom ratio. After processing the second frame (712), the third frame (713), the fourth frame (714), the fifth frame (715), and the sixth frame (716) with a 1.0 zoom ratio, the ISP (550) may output a frame with a size of 1.0 zoom ratio to the scaler (560).

[0129] The processor (420) may receive a user input (e.g., a touch gesture such as a zoom-in gesture or a pinch-out gesture) requesting a second zoom ratio (e.g., x2.0) from a first zoom ratio (e.g., x1.0) at the time of inputting the 7th frame (717). The camera app included in the application layer may transmit an app zoom request to the ISP (550) located in the hardware abstraction layer in response to the target zoom ratio (e.g., x2.0) requested by the user.

[0130] According to one embodiment, the processor (420) may request a target zoom factor (e.g., x2.0) from the scaler (560) and control the scaler (560) to ignore the output factor of the ISP (550) and process the target zoom factor as a priority.

[0131] For the second frame (712), a second zoom ratio request (e.g., x2.0) when the seventh frame (717) is input can be transmitted to the scaler (560).

[0132] <702> As illustrated, the scaler (560) can prioritize the app zoom request (or target zoom request) (e.g., x2.0) transmitted to the scaler (560) even if the second frame (712) is output from the ISP (550) at a size of 1.0 magnification. The scaler (560) can scale (e.g., crop) the second frame (712) at a size of 1.0 magnification, which is image-processed by the ISP (550), to a size of 2.0 magnification and output it to the camera app.

[0133] The camera app can output the second frame (712) scaled to the app zoom request (or target zoom request) (e.g., x2.0) magnification at the time of inputting the seventh frame (717) in the display order of the second frame (712) number through the display. The processor (420) can ignore the output zoom magnification of the ISP (550) from the third frame (713) number and control the scaler (560) so that the app zoom request (or target zoom request) (e.g., x2.0) transmitted to the scaler (560) is applied.

[0134] In another embodiment, the zoom factor change processing may be configured such that the app zoom request signal reaches the target zoom factor (e.g., x2.0) in steps of, for example, x1.0 → x1.2 → x1.4 → x1.7 → x2.0 for a smoothing effect.

[0135] For example, when the target zoom ratio is changed to x 2.0, the processor (420) can set the target zoom ratio to x 2.0 and control the scaler (560) and the ISP (550) so that the app zoom request signal is applied from the 1.0 zoom ratio to the 1.2 zoom ratio → the 1.4 zoom ratio → the 1.7 zoom ratio → the 2.0 zoom ratio.

[0136] When the processor (420) receives a request to change the zoom from 1.0x to 2.0x at the time of inputting the 7th frame (717), the processor (420) may independently request the ISP (550) to process the 7th frame (717) at a zoom ratio of 1.2, the 8th frame (178) at a zoom ratio of 1.4, the 9th frame (not shown) at a zoom ratio of 1.7, and the 10th frame (not shown) at a zoom ratio of 2.0, while transmitting the app zoom request to the scaler (560). In this case, the ISP (550) may output frames having a zoom ratio of 1.0 from the 3rd frame (713) to the 6th frame (716), and the 7th frame (717) may be output at a zoom ratio of 1.2. The 8th frame (718) may be output at a zoom ratio of 1.4, the 9th frame (not shown) may be output at a zoom ratio of 1.7, and the 10th frame (not shown) may be output at a zoom ratio of 2.0.

[0137] The processor (420) may, separately from the frame request processing for the ISP (550), request an app zoom request (or target zoom request) (e.g., x2.0) to the scaler (560) in stages (e.g., x1.2 → x1.4 → x1.7 → x2.0) starting from the second frame (712) output order.

[0138] First, since the second frame (712) transmitted to the scaler (560) is subject to the 1.2 zoom ratio request at the time of inputting the 7th frame (717), the scaler (560) can scale the second frame (712) to a 1.2x zoom ratio, not a 1.0 zoom ratio of the ISP (550), and transmit it to the camera app.

[0139] In the following order, when outputting the third frame (713), the 1.4 zoom ratio information at the time of inputting the eighth frame (718) is applied to the scaler (560), so that the third frame (713) can be transmitted to the camera app as a result image with a 1.4 zoom ratio.

[0140] When the 4th frame (714) is output, the 1.7 zoom ratio information when the 9th frame is input can be applied to the scaler (560), and when the 5th frame (715) is output, the 2.0 zoom ratio information when the 10th frame is input can be applied to the scaler (560). The camera app can recognize that the target zoom ratio (e.g., x2.0) has been reached in the output order of the 5th frame (715). When compared with FIGS. 3A and 3B described as a comparative example, in the case of FIGS. 3A and 3B, the image of the target zoom ratio was output in the 10th frame, but in the example of FIG. 7, the target zoom ratio was output in the 5th frame, so it can be confirmed that the zoom responsiveness is improved.

[0141] FIG. 8 illustrates a method for improving camera zoom-in performance of an electronic device according to one embodiment.

[0142] Referring to FIG. 8, an electronic device according to an embodiment (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIGS. 4 and 5) may support a function of reducing ISP delay by reducing the zoom change step by predicting a zoom step (e.g., a predicted zoom change step) according to an expected future zoom ratio corresponding to a target zoom ratio separately from a zoom step (e.g., an app zoom change step) according to an app zoom request according to a setting. For example, if the zoom ratio can be changed by a button input or by adjusting a scroll bar or progress bar according to the characteristics of a camera application, the zoom step according to the future zoom ratio can be predicted, calculated, or computed.

[0143] In operation 810, a processor of an electronic device (101) (e.g., processor (120) of FIG. 1, processor (420) of FIG. 4) may receive a zoom request signal in response to a user input requesting a zoom-in change when a camera module (e.g., camera module (180) of FIGS. 1 and 2) or a camera application is executed. The zoom request signal may include target zoom ratio information according to a user request.

[0144] The processor (420) can transmit an app zoom request according to target zoom ratio information to the hardware abstraction layer and control the ISP (e.g., ISP (550) of FIG. 5) so that the zoom ratio is processed on a frame-by-frame basis.

[0145] In operation 820, the processor (420) can calculate a zoom ratio and a total zoom step to be processed through the ISP (550).

[0146] The zoom factor can be applied to the input terminal of the ISP (550) on a frame-by-frame basis. The processor (420) can set an app zoom request for each frame number in stages until the ISP (550) reaches the target zoom factor. For example, if the zoom factor of the current first frame is 1.0 and the target zoom factor is 2.0, the processor can be set to process the image through the ISP (550) in a stepwise manner from a zoom factor of 1.0 to a zoom factor of 1.2 → a zoom factor of 1.4 → a zoom factor of 1.7 → a zoom factor of 2.0. When a user input for changing to a zoom factor of 2.0 is received at the time of inputting the 7th frame, the processor (420) can request the ISP (550) to process the 7th frame at a zoom factor of 1.2. The processor (420) can request processing of the third frame at a 1.4 magnification rate to the ISP (550), the fourth frame at a 1.7 magnification rate, and the fifth frame at a 2.0 magnification rate.

[0147] The total zoom step may refer to the number of future zoom ratios (e.g., predicted zoom steps) predicted by the zoom ratio calculation unit (e.g., the zoom ratio calculation unit (521) of FIG. 5) until the target zoom ratio is reached. The predicted zoom step may be required in the process for a natural smoothing effect for the zoom function.

[0148] At operation 830, the processor (420) may determine whether the total zoom step is less than the ISP (550) pipeline count.

[0149] The ISP (550) pipeline count may refer to the number of frames it takes for the ISP (550) to process an image. For example, in the example of FIG. 7, the ISP (550) pipeline count may be "5", which is the number of frames being processed by the ISP (550) between the 7th frame input point and the 1st frame output point.

[0150] In operation 840, the processor (420) may control the target zoom factor to be applied before (e.g., at the input end) the ISP (550) pipeline when the total zoom step is less than or equal to the ISP (550) pipeline count. For example, the processor (420) may control the frames input to the ISP (550) to be image-processed at the target zoom factor.

[0151] In operation 850, the processor (420) can control the scaler (560) located behind the ISP (550) pipeline (e.g., output stage) to apply a zoom factor (e.g., an expected future zoom factor) according to the zoom request, ignoring the order of the ISP (550) requests.

[0152] In one embodiment, the scaler (560) may receive image processed frames from the ISP (550) and, independently, receive zoom factor information according to a target zoom request from the processor (420). The scaler (560) may ignore the zoom factor information of the ISP (550) and scale (e.g., crop) the resulting image of the ISP (550) with the zoom factor information corresponding to the target zoom request.

[0153] Actions 840 and 580 can be performed in parallel.

[0154] In operation 870, the processor (420) may apply a zoom factor that adds one step to the ISP (550) pipeline count zoom factor in front of the ISP (550) pipeline if the total zoom step is greater than the ISP pipeline count.

[0155] In operation 880, the processor (420) may control the scaler (560) located after the ISP (550) pipeline (e.g., output stage) to apply a zoom factor (e.g., a zoom factor that adds one step to the ISP (550) pipeline count zoom factor) ignoring the ISP request order. In this case, the processor (420) may control scaling by considering the zoom factor applied by the previous scaler (560).

[0156] In operation 860, the processor (420) can output a scaled image from the scaler (560) through operation 850 or operation 880. The scaler (560) can transmit the scaled image to the camera application, and the processor (420) can output the scaled image to the display.

[0157] FIGS. 9A to 9C illustrate examples of frame processing operations upon a camera zoom-in request of an electronic device according to one embodiment.

[0158] Referring to FIGS. 9A to 9C, a processor (e.g., processor (120) of FIG. 1, processor (420) of FIG. 4) of an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIGS. 4 and 5) according to one embodiment may support a scaler optimization function.

[0159] For example, <901> As illustrated, while the first frame (911) with a 1.0 zoom ratio is output to a display (e.g., display module (160) of FIG. 1, (e.g., display (440) of FIG. 4)) through a camera app, the ISP (550) may be processing images in the order of the second frame (912), third frame (913), fourth frame (914), fifth frame (915), and sixth frame (916) based on the 1.0 zoom ratio.

[0160] The processor (420) may receive a user input (e.g., a button input or a progress bar input) requesting a change from a first zoom ratio (e.g., a 1.0 ratio) to a second zoom ratio (e.g., a 1.4 ratio or a 2.0 ratio) at the time of inputting the 7th frame (717).

[0161] In general, when the target zoom ratio is changed to a zoom ratio of 2.0, the processor (420) can be set to apply an app zoom request to the ISP (550) in steps from a zoom ratio of 1.0 to a zoom ratio of 1.2 → a zoom ratio of 1.4 → a zoom ratio of 1.7 → a zoom ratio of 2.0.

[0162] In order to minimize the step of the target zoom ratio transmitted from the camera app, the processor (420) may newly set a predicted zoom ratio step (e.g., predicted zoom step) applied to the scaler (560) of the hardware abstraction layer in addition to changing the step of the app zoom request for the app request. For example, the processor (420) may calculate a predicted zoom step of 1.0 zoom ratio → 1.2 zoom ratio → 1.4 zoom ratio → 1.7 zoom ratio → 2.0 zoom ratio (5 steps in total) according to the app zoom request, and control the predicted zoom step to be applied to the scaler (560) located behind the ISP (550).

[0163] At this time, the processor (420) can control the front end (e.g., input end) of the ISP to apply a target zoom ratio of 2.0. The processor (420) can request that the newly calculated predicted zoom ratio be applied to the scaler (560) in steps (x1.1→x1.3→x1.6→x2.0) from the time of inputting the 7th frame (917).

[0164] First, at the time of inputting the 7th frame (917) and outputting the 2nd frame (912) from the ISP (550), the processor (420) transmits a 1.1 zoom ratio request to the scaler (560), and simultaneously or independently, the ISP (550) can control the 7th frame (917) to be processed at a 2.0x zoom ratio.

[0165] <902> As illustrated, the scaler (560) can ignore the zoom ratio (1.0 ratio) of the second frame (912) image output from the ISP (550) and scale (e.g., crop) the second frame (912) output from the ISP (550) at a zoom ratio of 1.0 to a zoom ratio of 1.1 and output it.

[0166] In the following sequence, when the third frame (913) is output from the ISP (550), the processor (420) transmits a 1.3 zoom ratio request to the scaler (560), and the ISP (550) can control the eighth frame (918) to be processed at a 2.0x zoom ratio.

[0167] <903> As illustrated, the scaler (560) can ignore the zoom ratio (1.0 magnification) of the third frame (913) output from the ISP (550) and scale (e.g., crop) the third frame (913) processed by the ISP (550) to the transmitted 1.3 magnification and output it.

[0168] In the following sequence, when the 4th frame (914) is output from the ISP (550), the processor (420) can transmit a 1.6x zoom ratio request to the scaler (560) and control the 9th frame (919) transmitted to the ISP (550) to be processed at a 2.0x zoom ratio.

[0169] <904> As illustrated, the scaler (560) can ignore the zoom ratio (1.0 magnification) of the fourth frame (914) output from the ISP (550) and scale (e.g., crop) the fourth frame (914) processed by the ISP (550) to the transmitted 1.6 magnification and output it.

[0170] In the following sequence, when the fifth frame (915) is output from the ISP (550), the processor (420) can transmit a 2.0x zoom ratio request to the scaler (560) and control the 10th frame (920) transmitted to the ISP (550) to be processed at a 2.0x zoom ratio.

[0171] <905> As illustrated, the scaler (560) can ignore the zoom ratio (1.0 magnification) of the fifth frame (915) output from the ISP (550) and scale (e.g., crop) the fifth frame (915) processed by the ISP (550) to the transmitted 1.6 magnification and output it.

[0172] In the following sequence, when the 6th frame (916) is output from the ISP (550), the processor (420) can transmit 2.0 zoom ratio information to the scaler (560) and control the 11th frame (921) transmitted to the ISP (550) to be processed at a 2.0x zoom ratio.

[0173] <906> As illustrated, the scaler (560) can ignore the zoom ratio (1.0 ratio) of the sixth frame (916) output from the ISP (550) and scale (e.g., crop) the sixth frame (916) processed by the ISP (550) to the transmitted 2.0 ratio and output it. In this way, due to the prediction zoom step, it can be confirmed that the fifth frame (915) is output through the camera app at the size of the target zoom ratio (e.g., x2.0).

[0174] In the following sequence, when the 7th frame (917) is output from the ISP (550), the processor (420) can transmit 2.0x zoom ratio information to the scaler (560) and control the 12th frame (922) transmitted to the ISP (550) to be processed with a 2.0x zoom ratio. The scaler (560) can receive the 7th frame (917) from the ISP (550) with a size of 2.0x zoom ratio, which is a target zoom ratio. At this time, since the output ratio of the ISP and the target zoom ratio are the same, the operation of the scaler (560) may be unnecessary.

[0175] According to one embodiment, the processor (420) may terminate the operation of the scaler (560) to prevent unnecessary power consumption when the output magnification of the ISP (550) and the zoom magnification requested to the scaler (560) are the same as the processing result of the ISP (550), or when the camera app receives a frame with the target zoom magnification.

[0176] FIG. 10 illustrates a method for improving camera zoom-out performance of an electronic device according to one embodiment, and FIG. 11 is a drawing for explaining an image margin ratio according to one embodiment.

[0177] Referring to FIG. 10, a processor (e.g., the processor (120) of FIG. 1, the processor (420) of FIG. 4) of an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (101) of FIG. 4 and FIG. 5) according to one embodiment may, in operation 1010, output a first frame of c-th magnification to a display (e.g., the display module (160) of FIG. 1, (e.g., the display (440) of FIG. 4)) when a camera module (e.g., the camera module (180) of FIG. 1 and FIG. 2) or a camera application is executed. The first frame displayed on the display is a result image processed through an image signal processor (550) of FIG. 5 (hereinafter, referred to as an ISP) at the request of a camera app, and may mean a preview image or a display image.

[0178] According to one embodiment, the process of FIG. 10 may be applied when a zoom factor lower than the zoom factor currently displayed on the display exists. For example, the zoom factor c may be a zoom factor of 2.0.

[0179] In operation 1020, the processor (420) may be set to apply a margin factor to the ISP (550). The margin factor may be set to a zoom factor that is relatively larger than the size of the zoom factor currently displayed on the display.

[0180] In operation 1030, the processor (420) can control the ISP (550) to process the image by applying a margin rate based on the c-th magnification to the second frame to the N-th frame while the first frame is output to the display (e.g., the display (440) of FIG. 4).

[0181] For example, in Fig. 11 <1101> As shown in , when comparing the case where image data at a 1.0 magnification is saved as a frame image and the case where image data at a 1.5 magnification is saved, when a 1.2 magnification change is received as a zoom request, when an image at a 1.0 magnification is saved, a 1.2 magnification image can be created by cropping the 1.0 magnification image, but when an image at a 1.5 magnification is saved, a 1.2 magnification image cannot be created.

[0182] The processor (420) is for zoom out function, <1102> As illustrated, a margin ratio can be additionally applied based on the zoom ratio of the current frame. For example, if the current frame is displayed at a zoom ratio of 1.5, the ISP can be set to process with a margin ratio of a zoom ratio of 1.2. The ISP can process the image by cropping it at a zoom ratio of 1.2, which is larger than the zoom ratio of 1.5, and then output it to the scaler (560). After this, the scaler (560) can crop it at a zoom ratio of 1.5 and output it.

[0183] In operation 1040, the processor (420) may receive a user input requesting display of a reduced zoom ratio d lower than the zoom ratio c by a touch gesture (e.g., pinch out) at the N+1 frame input time.

[0184] For example, if the c zoom ratio is a 2.0 zoom ratio, the d zoom ratio may be a 1.4 zoom ratio, but this is only an example.

[0185] In operation 1050, the processor (420) requests the ISP (550) to process the N+1 frame captured from the image sensor (e.g., the image sensor (230) of FIG. 2, the image sensor (410) of FIG. 4, the image sensor (540) of FIG. 5), and requests the scaler (560) to process the N+1 frame at the requested d magnification.

[0186] In operation 1060, the processor (420) can control the scaler (560) to ignore the zoom ratio output of the second frame output from the ISP (550) and scale the second frame output from the ISP (550) to the requested d-th zoom ratio at the N+1-th frame and transmit it to the display.

[0187] In operation 1070, the processor (420) can control the display to output the image scaled at the requested d-th zoom ratio in the second frame number order when processing the N+1-th frame.

[0188] FIG. 12 illustrates an example of frame processing operations when a camera zoom out request is made in an electronic device according to one embodiment.

[0189] Referring to FIG. 12, a processor (e.g., processor (120) of FIG. 1, processor (420) of FIG. 4) of an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 4 and FIG. 5) according to one embodiment, <1201> As illustrated, while the first frame (1211) with a 2.0 zoom ratio is output to a display (e.g., display module (160) of FIG. 1, (e.g., display (440) of FIG. 4)) through a camera app, the ISP (550) may image-process the frames by applying a margin ratio based on a 1.0 zoom ratio. For example, the processor may set a margin ratio to the ISP so that the second frame (1212), the third frame (1213), the fourth frame (1214), the fifth frame (1215), and the sixth frame (1216) are processed in sizes with a margin ratio of 1.1, even though the app zoom request transmitted from the camera app may be a 2.0 zoom ratio.

[0190] The ISP (550) can output the second frame (1212), the third frame (1213), the fourth frame (1214), the fifth frame (1215), and the sixth frame (1216) to the scaler (560) as frames having a size of 1.1 zoom ratio.

[0191] The processor (420) may receive a user input (e.g., a touch gesture such as a zoom-in gesture or a pinch-out gesture) requesting a change from a 2.0 zoom ratio to a 1.4 zoom ratio at the input point of the 7th frame (1217). The camera app included in the application layer may transmit an app zoom request to the ISP (550) located in the hardware abstraction layer in response to the target zoom ratio (e.g., x1.4) requested by the user.

[0192] The processor (420) may request (or transmit) a target zoom ratio (e.g., a 1.4 zoom ratio) to the scaler (560), and simultaneously or independently, request the ISP (550) to process the seventh frame (1217) at a 1.4 zoom ratio. The scaler (560) may be controlled to ignore the output ratio of the ISP (550) and to process the app zoom request (or the target zoom ratio (e.g., x1.4)) with priority.

[0193] <1202> As shown in , when outputting the second frame (1213), the scaler (560) receives the second frame (1212) with a size of 1.1 zoom ratio from the ISP (550), but can output the second frame (1212) processed by the ISP (550) to a size of 1.4 ratio by scaling (e.g., cropping) and outputting it to the camera app. In the following order, target zoom ratio information when inputting the 8th frame (1218) can be requested to be processed by the scaler (560) and the ISP (550).

[0194] FIG. 13 illustrates a method for improving camera zoom-out performance of an electronic device according to one embodiment.

[0195] Referring to FIG. 13, in operation 1310, the processor of the electronic device (101) (e.g., the processor (120) of FIG. 1, the processor (420) of FIG. 4) may be set to apply a margin rate for a zoom out function in front of the ISP pipeline (e.g., the input end).

[0196] In operation 1320, the processor (420) may set a scaler (e.g., scaler (560) of FIG. 5) located behind the ISP pipeline (e.g., output stage) to crop the frame output from the ISP to a target zoom ratio (e.g., app zoom request) for a zoom out function.

[0197] In operation 1330, the processor (420) may receive a zoom request signal in response to a user input requesting zoom out when a camera module (e.g., the camera module (180) of FIGS. 1 and 2) or a camera application is executed. The zoom request signal may include target zoom ratio information according to the user request.

[0198] The processor (420) can transmit an app zoom request according to target zoom ratio information to the hardware abstraction layer and control the ISP (e.g., ISP (550) of FIG. 5) so that the zoom ratio is processed on a frame-by-frame basis.

[0199] In operation 1340, the processor (420) may calculate the zoom speed by calculating the difference between the previous zoom ratio and the current zoom ratio. In operation 1350, the processor (420) may determine whether the zoom speed is rapidly approaching or nearing the margin.

[0200] In operation 1360, the processor (420) can control the scaler (560) located behind the ISP pipeline to ignore the ISP request and apply scaling to the zoom ratio requested to the current scaler if the zoom speed does not quickly approach or close to the margin.

[0201] In operation 1370, the processor (420) can output a scaled image from the scaler (560). The scaler (560) can transmit the scaled image to the camera application, and the processor (420) can output the scaled image to the display.

[0202] In operation 1380, the processor (420) can further increase the margin rate for zooming out in front of the ISP pipeline (i.e., input stage) when the zoom speed is quickly approaching or nearing the margin, and control to reduce the zoom speed by adding a zoom rate between the previous zoom rate and the current zoom rate, and then proceed to operation 1360.

[0203] FIG. 14 illustrates an example of frame processing operations when a camera zoom out request is made in an electronic device according to one embodiment.

[0204] Referring to FIG. 14, an electronic device (101) according to one embodiment may support a function to prevent a phenomenon in which processing for zooming out stops by newly generating an expected future zoom step using a current zoom factor, a previous zoom factor, and a margin zoom factor when a future zoom factor can be predicted, such as in pinch zoom. For example, if the zoom factor can be changed by a button input or by adjusting a scroll bar or progress bar depending on the characteristics of a camera application, a zoom step according to the future zoom factor can be predicted, calculated, or calculated.

[0205] For example, if the current zoom ratio for the second frame (1412) is 2.0 and the app zoom request transmitted to the scaler (560) in the eighth frame (1418) is a zoom ratio of 1.3, the margin ratio for zooming out can be set to a ratio of 1.4.

[0206] The third frame (1413), fourth frame (1414), fifth frame (1415), and sixth frame (1416) processed by the ISP (550) can be transmitted to the scaler (560) as output images having a size with a margin ratio of 1.4 zoom ratio. However, the app zoom request requested by the camera app is a 1.3 zoom ratio, so it is smaller than the size currently being output from the ISP (550), and thus cannot be immediately applied to scaling at a 1.3 zoom ratio.

[0207] The processor (420) checks the current zoom ratio, previous zoom ratio, and margin zoom ratio, and if the ISP (550) processing speed is fast or exceeds the zoom-out margin ratio in relation to the zoom-out function, the processor (420) can change the zoom margin ratio again, or change the ISP (550) to process images with the maximum margin (e.g., 1.0 zoom ratio). For example, the processor (420) can set the ISP (550) to process images with a zoom margin ratio of 1.0 starting from the 7th frame (1417).

[0208] In the following sequence, the processor (420) may additionally transmit a zoom factor of 1.8, which is greater than a zoom factor of 1.3, to the scaler (560) at the time of inputting the 8th frame (1418), and the processor (420) may generate a zoom change step and transmit it to the scaler (560) until the output image transmitted from the ISP (550) reaches a zoom margin ratio of 1.3. For example, the processor (420) may transmit a zoom factor of 1.8 to the scaler (560) at the time of outputting the third frame (1413) so as to ignore the output of the third frame (1413) requested from the ISP (550). In the following order, the processor (420) can be changed to transmit a zoom factor of 1.7 to the scaler (560) at the time of outputting the fourth frame (1414), a zoom factor of 1.5 at the time of outputting the fifth frame (1415), a zoom factor of 1.4 at the time of outputting the sixth frame (1416), and a zoom factor of 1.3 at the time of outputting the seventh frame (1417).

[0209] FIG. 15 illustrates a method for improving camera zoom-out performance of an electronic device according to one embodiment.

[0210] Referring to FIG. 15, in operation 1310, the processor of the electronic device (101) (e.g., the processor (120) of FIG. 1, the processor (420) of FIG. 4) may be set to apply a margin rate for a zoom out function in front of the ISP pipeline (e.g., the input end).

[0211] In operation 1520, the processor (420) may be configured to crop to a target zoom ratio (e.g., an app zoom request ratio) at a scaler (e.g., scaler (560) of FIG. 5) located behind the ISP pipeline (e.g., at the output end) for a zoom out function.

[0212] In operation 1530, the processor (420) may receive a zoom request signal in response to a user input requesting zoom out when the camera module or camera application is running.

[0213] At operation 1540, the processor (420) may determine whether the margin zoom factor is less than or equal to the target zoom factor. At operation 1550, if the margin zoom factor is less than or equal to the target zoom factor, the processor (420) may calculate a zoom ratio to be processed through the ISP (550) and a total zoom step.

[0214] The zoom factor can be applied to the input terminal of the ISP (550) on a frame-by-frame basis. The processor (420) can set the zoom factor (e.g., ) step by step until the ISP (550) reaches the target zoom factor. For example, at the 7th frame input point, a zoom out request to change to a 1.0 magnification can be received. The app zoom request transmitted from the camera app to the ISP can be requested in steps of 2.0 zoom factor → 1.7 zoom factor → 1.4 zoom factor → 1.2 zoom factor → 1.0 magnification.

[0215] The total zoom step may refer to the number of future zoom ratios (e.g., predicted zoom steps) predicted until reaching the target zoom ratio calculated by the zoom ratio calculation unit (e.g., the zoom ratio calculation unit (521) of FIG. 5). The predicted zoom steps may be required in the process for a natural smoothing effect for the zoom function.

[0216] In operation 1560, the processor (420) may control the scaler (560) located after the ISP (550) pipeline (e.g., at the output stage) to apply a zoom factor (e.g., an expected future zoom factor) while ignoring the request order of the ISP (550).

[0217] In one embodiment, the scaler (560) may receive image processed frames from the ISP (550) and, independently, receive zoom factor information according to a target zoom request from the processor (420). The scaler (560) may ignore the zoom factor information of the ISP (550) and scale (e.g., crop) the resulting image of the ISP (550) with the zoom factor information corresponding to the target zoom request.

[0218] In operation 1570, the processor (420) can output a scaled image from the scaler (560). The scaler (560) can transmit the scaled image to the camera application, and the processor (420) can output the scaled image to the display.

[0219] In operation 1580, if the margin zoom factor is greater than the target zoom factor, the processor (420) may calculate the zoom factor and total zoom steps from the current zoom factor to the margin zoom factor so that the zoom factor outside the margin factor can be reached after the ISP pipeline count, and may proceed to operation 1560 to apply this to the scaler (560).

[0220] FIGS. 16A to 16C illustrate examples of frame processing operations upon a camera zoom out request of an electronic device according to one embodiment.

[0221] Referring to FIGS. 16A to 16C, a processor (e.g., processor (120) of FIG. 1, processor (420) of FIG. 4) of an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIGS. 4 and 5) according to one embodiment may support a function of preventing a freezing phenomenon when zooming out by increasing a zoom ratio step when a target zoom ratio can be predicted.

[0222] For example, <1601> As shown, while the first frame (1611) with a 2.0 zoom ratio is output to a display display (e.g., display module (160) of FIG. 1, (e.g., display (440) of FIG. 4)) through a camera app, the ISP (550) may be set to process the frame (912), the third frame (913), the fourth frame (914), the fifth frame (915), and the sixth frame (916) in that order with a margin ratio of 1.1 times.

[0223] Typically, when a camera app receives a user input requesting a change from a 2.0 zoom ratio to a 1.0 zoom ratio, it can send an app zoom request to the ISP (550) in four steps: from a 2.0 zoom ratio to a 1.7 zoom ratio → a 1.4 zoom ratio → a 1.2 zoom ratio → a 1.0 zoom ratio.

[0224] The processor (420) may, for the zoom-out function, newly set a predicted zoom ratio step (e.g., predicted zoom step) to be applied to the scaler (560) of the hardware abstraction layer in addition to the app zoom request for the app request. For example, the processor (420) may calculate a predicted zoom step (total of 6 steps) of a stepwise change of 1.7 zoom ratio → 1.4 zoom ratio → 1.2 zoom ratio → 1.0 zoom ratio according to the app zoom request, from 2.0 zoom ratio to 1.6 zoom ratio → 1.4 zoom ratio → 1.3 zoom ratio → 1.2 zoom ratio → 1.1 zoom ratio → 1.0 zoom ratio, and control the predicted zoom step to be applied to the scaler (560) located behind the ISP (550).

[0225] At this time, the processor (420) can control the front end (e.g., input end) of the ISP (550) to apply a 1.1 zoom ratio considering the margin rate. The processor (420) can request that the newly calculated predicted zoom ratio be applied to the scaler (560) in steps (x1.6 → x1.4 → x1.3 → x1.2. → x1.1 → x1.0) from the time of inputting the 7th frame (1617).

[0226] The processor (420) can request that the newly calculated predicted zoom ratio be applied to the scaler in steps (x1.1→x1.3→x1.6→x2.0) from the time of inputting the 7th frame (917).

[0227] <1602> As illustrated, the scaler (560) may ignore the zoom ratio (1.1 ratio) of the second frame (1612) output from the ISP (550), and scale (e.g., crop) the second frame (1612) processed at a 1.1 zoom ratio in the ISP (550) to a size of a 1.6 zoom ratio and output it. At this time, the processor (420) may control the seventh frame (1617) input to the ISP (550) to be processed at a 1.0 zoom ratio.

[0228] When the third frame (1613) is output from the ISP (550), the processor (420) can transmit 1.4 zoom ratio information to the scaler (560) and control the eighth frame (1618) input to the ISP (550) to be processed at a 1.0x zoom ratio.

[0229] <1603> As shown in , the scaler (560) can ignore the zoom ratio (1.1 ratio) of the third frame (1613) processed by the ISP (550) and output the third frame (1613) processed by the ISP (550) at a zoom ratio of 1.1 by scaling it to a size of a zoom ratio of 1.4 (e.g., cropping).

[0230] In the following sequence, the processor (420) can control the ISP (550) to transmit 1.3x zoom ratio information to the scaler (560) when the 4th frame (1614) is output, and the 9th frame (1619) input to the ISP (550) to be processed at a 1.0x zoom ratio.

[0231] <1604> As illustrated, the scaler (560) may ignore the zoom ratio (1.1 ratio) of the fourth frame (1614) output from the ISP (550), and scale (e.g., crop) the fourth frame (1614) processed at the 1.1 zoom ratio in the ISP (550) to a size of the 1.3 zoom ratio to output the fourth frame (1614).

[0232] In the following sequence, the processor (420) can control the ISP (550) to transmit 1.2x zoom ratio information to the scaler (560) when outputting the 5th frame (1615), and to process the 10th frame (1620) transmitted to the ISP (550) at a 1.0x zoom ratio.

[0233] <1605> As illustrated, the scaler (560) can ignore the zoom ratio (1.1 ratio) of the fifth frame (1615) output from the ISP (550), and scale (e.g., crop) the fifth frame (1615) processed at the 1.1 zoom ratio in the ISP (550) to a size of the 1.2 zoom ratio and output it.

[0234] In the following sequence, the processor (420) transmits 1.1 zoom ratio information to the scaler (560) when the 6th frame (1616) is output from the ISP (550), and can control the ISP (550) to process the 11th frame (1621) at a 1.0 zoom ratio.

[0235] <1606> As illustrated, the scaler (560) can ignore the zoom ratio (1.1 ratio) of the sixth frame (1616) output from the ISP (550), and scale (e.g., crop) the sixth frame (1616) processed at the 1.1 zoom ratio in the ISP (550) to a size of the 1.0 zoom ratio and output it.

[0236] Thereafter, the scaler (560) can transmit 1.0 zoom ratio information to the scaler (560) when the 7th frame (1617) is output from the ISP (550), and control the ISP (550) to process the 12th frame (1622) at a 1.0 zoom ratio. In this case, the processor (420) can confirm that the output ratio of the ISP (550) and the zoom ratio requested from the scaler (560) are the same when the 7th frame (1716) is output, and can terminate the operation of the scaler (560).

[0237] FIG. 17 illustrates a method for improving camera zoom in-out performance of an electronic device according to one embodiment.

[0238] Referring to FIG. 17, a processor (e.g., processor (120) of FIG. 1, processor (420) of FIG. 4) of an electronic device (e.g., electronic device (101) of FIG. 1, electronic device (101) of FIG. 4 and FIG. 5) according to one embodiment may obtain a first frame of a first zoom ratio from an image sensor (e.g., image sensor (230) of FIG. 2, image sensor (410) of FIG. 4, image sensor (540) of FIG. 5) in operation 1710.

[0239] In operation 1720, the processor (420) may control the second frame to the Nth frame to be processed through the ISP (550) while outputting the first frame of the first zoom ratio processed through the ISP (e.g., the image signal processor (260) of FIG. 2, the ISP (550) of FIG. 5) to the display.

[0240] In operation 1730, the processor (420) may detect or receive a user input requesting a second zoom ratio display different from the first zoom ratio at the time of acquiring the N+1 frame. The user input may be, but is not limited to, a touch gesture such as pinch in or pinch out.

[0241] In operation 1740, the processor (420) may transmit a processing request for the N+1 frame to the ISP (550) and, in parallel or independently, may request processing at a second zoom ratio to a scaler (e.g., scaler (560) of FIG. 5).

[0242] In operation 1760, the processor (420) may control the scaler (560) to not output the second frame output from the ISP (550) but to scale the second frame output from the ISP (550) at the requested second zoom ratio at the N+1 frame point in time and transmit it to the display.

[0243] A method for improving camera zoom performance of an electronic device (101) according to one embodiment comprises: when executing a camera function, acquiring a first frame at a first zoom ratio from an image sensor (410, 540); controlling the second frame to the Nth frame to be image-processed at the first zoom ratio through the image signal processor (550) while outputting the first frame at the first zoom ratio processed through the image signal processor (550) to the display (440); requesting the image signal processor (550) to process the N+1th frame based on a user input requesting display of a second zoom ratio different from the first zoom ratio at the time of acquiring the N+1th frame; and transmitting the second zoom ratio request at the time of acquiring the N+1th frame to a scaler (560) arranged between the output terminal of the image signal processor (550) and the input terminal of the display (440); and in the second frame output order, the scaler (560) outputs the first zoom ratio from the image signal processor (550). It may include an operation of scaling the second frame processed with the magnification to the second zoom magnification requested at the N+1 frame point in time and outputting it to the display (440).

[0244] According to one embodiment, the scaler (560) may be set to ignore the zoom ratio of the frame output from the image signal processor (550) and to process the second zoom ratio request transmitted from the processor (420) with priority.

[0245] According to one embodiment, the operation of transmitting a second zoom ratio request at the time of acquiring the N+1th frame to the scaler (560) may be characterized by dividing the app zoom request from the first zoom ratio to the second zoom ratio into at least two zoom ratio change steps and transmitting the same to the scaler (560) or the image signal processor (550).

[0246] According to one embodiment, when the user input includes a first touch gesture requesting zoom in, the second zoom factor may be set to a zoom factor of a larger size than the first zoom factor.

[0247] According to one embodiment, when the user input includes a second touch gesture requesting zoom out, the second zoom factor may be set to a zoom factor of a reduced size than the first zoom factor.

[0248] According to one embodiment, the user input may include a button input or progress bar input requesting zoom in, and after the operation of receiving the user input, the operation may further include calculating an expected predicted zoom ratio step until reaching the second zoom ratio from the first zoom ratio separately from the zoom ratio changing step, and setting a zoom ratio according to the predicted zoom ratio step to be applied to the scaler (560).

[0249] According to one embodiment, after the operation of outputting to the display (440), if the zoom ratio of the frame processed by the image signal processor (550) and the zoom ratio corresponding to the user input transmitted to the scaler (560) are the same, the operation of terminating the operation of the scaler (560) may be further included.

[0250] According to one embodiment, when the second zoom ratio is set to a zoom ratio of a smaller size than the first zoom ratio, the image signal processor (550) may further include an operation of controlling the image signal processor (550) to process the image at a third zoom ratio that applies a margin ratio to the first zoom ratio output to the display (440).

[0251] According to one embodiment, the operation of receiving the user input may further include calculating a zoom speed through a difference between the first zoom magnification and the second zoom magnification, controlling the image signal processor to process the image at a fourth zoom magnification that further increases the margin ratio when the zoom speed is close to the third zoom magnification, and adding a zoom magnification change step between the first zoom magnification and the second zoom magnification.

[0252] The embodiments of this document and the terminology used herein 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 component (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.

[0253] The term "module" used in the 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).

[0254] One embodiment 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.

[0255] According to one embodiment, the method according to one embodiment disclosed in the present document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). TM ) or directly between two user devices (e.g., smart phones), online distribution (e.g., downloading or uploading). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.

[0256] According to one embodiment, 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 arranged in other components. According to one embodiment, 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 this 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 one embodiment, 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.

Claims

1. In electronic devices, display; image sensor; An image signal processor for processing frames transmitted from the image sensor; A scaler arranged between the output terminal of the image signal processor and the input terminal of the display; and a processor operatively connected to said image signal processor and said scaler; and comprising a memory storing instructions executable by the processor; The above commands cause the electronic device to, when executing the camera function, The image signal processor obtains a first frame of a first zoom ratio from the image sensor, While outputting the first frame of the first zoom ratio processed through the image signal processor to the display, the second frame to the Nth frame are controlled to be image-processed at the first zoom ratio through the image signal processor, At the time of acquiring the N+1 frame, a user input is received requesting display of a second zoom factor different from the first zoom factor, It is set to request processing for the N+1 frame to the image signal processor and to transmit a second zoom ratio request at the time of acquisition of the N+1 frame to the scaler. An electronic device that causes the scaler to scale the second frame processed at the first zoom factor in the image signal processor to the second zoom factor requested at the time of acquiring the N+1th frame, and transmit it to the display in the second frame output order.

2. In paragraph 1, The above commands cause the electronic device to: An electronic device wherein the scaler is further configured to give priority to the second zoom ratio request transmitted from the processor over the zoom ratio information of the frame output from the image signal processor.

3. In paragraph 1 or 2, The above commands cause the electronic device to: An electronic device further configured to cause the processor to request the scaler or the image signal processor to change the zoom request from the first zoom factor to the second zoom factor by at least two zoom factor changing steps.

4. In paragraph 3, The above commands cause the electronic device to: An electronic device further configured to request the scaler to process at a zoom ratio corresponding to the user input at the time of outputting the second frame, and simultaneously or in parallel, request the image signal processor to process at a zoom ratio corresponding to the user input at the time of inputting the N+1th frame.

5. In paragraph 3, If the user input includes a first touch gesture requesting zoom in, the second zoom factor is set to a zoom factor of a larger size than the first zoom factor, An electronic device, characterized in that when the user input includes a second touch gesture requesting zoom out, the second zoom factor is set to a zoom factor of a reduced size than the first zoom factor.

6. In paragraph 3, The above user input includes a button input requesting zoom in or a progress bar input, The above commands cause the electronic device to: An electronic device wherein the processor is further configured to calculate an expected predicted zoom ratio step from the first zoom ratio to the second zoom ratio separately from the zoom ratio changing step, wherein the second zoom ratio is set as a target zoom ratio, and the zoom ratio according to the predicted zoom ratio step is applied to the scaler.

7. In paragraph 6, The above commands cause the electronic device to: An electronic device that controls the processor to terminate the operation of the scaler when the zoom ratio of the frame processed by the image signal processor and the zoom ratio corresponding to the user input transmitted to the scaler are the same.

8. In paragraph 6, The above commands cause the electronic device to: An electronic device that controls the image signal processor so that the image is processed at a third zoom ratio that applies a margin ratio to the first zoom ratio output to the display.

9. In paragraph 8, The above commands cause the electronic device to: An electronic device wherein the processor calculates a zoom speed through a difference between the first zoom magnification and the second zoom magnification, and when the zoom speed is close to the third zoom magnification, controls the image signal processor to process the image at a fourth zoom magnification that increases the margin ratio more than the third zoom magnification, and further adds a zoom magnification change step between the first zoom magnification and the second zoom magnification.

10. In paragraph 1 or 2, The above scaler An electronic device set to output an image of a frame output from the image signal processor by cropping it according to a zoom ratio request.

11. A method for improving the camera zoom performance of an electronic device, When executing a camera function, an operation of the image signal processor to acquire a first frame of a first zoom ratio from the image sensor; An operation of controlling the second frame to the Nth frame to be image-processed at the first zoom ratio through the image signal processor while outputting the first frame at the first zoom ratio processed through the image signal processor to the display; An action of receiving a user input requesting display of a second zoom factor different from the first zoom factor at the time of acquiring the N+1 frame; An operation of requesting processing of the N+1 frame to the image signal processor and transmitting a second zoom ratio request at the time of acquisition of the N+1 frame to a scaler located behind the output terminal of the image signal processor; and A method comprising: in a second frame output order, the scaler scales the second frame processed at the first zoom factor in the image signal processor to the second zoom factor requested at the time of acquiring the N+1th frame and outputs the same to the display.

12. In paragraph 11, A method characterized in that the scaler is set to give priority to processing the second zoom ratio request transmitted from the processor of the electronic device over zoom ratio information of the frame output from the image signal processor.

13. In paragraph 11, The operation of transmitting a second zoom ratio request at the time of acquiring the N+1th frame to the above scaler is as follows: A method characterized in that a zoom request corresponding to a user input from the first zoom ratio to the second zoom ratio is changed into at least two zoom ratio changing steps and transmitted to the scaler or the image signal processor.

14. In paragraph 13, The above user input includes a button input requesting zoom in or a progress bar input, A method further comprising, after the action of receiving user input, an action of calculating an expected predicted zoom ratio step from the first zoom ratio to the second zoom ratio separately from the zoom ratio changing step, and setting a zoom ratio according to the predicted zoom ratio step to be applied to the scaler.

15. In paragraph 11, After the action of outputting to the above display, A method further comprising an action of terminating the operation of the scaler when the zoom ratio of the frame processed by the image signal processor and the zoom ratio corresponding to the user input transmitted to the scaler are the same.

Citation Information

Patent Citations

  • A shooting method and equipment

    CN112333380B

  • Dual aperture zoom digital camera

    KR1020150139558A

  • Adjusting the zoom settings for digital cameras

    KR102511199B1

  • Method of improving image quality in zoom scenario with single camera, and electronic device including the same

    US11412148B2

  • Digital zoom with sensor mode change

    US9215377B2