Video generation method for flicker correction and electronic equipment

By using multiple cameras to work together and select and replace images with appropriate light intensity, the flicker problem of video capture in fluorescent lighting environments is solved and the image quality of the video is improved.

CN120642342APending Publication Date: 2025-09-12SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380093440.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-06
Filing Date
2023-11-07
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

When capturing video in fluorescent lighting environments under AC power, image sensors using global shutter or rolling shutter methods are prone to flicker, which affects image quality.

Method used

Multiple cameras work together to generate a video by selecting images with light intensity within a specific threshold range. The images captured by the first camera and the images with light intensity that does not meet the threshold are replaced with images captured by the second camera at a specific time to generate a flicker-corrected video.

Benefits of technology

Effectively reduces or eliminates flicker in videos, improving image quality, especially for videos captured under fluorescent lighting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120642342A_ABST
    Figure CN120642342A_ABST
Patent Text Reader

Abstract

Disclosed are an electronic device and a method for: obtaining a first image captured each first cycle using a first camera; obtaining a second image captured each second period using a second camera; selecting the first image on the basis that the brightness value of the first image is less than or equal to a first threshold value and greater than or equal to a second threshold value; selecting a second image captured immediately prior to capturing the first image on the basis of the brightness value being greater than the first threshold or less than a second threshold; and generating a video on the basis of the selected first image or second image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to methods and apparatus for generating flicker-corrected videos. Specifically, methods and apparatus for generating flicker-corrected videos based on images captured using multiple cameras may be provided. Background Art

[0002] When capturing video in an environment with fluorescent lighting using AC power, periodic light and dark stripes or overall brightness (or intensity) differences between frames may appear in the acquired video. This phenomenon is known as flicker. Depending on the type of image sensor, the method for accumulating charge differs. The global shutter method matches the timing of charge accumulation on a plane-by-plane basis, while the rolling shutter method matches the timing of charge accumulation on a line-by-line basis.

[0003] Video captured with an image sensor using a global shutter method may exhibit flicker, which occurs when there are differences in brightness between frames across the entire plane. Video captured with an image sensor using a rolling shutter method may exhibit flicker, which occurs when there are differences in brightness between rows within a plane. Methods to correct for flicker may be needed to improve the user's subjective image quality. Summary of the Invention

[0004] Solution to the problem

[0005] According to an embodiment of the present disclosure, an electronic device is provided, including a first camera, a second camera, a memory storing at least one instruction, and at least one processor. The at least one processor may be configured to execute at least one instruction to obtain a first image captured at intervals of a first period by using the first camera. The at least one processor may be configured to execute at least one instruction to obtain a second image captured at intervals of a second period by using the second camera. The at least one processor may be configured to execute at least one instruction to select the first image based on a light intensity value of the first image being less than or equal to a first threshold and greater than or equal to a second threshold. The at least one processor may be configured to execute at least one instruction to select a second image captured before capturing the first image based on a light intensity value being greater than the first threshold or less than the second threshold. The at least one processor may be configured to execute at least one instruction to generate a video based on the selected first image or second image.

[0006] According to an embodiment of the present disclosure, a video generation method is provided. The video generation method may include obtaining a first image captured at intervals of a first period by using a first camera. The video generation method may include obtaining a second image captured at intervals of a second period by using a second camera. The video generation method may include selecting the first image based on a light intensity value of the first image being less than or equal to a first threshold and greater than or equal to a second threshold. The video generation method may include selecting a second image captured before capturing the first image based on a light intensity value being greater than the first threshold or less than the second threshold. The video generation method may include generating a video based on the selected first image or second image.

[0007] According to an embodiment of the present disclosure, one or more computer-readable recording media having stored thereon a program for executing the method may be provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a diagram illustrating flickering occurring in an image according to an embodiment of the present disclosure.

[0009] Figure 2a FIG. 1 is a diagram illustrating an image obtained according to an image capture period of an electronic device according to an embodiment of the present disclosure.

[0010] Figure 2b is a diagram illustrating an image obtained according to an image capturing cycle of an electronic device according to an embodiment of the present disclosure.

[0011] Figure 3 is a diagram illustrating a method of generating a flicker-corrected video performed by an electronic device according to an embodiment of the present disclosure.

[0012] Figure 4 is a flowchart of a method of generating a flicker-corrected video according to an embodiment of the present disclosure.

[0013] Figure 5 is a flowchart of a method for detecting whether flicker exists according to an embodiment of the present disclosure.

[0014] Figure 6 is a diagram illustrating a method of detecting whether flicker exists according to an embodiment of the present disclosure.

[0015] Figure 7 is a flowchart of a method for synchronizing parameters of multiple cameras according to an embodiment of the present disclosure.

[0016] Figure 8 is a diagram illustrating a method of synchronizing parameters of a plurality of cameras according to an embodiment of the present disclosure.

[0017] Figure 9is a flowchart of a method of determining camera settings according to an embodiment of the present disclosure.

[0018] Figure 10 is a diagram illustrating a method of determining camera settings according to light intensity according to an embodiment of the present disclosure.

[0019] Figure 11 is a flowchart of a method for determining an image capturing time of a camera according to an embodiment of the present disclosure.

[0020] Figure 12a is a diagram illustrating a method of determining a time point at which a camera starts capturing according to an embodiment of the present disclosure.

[0021] Figure 12b is a diagram illustrating a method of determining a time point at which a camera starts capturing according to an embodiment of the present disclosure.

[0022] Figure 13 is a diagram illustrating a method of determining an image exhibiting flicker according to an embodiment of the present disclosure.

[0023] Figure 14 is a flowchart of a method for displaying a preview image performed by an electronic device according to an embodiment of the present disclosure.

[0024] Figure 15 is a diagram illustrating a method of displaying a preview image performed by an electronic device according to an embodiment of the present disclosure.

[0025] Figure 16 is a flowchart of a method of correcting an image when ambient light intensity changes according to an embodiment of the present disclosure.

[0026] Figure 17 is a diagram illustrating a method of correcting an image when ambient light intensity changes according to an embodiment of the present disclosure.

[0027] Figure 18 is a diagram illustrating a method of generating a flicker-corrected video by using prediction, performed by an electronic device according to an embodiment of the present disclosure.

[0028] Figure 19 is a diagram illustrating a method of capturing and saving a flicker-corrected video by using an electronic device according to an embodiment of the present disclosure.

[0029] Figure 20 is a block diagram of an electronic device for generating flicker-corrected video according to an embodiment of the present disclosure.

[0030] Figure 21 is a flowchart of a method of generating a flicker-corrected video according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] Throughout this disclosure, the expression "at least one of a, b, or c" refers to only a, only b, only c, both a and b, both a and c, both b and c, all of a, b, and c, or variations thereof.

[0032] The terms used in this disclosure may be general terms currently widely used in the art in consideration of the functions described herein, but may be changed according to the intentions of those skilled in the art, precedents, the emergence of new technologies, etc. In addition, specific terms may be arbitrarily selected by the applicant, and in such cases, the meaning of the selected terms will be described in detail in the relevant description. Therefore, the terms used herein should not be defined by their simple names, but rather based on the meaning of the terms and the overall description of this disclosure.

[0033] Unless the context clearly dictates otherwise, a singular expression may include a plural expression. The terms used herein (including technical or scientific terms) are intended to have the same meaning as those generally understood by those skilled in the art described herein. In addition, although terms including ordinal numbers such as "first" and "second" may be used herein to describe various elements or components, these elements or components should not be limited by the terms. These terms are only used to distinguish one element or component from another.

