A flicker detection method and device, electronic equipment and medium

By correcting the sampled voltage spectrum, the problems of spectral leakage and detection errors in the extremely low frequency band in the fast Fourier transform were solved, enabling more accurate instantaneous flicker perception measurement and improving detection accuracy.

CN117706199BActive Publication Date: 2026-11-20WINDEY ENERGY TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311710435.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2026-11-20
Estimated Expiration
2043-12-13

AI Technical Summary

Technical Problem

Existing voltage fluctuation and flicker detection methods based on Fast Fourier Transform suffer from spectral leakage and picket fence effects, resulting in insufficient accuracy in detecting the severity of short-term flicker.

Method used

The sampled voltage is processed by Fast Fourier Transform to obtain a spectrum, the voltage fluctuation amplitude corresponding to each frequency is determined, a preset function is called to determine the visual sensitivity, and the visual sensitivity is corrected to obtain the target visual sensitivity, and finally the instantaneous flicker visual sensitivity is determined.

Benefits of technology

This improves the accuracy of frequency domain method for detecting transient flicker perception and enhances the precision of short-term flicker severity detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117706199B_ABST
    Figure CN117706199B_ABST
Patent Text Reader

Abstract

The application discloses a flicker detection method and device, electronic equipment and medium, and is applied to the flicker detection field. The method provided by the application comprises the following steps: processing the sampling voltage by using fast Fourier transform to obtain a frequency spectrum diagram of the sampling voltage; determining voltage fluctuation amplitudes corresponding to each frequency according to the frequency spectrum diagram of the sampling voltage; calling a preset function to determine visual sensitivities corresponding to each voltage fluctuation amplitude; correcting each visual sensitivity to obtain each target visual sensitivity; and determining an instantaneous flicker visual sensitivity according to a plurality of target visual sensitivities. It can be seen that the application firstly acquires voltage amplitudes corresponding to each frequency in the sampling voltage, and on this basis, the preset function is used to correct the spectrum line of the sampling voltage frequency spectrum diagram in view of the fast Fourier transform spectrum leakage problem and the low-frequency band detection error problem, and thus the accuracy of the frequency domain method for detecting the instantaneous flicker visual sensitivity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of flicker detection, and in particular to a flicker detection method, apparatus, electronic device, and medium. Background Technology

[0002] With the high proportion of new energy equipment, such as wind power, photovoltaics, and energy storage, connected to the grid, the uncertainty of wind and solar resources and the operating characteristics of the generating units lead to fluctuations in output power, which in turn cause voltage fluctuations and flicker in the AC and DC transmission and distribution systems, affecting the power quality of the grid. The International Electrotechnical Commission (IEC) and the Standardization Administration of China (SAC) have both put forward relevant standard requirements for voltage fluctuations and flicker. Incandescent lamp illumination is used as a criterion to judge whether voltage fluctuation values ​​are acceptable, describing the degree of voltage fluctuations and flicker through the direct perception of changes in light intensity by the human eye.

[0003] In recent years, the method of describing voltage flicker quantitatively through human visual recognition of changes in light illuminance requires extensive sampling experiments to obtain calculated flicker values. This process is tedious and complex, necessitating the design of a digital implementation for flicker measurement based on experimental data. Currently, a common digital flicker detection method is the voltage fluctuation and flicker detection method based on Fast Fourier Transform (FFT). However, this method suffers from inherent spectral leakage and picket-fence effects, resulting in insufficient accuracy in detecting the severity of short-term flicker.

[0004] Given the above-mentioned technologies, finding a flicker detection method is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a flicker detection method, apparatus, electronic device, and medium. This can solve the problem that the accuracy of short-time flicker severity detection is insufficient due to the inherent spectral leakage and picket fence effect in existing fast Fourier transform voltage fluctuation and flicker detection methods.

[0006] To address the aforementioned technical problems, this application provides a flicker detection method, comprising:

[0007] The sampled voltage is processed using Fast Fourier Transform to obtain the spectrum of the sampled voltage;

[0008] Determine the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage;

[0009] Call the preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude;

[0010] Each visual sensitivity is corrected to obtain the visual sensitivity of each target.

