Parking space status detection method, device, electronic device and storage medium
By combining geomagnetic sensors, photosensitive sensors, millimeter wave radars and ground-sensitive coils, the problems of low accuracy and high power consumption of parking space detectors in special environments are solved, and accurate parking space detection and low in special environments are achieved The effect of power consumption.
Patent Information
- Application Number
- CN202310181359.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-02-21
AI Technical Summary
The existing parking space detectors have low detection accuracy and high power consumption in special environments (such as water accumulation, snow accumulation, light source interference, etc.), and cannot be used for a long time.
The combination method of geomagnetic sensor, photosensitive sensor, millimeter wave radar and ground sensing coil is used to detect the parking space status at preset time intervals. If a magnetic field or light change is detected, the millimeter wave radar or ground sensing coil is turned on for further detection, and The parking space status is determined through differential frequency waveform curves and fast Fourier transforms to ensure accuracy while reducing device power consumption through sleep mode.
While ensuring the accuracy of parking space inspection, it greatly reduces the power consumption of geomagnetic equipment, improves the reliability and long-term use capability of the detection system.
Smart Images

Figure CN116153094B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of parking space detection, and in particular to a parking space status detection method, device, electronic device and storage medium. Background Art
[0002] With the development of technology, the detection of whether there is a vehicle in a parking space no longer requires manual work but can be done through parking space detectors.
[0003] Among the existing parking space detectors, geomagnetic sensors are easily affected by surrounding vehicles or metal objects as well as subways; millimeter-wave radars not only have their accuracy greatly reduced when the parking space is covered by objects such as water or snow, but also their power consumption is relatively high if they are always in operation; infrared sensors are affected by objects such as dirt and water on the surface of the detection equipment; pyroelectric sensors are greatly affected by the vehicle's casing and temperature; photosensitive sensors will not detect accurately when interfered by other light sources and in low-light environments at night; although ground sensing coils have the most stable detection and are least susceptible to interference from external environmental factors, if they are always in operation, their power consumption will be even higher than that of radars and they cannot be used for a long time.
[0004] From the above, it can be seen that a single or combination of individual detection methods cannot meet the parking space detection needs in special environments. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide a parking space status detection method, device, electronic device and storage medium, which can significantly reduce the power consumption of the geomagnetic device while ensuring that the geomagnetic device accurately detects whether there is a vehicle in the parking space.
[0006] In a first aspect, an embodiment of the present application provides a parking space status detection method, which is applied to a geomagnetic device, wherein the geomagnetic device is arranged on a parking space, and the geomagnetic device includes: a geomagnetic sensor, a photosensitive sensor, a millimeter wave radar, and a ground sensing coil; the method includes:
[0007] At every preset time interval, the geomagnetic sensor is used to detect the geomagnetic field strength of the parking space, and the light intensity received by the geomagnetic device is detected by the photosensitive sensor;
[0008] If the absolute value of the difference in geomagnetic field intensity is greater than a preset magnetic field intensity variation threshold, and / or the absolute value of the illumination intensity difference is greater than a preset illumination variation threshold, the millimeter-wave radar is turned on, and the parking space status of the parking space is detected by the millimeter-wave radar, wherein the millimeter-wave radar enters sleep mode after the detection is completed, the geomagnetic field intensity difference is the difference between the latest geomagnetic field intensity and the latest geomagnetic field intensity floating base value, and the initial value of the geomagnetic field intensity floating base value is a preset value. Whenever the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, the latest geomagnetic field floating base value is updated to the latest geomagnetic field intensity, the illumination intensity difference is the difference between the latest illumination intensity and the second latest illumination intensity, the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, indicating that the parking space status of the parking space may have changed, the absolute value of the illumination intensity difference is greater than the illumination variation threshold, indicating that the parking space status of the parking space may have changed, and the parking space status includes: with a car, without a car, covered by rain, and covered by snow;
[0009] If the parking space is covered by rain or snow, the ground sensing coil is turned on to further detect whether there is a vehicle in the parking space, wherein the ground sensing coil enters sleep mode after the detection is completed.
[0010] In a possible implementation manner, detecting the parking space status of the parking space by using the millimeter wave radar includes:
[0011] Transmitting a continuously frequency-modulated electromagnetic wave of a preset duration above the parking space through the millimeter-wave radar, so as to receive a reflected wave of the electromagnetic wave through the millimeter-wave radar, wherein the preset duration is less than the time interval;
[0012] Based on the frequency difference between the frequency of the reflected wave of the electromagnetic wave and the frequency of the electromagnetic wave at each target moment, outputting a target frequency difference waveform curve between the reflected wave of the electromagnetic wave and the electromagnetic wave, wherein the target moment is a moment within a common duration of the reflected wave of the electromagnetic wave and the electromagnetic wave;
[0013] Based on the target difference frequency waveform curve, a parking space state of the parking space is determined.
[0014] In a possible implementation manner, determining the parking space state of the parking space based on the target difference frequency waveform curve includes:
[0015] Calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve;
[0016] If the first similarity is the largest among all target similarities and the first similarity is greater than a preset similarity threshold, it is determined that the parking space state of the parking space is empty, wherein the target similarity includes: the first similarity, the second similarity, and the third similarity;
[0017] If the second similarity is the largest among all target similarities and the second similarity is greater than the similarity threshold, determining that the parking space state is rain covered;
[0018] If the third similarity is the largest among all target similarities and the third similarity is greater than the similarity threshold, determining that the parking space state is snow-covered;
[0019] If each of the target similarities is less than the similarity threshold, windowing the target difference frequency waveform curve to obtain a windowed difference frequency waveform curve;
[0020] Performing a fast Fourier transform on the windowed difference frequency waveform curve to obtain a target spectrum;
[0021] If there is a target peak point among the peak points of the target spectrum whose abscissa value is less than the preset abscissa value and whose ordinate value is greater than the preset ordinate value, the parking space status of the parking space is determined to be occupied; otherwise, the parking space status of the parking space is determined to be empty.
[0022] In a possible implementation manner, before determining the first similarity between the target difference frequency waveform curve and the vehicle-free standard difference frequency waveform curve, the second similarity between the target difference frequency waveform curve and the rain cover standard difference frequency waveform curve, and the third similarity between the target difference frequency waveform curve and the snow cover standard difference frequency waveform curve, the method further includes:
[0023] Determine whether there are m continuous target points in the target difference frequency waveform curve and whether the ratio of the number of the target points to the number of all points in the target difference frequency waveform curve is greater than a preset threshold, wherein the target point is a point in the target difference frequency waveform curve where the frequency difference is 0, and m is a preset positive integer;
[0024] If yes, determining that the parking space state of the parking space is rain covered;
[0025] If not, the step of calculating a first similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve without a vehicle, a second similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with rain cover, and a third similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with snow cover is executed.
[0026] In a possible implementation manner, further detecting whether there is a vehicle in the parking space by using the ground sensor coil includes:
[0027] Obtaining the oscillation frequency of the ground sensing coil;
[0028] If the oscillation frequency of the ground sensor coil is greater than a preset oscillation frequency threshold, it is determined that there is a vehicle in the parking space;
[0029] If the oscillation frequency of the ground sensor coil is less than or equal to the oscillation frequency threshold, it is determined that there is no vehicle in the parking space.
[0030] In a second aspect, an embodiment of the present application further provides a parking space status detection device, which is applied to a geomagnetic device, wherein the geomagnetic device is arranged on a parking space, and the geomagnetic device comprises: a geomagnetic sensor, a photosensitive sensor, a millimeter wave radar, and a ground sensing coil; the device comprises:
[0031] A detection module, configured to detect the geomagnetic field strength of the parking space through the geomagnetic sensor at preset time intervals, and to detect the light intensity received by the geomagnetic device through the photosensitive sensor;
[0032] A first processing module is used for turning on the millimeter-wave radar if the absolute value of the geomagnetic field intensity difference is greater than a preset magnetic field intensity variation threshold, and / or the absolute value of the illumination intensity difference is greater than a preset illumination variation threshold, and detecting the parking space status of the parking space through the millimeter-wave radar, wherein the millimeter-wave radar enters sleep mode after the detection is completed, the geomagnetic field intensity difference is the difference between the latest geomagnetic field intensity and the latest geomagnetic field intensity floating base value, the initial value of the geomagnetic field intensity floating base value is a preset value, whenever the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, the latest geomagnetic field floating base value is updated to the latest geomagnetic field intensity, the illumination intensity difference is the difference between the latest illumination intensity and the second latest illumination intensity, the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, indicating that the parking space status of the parking space may have changed, the absolute value of the illumination intensity difference is greater than the illumination variation threshold, indicating that the parking space status of the parking space may have changed, and the parking space status includes: with a car, without a car, covered by rain, and covered by snow;
[0033] The second processing module is used to turn on the ground sensing coil if the parking space is covered by rain or snow, and further detect whether there is a vehicle in the parking space through the ground sensing coil, wherein the ground sensing coil enters sleep mode after the detection is completed.
[0034] In a possible implementation manner, when the first processing module detects the parking space status of the parking space through the millimeter wave radar, it is specifically configured to:
[0035] Transmitting a continuously frequency-modulated electromagnetic wave of a preset duration above the parking space through the millimeter-wave radar, so as to receive a reflected wave of the electromagnetic wave through the millimeter-wave radar, wherein the preset duration is less than the time interval;
[0036] Based on the frequency difference between the frequency of the reflected wave of the electromagnetic wave and the frequency of the electromagnetic wave at each target moment, outputting a target frequency difference waveform curve between the reflected wave of the electromagnetic wave and the electromagnetic wave, wherein the target moment is a moment within a common duration of the reflected wave of the electromagnetic wave and the electromagnetic wave;
[0037] Based on the target difference frequency waveform curve, a parking space state of the parking space is determined.
[0038] In a possible implementation manner, when the first processing module determines the parking space state of the parking space based on the target difference frequency waveform curve, it is specifically configured to:
[0039] Calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve;
[0040] If the first similarity is the largest among all target similarities and the first similarity is greater than a preset similarity threshold, it is determined that the parking space state of the parking space is empty, wherein the target similarity includes: the first similarity, the second similarity, and the third similarity;
[0041] If the second similarity is the largest among all target similarities and the second similarity is greater than the similarity threshold, determining that the parking space state of the parking space is rain covered;
[0042] If the third similarity is the largest among all target similarities and the third similarity is greater than the similarity threshold, determining that the parking space state is snow-covered;
[0043] If each of the target similarities is less than the similarity threshold, windowing the target difference frequency waveform curve to obtain a windowed difference frequency waveform curve;
[0044] Performing a fast Fourier transform on the windowed difference frequency waveform curve to obtain a target spectrum;
[0045] If there is a target peak point among the peak points of the target spectrum whose abscissa value is less than the preset abscissa value and whose ordinate value is greater than the preset ordinate value, the parking space status of the parking space is determined to be occupied; otherwise, the parking space status of the parking space is determined to be empty.
[0046] In a possible implementation manner, before calculating the first similarity between the target difference frequency waveform curve and the vehicle-free standard difference frequency waveform curve, the second similarity between the target difference frequency waveform curve and the rain cover standard difference frequency waveform curve, and the third similarity between the target difference frequency waveform curve and the snow cover standard difference frequency waveform curve, the first processing module is further configured to:
[0047] Determine whether there are m continuous target points in the target difference frequency waveform curve and whether the ratio of the number of the target points to the number of all points in the target difference frequency waveform curve is greater than a preset threshold, wherein the target point is a point in the target difference frequency waveform curve where the frequency difference is 0, and m is a preset positive integer;
[0048] If yes, determining that the parking space state of the parking space is rain covered;
[0049] If not, the step of calculating a first similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve without a vehicle, a second similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with rain cover, and a third similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with snow cover is executed.
[0050] In a possible implementation manner, when the second processing module further detects whether there is a vehicle in the parking space through the ground sensing coil, it is specifically used to:
[0051] Obtaining the oscillation frequency of the ground sensing coil;
[0052] If the oscillation frequency of the ground sensor coil is greater than a preset oscillation frequency threshold, it is determined that there is a vehicle in the parking space;
[0053] If the oscillation frequency of the ground sensor coil is less than or equal to the oscillation frequency threshold, it is determined that there is no vehicle in the parking space.
[0054] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the parking space status detection method described in any one of the first aspects.
[0055] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the parking space status detection method as described in any one of the first aspects are executed.
[0056] The embodiments of the present application provide a parking space status detection method, device, electronic device and storage medium, which can significantly reduce the power consumption of the geomagnetic device while ensuring that the geomagnetic device accurately detects whether there is a vehicle in the parking space. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 A flow chart of a parking space status detection method provided by an embodiment of the present application is shown;
[0059] Figure 2 A flow chart of another parking space status detection method provided by an embodiment of the present application is shown;
[0060] Figure 3 A schematic diagram of the structure of a parking space status detection device provided in an embodiment of the present application is shown;
[0061] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0062] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0063] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0064] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0065] To facilitate understanding of this embodiment, a parking space status detection method, device, electronic device and storage medium provided in an embodiment of the present application are introduced in detail.
[0066] Reference Figure 1 As shown, it is a flow chart of a parking space status detection method provided in an embodiment of the present application, which is applied to a geomagnetic device, the geomagnetic device is arranged on a parking space, the geomagnetic device comprises: a geomagnetic sensor, a photosensitive sensor, a millimeter wave radar, and a ground sensing coil; the method comprises:
[0067] S101, detecting the geomagnetic field strength of the parking space by the geomagnetic sensor at every preset time interval, and detecting the light intensity received by the geomagnetic device by the photosensitive sensor;
[0068] Exemplarily, the preset time interval may be 6 seconds.
[0069] S102, if the absolute value of the geomagnetic field intensity difference is greater than a preset magnetic field intensity variation threshold, and / or the absolute value of the illumination intensity difference is greater than a preset illumination variation threshold, the millimeter wave radar is turned on, and the parking space status of the parking space is detected by the millimeter wave radar, wherein the millimeter wave radar enters sleep mode after the detection is completed, the geomagnetic field intensity difference is the difference between the latest geomagnetic field intensity and the latest geomagnetic field intensity floating base value, the initial value of the geomagnetic field intensity floating base value is a preset value, and whenever the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, the latest geomagnetic field floating base value is updated to the latest geomagnetic field intensity, the illumination intensity difference is the difference between the latest illumination intensity and the second latest illumination intensity, the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, indicating that the parking space status of the parking space may have changed, the absolute value of the illumination intensity difference is greater than the illumination variation threshold, indicating that the parking space status of the parking space may have changed, and the parking space status includes: with a car, without a car, covered by rain, and covered by snow;
[0070] That is, the millimeter-wave radar goes into sleep mode after each detection is completed.
[0071] When there is metal above the parking space, the intensity of the geomagnetic field of the parking space will increase, and the vehicle contains metal components.
[0072] Compared with millimeter-wave radar and ground sensing coil, the power consumption per unit time of the ground sensing coil is greater than that of the millimeter-wave radar, which is greater than that of the geomagnetic sensor, and the power consumption per unit time of the ground sensing coil is greater than that of the millimeter-wave radar, which is greater than that of the photosensitive sensor.
[0073] The parking space status is "occupied", that is, there is a vehicle in the parking space; the parking space status is "no vehicle", that is, there is no vehicle in the parking space; the parking space status is "rain covered", that is, the parking space is currently covered by rain and it is impossible to determine whether there is a car in the parking space; the parking space status is "snow covered", that is, the parking space is currently covered by snow and it is impossible to determine whether there is a car in the parking space.
[0074] For example, it is assumed that the car slowly enters the parking space and leaves the parking space. The initial value of the geomagnetic field floating base value when the car is not in the parking space is 10, and the preset magnetic field strength change threshold is 50. When the car just enters the parking space, the latest geomagnetic field strength detected is 30, and the absolute value of the geomagnetic field strength difference is 20 (|30-10|) < 50, then the geomagnetic field strength floating base value is not updated and the millimeter wave radar is not turned on.
[0075] When the geomagnetic field strength is 50 during re-detection, the absolute value of the geomagnetic field strength difference is 40(|50-10|)<50, the geomagnetic field strength floating base value is not updated and the millimeter wave radar is not turned on;
[0076] When the geomagnetic field strength is 80 during re-detection, the absolute value of the geomagnetic field strength difference is 70 (|80-10|)>50, then the geomagnetic field strength floating base value is updated to 80, and the millimeter wave radar is turned on;
[0077] When the vehicle just leaves the position, the detected geomagnetic field strength is 70, and the absolute value of the difference in geomagnetic field strength 10(|70-80|)<50, the floating base value of the geomagnetic field strength will not be updated and the millimeter wave radar will not be turned on;
[0078] During re-detection, the geomagnetic field strength is 12, and the absolute value of the difference in geomagnetic field strength is 68 (|12-80|)>50, so the floating base value of the geomagnetic field strength is updated to 12, and the millimeter-wave radar is turned on. At this point, a complete parking process is completed.
[0079] S103: If the parking space is covered by rain or snow, turn on the ground sensing coil to further detect whether there is a vehicle in the parking space, wherein the ground sensing coil enters sleep mode after the detection is completed.
[0080] That is, the ground sensing coil enters sleep mode after each detection is completed.
[0081] If the millimeter-wave radar detects that the parking space is covered with rain or snow, it means that the millimeter-wave radar cannot determine whether there is a vehicle in the parking space due to the influence of rain and snow. At this time, it is necessary to turn on the most stable ground sensing coil that is least susceptible to interference from external environmental factors for detection.
[0082] Exemplarily, the geomagnetic device may further include a communication module, which may transmit the result of whether there is a vehicle in the parking space each time to a preset terminal, and the terminal may further record and store the result after receiving it.
[0083] Exemplarily, the geomagnetic device may also be a data recording module that can locally store the result of whether there is a vehicle in the parking space each time.
[0084] Exemplarily, the geomagnetic device is powered by a built-in battery (eg, a lithium battery).
[0085] Reference Figure 2 FIG. 1 is a flow chart of another parking space status detection method provided in an embodiment of the present application. In a possible implementation manner, detecting the parking space status of the parking space by the millimeter wave radar includes:
[0086] S201, transmitting a continuously frequency-modulated electromagnetic wave of a preset duration toward the top of the parking space through the millimeter-wave radar, so as to receive a reflected wave of the electromagnetic wave through the millimeter-wave radar, wherein the preset duration is less than the time interval;
[0087] That is, the frequency of electromagnetic waves is constantly changing.
[0088] In practical applications, the preset duration only needs to be a very short time (approximately several milliseconds or tens of milliseconds).
[0089] S202, outputting a target frequency difference waveform curve between the reflected wave of the electromagnetic wave and the electromagnetic wave based on the frequency difference between the frequency of the reflected wave of the electromagnetic wave and the frequency of the electromagnetic wave at each target moment, wherein the target moment is a moment within a common duration of the reflected wave of the electromagnetic wave and the electromagnetic wave;
[0090] For example, the preset duration is 10 milliseconds, the electromagnetic wave lasts from 0 milliseconds to 10 milliseconds, and the reflected wave of the electromagnetic wave lasts from 1 millisecond to 11 milliseconds. Then, the common duration is from 1 millisecond to 10 milliseconds (a total of 9 milliseconds).
[0091] S203: Determine the parking space status of the parking space based on the target difference frequency waveform curve.
[0092] In a possible implementation manner, determining the parking space state of the parking space based on the target difference frequency waveform curve includes:
[0093] Calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve;
[0094] The standard difference frequency waveform curve without a vehicle is a difference frequency waveform curve obtained in advance by the millimeter wave radar when there is no vehicle in the parking space and there is no rain or snow;
[0095] The rain cover standard difference frequency waveform curve is a difference frequency waveform curve obtained in advance by a millimeter wave radar when the parking space is covered by rain (whether there is a vehicle or not, and whether there is a vehicle or not will not affect the waveform of the rain cover standard difference frequency waveform curve);
[0096] The snow cover standard difference frequency waveform curve is a difference frequency waveform curve obtained in advance by a millimeter wave radar when the parking space is covered with snow (with or without a vehicle, and the presence or absence of a vehicle will not affect the waveform of the snow cover standard difference frequency waveform curve).
[0097] If the first similarity is the largest among all target similarities and the first similarity is greater than a preset similarity threshold, it is determined that the parking space state of the parking space is empty, wherein the target similarity includes: the first similarity, the second similarity, and the third similarity;
[0098] If the second similarity is the largest among all target similarities and the second similarity is greater than the similarity threshold, determining that the parking space state of the parking space is rain covered;
[0099] If the third similarity is the largest among all target similarities and the third similarity is greater than the similarity threshold, determining that the parking space state is snow-covered;
[0100] If each of the target similarities is less than the similarity threshold, windowing the target difference frequency waveform curve to obtain a windowed difference frequency waveform curve;
[0101] Performing a fast Fourier transform on the windowed difference frequency waveform curve to obtain a target spectrum;
[0102] If there is a target peak point among the peak points of the target spectrum whose abscissa value is less than the preset abscissa value and whose ordinate value is greater than the preset ordinate value, the parking space status of the parking space is determined to be occupied; otherwise, the parking space status of the parking space is determined to be empty.
[0103] In a possible implementation, before calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve, the method further includes:
[0104] Determine whether there are m continuous target points in the target difference frequency waveform curve and whether the ratio of the number of the target points to the number of all points in the target difference frequency waveform curve is greater than a preset threshold, wherein the target point is a point in the target difference frequency waveform curve where the frequency difference is 0, and m is a preset positive integer;
[0105] m is less than the number of all points in the target difference frequency waveform curve.
[0106] If yes, determining that the parking space state of the parking space is rain covered;
[0107] When the parking space status of the parking space is rain covered, the waveform of the target difference frequency waveform curve will show a typical sinking trend.
[0108] If not, the step of calculating a first similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve without a vehicle, a second similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with rain cover, and a third similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with snow cover is executed.
[0109] In a possible implementation manner, further detecting whether there is a vehicle in the parking space by using the ground sensor coil includes:
[0110] Obtaining the oscillation frequency of the ground sensing coil;
[0111] If the oscillation frequency of the ground sensor coil is greater than a preset oscillation frequency threshold, it is determined that there is a vehicle in the parking space;
[0112] If the oscillation frequency of the ground sensor coil is less than or equal to the oscillation frequency threshold, it is determined that there is no vehicle in the parking space.
[0113] A parking space status detection method provided in an embodiment of the present application can significantly reduce the power consumption of a geomagnetic device while ensuring that the geomagnetic device accurately detects whether a vehicle exists in a parking space.
[0114] Reference Figure 3 As shown, it is a structural schematic diagram of a parking space status detection device provided in an embodiment of the present application, which is applied to a geomagnetic device, the geomagnetic device is arranged on a parking space, the geomagnetic device comprises: a geomagnetic sensor, a photosensitive sensor, a millimeter wave radar, and a ground sensing coil; the device comprises:
[0115] The detection module 301 is used to detect the geomagnetic field strength of the parking space through the geomagnetic sensor at every preset time interval, and to detect the light intensity received by the geomagnetic device through the photosensitive sensor;
[0116] The first processing module 302 is used to turn on the millimeter-wave radar if the absolute value of the geomagnetic field intensity difference is greater than a preset magnetic field intensity change threshold, and / or the absolute value of the illumination intensity difference is greater than a preset illumination change threshold, and detect the parking space state of the parking space through the millimeter-wave radar, wherein the millimeter-wave radar enters sleep mode after the detection is completed, the geomagnetic field intensity difference is the difference between the latest geomagnetic field intensity and the latest geomagnetic field intensity floating base value, the initial value of the geomagnetic field intensity floating base value is a preset value, whenever the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity change threshold, the latest geomagnetic field floating base value is updated to the latest geomagnetic field intensity, the illumination intensity difference is the difference between the latest illumination intensity and the second latest illumination intensity, the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity change threshold, indicating that the parking space state of the parking space may have changed, the absolute value of the illumination intensity difference is greater than the illumination change threshold, indicating that the parking space state of the parking space may have changed, and the parking space state includes: with a car, without a car, covered by rain, and covered by snow;
[0117] The second processing module 303 is used to turn on the ground sensing coil if the parking space is covered by rain or snow, and further detect whether there is a vehicle in the parking space through the ground sensing coil, wherein the ground sensing coil enters sleep mode after the detection is completed.
[0118] In a possible implementation manner, when the first processing module 302 detects the parking space status of the parking space through the millimeter wave radar, it is specifically configured to:
[0119] Transmitting a continuously frequency-modulated electromagnetic wave of a preset duration above the parking space through the millimeter-wave radar, so as to receive a reflected wave of the electromagnetic wave through the millimeter-wave radar, wherein the preset duration is less than the time interval;
[0120] Based on the frequency difference between the frequency of the reflected wave of the electromagnetic wave and the frequency of the electromagnetic wave at each target moment, outputting a target frequency difference waveform curve between the reflected wave of the electromagnetic wave and the electromagnetic wave, wherein the target moment is a moment within a common duration of the reflected wave of the electromagnetic wave and the electromagnetic wave;
[0121] Based on the target difference frequency waveform curve, a parking space state of the parking space is determined.
[0122] In a possible implementation manner, when determining the parking space state of the parking space based on the target difference frequency waveform curve, the first processing module 302 is specifically configured to:
[0123] Calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve;
[0124] If the first similarity is the largest among all target similarities and the first similarity is greater than a preset similarity threshold, it is determined that the parking space state of the parking space is empty, wherein the target similarity includes: the first similarity, the second similarity, and the third similarity;
[0125] If the second similarity is the largest among all target similarities and the second similarity is greater than the similarity threshold, determining that the parking space state of the parking space is rain covered;
[0126] If the third similarity is the largest among all target similarities and the third similarity is greater than the similarity threshold, determining that the parking space state is snow-covered;
[0127] If each of the target similarities is less than the similarity threshold, windowing the target difference frequency waveform curve to obtain a windowed difference frequency waveform curve;
[0128] Performing a fast Fourier transform on the windowed difference frequency waveform curve to obtain a target spectrum;
[0129] If there is a target peak point among the peak points of the target spectrum whose abscissa value is less than the preset abscissa value and whose ordinate value is greater than the preset ordinate value, the parking space status of the parking space is determined to be occupied; otherwise, the parking space status of the parking space is determined to be empty.
[0130] In a possible implementation manner, before calculating the first similarity between the target difference frequency waveform curve and the vehicle-free standard difference frequency waveform curve, the second similarity between the target difference frequency waveform curve and the rain cover standard difference frequency waveform curve, and the third similarity between the target difference frequency waveform curve and the snow cover standard difference frequency waveform curve, the first processing module 302 is further configured to:
[0131] Determine whether there are m continuous target points in the target difference frequency waveform curve and whether the ratio of the number of the target points to the number of all points in the target difference frequency waveform curve is greater than a preset threshold, wherein the target point is a point in the target difference frequency waveform curve where the frequency difference is 0, and m is a preset positive integer;
[0132] If yes, determining that the parking space state of the parking space is rain covered;
[0133] If not, the step of calculating a first similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve without a vehicle, a second similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with rain cover, and a third similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with snow cover is executed.
[0134] In a possible implementation manner, when the second processing module 303 further detects whether there is a vehicle in the parking space through the ground sensing coil, it is specifically used to:
[0135] Obtaining the oscillation frequency of the ground sensing coil;
[0136] If the oscillation frequency of the ground sensor coil is greater than a preset oscillation frequency threshold, it is determined that there is a vehicle in the parking space;
[0137] If the oscillation frequency of the ground sensor coil is less than or equal to the oscillation frequency threshold, it is determined that there is no vehicle in the parking space.
[0138] A parking space status detection device provided in an embodiment of the present application can significantly reduce the power consumption of a geomagnetic device while ensuring that the geomagnetic device accurately detects whether a vehicle exists in a parking space.
[0139] Reference Figure 4 As shown, an electronic device 400 provided in an embodiment of the present application includes: a processor 401, a memory 402 and a bus, wherein the memory 402 stores machine-readable instructions executable by the processor 401. When the electronic device is running, the processor 401 communicates with the memory 402 through the bus, and the processor 401 executes the machine-readable instructions to perform the steps of the method for detecting the parking space status as described above.
[0140] Specifically, the memory 402 and the processor 401 can be general-purpose memories and processors, which are not specifically limited here. When the processor 401 runs the computer program stored in the memory 402, the parking space status detection method can be executed.
[0141] Corresponding to the above-mentioned method for detecting the parking space status, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for detecting the parking space status are executed.
[0142] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, system and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0143] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0145] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0146] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A parking space status detection method, characterized in that: Applied to geomagnetic equipment, the geomagnetic equipment is arranged on a parking space, the geomagnetic equipment comprises: a geomagnetic sensor, a photosensitive sensor, a millimeter wave radar, and a ground sensing coil; the method comprises: At every preset time interval, the geomagnetic sensor is used to detect the geomagnetic field strength of the parking space, and the light intensity received by the geomagnetic device is detected by the photosensitive sensor; If the absolute value of the difference in geomagnetic field intensity is greater than a preset magnetic field intensity variation threshold, and / or the absolute value of the illumination intensity difference is greater than a preset illumination variation threshold, the millimeter-wave radar is turned on, and the parking space status of the parking space is detected by the millimeter-wave radar, wherein the millimeter-wave radar enters sleep mode after the detection is completed, the geomagnetic field intensity difference is the difference between the latest geomagnetic field intensity and the latest geomagnetic field intensity floating base value, and the initial value of the geomagnetic field intensity floating base value is a preset value. Whenever the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, the latest geomagnetic field intensity floating base value is updated to the latest geomagnetic field intensity, the illumination intensity difference is the difference between the latest illumination intensity and the second latest illumination intensity, the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, indicating that the parking space status of the parking space may have changed, the absolute value of the illumination intensity difference is greater than the illumination variation threshold, indicating that the parking space status of the parking space may have changed, and the parking space status includes: with a car, without a car, covered by rain, and covered by snow; If the parking space is covered by rain or snow, the ground sensor coil is turned on to further detect whether there is a vehicle in the parking space, wherein the ground sensor coil enters sleep mode after the detection is completed; Detecting the parking space status of the parking space by using the millimeter wave radar includes: Transmitting a continuously frequency-modulated electromagnetic wave of a preset duration above the parking space through the millimeter-wave radar, so as to receive a reflected wave of the electromagnetic wave through the millimeter-wave radar, wherein the preset duration is less than the time interval; Based on the frequency difference between the frequency of the reflected wave of the electromagnetic wave and the frequency of the electromagnetic wave at each target moment, outputting a target frequency difference waveform curve between the reflected wave of the electromagnetic wave and the electromagnetic wave, wherein the target moment is a moment within a common duration of the reflected wave of the electromagnetic wave and the electromagnetic wave; Determining a parking space state of the parking space based on the target difference frequency waveform curve; Determining the parking space state of the parking space based on the target difference frequency waveform curve includes: Calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve; If the first similarity is the largest among all target similarities and the first similarity is greater than a preset similarity threshold, it is determined that the parking space state of the parking space is empty, wherein the target similarity includes: the first similarity, the second similarity, and the third similarity; If the second similarity is the largest among all target similarities and the second similarity is greater than the similarity threshold, determining that the parking space state of the parking space is rain covered; If the third similarity is the largest among all target similarities and the third similarity is greater than the similarity threshold, determining that the parking space state is snow-covered; If each of the target similarities is less than the similarity threshold, windowing the target difference frequency waveform curve to obtain a windowed difference frequency waveform curve; Performing a fast Fourier transform on the windowed difference frequency waveform curve to obtain a target spectrum; If there is a target peak point among the peak points of the target spectrum whose abscissa value is less than the preset abscissa value and whose ordinate value is greater than the preset ordinate value, the parking space status of the parking space is determined to be occupied; otherwise, the parking space status of the parking space is determined to be empty.
2. The parking space status detection method according to claim 1, characterized in that: Before calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve, the method further includes: Determine whether there are m continuous target points in the target difference frequency waveform curve and whether the ratio of the number of the target points to the number of all points in the target difference frequency waveform curve is greater than a preset threshold, wherein the target point is a point in the target difference frequency waveform curve where the frequency difference is 0, and m is a preset positive integer; If yes, determining that the parking space state of the parking space is rain covered; If not, the step of calculating a first similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve without a vehicle, a second similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with rain cover, and a third similarity between the target difference frequency waveform curve and a standard difference frequency waveform curve with snow cover is executed.
3. The parking space status detection method according to claim 1, characterized in that: Further detecting whether there is a vehicle in the parking space by using the ground sensor coil includes: Obtaining the oscillation frequency of the ground sensing coil; If the oscillation frequency of the ground sensor coil is greater than a preset oscillation frequency threshold, it is determined that there is a vehicle in the parking space; If the oscillation frequency of the ground sensor coil is less than or equal to the oscillation frequency threshold, it is determined that there is no vehicle in the parking space.
4. A parking space status detection device, characterized in that: Applied to geomagnetic equipment, the geomagnetic equipment is set on the parking space, the geomagnetic equipment includes: geomagnetic sensor, photosensitive sensor, millimeter wave radar, ground sensing coil; the device includes: A detection module, configured to detect the geomagnetic field strength of the parking space through the geomagnetic sensor at preset time intervals, and to detect the light intensity received by the geomagnetic device through the photosensitive sensor; A first processing module is used for turning on the millimeter-wave radar if the absolute value of the geomagnetic field intensity difference is greater than a preset magnetic field intensity variation threshold, and / or the absolute value of the illumination intensity difference is greater than a preset illumination variation threshold, and detecting the parking space status of the parking space through the millimeter-wave radar, wherein the millimeter-wave radar enters sleep mode after the detection is completed, the geomagnetic field intensity difference is the difference between the latest geomagnetic field intensity and the latest geomagnetic field intensity floating base value, the initial value of the geomagnetic field intensity floating base value is a preset value, whenever the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, the latest geomagnetic field intensity floating base value is updated to the latest geomagnetic field intensity, the illumination intensity difference is the difference between the latest illumination intensity and the second latest illumination intensity, the absolute value of the geomagnetic field intensity difference is greater than the magnetic field intensity variation threshold, indicating that the parking space status of the parking space may have changed, the absolute value of the illumination intensity difference is greater than the illumination variation threshold, indicating that the parking space status of the parking space may have changed, and the parking space status includes: with a car, without a car, covered by rain, and covered by snow; A second processing module is used for turning on the ground sensing coil if the parking space is covered by rain or snow, and further detecting whether there is a vehicle in the parking space through the ground sensing coil, wherein the ground sensing coil enters sleep mode after the detection is completed; When the first processing module detects the parking space status of the parking space through the millimeter wave radar, it is specifically used to: Transmitting a continuously frequency-modulated electromagnetic wave of a preset duration above the parking space through the millimeter-wave radar, so as to receive a reflected wave of the electromagnetic wave through the millimeter-wave radar, wherein the preset duration is less than the time interval; Based on the frequency difference between the frequency of the reflected wave of the electromagnetic wave and the frequency of the electromagnetic wave at each target moment, outputting a target frequency difference waveform curve between the reflected wave of the electromagnetic wave and the electromagnetic wave, wherein the target moment is a moment within a common duration of the reflected wave of the electromagnetic wave and the electromagnetic wave; Determining a parking space state of the parking space based on the target difference frequency waveform curve; When determining the parking space state of the parking space based on the target difference frequency waveform curve, the first processing module is specifically used to: Calculating a first similarity between the target difference frequency waveform curve and a vehicle-free standard difference frequency waveform curve, a second similarity between the target difference frequency waveform curve and a rain cover standard difference frequency waveform curve, and a third similarity between the target difference frequency waveform curve and a snow cover standard difference frequency waveform curve; If the first similarity is the largest among all target similarities and the first similarity is greater than a preset similarity threshold, it is determined that the parking space state of the parking space is empty, wherein the target similarity includes: the first similarity, the second similarity, and the third similarity; If the second similarity is the largest among all target similarities and the second similarity is greater than the similarity threshold, determining that the parking space state of the parking space is rain covered; If the third similarity is the largest among all target similarities and the third similarity is greater than the similarity threshold, determining that the parking space state is snow-covered; If each of the target similarities is less than the similarity threshold, windowing the target difference frequency waveform curve to obtain a windowed difference frequency waveform curve; Performing a fast Fourier transform on the windowed difference frequency waveform curve to obtain a target spectrum; If there is a target peak point among the peak points of the target spectrum whose abscissa value is less than the preset abscissa value and whose ordinate value is greater than the preset ordinate value, the parking space status of the parking space is determined to be occupied; otherwise, the parking space status of the parking space is determined to be empty.
5. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the parking space status detection method as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the parking space status detection method according to any one of claims 1 to 3 are executed.
