Electronic device for providing automatic zoom function and operating method therefor

By using multiple cameras with different fields of view and dynamic zoom adjustments based on a region of interest and margin area, the electronic device addresses image quality degradation issues in conventional auto-framing systems, ensuring high-quality image composition.

WO2026014866A1PCT designated stage Publication Date: 2026-01-15SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2025/009819
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-11-21
Filing Date
2025-07-08
Publication Date
2026-01-15

AI Technical Summary

Technical Problem

Conventional auto-framing in electronic devices with cameras often results in image quality degradation due to the cropping and digital zoom applied to a single camera's field of view, which can distort the final image.

Method used

The electronic device employs multiple cameras with different fields of view, allowing for dynamic zoom adjustments based on a detected region of interest and a margin area, switching between cameras to maintain image quality during zoom operations.

Benefits of technology

This approach maintains image quality by dynamically adjusting zoom and camera selection based on the detected region of interest and margin area, preventing image distortion and enhancing overall image composition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2025009819_15012026_PF_FP_ABST
    Figure KR2025009819_15012026_PF_FP_ABST
Patent Text Reader

Abstract

An electronic device according to one embodiment may comprise: a first camera having a first field of view; a second camera having a second field of view wider than the first field of view; a display; at least one processor; and a memory for storing instructions. The instructions according to one embodiment are executed by the at least one processor and may instruct the electronic device to: acquire a first image through the first camera on the basis of a first zoom magnification for a predetermined time; display a preview image based on the first image on the display; detect at least one object included in the first image; set a region of interest for the detected at least one object; set a margin region excluding the region of interest in the entire region of the preview image; and change the zoom magnification of the first camera from the first magnification to a second magnification or switch from the first camera to the second camera on the basis of a minimum margin value which is the shortest length in the margin region.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic device providing automatic zoom function and method of operation thereof

[0001] The present disclosure relates to an electronic device providing an automatic zoom function and a method of operating the same.

[0002] Electronic devices containing cameras can provide a variety of features. For example, auto-framing automatically adjusts the composition of a photo by recognizing people within the camera's field of view and applying digital zoom and panning to position them at the center of the screen, eliminating manual intervention by the user.

[0003] Meanwhile, conventional auto-framing sets an area of ​​interest in an image captured by a single camera, crops the image, and then applies digital zoom, which can result in a degradation in the final image quality.

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

[0005] An electronic device according to one embodiment may include a first camera, a second camera, a display, at least one processor, and a memory storing instructions. The instructions according to one embodiment may be executed by the at least one processor to cause the electronic device to: acquire a first image based on a first zoom factor for a predetermined period of time through the first camera. The instructions according to one embodiment may display a preview image based on the first image on the display. The instructions according to one embodiment may detect at least one object included in the first image and set a region of interest for the at least one detected object. The instructions according to one embodiment may set a margin region excluding the region of interest from the entire region of the preview image. The instructions according to one embodiment may change the zoom factor of the first camera from the first magnification to the second magnification or switch the first camera to the second camera based on a minimum margin value that is the shortest length in the margin region.

[0006] According to one embodiment, a method of operating an electronic device may include an operation of acquiring a first image based on a first zoom magnification for a predetermined period of time through a first camera. According to one embodiment, the method of operating an electronic device may include an operation of displaying a preview image based on the first image on a display. According to one embodiment, the method of operating an electronic device may include an operation of detecting at least one object included in the first image and setting a region of interest for the detected at least one object. According to one embodiment, the method of operating an electronic device may include an operation of setting a margin area excluding the region of interest from an entire area of ​​the preview image. According to one embodiment, the method of operating an electronic device may include an operation of changing a zoom magnification of the first camera from the first magnification to a second magnification based on a minimum margin value that is a shortest length in the margin area, or switching the first camera to a second camera having a second field of view larger than a first field of view of the first camera.

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

[0008] FIG. 2 is a block diagram of a camera module according to one embodiment.

[0009] FIG. 3 is a block diagram illustrating a configuration of an electronic device according to one embodiment.

[0010] Figure 4 is a drawing for explaining the area of ​​interest and the margin area.

[0011] Figure 5 is a flowchart of a method of operating an electronic device according to one embodiment.

[0012] FIG. 6 is a drawing for explaining a camera switching operation in the embodiment according to FIG. 5.

[0013] FIG. 7 is a drawing for explaining a zoom-in operation in the embodiment according to FIG. 5.

[0014] FIG. 8 is a drawing for explaining a zoom out operation in the embodiment according to FIG. 5.

[0015] FIG. 9 is a flowchart for explaining a zoom control operation based on a target zoom ratio in an electronic device according to one embodiment.

[0016] FIG. 10 is a flowchart for explaining a zoom control operation when the upper body is set as the region of interest in an electronic device according to one embodiment.

[0017] Fig. 11 is a drawing for explaining a zoom-in operation in the embodiment according to Fig. 10.

[0018] FIG. 12 is a drawing for explaining a zoom out operation in the embodiment according to FIG. 10.

[0019] FIG. 13 is a flowchart illustrating an operation for providing various compositions in an electronic device according to one embodiment.

[0020] FIG. 14 is a flowchart for explaining a folding angle guide operation when an electronic device according to one embodiment is a foldable device.

[0021] Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. The advantages and features of the present disclosure, and methods for achieving them, will become clear with reference to the embodiments described in detail below together with the accompanying drawings. However, this document is not limited to the embodiments disclosed below and may be implemented in various different forms. These embodiments are provided only to ensure that the disclosure of this document is complete and to fully inform those skilled in the art of the present disclosure of the scope of the invention, and the present disclosure is defined only by the scope of the claims. Like reference numerals refer to like elements throughout the specification.