[0011] The instantaneous flicker visual sensitivity is determined based on the visual sensitivity of multiple targets.

[0012] Preferably, obtaining a preset function includes:

[0013] Obtain the amplitude values ​​of reference voltage fluctuations at different frequencies when the instantaneous flicker visual sensitivity is a preset value;

[0014] According to the preset standard rules, determine the reference visual sensitivity coefficients corresponding to each reference voltage fluctuation amplitude;

[0015] The reference visual sensitivity coefficients are fitted to obtain the preset function.

[0016] Preferably, each visual sensitivity is corrected to obtain the following target visual sensitivity:

[0017] Determine whether the frequency corresponding to each visual sensitivity is an integer multiple of the corresponding frequency resolution;

[0018] If not, the corresponding visual sensitivity will be used as the visual sensitivity to be corrected;

[0019] The visual perception to be corrected is then adjusted to obtain the visual perception of each target.

[0020] Preferably, the visual perception to be corrected is corrected to obtain the target visual perception, including:

[0021] Obtain the target voltage fluctuation amplitude and target frequency corresponding to the visual perception to be corrected;

[0022] When the target frequency is located at a point other than the start or end point of the sampling voltage;

[0023] Obtain a first frequency and a second frequency adjacent to the target frequency, as well as a first voltage fluctuation amplitude corresponding to the first frequency and a second voltage fluctuation amplitude corresponding to the second frequency;

[0024] Obtain the visual sensitivity coefficient and the preset initial correction coefficient;

[0025] The correction frequency is determined based on the target frequency, the first frequency, the second frequency, the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude.

[0026] The corrected voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude.

[0027] The target correction coefficient is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, the second voltage fluctuation amplitude, and the preset initial correction coefficient.

[0028] The visual sensitivity of each target is determined based on the correction voltage fluctuation amplitude, correction frequency, target correction coefficient, and visual sensitivity coefficient.

[0029] Preferably, the visual perception to be corrected is corrected to obtain the target visual perception, including:

[0030] Obtain the target voltage fluctuation amplitude and target frequency corresponding to the visual perception to be corrected;

[0031] When the target frequency is located at the start or end point of the sampling voltage;

[0032] Obtain the third frequency adjacent to the target frequency and the third voltage fluctuation amplitude corresponding to the third frequency;

[0033] Obtain the visual sensitivity coefficient and the preset initial correction coefficient;

[0034] The correction frequency is determined based on the target frequency, the third frequency, the target voltage fluctuation amplitude, and the third voltage fluctuation amplitude.

[0035] The corrected voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude and the third voltage fluctuation amplitude;

[0036] The target correction coefficient is determined based on the target voltage fluctuation amplitude, the third voltage fluctuation amplitude, and the preset initial correction coefficient.

[0037] The visual sensitivity of each target is determined based on the correction voltage fluctuation amplitude, correction frequency, target correction coefficient, and visual sensitivity coefficient.

[0038] Preferably, it further includes:

[0039] When the target correction coefficient is greater than the preset limit value, the preset initial correction coefficient will be used as the target correction coefficient.

[0040] Preferably, the sampled voltage is processed using a Fast Fourier Transform to obtain a spectrum of the sampled voltage, including:

[0041] A set of sampled voltages with N voltage sequences is divided into two voltage sequences, a first voltage and a second voltage, each with an N / 2 voltage sequence.

[0042] Perform Fast Fourier Transform on the first voltage and the second voltage respectively to obtain the first transform result and the second transform result;

[0043] The first transformation result and the second transformation result are combined to obtain the target transformation result;

[0044] The spectrum of the sampled voltage is obtained based on the target transformation result.

[0045] To address the aforementioned technical problems, this application also provides a flicker detection device, comprising:

[0046] The processing module is used to process the sampled voltage using a fast Fourier transform to obtain the spectrum of the sampled voltage.

[0047] The first determining module is used to determine the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage.

[0048] The calling module is used to call preset functions to determine the visual sensitivity corresponding to each voltage fluctuation amplitude;

[0049] The correction module is used to correct each visual sensitivity to obtain the visual sensitivity of each target.

