Maintaining peak intensity frames as preview frames in slow motion mode of electronic device

By performing phase detection and frame intensity monitoring in the camera sensor, selecting and maintaining the peak intensity frame as the preview frame solves the flickering problem of high-speed cameras in slow motion mode and improves video quality.

CN112714248BActive Publication Date: 2024-10-18SAMSUNG ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011146718.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-23
Publication Date
2024-10-18
Estimated Expiration
2040-10-23

AI Technical Summary

Technical Problem

High-speed cameras have obvious flickering in slow-motion mode due to intensity fluctuations of the AC current light source, which affects video preview and recording quality.

Method used

By performing coarse phase detection and transition preview frame monitoring in the camera sensor, the peak intensity frame is selected and maintained as the preview frame, and the periodic waveform of the frame intensity is used for correction and fine refinement to reduce the flicker effect.

Benefits of technology

Effectively alleviates the camera sensor flicker problem in slow motion mode, improves the quality of video preview and recording, and ensures the stability of peak intensity frames.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112714248B_ABST
    Figure CN112714248B_ABST
Patent Text Reader

Abstract

A method for maintaining a peak intensity frame is provided. The method includes: receiving a plurality of frames each having an associated frame intensity from a camera sensor; selecting a preview frame and a previous preview frame from the plurality of frames; performing coarse phase detection based on the frame intensities of the previous preview frame and the preview frame to identify a trend in the frame intensity; monitoring a plurality of transition preview frames after the preview frame; detecting at least one transition preview frame whose frame intensity is less than the frame intensity of a previous transition preview frame; and selecting a next transition preview frame as a subsequent preview frame after the preview frame based on the frame intensity of the at least one transition preview frame.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Indian Application No. 201941043503 filed in the Indian Patent Office on October 25, 2019, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0003] Methods and apparatus consistent with example embodiments relate to mitigating flicker by tracking peak intensity frames in a causal system, and more particularly, to a method for mitigating flicker in a camera sensor of an electronic device.

[0004] Method and system for maintaining peak intensity frames as preview frames in a slow motion mode of a sensor. Background Art

[0005] Many commonly available light sources are powered using alternating current (AC) that fluctuates at, for example, 50 Hz or 60 Hz (depending on the geographic region). The effect of this continuously changing intensity of incident light is not clearly apparent to the naked eye or during camera capture at low capture speeds, such as 30 frames per second (fps) or 60 fps. For high-speed cameras with capture rates of 480 fps or 960 fps, light intensity variations are very noticeable in video preview and recording because frames are captured at various points in scene brightness. Summary of the invention

[0006] One or more example embodiments provide a method for maintaining a peak intensity frame as a preview frame in a slow motion mode of an electronic device.

[0007] One or more example embodiments perform coarse phase detection.

[0008] One or more example embodiments determine a plurality of transition preview frames.

[0009] One or more example embodiments determine a first deduction of preview frame intensity and determine a maximum turning point (MTP) frame.

[0010] One or more example embodiments select a peak intensity frame following an MTP frame as a preview frame following the MTP frame.

[0011] One or more example embodiments determine a subsequent subtraction of preview frame intensity.

[0012] One or more example embodiments perform fine refinement to maintain the peak intensity frame as the preview frame after the second subtraction to determine the preview frame intensity.

[0013] According to an example embodiment, a method for maintaining a peak intensity frame as a preview frame is provided. The method includes: receiving, by an electronic device, a plurality of frames each having an associated frame intensity from a camera sensor of the electronic device; selecting, by the electronic device, a preview frame and a previous preview frame from the plurality of frames; performing, by the electronic device, a coarse phase detection based on the frame intensity of the previous preview frame and the preview frame to identify a trend of the frame intensity; monitoring, by the electronic device, a plurality of transition preview frames after the preview frame; detecting, by the electronic device, from the plurality of transition preview frames, at least one transition preview frame whose frame intensity is less than the frame intensity of the previous transition preview frame; and selecting, by the electronic device, a subsequent transition preview frame as a subsequent preview frame after the preview frame based on the frame intensity of the at least one transition preview frame.

[0014] According to an example embodiment, an electronic device for maintaining a peak intensity frame as a preview frame is provided. The electronic device includes: a memory; and a processor coupled to the memory, which is configured to: receive a plurality of frames each having a related frame intensity from a camera sensor of the electronic device; select a preview frame and a previous preview frame from the plurality of frames; perform coarse phase detection based on the frame intensity of the previous preview frame and the preview frame to identify a trend of the frame intensity; monitor a plurality of transition preview frames after the preview frame; detect at least one transition preview frame whose frame intensity is less than the frame intensity of the previous transition preview frame from the plurality of transition preview frames; and select a next transition preview frame as a subsequent preview frame after the preview frame based on the frame intensity of the at least one transition preview frame.

[0015] In an embodiment, the previous preview frame and the plurality of transition preview frames are selected based on a frame rate of the camera sensor.

[0016] In an embodiment, the at least one transition preview frame comprises a maximum turning point (MTP) frame having a maximum peak intensity achieved by a previous transition preview frame.

[0017] In an embodiment, the MTP frame indicates a first subtraction of frame intensity compared to a frame intensity of a previous transition preview frame, wherein the first subtraction is greater than a first threshold.

[0018] In an embodiment, the peak intensity frame is selected as the next preview frame after the MTP frame by correcting an offset value for the next preview frame, wherein the offset value is used to control a flickering effect of the next preview frame.

[0019] In an embodiment, the intensity of each frame forms a periodic waveform.

[0020] In an embodiment, the previous preview frame is the zeroth frame in the waveform.

[0021] In an embodiment, the method further comprises: maintaining, by the electronic device, the peak intensity frame as a subsequent preview frame. In addition, the method comprises: determining, by the electronic device, a subtraction of the preview frame intensity while maintaining the peak intensity frame. In addition, the method comprises: performing, by the electronic device, fine refinement by correcting the subtraction of the preview frame intensity to re-maintain the peak intensity frame as the preview frame.