[0022] Unless otherwise defined, all terms (including technical and scientific terms) used herein may be used in the same sense as commonly understood by those of ordinary skill in the art to which this disclosure pertains. Furthermore, terms defined in commonly used dictionaries are not to be interpreted ideally or excessively unless explicitly and specifically defined otherwise. The terminology used herein is for the purpose of describing embodiments and is not intended to limit the disclosure. In this specification, singular forms also include plural forms, unless specifically stated otherwise.

[0023] The terms "comprises" and / or "comprising" as used in the specification do not exclude the presence or addition of one or more other components, steps, operations and / or elements.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0042] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).

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

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

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

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

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

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

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

[0050] According to one embodiment, the method according to various embodiments disclosed in this 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.

[0051] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

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

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

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

[0055] 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 point extraction, image synthesis, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Additionally or alternatively, the image signal processor (260) may perform control (e.g., exposure time control, read-out timing control, etc.) for at least one of the components included in the camera module (180) (e.g., image sensor (230)). 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)). According to one embodiment, the image signal processor (260) may be a processor (120). It may be configured as a separate processor that is at least partially composed of, or operates independently of, the processor (120). If the image signal processor (260) is configured as a separate processor from the processor (120), at least one image processed by the image signal processor (260) may be displayed through the display module (160) by the processor (120) as is or after undergoing additional image processing.

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

[0057] FIG. 3 is a block diagram (300) illustrating the configuration of an electronic device according to various embodiments. In the following embodiments, the configuration of the electronic device (101) may be similar to or identical to the configuration of the electronic device (101) of FIG. 1 described above.

[0058] Referring to FIG. 3, the electronic device may include a first camera (310), a second camera (320), a motion sensor (330), a processor (340), a display (350), and a memory (360).

[0059] The first camera (310) and the second camera (320) may be the camera module (180) of FIG. 1 and may capture (or acquire) images (e.g., photographs or videos) viewed through the lenses. For example, the first camera (310) and the second camera (320) may capture images individually or simultaneously. According to one embodiment, the first camera (310) and the second camera (320) may have different fields of view (FOV). For example, one of the first camera (310) or the second camera (320) may have a wider field of view than the other camera. For example, when the second camera (320) has a wider field of view than the first camera (310), the second camera (320) may capture images of a wide field of view that include images captured by the first camera (310). According to one embodiment, at least a portion of the images captured by the first camera (310) and the second camera (320) may be output as preview images through a display (350) (e.g., the display module (160) of FIG. 1) or stored in a memory (360) (e.g., the memory (130) of FIG. 1).

[0060] A motion sensor (330) (e.g., sensor module (176) of FIG. 1) can detect movement of an electronic device. According to one embodiment, the motion sensor (330) can detect movement of the electronic device while an image is being acquired through at least one of the first camera (310) or the second camera (320). For example, the motion sensor (330) can be activated when at least one of the first camera (310) or the second camera (320) is operated. The motion sensor (330) can include a gyro sensor (or gyroscope). However, this is merely an example and is not limited thereto. For example, the motion sensor (330) may be configured with various sensors capable of detecting movement of the electronic device, such as an acceleration sensor.

[0061] The processor (340) (e.g., the processor (120) of FIG. 1) can control the overall operation of the electronic device. According to one embodiment, the processor (340) may include an image signal processor (342) (e.g., the image signal processor (260) of FIG. 2) and a margin area setting unit (344). However, this is merely exemplary and is not limited thereto. For example, the image signal processor (342) and the margin area setting unit (344) may be configured as separate processors that operate independently of the processor (340).

[0062] According to one embodiment, the processor (340) can determine a margin area for performing a camera transformation operation or a zoom in / zoom out operation. The margin area is determined by a margin area setting unit (344), and according to one embodiment, the processor (340) can set a region of interest for an object in an image acquired from the first camera (310) (or the second camera (320)) and set a margin area excluding the region of interest in the entire image (or preview image). The margin area will be described in detail with reference to FIG. 4.

[0063] According to one embodiment, the processor (340) can acquire an image including the entire field of view and a crop image of the field of view with a zoom factor applied through the first camera (310) and / or the second camera (320).

[0064] According to one embodiment, the processor (340) may analyze an object included in the image based on the acquired image (or cropped image). For example, if the image includes a person, the processor (340) may store the person's facial coordinates and / or body coordinates in the memory (360). Additionally, if the image includes an animal (e.g., a dog or cat), the processor (340) may store the animal's head coordinates and / or body coordinates in the memory (360). According to one embodiment, the processor (340) may store information that can distinguish a person (and / or animal) from a background in the image in the memory (360).

[0065] According to one embodiment, the processor (340) may set a region of interest for a person (and / or animal) in the acquired image (or cropped image). According to one embodiment, once the region of interest is set, the processor (340) may set a margin region excluding the region of interest in the acquired image (or cropped image).

[0066] According to one embodiment, the processor (340) may set a region of interest for the entire body if the object included in the image is a person. In addition, the processor (340) may set a region of interest only for the face if the object included in the image is a person. In addition, the processor (340) may set a region of interest for the upper body including the face if the object included in the image is a person. According to one embodiment, if the object included in the image is a person, the processor (340) may determine that the object is the upper body of the person if the vertical length of the body coordinates is less than N times the vertical length of the face coordinates, and may set a predetermined length from the upper end of the face as the region of interest.

[0067] According to one embodiment, when there are multiple objects included in an image, the processor (340) can set a region of interest for multiple objects.

[0068] According to one embodiment, the processor (340) may calculate a target zoom ratio based on the location of the region of interest and the lengths of the top, bottom, left, and right margin areas. For example, the processor (340) may output an image at a 1.0x magnification to the display (350) through the first camera (310), and output an image at a changed magnification based on the target zoom ratio to the display (350). The calculation method of the target zoom ratio will be described later.