[0050] The second determining module is used to determine the instantaneous flickering visual sensitivity based on multiple target visual sensitivitys.

[0051] To address the aforementioned technical problems, this application also provides an electronic device, including a memory for storing computer programs;

[0052] A processor is used to implement the above-described flicker detection steps when executing a computer program.

[0053] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned flicker detection steps.

[0054] This application provides a flicker detection method, comprising: processing a sampled voltage using a Fast Fourier Transform (FFT) to obtain a spectrum of the sampled voltage; determining the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage; calling a preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude; correcting each visual sensitivity to obtain a target visual sensitivity; and determining the instantaneous flicker visual sensitivity based on multiple target visual sensitivityes. It is evident that this application first obtains the voltage amplitude corresponding to each frequency in the sampled voltage. Based on this, it uses a preset function to correct the spectral lines of the sampled voltage spectrum, addressing the issues of FFT spectrum leakage and detection errors in the extremely low frequency band, thereby improving the accuracy of the frequency domain method for detecting instantaneous flicker visual sensitivity. Attached Figure Description

[0055] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 This is a flowchart of the flicker detection method provided in the embodiments of this application;

[0057] Figure 2 The fitting result of the preset function provided in the embodiments of this application;

[0058] Figure 3A complete flowchart of the flicker detection method provided in the embodiments of this application;

[0059] Figure 4 A module diagram of a flicker detection device provided in another embodiment of this application;

[0060] Figure 5 A structural diagram of an electronic device provided in another embodiment of this application. Detailed Implementation

[0061] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.

[0062] The core of this application is to provide a flicker detection method, device, electronic device, and medium.

[0063] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] With a high proportion of new energy equipment, such as wind power, photovoltaics, and energy storage, being connected to the power grid, the uncertainty of wind and solar resources and the operating characteristics of the units cause fluctuations in output power, which in turn cause voltage fluctuations and flicker in the AC and DC transmission and distribution systems, affecting the power quality of the power grid.

[0065] Both the International Electrotechnical Commission (IEC) and the Standardization Administration of China (SAC) have issued relevant standards and requirements for voltage fluctuations and flicker. Incandescent lamp illumination is used as a criterion for judging whether voltage fluctuations are acceptable, and the degree of voltage fluctuations and flicker is described by the direct perception of changes in light intensity by the human eye.

[0066] Describing voltage flicker quantitatively through human visual perception of changes in light intensity requires extensive sampling experiments to obtain calculated flicker values. This process is tedious and complex; therefore, a digital implementation of flicker measurement needs to be designed based on experimental data.

[0067] Currently, digital flicker detection methods are mainly implemented in two directions: time domain and frequency domain. Voltage fluctuation extraction based on the time domain requires multiple analog filtering stages, each with its own parameter design, making the process complex and difficult to implement digitally. Voltage fluctuation and flicker detection methods based on Fast Fourier Transform suffer from insufficient detection accuracy due to inherent spectral leakage and picket fence effects.

[0068] To address the aforementioned technical problems, this application provides a flicker detection method, such as... Figure 1 As shown, the process includes the following:

[0069] S10: The sampled voltage is processed using Fast Fourier Transform to obtain the spectrum of the sampled voltage.

[0070] In specific embodiments, a flicker detection method for voltage is typically used. Therefore, a portion of the voltage is first sampled, and then a Fast Fourier Transform (FFT) is applied to process the sampled voltage to obtain its spectrum. The horizontal and vertical axes represent frequency and voltage fluctuation amplitude, respectively. For example, a sampled voltage with N voltage terms is first divided into two voltages, a first voltage and a second voltage, each with N / 2 voltage terms. Then, a Fast Fourier Transform is applied to both voltages to obtain the first and second transform results. This approach minimizes computation and speeds up processing. Finally, the two results are combined to obtain the target transform result. Since the target transform result reflects both frequency and voltage fluctuation amplitude, the spectrum of the sampled voltage can be obtained from it; that is, the spectrum reflects the relationship between the frequency and voltage fluctuation amplitude of the sampled voltage.

[0071] The FFT is a method for quickly computing the Discrete Fourier Transform (DFT) of a sequence or its inverse. Fourier analysis transforms a signal from its original domain (usually time or space) to a frequency domain representation or vice versa. The FFT quickly computes this transformation by decomposing the DFT matrix into a product of sparse (mostly zero) factors.