[0022] In an embodiment, coarse phase detection performed by an electronic device includes: performing, by the electronic device, an offset of -1 on the frame number of an nth frame in a periodic waveform, and comparing the frame intensity of the (n-1)th frame with the frame intensity of a previous preview frame, wherein the (n-1)th frame is a preview frame, and wherein every nth frame has the same frame intensity; detecting, by the electronic device (100), whether the intensity of the preview frame is greater than the intensity of the previous preview frame, and detecting one of the following: in response to determining that the intensity of the preview frame is less than the intensity of the previous preview frame, detecting that the preview frame is a rising edge frame in the periodic waveform; and in response to determining that the intensity of the preview frame is greater than the intensity of the previous preview frame, detecting that the preview frame is a falling edge frame in the periodic waveform.

[0023] In an embodiment, monitoring multiple transition preview frames after a preview frame by an electronic device includes performing one of the following: when the preview frame is a rising edge frame, performing an offset of +1 on the frame number of each nth frame after the preview frame, and selecting the obtained frame as the transition preview frame until the MTP frame is determined; and when the preview frame is a falling edge frame, performing an offset of -1 on the frame number of each nth frame after the preview frame, and selecting the obtained frame as the transition preview frame until the MTP frame is determined.

[0024] In an embodiment, selecting, by the electronic device, a next transition preview frame as a subsequent preview frame includes performing one of the following: when the preview frame is a rising edge frame during coarse phase detection, performing an offset of -1 on the frame number of the next nth frame after the MTP frame, and selecting the (n-1)th frame after the MTP frame as the next preview frame; and when the preview frame is a falling edge frame during coarse phase detection, performing an offset of +1 on the frame number of the next nth frame after the MTP frame, and selecting the (n+1)th frame after the MTP frame as the next preview frame.

[0025] In an embodiment, determining the subtraction while maintaining the peak intensity frame includes determining that an intensity of the preview frame is less than an intensity of the peak intensity frame by a second threshold.

[0026] In an embodiment, performing fine refinement after determining the subtraction in the peak intensity frame includes performing one of: when it is detected that the preview frame of the subtraction is a rising edge frame, performing a +1 offset of the frame number of the next n-th frame after detecting the subtraction; and

[0027] When it is detected that the subtracted preview frame is a falling edge frame, an offset of -1 is performed on the frame number of the next n-th frame after the second subtraction is detected.

[0028] In an embodiment, the trend of the frame strength indicates one of an increase and a decrease in the frame strength.

[0029] Therefore, an embodiment herein discloses an electronic device for maintaining a peak intensity frame as a preview frame in a slow motion mode of a camera sensor of the electronic device. The electronic device includes a processor coupled to a memory. The processor is configured to receive a plurality of frames with associated frame intensities from a field of view of a camera sensor of the electronic device. In addition, the processor is configured to select a preview frame and a previous preview frame from the plurality of frames. In addition, the processor is configured to perform coarse phase detection based on the frame intensities of the previous preview frame and the preview frame to identify a trend in the frame intensity. In addition, the processor is configured to monitor a plurality of transition preview frames after the preview frame based on coarse phase detection. In addition, the processor is configured to detect at least one transition preview frame whose frame intensity is less than the frame intensity of the previous transition preview frame from the plurality of transition preview frames. In addition, the processor is configured to select a next transition preview frame as a subsequent preview frame after the preview frame based on the frame intensity of the at least one transition preview frame.

[0030] When considered in conjunction with the following description and the accompanying drawings, these and other aspects of the embodiments herein will be better recognized and understood. However, it should be understood that although the following description indicates preferred embodiments and many specific details thereof, it is provided in an illustrative and non-limiting manner. Without departing from the spirit of the present disclosure, many changes and modifications may be made within the scope of the embodiments of the present disclosure, and the embodiments of the present disclosure include all of these modifications. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The above and other aspects and features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0032] Figure 1 is a block diagram illustrating an electronic device for maintaining a peak intensity frame as a preview frame in a slow motion mode of a camera sensor of the electronic device according to an example embodiment;

[0033] Figure 2 is a block diagram illustrating a processor for maintaining a peak intensity frame as a preview frame in a slow motion mode of a camera sensor of an electronic device and various hardware and software components of the processor according to an example embodiment;

[0034] Figure 3 is a diagram showing frame intensity waveforms for multiple regions of interest (ROIs) according to an example embodiment;

[0035] Figure 4 is a diagram showing frame intensity waveforms and coarse phase detection accumulated from multiple ROIs according to an example embodiment;

[0036] Figure 5 is a graphical representation illustrating determination of an MTP frame according to an example embodiment;

[0037] Figure 6 is a graphical representation showing a preview frame after obtaining a peak intensity frame as an MTP frame according to an example embodiment;

[0038] Figure 7 is a flow chart illustrating a method for managing peak intensity frames as preview frames according to an example embodiment;

[0039] Figure 8 is a flow chart illustrating a method of performing coarse phase detection according to an example embodiment;

[0040] Fig. 9 is a flow chart illustrating determination of an MTP frame according to an example embodiment;

[0041] Fig.10 is a schematic diagram illustrating a method of maintaining a peak intensity frame as a preview frame according to an example embodiment; and

[0042] Fig.11A and Fig. 11B is a schematic diagram illustrating the difference between a related method and a method according to an example embodiment. DETAILED DESCRIPTION

[0043] Various features and advantageous details of the embodiments are explained with reference to the example embodiments shown in the accompanying drawings and described in detail in the following description. Descriptions of well-known components and processing techniques are omitted so as not to unnecessarily obscure the example embodiments described herein. In addition, the various example embodiments described herein are not necessarily mutually exclusive, as some example embodiments may be combined with one or more other example embodiments to form new example embodiments. Unless otherwise stated, the term "or" used herein refers to a non-exclusive or. The examples used herein are intended only to facilitate an understanding of the ways in which the example embodiments herein may be practiced, and to further enable those skilled in the art to practice the example embodiments herein. Therefore, the examples should not be interpreted as limiting the scope of the example embodiments herein.

[0044] As is conventional in the art, example embodiments may be described and illustrated in terms of blocks that perform one or more functions described. These blocks may be referred to herein as managers, units, modules, hardware components, etc., which are physically implemented by analog and / or digital circuits such as logic gates, integrated circuits, microprocessors, microcontrollers, memory circuits, passive electronic components, active electronic components, optical components, hard-wired circuits, etc., and may be optionally driven by firmware and software. For example, the circuit may be implemented in one or more semiconductor chips, or on a substrate support such as a printed circuit board. The circuits constituting a block may be implemented by dedicated hardware, or by a processor (e.g., one or more programmed microprocessors and associated circuits), or by a combination of dedicated hardware configured to perform some functions of the block and a processor that performs other functions of the block. Without departing from the scope of the present disclosure, each block may be physically divided into two or more interacting and discrete blocks. Similarly, without departing from the scope of the present disclosure, blocks may be physically combined into more complex blocks.