[0069] According to one embodiment, the processor (340) may determine whether the electronic device (101) is stabilized before setting the region of interest and the margin region. Whether the electronic device (101) is stabilized may be determined based on the amount of change in the signal generated by the motion sensor (330). According to one embodiment, the processor (340) may determine that there is no movement of the electronic device (101) when the signal level generated by the motion sensor (330) is below a threshold value. In addition, the processor (340) according to one embodiment may determine whether the object is stabilized when the electronic device (101) is stabilized. For example, the processor (340) may determine whether the object is stabilized based on the amount of change in the coordinates of the region of interest with respect to the image. The processor (340) may set the margin region when the electronic device (101) and the object are stabilized.

[0070] According to one embodiment, the processor (340) may correct rolling shutter distortion for at least one image based on movement information of the electronic device (or image) while correcting shake for multiple images.

[0071] Figure 4 is a drawing for explaining the area of ​​interest and the margin area.

[0072] Referring to FIG. 4, a processor (340) according to one embodiment may acquire a first image (405) having a first field of view through a first camera (e.g., the first camera (310) of FIG. 3). At this time, the first image (405) may be a second image having a second field of view larger than the first field of view through a second camera (e.g., the second camera (320) of FIG. 3).

[0073] According to one embodiment, the processor (340) may acquire a first image (405) including the entire field of view and a crop image (404) of the field of view with a zoom factor applied through the first camera (310) and / or the second camera (320). The crop image (404) may be a preview image output to the display (350) of the electronic device (101).

[0074] A processor (340) according to one embodiment can detect an object (O) within a first image and set a region of interest (401) for the object. In FIG. 4, a human body is illustrated as a representative example of an object (O), but the processor (340) according to one embodiment can also set an entire animal or object as a region of interest through object analysis. In addition, the processor (340) according to one embodiment can set a region of interest not only for one object but also for multiple objects.

[0075] According to one embodiment, when a region of interest (401) is set, the processor (340) can set an area excluding the region of interest in a crop image (404, or first image) as a margin area (403).

[0076] The margin area can be defined as a first margin area and a second margin area. The first margin area is an area excluding the area of ​​interest (401) based on the first image (405), and the second margin area is an area excluding the area of ​​interest (401) based on the crop image (404). The first margin area can be configured with a first margin length (T1) which is a width between the top of the first image (405) and the top of the area of ​​interest (401), a second margin length (L1) which is a width between the left side of the first image (405) and the left side of the area of ​​interest (401), a third margin length (R1) which is a width between the right side of the first image (405) and the right side of the area of ​​interest (401), and a fourth margin length (B1) which is a width between the bottom of the first image (405) and the bottom of the area of ​​interest (401). The second margin area may be composed of a first margin length (T2) which is the width between the top of the crop image (404) and the top of the area of ​​interest (401), a second margin length (L2) which is the width between the left side of the crop image (404) and the left side of the area of ​​interest (401), a third margin length (R2) which is the width between the right side of the crop image (404) and the right side of the area of ​​interest (401), and a fourth margin length (B2) which is the width between the bottom of the crop image (404) and the bottom of the area of ​​interest (401).

[0077] Here, the margin length having the shortest width among the first to fourth margin lengths may be defined as the minimum margin value. According to one embodiment, the processor (340) may change the zoom ratio of the first camera (310, FIG. 3) or switch the camera capturing the object from the first camera (310) to the second camera (320) based on the minimum margin value.

[0078] Meanwhile, existing auto-framing or object tracking technologies calculate the region of interest (ROI) to center the recognized object in the image, making it difficult to obtain cropped images that blend the object with its surrounding background. Furthermore, existing auto-framing technologies calculate the ROI from images captured with a single camera, crop them, and then digitally zoom (upscale), resulting in degraded image quality.

[0079] According to the disclosure, rather than cropping the area of ​​interest and the area around the area of ​​interest and then digitally zooming (Up Scale), the zoom factor to be changed is calculated based on the minimum margin value described above, and the image can be acquired by the changed zoom factor or by switching to a camera with a different field of view to prevent image quality degradation.

[0080] FIG. 5 is a flowchart of an operating method of an electronic device according to one embodiment. FIG. 6 is a diagram for explaining a camera switching operation in the embodiment according to FIG. 5. FIG. 7 is a diagram for explaining a zoom-in operation in the embodiment according to FIG. 5. FIG. 8 is a diagram for explaining a zoom-out operation in the embodiment according to FIG. 5.

[0081] A user may execute an application related to a camera (310, 320) on an electronic device (101). According to one embodiment, a processor (340) may operate the first camera (310) simultaneously with the execution of the application (operation 501). When the first camera (310) operates, the processor (340) may output a preview image to the display (350) according to a basic magnification (e.g., 1.0x).

[0082] According to one embodiment, the processor (340) can check the folding state of the electronic device (101) and the movement of the electronic device (101) (operation 503). The checking of the folding state is performed only when the electronic device (101) is a foldable electronic device, and when the electronic device (101) is a bar type, only the movement of the electronic device (101) can be checked. In operation 503, whether the electronic device is stabilized can be determined.

[0083] If it is determined that the electronic device (101) is stabilized by operation 503, the processor (340) according to one embodiment detects an object and sets a region of interest for the object (operation 505). According to one embodiment, the processor (340) may set a region of interest for the object in an image acquired from the first camera (310) (or the second camera (320)). According to one embodiment, the processor (340) may set a region of interest for the whole body if the object included in the image is a person. In addition, the processor (340) may set a region of interest only for the face if the object included in the image is a person. In addition, the processor (340) may set a region of interest for the upper body including the face if the object included in the image is a person.