[0072] It should be noted that the examples in this application are only one possible implementation method, but are not limited to this one implementation method. Users can set their own implementation methods according to their needs.

[0073] S11: Determine the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage.

[0074] In a specific embodiment, since the spectrum of the sampled voltage shows the correspondence between frequency and voltage fluctuation amplitude, each frequency and the corresponding voltage fluctuation amplitude can be determined based on the spectrum.

[0075] S12: Call the preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude.

[0076] In a specific embodiment, the specific value of the visual sensitivity is related to the voltage fluctuation amplitude, but the specific correspondence is related to the data in reality. Therefore, a preset function is called to determine the visual sensitivity corresponding to each voltage fluctuation amplitude.

[0077] The preset function can be determined based on a large amount of experimental data and by fitting the data to reflect the correspondence between the voltage fluctuation amplitude and the corresponding visual sensitivity under the current state.

[0078] S13: Correct each visual sensitivity to obtain the visual sensitivity of each target.

[0079] S14: Determine the instantaneous flicker visual sensitivity based on the visual sensitivity of multiple targets.

[0080] In a specific embodiment, a Fast Fourier Transform (FFT) is initially used to process the sampled voltage. However, due to inherent spectral leakage and the picket fence effect, the final detection accuracy is insufficient, meaning the final transient flicker perception is inaccurate. Since the acquisition of transient flicker perception is related to perception, it is necessary to correct the perception in order to use a more accurate target perception to determine the transient flicker perception.

[0081] The specific methods of correction are not limited in this application and can be set by the user according to their needs.

[0082] This application provides a flicker detection method, comprising: processing a sampled voltage using a Fast Fourier Transform (FFT) to obtain a spectrum of the sampled voltage; determining the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage; calling a preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude; correcting each visual sensitivity to obtain a target visual sensitivity; and determining the instantaneous flicker visual sensitivity based on multiple target visual sensitivityes. It is evident that this application first obtains the voltage amplitude corresponding to each frequency in the sampled voltage. Based on this, it uses a preset function to correct the spectral lines of the sampled voltage spectrum, addressing the issues of FFT spectrum leakage and detection errors in the extremely low frequency band, thereby improving the accuracy of the frequency domain method for detecting instantaneous flicker visual sensitivity.

[0083] Based on the above embodiments, as a preferred embodiment, obtaining a preset function includes:

[0084] Obtain the amplitude values ​​of reference voltage fluctuations at different frequencies when the instantaneous flicker visual sensitivity is a preset value;

[0085] According to the preset standard rules, determine the reference visual sensitivity coefficients corresponding to each reference voltage fluctuation amplitude;

[0086] The reference visual sensitivity coefficients are fitted to obtain the preset function.

[0087] In a specific embodiment, during routine experiments, a large number of reference voltage fluctuation amplitudes at various frequencies are obtained when the instantaneous flicker apparent sensitivity is 1. Then, according to the standard "Power Quality Voltage Fluctuations and Flicker: GB / T12326-2008", the apparent sensitivity coefficients of voltage fluctuations at different frequencies can be calculated. These reference apparent sensitivity coefficients are then fitted to obtain a preset function, such as... Figure 2 As shown, the curve is the visual perception coefficient curve obtained by fitting the fifth-order Gaussian function curve, which is the preset function, and the '*' mark represents the visual perception coefficient calculated from the experimental data given in the standard.

[0088] As a preferred option, the preset function is a Gaussian function with a normal distribution, but this is not a limitation and can be set by the user according to their needs.

[0089] It should be noted that the preset value in this application embodiment is 1, and the preset standard rule "Power Quality Voltage Fluctuation and Flicker: GB / T12326-2008" is only one possible way to achieve this, but it is not limited to this only way of implementation. Users can set it themselves according to their needs.

[0090] It should also be noted that the method for obtaining the preset function provided in this application is only one possible way, but it is not limited to this method. Users can set it themselves according to their needs.