[0034] Throughout the specification, when a part "includes" or "contains" an element, unless there is a specific description to the contrary, it should be understood that the part may further include other elements, and other elements are not excluded. In addition, terms such as "unit" and "module" described herein refer to a unit for processing at least one function or operation, and can be implemented as hardware or software, or a combination of hardware and software.

[0035] In the present disclosure, since various changes can be made and many embodiments can be provided, specific embodiments are shown in the drawings and will be described in detail in the detailed description. However, the embodiments of the present disclosure are not intended to be limited to the specific embodiments, and it should be understood that all changes, equivalents, and substitutes that do not depart from the spirit and technical scope of the many embodiments are included in the present disclosure.

[0036] When describing the embodiments, when it is determined that the detailed description of the related known technology may unnecessarily obscure the essence of the present disclosure, its detailed description will be omitted. In addition, the numbers (e.g., first, second, etc.) used in the description of the specification are merely identification symbols for distinguishing one element from another.

[0037] Furthermore, throughout the specification, when a component is referred to as being “connected” or “coupled” to another component, it should be understood that the component may be directly connected or coupled to another component, but may also be connected or coupled to another component via another intermediate component, unless there is a specific description to the contrary.

[0038] In addition, in this specification, for elements expressed as "units", "modules", etc., two or more elements may be combined into a single element, or a single element may be divided into two or more elements according to subdivided functions. In addition, each component described below may further perform some or all of the functions performed by another element in addition to its main function, and some of the main functions of each element may also be completely performed by another element.

[0039] Figure 1 is a diagram illustrating flickering occurring in an image according to an embodiment of the present disclosure.

[0040] refer to Figure 1 Electronic device 100 can capture an image of a subject under a fluorescent lamp powered by alternating current (AC). Fluorescent lamps powered by AC have a flicker frequency determined by the frequency of the power supply. For example, when powered by an AC power frequency of 60 Hz, the fluorescent lamp has a flicker frequency of 120 Hz (60 Hz * 2). Similarly, when powered by an AC power frequency of 50 Hz, the fluorescent lamp has a flicker frequency of 100 Hz (50 Hz * 2).

[0041] The brightness of fluorescent lights fluctuates continuously over time. Therefore, the light intensity of a captured image may change depending on the time at which electronic device 100 captures the image. Therefore, when electronic device 100 captures an image of a subject under a fluorescent light using AC power, flicker may occur in the captured image. The flicker that occurs in the image can be based on the relationship between the frames per second (FPS) of electronic device 100 and the flicker frequency of the fluorescent light. For example, flicker may occur in the image captured by electronic device 100 when the FPS of electronic device 100 does not meet the following conditions:

[0042] [Equation 1]

[0043] fps=f light / N (where f light is the frequency of the light source, and N is an integer)

[0044] According to an embodiment, the frequency of the light source may be twice the power frequency of the power supply.

[0045] refer to Figure 2a and Figure 2bA case where the flicker phenomenon occurs in an image captured by the electronic device 100 is described in more detail.

[0046] According to an embodiment of the present disclosure, the electronic device 100 can generate a flicker-corrected video by using images captured by multiple cameras. When the light intensity of the image captured by the first camera falls outside a certain range, the electronic device 100 can generate a video by replacing the image with the image captured by the second camera. Figures 3 to 19 A method of generating a flicker-corrected video performed by the electronic device 100 according to an embodiment of the present disclosure is described in more detail.

[0047] Figure 2a is a diagram illustrating an image obtained according to an image capturing period of an electronic device according to an embodiment of the present disclosure.

[0048] refer to Figure 2a , a graph illustrates light intensity of an image captured with respect to time when the electronic device 100 performs image capturing at a frame rate of 50 fps of 50 Hz in an environment with a light source using an AC power frequency of 60 Hz.

[0049] Because the brightness of the light source changes when the electronic device 100 according to an embodiment performs image capture, images with different light intensities (which may be referred to as frames according to examples of the present disclosure) may be obtained. For example, the light intensity of image 210 captured by the electronic device 100 at 40ms may be 0.4 lux, and the light intensity of an image captured at 60ms may be 0.8 lux. When images of different light intensities are displayed continuously, the video may include flicker, which is a phenomenon in which the image repeatedly becomes brighter and darker.

[0050] Figure 2b is a diagram illustrating an image obtained according to an image capturing cycle of an electronic device according to an embodiment of the present disclosure.

[0051] refer to Figure 2b , a graph illustrates light intensity of an image captured with respect to time when the electronic device 100 performs image capturing at a frame rate of 50 Hz or fps in an environment having a light source using an AC power frequency of 50 Hz.

[0052] Because the brightness of the light source remains the same when the electronic device 100 according to an embodiment of the present disclosure captures an image, an image with the same light intensity can be obtained. For example, the light intensity of an image captured by the electronic device 100 at 40ms may be 0.5 lux, and the light intensity of an image captured at 60ms may be 0.5 lux. Because images with the same light intensity are displayed continuously, the video does not show flickering where the image repeatedly becomes brighter and darker. When the electronic device 100 captures a video using an FPS that satisfies Equation 1, an image with the same light intensity can be obtained each time.

[0053] Figure 3 is a diagram illustrating a method of generating a flicker-corrected video performed by an electronic device according to an embodiment of the present disclosure.

[0054] refer to Figure 3 According to an embodiment of the present disclosure, the electronic device 100 may obtain an image by using the first camera 2030 and the second camera 2040 in an environment where the frequency of the AC power source is 60 Hz.

[0055] The electronic device 100 can capture images at intervals of a first period (e.g., every 1 / 50 second, i.e., 50 fps) using the first camera 2030, and can capture images at intervals of a second period (e.g., every 1 / 60 second, i.e., 60 fps) using the second camera 2040. The first period can be changed depending on the function performed by the electronic device 100. For example, the electronic device 100 can perform image capture functions such as normal capture, slow motion capture, or super slow motion capture. Therefore, the first period can be changed depending on the function of the electronic device 100.

[0056] When the first period does not satisfy Equation 1, the first images captured using the first camera 2030 do not all have the same light intensity. The first images obtained by the electronic device 100 by performing image capture at 50 fps using the first camera 2030 in an environment where the frequency of AC power is 60 Hz may not all have the same light intensity. In repeatedly captured images, when there is a large difference in light intensity between consecutively captured images, a flicker phenomenon may occur.

[0057] When the second period satisfies Equation 1, the second images captured using the second camera 2030 may all have the same light intensity. For example, the second images obtained by the electronic device 100 using the second camera 2040 to capture images at 60 fps in an environment where the AC power frequency is 60 Hz may all have the same light intensity. The electronic device 100 can determine the time when the second camera 2040 begins capturing the second image so that the light intensity of the second image meets the defined condition. For example, the electronic device 100 can determine that the image capture start time of the second camera 2040 is later than the image capture start time of the first camera by tms.

[0058] According to an embodiment of the present disclosure, the electronic device 100 may identify the light intensity of the first image captured using the first camera 2030. The electronic device 100 may determine whether the light intensity of the first image satisfies a defined condition. For example, the electronic device 100 may determine whether the light intensity of the first image is less than or equal to a first threshold (e.g., an upper threshold) and greater than or equal to a second threshold (e.g., a lower threshold).

[0059] Based on the light intensity of the first image captured at 40ms being less than the second threshold, the electronic device 100 may determine that the first image does not meet the condition. The electronic device 100 may generate a video using the second image captured using the second camera 2040 instead of the first image that does not meet the condition.