[0045] The accompanying drawings are used to help easily understand various technical features, and it should be understood that the example embodiments presented herein are not limited by the accompanying drawings. Therefore, the present disclosure should be interpreted as extending to any changes, equivalents and substitutes other than those specifically set forth in the accompanying drawings. Although the terms first, second, etc. can be used to describe various elements in this article, these elements should not be limited by these terms. These terms are usually only used to distinguish one element from another element.

[0046] Therefore, the example embodiments of the present invention disclose a method for maintaining a peak intensity frame as a preview frame in a slow motion mode of a camera sensor of an electronic device. The method includes: receiving, by an electronic device, a plurality of frames having associated frame intensities from a field of view of a camera sensor of the electronic device. In addition, the method includes: selecting, by the electronic device, a preview frame and a previous preview frame from a plurality of frames. In addition, the method includes: performing, by the electronic device, a coarse phase detection based on the frame intensities of the previous preview frame and the preview frame to identify a trend in the frame intensity. In addition, the method includes: monitoring, by the electronic device, a plurality of transition preview frames after the preview frame based on the coarse phase detection. In addition, the method includes: detecting, by the electronic device, at least one transition preview frame whose frame intensity is less than the frame intensity of the previous transition preview frame from a plurality of transition preview frames. In addition, the method includes: selecting, by the electronic device, a next transition preview frame as a subsequent preview frame after the preview frame based on the frame intensity of the at least one transition preview frame.

[0047] Referring now to the drawings (more particularly, Figures 1 to 10 , Fig.11A and Fig. 11B) shows an example embodiment, wherein like reference symbols consistently denote corresponding features throughout the accompanying drawings.

[0048] Figure 1 1 is a block diagram of an electronic device 100 for maintaining a peak intensity frame as a preview frame in a slow motion mode of a camera sensor 140 of the electronic device 100 according to an example embodiment. The electronic device 100 may be, for example, but not limited to, an intelligent social robot, a smart watch, a cellular phone, a smart phone, a personal digital assistant (PDA), a tablet computer, a laptop computer, a music player, a video player, an Internet of Things (IoT) device, a smart speaker, an artificial intelligence (AI) device, etc. including the camera sensor 140. The electronic device 100 includes a memory 110, a processor 120, a communicator 130, a camera sensor 140, and a display 150.

[0049] The processor 120 is coupled to the camera sensor 140, the memory 110, the communicator 130, and the display 150, for example, through a bus. The processor 120 is configured to execute instructions stored in the memory 110, and perform various other processes.

[0050] The memory 110 stores instructions to be executed by the processor 120. The memory 110 may include a non-volatile storage element. Examples of such non-volatile storage elements may include a magnetic hard disk, an optical disk, a floppy disk, a flash memory, or an erasable programmable read-only memory (EPROM) or an electrically erasable programmable read-only memory (EEPROM). In addition, in some examples, the memory 110 may be considered to be a non-transitory storage medium. The term "non-transitory" may indicate that the storage medium is not embodied in a carrier or propagation signal. However, the term "non-transitory" should not be interpreted as the memory 110 being non-removable. In some examples, the memory 110 may be configured to store a larger amount of information than the memory. In some examples, the non-transitory storage medium may store data that may change over time (e.g., in a random access memory (RAM) or a cache).

[0051] The communicator 130 is configured to communicate internally between internal hardware components and to communicate with external devices via one or more networks, and may include a transceiver (transmitter and receiver). The display 150 is configured to display an image, which may be based on the output of the camera sensor 140 .

[0052] The electronic device 100 is configured to maintain a peak intensity frame as a preview frame in a slow motion mode of the camera sensor 140 of the electronic device 100 to reduce flicker in the preview of the camera sensor 140 .

[0053] In an example embodiment, during a slow motion mode of the camera sensor 140, there are multiple frames in the field of view of the camera sensor 140. The frame intensity of each of the multiple frames in the slow motion mode is determined by the electronic device 100 from multiple regions of interest of the frames. The frame intensity of each of the multiple frames in the slow motion mode is plotted as a waveform relative to the frame number. It is observed that the waveform is periodic in nature. The periodic nature of the waveform of frame intensity relative to frame number indicates that the frame intensity is similar after every nth frame.

[0054] After obtaining a waveform of frame intensity for each of a plurality of frames in a slow motion mode, the electronic device 100 selects the zeroth frame in the waveform as a previous preview frame. In addition, the preview frame is selected, and a coarse phase detection is performed on the preview frame. The coarse phase detection detects whether the preview frame is at a rising edge or a falling edge in the waveform. After performing the coarse phase detection, the electronic device 100 is configured to obtain a plurality of transition preview frames based on the result of the coarse phase detection.

[0055] After determining a plurality of transition preview frames, the electronic device 100 is configured to determine a maximum turning point (MTP) frame from the plurality of transition preview frames based on the strength of the transition preview frames. The MTP is defined as a point at which a sudden drop in frame strength is observed compared to a previous transition preview frame after a continuous increase in frame strength. The sudden drop in frame strength is referred to as a first deduction, wherein the first deduction is greater than a first threshold. In an example embodiment, the first threshold is determined based on a plurality of adjustable factors.

[0056] After determining the MTP frame, the electronic device 100 is configured to determine a peak intensity frame as a next preview frame after the MTP frame by correcting the first subtraction of the preview frame intensity. Thereafter, the electronic device 100 maintains the peak intensity frame as a subsequent preview frame.

[0057] While maintaining the peak intensity frame as a subsequent preview frame, the electronic device 100 is configured to detect a second subtraction of the preview frame intensity. The electronic device 100 is also configured to perform fine refinement by correcting the second subtraction of the preview frame intensity to re-maintain the peak intensity frame as the preview frame. The second subtraction indicates that the frame intensity has dropped by a value greater than a second threshold.