[0084] According to one embodiment, the processor (340) may set a margin area excluding the area of ​​interest (operation 507). According to one embodiment, the processor (340) may obtain a first minimum margin value and a second minimum margin value in the margin area (operation 509). The first minimum margin value refers to the shortest length in the margin area based on the first image, and the second minimum margin value refers to the shortest length in the margin area based on the cropped image (preview image). The first image is an image obtained from the first camera (or the second camera) and may correspond to a basic image to which a post-processing process such as cropping is not reflected. That is, the first minimum margin value may refer to the shortest width in all directions after excluding the area of ​​interest based on the entire image (e.g., the first image) obtained by the first camera (or the second camera), and the second minimum margin value may refer to the shortest width in all directions after excluding the area of ​​interest based on the cropped image from the first image, that is, the preview image. Referring to FIG. 4, the first minimum margin value can be one of T1, L1, R1, and B1, and the second minimum margin value can be one of T2, L2, R2, and B2.

[0085] According to one embodiment, the processor (340) may switch from the first camera to the second camera (operation 513) if the first minimum margin value is less than the minimum threshold length (operation 511 - Yes). Referring to FIG. 6, the processor (340) according to one embodiment may acquire a first image (405) obtained through the first camera (310), and if an area of ​​interest (401) is set within the first image (405), the processor may acquire the first minimum margin value (B1). When zooming in based on the area of ​​interest (401), since there is no zoom-in target at the bottom based on the object (O), it is necessary to secure the necessary background at the bottom through the second camera (320) having a wider field of view than the first camera (310). Accordingly, the processor (340) according to one embodiment may switch the first camera (310) to the second camera (320) if the first minimum margin value (B1) is less than or equal to the minimum threshold length. The processor (340) according to one embodiment may acquire a second image through the second camera (320) and re-establish the region of interest for the object (O) included in the second image. Here, the minimum threshold length may be defined as a short length that is 0 or close to 0.

[0086] According to one embodiment, the processor (340) may output an interpolated image to the display (350) at a point in time between when the first image and the second image are output, by utilizing frame interpolation, when switching from the first camera (310) to the second camera (320) or when switching from the second camera (320) to the first camera (310).

[0087] Meanwhile, the processor (340) according to one embodiment can change the preview image and / or the actual captured image by adjusting the zoom ratio rather than switching the camera. This will be described with reference to FIG. 7.

[0088] If, as in Fig. 7, the first minimum margin value is greater than the minimum threshold length, there is no need to secure the background through the second camera (320) which has a wider field of view than the first camera (310). In this case, the first camera (310) can be used as is, but the background area based on the area of ​​interest (401) can be changed by changing the zoom ratio.

[0089] As shown in FIG. 8, the processor (340) according to one embodiment can control the first camera to zoom out the first image (operation 519) if the first minimum margin value (B1) is greater than the minimum threshold length (operation 511 - No) and the second minimum margin value (B2) is less than or equal to the minimum threshold length (operation 515 - Yes). By zooming out the first camera (310), the processor (340) can secure the background area below the region of interest (401).

[0090] As shown in FIG. 7, the processor (340) according to one embodiment can control the first camera to zoom in on the first image (operation 517) if the first minimum margin value and the second minimum margin value are greater than the minimum threshold length (operation 511 - No, operation 515 - No). In this case, there is sufficient background area that can be secured from the preview image (or crop image) itself, and even if the area of ​​interest (401) is enlarged, the object (O) and its surroundings are sufficient to be included in the preview image.

[0091] In one embodiment, the processor (340) may acquire a first image through the first camera (310). At this time, the first image may be a full image according to the field of view of the first camera (310). In one embodiment, the processor (340) may display a preview image based on the first image on the display (350). At this time, the preview image may be a cropped image that is a portion of the first image. In one embodiment, the processor (340) may detect at least one object included in the first image and set a region of interest for the at least one detected object. The at least one object may be a full body of a person, an upper body of a person, or an entire animal (or object). In addition, the at least one object may be a plurality of objects, and the region of interest may be set to include a plurality of objects. In one embodiment, the processor (340) may set a margin area excluding the region of interest in the first image. According to one embodiment, the processor (340) can obtain a minimum margin value having a shortest length in a margin area, and change the zoom ratio of the first camera based on the minimum margin value, or switch the first camera to a second camera having a wider field of view.

[0092] Zooming in or out according to Fig. 5 is performed based on the minimum margin value, and the zoom ratio when zooming in or out can be calculated based on the minimum margin value. In this regard, a description is given with reference to Fig. 9.

[0093] FIG. 9 is a flowchart for explaining a zoom control operation based on a target zoom ratio in an electronic device according to one embodiment.

[0094] According to one embodiment, a processor (340) may obtain a minimum margin value (operation 901). The minimum margin value may be a first minimum margin value or a second minimum margin value. According to one embodiment, the processor (340) may obtain a first minimum margin value and a second minimum margin value in a margin area (e.g., operation 509 of FIG. 5). The first minimum margin value indicates the shortest length in the margin area based on the first image, and the second minimum margin value indicates the shortest length in the margin area based on the crop image (preview image). In the present embodiment, the minimum margin value may indicate the second minimum margin value.

[0095] The target zoom ratio can be derived according to the mathematical formula 1 below.

[0096] [Mathematical Formula 1]

[0097] Target zoom factor = Current zoom factor · (100 / (100 - 2 · Minimum margin))

[0098] Minimum Margin = (Minimum Margin Value / One Length of Preview Image) · 100