[0091] This application provides a method for obtaining a preset function. By acquiring a large amount of data from routine experiments and using standard rules to obtain reference visual sensitivity coefficients, the preset function is obtained by fitting these coefficients. It is evident that the preset function in this application is determined based on existing experimental data, and the preset function performs well, laying the foundation for a more accurate instantaneous flicker visual sensitivity.

[0092] Based on the above embodiments, as a preferred embodiment, each visual sensitivity is modified to obtain each target visual sensitivity including:

[0093] Determine whether the frequency corresponding to each visual sensitivity is an integer multiple of the corresponding frequency resolution;

[0094] If not, the corresponding visual sensitivity will be used as the visual sensitivity to be corrected;

[0095] The visual perception to be corrected is then adjusted to obtain the visual perception of each target.

[0096] The process involves correcting the visual perception to be corrected to obtain the visual perception of each target, including:

[0097] Obtain the target voltage fluctuation amplitude and target frequency corresponding to the visual perception to be corrected;

[0098] When the target frequency is located at a point other than the start or end point of the sampling voltage;

[0099] Obtain a first frequency and a second frequency adjacent to the target frequency, as well as a first voltage fluctuation amplitude corresponding to the first frequency and a second voltage fluctuation amplitude corresponding to the second frequency;

[0100] Obtain the visual sensitivity coefficient and the preset initial correction coefficient;

[0101] The correction frequency is determined based on the target frequency, the first frequency, the second frequency, the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude.

[0102] The corrected voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude.

[0103] The target correction coefficient is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, the second voltage fluctuation amplitude, and the preset initial correction coefficient.

[0104] The visual sensitivity of each target is determined based on the correction voltage fluctuation amplitude, correction frequency, target correction coefficient, and visual sensitivity coefficient.

[0105] Alternatively, the visual perception to be corrected can be adjusted to obtain the visual perception of each target, including:

[0106] Obtain the target voltage fluctuation amplitude and target frequency corresponding to the visual perception to be corrected;

[0107] When the target frequency is located at the start or end point of the sampling voltage;

[0108] Obtain the third frequency adjacent to the target frequency and the third voltage fluctuation amplitude corresponding to the third frequency;

[0109] Obtain the visual sensitivity coefficient and the preset initial correction coefficient;

[0110] The correction frequency is determined based on the target frequency, the third frequency, the target voltage fluctuation amplitude, and the third voltage fluctuation amplitude.

[0111] The corrected voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude and the third voltage fluctuation amplitude;

[0112] The target correction coefficient is determined based on the target voltage fluctuation amplitude, the third voltage fluctuation amplitude, and the preset initial correction coefficient.

[0113] The visual sensitivity of each target is determined based on the correction voltage fluctuation amplitude, correction frequency, target correction coefficient, and visual sensitivity coefficient.

[0114] In specific embodiments, not all visual sensitivity needs correction. Therefore, it is necessary to determine whether visual sensitivity needs correction because: when the frequency f is not an integer multiple of the FFT (Fast Fourier Transform) frequency resolution, spectral leakage occurs, and the visual sensitivity needs correction. Therefore: determine whether the frequency corresponding to each visual sensitivity is an integer multiple of the corresponding frequency resolution; if not, the corresponding visual sensitivity is taken as the visual sensitivity to be corrected; correct the visual sensitivity to be corrected to obtain each target visual sensitivity, so as to determine each instantaneous flicker visual sensitivity based on multiple target visual sensitivityes. The complete flicker detection principle block diagram is as follows: Figure 3 As shown, u(t) is the sampling voltage, P st This refers to the instantaneous, flashing visual perception.

[0115] In the process of correcting the visual sensitivity to be corrected, under the condition of single-frequency voltage fluctuation, the instantaneous flicker visual sensitivity is calculated by selecting the maximum value of the spectral line in the 0-25Hz frequency band and combining it with adjacent spectral lines using the following formula. That is, the target voltage fluctuation amplitude and target frequency corresponding to the visual sensitivity to be corrected are obtained; simultaneously, the frequencies adjacent to the target frequency and their corresponding voltage fluctuation amplitudes are obtained, and finally, the instantaneous flicker visual sensitivity is calculated. However, two situations arise: when the target frequency corresponding to the visual sensitivity to be corrected is located at a position other than the start or end point of the sampling voltage (according to the manual), the visual sensitivity to be corrected is at the middle position of the sampling voltage, and there are two adjacent frequencies; when the target frequency corresponding to the visual sensitivity to be corrected is located at the start or end point of the sampling voltage (according to the manual), the visual sensitivity to be corrected is at the start or end point of the sampling voltage, and there is only one adjacent frequency. Therefore, the calculation is slightly different.