[0060] By using the first and second images, the electronic device 100 can generate a video having light intensity falling within a defined range. Even when the image is captured at a frame rate (in fps) that does not satisfy Equation 1, the electronic device 100 can generate a flicker-corrected video by using the first and second images.

[0061] According to an embodiment, the video generated by the electronic device 100 may include a first image having a light intensity that satisfies a defined condition and a second image captured before the first image having a light intensity that does not satisfy the defined condition. According to an embodiment, the electronic device 100 may generate a video to include the second image at the actual capture time of the second image (e.g., 38 ms), but is not limited thereto, and may generate a video to include the second image at the capture time of the first image (e.g., 40 ms).

[0062] Figure 4 is a flowchart of a method of generating a flicker-corrected video according to an embodiment of the present disclosure.

[0063] The method of generating a flicker-corrected video according to an embodiment may be performed by the electronic device 100 .

[0064] In operation S410, the electronic device 100 may identify whether flickering exists. Figure 5 and Figure 6 The method of recognizing flicker by the electronic device 100 according to the embodiment is described in more detail: When flicker is detected, the electronic device 100 performs operation S420, and when flicker is not detected, ends the process.

[0065] In operation S420, the electronic device 100 may synchronize camera parameters. The electronic device 100 may synchronize parameters of the second camera 2040 with parameters of the first camera 2030. In an embodiment, the electronic device 100 may determine a reference camera by analyzing images captured from the first camera 2030 and the second camera 2040, and synchronize parameters of another camera to be the same as those of the reference camera. Figure 7 and Figure 8 A process of synchronizing camera parameters of the electronic device 100 according to an embodiment is described in more detail.

[0066] In operation S430, the electronic device 100 may determine the settings of the first camera 2030. The electronic device 100 may determine the defined conditions based on the first image captured by the first camera 2030. In an embodiment, the electronic device 100 may identify the average value (or average light intensity) of the light intensity of the first image and determine an upper light intensity threshold (or first threshold) and a lower light intensity threshold (or second threshold) based on the average light intensity. Figure 9 and Figure 10 A method in which the electronic device 100 determines settings of the first camera 2030 according to an embodiment is described in more detail.

[0067] In operation S440, the electronic device 100 may determine the settings of the second camera 2040. In an embodiment, the electronic device 100 may determine the image capture cycle and image capture start time of the second camera 2040. The image capture start time may refer to the time interval between when the first camera 2030 starts image capture and when the second camera 2040 starts image capture. Figure 11 and Figure 12b A method in which the electronic device 100 determines settings of the second camera 2040 according to an embodiment is described in more detail.

[0068] In operation S450 , the electronic device 100 may capture an image by using the first camera 2030 and the second camera 2040 .

[0069] In operation S460, the electronic device 100 may determine whether to replace the first image. When the light intensity of the first image does not meet the defined condition, the electronic device 100 may determine to replace the first image. The electronic device 100 may generate a video by using the second image instead of the first image that does not meet the defined condition. Figure 13A method in which the electronic device 100 determines whether to replace the first image is described in more detail.

[0070] In operation S470, the electronic device 100 may display the first image or a replacement image. The electronic device 100 may display the first image that satisfies the defined conditions, or display the second image instead of the first image that does not satisfy the defined conditions. According to an embodiment, the electronic device 100 may display a video with a smaller light intensity difference between consecutive images. Figure 14 and Figure 15 A method of displaying a preview image by the electronic device 100 according to an embodiment is described in more detail.

[0071] In operation S480, the electronic device 100 may identify whether image capturing has ended. When image capturing has not ended, the electronic device 100 performs operation S460. The electronic device 100 repeats operations S460 to S480 for the first image newly captured after the first cycle.

[0072] Figure 5 is a flowchart of a method for detecting whether flicker exists according to an embodiment of the present disclosure. Figure 6 FIG. 1 is a diagram illustrating a method of detecting whether flickering exists according to an embodiment of the present disclosure. Figure 5 and Figure 6 A method for the electronic device 100 to detect whether flicker exists according to an embodiment of the present disclosure is described.

[0073] The method of detecting whether flicker exists according to an embodiment may be performed by the electronic device 100 .

[0074] In operation S510, the electronic device 100 may capture an image at a cycle of N / 100 seconds (N is an integer). In an embodiment, the electronic device 100 may capture an image at a cycle of N / 100 seconds by using one of a plurality of cameras. Figure 6 , the electronic device 100 can obtain N / 100 second period images 610 and 640.

[0075] In operation S520, the electronic device 100 may capture an image at a cycle of M / 120 seconds (M is an integer). In an embodiment, the electronic device 100 may capture an image by using a camera different from the camera used in operation S510. Figure 6 , the electronic device 100 can obtain M / 120 second period images 620 and 650.

[0076] In operation S530, the electronic device 100 may generate a difference image. The electronic device 100 may generate a difference image representing the difference between the image captured at a period of N / 100 seconds and the image captured at a period of M / 120 seconds. In an embodiment, when the field of view of the image captured at a period of N / 100 seconds is different from the field of view of the image captured at a period of M / 120 seconds, the electronic device 100 may obtain a difference image of a common area. Figure 6 , the electronic device 100 can obtain difference images 630 and 660 respectively indicating the difference between the N / 100 second period image 610 and the M / 120 second period image and the difference between the N / 100 second period image 640 and the M / 120 second period image.

[0077] In operation S540, the electronic device 100 may identify whether there is a change in luminance value based on the difference image.

[0078] refer to Figure 6 When there is no flicker, the captured N / 100 second period image 610 and the M / 120 second period image 620 have the same light intensity (eg, brightness value), and most values ​​of the difference image 630 may appear to be zero.

[0079] When flicker is present, the captured N / 100 second period image 640 and the M / 120 second period image 650 have the same light intensity, and the difference image 660 may include non-zero values. For example, the difference image 660 may include a row containing non-zero values. Alternatively, the difference image 660 may contain non-zero values ​​throughout the entire image.

[0080] In operation 540 , when it is determined that there is no change in the luminance value, the electronic device 100 performs operation S550 , and when it is determined that there is a change in the luminance value, the electronic device 100 performs operation S550 .

[0081] In operation S550, the electronic device 100 may determine that there is no flicker in the image.

[0082] In operation S560, the electronic device 100 may determine that flicker exists in the image.

[0083] In the present disclosure, the period during which the first camera 2030 captures an image for performing the method for detecting the presence of flicker may be referred to as a third period, but is not limited thereto. In the present disclosure, the image captured by the first camera 2030 for performing the method for detecting the presence of flicker may be referred to as a first temporary image, but is not limited thereto. In the present disclosure, the period during which the second camera 2040 captures an image for performing the method for detecting the presence of flicker may be referred to as a fourth period, but is not limited thereto. In the present disclosure, the image captured by the second camera 2040 for performing the method for detecting the presence of flicker may be referred to as a second temporary image, but is not limited thereto.

[0084] Figure 7 is a flowchart of a method for synchronizing parameters of multiple cameras according to an embodiment of the present disclosure. Figure 8 is a diagram illustrating a method of synchronizing parameters of multiple cameras according to an embodiment of the present disclosure. Figure 7 and Figure 8 A method of synchronizing camera parameters of the electronic device 100 according to an embodiment of the present disclosure is described.

[0085] The method of synchronizing camera parameters according to an embodiment may be performed by the electronic device 100 .

[0086] In operation S710, the electronic device 100 may capture an image by using the first camera 2030. Figure 8 , the electronic device 100 may obtain the image 810 by using the first camera 2030. In the present disclosure, the image 810 captured by the electronic device 100 using the first camera 2030 to synchronize camera parameters may be referred to as a third temporary image.