[0099] In one embodiment, the processor (340) may calculate a target zoom factor based on the minimum margin value (905) if the minimum margin value is greater than the minimum threshold length (operation 903 - No), and control the first camera (310) to zoom out based on the target zoom factor (907). For example, the first camera (310) may zoom out from a first magnification (e.g., 1.0x magnification) to a second magnification (e.g., 0.7x to 0.9x) that is less than the first magnification.

[0100] In one embodiment, the processor (340) may calculate a target zoom factor based on the minimum margin value (909) if the minimum margin value is less than the minimum threshold length (operation 903 - Yes), and control the first camera (310) to zoom in based on the target zoom factor (911). For example, the first camera (310) may zoom in from a first magnification to a third magnification (e.g., 1.2x to 3.0x) that is greater than the first magnification.

[0101] According to one embodiment, the processor (340) can acquire an image based on the current zoom ratio without zooming in or out if the target zoom ratio calculated through the minimum margin value is less than 0.2 compared to the current zoom ratio.

[0102] Meanwhile, the embodiment according to FIG. 5 assumes that, when the object included in the image is a person, the region of interest is set for the entire body. According to the present disclosure, when the object included in the image is a person, the region of interest is set only for the upper body, not the entire body, and the preview image can be switched by zooming in / out or switching the camera based on the region of interest. This will be described with reference to FIGS. 10 to 12.

[0103] FIG. 10 is a flowchart illustrating a zoom control operation when the upper body is set as the region of interest in an electronic device according to one embodiment. FIG. 11 is a diagram illustrating a zoom-in operation in the embodiment according to FIG. 10. FIG. 12 is a diagram illustrating a zoom-out operation in the embodiment according to FIG. 10.

[0104] A processor (340) according to one embodiment may set an upper body region of interest for an object (operation 1001). In one embodiment, if the object included in the image is a person, and the upper and lower length of the body coordinates is less than N times the upper and lower length of the face coordinates, the processor (340) may determine that the object is the upper body of a person, and may set a predetermined length from the upper end of the face as the region of interest.

[0105] A processor (340) according to one embodiment can detect a face in an object included in a first image, and if at least the upper and lower length of the object is less than a predetermined multiple of the upper and lower length of the face, set an upper body region of interest including the face and at least a portion of the object.

[0106] According to one embodiment, the processor (340) can maintain the zoom of the camera acquiring the image (operation 1005) if the face of the object is not located above the center of the image (operation 1003 - No). In other words, if the region of interest where the upper body is set is located in the lower region of the preview image, the upper body and the background above the upper body are sufficiently provided in the preview image, so there is no need to change the zoom. Accordingly, according to one embodiment, the processor (340) can maintain the zoom magnification of the camera acquiring the image if the face of the object is located below the center of the image.

[0107] According to one embodiment, the processor (340) compares the first to third margin lengths with each reference margin length when the face of the object is located above the center of the image (operation 1003 - yes).

[0108] The first to third margin lengths can be obtained within the upper body region of interest. The first margin length may be the distance between the top of the upper body region of interest and the top of the full image or cropped image. The second margin length may be the distance between the left side of the upper body region of interest and the left side of the full image or cropped image. The third margin length may be the distance between the right side of the upper body region of interest and the right side of the full image or cropped image.

[0109] Referring to FIG. 11, the processor (340) according to one embodiment may zoom in from the first magnification to a third magnification (e.g., 1.2x to 3.0x) that is greater than the first reference margin length and the second margin length and the third margin length are greater than the second reference margin length (operation 1007 - Yes) when the first margin length is greater than the first reference margin length (operation 1009).

[0110] In one embodiment, the processor (340) according to one embodiment may re-determine the condition according to operation 1011 if the first margin length is not greater than the first reference margin length, or if the second margin length and the third margin length are not greater than the second reference margin length (operation 1007 - No).

[0111] According to one embodiment, the processor (340) may control the first camera to zoom in on the first image when the first margin length is greater than the first reference margin length, and the second margin length and the third margin length are greater than the second reference margin length. At this time, the processor (340) may control the first camera to stop the zoom in (maintain the zoom) when the first margin length reaches the first reference margin length or the second margin length or the third margin length reaches the second reference margin length due to the zoom in (e.g., 1005 of FIG. 10). According to one embodiment, the first reference margin length may be 20% of the left and right width length of the upper body region of interest. According to one embodiment, the second reference margin length may be 10% of the left and right width length of the upper body region of interest.

[0112] Referring to FIG. 12, in one embodiment, the processor (340) may zoom out from a first magnification (e.g., 1.0x magnification) to a second magnification (e.g., 0.7x to 0.9x) that is less than the first magnification when the first margin length is less than the third reference margin length and the second margin length and the third margin length are less than the fourth reference margin length (1011 - Yes) (operation 1013).

[0113] According to one embodiment, the processor (340) may control the first camera to zoom out the first image when the first margin length is less than the third reference margin length, and the second margin length and the third margin length are less than the fourth reference margin length. According to one embodiment, when the first margin length reaches the third reference margin length due to the zoom out, or when the second margin length or the third margin length reaches the fourth reference margin length (operation 1011 - No), the first camera may be controlled to stop zooming out (maintain zoom) (e.g., 1005 of FIG. 10). According to one embodiment, the third reference margin length may be 10% of the left-right width length of the upper body region of interest. According to one embodiment, the fourth reference margin length may be 5% of the left-right width length of the upper body region of interest.

[0114] According to the embodiment according to the above-described Fig. 10, even if the user is not sitting on a chair or the lower body is partially covered, the electronic device (101) can provide various compositions through zoom ratio adjustment or camera switching by setting an area of ​​interest for the upper body.

[0115] FIG. 13 is a flowchart illustrating an operation for providing various compositions in an electronic device according to one embodiment.