[0116] When the target frequency corresponding to the visual sensitivity to be corrected is located at a non-starting or ending point of the sampling voltage, the following steps are taken: First frequency and second frequency adjacent to the target frequency, first voltage fluctuation amplitude corresponding to the first frequency, and second voltage fluctuation amplitude corresponding to the second frequency; visual sensitivity coefficient and preset initial correction coefficient are obtained; correction frequency is determined based on the target frequency, first frequency, second frequency, target voltage fluctuation amplitude, first voltage fluctuation amplitude, and second voltage fluctuation amplitude; correction voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude, first voltage fluctuation amplitude, and second voltage fluctuation amplitude; target correction coefficient is determined based on the target voltage fluctuation amplitude, first voltage fluctuation amplitude, second voltage fluctuation amplitude, and preset initial correction coefficient; and each target visual sensitivity is determined based on the correction voltage fluctuation amplitude, correction frequency, target correction coefficient, and visual sensitivity coefficient. The calculation expression is as follows:

[0117]

[0118]

[0119]

[0120] S m (t)=U * ·K(f * )·λ;

[0121] Among them, U(f) n ) represents the target voltage fluctuation amplitude; f n For the target frequency; f n-1 The first frequency; f n+1 For the second frequency; U(f) n-1 ) represents the amplitude of the first voltage fluctuation; U(f) n+1 ) represents the amplitude of the second voltage fluctuation; f * To correct the frequency; U * To correct the voltage; the initial correction factor is preset to 1; λ is the target correction factor, K is the visual sensitivity factor, and S... m (t) represents the target visual sensitivity, and t represents time. It should be noted that when λ>2.5, λ is taken as 1, that is, when the target correction coefficient is greater than the preset limit value, the preset initial correction coefficient is used as the target correction coefficient.

[0122] Alternatively, when the target frequency is located at the start or end point of the sampling voltage; obtain the third frequency adjacent to the target frequency and the corresponding third voltage fluctuation amplitude; obtain the visual sensitivity coefficient and the preset initial correction coefficient; determine the correction frequency based on the target frequency, the third frequency, the target voltage fluctuation amplitude, and the third voltage fluctuation amplitude; determine the correction voltage fluctuation amplitude based on the target voltage fluctuation amplitude and the third voltage fluctuation amplitude; determine the target correction coefficient based on the target voltage fluctuation amplitude, the third voltage fluctuation amplitude, and the preset initial correction coefficient; determine the visual sensitivity of each target based on the correction voltage fluctuation amplitude, the correction frequency, the target correction coefficient, and the visual sensitivity coefficient. The calculation expression is as follows:

[0123]

[0124]

[0125] Where, U(f0) is the target voltage fluctuation amplitude; f0 is the target frequency; f1 is the third frequency; U(f1) is the third voltage fluctuation amplitude; f * To correct the frequency; U * To correct the voltage.

[0126] In summary, the measured instantaneous flicker visual sensitivity S mThe comparison results between the instantaneous visual sensitivity values ​​S(t) and the experimental reference values ​​S(t) are shown in Table 1. When the frequency of the injected sinusoidal voltage fluctuation is not an integer multiple of the frequency resolution of the Fast Fourier Transform, the measured instantaneous flicker visual sensitivity is generally too large due to spectral leakage, with the maximum error before correction reaching 890%. The root mean square error (RMSE) was used to describe the measurement deviation of visual sensitivity at 43 groups of injected voltage fluctuation frequencies, and the RMSE before correction was 3.829. After spectral correction, the accuracy of the measured visual sensitivity was greatly improved, with a maximum error of 9.9% and an RMSE of 0.034 after correction. Compared with the accurate value S=1, the average error was only 3.4%.