[0058] In yet another example embodiment, the electronic device 100 is further configured to monitor the preview frame and detect a third deduction of the peak intensity, wherein the third deduction indicates that the peak intensity has dropped by a value greater than a third threshold value, and the third threshold value is less than the second threshold value.

[0059] After determining the third subtraction, the electronic device 100 is configured to perform a second fine refinement. If the electronic device 100 cannot reach the peak intensity by performing fine refinement after the third subtraction, the electronic device 100 performs coarse phase detection again. In an example embodiment, if a peak intensity frame is obtained after performing the second fine refinement, the electronic device 100 is configured to maintain the peak intensity frame as a preview frame and further detect at least one subsequent subtraction of the frame intensity of the preview frame.

[0060] Therefore, peak intensity frames are maintained by thoroughly monitoring the preview frames.

[0061] Figure 1 A limited overview of the electronic device 100 is shown, but it should be understood that the example embodiments are not limited thereto. In addition, the electronic device 100 may include any number of hardware or software components that communicate with each other. As an illustration, both the applications running on the electronic device 100 and the device itself may be components.

[0062] Figure 2 2 is a diagram illustrating a processor 120 and components thereof for maintaining a peak intensity frame as a preview frame in a slow motion mode of a camera sensor 140 of an electronic device 100 according to an example embodiment.

[0063] like Figure 2 The processor 120 is shown to include a coarse phase detector 202 , a transition frame determiner 204 , an MTP detector 206 , a peak recovery engine 208 , a drift detector 210 , and a fine refiner 212 .

[0064] In an example embodiment, after forming a periodic waveform of frame intensities of a plurality of frames in a slow motion mode of the camera sensor 140, the coarse phase detector 202 is configured to perform coarse phase detection. In an example embodiment, the processor 120 selects a zeroth (0th) frame in the waveform as a previous preview frame, and then selects a next nth frame after the 0th frame. The coarse phase detector 202 performs a -1 offset of a frame number of the nth frame. The (n-1)th frame in the waveform is selected as a preview frame. In an example embodiment, the processor may select any frame in the waveform as a previous preview frame, and select a next (n-1)th frame after the previous preview frame as a preview frame.

[0065] Now the coarse phase detector 202 determines the phase of the preview frame. In an exemplary embodiment, the coarse phase detector 202 checks whether the intensity of the preview frame is less than the intensity of the previous preview frame. If the intensity of the preview frame is less than the intensity of the previous preview frame, the coarse phase detector 202 determines that the preview frame is at the rising edge of the waveform.

[0066] In another example embodiment, if the intensity of the preview frame is greater than the intensity of the previous preview frame, the coarse phase detector 202 determines that the preview frame is at the falling edge of the waveform. Therefore, the coarse phase detector 202 determines the phase of the preview frame as described above.

[0067] After performing the coarse phase detection, the transition frame determiner 204 determines a plurality of transition preview frames. The transition preview frame is a preview frame between the preview frame and the MTP frame. The transition frame determiner 204 performs an offset of +1 or -1 on the frame number of each nth frame after the preview frame and before the MTP frame based on the result of the coarse phase detection to obtain the transition preview frame.

[0068] In an exemplary embodiment, if the preview frame is a rising edge frame, the transition frame determiner 204 performs an offset of the frame number +1 of each n-th frame after the preview frame. Therefore, each (n+1)-th frame after the preview frame and before the MTP frame is selected as a transition preview frame. Similarly, if the preview frame is a falling edge frame, the transition frame determiner 204 performs an offset of the frame number -1 of each n-th frame after the preview frame. Therefore, each (n-1)-th frame after the preview frame and before the MTP frame is selected as a transition preview frame. Therefore, after the preview frame until the MTP frame is detected, a plurality of transition preview frames are obtained.

[0069] The MTP detector 206 is configured to detect MTP frames. The MTP detector 206 continuously monitors the frame intensity of the transition preview frame to check whether there is a reduction in the frame intensity of the transition preview frame compared to the previous transition preview frame at any time point. This reduction in frame intensity is called the first deduction. The MTP detector 206 checks whether the first deduction of the transition preview frame intensity is greater than the first threshold. If the first deduction is greater than the first threshold, the MTP detector 206 confirms that the transition preview frame is an MTP frame, and at the transition preview frame, the reduction in frame intensity is greater than the first threshold.

[0070] Once the MTP frame is detected, the peak recovery engine 208 corrects the first subtraction and obtains the peak intensity frame as the next preview frame after the MTP frame. To obtain the next preview frame, the peak recovery engine 208 performs a shift of -1 or +1 to the frame number of the nth frame after the MTP frame in the waveform.

[0071] In an example embodiment, if the preview frame is determined to be a falling edge frame during coarse phase detection, the peak recovery engine 208 performs an offset of the frame number +1 of the nth frame after the MTP frame. The (n+1)th frame after the MTP frame is determined to be a peak intensity frame and is selected as a preview frame. In addition, every nth frame after the peak intensity frame is maintained as a preview frame until a second subtraction of the preview frame intensity is determined. Therefore, the peak recovery engine 208 maintains the peak intensity frame as a preview frame after the MTP frame.

[0072] Similarly, in another example embodiment, if the preview frame is determined to be a rising edge frame during the coarse phase detection, the peak recovery engine 208 performs a shift of the frame number -1 of the nth frame after the MTP frame. The (n-1)th frame after the MTP frame is determined to be a peak intensity frame and is selected as a preview frame. In addition, every nth frame after the peak intensity frame is maintained as a preview frame until a second subtraction of the preview frame intensity is determined. Therefore, the peak recovery engine 208 maintains the peak intensity frame as a preview frame after the MTP frame.

[0073] While maintaining the peak intensity frame as the preview frame, the drift detector 210 keeps monitoring the preview frame for a negative drift in the intensity of the preview frame. The drift detector 210 is configured to detect a second deduction in the frame intensity of the preview frame. The drift detector 210 continuously compares the frame intensity of the current preview frame with the peak intensity and determines whether there is a second deduction in the frame intensity such that the second deduction in the frame intensity is greater than a second threshold.