[0087] In operation S720, the electronic device 100 may capture an image by using the second camera. Figure 8 , the electronic device 100 may obtain the image 820 by using the second camera 2040. In the present disclosure, the image 820 captured by the electronic device 100 using the second camera 2040 to synchronize camera parameters may be referred to as a fourth temporary image.

[0088] In operation S730, the electronic device 100 may analyze the overlapping area. When the fields of view α1 and α2 of the first camera 2030 differ from the fields of view β1 and β2 of the second camera 2030, respectively, the area captured by the electronic device 100 may differ. For example, the image 820 obtained from the second camera 2040 may include a wider area than the image 810 obtained from the first camera 2030. The electronic device 100 may determine the area commonly included in the image 810 obtained from the first camera 2030 and the image 820 obtained from the second camera 2040.

[0089] In operation S740, the electronic device 100 may select a reference camera. The electronic device 100 may select a reference camera by analyzing an image of an overlapping area between images 810 and 820. For example, the electronic device 100 may select a camera that captures images with uniformly distributed exposure as the reference camera through a histogram analysis of images 810 and 820.

[0090] In operation S750, the electronic device 100 may synchronize parameters. The electronic device 100 may synchronize the parameters of the other camera to be the same as the parameters of the reference camera. For example, when the first camera is selected as the reference camera, the electronic device 100 may adjust the parameters of the second camera to correspond to the parameters of the first camera. The camera parameters may include settings for ISO value, resolution, or aperture.

[0091] although Figure 8 An example is shown in which the second camera has a wider field of view than the first camera, but the present disclosure is not limited thereto, and the first camera may have a wider field of view than the second camera. In such an example, the first image 810 may be captured to include the second image 820.

[0092] Figure 9 is a flowchart of a method of determining camera settings according to an embodiment of the present disclosure. Figure 10 is a diagram illustrating a method of determining camera settings according to light intensity according to an embodiment of the present disclosure. Figure 9 and Figure 10 A method for the electronic device 100 to determine camera settings according to an embodiment of the present disclosure is described.

[0093] The method of determining camera settings according to an embodiment of the present disclosure may be performed by the electronic device 100 .

[0094] In operation S910 , the electronic device 100 may capture an image by using the first camera 2030 .

[0095] In operation S920, the electronic device 100 may obtain a light intensity value of the captured image. Figure 10 , for example, the light intensity value of the image captured at 0 ms may be V1, and the light intensity value of the image captured at 20 ms may be V2.

[0096] In operation S930, the electronic device 100 may identify whether a defined image capturing time has elapsed. The electronic device 100 may repeatedly capture images until the defined image capturing time has elapsed. Alternatively, the electronic device 100 may repeatedly capture images until the number of captured images reaches a defined value. For example, the electronic device 100 may repeatedly capture images to obtain n images (n=fps / 10, where fps is the number of frames per second). Figure 10 , the electronic device 100 can capture 5 images by using the first camera 2030.

[0097] In operation S940, the electronic device 100 may obtain an average light intensity value of the captured image. Figure 10 , the average light intensity value "A" can be determined as the arithmetic mean of the light intensities of the obtained image. For example, the average light intensity value A = (V1+V2+V3+V4+V5) / 5, so the reference Figure 10 , the average light intensity value A can be 0.6 lux (A=(0.7+0.5+0.4+0.8+0.6) / 5).

[0098] According to an embodiment of the present disclosure, the electronic device 100 may determine the image capture time of the second camera 2040 based on the determined average light intensity value of the image. The electronic device 100 may determine the first threshold (upper threshold) or the second threshold (lower threshold) based on the determined average light intensity value of the image.

[0099] Figure 11 is a flowchart of a method for determining an image capturing time of a camera according to an embodiment of the present disclosure. Figure 12a is a diagram illustrating a method of determining an image capturing time of a camera according to an embodiment of the present disclosure. Figure 12b is a diagram illustrating a method of determining an image capturing time of a camera according to an embodiment of the present disclosure. Figures 11 to 12b A method in which the electronic device 100 determines an image capturing time of a camera according to an embodiment of the present disclosure is described.

[0100] The method of determining camera settings according to an embodiment of the present disclosure may be performed by the electronic device 100 .

[0101] In operation S1110, the electronic device 100 may determine an image capturing period of the second camera 2040. The image capturing period determined by the electronic device 100 in operation S1110 may refer to an image capturing period used in an operation for determining settings of the second camera 2040, and the image capturing period for generating a video after completing the settings is not limited to the image capturing period determined in operation S1110.

[0102] According to an embodiment, the electronic device 100 may determine the power frequency (or utility frequency) based on its geographic location. For example, most regions of the world use a 50 Hz power frequency, while some regions in the United States and Asia use a 60 Hz power frequency. The electronic device 100 may identify the number of frames per second (fps) that satisfies Equation 1 based on the power frequency determined based on the location of the electronic device 100. For example, the electronic device 100 may determine 120 / N Hz (where N is an integer) as the number of frames per second that satisfies Equation 1 in a location using a 60 Hz power frequency, or may identify N / 120 seconds.

[0103] refer to Figure 12a , when the electronic device 100 captures an image (which may be referred to as a fifth temporary image in the present disclosure) at a period T (eg, N / 120 seconds) satisfying Equation 1, an image having the same light intensity may be obtained. Figure 12b , the electronic device 100 can determine the image capture period based on the period T that satisfies Equation 1. For example, the difference in image capture time between the 0th image (for the convenience of describing the formula described below, the image obtained at 0 seconds is referred to as the 0th image) and the first image can be determined as T1=T+k (where k is a defined constant, for example, k=2). Similarly, the difference in image capture time between consecutive images can be determined as T2=T+k, T3=T+k, T4=T+k, and T5=T+k. In the example, the capture time of the i-th captured image can be determined as T*i+k*i. In other words, there is a difference t between the capture time of the i-th image captured with the image capture period T+k and the capture time of the i-th image captured with the image capture period T. i =k*i difference. Figure 12b , when the electronic device 100 uses the period T determined based on the period T i When performing image capturing, the electronic device 100 can obtain images with different light intensities.

[0104] In operation S1120, the electronic device 100 may capture an image using the second camera 2040. The electronic device 100 may repeat the image capture a defined number of times. For example, the electronic device 100 may repeatedly obtain an image n times (n = fps / 10, where fps is the number of frames captured per second by the camera) using the second camera 2040. The electronic device 100 may obtain multiple images with different light intensities using the image capture period determined in operation S1110.

[0105] In operation S1130, the electronic device 100 may obtain a light intensity value of the captured image.

[0106] In operation S1140, the electronic device 100 may compare the light intensity value with the average light intensity value of the first camera 2030. The electronic device 100 may compare the light intensity value captured by the electronic device 100 in operation S1130 with the average light intensity value used as the basis for the defined condition of the electronic device 100. For example, the average light intensity value may be the average light intensity value obtained in operation S940.

[0107] In operation S1150, the electronic device 100 may determine an image having a light intensity value having a small difference from an average light intensity value of the first camera 2030. The electronic device 100 may identify one image having a light intensity value having a minimum difference from the average light intensity value.

[0108] In operation S1160, the electronic device 100 may determine the image capture start time for the second camera 2040. For example, when it is determined that the light intensity value of the second captured image has the smallest difference from the average light intensity value, the electronic device 100 may determine the image capture start time for the second camera 2040 as t2. The image capture start time for the second camera 2040 may refer to the time between when the first camera 2030 starts image capture and when the second camera 2040 starts image capture. In an embodiment, when the electronic device 100 performs image capture by setting the image capture start time to the time determined in operation S1160 (e.g., t2) and setting the image capture period to a period T that satisfies Equation 1 (e.g., N / 120 seconds), the electronic device 100 can repeatedly capture images using light intensity values ​​that have a small difference from the average light intensity value.