[0116] According to one embodiment, a processor (340) calculates a target zoom ratio based on a minimum margin value (operation 1301) and controls a camera so that an image (preview image) is output at the target zoom ratio (operation 1303). The image output by the camera control may be an image acquired by the second camera (320) when switching from the first camera (310) to the second camera (320), or an image acquired by the first camera (310) when switching from the second camera (320) to the first camera (310). In addition, the image output by the camera control may be an image that was output by the first zoom ratio, but is output by the second zoom ratio or the third zoom ratio.

[0117] According to one embodiment, the processor (340) can determine whether movement of the object has occurred (operation 1307) when camera control is completed (operation 1305). According to one embodiment, the processor (340) can detect movement of the object and prepare for a changing composition.

[0118] According to one embodiment, the processor (340) may enter a shooting and shooting standby state according to a user's control command (operation 1309) if no movement of the object occurs (operation 1307 - No).

[0119] According to one embodiment, the processor (340) may recalculate the target zoom factor based on the minimum margin value according to operation 1301 when movement of the object occurs (operation 1307 - Yes) (1301). That is, according to one embodiment, the processor (340) may set a new area of ​​interest and provide a new composition to the user based on the new target zoom factor based on the new margin area.

[0120] Meanwhile, the processor (340) can provide a new composition to the user based on a specific trigger even if no movement of the object occurs. For example, if the user performs a shooting motion to acquire an image based on the initial target zoom ratio, a new preview image can be provided to the user so that a new image can be acquired at a zoom ratio different from the initial target zoom ratio.

[0121] Meanwhile, when a shooting operation is performed according to operation 1309, the processor (340) according to one embodiment can store multiple images. The multiple images can include images acquired based on a target zoom ratio and images acquired based on a basic zoom ratio (e.g., 1.0x magnification). That is, the user can acquire images of various compositions with a single shooting operation. For example, the user can acquire images of various fields of view with a single shooting through the background system without changing the preview image. According to the present embodiment, a full-body photo and an upper-body photo can be acquired simultaneously with a single shooting.

[0122] Meanwhile, embodiments according to the disclosure can be applied not only to a bar-type electronic device (101) but also when the electronic device (101) is a foldable electronic device. The foldable electronic device includes a first housing (not shown) and a second housing (not shown), and the angle or distance between the first housing and the second housing may vary depending on whether the state of the electronic device (101) is a flat / open state, a folded state, or an intermediate state. When the foldable electronic device is in an intermediate state, it can perform a photographing operation through remote control while it is placed on the floor or a structure. For example, a user can place the foldable electronic device in an intermediate state at a certain distance and provide a photographing command to the foldable electronic device through various gestures or a wirelessly connected wearable device. At this time, the foldable electronic device can provide a preview image through an external display provided externally. The aforementioned foldable device may include a multi-foldable (e type, Z type, G type) implemented with at least two hinges, in addition to a vertically foldable flip type or horizontally foldable foldable smartphone.

[0123] Foldable electronic devices can provide preview images with different compositions depending on the folding angle. Figure 14 describes embodiments that can correctly set the composition when the electronic device is a foldable electronic device.

[0124] FIG. 14 is a flowchart for explaining a folding angle guide operation when an electronic device according to one embodiment is a foldable device.

[0125] According to one embodiment, a processor (340) can detect a face and set a region of interest (operation 1401). As described above through various embodiments, the region of interest can be set for the entire body of an object. However, when the foldable electronic device is in an intermediate state, the region of interest is likely to be set to the upper body of the object, taking into account the screen size of the external display.

[0126] According to one embodiment, the processor (340) may guide to reduce the folding angle between the first housing and the second housing (operation 1405) if the face is located at the top of the preview image or the distance between the top of the region of interest and the top of the preview image is less than or equal to a predetermined distance (operation 1403 - Yes). The foldable electronic device according to one embodiment may provide the preview image through an external display provided externally and provide a guide to reduce the folding angle to the user through the external display.

[0127] According to one embodiment, if the distance between the top of the region of interest and the top of the preview image is less than or equal to a predetermined distance, the processor (340) may display a user interface on the preview image that guides the user to reduce the folding angle of the foldable device. In this case, if the folding angle changes according to the user's operation, the processor (340) may proceed to operation 1411.

[0128] According to one embodiment, the processor (340) may guide to increase the folding angle between the first housing and the second housing (operation 1409) if the face is located at the bottom of the preview image or the distance between the bottom of the area of ​​interest and the bottom of the preview image is less than or equal to a predetermined distance (operation 1407). The foldable electronic device according to one embodiment may provide the preview image through an external display provided externally and provide a guide to increase the folding angle to the user through the external display.

[0129] Additionally, in addition to the motion shown in motion 1407, the face is located at the "bottom" of the preview image or the distance between the bottom of the region of interest and the bottom of the preview image is less than a predetermined distance.

[0130] According to one embodiment, if the distance between the bottom of the region of interest and the bottom of the preview image is less than or equal to a predetermined distance, the processor (340) may display a user interface on the preview image that guides the user to increase the folding angle of the foldable device. In this case, if the folding angle changes according to the user's operation, the processor (340) may proceed to operation 1411.

[0131] Meanwhile, a foldable electronic device according to one embodiment may include a motion sensor that generates a signal for detecting movement of the foldable electronic device. The foldable electronic device may determine whether the electronic device is moving based on the signal generated by the motion sensor. If the foldable electronic device determines that no movement has occurred, it may detect a face according to operation 1401 and set a region of interest, thereby displaying the region of interest on an external display.

[0132] Meanwhile, the electronic device according to one embodiment may calculate a target zoom factor based on a minimum margin value when the face is located at an appropriate position in the preview area or the area of ​​interest is spaced apart from the top and bottom of the preview image by a predetermined distance (operation 1411).