[0127] Table 1

[0128]

[0129]

[0130] This application provides a flicker detection method, comprising: processing the sampled voltage using Fast Fourier Transform (FFT) to obtain the spectrum of the sampled voltage; determining the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage; calling a preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude; correcting each visual sensitivity to obtain each target visual sensitivity; and determining the instantaneous flicker visual sensitivity based on multiple target visual sensitivityes. It is evident that this application first obtains the voltage amplitude corresponding to each frequency in the sampled voltage. Based on this, it uses a preset function to correct the spectrum lines of the sampled voltage spectrum, addressing the issues of FFT spectrum leakage and detection errors in the extremely low frequency band, thereby improving the accuracy of the frequency domain method for detecting instantaneous flicker visual sensitivity. For voltage fluctuations that occur intermittently and non-periodically, based on the analysis of the impact of frequency resolution on flicker detection accuracy, it provides principles for selecting the FFT sampling length and a method for detecting the severity of short-term flicker, improving the accuracy of short-term flicker severity detection.

[0131] In the above embodiments, the flicker detection method has been described in detail. This application also provides embodiments corresponding to the flicker detection device. It should be noted that this application describes the embodiments of the device part from two perspectives: one is based on the functional module, and the other is based on the hardware.

[0132] Figure 4 A flicker detection device module diagram provided for another embodiment of this application is shown in the figure, including:

[0133] Processing module 11 is used to process the sampled voltage using fast Fourier transform to obtain the spectrum of the sampled voltage.

[0134] The first determining module 12 is used to determine the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage.

[0135] Module 13 is invoked to call a preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude.

[0136] Correction module 14 is used to correct each visual sensitivity to obtain the visual sensitivity of each target.

[0137] The second determining module 15 is used to determine the instantaneous flickering visual sensitivity based on multiple target visual sensitivitys.

[0138] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.

[0139] Figure 5 A structural diagram of an electronic device provided in another embodiment of this application, such as... Figure 5 As shown, the electronic device includes: a memory 20 for storing computer programs;

[0140] The processor 21 is used to execute a computer program to implement the steps of the flicker detection method mentioned in the above embodiments.

[0141] The electronic devices provided in this embodiment may include, but are not limited to, smartphones, tablets, laptops, or desktop computers.

[0142] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0143] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the flicker detection method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary storage or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc.

[0144] In some embodiments, the electronic device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0145] Those skilled in the art will understand that Figure 5 The structures shown do not constitute a limitation on electronic devices and may include more or fewer components than those shown.

[0146] The electronic device provided in this application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the flicker detection method described above and has the same beneficial effects.

[0147] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments.

[0148] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0149] The flicker detection method, apparatus, electronic device, and medium provided in this application have been described in detail above. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0150] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A flicker detection method, characterized in that, include: The sampled voltage is processed using a fast Fourier transform to obtain the spectrum of the sampled voltage; The amplitude of each voltage fluctuation corresponding to each frequency is determined based on the spectrum of the sampled voltage. Call a preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude; Determine whether the frequency corresponding to each visual sensitivity is an integer multiple of the corresponding frequency resolution; If not, then the corresponding visual sensitivity is taken as the visual sensitivity to be corrected; The visual sensitivity to be corrected is corrected to obtain the visual sensitivity of each target. The instantaneous flicker visual sensitivity is determined based on multiple target visual sensitivity values; The step of correcting the visual perception to be corrected to obtain each target visual perception includes: Obtain the target voltage fluctuation amplitude and target frequency corresponding to the visual perception to be corrected; When the target frequency is located at a point other than the start or end point of the sampling voltage; Obtain a first frequency and a second frequency adjacent to the target frequency, as well as a first voltage fluctuation amplitude corresponding to the first frequency and a second voltage fluctuation amplitude corresponding to the second frequency; Obtain the visual sensitivity coefficient and the preset initial correction coefficient; The correction frequency is determined based on the target frequency, the first frequency, the second frequency, the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude; The corrected voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude; The target correction coefficient is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, the second voltage fluctuation amplitude, and the preset initial correction coefficient; The target visual sensitivity is determined based on the corrected voltage fluctuation amplitude, the corrected frequency, the target correction coefficient, and the visual sensitivity coefficient.