[0074] After determining the second subtraction of the frame intensity of the preview frame, the fine refiner 212 performs a first fine refinement to obtain the next preview frame. When the fine refinement is completed for the first time after the coarse phase detection, the fine refiner 212 performs an offset of -1 or +1 to return to the peak intensity. In an exemplary embodiment, the fine refiner 212 determines whether the preview frame for which the second subtraction is detected is a rising edge frame or a falling edge frame. If the preview frame for which the second subtraction is detected is a rising edge frame, the fine refiner 212 performs an offset of +1 to the frame number of the next n-th frame after the second subtraction. Therefore, the (n+1)-th frame after the second subtraction is again determined to be a peak intensity frame, and therefore, the fine refiner 212 helps maintain the peak intensity frame as a preview frame.

[0075] Similarly, if it is detected that the preview frame of the second subtraction is a falling edge frame, the fine refiner 212 performs a -1 shift of the frame number of the nth frame after the second subtraction. Therefore, the (n-1)th frame after the second subtraction is again determined as a peak intensity frame, and the fine refiner 212 helps maintain the peak intensity frame as a preview frame.

[0076] At the same time, the drift detector 210 keeps monitoring the preview frame for a negative drift in the intensity of the preview frame after the first fine refinement. The drift detector 210 is configured to detect a third deduction of the peak intensity. The drift detector 210 detects the third deduction of the peak intensity while holding the preview frame after the first fine refinement. The drift detector 210 constantly compares the current preview frame intensity with the peak intensity and determines that there is a deduction in the frame intensity if the third deduction of the preview frame intensity is greater than a third threshold.

[0077] After determining the third subtraction of the preview frame strength, fine refiner 212 performs a second fine refinement on the preview frame. For the second fine refinement, fine refiner 212 uses the same offset value as used during the first fine refinement.

[0078] In an example embodiment, if an offset of -1 is used during the first fine refinement, the fine refiner 212 performs an offset of -1 to the frame number of the n-th frame after the third subtraction. In another example embodiment, if an offset of +1 is used during the first fine refinement, the fine refiner 212 performs an offset of +1 to the frame number of the n-th frame after the third subtraction.

[0079] In yet another example embodiment, if after performing the second fine refinement, the obtained preview frame does not have a peak intensity, the process starts again from the coarse phase detection. In another example embodiment, if after performing the second fine refinement, the obtained preview frame has a peak intensity value, the fine refiner 212 maintains every nth frame after the second fine refinement as a preview frame, and the drift detector 210 continues to monitor the preview frame after the second fine refinement until a subsequent subtraction of the preview frame intensity is determined. The entire process of fine refinement is then performed.

[0080] Figure 2 A limited overview of the processor 120 is shown, but it should be understood that example embodiments are not limited in this regard. Furthermore, the processor 120 may include any number of components in communication with each other.

[0081] Figure 3 is a diagram showing frame intensity waveforms for multiple regions of interest (ROIs) according to embodiments disclosed herein.

[0082] like Figure 3 As shown, the x-axis represents the frame number and the Y-axis represents the frame intensity of multiple frames in the slow motion mode. Different line types represent different ROIs for which the curve graph is drawn. The curve graph is a waveform that repeats itself after equal intervals. Figure 3 As shown, for each region of interest, the peak intensity value is obtained at the same frame number. As can be seen, the first peak intensity is obtained at frame 1, the next peak is obtained at frame 9, followed by frame 17, and so on. Therefore, the frame intensity values ​​are the same after every 8th frame, and the waveform repeats after every 8th frame. In an example embodiment, the waveform can repeat itself after any number of frames, for example, the waveform can repeat itself after every 16th frame or 32nd frame, depending on the frequency of the camera sensor 140. The continuous curve is a positive / absolute 120Hz sine wave, that is, negative values ​​are also taken as positive. Different ROI curves follow similar waveforms.

[0083] Figure 4is a diagram showing frame intensity waveforms and coarse phase detection accumulated from multiple ROIs according to an example embodiment. Figure 4 As shown, the frame intensity is plotted as a function of the frame number at different frequencies. The frame intensity values ​​are accumulated from multiple ROIs to obtain a single value for the frame. These accumulated values ​​also follow a similar waveform. Figure 4 , a positive / absolute sine wave shown by a dotted waveform and a line waveform are plotted to explain the flow of the proposed method. The dotted waveform represents the accumulated intensity values. It is not an exact representation of the accumulated frame intensity values ​​in slow motion mode as the waveform formed using the accumulated values ​​will not be continuous, but it is used for ease of graphical illustration / representation. The line waveform is used to show instances / positions where the frames would appear if captured at a frame rate of 960fps. The line waveform has a frequency of 960Hz and the dotted waveform has a frequency of 120Hz. Consider a frame rate of 960fps. In this case, 120Hz, 960 / 120=8. If a peak intensity frame is obtained at 0, the next peak intensity frame will be 8, in which case every 16th frame is selected to obtain a preview frame rate of 60fps.

[0084] For example, the light may flicker at 100 Hz. In this case, 100 Hz, 960 / 100 = 9.6. If a peak intensity frame is obtained at 0, the next peak intensity frame will be at 10, then 19, in which case every 10th and 19th frame in the pattern is selected to obtain a 60 fps preview frame rate.

[0085] In addition, if Figure 4 As shown, for a 120Hz signal, in an example embodiment, the frame intensity is calculated to be 0.7 at frame number 2, as shown by the black dot. In this case, frame 2 is selected as the previous preview frame. In addition, since every 16th frame is selected to obtain a 60fps preview frame rate, the next frame with similar intensity is the 18th frame. The 18th frame is selected because the frame intensity corresponding to frame 2 is the 10th frame, the 18th frame, and so on. However, since the difference is considered to be 16, the next similar frame is the 18th frame in this case. The coarse phase detector 202 performs an offset of -1 on the frame number of the 18th frame and obtains the 17th frame. The 17th frame is a preview frame. The coarse phase detector 202 determines whether the 17th frame is at the rising edge or the falling edge of the waveform. The frame intensities of the 17th frame and the 2nd frame are compared. If the frame intensity of the 17th frame is less than the frame intensity of the 2nd frame, the 17th frame is considered to be at the rising edge of the waveform.