[0109] Figure 13 is a diagram illustrating a method of determining an image exhibiting flicker according to an embodiment of the present disclosure.

[0110] refer to Figure 13 , the electronic device 100 may obtain an image by performing image capture at intervals of a first period using the first camera 2030. According to an embodiment of the present disclosure, the electronic device 100 may determine a defined condition. The electronic device 100 may determine an upper threshold value (first threshold value) and a lower threshold value based on the average light intensity value. For example, when the average light intensity value of the image obtained using the first camera 2030 is 0.6 lux, the electronic device 100 may determine the upper threshold value to be 0.8 lux and the lower threshold value to be 0.4 lux. The electronic device 100 may determine the upper threshold value and the lower threshold value so that they differ from the average light intensity value by a certain constant (for example, 0.2 lux), or may determine the upper threshold value and the lower threshold value so that they differ from the average light intensity value by a certain percentage (for example, 10%).

[0111] refer to Figure 13For example, the light intensities of images captured at 0ms, 20ms, 40ms, 60ms, and 80ms may be 0.7 lux, 0.5 lux, 0.35 lux, 0.81 lux, and 0.65 lux, respectively. When the upper threshold value of the condition is 0.8 lux and the lower threshold value is 0.4 lux, the electronic device 100 may determine that the images captured at 0ms, 20ms, and 80ms are images that meet the defined condition (according to the example, they may be referred to as "good frames"), and determine that the images captured at 40ms and 60ms are images that do not meet the defined condition (according to the example, they may be referred to as "bad frames").

[0112] The electronic device 100 may generate a video including an image satisfying the defined condition and an image captured using the second camera 2040 instead of an image not satisfying the defined condition.

[0113] Figure 14 is a flowchart of a method for displaying a preview image performed by an electronic device according to an embodiment of the present disclosure. Figure 15 is a diagram illustrating a method of displaying a preview image performed by an electronic device according to an embodiment of the present disclosure. Figure 14 and Figure 15 A method in which the electronic device 100 displays a camera preview image according to an embodiment of the present disclosure is described.

[0114] The method of displaying a preview image according to an embodiment may be performed by the electronic device 100 .

[0115] In operation S1410, the electronic device 100 may identify whether the light intensity value of the first image falls within a defined range. Figure 15 , the electronic device 100 may identify whether the light intensity of the image captured using the first camera 2030 falls within a defined range.

[0116] In operation S1420, the electronic device 100 may determine a second image captured before the first image as a replacement image. The electronic device 100 may periodically obtain images by using the first camera 2030 and the second camera 2040. Instead of the first image that does not meet the defined conditions, the electronic device 100 may determine an image captured before the capture time of the first image using the second camera 2040 as a replacement image. Figure 15 For example, the electronic device 100 may determine that the light intensity of the image captured at 40ms using the first camera 2030 does not meet the defined condition. The electronic device 100 may determine the image captured at 38ms as the replacement image, which is the latest image captured 40ms ago using the second camera 2040.

[0117] In operation S1430, the electronic device 100 may display a preview image. While capturing an image, the electronic device 100 may display a preview image showing the image currently being captured. According to one embodiment of the present disclosure, the electronic device 100 may display a first image that meets a defined condition and a second image that is determined to be a replacement image as preview images. The electronic device 100 may display images captured at 0ms and 20ms using the first camera 2030, images captured at 38ms and 54ms using the second camera 2040, and an image captured at 80ms using the first camera 2030.

[0118] According to an embodiment of the present disclosure, the electronic device 100 displays a preview image at a time (e.g., 38 ms) when the second camera 2040 captures an image, but is not limited thereto and may display a preview image at a time (e.g., 40 ms) when the first camera 2040 captures an image. The electronic device 100 may display a flicker-corrected image by displaying an image within a defined range as a preview image.

[0119] Figure 16 is a flowchart of a method of correcting an image when ambient light intensity changes according to an embodiment of the present disclosure. Figure 17 is a diagram illustrating a method of correcting an image when the ambient light intensity changes according to an embodiment of the present disclosure. Figure 17 and Figure 18 A method in which the electronic device 100 corrects an image when ambient light intensity changes according to an embodiment of the present disclosure is described.

[0120] The method of correcting an image when the ambient light intensity changes according to an embodiment of the present disclosure may be performed by the electronic device 100. In operation S1610, the electronic device 100 may obtain an average light intensity value of some images captured using the first camera 2030. According to an embodiment of the present disclosure, operation S1610 may correspond to operation S940. Figure 17 , for example, the average value of the initial light intensity values ​​may be 0.6 lux, and the defined conditions may be an upper threshold of 0.8 lux and a lower threshold of 0.4 lux.

[0121] In operation S1620, the electronic device 100 may obtain a light intensity value via the light sensor. The electronic device 100 may repeatedly obtain the light intensity of a surrounding environment by using the light sensor.

[0122] In operation S1630, the electronic device 100 may identify a change in the light intensity value obtained via the light sensor. The electronic device 100 may identify the repeatedly obtained light intensity value and check whether the identified light intensity value has changed by a certain range or more. The electronic device 100 may determine the degree of brightness by comparing with the time of determining the previous average light intensity value. Figure 17 , the electronic device 100 can recognize that the ambient light intensity value increases by a certain range or greater in 100ms (for example, increases by 0.1 lux from the ambient light intensity value at 0ms), and that the ambient light intensity value decreases by a certain specific range or greater in 200ms (for example, decreases by 0.1 lux from the ambient light intensity value at 100ms).

[0123] In operation S1640, the electronic device 100 may modify the average light intensity value. The electronic device 100 may modify the average light intensity value A based on the change in the light intensity obtained by the light sensor. Figure 17 Based on recognizing that the ambient light intensity increased by 0.1 lux in 100 ms, the electronic device 100 can determine that the average light intensity value A is 0.7 lux by increasing the average light intensity value A by 0.1 lux. Based on recognizing that the ambient light intensity decreased by 0.1 lux in 200 ms, the electronic device 100 can determine that the average light intensity value A is 0.6 lux by decreasing the average light intensity value A by 0.1 lux.

[0124] The electronic device 100 may update the defined conditions based on the average light intensity value. Figure 17 Based on an increase of 0.1 lux in the average light intensity over 100 ms, the electronic device 100 may determine the upper and lower thresholds to be 0.9 lux and 0.5 lux, respectively. Based on a decrease of 0.1 lux in the average light intensity over 200 ms, the electronic device 100 may determine the upper and lower thresholds to be 0.8 lux and 0.4 lux, respectively.

[0125] Figure 18 is a diagram illustrating a method of generating a flicker-corrected video by using prediction, performed by an electronic device according to an embodiment of the present disclosure.

[0126] refer to Figure 18, the electronic device 100 can periodically obtain images of the same light intensity based on the frames per second of the first camera 2030 and the flashing period of the light source. When the first camera 2030 has a frame rate of 50 fps and the power supply has a frequency of 60 Hz, the electronic device 100 can obtain images of the same light intensity within five image capture cycles (100 ms). For example, the images captured by the electronic device 100 at 0 ms, 100 ms, and 200 ms, respectively, can have the same light intensity. According to embodiments of the present disclosure, the time period in which the electronic device 100 repeatedly obtains images of the same light intensity can be referred to as a cycle period (or cycle).