[0133] A processor (340) according to one embodiment can control the camera so that a preview image is output at a target zoom ratio (operation 1413).

[0134] According to one embodiment, the processor (340) may output a preview image based on a target zoom ratio, and then enter a shooting and shooting standby state according to a user's control command (operation 1415).

[0135] An electronic device (e.g., the electronic device (101) of FIG. 1) according to one embodiment may include a first camera (e.g., the first camera (310)), a second camera (e.g., the second camera (320)), a display (e.g., the display (160) of FIG. 1), at least one processor (e.g., the processor (120) of FIG. 1, the processor (340) of FIG. 3)), and a memory (e.g., the memory (130) of FIG. 1) that stores instructions. The instructions according to one embodiment may be executed by the at least one processor to cause the electronic device to: acquire a first image based on a first zoom ratio through the first camera for a predetermined period of time. The instructions according to one embodiment may display a preview image based on the first image on the display. The instructions according to one embodiment may detect at least one object included in the first image, and set a region of interest for the at least one detected object. Instructions according to one embodiment may set a margin area excluding the area of ​​interest from the entire area of ​​the preview image. Instructions according to one embodiment may change the zoom ratio of the first camera from the first magnification to the second magnification or switch the first camera to the second camera based on the minimum margin value, which is the shortest length in the margin area.

[0136] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: if the minimum margin value is less than or equal to a minimum threshold length, switch the first camera to a second camera, acquire a second image through the second camera, and set a region of interest for at least one object included in the second image.

[0137] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: obtain a first minimum margin value having a shortest length in a margin area based on a first image; and obtain a second minimum margin value having a shortest length in a margin area based on a preview image.

[0138] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: control the first camera to zoom out the first image if the first minimum margin value is greater than the minimum threshold length and the second minimum margin value is less than or equal to the minimum threshold length.

[0139] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: control the first camera to zoom in on the first image if the first minimum margin value and the second minimum margin value are greater than a minimum threshold length.

[0140] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: detect a face in an object included in a first image, and, if at least a top-to-bottom length of the object is less than a predetermined multiple of a top-to-bottom length of the face, set an upper body region of interest that includes the face and at least a portion of the object.

[0141] In one embodiment, instructions, executed by at least one processor, may cause an electronic device to: set an upper body margin region excluding an upper body region of interest in a first image. In one embodiment, the upper body margin region may include a first margin length based on an upper portion of the upper body region of interest, a second margin length based on a left portion of the upper body region of interest, and a third margin length based on a right portion of the upper body region of interest.

[0142] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: control the first camera to zoom in on the first image when the first margin length is greater than the first reference margin length and the second margin length and the third margin length are greater than the second reference margin length, and control the first camera to stop zooming in when the first margin length reaches the first reference margin length or the second margin length or the third margin length reaches the second reference margin length.

[0143] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: control the first camera to zoom out the first image when the first margin length is less than the third reference margin length, and the second margin length and the third margin length are less than the fourth reference margin length, and control the first camera to stop zooming out when the first margin length reaches the third reference margin length or the second margin length or the third margin length reaches the fourth reference margin length due to the zooming out.

[0144] An electronic device according to one embodiment includes a foldable electronic device, and a display may be provided on the outside of the foldable electronic device.

[0145] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: display a preview image based on the first image on an external display.

[0146] According to one embodiment, the foldable electronic device may further include a motion sensor that generates a signal to detect movement of the foldable electronic device. According to one embodiment, the instructions may be executed by at least one processor to cause the foldable electronic device to: determine whether the foldable electronic device is moving based on the signal when the first housing and the second housing of the foldable electronic device are in an intermediate state at a predetermined angle, and display an area of ​​interest on an external display if there is no movement of the foldable electronic device.

[0147] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: display a user interface in the preview image that guides reducing a folding angle of the foldable device if a distance between a top of the region of interest and a top of the preview image is less than or equal to a predetermined distance.

[0148] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: display a user interface in the preview image that guides increasing a folding angle of the foldable device if a distance between a bottom of the region of interest and a bottom of the preview image is less than or equal to a predetermined distance.

[0149] In one embodiment, the instructions, executed by at least one processor, may cause the electronic device to: if a plurality of objects are detected in a first image, set a region of interest that includes all of the plurality of objects.

[0150] According to one embodiment, a method of operating an electronic device may include an operation of acquiring a first image based on a first zoom magnification for a predetermined period of time through a first camera. According to one embodiment, the method of operating an electronic device may include an operation of displaying a preview image based on the first image on a display. According to one embodiment, the method of operating an electronic device may include an operation of detecting at least one object included in the first image and setting a region of interest for the detected at least one object. According to one embodiment, the method of operating an electronic device may include an operation of setting a margin area excluding the region of interest from an entire area of ​​the preview image. According to one embodiment, the method of operating an electronic device may include an operation of changing a zoom magnification of the first camera from the first magnification to a second magnification based on a minimum margin value that is a shortest length in the margin area, or switching the first camera to a second camera having a second field of view larger than a first field of view of the first camera.

[0151] An operating method of an electronic device according to one embodiment may further include: if a minimum margin value is less than or equal to a minimum threshold length, switching a first camera to a second camera; acquiring a second image through the second camera; and setting a region of interest for at least one object included in the second image.

[0152] An operating method of an electronic device according to one embodiment may further include an operation of obtaining a first minimum margin value having a shortest length in a margin area based on a first image; and an operation of obtaining a second minimum margin value having a shortest length in a margin area based on a preview image.

[0153] An operating method of an electronic device according to one embodiment may further include an operation of controlling a first camera so that a first image is zoomed out when a first minimum margin value is greater than a minimum threshold length and a second minimum margin value is less than or equal to the minimum threshold length.