[0086] If the frame intensity of the 17th frame is greater than the frame intensity of the 2nd frame, the 2nd frame is considered to be at the falling edge of the waveform. In the current example, the frame intensity of the 17th frame is 0.4, which is less than the frame intensity of the 2nd frame, and is therefore at the rising edge of the waveform, as shown by the black dot with a frame intensity of 0.4 on the y-axis. Therefore, in order to obtain the transition preview frame, an offset of +1 is applied to the next 16th frame. Therefore, the transition preview frame is obtained by performing 17+17. Therefore, the transition preview frame is the 34th frame in the waveform.

[0087] Similarly, in another example embodiment, the frame intensity is calculated to be 0.3 at frame number 7, as shown by the triangle. In this case, the 7th frame is selected as the previous preview frame. In addition, since every 16th frame is selected to obtain a 60fps preview frame rate, the next frame with similar frame intensity is the 23rd frame. However, in order to determine the preview frame, an offset of -1 is applied to the 23rd frame. Therefore, the preview frame is the 22nd frame in the waveform. The frame intensities of the 22nd frame and the 7th frame are compared. If the frame intensity of the 22nd frame is less than the frame intensity of the 7th frame, the 22nd frame is considered to be at the rising edge of the waveform. If the frame intensity of the 22nd frame is greater than the frame intensity of the 7th frame, the 22nd frame is considered to be at the falling edge of the waveform.

[0088] In the current example, the frame intensity of the 22nd frame is 0.7, which is greater than the frame intensity of the 7th frame, so the 22nd frame is at the falling edge of the waveform, as shown by the triangle on the y-axis. To determine the transition preview frame, an offset of -1 is applied to the next 16th frame, that is, 7+15 is performed. Therefore, the transition preview frame is the 22nd frame in the waveform.

[0089] Therefore, using the above steps, a coarse phase detection of the signal is performed and a transition preview frame is obtained.

[0090] Figure 5 is a diagram illustrating determination of an MTP frame according to an example embodiment.

[0091] like Figure 5 As shown, the x-axis represents the frame number and the y-axis represents the frame intensity of multiple frames in slow motion mode. The current waveform repeats after every 9.6th frame (rounded to the 10th frame). The MTP detector 206 constantly monitors the intensity of the transition preview frame, and it determines that the transition preview frame intensity of transition preview frame 6 is reduced compared to the previous transition preview frame. The MTP detector 206 checks whether the difference in frame intensity is greater than a first threshold. If the difference is greater than the first threshold, the MTP detector 206 confirms that the transition preview frame is an MTP frame, and at the transition preview frame, the reduction in frame intensity is greater than the first threshold. In the current case, the MTP detector 206 detects that the difference is greater than the first threshold, so the transition preview frame 6 is marked as an MTP frame.

[0092] Therefore, using the above method, the MTP frame is determined, and based on the MTP frame, the next peak value is obtained.

[0093] Figure 6 is a graphical representation showing a preview frame after obtaining a peak intensity frame as an MTP frame according to an example embodiment.

[0094] like Figure 6 As shown, there are two example situations. The first example situation is shown by dashed lines and triangles, while the second example situation is shown by solid lines and dots.

[0095] First example scenario: The frame numbered 7 in the waveform is selected as a preview frame to which coarse phase detection has been applied, and it is determined that the preview frame is at a falling edge. Therefore, an offset of -1 is applied to the next nth frame based on the coarse phase detection previously performed to obtain a transition preview frame. Here, the value of n is 16, so the transition preview frame is the 22nd frame in the waveform. Now in order to detect the MTP frame, the MTP detector 206 compares the frame intensity of the transition preview frame with the previous transition preview frame, and continues to do so until a decrease in the frame intensity of the transition preview frame is detected. Therefore, the 37th frame and the 52nd frame are obtained as the next transition preview frame. However, the next preview frame 67 has a frame intensity less than the 52nd frame. In addition, it is determined that the decrease in frame intensity is greater than the first threshold, so frame 67 is determined to be an MTP frame. Now after the MTP frame (67th), an offset of +1 is performed to obtain a peak intensity frame. The peak intensity frame is selected as the next preview frame after the MTP frame. Therefore, the next preview frame is the 84th frame in the waveform.

[0096] Second example scenario: The frame numbered 1 in the waveform is selected as a preview frame for which a coarse phase detection has been performed, and it is determined that the preview frame is at a rising edge. Therefore, an offset of +1 is applied to the next nth frame based on the coarse phase detection previously performed to obtain a transition preview frame. Here, the value of n is 16, so the transition preview frame is the 18th frame in the waveform. Now in order to detect the MTP frame, the MTP detector 206 compares the frame intensity of the transition preview frame with the previous transition preview frame, and continues to do so until a decrease in the frame intensity of the transition preview frame is detected. Therefore, the 35th frame and the 52nd frame are obtained as the next transition preview frame. However, the next preview frame 69 has a frame intensity less than the 52nd frame. In addition, it is determined that the decrease in frame intensity is greater than the first threshold, so frame 69 is determined to be an MTP frame. Now after the MTP (69th) frame, an offset of -1 is performed to obtain a peak intensity frame (84). The peak intensity frame is selected as the next preview frame after the MTP frame. Therefore, the next preview frame is the 84th frame in the waveform.

[0097] Therefore, the above two example scenarios explain the determination of the MTP and the next preview frame after the MTP.

[0098] Figure 7 is a flowchart 700 illustrating a method for managing peak intensity frames as preview frames according to an example embodiment.

[0099] In operation 702, a plurality of frames having associated frame intensities are received from a field of view of a camera sensor 140 of the electronic device 100. In an example embodiment, the intensities of the frames form a periodic waveform.

[0100] In operation 704, a preview frame and a previous preview frame are selected from the plurality of frames. In an example embodiment, the previous preview frame and the plurality of transition preview frames are selected based on a frame rate of the camera sensor 140. The previous preview frame may be a zeroth frame in the waveform.

[0101] In operation 706, coarse phase detection is performed based on the previous preview frame and the frame intensity of the preview frame to identify a trend in the frame intensity. In an example embodiment, the trend in the frame intensity indicates one of an increase and a decrease in the frame intensity. In an example embodiment, the coarse phase detection is performed by performing an offset of the n-th frame-1 in a periodic waveform and comparing the frame intensity of the (n-1)th frame with the frame intensity of the previous preview frame, wherein the (n-1)th frame is a preview frame, and wherein every n-th frame has the same frame intensity, detecting whether the intensity of the preview frame is greater than the intensity of the previous preview frame, and detecting one of the following: in response to determining that the intensity of the preview frame is less than the intensity of the previous preview frame, detecting that the preview frame is a rising edge frame in the periodic waveform; and in response to determining that the intensity of the preview frame is greater than the intensity of the previous preview frame, detecting that the preview frame is a falling edge frame in the periodic waveform.