2. The flicker detection method according to claim 1, characterized in that, Obtaining the preset function includes: Obtain the amplitude values ​​of reference voltage fluctuations at different frequencies when the instantaneous flicker visual sensitivity is a preset value; According to the preset standard rules, the reference visual sensitivity coefficients corresponding to each reference voltage fluctuation amplitude are determined; The preset function is obtained by fitting the reference visual sensitivity coefficients.

3. The flicker detection method according to claim 1, characterized in that, The process of correcting the visual perception to be corrected to obtain each target visual perception includes: Obtain the target voltage fluctuation amplitude and target frequency corresponding to the visual perception to be corrected; When the target frequency is located at the start or end point of the sampling voltage; Obtain the third frequency adjacent to the target frequency and the third voltage fluctuation amplitude corresponding to the third frequency; Obtain the visual sensitivity coefficient and the preset initial correction coefficient; The correction frequency is determined based on the target frequency, the third frequency, the target voltage fluctuation amplitude, and the third voltage fluctuation amplitude; The corrected voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude and the third voltage fluctuation amplitude; The target correction coefficient is determined based on the target voltage fluctuation amplitude, the third voltage fluctuation amplitude, and the preset initial correction coefficient; The target visual sensitivity is determined based on the corrected voltage fluctuation amplitude, the corrected frequency, the target correction coefficient, and the visual sensitivity coefficient.

4. The flicker detection method according to claim 1 or 3, characterized in that, Also includes: When the target correction coefficient is greater than the preset limit value, the preset initial correction coefficient is used as the target correction coefficient.

5. The flicker detection method according to any one of claims 1-4, characterized in that, The step of processing the sampled voltage using Fast Fourier Transform to obtain the spectrum of the sampled voltage includes: A set of sampled voltages with N voltage sequences is divided into two voltage sequences, a first voltage and a second voltage, each with an N / 2 voltage sequence. Perform the Fast Fourier Transform on the first voltage and the second voltage respectively to obtain the first transformation result and the second transformation result; The first transformation result and the second transformation result are combined to obtain the target transformation result; The spectrum of the sampled voltage is obtained based on the target transformation result.

6. A flicker detection device, characterized in that, include: The processing module is used to process the sampled voltage using a fast Fourier transform to obtain the spectrum of the sampled voltage. The first determining module is used to determine the voltage fluctuation amplitude corresponding to each frequency based on the spectrum of the sampled voltage; The calling module is used to call a preset function to determine the visual sensitivity corresponding to each voltage fluctuation amplitude; The correction module is used to determine whether the frequency corresponding to each visual sensitivity is an integer multiple of the corresponding frequency resolution; If not, the corresponding visual sensitivity is taken as the visual sensitivity to be corrected; the target voltage fluctuation amplitude and target frequency corresponding to the visual sensitivity to be corrected are obtained; when the position of the target frequency is a non-starting point or end point of the sampling voltage, the first frequency and the second frequency adjacent to the target frequency, as well as the first voltage fluctuation amplitude corresponding to the first frequency and the second voltage fluctuation amplitude corresponding to the second frequency are obtained; Obtain the visual sensitivity coefficient and the preset initial correction coefficient; The correction frequency is determined based on the target frequency, the first frequency, the second frequency, the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude; The corrected voltage fluctuation amplitude is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, and the second voltage fluctuation amplitude; The target correction coefficient is determined based on the target voltage fluctuation amplitude, the first voltage fluctuation amplitude, the second voltage fluctuation amplitude, and the preset initial correction coefficient; The visual sensitivity of each target is determined based on the corrected voltage fluctuation amplitude, the corrected frequency, the target correction coefficient, and the visual sensitivity coefficient. The second determining module is used to determine the instantaneous flickering visual sensitivity based on the multiple target visual sensitivitys.

7. An electronic device, characterized in that, Includes memory used to store computer programs; A processor, configured to perform the flicker detection steps as described in any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the flicker detection steps as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Detection method of voltage flicker

    CN107085134A

  • Digital flicker meter

    JP1995325117A