Method and electronic device for automatic focus control
By using a processor to select the appropriate camera based on distance information for initial focus in portable electronic devices, the auto-focus function is improved, addressing the issue of delayed focus adjustment and user inconvenience in different camera modes and environments.
Patent Information
- Application Number
- PCT/KR2024/010251
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-10-04
- Filing Date
- 2024-07-17
- Publication Date
- 2025-01-30
AI Technical Summary
In portable electronic devices, the auto-focus function often fails to quickly and accurately adjust the focus when switching between different camera modes or environments, leading to delayed focus adjustment and user inconvenience.
The electronic device uses a processor to obtain distance information from sensors before displaying a preview image, selecting the appropriate camera based on this information to set the initial focus position, thereby reducing focus adjustment time and user discomfort.
This method enables faster and more accurate auto-focus adjustment, enhancing user experience by ensuring correct focus settings in various shooting environments without causing screen lag or inconvenience.
Smart Images

Figure KR2024010251_30012025_PF_FP_ABST
Abstract
Description
Autofocus control method and electronic device thereof
[0001] The present disclosure relates to a method for controlling auto focus during image capture and an electronic device thereof.
[0002] As the possession of portable electronic devices has become more common in daily life, the use of their camera functions has increased significantly. Taking pictures with these devices has become an indispensable feature, to the point that camera functions are becoming a criterion for selecting a portable electronic device. Recently, as camera functions implemented in portable electronic devices have become more sophisticated, autofocus, which automatically focuses on a subject, is quickly becoming a standard feature in portable electronic devices. For example, when autofocus is activated, the electronic device detects the distance from the subject and adjusts the focus by moving the camera lens based on the detected distance, thereby capturing the subject clearly.
[0003] 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-described matters constitute prior art related to the present disclosure.
[0004] According to an embodiment of the present disclosure, an electronic device may include a plurality of cameras having different focal lengths, one or more sensors for detecting a distance to an object, a display, a processor, and a memory for storing instructions. The processor may be configured to, when the instructions are executed, cause the electronic device to receive an input for starting execution of a camera application. The processor may be configured to, when the instructions are executed, obtain distance information about the object through the sensor after the input is received and before a preview image by execution of the camera application is displayed. The processor may be configured to, when the instructions are executed, cause the electronic device to select a camera among the plurality of cameras for capturing an image of the object based on the distance information. The processor may be configured to, when the instructions are executed, cause the electronic device to determine an initial focus position of the selected camera based on the distance information about the object. The processor may be configured to cause the electronic device to display a preview image including the object on the display based on an initial focus position of the selected camera when the instructions are executed.
[0005] According to an embodiment of the present disclosure, a method of operating an electronic device may include an operation of receiving an input for starting execution of a camera application. The method of operating the electronic device may include an operation of obtaining distance information about an object through a sensor after the input is received and before a preview image is displayed by execution of the camera application. The method of operating the electronic device may include an operation of selecting a camera for capturing an image of the object from among a plurality of cameras based on the distance information. The method of operating the electronic device may include an operation of confirming an initial focus position of the selected camera based on the distance information about the object. The method of operating the electronic device may include an operation of displaying a preview image including the object based on the initial focus position of the selected camera.
[0006] A computer-readable recording medium according to an embodiment of the present disclosure may include programs executable on a computer. The programs may perform an operation of receiving an input for initiating execution of a camera application. The programs may perform an operation of acquiring distance information about an object through a sensor before a preview image is displayed by execution of the camera application after receiving the input. The programs may perform an operation of selecting a camera for photographing the object among a plurality of cameras based on the distance information. The programs may perform an operation of confirming an initial focus position of the selected camera based on the distance information about the object. The programs may perform an operation of displaying a preview image including the object based on the initial focus position of the selected 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 illustrating a camera module according to various embodiments.
[0009] FIG. 3 is a drawing illustrating a configuration of an electronic device according to one embodiment.
[0010] FIG. 4 is a diagram illustrating a method of driving an autofocus function using multiple cameras in an electronic device, according to one embodiment.
[0011] FIG. 5 is a drawing illustrating an operation of providing an auto-focus function in an electronic device according to a comparative example.
[0012] FIG. 6 is a diagram illustrating an operation of providing an auto-focus function in an electronic device according to one embodiment.
[0013] FIG. 7 is a flowchart illustrating a method of operating an electronic device according to one embodiment.
[0014] FIG. 8 is a flowchart illustrating a method for controlling autofocus based on distance information in an electronic device, according to one embodiment.
[0015] FIG. 9 is a flowchart illustrating a method of operating an electronic device according to one embodiment.
[0016] In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components.
[0017] Hereinafter, various embodiments disclosed in this document will be described with reference to the attached drawings. It should be understood that this is not intended to limit the various embodiments of this document to a specific form, but rather encompasses various modifications, equivalents, and / or alternatives of the present disclosure.
[0018] To provide a camera's auto focus (AF) function, it is necessary to quickly and accurately calculate the focal length and operate the mechanism. Electronic devices such as smartphones can automatically adjust the focus on a subject by using a range sensor or depth camera that can measure the distance to the subject (or object). Typically, after a camera application is launched and preview images are received from one or more cameras, the electronic device calculates the focus position based on the measured distance to the subject and moves the camera lens based on the calculated focus position to perform the auto focus function. At this time, the initial position to which the camera lens moves the focus may be the final focus position set during the previous use or (after a certain period of time) the default pan position. Due to this, when a new camera application is launched in a different shooting environment than before, the focus on the subject may not be correct, which may take time to adjust, and the screen may visually shake due to the switching of cameras (e.g., switching from a wide-angle camera to an ultra-wide-angle camera) or the change of focus during the focus adjustment process, which may cause inconvenience to the user.
[0019] In various embodiments of the present document, various embodiments can be provided to reduce the time required for automatically adjusting focus and inconvenience to the user by acquiring distance information measured for a subject from a distance measurement sensor before displaying a preview image to automatically adjust focus for the subject, and presetting an initial position of focus based on the acquired distance information.
[0020] The technical tasks to be achieved in this document are not limited to the technical tasks mentioned above, and other technical tasks not mentioned will be clearly understood by those with ordinary knowledge in the technical field to which this document pertains.
[0021] FIG. 1 is a diagram illustrating an electronic device within a network environment (100) according to one embodiment.
[0022] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).
[0023] The processor (120) may control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing, for example, software (e.g., a program (140)), and may perform various data processing or calculations. According to one embodiment, as at least a part of the data processing or calculation, the processor (120) may store a command or data received from another component (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the command or data stored in the volatile memory (132), and store the resulting data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or a secondary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together therewith. For example, if the electronic device (101) includes a main processor (121) and a secondary processor (123), the secondary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a specified function. The secondary processor (123) may be implemented separately from the main processor (121) or as a part thereof.
[0024] The auxiliary processor (123) may control at least a part 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.
[0025] 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).
[0026] 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).
[0027] 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).
[0028] 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. According to one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0029] 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.
[0030] 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).
[0031] 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.
[0032] 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.
[0033] 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., the 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).
[0034] A haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0035] 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.
[0036] 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).
[0037] 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.
[0038] 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, Wi-Fi (wireless fidelity) direct, or IrDA (infrared data association)) 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).
[0039] 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) may 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.
[0040] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). According to 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). According to 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 selected at least one antenna. According to 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).
[0041] According to various embodiments, the antenna module (197) may form a mmWave antenna module. According to one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., a bottom surface) 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 to a second surface (e.g., a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.
[0042] 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)).
[0043] 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 using 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.
[0044] FIG. 2 is a block diagram (200) illustrating a camera module (180) according to various embodiments.
[0045] Referring to FIG. 2, the camera module (180) may include a lens assembly (210), a flash (220), an image sensor (230), an image stabilizer (240), a memory (250) (e.g., a buffer memory), or an image signal processor (260). The lens assembly (210) may collect light emitted from a subject that is a target of image capturing. The lens assembly (210) may include one or more lenses. According to one embodiment, the camera module (180) may include a plurality of lens assemblies (210). In this case, the camera module (180) may form, for example, a dual camera, a 360-degree camera, or a spherical camera. Some of the plurality of lens assemblies (210) may have the same lens properties (e.g., angle of view, focal length, autofocus, f-number, or optical zoom), or at least one lens assembly may have one or more lens properties that are different from the lens properties of the other lens assemblies. A lens assembly (210) may include, for example, a wide-angle lens or a telephoto lens.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] FIG. 3 is a drawing illustrating the configuration of an electronic device (300) according to one embodiment.
[0051] Referring to FIG. 3, an electronic device (300) is a device that sets an initial focus of a camera based on distance information acquired in advance before displaying a preview image when capturing an image using an auto-focus function, and may include a plurality of cameras (310), one or more sensors (320), a display (330), at least one processor (340), or a memory (350). In FIG. 3, the electronic device (300) may correspond to the electronic device (101) illustrated in FIG. 1.
[0052] In one embodiment, a plurality of cameras (310) (e.g., the camera module (180) of FIG. 1) may capture a subject (or object) according to a user's operation. For example, when a camera application is executed, the plurality of cameras (310) may automatically set a focus on the subject based on distance information measured for the subject, and may acquire a captured image based on the set focus. According to various embodiments, the electronic device (300) may include a plurality of cameras having different focal lengths.
[0053] In one embodiment, one or more sensors (320) (e.g., sensor module (176) of FIG. 1) can measure a distance between the electronic device (300) (or camera (310)) and a subject. For example, the one or more sensors (320) can include a laser sensor, an ultrasonic sensor, an infrared ray sensor, a light detection and ranging (LIDAR) sensor, a time-of-flight (ToF) sensor (or ToF camera), or any other type of sensor capable of measuring distance.
[0054] In one embodiment, the display (330) (e.g., the display module (160) of FIG. 1) may display images acquired from multiple cameras (310). For example, when a camera application is executed, the display (330) may display preview images acquired from the multiple cameras (310).
[0055] In one embodiment, the display (330) may be configured with at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED), a light emitting diode (LED), an active matrix organic LED (AMOLED), a flexible display, and a 3-dimensional display. In addition, some of these displays may be configured as transparent or light-transmitting so that the outside can be viewed through them. This may be configured in the form of a transparent display including a TOLED (transparent OLED).
[0056] In one embodiment, the memory (350) (e.g., the memory (130) of FIG. 1) may store instructions that, when executed, control at least one processor (340) (e.g., the processor (120) of FIG. 1) to perform various operations. For example, the at least one processor (340) may perform operations for setting an initial focus based on distance information about an object and then providing a preview image.
[0057] In one embodiment, at least one processor (340) may receive an input to initiate execution of a camera application. For example, at least one processor (340) may determine that an input to initiate execution of the camera application has been received based on a user's touch input or voice input.
[0058] In one embodiment, at least one processor (340) may obtain distance information about an object from one or more sensors (320) before a preview image is displayed by execution of a camera application after the input is received. According to various embodiments, the one or more sensors (320) may be controlled to identify the object located within a specified distance and measure the distance from the electronic device (300) to the object in response to an input for initiating execution of the camera application. The one or more sensors (320) may include various types of sensors capable of measuring distance, such as a laser sensor, an ultrasonic sensor, an infrared ray sensor, a light detection and ranging (LIDAR) sensor, a time of flight (TOF) sensor, or the like. For example, the one or more sensors (320) may generate a first signal with respect to a specified range. The first signal may be a signal generated by at least one of a laser, an ultrasonic, or a near-infrared ray. One or more sensors (320) can identify the object in response to receiving a reflection signal for the first signal and measure a distance to the object based on the reflection signal.
[0059] In one embodiment, at least one processor (340) may select a camera among a plurality of cameras (310) to capture an image of the object based on distance information obtained for the object. The at least one processor (340) may determine an appropriate focal length (or angle of view) for capturing an image of the object by considering the distance to the object, and select a camera corresponding to the determined focal length (or angle of view). For example, if the distance information corresponds to a distance appropriate for an ultra-wide camera among a wide camera and an ultra-wide camera, the at least one processor (340) may select an ultra-wide camera to capture images displayed as preview images when displaying the execution screen of the camera application. In another example, if the distance information corresponds to a distance appropriate for a telephoto camera among a wide camera and a telephoto camera, the at least one processor (340) may select a telephoto camera to capture images displayed as preview images when displaying the execution screen of the camera application.
[0060] In one embodiment, at least one processor (340) may determine an initial focus position of the selected camera based on distance information acquired for the object. At least one processor (340) may control the selected camera to automatically focus on the object based on the determined initial focus position before displaying a preview image.
[0061] In one embodiment, at least one processor (340) may control to select a first camera capable of auto-focusing for a distance range less than the first distance value among the plurality of cameras (310) if the acquired distance information is less than the first distance value, and to move the lens of the first camera in response to the confirmed initial focus position. For example, if the at least one processor (340) determines that the object is located within 28 cm using one or more sensors (320), the at least one processor (340) may control the auto-focus function using an ultra-wide camera suitable for shooting within 28 cm.
[0062] In one embodiment, if the acquired distance information is greater than or equal to the first distance value and less than the second distance value, at least one processor (340) may select a second camera capable of auto-focusing for a distance range greater than or equal to the first distance value and less than the second distance value among the plurality of cameras (310), and control the movement of the lens of the second camera in response to the identified initial focus position. For example, if the at least one processor (340) confirms that the object is located in a distance range of 28 cm or more and less than 1.5 m, the at least one processor (340) may control operation for auto-focus using a wide camera suitable for photographing for the corresponding distance range. In another example, if the at least one processor (340) confirms that the object is located in a distance range of 1.5 m or more and less than 4 m, the at least one processor (340) may control operation for auto-focus using a telephoto camera suitable for photographing for the corresponding distance range.
[0063] In one embodiment, if the acquired distance information is greater than or equal to the second distance value or the distance to the object is not confirmed, at least one processor (340) may select a default camera among the plurality of cameras (310) and control the lens of the selected camera to move corresponding to an infinity focus (e.g., pan-focus) position. For example, if the default camera in the electronic device (300) is a wide-angle camera, at least one processor (340) may control the drive for auto-focus based on the infinity focus position of the wide-angle camera. According to various embodiments, reference distance values (or reference distance ranges) for selecting a camera may be set differently depending on the number of the plurality of cameras (310) included in the electronic device (300) and / or the specifications of each camera.
[0064] In one embodiment, at least one processor (340) may display a preview image including the object on the display (330) based on the initial focus position of the selected camera. At least one processor (340) may provide an image acquired through an image sensor of the selected camera in a state where the lens of the selected camera is moved corresponding to the initial focus position as the preview image.
[0065] According to various embodiments, at least one processor (340) may perform auto-focusing before providing a preview image only when no movement of the electronic device (300) is detected upon receiving an input for executing a camera application. For example, the at least one processor (340) may detect movement of the electronic device using an acceleration sensor, a gyro sensor, or other various types of sensors capable of detecting movement before the preview image is displayed by executing the camera application after the input is received. If the detected movement of the electronic device (300) is below a designated threshold level, the at least one processor (340) may control the measurement of a distance to the object using one or more sensors (320).
[0066] FIG. 4 is a diagram illustrating a method of driving auto-focus using a plurality of cameras (310) in an electronic device (300), according to an embodiment. In FIG. 4, the first camera (410), the second camera (420), or the third camera (430) are exemplary configurations of the plurality of cameras (310) illustrated in FIG. 3, and the number of cameras included in the electronic device (300) may not be limited thereto. The distance measurement sensor (440) is a means for detecting an object located within a specified distance and measuring a distance to the object, and may correspond to one or more sensors (320) illustrated in FIG. 3. According to various embodiments, the electronic device (300) may further include an inertial measurement sensor (450) for detecting movement. The inertial measurement sensor (450) may detect whether a movement greater than a specified level has occurred in the electronic device (300).
[0067] Referring to FIG. 4, when an input for starting execution of a camera application is received, at least one processor (340) may control a distance measurement sensor (440) to measure a distance between the electronic device (300) and the object. The distance measurement sensor (440) may include various types of sensors capable of measuring distance, such as a laser sensor, an ultrasonic sensor, an infrared ray sensor, a light detection and ranging (LIDAR) sensor, a time of flight (TOF) sensor, or other sensors capable of measuring distance. The distance measurement sensor (440) may measure the distance to the object using a time of flight (ToF) method, a time difference of arrival (TDoA) method, or at least one other method capable of measuring the distance to the object. According to various embodiments, the distance measurement sensor (440) may maintain an enabled state so as to continuously check the distance to the object while the camera application is executed after an input for executing the camera application is received.
[0068] According to various embodiments, at least one processor (340) may perform distance measurement for an object only when no movement exceeding a specified level occurs in the electronic device (300). The at least one processor (340) may, in response to an input for starting execution of the camera application, obtain data related to the movement of the electronic device (300) from the inertial measurement sensor (450). The inertial measurement sensor (450) may include an acceleration sensor that measures acceleration in the x-axis, y-axis, and z-axis directions and a gyro sensor that measures a rotational change amount (angular velocity). The at least one processor (340) may determine whether a movement exceeding a specified level occurs in the electronic device (300) based on the data related to the movement obtained from the inertial measurement sensor (450), and if the determination result indicates that a movement exceeding the specified level occurs in the electronic device (300), the distance measurement operation for the object using the distance measurement sensor (440) may not be performed. At least one processor (300) can measure the distance to the object using the distance measurement sensor (440) if it is determined that no movement has occurred in the electronic device (300) or that the movement detected by the inertial measurement sensor (450) is below the specified level.
[0069] In one embodiment, at least one processor (340) may select a camera for capturing an image of the object based on distance information obtained from a distance measurement sensor (440). At least one processor (340) may determine an appropriate focal length for capturing an image of the object based on the measured distance to the object, and select a camera corresponding to the determined focal length. For example, in the case of macro photography, at least one processor (340) may use one or more sensors (320) to identify an object located within a predetermined distance, and select an ultra-wide camera suitable for macro photography. As another example, when capturing an object located at a distance of about 1 m from the electronic device (300), at least one processor (340) may select a wide camera suitable for capturing at a distance of 1 m.
[0070] In one embodiment, at least one processor (340) may determine an initial focus position of the first camera (410) based on the distance information when the first camera (410) is selected. The at least one processor (340) may transmit the determined initial focus position of the first camera (410) to the image sensor (411) and the AF actuator (412) of the first camera (410). The AF actuator (412) may move the lens of the first camera (410) in response to the determined initial focus position. The image sensor (411) may provide images acquired after the lens of the first camera (410) is moved in response to the initial focus position by the AF actuator (412) as preview images. According to various embodiments, the lens of the first camera (410) may also be moved under the control of the image sensor (411).
[0071] In one embodiment, at least one processor (340) may determine an initial focus position of the second camera (420) based on the distance information when the second camera (420) is selected. The at least one processor (340) may transmit the determined initial focus position of the second camera (420) to the image sensor (421) and the AF actuator (422) of the second camera (420). The AF actuator (422) may move the lens of the second camera (420) in response to the determined initial focus position. The image sensor (421) may provide images acquired after the lens of the second camera (420) is moved in response to the initial focus position by the AF actuator (422) as preview images. According to various embodiments, the lens of the second camera (420) may also be moved under the control of the image sensor (421).
[0072] In one embodiment, at least one processor (340) may determine an initial focus position of the third camera (430) based on the distance information when the third camera (430) is selected. The at least one processor (340) may transmit the determined initial focus position of the third camera (430) to the image sensor (431) and the AF actuator (432) of the third camera (430). The AF actuator (432) may move the lens of the third camera (430) in response to the determined initial focus position. The image sensor (431) may provide images acquired after the lens of the third camera (430) is moved in response to the initial focus position by the AF actuator (432) as a preview image. According to various embodiments, the lens of the third camera (430) may also be moved under the control of the image sensor (431).
[0073] According to various embodiments, at least one processor (340) may set an initial focus using a default camera among the first camera (410), the second camera (420), or the third camera (430) when distance measurement to the object using the distance measurement sensor (440) is impossible or the object is not identified. For example, when the first camera (410) is set as the default camera in the electronic device (300), the at least one processor (340) may control the initial focus to be set based on the infinity focus position of the first camera (410). The AF actuator (412) may be driven to position the lens of the first camera (410) corresponding to the infinity focus position of the first camera (410). The image sensor (411) can provide images acquired after the lens of the first camera (410) is moved to a position corresponding to the infinity focus position of the first camera (410) by the AF actuator (412) as preview images. According to various embodiments, the lens of the first camera (410) may also be moved under the control of the image sensor (411).
[0074] FIG. 5 is a drawing illustrating an operation of providing an auto-focus function in an electronic device (300) according to a comparative example. In the comparative example of FIG. 5, the first camera (401) and the second camera (402) may correspond to any one of a plurality of cameras included in the electronic device (300) (e.g., the camera module (180) of FIG. 1, the plurality of cameras (310) of FIG. 3, or the first to third cameras (410, 420, 430) of FIG. 4). In FIG. 5, the plurality of cameras (310) are described as the first camera (401) and the second camera (402), but the number of cameras included in the electronic device (300) is not limited thereto and may be added according to the specifications of the electronic device (300). In a comparative example, a distance measuring sensor (440) detects an object located within a specified distance and measures a distance to the object, and may correspond to the sensor module (176) of FIG. 1, one or more sensors (320) of FIG. 3, or the distance measuring sensor (440) of FIG. 4. In a comparative example, at least one processor (340) controls overall operations performed in the electronic device (300) in response to execution of a camera application, and may correspond to the processor (120) of FIG. 1, or at least one processor (340) of FIGS. 3 and 4.
[0075] Referring to FIG. 5, when the camera application is executed, power may be supplied to and enabled for the first camera (401), the second camera (402), and / or the distance measurement sensor (440). (Action 501, Action 503, Action 505)
[0076] According to a comparative example, an initial focus may be set by the first camera (401) in operation 511. In the comparative example, the first camera (401) may automatically set an initial focus on an object located within a specified distance when the auto-focus function of the camera is activated. At this time, the position where the initial focus is set may correspond to the final focus position of a previously executed camera application (i.e., the focus position set at the time of termination) or the default pan position.
[0077] According to a comparative example, in operation 513, the first camera (401) can obtain a preview image based on the initial focus. In the comparative example, after the camera application is executed, an image formed on the image sensor of the first camera (401) based on the initial focus can be provided as the preview image.
[0078] According to a comparative example, in operation 515, at least one processor (340) can control to display the preview image acquired from the first camera (401) on a display of the electronic device (300) (e.g., the display module (160) of FIG. 1 or the display (330) of FIG. 3).
[0079] According to a comparative example, in operation 517, the distance measuring sensor (440) can measure the distance to the object. The distance measuring sensor (440) can measure the distance between the electronic device (300) and the object using at least one method capable of measuring the distance to the object, such as a time of flight (ToF) method, a time difference of arrival (TDoA) method, or another method.
[0080] According to a comparative example, in operation 519, at least one processor (340) may calculate a focus position for an object based on a distance to the object obtained from a distance measurement sensor (440). In operation 519, at least one processor (340) may select at least one camera having an appropriate focal length for photographing the object based on the distance to the object, and determine a focus position of the at least one camera. At least one processor (340) may transmit the calculated focus position to the selected camera. Depending on the camera selection of at least one processor (340), the operation of the electronic device (300) can be divided into CASE A (operations 521 to 525) or CASE B (operations 531 to 535). According to a comparative example, when the first camera (401) is selected in the same manner as the camera (first camera) that sets the initial focus in operation 519, operations corresponding to CASE A (operations 521 to 525) can be performed. According to a comparative example, in operation 521, the first camera (401) can automatically adjust the focus based on the calculated focus position while displaying the preview image. The first camera (401) can move the lens corresponding to the calculated focus position.
[0081] According to a comparative example, in operation 523, the first camera (401) can obtain a preview image whose focus is adjusted based on the calculated focus position. In the comparative example, while providing the preview image, the lens of the first camera (401) is moved in response to the calculated focus position, and an image formed on the image sensor of the first camera (401) thereafter can be continuously provided as a preview image subsequent to the preview image of operation 513. If the calculated focus position is different from the initial focus position automatically set in operation 511, screen shake may be observed due to focus adjustment of the first camera (401) while providing the preview image.
[0082] According to a comparative example, in operation 525, at least one processor (340) can control to display the focused preview image acquired from the first camera (401) on the display (330) of the electronic device (300). In the comparative example, operations 519 to 525 can be repeatedly performed while the camera application is running.
[0083] According to a comparative example, when a second camera (402) different from the camera that sets the initial focus in operation 519 (e.g., the first camera (401)) is selected, operations corresponding to CASE B (operations 531 to 535) may be performed. According to a comparative example, in operation 531, the camera that sets the focus on the object may be changed from the first camera (401) to the second camera (402). In operation 531, the second camera (402) may obtain data regarding the calculated focus position from at least one processor (340) and automatically adjust the focus based on the calculated focus position while displaying the preview image.
[0084] According to a comparative example, in operation 533, the second camera (402) can obtain a preview image whose focus is adjusted based on the calculated focus position. In the comparative example, while providing the preview image, the lens of the second camera (402) is moved in response to the calculated focus position, and an image formed on the image sensor of the second camera (402) can be continuously provided as a preview image subsequent to the preview image of operation 513. At this time, screen shake may be observed due to a change in the camera focusing on the object while the preview image is provided.
[0085] According to a comparative example, in operation 535, at least one processor (340) can control to display the focused preview image acquired from the second camera (402) on the display (330) of the electronic device (300). In the comparative example, operations 519 to 535 can be repeatedly performed while the camera application is running.
[0086] FIG. 6 is a diagram illustrating an operation of providing an auto-focus function in an electronic device according to an embodiment. In the embodiment of FIG. 6, the first camera (401) and the second camera (402) may correspond to any one of a plurality of cameras included in the electronic device (300) (e.g., the camera module (180) of FIG. 1, the plurality of cameras (310) of FIG. 3, or the first to third cameras (410, 420, 430) of FIG. 4). In FIG. 6, the plurality of cameras (310) are described as the first camera (401) and the second camera (402), but the number of cameras included in the electronic device (300) is not limited thereto and may be added depending on the specifications of the electronic device (300). In one embodiment, the distance measuring sensor (440) detects an object located within a specified distance and measures a distance to the object, and may correspond to the sensor module (176) of FIG. 1, one or more sensors (320) of FIG. 3, or the distance measuring sensor (440) of FIG. 4. In one embodiment, at least one processor (340) controls overall operations performed in the electronic device (300) in response to an input for executing a camera application, and may correspond to the processor (120) of FIG. 1, or at least one processor (340) of FIGS. 3 and 4.
[0087] Referring to FIG. 6, when an input for starting execution of a camera application is received, power may be supplied to and enabled for the first camera (401), the second camera (402), and / or the distance measurement sensor (440). (Action 601, Action 603, Action 605)
[0088] According to one embodiment, in operation 611, the distance measuring sensor (440) can identify an object located within a specified distance from the electronic device (300) and measure a distance to the identified object before the preview image is displayed by the execution of the camera application after the input is received. The distance measuring sensor (440) can measure the distance between the electronic device (300) and the object using a time of flight (ToF) method, a time difference of arrival (TDoA) method, or at least one other method capable of measuring the distance to the object.
[0089] According to one embodiment, in operation 613, at least one processor (340) may calculate a focus position for the object based on a distance to the object obtained from a distance measurement sensor (440). In operation 613, at least one processor (340) may determine at least one camera having an appropriate focal length for photographing the object based on the distance to the object, and a focus position of the at least one camera.
[0090] According to one embodiment, in operation 615, at least one processor (340) may select a camera to capture an image of the object based on the calculated focal position. For example, at least one processor (340) may select a first camera (401) among the first camera (401) or the second camera (402) that is determined to have an appropriate focal length for capturing an image of the object. At least one processor (340) may transmit the calculated focal position to the first camera (401).
[0091] According to one embodiment, in operation 617, the first camera (401) can automatically adjust the focus based on the calculated focus position. The AF actuator of the first camera (401) can move the lens (e.g., the lens assembly (210) of FIG. 2) of the first camera (401) in response to the calculated focus position before displaying the preview image. According to various embodiments, the lens of the first camera (401) can also be moved in response to the calculated focus position under the control of the image sensor (e.g., the image sensor (230) of FIG. 2) of the first camera (401).
[0092] According to one embodiment, in operation 619, the first camera (401) can obtain a preview image whose focus is adjusted based on the calculated focus position. The first camera (401) can provide an image obtained after the lens of the first camera (401) is moved in response to the calculated focus position as the preview image.
[0093] According to one embodiment, in operation 621, at least one processor (340) may control to display the preview image acquired from the first camera on a display of the electronic device (300) (e.g., the display module (160) of FIG. 1 or the display (330) of FIG. 3). According to various embodiments, operations 611 to 621 may be repeatedly performed while the execution of the camera application is maintained.
[0094] FIG. 7 is a flowchart illustrating an operating method of an electronic device (300) according to an embodiment. According to an embodiment, the electronic device (300) is a device that sets an initial focus of a camera based on distance information acquired in advance before displaying a preview image when capturing an image using an auto-focus function, and may correspond to the electronic device (101) illustrated in FIG. 1. The operations of FIG. 7 may be performed by a processor included in the electronic device (300) (e.g., the processor (120) of FIG. 1 or at least one processor (340) of FIG. 3).
[0095] Referring to FIG. 7, in operation 710, after an input for executing a camera application is received and before a preview image is displayed by the execution of the camera application, the electronic device (300) may obtain distance information about an object through a sensor (e.g., the sensor module (176) of FIG. 1, one or more sensors (320) of FIG. 3, or the distance measuring sensor (440) of FIG. 4). According to various embodiments, the sensor (320) may include a laser sensor, an ultrasonic sensor, an infrared ray sensor, a LIDAR (light detection and ranging) sensor, a TOF (time of flight) sensor, or other various types of sensors capable of measuring distance. In operation 710, the electronic device (300) may, in response to an input to initiate execution of the camera application, control one or more sensors (320) to identify an object located within a specified distance from the electronic device (300) and measure the distance between the electronic device (300) and the object.
[0096] According to various embodiments, the electronic device (300) can generate a first signal for a specified range using one or more sensors (320) in operation 710, and identify the object in response to receiving a reflection signal for the first signal. The electronic device (300) can measure a distance to the object based on the reflection signal received using one or more sensors (320).
[0097] According to one embodiment, in operation 720, the electronic device (300) may determine a camera for capturing an image of the object among a plurality of cameras (e.g., the camera module (180) of FIG. 1, the plurality of cameras (310) of FIG. 3, or the first to third cameras (410, 420, 430) of FIG. 4) based on distance information acquired for the object. In operation 720, the electronic device (300) may determine an appropriate focal length (or angle of view) for capturing an image of the object by considering the distance to the object, and select at least one camera corresponding to the determined focal length (or angle of view). For example, when the distance information corresponds to a distance appropriate for an ultra-wide camera among a wide camera and an ultra-wide camera, the electronic device (300) may select an ultra-wide camera to capture images displayed as preview images when displaying the execution screen of the camera application. For another example, if the distance information corresponds to a distance suitable for a telephoto camera among a wide-angle camera and a telephoto camera, the electronic device (300) may select the telephoto camera to capture images displayed as preview images when displaying the execution screen of the camera application.
[0098] According to one embodiment, in operation 730, the electronic device (300) can identify the initial focus position of the at least one selected camera based on the distance information acquired for the object. Before displaying the preview image, the electronic device (300) can cause the at least one selected camera to automatically focus on the object based on the identified initial focus position. Specific details regarding auto-focus control based on camera selection in operation 720 and initial focus position identification in operation 730 according to various embodiments are described with reference to FIG. 8.
[0099] FIG. 8 is a flowchart illustrating a method for controlling auto-focus based on distance information in an electronic device, according to an embodiment. Referring to FIG. 8, when distance information for the object is acquired in operation 710, the electronic device (300) may determine whether a measured distance for the object is less than a first threshold distance based on the distance information in operation 820. If the measured distance is less than the first threshold distance (operation 820-Yes), the electronic device (300) may select a first camera capable of auto-focusing for a distance range less than the first threshold distance among a plurality of cameras (310). According to an embodiment, the electronic device (300) may control the auto-focus function of the selected first camera in operation 821. In operation 821, the electronic device (300) may determine an initial focus position of the first camera based on the acquired distance information, and control the lens of the first camera to move in response to the determined initial focus position. According to one embodiment, the electronic device (300) can obtain a preview image through the image sensor of the first camera in operation 822. For example, if the electronic device (300) determines that the object is located within 28 cm, the electronic device (300) can control the operation for auto-focus using an ultra-wide camera suitable for shooting within 28 cm, and obtain a preview image through the image sensor of the ultra-wide camera.
[0100] If the measured distance is greater than or equal to the first threshold distance as a result of the determination (operation 820-No), the electronic device (300) may determine whether the measured distance for the object is less than a second threshold distance based on the distance information in operation 830. If the measured distance is less than the second threshold distance as a result of the determination (operation 830-Yes), the electronic device (300) may select a second camera capable of auto-focusing for a distance range that is greater than or equal to the first threshold distance and less than the second threshold distance among the plurality of cameras (310). According to an embodiment, the electronic device (300) may control the auto-focus function of the selected second camera in operation 831. In operation 831, the electronic device (300) may check the initial focus position of the second camera based on the acquired distance information, and control the lens of the second camera to move in response to the checked initial focus position. According to one embodiment, the electronic device (300) can obtain a preview image through the image sensor of the second camera in operation 832. For example, if the electronic device (300) determines that the object is located within a distance range of 28 cm or more and less than 1.5 m, the electronic device (300) can control the operation for auto-focus using a wide-angle camera suitable for shooting within the distance range, and obtain a preview image through the image sensor of the wide-angle camera.
[0101] If the measured distance is greater than or equal to the second threshold distance as a result of the determination (operation 830-No), the electronic device (300) may determine whether the measured distance for the object is less than a third threshold distance based on the distance information in operation 840. If the measured distance is less than the third threshold distance as a result of the determination (operation 840-Yes), the electronic device (300) may select a third camera capable of auto-focusing for a distance range that is greater than or equal to the second threshold distance and less than the third threshold distance among the plurality of cameras (310). According to an embodiment, the electronic device (300) may control the auto-focus function of the selected third camera in operation 841. In operation 841, the electronic device (300) may check the initial focus position of the third camera based on the acquired distance information, and control the lens of the third camera to move in response to the checked initial focus position. According to one embodiment, the electronic device (300) can obtain a preview image through the image sensor of the third camera in operation 842. For example, if the electronic device (300) identifies an object located within a distance range of 1.5 m or more and less than 4 m, the electronic device (300) can control operation for auto-focus using a telephoto camera suitable for shooting within the distance range, and obtain a preview image through the image sensor of the telephoto camera.
[0102] As a result of the above determination, if the measured distance cannot be confirmed or the measured distance is greater than or equal to the third threshold distance (operation 840-No), the electronic device (300) may determine that the measured distance for the object is meaningless in operation 850. In this case, the electronic device (300) may select a default camera among a plurality of cameras (310). The electronic device (300) may control the auto-focus function of the selected default camera in operation 851. In operation 851, the electronic device (300) may control the lens of the default camera to move in response to the infinity focus position of the default camera based on the acquired distance information. According to one embodiment, the electronic device (300) may obtain a preview image through the image sensor of the default camera in operation 852. For example, if the default camera in the electronic device (300) is a wide-angle camera, the electronic device (300) can control the drive for auto-focus based on the infinity focus position of the wide-angle camera. According to various embodiments, the reference distance values (or reference distance ranges) for selecting a camera can be set differently depending on the number of multiple cameras (310) included in the electronic device (300) and / or the specifications of each camera.
[0103] Referring back to FIG. 7, in operation 740, the electronic device (300) may display a preview image including the object on a display (e.g., the display module (160) of FIG. 1 or the display (330) of FIG. 3) based on the initial focus position of the selected camera. In operation 740, the electronic device (300) may provide an image acquired through an image sensor of the selected camera as the preview image while the lens of the selected camera is moved corresponding to the initial focus position.
[0104] According to various embodiments, the electronic device (300) may perform operations 710 to 740 only when no movement of the electronic device (300) is detected when an input for executing the camera application is received. For example, when an input for starting the execution of the camera application is received, the electronic device (300) may detect the movement of the electronic device using an acceleration sensor, a gyro sensor, or other various types of sensors capable of detecting movement. When the detected movement of the electronic device (300) is below a specified threshold level, the electronic device (300) may control the measurement of the distance to the object using one or more sensors (320).
[0105] FIG. 9 is a flowchart illustrating an operating method of an electronic device (300) according to an embodiment. According to an embodiment, the electronic device (300) is a device that sets an initial focus of a camera based on distance information acquired in advance before displaying a preview image when capturing an image using an auto-focus function, and may correspond to the electronic device (101) illustrated in FIG. 1. The operations of FIG. 9 may be performed by a processor included in the electronic device (300) (e.g., the processor (120) of FIG. 1 or at least one processor (340) of FIG. 3).
[0106] Referring to FIG. 9, in operation 910, the electronic device (300) may receive a command (user input) to start execution of a camera application. The electronic device (300) may receive the command (user input) based on a user's touch input or voice input.
[0107] According to one embodiment, in operation 920, the electronic device (300) may determine the movement of the electronic device (300) in response to a command (user input) to start execution of the camera application. For example, the electronic device (300) may obtain data regarding the movement of the electronic device (300) from an inertial measurement sensor (e.g., the inertial measurement sensor (450) of FIG. 4). The inertial measurement sensor (450) may include an acceleration sensor that measures acceleration in the x-axis, y-axis, and z-axis directions and a gyro sensor that measures a rotational change amount (angular velocity).
[0108] According to one embodiment, in operation 930, the electronic device (300) can determine whether a movement above a threshold level has occurred in the electronic device (300) based on data regarding the movement obtained from the inertial measurement sensor (450).
[0109] If the above determination result indicates that a movement exceeding a threshold level has occurred in the electronic device (300) (operation 930-Yes), the electronic device (300) may not perform an auto-focus function based on distance measurement to the object, but may determine an initial focus position according to a specified setting. The electronic device (300) may confirm a specified camera and a specified focus position for photographing the object in operation 935. For example, the specified camera may correspond to a default camera among a plurality of cameras included in the electronic device (300) (e.g., the camera module (180) of FIG. 1, the plurality of cameras (310) of FIG. 3, or the first to third cameras (410, 420, 430) of FIG. 4). The specified focus position may correspond to an infinity focus (e.g., pan-focus) position of the default camera. The electronic device (300) can display a preview image based on the specified focus position of the specified camera in operation 937, and complete the initialization operation of the camera in operation 980. After operation 980, the electronic device (300) can maintain a state for photographing the object based on the specified focus position of the specified camera while the camera application is running.
[0110] If the above determination result indicates that a movement below a threshold level has occurred in the electronic device (300) (Operation 930-No), the electronic device (300) may obtain distance information about the object through a sensor (e.g., the sensor module (176) of FIG. 1, one or more sensors (320) of FIG. 3, or the distance measuring sensor (440) of FIG. 4) in operation 940. According to various embodiments, the sensor (320) may include a laser sensor, an ultrasonic sensor, an infrared ray sensor, a LIDAR (light detection and ranging) sensor, or other various types of sensors capable of measuring distance. In operation 940, the electronic device (300) may identify an object located within a specified distance from the electronic device (300) using the sensor (320), and measure the distance between the electronic device (300) and the object.
[0111] According to one embodiment, in operation 950, the electronic device (300) may select a camera among the plurality of cameras to capture an image of the object based on distance information obtained for the object. In operation 950, the electronic device (300) may determine an appropriate focal length (or angle of view) for capturing an image of the object by considering the distance to the object, and select a camera corresponding to the determined focal length (or angle of view).
[0112] According to one embodiment, in operation 960, the electronic device (300) can determine the initial focus position of the selected camera based on the distance information acquired for the object. After receiving the command (user input), and before displaying the preview image by executing the camera application, the electronic device (300) can cause the selected camera to automatically focus on the object based on the determined initial focus position. According to various embodiments, specific details regarding the camera selection of operation 950 and the determination of the initial focus position of operation 960 may correspond to the operations described in FIG. 8.
[0113] According to one embodiment, in operation 970, the electronic device (300) may display a preview image including the object on a display (e.g., the display module (160) of FIG. 1 or the display (330) of FIG. 3) based on the initial focus position of the selected camera. In operation 970, the electronic device (300) may provide an image acquired through an image sensor of the selected camera as the preview image while the lens of the selected camera is moved corresponding to the initial focus position. The electronic device (300) may complete an initialization operation of the camera in operation 980. After operation 980, the electronic device (300) may maintain a state for photographing the object based on the initial focus position determined for the at least one camera while the camera application is running.
[0114] According to an embodiment, an electronic device (e.g., electronic device (300)) includes a plurality of cameras (310) having different focal lengths, a sensor (320) for detecting a distance, a display (330), a processor (340), and a memory (350) for storing instructions, wherein the processor (340) may be configured to, when the instructions are executed, cause the electronic device (300) to receive an input for starting execution of a camera application, and after the input is received and before a preview image is displayed by the execution of the camera application, obtain distance information about an object through the sensor (320), determine a camera for capturing an image of the object among the plurality of cameras (310) based on the distance information, confirm an initial focus position of the selected camera based on the distance information about the object, and display a preview image including the object on the display (330) based on the initial focus position of the selected camera.
[0115] In one embodiment, the plurality of cameras (310) include a wide camera and an ultra-wide camera, and the processor (340) may be configured to, when the instructions are executed, cause the electronic device (300) to select the ultra-wide camera to capture images displayed as the preview image when the execution screen of the camera application starts to display, if the distance information acquired through the sensor (320) corresponds to a distance suitable for the ultra-wide camera.
[0116] In one embodiment, the plurality of cameras (310) include a wide-angle camera and a telephoto camera, and the processor (340) may be configured to, when the instructions are executed, cause the electronic device (300) to select the telephoto camera to capture images displayed as the preview image when the execution screen of the camera application starts to display, if the distance information acquired through the sensor (320) corresponds to a distance suitable for the telephoto camera.
[0117] In one embodiment, the sensor (320) may include at least one of a laser sensor, an ultrasonic sensor, an infrared ray sensor, a light detection and ranging (LIDAR) sensor, or a time of flight (TOF) sensor.
[0118] In one embodiment, the sensor (320) can identify the object in response to generating a first signal for a specified range and receiving a reflection signal for the first signal.
[0119] In one embodiment, the sensor (320) can measure the distance to the object based on a reflection signal for the first signal.
[0120] In one embodiment, the electronic device (300) further includes an inertial measurement sensor (450) for detecting movement of the electronic device, and the processor (340) may be configured to, when the instructions are executed, use the inertial measurement sensor (450) to determine movement of the electronic device (300) after the input is received and before the preview image is displayed by execution of the camera application, and, if the determined movement of the electronic device (300) is less than a specified threshold level, use the sensor (320) to measure a distance to the object.
[0121] In one embodiment, the inertial measurement sensor (450) may include at least one of an acceleration sensor or a gyro sensor.
[0122] In one embodiment, the processor (340) may be configured to, when the instructions are executed, cause the electronic device (300) to provide, as the preview image, an image acquired through an image sensor of the selected camera in a state where the lens of the selected camera is moved corresponding to the initial focus position.
[0123] According to one embodiment, a method of operating an electronic device (e.g., electronic device (300)) may include an operation of receiving an input for starting execution of a camera application, an operation of obtaining distance information about an object through a sensor (320) after the input is received and before a preview image is displayed by execution of the camera application, an operation of selecting a camera for capturing an image of the object among a plurality of cameras (310) based on the distance information, an operation of determining an initial focus position of the selected camera based on the distance information about the object, and an operation of displaying a preview image including the object based on the initial focus position of the selected camera.
[0124] In one embodiment, the plurality of cameras (310) include a wide camera and an ultra-wide camera, and the operation of selecting a camera for capturing an image of the object may include an operation of selecting the ultra-wide camera for capturing images displayed as the preview image when the execution screen of the camera application starts to display, if the distance information acquired through the sensor (320) corresponds to a distance suitable for the ultra-wide camera.
[0125] In one embodiment, the plurality of cameras (310) include a wide-angle camera and a telephoto camera, and the operation of selecting a camera for capturing an image of the object may include an operation of selecting the telephoto camera to capture images displayed as the preview image when the execution screen of the camera application starts displaying, if the distance information acquired through the sensor (320) corresponds to a distance suitable for the telephoto camera.
[0126] In one embodiment, the sensor (320) may include at least one of a laser sensor, an ultrasonic sensor, an infrared ray sensor, a light detection and ranging (LIDAR) sensor, or a time of flight (TOF) sensor.
[0127] In one embodiment, the method may further include an action of identifying the object in response to receiving a reflection signal for a first signal generated over a specified range using the sensor (320).
[0128] In one embodiment, the method may further include measuring a distance to the object based on a reflection signal for the first signal using the sensor (320).
[0129] In one embodiment, the method may further include an operation of confirming a movement of the electronic device (300) using an inertial measurement sensor (450) when the camera application is executed, after the input is received, and before the preview image is displayed by the execution of the camera application, and an operation of measuring a distance to the object using the sensor (320) if the confirmed movement of the electronic device (300) is below a specified threshold level.
[0130] In one embodiment, the inertial measurement sensor (450) may include at least one of an acceleration sensor or a gyro sensor.
[0131] In one embodiment, the operation of displaying the preview image may include an operation of providing an image acquired through an image sensor of the selected camera in a state where the lens of the selected camera is moved corresponding to the initial focus position as the preview image.
[0132] In one embodiment, a computer-readable recording medium having recorded thereon computer-executable programs may be caused by the computer to perform the following actions: receiving an input for starting execution of a camera application; after the input is received, but before a preview image is displayed by the execution of the camera application, obtaining distance information about an object through a sensor; selecting a camera for capturing an image of the object among a plurality of cameras based on the distance information; determining an initial focus position of the selected camera based on the distance information about the object; and displaying a preview image including the object based on the initial focus position of the selected camera.
[0133] 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.
[0134] 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 disclosed in this document are not limited to the aforementioned devices.
[0135] 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 component (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0136] The term "module" as used herein 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).
[0137] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more commands 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 command among the one or more commands 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 command called. The one or more commands 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.
[0138] According to one embodiment, the method according to various embodiments disclosed in the present document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). TM ) or directly between two user devices (e.g., smartphones), 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.
[0139] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include a single or multiple entities. 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.
Claims
1. In an electronic device (300), Multiple cameras (310) having different focal lengths; A sensor (320) that detects distance; display (330); Processor (340); and Contains a memory (350) for storing instructions, The above instructions, when executed by the processor (340), cause the electronic device (300) to: Receives input to start running the camera application, After the above input is received, before the preview image is displayed by the execution of the camera application, distance information about the object is acquired through the sensor (320), Based on the above distance information, a camera is selected from among the plurality of cameras (310) to capture an image of the object, Determine the initial focus position of the selected camera based on the distance information for the object, An electronic device that displays a preview image including the object on the display (330) based on the initial focus position of the selected camera.
2. In claim 1, The above multiple cameras include a wide camera and an ultra-wide camera, The above instructions, when executed by the processor (340), cause the electronic device (300) to: An electronic device that selects the ultra-wide-angle camera to capture images displayed as the preview image when the execution screen of the camera application starts displaying if the distance information acquired through the sensor corresponds to a distance suitable for the ultra-wide-angle camera.
3. In claim 1, The above multiple cameras include a wide-angle camera and a telephoto camera, The above instructions, when executed by the processor (340), cause the electronic device (300) to: An electronic device that selects the telephoto camera to capture images displayed as the preview image when the execution screen of the camera application starts displaying if the distance information acquired through the sensor corresponds to a distance suitable for the telephoto camera.
4. In claim 1, The above sensor (320) is, An electronic device comprising at least one of a laser sensor, an ultrasonic sensor, an infrared ray sensor, a LIDAR (light detection and ranging) sensor, or a TOF (time of flight) sensor.
5. In claim 4, The above sensor (320) is an electronic device that generates a first signal for a specified range, identifies the object in response to receiving a reflection signal for the first signal, and measures a distance to the object based on the reflection signal for the first signal.
6. In claim 1, It further includes an inertial measurement sensor (450) that detects the movement of the electronic device (300), The above instructions, when executed by the processor (340), cause the electronic device (300) to: After the above input is received, before the preview image is displayed by the execution of the camera application, the movement of the electronic device (300) is checked using the inertial measurement sensor (450), If the movement of the above-mentioned confirmed electronic device (300) is below a specified threshold level, the distance to the object is measured using the sensor (320). An electronic device in which the above inertial measurement sensor (450) includes at least one of an acceleration sensor and a gyro sensor.
7. In claim 1, The above instructions, when executed by the processor (340), cause the electronic device (300) to: An electronic device that provides an image acquired through an image sensor of the selected camera while the lens of the selected camera is moved in response to the initial focus position as the preview image.
8. In the method, An action to receive input to start running the camera application; An operation of acquiring distance information about an object through a sensor (320) before a preview image is displayed by execution of the camera application after the above input is received; An operation of selecting a camera for capturing an image of the object among a plurality of cameras (310) based on the above distance information; An operation of determining an initial focus position of the selected camera based on distance information for the object; and A method comprising the action of displaying a preview image including the object based on an initial focus position of the selected camera.
9. In claim 8, The above multiple cameras include a wide camera and an ultra-wide camera, The action of selecting a camera to capture an image of the above object is: A method including an action of selecting the ultra-wide-angle camera to capture images displayed as the preview image when the execution screen of the camera application starts displaying if the distance information acquired through the sensor corresponds to a distance suitable for the ultra-wide-angle camera.
10. In claim 8, The above multiple cameras include a wide-angle camera and a telephoto camera, The action of selecting a camera to capture an image of the above object is: A method including an action of selecting the telephoto camera to capture images displayed as the preview image when the execution screen of the camera application starts displaying if the distance information acquired through the sensor corresponds to a distance suitable for the telephoto camera.
11. In claim 8, The above sensor (320) is, A method comprising at least one of a laser sensor, an ultrasonic sensor, an infrared ray sensor, a LIDAR (light detection and ranging) sensor, or a TOF (time of flight) sensor.
12. In claim 11, An operation of identifying the object in response to receiving a reflection signal for a first signal generated for a specified range using the above sensor (320); and A method further comprising an operation of measuring a distance to the object based on a reflection signal for the first signal using the sensor (320).
13. In claim 8, After the input is received, before the preview image is displayed by the execution of the camera application, an operation of checking the movement of the electronic device (300) using the inertial measurement sensor (450); and If the movement of the above-mentioned confirmed electronic device (300) is below a specified threshold level, the method further includes an operation of measuring the distance to the object using the sensor (320). A method wherein the above inertial measurement sensor (450) includes at least one of an acceleration sensor and a gyro sensor.
14. In claim 8, The action of displaying the above preview image is: A method including an operation of providing an image acquired through an image sensor of the selected camera as the preview image while the lens of the selected camera is moved corresponding to the initial focus position.
15. In a computer-readable recording medium on which programs executable on a computer are recorded, The above programs are, An action to receive input to start running the camera application; An operation of acquiring distance information about an object through a sensor before a preview image is displayed by execution of the camera application after the above input is received; An action of selecting a camera among a plurality of cameras to capture an image of the object based on the above distance information; An operation of determining an initial focus position of the selected camera based on distance information for the object; and A recording medium caused by the computer to perform an operation of displaying a preview image including the object based on the initial focus position of the selected camera.
Citation Information
Patent Citations
Apparatus and method for capturing multi-focus image using continuous autofocus
KR1020140043265A
Aerosol generating device
KR1020220020046A
Electric apparatus and method for taking a photogragh in electric apparatus
KR102206866B1
Electronic device and method for changing location of preview image according to direction of camera
KR102485127B1
Air nozzle for microscope
KR102877999B1