[0127] According to an embodiment of the present disclosure, the electronic device 100 may generate a flicker-corrected video based on the first image and the second image captured during the first cycle via the first camera 2030 and the second camera 2040. The electronic device 100 may identify an image capture time indicating a situation where the light intensity of the first image captured by the first camera 2030 during the first cycle does not satisfy a defined condition.

[0128] According to an embodiment of the present disclosure, the electronic device 100 may predict whether the light intensity of an image obtained via the first camera 2030 satisfies a defined range. Based on the predicted result, the electronic device 100 may capture an image from the second repetition loop by using one of the first camera 2030 and the second camera 2040. When the light intensity of the first image does not satisfy the defined condition in the first loop, the electronic device 100 may not perform image capture by using the first camera 2040, and may perform image capture by using the second camera. When the light intensity of the first image satisfies the defined condition in the first loop, the electronic device 100 may perform image capture by using the first camera 2030, and may not perform image capture by using the second camera 2040. For example, the electronic device 100 may perform image capture by using the first camera 2030 at 100ms, 120ms, and 180ms of the second repetition loop, and may not perform image capture at 140ms and 160ms by using the first camera 2030. In addition, for example, the electronic device 100 may not perform image capturing at 100ms, 120ms, and 180ms of the second repetition loop by using the second camera 2040 , and may perform image capturing at 140ms and 160ms by using the second camera 2040 .

[0129] Figure 19 is a diagram illustrating a method of capturing and storing a flicker-corrected video by using an electronic device according to an embodiment of the present disclosure.

[0130] refer to Figure 19A user can view and obtain flicker-corrected video by using the electronic device 100 according to an embodiment of the present disclosure. The electronic device 100 can execute a camera application based on user input. The electronic device 100 can display a preview image. Depending on the frames per second of the electronic device 100, the preview image may exhibit flicker.

[0131] The electronic device 100 may change to a recording mode based on user input. Similarly, the preview image may exhibit flickering depending on the frames per second of the electronic device 100.

[0132] The electronic device 100 may perform recording based on user input. According to an embodiment of the present disclosure, the electronic device 100 may display a flicker-corrected preview image based on a method of generating a flicker-corrected image, as shown in FIG. Figures 3 to 15 As stated.

[0133] The electronic device 100 may end recording and store the video based on the user input. The electronic device 100 may store the flicker-corrected video generated based on the first image and the second image obtained via the first camera 2030 and the second camera 2040.

[0134] The electronic device 100 may play back the stored video based on a user input. Since the stored video is a flicker-corrected video, the electronic device 100 may display the flicker-corrected video.

[0135] Figure 20 is a block diagram of an electronic device for generating flicker-corrected video according to an embodiment of the present disclosure.

[0136] According to an embodiment of the present disclosure, the electronic device 100 may include, but is not limited to, a processor 2010 , a memory 2020 , a first camera 2030 , and a second camera 2040 , and may further include general components.

[0137] According to an embodiment, the memory 2020 may store programs required for the processor 2010 to process or control operations, and store data input to or output from the electronic device 100. The memory 2020 may store instructions, data structures, and program codes readable by the processor 2010. In the disclosed embodiments, the operations performed by the processor 2010 may be implemented by executing instructions or codes of the programs stored in the memory 2020. The memory 2020 may store images captured by the first camera 2030 or the second camera 2040, or store flicker-corrected videos.

[0138] According to an embodiment, the memory 2020 may include a flash memory, a hard disk type memory, a multimedia card micro memory, and a card type memory (for example, a secure digital (SD) or extreme digital (XD) memory, etc.), and may include a non-volatile memory and a volatile memory, the non-volatile memory including at least one of a read-only memory (ROM), an electrically erasable programmable ROM (EEPROM), a PROM, a magnetic memory, a magnetic disk, and an optical disk, and a volatile memory such as a random access memory (RAM) or a static RAM (SRAM).

[0139] According to an embodiment, the memory 2020 may store one or more instructions and / or programs for controlling the electronic device 100 to generate a video to perform a task.

[0140] Depending on the embodiment, the processor 2010 may execute instructions or programmed software modules stored in the memory 2020 to control operations or functions to enable the electronic device 100 to perform tasks. The processor 2010 may be composed of hardware components that perform arithmetic, logical, input / output (I / O) operations, and signal processing. The processor 2010 may execute programs stored in the memory 2020 to control the first camera 2030, the second camera 2040, the I / O interface, and the communication unit.

[0141] According to an embodiment, the processor 2010 may be composed of at least one of a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), an application processor (AP), a neural processing unit (NPU), or a dedicated artificial intelligence (AI) processor designed with a hardware structure specifically for processing AI models, but is not limited thereto. Each processor constituting the processor 2010 may be a dedicated processor for performing a defined function.

[0142] According to an embodiment, the AI ​​processor can perform calculations and controls by using an AI model to process tasks that the electronic device 100 is configured to perform. The AI ​​processor can be manufactured in the form of a dedicated hardware chip for AI, or can be manufactured as part of a general-purpose processor (e.g., a CPU or AP) or a dedicated graphics processor (e.g., a GPU) and installed on the electronic device 100.

[0143] The first camera 2030 and the second camera 2040 can capture images of a subject and obtain video and / or images. The first camera 2030 and the second camera 2040 may include, for example, but not limited to, a red, green, and blue (RGB) camera, a telephoto camera, a wide-angle camera, an ultra-wide-angle camera, and the like. The first camera 2030 and the second camera 2040 can obtain a video comprising multiple frames. The first camera 2030 and the second camera 2040 may be configured as one or more modules. For example, the first camera 2030 and the second camera 2040 may be included in a single module or may be included in multiple modules. Since the specific types and detailed functions of the first camera 2030 and the second camera 2040 can be clearly inferred by those skilled in the art, their description is omitted.

[0144] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to obtain a first image captured at intervals of a first period using the first camera 2030. The processor 2010 may execute instructions stored in the memory 2020 to obtain a second image captured at intervals of a second period using the second camera 2040. The processor 2010 may execute instructions stored in the memory 2020 to select the first image based on the light intensity value of the first image being less than or equal to a first threshold and greater than or equal to a second threshold. The processor 2010 may execute instructions stored in the memory 2020 to select the second image captured before the first image is captured based on the light intensity value being greater than the first threshold or less than the second threshold. The processor 2010 may execute instructions stored in the memory 2020 to generate a video based on the selected first and second images.

[0145] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to obtain a third temporary image using the first camera 2030. The processor 2010 may also execute instructions stored in the memory 2020 to obtain a fourth temporary image using the second camera 2040. The processor 2010 may also execute instructions stored in the memory 2020 to determine a reference camera between the first camera and the second camera based on the light intensity distributions of the third temporary image and the fourth temporary image. The processor 2010 may also execute instructions stored in the memory 2020 to synchronize the settings of the first camera or the second camera 2040 based on the settings of the reference camera.

[0146] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to identify an overlapping area between the third temporary image and the fourth temporary image. The processor 2010 may execute instructions stored in the memory 2020 to determine a reference camera in the first camera 2030 and the second camera 2040 based on the light intensity distribution of the overlapping area between the third temporary image and the fourth temporary image.

[0147] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to obtain a plurality of images using the first camera. The processor 2010 may execute instructions stored in the memory 2020 to determine an average value of light intensity values ​​of the plurality of images. The processor 2010 may execute instructions stored in the memory 2020 to determine a first threshold value and a second threshold value based on the average value.

[0148] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to identify the frequency of the ambient light. The processor 2010 may execute instructions stored in the memory 2020 to determine the second period based on the frequency of the ambient light.

