Spectrum detection method and device of laser radar, medium and equipment
By obtaining the spectrum diagram in the lidar system and dividing the frequency bands, determining the threshold value and signal-to-noise ratio, the accuracy problem of target detection under non-flat noise background is solved, and more efficient target detection is achieved.
Patent Information
- Application Number
- CN202310257829.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-06
AI Technical Summary
Existing lidar spectrum detection methods can easily lead to missed detections and false alarms under non-flat noise backgrounds, and cannot effectively detect target objects. They are especially suitable for FMCW LiDAR systems.
By obtaining the spectrogram, determine the first threshold value and divide it into multiple frequency bands, determine the second threshold value based on the sampling points of each frequency band, determine the frequency band type, and calculate the signal-to-noise ratio to determine the spectrum of the measured object peak.
It achieves more accurate target detection under non-flat noise background, improves the certainty of signal-to-noise ratio, and reduces the occurrence of false alarms and missed detections.
Smart Images

Figure CN118604785A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of laser radar technology, and in particular to a spectrum detection method, device, computer-readable storage medium and electronic device for laser radar. Background Art
[0002] The spectrum detection method for LiDAR provided by the related art usually adopts fixed threshold detection. For non-flat noise background, the fixed threshold detection type is prone to missed detection and false alarm, and is not suitable for FMCW (Frequency Modulated Continuous Wave) LiDAR (Light Detection And Ranging, using laser for detection and measurement) detection systems.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] The present disclosure provides a spectrum detection method, device, computer-readable storage medium and electronic device for a laser radar, which can achieve more accurate target detection.
[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0006] According to one aspect of the present disclosure, a spectrum detection method for a laser radar is provided, wherein the laser radar is an FMCW radar, and the method comprises: obtaining a spectrum diagram, and determining a first threshold value according to all sampling points in the spectrum diagram; dividing all sampling points in the spectrum diagram into multiple frequency bands, and determining a second threshold value corresponding to each of the frequency bands according to the sampling points in each of the frequency bands; determining the type of each of the frequency bands as a first type or a second type according to the first threshold value and the second threshold value corresponding to each of the frequency bands, wherein the first threshold value and the second threshold value are both threshold values corresponding to power, and the power of all sampling points in the frequency band of the first type is less than the first threshold value and are all smaller than the second threshold value corresponding thereto, the second type is a type of frequency band other than the first type, or the first threshold value and the second threshold value are both threshold values corresponding to the amplitude, the amplitudes of all sampling points in the frequency band of the first type are all smaller than the first threshold value and are all smaller than the second threshold value corresponding thereto, the second type is a type of frequency band other than the first type; for the frequency band of the second type, the signal-to-noise ratio corresponding to the frequency band is calculated according to the maximum power value of the sampling points in the frequency band and the noise power estimation of the frequency band; and the spectrum peak corresponding to the measured object is determined according to the signal-to-noise ratio corresponding to the frequency band of the second type.
[0007] According to another aspect of the present disclosure, a spectrum detection device for a laser radar is provided, wherein the laser radar is an FMCW radar, and the device includes: an acquisition module, a division module, a type determination module, a signal-to-noise ratio determination module, and a spectrum peak determination module.
[0008] The acquisition module is used to acquire a spectrum diagram and determine a first threshold value according to all sampling points in the spectrum diagram; the division module is used to divide all sampling points in the spectrum diagram into multiple frequency bands and determine a second threshold value corresponding to each frequency band according to the sampling points in each frequency band; the type determination module is used to determine whether the type of each frequency band is the first type or the second type according to the first threshold value and the second threshold value corresponding to each frequency band, wherein the first threshold value and the second threshold value are both threshold values corresponding to power, and the power of all sampling points in the frequency band of the first type is less than the first threshold value and less than the second threshold value corresponding to it. The second type is a type of frequency band other than the first type, or the first threshold value and the second threshold value are both threshold values corresponding to the amplitude, the amplitudes of all sampling points in the frequency band of the first type are smaller than the first threshold value and smaller than the second threshold value corresponding thereto, and the second type is a type of frequency band other than the first type; the signal-to-noise ratio determination module is used to calculate the signal-to-noise ratio corresponding to the frequency band of the second type according to the maximum power value of the sampling points in the frequency band and the noise power estimation of the frequency band; and the spectrum peak determination module is used to determine the spectrum peak corresponding to the measured object according to the signal-to-noise ratio corresponding to the frequency band of the second type.
[0009] According to another aspect of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the spectrum detection method of the laser radar as in the above-mentioned embodiment is implemented.
[0010] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the spectrum detection method of the laser radar in the above embodiment is implemented.
[0011] The laser radar spectrum detection method, laser radar spectrum detection device, computer-readable storage medium and electronic device provided in the embodiments of the present disclosure have the following technical effects:
[0012] In the technical solution provided by the present application, the spectrum diagram of the measured object obtained by the FMCW radar determines the first threshold value according to all sampling points in the spectrum diagram on the one hand, and divides all sampling points in the above spectrum diagram into multiple frequency bands on the other hand, and determines the second threshold value corresponding to each frequency band according to the sampling points in each frequency band. Further, according to the above first threshold value and the second threshold value corresponding to each frequency band, the type of each frequency band is determined to be the first type or the second type, wherein, when the first threshold value and the second threshold value are both threshold values corresponding to power, the power of all sampling points in the first type of frequency band is less than the first threshold value and less than the corresponding second threshold value; when the first threshold value and the second threshold value are both threshold values corresponding to amplitude, the amplitude of all sampling points in the first type of frequency band is less than the first threshold value and less than the corresponding second threshold value. For the second type of frequency band, the signal-to-noise ratio corresponding to the frequency band is calculated according to the maximum power value of the sampling points in the frequency band and the noise power estimation of the frequency band. Then, according to the signal-to-noise ratio corresponding to each second type of frequency band, the spectrum peak corresponding to the measured object is determined. It can be seen that the technical solution provided by this application can achieve more accurate target detection.
[0013] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0015] Figure 1 A schematic diagram of a scenario showing a spectrum detection method of a laser radar in an exemplary embodiment of the present disclosure.
[0016] Figure 2 A schematic diagram of the FMCW lidar system architecture equipped with dual lasers is shown.
[0017] Figure 3 A schematic diagram of a signal processing process based on an FMCW laser radar in an exemplary embodiment of the present disclosure is shown.
[0018] Figure 4 A schematic diagram of a spectrum in an exemplary embodiment of the present disclosure is shown.
[0019] Figure 5 A schematic flow chart of a spectrum detection method of a laser radar in an exemplary embodiment of the present disclosure is shown.
[0020] Figure 6a A schematic flow chart of a method for determining a first threshold value in an exemplary embodiment of the present disclosure is shown.
[0021] Figure 6b A schematic flow chart of a method for determining a first threshold value in an exemplary embodiment of the present disclosure is shown.
[0022] Figure 7 A schematic diagram showing frequency band division in a spectrum diagram in an exemplary embodiment of the present disclosure.
[0023] Figure 8 A schematic flow chart showing a method for determining a second threshold value in an exemplary embodiment of the present disclosure is shown.
[0024] Fig. 9 A schematic diagram of a frequency spectrum including a first threshold value and a second threshold value corresponding to each frequency band in an exemplary embodiment of the present disclosure is shown.
[0025] Fig.10 A schematic flow chart of a spectrum detection method of a laser radar in an exemplary embodiment of the present disclosure is shown.
[0026] Fig.11 A schematic diagram showing a refresh process for a storage space corresponding to a first type frequency band in an exemplary embodiment of the present disclosure.
[0027] Fig.12 A schematic diagram showing a flow chart of calculating the signal-to-noise ratio for the second type frequency band in an exemplary embodiment of the present disclosure.
[0028] Fig.13 A schematic diagram showing signal-to-noise ratio calculation according to a storage space corresponding to a second type of frequency band in an exemplary embodiment of the present disclosure is shown.
[0029] Fig.14 A schematic diagram showing the determination of the spectrum peak corresponding to the measured object in an exemplary embodiment of the present disclosure.
[0030] Fig.15 A schematic structural diagram of a spectrum detection device of a laser radar in one embodiment of the present disclosure is shown.
[0031] Fig.16 A schematic diagram of the structure of a spectrum detection device of a laser radar in another embodiment of the present disclosure is shown.
[0032] Fig.17 A schematic structural diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0033] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0034] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are only examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0035] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0036] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0037] The following combination Figures 1 to 14 The spectrum detection method embodiment of the laser radar provided in the present disclosure is described in detail:
[0038] For example, Figure 1 A schematic diagram of a scene showing a spectrum detection method of a laser radar in an exemplary embodiment of the present disclosure. Figure 1 In the scenario shown in the figure, the vehicle can be equipped with one or more laser radars, so as to quickly and accurately perceive the surrounding environment. Exemplarily, information such as roads, vehicle positions, and obstacles is obtained through the perception signals of the laser radar. For example, the laser radar 11 set at the front end of the vehicle can obtain the perception signal of the object 12 to be measured. Furthermore, the processor can determine the target's movement speed and the distance between the target and the vehicle in a timely manner through the above perception information.
[0039] For example, Figure 2Figure 2 shows a schematic diagram of the FMCW laser radar system architecture equipped with dual lasers. Figure 2 In the architecture shown, the laser emits a linear frequency modulated continuous wave signal, equipped with a balanced photodetector (BPD) and an analog to digital converter (ADC), which can measure the state of the object being measured. The FMCW radar emits a continuous wave signal during the frequency sweep period. The echo reflected by the object has a certain frequency difference with the transmitted signal. By measuring the frequency difference, the distance and speed between the target object and the laser radar can be obtained.
[0040] For example, Figure 3 The following is a schematic diagram of the signal processing process based on the FMCW laser radar in the exemplary embodiment of the present disclosure. The following processing process S301-S307 is performed for the digital signal converted by the analog-to-digital converter ADC.
[0041] In S301, the above digital signal is subjected to time domain processing, specifically including operations such as eliminating direct current, windowing to obtain sampling points, and filtering. In S302, a fast Fourier transform is performed to transform the time domain signal into the frequency domain. In S303, the spectrum diagram is detected to detect the target object or the signal beat frequency signal of the target object from the noise background. In S304, speed self-compensation is performed to eliminate the Doppler frequency shift caused by the laser radar's own movement in the echo beat frequency. In S305, the state information of the target object is calculated to obtain the real-time speed of the target object and the distance between the target object and the laser radar. In S306, coordinate conversion is performed, specifically converting the state information in the polar coordinate system to the state information in the spatial coordinate system. In S307, point cloud filtering is performed, specifically including smoothing, removing abnormal points, interpolation and other processing.
[0042] The solution provided in this application relates to the above S303, that is, the process of detecting the spectrum graph, specifically detecting the spectrum peak corresponding to the object under test from the spectrum graph. For example, Figure 4 FIG. 2 shows a spectrum diagram in an exemplary embodiment of the present disclosure. Figure 4 It can be seen that there are multiple spectrum peaks included, and S303 needs to detect the spectrum peak corresponding to the measured object from the multiple spectrum peaks in the spectrum diagram.
[0043] In a detection scheme provided by the related art, a fixed threshold is first set, and those below the threshold are considered to be noise and clutter, and those above the threshold are selected as the highest echo of the detected target. Figure 4According to the above detection method, the peak with the highest peak value can be searched in the spectrum diagram as the echo of the object to be measured, that is, Peak B is the echo of the object to be measured. The disadvantage of this fixed threshold detection method is that it is only applicable to a flat noise background and it is easy to search for false targets in a non-flat noise background. Figure 4 For example, the ratio of the signal amplitude of PeakA to the noise level of the neighborhood is larger than that of Peak B, so PeakA is more likely to be the echo signal of the target.
[0044] The laser radar spectrum detection method, laser radar spectrum detection device, computer-readable storage medium and electronic device provided in the embodiments of the present disclosure can be applied to the detection of target echoes in flat noise backgrounds and also to the detection of target echoes in non-flat noise backgrounds, and can achieve more accurate target detection and accurately determine the signal-to-noise ratio of the object being detected. Specifically, Figure 5 A schematic diagram showing a flow chart of a spectrum detection method of a laser radar in an exemplary embodiment of the present disclosure is shown. Figure 5 , the embodiment shown in the figure includes: S510-S570.
[0045] In S510, a frequency spectrum diagram is obtained.
[0046] Exemplary, reference Figure 4 The horizontal axis of the spectrum graph represents the frequency, and the frequency range shown is from 0 to f Rmax , the vertical axis represents amplitude or power. For example, when the spectrum diagram is a power spectrum, the horizontal axis of the spectrum diagram is the frequency axis, and the vertical axis is the power axis; when the spectrum diagram is an amplitude spectrum, the horizontal axis of the spectrum diagram is the frequency axis, and the vertical axis is the amplitude axis. In the embodiment of the present application, sampling can be performed from the spectrum diagram, and echo detection of the object under test can be achieved based on the information carried by the sampling points.
[0047] In S520, a first threshold value is determined according to all sampling points in the spectrum graph.
[0048] In this embodiment, the threshold value determined according to the information of all sampling points in the spectrum graph is actually a fixed threshold value corresponding to the spectrum graph. It should be noted that the vertical axis in the spectrum graph may be power, that is, the spectrum graph is specifically a power spectrum graph, and the above-mentioned first threshold value can be calculated based on the frequency of all sampling points in the spectrum graph; in addition, the vertical axis in the spectrum graph may be amplitude, that is, the spectrum graph is specifically an amplitude spectrum graph, and the above-mentioned first threshold value can be calculated based on the amplitude of all sampling points in the spectrum graph.
[0049] In an exemplary embodiment, Figure 6a and Figure 6b Schematic diagrams of the flow chart of the method for determining the first threshold value in the exemplary embodiments of the present disclosure are respectively shown, which can be used as specific implementations of S520 respectively.
[0050] in Figure 6a The illustrated embodiment is a technical solution for determining the first threshold value by using the power of the sampling point.
[0051] refer to Figure 6a The embodiment shown in the figure includes: in S5201, calculating the statistical value of the power of all sampling points in the spectrum diagram. And, in S5202, determining the first threshold value according to the statistical value.
[0052] In one possible implementation, the statistical value is a mean value. That is, the power of all sampling points in the spectrum is averaged, and the average value is determined as a fixed threshold value corresponding to the spectrum, that is, the first threshold value. Figure 7 , where the "T thre " indicates the first threshold value corresponding to the spectrum diagram.
[0053] In another implementation method, the above statistical values are mean and standard deviation. That is, the mean μ and standard deviation σ of the power of all sampling points in the spectrum are calculated, and μ+a·σ is determined as the above first threshold value T thre . Wherein a is a fixed coefficient, optionally, 2≤a≤6, and an exemplary value is 4.
[0054] Figure 6b The illustrated embodiment is a technical solution for determining the first threshold value by using the amplitude of the sampling point.
[0055] refer to Figure 6b The embodiment shown in the figure includes: in S5201, calculating the statistical value of the amplitude of all sampling points in the spectrum diagram. And, in S5202, determining the first threshold value according to the statistical value.
[0056] same Figure 6a In a corresponding embodiment, in one possible implementation, the above statistical value is a mean value. That is, the mean value of the amplitudes of all sampling points in the spectrum graph is calculated, and the mean value is determined as the fixed threshold value corresponding to the spectrum graph, that is, the above first threshold value. Figure 7 , where the "T thre " indicates the first threshold value corresponding to the spectrum diagram.
[0057] In another implementation method, the above statistical values are mean and standard deviation. That is, the mean μ and standard deviation σ of the amplitudes of all sampling points in the spectrum are calculated, and μ+a·σ is determined as the above first threshold value T thre . Wherein a is a fixed coefficient, optionally, 2≤a≤6, and an exemplary value is 4.
[0058] In this embodiment, the first threshold value T threIt can be used as a measure of noise. In order to improve detection accuracy and adapt to non-flat noise background, the present application also provides a technical solution for the second threshold value.
[0059] Continue to refer Figure 5 In S530, all frequency sampling points in the spectrum diagram are divided into a plurality of frequency bands.
[0060] For example, see Figure 4 The frequency spectrum shown in the figure, where the frequency range of each sampling point is [0,f Rmax ]. Exemplary references Figure 7 , and [0,f Rmax ] is divided into 8 frequency bands, denoted as F0 to F7, so that all sampling points in the spectrum are divided into the above 8 frequency bands. Among them, the frequency ranges covered by different frequency bands can be consistent or inconsistent. Adjacent frequency bands can be non-overlapping (such as Figure 7 The embodiment of the present application does not limit this.
[0061] After all the sampling points in the spectrum graph are divided into various frequency bands, in this embodiment, a threshold value is determined for each frequency band, so for the multiple frequency bands included in the spectrum graph, the corresponding second threshold values are dynamic threshold values. In this embodiment of the application, which frequency bands belong to noise will be determined based on the fixed first threshold value and the dynamic second threshold value.
[0062] Continue to refer Figure 5 In S540, a second threshold value corresponding to each frequency band is determined according to the sampling points in the frequency band.
[0063] For example, Figure 8 The flowchart of the method for determining the second threshold value in the exemplary embodiment of the present disclosure is shown, which can be used as a specific implementation of S540. Figure 8 , the embodiment shown in the figure includes: S5401-S5403.
[0064] In S5401, a target power average corresponding to each frequency band is determined.
[0065] like Figure 7 There are 8 frequency bands arranged in sequence on the frequency axis shown; the target power mean of each frequency band is the mean of the power of all sampling points in the frequency band. Of course, in the case where the first threshold value is determined by the amplitude of the sampling point, the second threshold value corresponding to each frequency band can also be determined according to the mean amplitude of all sampling points in the frequency band.
[0066] In S5402, the target coefficient corresponding to each frequency band is determined.
[0067] In an exemplary embodiment, the coefficients corresponding to different frequency bands may be the same, that is, the coefficient value corresponding to each frequency band is the same value within a preset value interval. Exemplarily, the preset value interval is (3, 4).
[0068] In another exemplary embodiment, different frequency bands (frequency intervals) in this embodiment correspond to different target coefficients. The specific method of determining the target coefficient is: according to the frequency interval corresponding to the above frequency band, determine the target coefficient corresponding to the frequency band in a preset value range.
[0069] In this embodiment, in order to improve the detection efficiency of the target echo, since the signal closer to the radar itself (i.e., the corresponding frequency band of 0 is close) is stronger, a larger coefficient is set to reduce the interference of false signals at close range; the signal farther from the radar itself (i.e., the corresponding frequency band of 0 is far away) is weaker, and if the same coefficient is set, the signal may be missed, so a smaller coefficient is set. That is, the upper limit value of the frequency interval corresponding to the above frequency band is negatively correlated with the size of the target coefficient.
[0070] In an exemplary embodiment, along the positive direction of the frequency axis of the spectrum graph, the target coefficients corresponding to each frequency band decrease linearly. For example, the coefficient corresponding to frequency band F0 is 3.6, the coefficient corresponding to frequency band F1 is 3.4, the coefficient corresponding to frequency band F2 is 3.2, the coefficient corresponding to frequency band F3 is 3.0, the coefficient corresponding to frequency band F4 is 2.8, the coefficient corresponding to frequency band F5 is 2.6, the coefficient corresponding to frequency band F6 is 2.4, and the coefficient corresponding to frequency band F7 is 2.2.
[0071] In S5403, a second threshold value corresponding to the frequency band is determined according to the target power mean value and the target coefficient corresponding to the frequency band.
[0072] For example, frequency band F n The corresponding target power mean is denoted as F n_ave , the target coefficient is denoted as c, then the frequency band F n The corresponding second threshold value is recorded as: T n =c×F n_ave .
[0073] refer to Fig. 9 , which shows the fixed threshold corresponding to the spectrum diagram, that is, the first threshold value T thre , and also shows the target power mean F corresponding to each frequency band n_ave and the second threshold value T n In the following embodiments, which frequency bands belong to noise will be determined based on a fixed first threshold value and a dynamic second threshold value.
[0074] It should be noted that, when the first threshold value is determined by the sampling point power, the second threshold value corresponding to each frequency band is also calculated based on the power of the relevant sampling point. Conversely, when the first threshold value is determined by the sampling point amplitude, the second threshold value corresponding to each frequency band is also calculated based on the amplitude of the relevant sampling point.
[0075] Continue to refer Figure 5 In S550, the type of each frequency band is determined to be the first type or the second type according to the first threshold value and the second threshold value.
[0076] Wherein, when the first threshold value and the second threshold value are both threshold values corresponding to power, the power of all sampling points in the first type of frequency band is less than the first threshold value and less than the corresponding second threshold value, or, when the first threshold value and the second threshold value are both threshold values corresponding to amplitude, the amplitude of all sampling points in the first type of frequency band is less than the first threshold value and less than the corresponding second threshold value. Fig. 9 , wherein frequency band F0, frequency band F1, frequency band F3, frequency band F5, and frequency band F6 all belong to the first type. In this embodiment, since all the sampling points in the frequency bands belonging to the first type are not only smaller than the fixed first threshold value, but also smaller than the second threshold value corresponding to the frequency bands in which they are located, in this embodiment, the sampling points in the frequency bands belonging to the first type are determined as noise, that is, the frequency bands where the echo of the measured object cannot exist.
[0077] Fig.10 A schematic diagram showing a flow chart of a spectrum detection method of a laser radar in an exemplary embodiment of the present disclosure is shown. Fig.10 , the embodiment shown in the figure is Figure 5 The specific implementation of S510-S550 has been introduced in the above embodiment and will not be repeated here. After the type of each frequency band in the above spectrum diagram is determined by S550, the embodiment of S580 is performed for the first type of frequency band, and the embodiment of S560 is performed for the second type of frequency band. Specifically:
[0078] In S580, for the first type of frequency band, the target power average is updated to the stack storage space corresponding to the frequency band.
[0079] In an exemplary embodiment, a stack storage space is set for each frequency band. Since the laser radar scanning is performed continuously, the target power mean value (denoted as noise sample value) of the frequency band can be stored in the storage space corresponding to each frequency band. If the storage space is set to stack type, it can be specifically used to store the power mean values of the N (values are 2, 3 or 4, etc.) spectrum graphs with the largest timestamps in the sub-band, that is, the storage space stores the noise sample values of the N spectrum graphs with the largest timestamps in the sub-band. Since the noise sample value with the latest timestamp can reflect the current noise state in real time, the noise power estimation value of the frequency band is calculated by the noise sample value in the stack storage space, which is beneficial to the estimation accuracy of the noise power estimation value.
[0080] In this embodiment, for the first type of frequency band (such as Fig. 9 In the frequency band F0, frequency band F1, frequency band F3, frequency band F5, frequency band F6), the target power average value F corresponding to each frequency band needs to be n_ave As the latest noise sample value, refresh it to the corresponding stack storage space. Fig.11 Before refreshing the storage space corresponding to the frequency band of the first type, if the storage space corresponding to each frequency band is as shown in the figure, each storage space contains F' i_ave and F” i_ave , where F' is determined i_ave The spectrogram timestamp is greater than F' 0_ave The spectrogram timestamp, i.e., F” 0_ave Determine first, F' i_ave Confirmation will come later.
[0081] refer to Fig.11 In this embodiment, for the first type of frequency band, F n_ave Refresh to the storage space R of the first type frequency band n For the subsequent calculation of the noise power estimation value of the frequency band. Taking the frequency band F0 as an example, its storage space R0 contains 2 storage bits, and both storage locations contain the target power mean value (specifically F') calculated from the sampling points of the frequency band in the previous spectrum diagram. 0_ave and F” 0_ave ), then the F calculated according to the current spectrum diagram 0_ave , covering the F with the smallest timestamp in storage space T0" 0_ave , so that the storage space R0 stores the F' with the largest timestamp n_ave and F 0_ave .
[0082] Continue to refer Figure 5 or Fig.10In S560, for the second type of frequency band, the signal-to-noise ratio corresponding to the frequency band is calculated according to the maximum power value of the sampling points in the frequency band and the noise power estimate of the frequency band.
[0083] For example, Fig.12 The flowchart of the signal-to-noise ratio of the second type frequency band technology in the exemplary embodiment of the present disclosure is shown, which can be used as a specific implementation of S560. Fig.12 , for the second type of frequency band (frequency band F2, frequency band F4, frequency band F7), the processing steps S5601-S5603 are performed:
[0084] In S5601, for a frequency band of the second type, a noise power estimation of the frequency band is determined according to noise sample values stored in a stack storage space corresponding to the frequency band.
[0085] As mentioned above, each frequency band corresponds to a stack storage space, and the i-th storage space stores the N noise sample values with the latest timestamps for the i-th frequency band. In this embodiment, taking the second type of frequency band F4 as an example, the storage space corresponding to the frequency band contains two noise sample values F' 4_ave and F” 4_ave , then according to the noise sample value F' 4_ave and F” 4_ave Calculate the noise power estimate for frequency band F4.
[0086] In an exemplary embodiment, the average of the noise sample values in the storage space corresponding to the frequency band can be determined as the noise power estimation of the frequency band. Taking frequency band F4 as an example, calculate F' 4_ave and F” 4_ave The average value of obtains the noise power estimate N4 of frequency band F4.
[0087] In another exemplary embodiment, the noise power estimation is determined according to each of the noise sample values and the weighted values corresponding to the noise sample values, wherein the noise sample values generated later in the stack storage space are closer to the current noise state, and thus the weighted coefficients corresponding to the noise sample values generated later in the storage space are larger. Still taking frequency band F4 as an example, determine F' 4_ave The timestamp of the spectrum graph is later, F' 4_ave The weighting coefficient for is c1, F" 4_ave The weighting coefficient for is c2, c1 is greater than c2, and c1+c2=1. Then the noise power estimate N4 of frequency band F4=c2×F" 4_ave +c1×F' 4_ave .
[0088] In S5602, a signal power estimate corresponding to the frequency band is determined based on the maximum power value of the sampling points in the frequency band and the noise power estimate of the frequency band. And, in S5603, a signal-to-noise ratio corresponding to the frequency band is determined based on the signal power estimate and the noise power estimate.
[0089] In the embodiment provided in the present application, the signal-to-noise ratio corresponding to the frequency band belonging to the second type is expressed as: (SN) / N.
[0090] Still taking frequency band F4 as an example, the difference between the maximum power value of the sampling point in frequency band F4 (denoted as S4) and the noise power estimate N4 of the frequency band is used to determine the signal power estimate corresponding to the frequency band. Exemplarily, the signal power estimate corresponding to frequency band F4 is S4-N4. Further, the signal-to-noise ratio corresponding to frequency band F4 is expressed as: (S4-N4) / N4.
[0091] Continue to refer Figure 5 or Fig.10 In S570, the spectrum peak corresponding to the measured object is determined according to the signal-to-noise ratios corresponding to each frequency band of the second type.
[0092] After calculating the signal-to-noise ratios corresponding to the frequency bands of the second type, the maximum signal-to-noise ratio value is determined among the signal-to-noise ratios corresponding to the frequency bands of the second type, and the spectrum peak corresponding to the maximum signal-to-noise ratio value is determined as the spectrum peak corresponding to the measured object. For example, spectrum peaks PeakA, PeakB, and PeakC are detected in the full frequency band of the above spectrum graph. According to the order of signal-to-noise ratio, PeakA has the largest value. It can be seen that the spectrum peak PeakA corresponding to the maximum signal-to-noise ratio value is determined as the spectrum peak corresponding to the measured object, that is, PeakA is the echo of the measured object.
[0093] In an exemplary embodiment, continue to refer to Fig.10 In S590, for a frequency band of the second type other than the frequency band corresponding to the object under test, the target power mean value is refreshed to the stack storage space corresponding to the frequency band.
[0094] It can be seen from the above embodiment that PeakA is the echo of the object under test. Fig.11 , the frequency band where PeakA is located is frequency band F2, then for other second-type frequency bands F4 and F7, it can be determined that there is no echo of the measured object in these two frequency bands, and the latest noise sample value is also refreshed to the corresponding storage space to reflect the latest noise state, which is beneficial to the accuracy of the subsequent noise power estimation value of the frequency band. Fig.13 , the F calculated based on the sampling points in the frequency band F4 4_ave , refreshed to the storage space R4 corresponding to the frequency band F4, it can be seen that the refreshed storage space R4 stores the latest noise sample value F 4_ave and F4'_ave Similarly, the F calculated based on the sampling points in the frequency band F7 7_ave , refreshed to the storage space R7 corresponding to the frequency band F7, it can be seen that the refreshed storage space R7 stores the latest noise sample value F 7_ave and F7' _ave .
[0095] refer to Fig.13 It can be seen that in the embodiment provided by the present application, except for the frequency band where the echo of the measured object exists, the storage space corresponding to each other frequency band is refreshed to the latest noise sample value, which is conducive to the calculation accuracy of the noise power estimation value in each subsequent frequency band. Fig.14 , where the dotted line part indicates that the noise estimation sample value corresponding to each frequency band is determined according to the noise sample value after refreshing of each frequency band, including: N0-N7. Fig.14 , where the expression for calculating the signal-to-noise ratio at each spectral peak is also shown.
[0096] It can be seen that although the laser radar noise spectrum fluctuates, the solution provided by the embodiment of the present application can adaptively perform noise power estimation in real time in each frequency band. The solution of real-time estimation of the noise power spectrum of each frequency band can obtain the dynamic detection threshold (i.e., the second threshold value mentioned above) in real time, and further improve the detection rate of the echo of the object under test by comparing the signal-to-noise ratio of each spectral peak. At the same time, the signal-to-noise ratio of the object under test can be accurately determined.
[0097] It should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0098] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.
[0099] in, Fig.15 FIG. 1 is a schematic diagram showing the structure of a spectrum detection device of a laser radar in an embodiment of the present disclosure. Fig.15 The spectrum detection device of the laser radar shown in the figure can be realized as all or part of an electronic device through software, hardware or a combination of both, and can also be integrated into an electronic device or a server as an independent module.
[0100] An embodiment of the present disclosure provides a spectrum detection device 1500 for a laser radar, wherein the laser radar is an FMCW radar, and the device includes: an acquisition module 1510, a division module 1520, a type determination module 1530, a signal-to-noise ratio determination module 1540 and a spectrum peak determination module 1550.
[0101] The acquisition module 1510 is used to acquire a spectrum diagram and determine a first threshold value according to all sampling points in the spectrum diagram; the division module 1520 is used to divide all sampling points in the spectrum diagram into multiple frequency bands and determine a second threshold value corresponding to each frequency band according to the sampling points in each frequency band; the type determination module 1530 is used to determine whether the type of each frequency band is the first type or the second type according to the first threshold value and the second threshold value corresponding to each frequency band, wherein the first threshold value and the second threshold value are both threshold values corresponding to power, and the power of all sampling points in the frequency band of the first type is less than the first threshold value and is less than the second threshold value corresponding to the first type. The second type is a type of frequency band other than the first type, or the first threshold value and the second threshold value are both threshold values corresponding to the amplitude, the amplitudes of all sampling points in the frequency band of the first type are smaller than the first threshold value and smaller than the second threshold value corresponding thereto, and the second type is a type of frequency band other than the first type; the signal-to-noise ratio determination module 1540 is used to calculate the signal-to-noise ratio corresponding to the frequency band of the second type according to the maximum power value of the sampling points in the frequency band and the noise power estimation of the frequency band; and the spectrum peak determination module 1550 is used to determine the spectrum peak corresponding to the measured object according to the signal-to-noise ratio corresponding to the frequency band of the second type.
[0102] In an exemplary embodiment, Fig.16 FIG. 2 is a schematic diagram showing the structure of a spectrum detection device of a laser radar in another embodiment of the present disclosure. Fig.16 :
[0103] In an exemplary embodiment, based on the above-mentioned solution, the acquisition module 1510 includes: a first threshold determination unit 1101 .
[0104] The first threshold determination unit 15101 is used to: calculate the statistical value of the power of all sampling points in the spectrum diagram, and determine the first threshold value based on the statistical value; the statistical value is the mean, or the statistical value is the mean and the variance; or, the first threshold determination unit 15101 is used to: calculate the statistical value of the amplitude of all sampling points in the spectrum diagram, and determine the first threshold value based on the statistical value; the statistical value is the mean, or the statistical value is the mean and the variance.
[0105] In an exemplary embodiment, based on the above-mentioned solution, the above-mentioned division module 1520 is specifically used to: divide all the sampling points in the above-mentioned spectrum diagram into the above-mentioned multiple frequency bands according to the frequency of each sampling point in the above-mentioned spectrum diagram.
[0106] In an exemplary embodiment, based on the above-mentioned solution, the division module 1520 includes: a second threshold determination unit 15201.
[0107] The second threshold determination unit 15201 is used to: determine the target power mean corresponding to each of the above-mentioned frequency bands, where the above-mentioned target power mean is the mean of the powers of all sampling points in the above-mentioned frequency bands; determine the target coefficient corresponding to the above-mentioned frequency bands; and determine the second threshold value corresponding to the above-mentioned frequency bands based on the target power mean and target coefficient corresponding to the above-mentioned frequency bands.
[0108] In an exemplary embodiment, based on the above-mentioned scheme, the above-mentioned second threshold determination unit 15201 is specifically used to: determine the above-mentioned target coefficient within a preset value range according to the frequency interval corresponding to the above-mentioned frequency band, wherein the upper limit value of the frequency interval corresponding to the above-mentioned frequency band is negatively correlated with the size of the above-mentioned target coefficient.
[0109] In an exemplary embodiment, based on the above-mentioned solution, along the positive direction of the frequency axis of the above-mentioned spectrum diagram, the target coefficient corresponding to each of the above-mentioned frequency bands decreases linearly.
[0110] In an exemplary embodiment, based on the above-mentioned scheme, the above-mentioned signal-to-noise ratio determination module 1540 is specifically used to: for the above-mentioned second type of frequency band, determine the signal power estimation corresponding to the above-mentioned frequency band according to the maximum power value of the sampling points in each of the above-mentioned frequency bands and the noise power estimation of the frequency band; determine the signal-to-noise ratio corresponding to the above-mentioned frequency band according to the above-mentioned signal power estimation and the above-mentioned noise power estimation.
[0111] In an exemplary embodiment, based on the aforementioned scheme, the spectrum peak determination module 1550 is specifically used to: determine the maximum signal-to-noise ratio value among the signal-to-noise ratios corresponding to each frequency band of the second type, and determine the spectrum peak corresponding to the maximum signal-to-noise ratio value as the spectrum peak corresponding to the object under test.
[0112] In an exemplary embodiment, based on the above solution, the apparatus further includes: a refresh module 1560 .
[0113] Each of the above-mentioned frequency bands corresponds to a stack storage space, and the above-mentioned stack storage space stores at least one noise sample value. The above-mentioned refresh module 1560 is used to: for the above-mentioned first type of frequency band, refresh the above-mentioned target power mean to the stack storage space corresponding to the frequency band.
[0114] In an exemplary embodiment, based on the aforementioned scheme, each of the above-mentioned frequency bands corresponds to a stacked storage space, and the above-mentioned stacked storage space stores at least one noise sample value. The above-mentioned refresh module 1560 is also used to: for frequency bands of the above-mentioned second type other than the frequency band corresponding to the above-mentioned object under test, refresh the above-mentioned target power mean to the stacked storage space corresponding to the frequency band.
[0115] In an exemplary embodiment, based on the above-mentioned solution, the above-mentioned device also includes: a noise power estimation determination module 1570.
[0116] Each of the above-mentioned frequency bands corresponds to a stack storage space, and the above-mentioned stack storage space stores at least one noise sample value; the above-mentioned noise power estimation determination module 1570 is used to: before the above-mentioned signal-to-noise ratio determination module 1540 calculates the signal-to-noise ratio corresponding to the above-mentioned frequency band for the above-mentioned second type of frequency band according to the maximum power value of the sampling points in the above-mentioned frequency band and the noise power estimation of the frequency band, for the frequency band of the second type, determine the noise power estimation of the above-mentioned frequency band according to the noise sample values stored in the stack storage space corresponding to the frequency band.
[0117] In an exemplary embodiment, based on the aforementioned scheme, the stacked storage space stores at least two noise sample values; the noise power estimation determination module 1570 is specifically used to: determine the mean of each of the noise sample values as the noise power estimation; or, determine the noise power estimation based on each of the noise sample values and the weighted values corresponding to the noise sample values, wherein the weighted coefficient corresponding to the noise sample value generated later in the stacked storage space is larger.
[0118] It should be noted that the spectrum detection device of the laser radar provided in the above embodiment only uses the division of the above functional modules as an example when executing the spectrum detection method of the laser radar. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the spectrum detection device of the laser radar provided in the above embodiment and the spectrum detection method embodiment of the laser radar belong to the same concept. Therefore, for details not disclosed in the embodiment of the device of the present disclosure, please refer to the embodiment of the spectrum detection method of the laser radar of the present disclosure, which will not be repeated here.
[0119] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.
[0120] The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method of any of the above embodiments are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0121] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the program.
[0122] Fig.17 FIG. 1 is a schematic diagram showing the structure of an electronic device in an embodiment of the present disclosure. Fig.17 As shown, the electronic device 1700 includes: a processor 1701 and a memory 1702 .
[0123] In the embodiment of the present disclosure, the processor 1701 is the control center of the computer system, which can be the processor of a physical machine or the processor of a virtual machine. The processor 1701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1701 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.
[0124] In the embodiment of the present disclosure, the processor 1701 is specifically used for:
[0125] Acquire a spectrum graph, and determine a first threshold value according to all sampling points in the spectrum graph; divide all sampling points in the spectrum graph into multiple frequency bands, and determine a second threshold value corresponding to each frequency band according to the sampling points in each frequency band; determine the type of each frequency band as the first type or the second type according to the first threshold value and the second threshold value corresponding to each frequency band, wherein the first threshold value and the second threshold value are both threshold values corresponding to power, and the power of all sampling points in the frequency band of the first type is less than the first threshold value and less than the second threshold value corresponding to it, and the The second type is a type of frequency band other than the first type, or the first threshold value and the second threshold value are both threshold values corresponding to the amplitude, the amplitudes of all sampling points in the frequency band of the first type are smaller than the first threshold value and smaller than the second threshold value corresponding thereto, and the second type is a type of frequency band other than the first type; for the frequency band of the second type, the signal-to-noise ratio corresponding to the frequency band is calculated according to the maximum power value of the sampling points in the frequency band and the noise power estimation of the frequency band; and the spectrum peak corresponding to the measured object is determined according to the signal-to-noise ratio corresponding to the frequency band of the second type.
[0126] Further, the above-mentioned determination of the first threshold value based on all sampling points in the above-mentioned spectrum graph includes: calculating the statistical value of the power of all sampling points in the above-mentioned spectrum graph, and, based on the above-mentioned statistical value, determining the above-mentioned first threshold value; wherein the above-mentioned statistical value is the mean, or, the above-mentioned statistical value is the mean and the variance; or, the above-mentioned determination of the first threshold value based on all sampling points in the above-mentioned spectrum graph includes: calculating the statistical value of the amplitude of all sampling points in the above-mentioned spectrum graph, and, based on the above-mentioned statistical value, determining the above-mentioned first threshold value; wherein the above-mentioned statistical value is the mean, or, the above-mentioned statistical value is the mean and the variance.
[0127] Furthermore, the dividing all the sampling points in the spectrum graph into a plurality of frequency bands includes: dividing all the sampling points in the spectrum graph into the plurality of frequency bands according to the frequency of each sampling point in the spectrum graph.
[0128] Further, determining the second threshold value corresponding to each of the above-mentioned frequency bands according to the sampling points in each of the above-mentioned frequency bands includes: determining a target power mean value corresponding to each of the above-mentioned frequency bands, the above-mentioned target power mean value is the mean value of the powers of all the sampling points in the above-mentioned frequency bands; determining a target coefficient corresponding to the above-mentioned frequency bands; determining the second threshold value corresponding to the above-mentioned frequency bands according to the target power mean value and the target coefficient corresponding to the above-mentioned frequency bands.
[0129] Further, the above-mentioned determination of the target coefficient corresponding to the above-mentioned frequency band includes: determining the above-mentioned target coefficient within a preset value range according to the frequency interval corresponding to the above-mentioned frequency band, wherein the upper limit value of the frequency interval corresponding to the above-mentioned frequency band is negatively correlated with the size of the above-mentioned target coefficient.
[0130] Furthermore, along the positive direction of the frequency axis of the above-mentioned spectrum diagram, the target coefficient corresponding to each of the above-mentioned frequency bands decreases linearly.
[0131] Further, for the frequency band of the second type, calculating the signal-to-noise ratio corresponding to the frequency band according to the maximum power value of each sampling point in the frequency band and the noise power estimate of the frequency band, includes: for the frequency band of the second type, determining the signal power estimate corresponding to the frequency band according to the maximum power value of each sampling point in the frequency band and the noise power estimate of the frequency band; determining the signal-to-noise ratio corresponding to the frequency band according to the signal power estimate and the noise power estimate.
[0132] Furthermore, the above-mentioned determining the spectrum peak corresponding to the measured object according to the signal-to-noise ratio corresponding to the frequency band of the above-mentioned second type includes: determining a maximum signal-to-noise ratio value among the signal-to-noise ratios corresponding to each frequency band of the above-mentioned second type, and determining the spectrum peak corresponding to the above-mentioned maximum signal-to-noise ratio value as the spectrum peak corresponding to the above-mentioned measured object.
[0133] Furthermore, the processor 1701 is further specifically configured to:
[0134] Each of the frequency bands corresponds to a stack storage space, and the stack storage space stores at least one noise sample value. For the first type of frequency band, the target power mean value is updated to the stack storage space corresponding to the frequency band.
[0135] Furthermore, the processor 1701 is further specifically configured to:
[0136] Each of the frequency bands corresponds to a stack storage space, and the stack storage space stores at least one noise sample value. For frequency bands of the second type other than the frequency band corresponding to the measured object, the target power mean is updated to the stack storage space corresponding to the frequency band.
[0137] Furthermore, the processor 1701 is further specifically configured to:
[0138] Each of the above-mentioned frequency bands corresponds to a stacked storage space, and the above-mentioned stacked storage space stores at least one noise sample value; for the above-mentioned second type of frequency band, before calculating the signal-to-noise ratio corresponding to the above-mentioned frequency band based on the maximum power value of the sampling points in the above-mentioned frequency band and the noise power estimate of the frequency band, for the frequency band of the second type, the noise power estimate of the above-mentioned frequency band is determined based on the noise sample values stored in the stacked storage space corresponding to the frequency band.
[0139] Furthermore, the stacked storage space stores at least two noise sample values; the noise power estimation of the frequency band is determined according to the noise sample values stored in the stacked storage space corresponding to the frequency band, including: determining the mean of the noise sample values as the noise power estimation; or determining the noise power estimation according to the noise sample values and the weighted values corresponding to the noise sample values, wherein the weighted coefficient corresponding to the noise sample values generated later in the stacked storage space is larger.
[0140] The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments of the present disclosure, the non-transitory computer-readable storage medium in the memory 1702 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1701 to implement the method in the embodiment of the present disclosure.
[0141] In some embodiments, the electronic device 1700 further includes: a peripheral device interface 1703 and at least one peripheral device. The processor 1701, the memory 1702 and the peripheral device interface 1703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a display screen 1704, a camera 1705 and an audio circuit 1706.
[0142] The peripheral device interface 1703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1701 and the memory 1702. In some embodiments of the present disclosure, the processor 1701, the memory 1702, and the peripheral device interface 1703 are integrated on the same chip or circuit board; in some other embodiments of the present disclosure, any one or two of the processor 1701, the memory 1702, and the peripheral device interface 1703 may be implemented on a separate chip or circuit board. The embodiments of the present disclosure are not specifically limited to this.
[0143] The display screen 1704 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1704 is a touch display screen, the display screen 1704 also has the ability to collect touch signals on the surface or above the surface of the display screen 1704. The touch signal can be input to the processor 1701 as a control signal for processing. At this time, the display screen 1704 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments of the present disclosure, the display screen 1704 can be one, and the front panel of the electronic device 1700 is set; in other embodiments of the present disclosure, the display screen 1704 can be at least two, which are respectively set on different surfaces of the electronic device 1700 or are folded; in some embodiments of the present disclosure, the display screen 1704 can be a flexible display screen, which is set on the curved surface or folded surface of the electronic device 1700. Even, the display screen 1704 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 1704 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0144] Camera 1705 is used to capture images or videos. Optionally, camera 1705 includes a front camera and a rear camera. Usually, the front camera is arranged on the front panel of the electronic device, and the rear camera is arranged on the back of the electronic device. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments of the present disclosure, camera 1705 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0145] The audio circuit 1706 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1701 for processing. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the electronic device 1700. The microphone may also be an array microphone or an omnidirectional collection microphone.
[0146] The power supply 1707 is used to power various components in the electronic device 1700. The power supply 1707 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1707 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0147] The electronic device structure block diagram shown in the embodiment of the present disclosure does not constitute a limitation on the electronic device 1700. The electronic device 1700 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0148] In the description of the present disclosure, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances. In addition, in the description of the present disclosure, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
[0149] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, equivalent changes made according to the claims of the present disclosure are still within the scope covered by the present disclosure.
Claims
1. A spectrum detection method for a laser radar, wherein the laser radar is a FMCW radar, characterized in that: The method comprises: Acquire a frequency spectrum graph, and determine a first threshold value according to all sampling points in the frequency spectrum graph; Dividing all sampling points in the frequency spectrum into a plurality of frequency bands, and determining a second threshold value corresponding to each frequency band according to the sampling points in each frequency band; Determining, according to the first threshold value and the second threshold value corresponding to each of the frequency bands, whether the type of each of the frequency bands is the first type or the second type, wherein the first threshold value and the second threshold value are both threshold values corresponding to power, the power of all sampling points in the frequency band of the first type is less than the first threshold value and less than the second threshold value corresponding thereto, and the second type is a type of frequency bands other than the first type, or the first threshold value and the second threshold value are both threshold values corresponding to amplitude, the amplitude of all sampling points in the frequency band of the first type is less than the first threshold value and less than the second threshold value corresponding thereto, and the second type is a type of frequency bands other than the first type; For the frequency band of the second type, calculating a signal-to-noise ratio corresponding to the frequency band according to a maximum power value of sampling points in the frequency band and a noise power estimate of the frequency band; and The spectrum peak corresponding to the measured object is determined according to the signal-to-noise ratio corresponding to the frequency band of the second type.
2. The method according to claim 1, characterized in that: Determining the first threshold value according to all sampling points in the spectrum graph includes: calculating a statistical value of the power of all sampling points in the spectrum graph, and determining the first threshold value according to the statistical value; wherein the statistical value is the mean, or the statistical value is the mean and the variance; or, Determining the first threshold value based on all sampling points in the spectrum graph includes: calculating a statistical value of the amplitudes of all sampling points in the spectrum graph, and determining the first threshold value based on the statistical value; wherein the statistical value is a mean, or the statistical value is a mean and a variance.
3. The method according to claim 1, characterized in that The dividing all sampling points in the spectrum graph into a plurality of frequency bands comprises: According to the frequency of each sampling point in the spectrum graph, all sampling points in the spectrum graph are divided into a plurality of frequency bands.
4. The method according to claim 1, characterized in that The determining, according to the sampling points in each of the frequency bands, a second threshold value corresponding to each of the frequency bands comprises: Determine a target power mean corresponding to each of the frequency bands, the target power mean being the mean of powers of all sampling points in the frequency band; Determining a target coefficient corresponding to each of the frequency bands; A second threshold value corresponding to the frequency band is determined according to the target power mean value and the target coefficient corresponding to the frequency band.
5. The method according to claim 4, characterized in that The determining of the target coefficient corresponding to the frequency band includes: The target coefficient is determined within a preset value range according to the frequency interval corresponding to the frequency band, wherein an upper limit value of the frequency interval corresponding to the frequency band is negatively correlated with a magnitude of the target coefficient.
6. The method according to claim 5, characterized in that Along the positive direction of the frequency axis of the spectrum diagram, the target coefficient corresponding to each frequency band decreases linearly.
7. The method according to claim 1, characterized in that The step of calculating, for the frequency band of the second type, a signal-to-noise ratio corresponding to the frequency band according to a maximum power value of each sampling point in the frequency band and a noise power estimate of the frequency band, comprises: For the frequency band of the second type, determining a signal power estimate corresponding to the frequency band according to a maximum power value of a sampling point in each of the frequency bands and a noise power estimate of the frequency band; A signal-to-noise ratio corresponding to the frequency band is determined according to the signal power estimate and the noise power estimate.
8. The method according to claim 1, characterized in that The step of determining a spectrum peak corresponding to the object under test according to the signal-to-noise ratio corresponding to the frequency band of the second type includes: A maximum signal-to-noise ratio value is determined among the signal-to-noise ratios corresponding to the frequency bands of the second type, and a spectrum peak corresponding to the maximum signal-to-noise ratio value is determined as the spectrum peak corresponding to the measured object.
9. The method according to claim 2, characterized in that: Each of the frequency bands corresponds to a stack storage space, and the stack storage space stores at least one noise sample value. The method further includes: For the first type of frequency band, the target power average is refreshed into the stack storage space corresponding to the frequency band.
10. The method according to claim 2, characterized in that Each of the frequency bands corresponds to a stack storage space, and the stack storage space stores at least one noise sample value. The method further includes: For a frequency band of the second type other than the frequency band corresponding to the measured object, the target power mean value is refreshed to the stack storage space corresponding to the frequency band.
11. The method according to claim 1, characterized in that: Each of the frequency bands corresponds to a stack storage space, and the stack storage space stores at least one noise sample value; Before calculating the signal-to-noise ratio corresponding to the frequency band according to the maximum power value of the sampling points in the frequency band and the noise power estimate of the frequency band for the frequency band of the second type, the method further includes: For a frequency band of the second type, a noise power estimation of the frequency band is determined according to noise sample values stored in the stack storage space corresponding to the frequency band.
12. The method according to claim 11, characterized in that The stack storage space stores at least two noise sample values; The step of determining the noise power estimation of the frequency band according to the noise sample values stored in the stack storage space corresponding to the frequency band includes: Determine the mean value of each noise sample value as the noise power estimate; or, The noise power estimation is determined according to each of the noise sample values and the weighted values corresponding to the noise sample values, wherein the weighted coefficient corresponding to the noise sample value generated later in the stack storage space is larger.
13. A spectrum detection device for laser radar, characterized in that: The laser radar is a FMCW radar, and the device comprises: An acquisition module, used for acquiring a spectrum graph and determining a first threshold value according to all sampling points in the spectrum graph; A division module, used for dividing all sampling points in the frequency spectrum into a plurality of frequency bands, and determining a second threshold value corresponding to each frequency band according to the sampling points in each frequency band; a type determination module, configured to determine, according to the first threshold value and a second threshold value corresponding to each of the frequency bands, whether the type of each of the frequency bands is the first type or the second type, wherein the first threshold value and the second threshold value are both threshold values corresponding to power, the power of all sampling points in the frequency band of the first type is less than the first threshold value and less than the second threshold value corresponding thereto, and the second type is the type of a frequency band other than the first type, or the first threshold value and the second threshold value are both threshold values corresponding to amplitude, the amplitude of all sampling points in the frequency band of the first type is less than the first threshold value and less than the second threshold value corresponding thereto, and the second type is the type of a frequency band other than the first type; a signal-to-noise ratio determination module, configured to calculate, for the frequency band of the second type, a signal-to-noise ratio corresponding to the frequency band according to a maximum power value of sampling points in the frequency band and a noise power estimate of the frequency band; and The spectrum peak determination module is used to determine the spectrum peak corresponding to the measured object according to the signal-to-noise ratio corresponding to the frequency band of the second type.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the spectrum detection method of the laser radar as described in any one of claims 1 to 12 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the spectrum detection method of the laser radar as described in any one of claims 1 to 12 is implemented.