[0102] In operation 708, a plurality of transition preview frames after the preview frame are monitored based on the coarse phase detection. In an exemplary embodiment, the plurality of transition preview frames after the preview frame are monitored by performing one of the following: when the preview frame is a rising edge frame, performing a shift of +1 to the frame number of each n-th frame after the preview frame, and selecting the obtained frame as the transition preview frame until the MTP frame is determined; and when the preview frame is a falling edge frame, performing a shift of -1 to the frame number of each n-th frame after the preview frame, and selecting the obtained frame as the transition preview frame until the MTP frame is determined.

[0103] In operation 710, at least one transition preview frame whose frame intensity is less than the frame intensity of a previous transition preview frame is detected from a plurality of transition preview frames. In an embodiment, the at least one transition preview frame comprises an MTP frame having a maximum peak intensity achieved by a previous transition preview frame. The MTP frame indicates a first subtraction of the frame intensity compared to the frame intensity of the previous transition preview frame, wherein the first subtraction is greater than a first threshold. In an example embodiment, the peak intensity frame is selected as a next preview frame after the MTP frame by correcting an offset value for the next preview frame, wherein the offset value is used to control a flicker effect for the next preview frame.

[0104] In operation 712, a next transition preview frame is selected as a subsequent preview frame after the preview frame based on the frame strength of the at least one transition preview frame. In an exemplary embodiment, the next transition preview frame is selected as the subsequent preview frame by performing one of the following items: when the preview frame is a rising edge frame during coarse phase detection, performing a -1 offset of the frame number of the next n-th frame after the MTP frame, and selecting the (n-1)-th frame after the MTP frame as the next preview frame; and when the preview frame is a falling edge frame during coarse phase detection, performing a +1 offset of the frame number of the next n-th frame after the MTP frame, and selecting the (n+1)-th frame after the MTP frame as the next preview frame.

[0105] Figure 8 is a flow chart illustrating a method of performing coarse phase detection according to an example embodiment.

[0106] After obtaining the waveform of the frame intensity of each of the plurality of frames in the slow motion mode, the coarse phase detector 202 performs coarse phase detection. At operation 706A, an offset of -1 is performed for the nth frame after the previous preview frame in the waveform. Therefore, the (n-1)th frame after the 0th frame in the waveform is a preview frame. Now coarse phase detection is performed on the preview frame. At operation 706B, after performing the offset of -1, the coarse phase detector 202 checks whether the intensity of the preview frame is less than the intensity of the previous preview frame. If the intensity of the preview frame is less than the intensity of the previous preview frame, the process proceeds to operation 706C. At operation 706C, the coarse phase detector 202 determines that the current preview frame is at a rising edge of the waveform.

[0107] If it is determined in operation 706B that the intensity of the (n-1)th frame is greater than the intensity of the previous preview frame, the flow proceeds to operation 706D. In operation 706D, the coarse phase detector 202 determines that the current preview frame is at a falling edge of the waveform.

[0108] Fig. 9 is a flow chart illustrating determination of an MTP frame according to an example embodiment.

[0109] After obtaining a plurality of transition preview frames in operation 708, the MTP detector 206 uses Fig. 9 In the process steps in operation 710, an MTP frame is determined in operation 710. In operation 710A, it is determined whether there is a reduction in the intensity of the transition preview frame. If there is a reduction in the intensity of the transition preview frame, the process proceeds to operation 710B, and if there is no reduction, the process proceeds to operation 710D. In operation 710B, it is determined whether the deduction of the frame intensity is greater than a first threshold. If the deduction of the frame intensity is greater than the first threshold, the process proceeds to operation 710C. In operation 710C, the transition preview frame detected to be deducted by the first intensity is confirmed as an MTP frame. If it is determined in operation 710B that the deduction of the frame intensity is less than the first threshold, the process proceeds to operation 710D. In operation 710D, multiple transition preview frames are obtained.

[0110] Fig.10 is a schematic diagram illustrating a method of maintaining a peak intensity frame as a preview frame according to an example embodiment.

[0111] like Fig.10 As shown, the x-axis represents the frame number of the preview frame and the y-axis represents the frame intensity. The triangles along the bottom curve represent the preview frame waveform for the related method. The points along the upper curve represent the preview frame waveform according to the example embodiment. According to the example embodiment, Fig.10 As shown, the MTP is first detected, and then a peak intensity frame is obtained as a preview frame. In addition, a second deduction greater than a second threshold is detected, and a first fine refinement is performed. In addition, a third deduction greater than a third threshold is detected, and a second fine refinement is performed using the same offset value as when performed for the second threshold, and thus a peak intensity frame is achieved.

[0112] Furthermore, in the method according to the example embodiment, using fine refinement, a peak intensity frame is selected as a preview frame even if the frequency of the light source has a slight deviation. Fig.10 In FIG. 1 , the frequency of the light source is 60.1 Hz. As shown in the figure, the related method exhibits a flickering effect, with frame intensities rising and falling. On the other hand, the method according to the exemplary embodiment selects a preview frame with a higher frame intensity.

[0113] An advantage of using the proposed method is that only peak intensity frames are maintained as preview frames, thus alleviating the light flicker problem occurring in the slow motion mode of the camera sensor 140 .

[0114] Fig.11A and Fig. 11B is a schematic diagram illustrating the difference between a related method and a method according to an example embodiment.

[0115] Fig.11A The output of camera sensor 140 is shown on display 150 using a correlation method. Fig. 11B1 shows the output of the camera sensor 140 on the display 150 using a method according to an example embodiment. Fig.11A As shown, the output is darker than the output in the method according to the exemplary embodiment. Therefore, the exemplary embodiment maintains the peak intensity frame as the preview frame, reduces light flicker and provides better output.

[0116] The example embodiments disclosed herein may be implemented using at least one software program running on at least one hardware device and performing network management functions to control the elements.