[0149] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to obtain a plurality of fifth temporary images using the second camera. The processor 2010 may execute instructions stored in the memory 2020 to determine a temporary image having a light intensity value closest to the average value from the plurality of fifth temporary images. The processor 2010 may execute instructions stored in the memory 2020 to determine the image capture start time of the second camera based on the determined image capture time of the temporary image.

[0150] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to obtain a first temporary image captured at intervals of a third period. The processor 2010 may execute instructions stored in the memory 2020 to obtain a second temporary image captured at intervals of a fourth period. The processor 2010 may execute instructions stored in the memory 2020 to obtain a difference image representing the difference between the first temporary image and the second temporary image. The processor 2010 may execute instructions stored in the memory 2020 to obtain a second image at intervals of a second period based on a change in light intensity of the difference image being greater than or equal to a threshold.

[0151] According to an embodiment of the present disclosure, the electronic device may further include a light sensor. The processor 2010 may execute instructions stored in the memory 2020 to obtain a light intensity value of the ambient light using the light sensor. The processor 2010 may execute instructions stored in the memory 2020 to determine a first threshold value and a second threshold value based on the light intensity value of the ambient light.

[0152] According to an embodiment of the present disclosure, the processor 2010 may execute instructions stored in the memory 2020 to predict a time when the light intensity value of the first image is greater than a first threshold value or less than a second threshold value. The processor 2010 may execute instructions stored in the memory 2020 to obtain only the second image during the predicted time. The processor 2010 may execute instructions stored in the memory 2020 to obtain only the first image at times other than the predicted time.

[0153] Figure 21 is a flowchart of a method of generating a flicker-corrected video according to an embodiment of the present disclosure.

[0154] The method of generating a flicker compensation video according to an embodiment of the present disclosure may be performed by the electronic device 100. In operation S2110, the electronic device 100 may obtain a first image captured at intervals of a first period by using a first camera.

[0155] In operation S2120, the electronic device 100 may obtain a second image captured at intervals of a second period by using the second camera. According to one embodiment of the present disclosure, the first camera and the second camera may be cameras determined from a plurality of cameras of the electronic device 100. For example, the first camera may be a main camera, and the second camera may be a telephoto camera, but is not limited thereto.

[0156] In operation S2130, the electronic device 100 may select the first image based on the light intensity value of the first image being less than or equal to the first threshold and greater than or equal to the second threshold. In an embodiment, the first threshold is a value greater than the second threshold.

[0157] In operation S2140, the electronic device 100 may select a second image captured before capturing the first image based on whether the light intensity value is greater than the first threshold value or less than the second threshold value.

[0158] In operation S2150, the electronic device 100 may generate a video based on the selected first image or second image. The electronic device 100 may generate a video using the selected first image or second image that shows a light intensity that is less than or equal to a first threshold value and greater than a second threshold value. Due to the smaller difference in light intensity, the generated video may not exhibit flicker or exhibit improved flicker.

[0159] The machine-readable storage medium may be provided in the form of a non-transitory storage medium. In this regard, the term "non-transitory storage medium" simply means that the storage medium does not include signals (e.g., electromagnetic waves) and is a tangible device, and the term does not distinguish between locations where data is semi-permanently stored in the storage medium and locations where data is temporarily stored in the storage medium. For example, a "non-transitory storage medium" may include a buffer in which data is temporarily stored.

[0160] According to embodiments, the methods according to the various embodiments described herein may be included in a computer program product when provided. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc ROM (CD-ROM)), or distributed online (e.g., by downloading or uploading) via an app store, or distributed directly between two user devices (e.g., smartphones). For online distribution, at least a portion of the computer program product (e.g., a downloadable app) may be at least temporarily stored or temporarily generated in a machine-readable storage medium (e.g., a memory on a manufacturer's server, an app store's server, or a relay server).

[0161] According to an embodiment of the present disclosure, an electronic device is provided, comprising a first camera, a second camera, a memory storing at least one instruction, and at least one processor. The at least one processor may be configured to execute at least one instruction to obtain a first image captured at intervals of a first period by using the first camera. The at least one processor may be configured to execute at least one instruction to obtain a second image captured at intervals of a second period by using the second camera. The at least one processor may be configured to execute at least one instruction to select the first image based on a light intensity value of the first image being less than or equal to a first threshold and greater than or equal to a second threshold. The at least one processor may be configured to execute at least one instruction to select a second image captured before capturing the first image based on a light intensity value being greater than the first threshold or less than the second threshold. The at least one processor may be configured to execute at least one instruction to generate a video based on the selected first image or second image.

[0162] According to an embodiment of the present disclosure, at least one processor may be configured to execute at least one instruction to obtain a third temporary image using the first camera. At least one processor may be configured to execute at least one instruction to obtain a fourth temporary image using the second camera. At least one processor may be configured to execute at least one instruction to determine a reference camera between the first camera and the second camera based on the light intensity distribution of the third temporary image and the fourth temporary image. At least one processor may be configured to execute at least one instruction to synchronize the settings of the first camera or the second camera based on the settings of the reference camera.

[0163] According to an embodiment of the present disclosure, at least one processor may be configured to execute at least one instruction to identify an overlapping area between the third temporary image and the fourth temporary image. At least one processor may be configured to execute at least one instruction to determine a reference camera, one of the first camera and the second camera, based on a light intensity distribution in the overlapping area between the third temporary image and the fourth temporary image.

[0164] According to an embodiment of the present disclosure, at least one processor may be configured to execute at least one instruction to obtain multiple images using a first camera, at least one processor may be configured to execute at least one instruction to determine an average of light intensity values ​​of the multiple images, and at least one processor may be configured to execute at least one instruction to determine a first threshold value and a second threshold value based on the average value.

[0165] According to an embodiment of the present disclosure, at least one processor may be configured to execute at least one instruction to identify the frequency of ambient light and at least one processor may be configured to execute at least one instruction to determine a second period based on the frequency of the ambient light.

[0166] According to an embodiment of the present disclosure, the second period T2 may be determined as T2=N / f light , where N is a natural number, and f light is the frequency of the light source.

[0167] According to an embodiment of the present disclosure, at least one processor may be configured to execute at least one instruction to obtain a plurality of fifth temporary images using a second camera. At least one processor may be configured to execute at least one instruction to determine, from the plurality of fifth temporary images, a temporary image having a light intensity value closest to an average value. At least one processor may be configured to execute at least one instruction to determine an image capture start time for the second camera based on the determined image capture time of the temporary image.

[0168] According to an embodiment of the present disclosure, at least one processor may be configured to execute at least one instruction to obtain a first temporary image captured at intervals of a third period. At least one processor may be configured to execute at least one instruction to obtain a second temporary image captured at intervals of a fourth period. At least one processor may be configured to execute at least one instruction to obtain a difference image representing the difference between the first temporary image and the second temporary image. At least one processor may be configured to execute at least one instruction to obtain a second image at intervals of a second period based on a change in light intensity of the difference image being greater than or equal to a threshold.

[0169] According to an embodiment of the present disclosure, the electronic device may further include a light sensor. The at least one processor may be configured to execute at least one instruction to obtain a light intensity value of ambient light using the light sensor. The at least one processor may be configured to execute at least one instruction to determine a first threshold value and a second threshold value based on the light intensity value of the ambient light.

[0170] According to an embodiment of the present disclosure, at least one processor may be configured to execute at least one instruction to predict a time when the light intensity value of a first image is greater than a first threshold or less than a second threshold. At least one processor may be configured to execute at least one instruction to obtain only the second image during the predicted time. At least one processor may be configured to execute at least one instruction to obtain only the first image at times other than the predicted time.