[0154] An operating method of an electronic device according to one embodiment may further include an operation of controlling a first camera so that a first image is zoomed in when the first minimum margin value and the second minimum margin value are greater than a minimum threshold length.

[0155] The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by a person having ordinary knowledge in the technical field to which the present disclosure pertains.

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

Claims

1. In electronic devices, A first camera having a first field of view; A second camera having a second field of view wider than the first field of view; display; at least one processor; and Contains memory that stores instructions, The instructions, executed by the at least one processor, cause the electronic device to: Acquire a first image based on a first zoom ratio for a certain period of time through the first camera, Displaying a preview image based on the first image on the display, Detecting at least one object included in the first image, and setting a region of interest for the detected at least one object, Set a margin area excluding the area of ​​interest in the entire area of ​​the above preview image, An electronic device that changes the zoom ratio of the first camera from the first magnification to the second magnification or switches the first camera to the second camera based on the minimum margin value, which is the shortest length in the margin area.

2. In paragraph 1, The instructions, executed by the at least one processor, cause the electronic device to: If the minimum margin value is less than or equal to the minimum threshold length, the first camera is switched to the second camera, Acquire a second image through the second camera, An electronic device for setting a region of interest for at least one object included in the second image.

3. In paragraph 1, The instructions, executed by the at least one processor, cause the electronic device to: Based on the first image, a first minimum margin value having the shortest length in the margin area is obtained, An electronic device that obtains a second minimum margin value having the shortest length in the margin area based on the above preview image.

4. In paragraph 3, The instructions, executed by the at least one processor, cause the electronic device to: An electronic device that controls the first camera so that the first image is zoomed out when the first minimum margin value is greater than the minimum threshold length and the second minimum margin value is less than or equal to the minimum threshold length.

5. In paragraph 3, The instructions, executed by the at least one processor, cause the electronic device to: An electronic device that controls the first camera so that the first image is zoomed in when the first minimum margin value and the second minimum margin value are greater than a minimum threshold length.

6. In paragraph 1, The instructions, executed by the at least one processor, cause the electronic device to: An electronic device that detects a face in an object included in the first image, and sets an upper body region of interest including the face and at least a portion of the object if the upper and lower length of the object is less than a predetermined multiple of the upper and lower length of the face.

7. In paragraph 6, The instructions, executed by the at least one processor, cause the electronic device to: In the first image above, set the upper body margin area excluding the upper body interest area, The upper body margin area above is, An electronic device comprising a first margin length based on the upper part of the upper body area of ​​interest, a second margin length based on the left part of the upper body area of ​​interest, and a third margin length based on the right part of the upper body area of ​​interest.

8. In paragraph 7, The instructions, executed by the at least one processor, cause the electronic device to: When the first margin length is greater than the first reference margin length, and the second margin length and the third margin length are greater than the second reference margin length, the first camera is controlled so that the first image is zoomed in; An electronic device that controls the first camera so that the zoom-in is stopped when the first margin length reaches the first reference margin length, or the second margin length or the third margin length reaches the second reference margin length.

9. In paragraph 7, The instructions, executed by the at least one processor, cause the electronic device to: When the first margin length is less than the third reference margin length, and the second margin length and the third margin length are less than the fourth reference margin length, the first camera is controlled so that the first image is zoomed out, An electronic device that controls the first camera so that the zoom out is stopped when the first margin length reaches the third reference margin length, or when the second margin length or the third margin length reaches the fourth reference margin length.

10. In paragraph 1, The above electronic device, Including foldable electronic devices, An electronic device wherein the above display is an external display provided on the outside of the foldable electronic device.

11. In paragraph 10, The instructions, executed by the at least one processor, cause the electronic device to: An electronic device in which the foldable electronic device displays a preview image based on the first image on the external display.

12. In paragraph 11, further comprising a motion sensor that generates a signal to detect movement of the foldable electronic device; The instructions, executed by the at least one processor, cause the electronic device to: In an intermediate state where the first housing and the second housing of the above foldable electronic device form a predetermined angle, Based on the signal, determine whether the foldable electronic device is moving, An electronic device that displays the area of ​​interest on the external display when there is no movement of the foldable electronic device.

13. In paragraph 12, The instructions, executed by the at least one processor, cause the electronic device to: An electronic device that displays a user interface on the preview image that guides reducing the folding angle of the foldable device when the distance between the top of the region of interest and the top of the preview image is less than or equal to a predetermined distance.

14. In paragraph 13, The instructions, executed by the at least one processor, cause the electronic device to: An electronic device that displays a user interface on the preview image that guides increasing the folding angle of the foldable device when the distance between the bottom of the area of ​​interest and the bottom of the preview image is less than or equal to a predetermined distance.

15. In the method of operating an electronic device, An action of acquiring a first image based on a first zoom ratio for a certain period of time through a first camera; An action of displaying a preview image based on the first image on the display; An operation of detecting at least one object included in the first image and setting a region of interest for the at least one detected object; An operation of setting a margin area excluding the area of ​​interest in the entire area of ​​the above preview image; and An operating method of an electronic device, comprising: changing the zoom magnification of the first camera from the first magnification to the second magnification based on a minimum margin value that is the shortest length in the margin area, or switching the first camera to a second camera having a second field of view larger than the first field of view of the first camera.

Citation Information

Patent Citations

  • The system and method for assigning counselors in the call center system

    KR1020240163267A

  • Manufacturing method of quantum dot and light emitting diode including the same

    KR102922964B1

  • Imaging apparatus

    US20120098992A1

  • Automatically Setting Zoom Level For Image Capture

    US20210067701A1

  • Proximity framing in a video system

    US20230401890A1