[0117] While example embodiments have been shown and described, it will be appreciated by those skilled in the art that changes may be made thereto without departing from the principles and spirit of the disclosure, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for maintaining a peak intensity frame as a preview frame, the method comprising the steps of: receiving, by an electronic device, a plurality of frames from a camera sensor of the electronic device, each of the plurality of frames having an associated frame intensity; selecting, by the electronic device, a preview frame and a previous preview frame from the plurality of frames; performing, by the electronic device, coarse phase detection based on the frame intensities of the previous preview frame and the preview frame to identify a trend in frame intensities; The electronic device monitors a plurality of transition preview frames after the preview frame; Detecting, by the electronic device, at least one transition preview frame from the plurality of transition preview frames, whose frame intensity is less than that of a previous transition preview frame, wherein the at least one transition preview frame includes a maximum turning point frame having a maximum peak intensity after the previous transition preview frame; and The electronic device selects a next transition preview frame as a subsequent preview frame after the preview frame based on the frame intensity of the at least one transition preview frame, wherein the electronic device selects the peak intensity frame as the next preview frame by correcting an offset value for the next preview frame after the maximum turning point frame, The offset value is used to control the flickering effect of the next preview frame. The maximum turning point frame has a frame intensity that is lower than a frame intensity of the previous transition preview frame by at least a first threshold.

2. The method of claim 1, further comprising the step of selecting the previous preview frame and the plurality of transition preview frames based on a frame rate of the camera sensor.

3. The method according to claim 1, in, The associated frame intensities corresponding to the plurality of frames form a periodic waveform.

4. The method according to claim 1, in, The previous preview frame is the initial frame in the waveform.

5. The method according to claim 1, in, The method further comprises the steps of: maintaining, by the electronic device, the peak intensity frame as the next preview frame; determining, by the electronic device, a subtraction of preview frame intensity while maintaining the peak intensity frame; as well as Fine refinement is performed by the electronic device by correcting the offset value of the preview frame intensity to maintain the peak intensity frame as the preview frame.

6. The method according to claim 5, in, The step of determining the subtraction while maintaining the peak intensity frame includes determining that an intensity of the preview frame is less than an intensity of the peak intensity frame by a second threshold.

7. The method according to claim 5, in, The step of performing the fine refinement after determining the subtraction in the peak intensity frame comprises performing one of: The preview frame detected based on the subtraction is a rising edge frame, performing a +1 shift on the frame number of the next n-th frame after the subtraction is detected; as well as The preview frame detected based on the subtraction is a falling edge frame, and a -1 offset is performed on the frame number of the next n-th frame after the subtraction is detected.

8. The method according to claim 1, in, The associated frame intensities corresponding to the plurality of frames form a periodic waveform, and The step of performing the coarse phase detection by the electronic device includes: comparing, by the electronic device, a frame strength of an (n-1)th frame with a frame strength of the previous preview frame, wherein the (n-1)th frame is the preview frame, and wherein every nth frame of the plurality of frames has a common frame strength; detecting, by the electronic device, whether the intensity of the preview frame is greater than the intensity of the previous preview frame; and Detect one of the following: Based on the intensity of the preview frame being less than the intensity of the previous preview frame, detecting that the preview frame is a rising edge frame in the periodic waveform; and Based on the intensity of the preview frame being greater than the intensity of the previous preview frame, it is detected that the preview frame is a falling edge frame in the periodic waveform.

9. The method according to claim 1, in, The monitoring step includes performing one of the following: Based on the preview frame being a rising edge frame, performing a +1 offset on the frame number of each n-th frame after the preview frame, and selecting the obtained frame as a transition preview frame until the maximum turning point frame is determined; as well as Based on the fact that the preview frame is a falling edge frame, a -1 offset is performed on the frame number of each n-th frame after the preview frame, and the obtained frame is selected as a transition preview frame until the maximum turning point frame is determined.

10. The method according to claim 1, in, The step of selecting the next transition preview frame comprises performing one of the following: Based on the trend of the frame intensity indicating that the preview frame is a rising edge frame, performing a -1 offset on the frame number of the next n-th frame after the maximum turning point frame, and selecting the (n-1)-th frame after the maximum turning point frame as the next preview frame; as well as Based on the trend of the frame intensity indicating that the preview frame is a falling edge frame, a +1 offset is performed on the frame number of the next nth frame after the maximum turning point frame, and the (n+1)th frame after the maximum turning point frame is selected as the next preview frame.

11. The method according to claim 1, in, The trend of the frame intensity indicates one of an increase in frame intensity and a decrease in frame intensity.

12. An electronic device, the electronic device being used to maintain a peak intensity frame as a preview frame, the electronic device include: Memory; as well as A processor, coupled to the memory, is configured to: receiving a plurality of frames from a camera sensor of the electronic device, each of the plurality of frames having an associated frame intensity; selecting a preview frame and a previous preview frame from the plurality of frames; performing coarse phase detection based on the frame intensities of the previous preview frame and the preview frame to identify a trend in frame intensities; monitoring a plurality of transition preview frames after the preview frame; Detecting at least one transition preview frame whose frame intensity is less than that of a previous transition preview frame from the multiple transition preview frames, wherein the at least one transition preview frame includes a maximum turning point frame having a maximum peak intensity after the previous transition preview frame; and Based on the frame intensity of the at least one transition preview frame, a next transition preview frame is selected as a subsequent preview frame after the preview frame, wherein the peak intensity frame is selected as the next preview frame by correcting an offset value for the next preview frame after the maximum turning point frame, The offset value is used to control a flickering effect of the next preview frame, wherein the maximum turning point frame has a frame intensity that is at least a first threshold lower than a frame intensity of the previous transition preview frame.

13. The electronic device as claimed in claim 12, in, The processor is further configured to select the previous preview frame and the plurality of transition preview frames based on a frame rate of the camera sensor.

14. The electronic device according to claim 12, in, The associated frame intensities corresponding to the plurality of frames form a periodic waveform.

Citation Information

Patent Citations

  • Method for dynamically improving effect of cell phone front camera

    CN102790862A

  • Brightness adjustment method and mobile terminal

    CN106357989A

  • Video waveform peak indicator

    CN109218818A

  • System and Method for Minimizing Motion Artifacts During the Fusion of an Image Bracket Based On Preview Frame Analysis

    US20160205291A1