[0171] According to an embodiment of the present disclosure, a video generation method is provided. The video generation method may include obtaining a first image captured at intervals of a first period by using a first camera. The video generation method may include obtaining a second image captured at intervals of a second period by using a second camera. The video generation method may include selecting the first image based on a light intensity value of the first image being less than or equal to a first threshold and greater than or equal to a second threshold. The video generation method may include selecting a second image captured before capturing the first image based on a light intensity value being greater than the first threshold or less than the second threshold. The video generation method may include generating a video based on the selected first image or second image.

[0172] According to an embodiment of the present disclosure, a video generation method may include obtaining a third temporary image using a first camera. The video generation method may include obtaining a fourth temporary image using a second camera. The video generation method may include determining a reference camera between the first camera and the second camera based on light intensity distributions of the third temporary image and the fourth temporary image. The video generation method may include synchronizing settings of the first camera or the second camera based on the settings of the reference camera.

[0173] According to an embodiment of the present disclosure, a video generation method may include identifying an overlapping area between a third temporary image and a fourth temporary image. The video generation method may include determining a reference camera among the first camera and the second camera based on a light intensity distribution of the overlapping area between the third temporary image and the fourth temporary image.

[0174] According to an embodiment of the present disclosure, a video generation method may include obtaining multiple images using a first camera, determining an average of light intensity values ​​of the multiple images, and determining a first threshold and a second threshold based on the average.

[0175] According to an embodiment of the present disclosure, the video generation method may include identifying a frequency of ambient light. The video generation method may include determining a second period based on the frequency of the ambient light.

[0176] According to an embodiment of the present disclosure, T2=N / f can be used light The second period T2 is determined by , where N is a natural number and τ is the frequency of the light source.

[0177] According to an embodiment of the present disclosure, a video generation method may include obtaining a plurality of fifth temporary images using a second camera. The video generation method may include determining a temporary image having a light intensity value closest to an average value from the plurality of fifth temporary images. The video generation method may include determining an image capture start time of the second camera based on the determined image capture time of the temporary image.

[0178] According to an embodiment of the present disclosure, a video generation method may include obtaining a first temporary image captured at intervals of a third period. The video generation method may include obtaining a second temporary image captured at intervals of a fourth period. The video generation method may include obtaining a difference image representing the difference between the first temporary image and the second temporary image. The video generation method may include obtaining a second image at intervals of a second period based on a change in light intensity in the difference image being greater than or equal to a threshold.

[0179] According to an embodiment of the present disclosure, the video generation method may include obtaining a light intensity value of the ambient light by using a light sensor. The video generation method may include determining a first threshold and a second threshold based on the light intensity value of the ambient light.

[0180] According to an embodiment of the present disclosure, one or more computer-readable recording media having stored thereon a program for executing the method may be provided.

Claims

1. An electronic device (100), comprising: First Camera (2030); Second camera (2040); a memory (2020) storing at least one instruction; as well as at least one processor (2010), Wherein, the at least one processor (2010) is configured to execute the at least one instruction to: obtaining first images captured at intervals of a first period by using the first camera (2030), obtaining second images captured at intervals of a second period by using the second camera (2040), selecting the first image based on a light intensity value of the first image being less than or equal to a first threshold and greater than or equal to a second threshold, selecting the second image captured before capturing the first image based on the light intensity value being greater than the first threshold or less than the second threshold, and A video is generated based on the selected first image or second image.

2. The electronic device according to claim 1, wherein The at least one processor (2010) is further configured to execute the at least one instruction to: obtaining first temporary images captured at intervals of a third period, obtaining a second temporary image captured at intervals of a fourth period, obtaining a difference image representing a difference between the first temporary image and the second temporary image, and The second image is obtained at the intervals of the second period based on a change in light intensity of the difference image being greater than or equal to a threshold value.

3. The electronic device according to claim 1 or 2, wherein: The at least one processor (2010) is further configured to execute the at least one instruction to: obtaining a third temporary image by using the first camera (2030), obtaining a fourth temporary image by using the second camera (2040), determining a reference camera among the first camera and the second camera based on light intensity distributions of the third temporary image and the fourth temporary image, and The settings of the first camera or the second camera are synchronized based on the settings of the reference camera.

4. The electronic device according to claim 3, wherein The at least one processor (2010) is further configured to execute the at least one instruction to: identifying an overlapping area between the third temporary image and the fourth temporary image, and The reference camera is determined among the first camera and the second camera based on the light intensity distribution of the overlapping area between the third temporary image and the fourth temporary image.

5. The electronic device according to any one of claims 1 to 4, wherein: The at least one processor (2010) is further configured to execute the at least one instruction to: By obtaining a plurality of images using the first camera (2030), determining an average of the light intensity values ​​of the plurality of images, and The first threshold and the second threshold are determined based on the average value.

6. The electronic device according to any one of claims 1 to 5, wherein: The at least one processor (2010) is further configured to execute the at least one instruction to: Identify the frequency of ambient light, and The second period is determined based on the frequency of the ambient light.

7. The electronic device according to claim 6, wherein: The second period T2 is determined as T2=N / f light (where N is a natural number, f light is the frequency of the light source).

8. The electronic device according to claim 5, wherein The at least one processor (2010) is further configured to execute the at least one instruction to: obtaining a plurality of fifth temporary images by using the second camera (2040), determining one temporary image having a light intensity value closest to the average value from among the plurality of fifth temporary images, and An image capture start time of the second camera is determined based on the determined image capture time of the temporary image.

9. The electronic device according to any one of claims 1 to 8, further comprising: Light sensor, Wherein, the at least one processor (2010) is further configured to execute the at least one instruction to: obtaining a light intensity value of ambient light by using the light sensor, and The first threshold and the second threshold are determined based on the light intensity value of the ambient light.

10. The electronic device according to any one of claims 1 to 9, wherein: The at least one processor (2010) is further configured to execute the at least one instruction to: predicting a time when the light intensity value of the first image is greater than the first threshold or less than the second threshold, Only the second image is obtained during the prediction time, and Only the first image is obtained at times other than the prediction time.

11. A video generation method, comprising: obtaining first images captured at intervals of a first period by using a first camera; obtaining second images captured at intervals of a second period by using a second camera; selecting the first image based on a light intensity value of the first image being less than or equal to a first threshold and greater than or equal to a second threshold; selecting the second image captured before capturing the first image based on the light intensity value being greater than a first threshold or less than a second threshold; as well as A video is generated based on the selected first image or second image.

12. The video generation method according to claim 11, further comprising: obtaining first temporary images captured at intervals of a third period; obtaining a second temporary image captured at intervals of a fourth period; obtaining a difference image representing a difference between the first temporary image and the second temporary image; as well as The second image is obtained at the intervals of the second period based on a change in light intensity of the difference image being greater than or equal to a threshold value.

13. The video generation method according to claim 11 or 12, further comprising: obtaining a third temporary image by using the first camera; obtaining a fourth temporary image by using the second camera; determining a reference camera among the first camera and the second camera based on light intensity distributions of the third temporary image and the fourth temporary image; as well as The settings of the first camera or the second camera are synchronized based on the settings of the reference camera.

14. The video generation method according to claim 13, comprising: identifying an overlapping area between the third temporary image and the fourth temporary image; as well as The reference camera is determined among the first camera and the second camera based on the light intensity distribution of the overlapping area between the third temporary image and the fourth temporary image. 15 . A computer-readable recording medium having a program stored thereon for executing the video generating method according to claim 11 on a computer.