CN111341116B - Geomagnetic parking space detection method - Google Patents

Geomagnetic parking space detection method Download PDF

Info

Publication number
CN111341116B
CN111341116B CN202010150108.4A CN202010150108A CN111341116B CN 111341116 B CN111341116 B CN 111341116B CN 202010150108 A CN202010150108 A CN 202010150108A CN 111341116 B CN111341116 B CN 111341116B
Authority
CN
China
Prior art keywords
state
value
magnetic field
baseline
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010150108.4A
Other languages
Chinese (zh)
Other versions
CN111341116A (en
Inventor
章雪挺
李崇贝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Deqing Dark Blue Environmental Technology Co ltd
Original Assignee
Hangzhou Dianzi University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN202010150108.4A priority Critical patent/CN111341116B/en
Publication of CN111341116A publication Critical patent/CN111341116A/en
Application granted granted Critical
Publication of CN111341116B publication Critical patent/CN111341116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/042Detecting movement of traffic to be counted or controlled using inductive or magnetic detectors
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas
    • G08G1/145Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)
  • Measuring Magnetic Variables (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The invention discloses a geomagnetic parking space detection method, which comprises the following steps of: collecting geomagnetic field data of the current parking space through a geomagnetic detection node; smoothing the acquired geomagnetic field data by using mean filtering; the baseline value of the current environment is obtained by a double-baseline tracking method, and errors caused by single-baseline tracking can be eliminated while environmental magnetic field changes are tracked; and judging whether the vehicle exists or not by combining the algorithm of multi-state machine detection. The method avoids errors introduced during single-baseline tracking, and improves the accuracy of geomagnetic parking space detection through more accurate baseline values.

Description

Geomagnetic parking space detection method
Technical Field
The invention belongs to the field of automatic detection, and relates to a geomagnetic parking space detection method.
Background
Since twenty-first century, the quantity of motor vehicles in China continuously shows a rapid growth state, and the quantity of parking spaces is far from keeping pace with the increment of automobiles. Because the number of parking spaces is seriously insufficient, the problems of occupying the parking spaces, occupying public lanes and the like are caused, and serious pressure is brought to urban traffic, so that the establishment of a perfect parking system is particularly important at present. Wherein, the detection node is the key of the parking system. There are many vehicle detectors in the past, such as ultrasonic wave, microwave, infrared ray, video, etc., but because these detectors have the difficult problem of installation and later maintenance, with high costs, easily receive environmental impact scheduling problem, can't generally be applicable to the outdoor parking area that distributes scattered and receive the environmental constraint.
Compared with the scheme, the geomagnetic detection parking place has the most development potential. The cost is low, the installation and maintenance are easy, the power consumption is low, and the long-term work can be realized. The more mainstream detection method is a self-adaptive baseline parking space detection algorithm, a baseline tracks the environmental magnetic field quantity, and the existence of the vehicle is determined by comparing the detected variable quantity with a set threshold value.
However, long-term observation shows that sometimes the vehicle is driven out after being parked for a long time, and the parking space state is not changed, which directly causes the system to generate false alarm, influences the parking space utilization rate and brings inconvenience to the driver.
Disclosure of Invention
In order to solve the problems, the technical scheme of the invention is a geomagnetic parking space detection method, which comprises the following steps of:
s10, placing a geomagnetic detection node at the center of the parking space, and acquiring the current geomagnetic field value to obtain three-axis data x (t), y (t), z (t) of the detection node;
s20, smoothing the acquired data on the x axis of the geomagnetic field by using mean value filtering to remove data burrs;
s30, obtaining a baseline value X of the first current parking space magnetic field by using a baseline tracking method according to the obtained filtering valuebase(t) to adapt to a changing ambient magnetic field;
s40, obtaining a baseline value X delayed by three seconds according to the obtained baseline valuebase(t-3) as XdbaseTracking, as a second baseline, changes in the ambient magnetic field;
s50, repeating S20-S40 to obtain two base lines Y in the Y-axis directionbase,YdbaseAnd two base lines Z in the Z-axis directionbase,Zdbase
And S60, judging whether the vehicle exists or not according to the multi-state machine detection method.
Preferably, the mean filtering in S20 is obtained by equation (1):
Figure BDA0002402137710000021
wherein, Xs(t) is the mean filtered signal, x (t) is the magnetic field value collected by the node, and N is the window length of the mean filtering.
Preferably, in S30, the baseline value of the baseline tracking is obtained by equation (2):
Figure BDA0002402137710000022
wherein, Xbase(t) is a baseline value of the earth magnetic field in the x-axis direction of the sensor node, and α is a weighting coefficient.
Preferably, in S60, the multi-state machine detection method includes six states:
s1 is in an empty state, the baseline value is updated, the total variation M of the magnetic field of the current parking space is calculated and obtained by the formula (3), and when the total variation M of the magnetic field is larger than the set threshold THR1, the operation goes to S2;
Figure BDA0002402137710000023
s2 is the first vehicle transition state, the baseline is completely stopped updating, and the total magnetic field variation is calculated by equation (4);
Figure BDA0002402137710000031
meanwhile, the counter cnTS2 starts counting, and if the count value of the cnTS2 exceeds the preset value Nav1, the state of S5 is entered;
if M < THR1 appears, go to S3;
s3 is the second vehicle-in transition state, the counter cntS3 starts counting, if M is larger than or equal to THR1, the state returns to S2;
if the count value of the cntS3 exceeds the preset value Nav2, returning to the S1 state;
s5 shows that the vehicle is in a state, when the total magnetic field variation M is smaller than the set threshold THR2, the process goes to S6;
s6 is the first non-vehicle transition state, the counter cntS6 starts counting, if M is larger than or equal to THR2, the state is entered into S4;
if the count value of the cntS3 exceeds the preset value Ndp1, the state returns to the S1 state;
s4 is the second no-vehicle transition state, the counter cntS4 starts counting, if M < THR2 appears, the state returns to S6;
if the count value of cntS4 exceeds the preset value Ndp2, the state of S5 is entered.
Preferably, the geomagnetic detection node in S10 adopts a sensor HMC5883L, and the acquisition frequency is 5 Hz.
Preferably, the window length N of the mean filtering in S20 is 20.
Preferably, the weighting coefficient α in S30 is 0.95.
Preferably, the set thresholds THR1, THR2, Nav1, Nva2, Ndp1 and Ndp2 in S60 are respectively 3 μ T, 4, 4, 4 and 4.
The invention has the following beneficial effects: the parking space magnetic field is tracked by using the double baselines, so that the baseline error introduced in the driving process of the vehicle is reduced, the misjudgment of the parking space when the vehicle drives out is caused, meanwhile, the multi-state machine detection algorithm is combined, the accuracy of geomagnetic parking space detection is effectively improved, the utilization rate of limited parking spaces is enhanced, convenience is provided for travelers, and meanwhile, the cost is also saved.
Drawings
Fig. 1 is a flowchart illustrating steps of a geomagnetic parking space detection method according to an embodiment of the present invention;
fig. 2 is a detection state diagram of S60 multi-state machine of the geomagnetic parking space detection method according to an embodiment of the method of the present invention;
fig. 3 is a comparison graph of x-axis data and a baseline in the process of exiting after parking once according to the method for detecting a geomagnetic parking space in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
On the contrary, the invention is intended to cover alternatives, modifications, equivalents and alternatives which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, certain specific details are set forth in order to provide a better understanding of the present invention. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details.
Referring to fig. 1, a flowchart of steps of a geomagnetic parking space detection method according to an embodiment of the present invention includes the following steps:
s10, placing a geomagnetic detection node at the center of the parking space, and acquiring the current geomagnetic field value to obtain three-axis data x (t), y (t), z (t) of the detection node;
s20, smoothing the acquired data on the x axis of the geomagnetic field by using mean value filtering to remove data burrs;
s30, obtaining the first current parking space magnet by using a baseline tracking method according to the obtained filtering valueBase line value X of the fieldbase(t) to adapt to a changing ambient magnetic field;
s40, obtaining a baseline value X delayed by three seconds according to the obtained baseline valuebase(t-3) as XdbaseTracking, as a second baseline, changes in the ambient magnetic field;
s50, repeating S20-S40 to obtain two base lines Y in the Y-axis directionbase,YdbaseAnd two base lines Z in the Z-axis directionbase,Zdbase
And S60, judging whether the vehicle exists or not according to the multi-state machine detection method.
The average filtering in S20 is obtained by equation (1):
Figure BDA0002402137710000051
wherein, Xs(t) is the mean filtered signal, x (t) is the magnetic field value collected by the node, and N is the window length of the mean filtering.
In S30, the baseline value of the baseline tracking is obtained by equation (2):
Figure BDA0002402137710000052
wherein, Xbase(t) is a baseline value of the earth magnetic field in the x-axis direction of the sensor node, and α is a weighting coefficient.
Referring to fig. 2, in S60, the multi-state machine detection method includes six states:
s1 is in an empty state, the baseline value is updated, the total variation M of the magnetic field of the current parking space is calculated and obtained by the formula (3), and when the total variation M of the magnetic field is larger than the set threshold THR1, the operation goes to S2;
Figure BDA0002402137710000053
s2 is the first vehicle transition state, the baseline is completely stopped updating, and the total magnetic field variation is calculated by equation (4);
Figure BDA0002402137710000054
meanwhile, the counter cnTS2 starts counting, and if the count value of the cnTS2 exceeds the preset value Nav1, the state of S5 is entered;
if M < THR1 appears, go to S3;
s3 is the second vehicle-in transition state, the counter cntS3 starts counting, if M is larger than or equal to THR1, the state returns to S2;
if the count value of the cntS3 exceeds the preset value Nav2, returning to the S1 state;
s5 shows that the vehicle is in a state, when the total magnetic field variation M is smaller than the set threshold THR2, the process goes to S6;
s6 is the first non-vehicle transition state, the counter cntS6 starts counting, if M is larger than or equal to THR2, the state is entered into S4;
if the count value of the cntS3 exceeds the preset value Ndp1, the state returns to the S1 state;
s4 is the second no-vehicle transition state, the counter cntS4 starts counting, if M < THR2 appears, the state returns to S6;
if the count value of cntS4 exceeds the preset value Ndp2, the state of S5 is entered.
In a specific embodiment, the geomagnetic detection node in S10 adopts a sensor HMC5883L, and the acquisition frequency is 5 Hz.
The window length N of the mean filtering in S20 is 20.
The weighting coefficient α in S30 is 0.95.
The preset values THR1, THR2, Nav1, Nva2, Ndp1 and Ndp2 in S60 are respectively 3 mu T, 4, 4, 4 and 4.
Fig. 3 is a comparison graph of x-axis data and a baseline in the process of exiting after parking once, which shows that when a vehicle is about to enter a parking space, the magnetic field value changes, and a certain error is introduced due to the change in the conventional single baseline tracking method.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A geomagnetic parking space detection method is characterized by comprising the following steps:
s10, placing a geomagnetic detection node at the center of the parking space, and acquiring the current geomagnetic field value to obtain three-axis data x (t), y (t), z (t) of the detection node;
s20, smoothing the acquired data on the x axis of the geomagnetic field by using mean value filtering to remove data burrs;
s30, obtaining a baseline value X of the first current parking space magnetic field by using a baseline tracking method according to the obtained filtering valuebase(t) to adapt to a changing ambient magnetic field;
s40, obtaining a baseline value X delayed by three seconds according to the obtained baseline valuebase(t-3) as XdbaseTracking, as a second baseline, changes in the ambient magnetic field;
s50, repeating S20-S40 to obtain two base lines Y in the Y-axis directionbase,YdbaseAnd two base lines Z in the Z-axis directionbase,Zdbase
S60, judging whether the vehicle exists or not according to the multi-state machine detection method;
in S60, the multi-state machine detection method includes six states:
s1 is in an empty state, the baseline value is updated, the total variation M of the magnetic field of the current parking space is calculated and obtained by the formula (3), and when the total variation M of the magnetic field is larger than the set threshold THR1, the operation goes to S2;
Figure FDA0002750806760000011
s2 is the first vehicle transition state, the baseline is completely stopped updating, and the total magnetic field variation is calculated by equation (4);
Figure FDA0002750806760000012
meanwhile, the counter cnTS2 starts counting, and if the count value of the cnTS2 exceeds the preset value Nav1, the state of S5 is entered;
if M < THR1 appears, go to S3;
s3 is the second vehicle-in transition state, the counter cntS3 starts counting, if M is larger than or equal to THR1, the state returns to S2;
if the count value of the cntS3 exceeds the preset value Nav2, returning to the S1 state;
s5 shows that the vehicle is in a state, when the total magnetic field variation M is smaller than the set threshold THR2, the process goes to S6;
s6 is the first non-vehicle transition state, the counter cntS6 starts counting, if M is larger than or equal to THR2, the state is entered into S4;
if the count value of the cntS3 exceeds the preset value Ndp1, the state returns to the S1 state;
s4 is the second no-vehicle transition state, the counter cntS4 starts counting, if M < THR2 appears, the state returns to S6;
if the count value of cntS4 exceeds the preset value Ndp2, the state of S5 is entered.
2. The method of claim 1, wherein the mean filtering in S20 is obtained by equation (1):
Figure FDA0002750806760000021
wherein, Xs(t) is the mean filtered signal, x (t) is the magnetic field value collected by the node, and N is the window length of the mean filtering.
3. The method according to claim 1, wherein in the S30, the baseline value of the baseline tracking is obtained by equation (2):
Figure FDA0002750806760000022
wherein, Xbase(t) is a baseline value of the earth magnetic field in the x-axis direction of the sensor node, and α is a weighting coefficient.
4. The method according to claim 1, wherein in S60, the multi-state machine detection method comprises six states:
s1 is in an empty state, the baseline value is updated, the total variation M of the magnetic field of the current parking space is calculated and obtained by the formula (3), and when the total variation M of the magnetic field is larger than the set threshold THR1, the operation goes to S2;
Figure FDA0002750806760000031
s2 is the first vehicle transition state, the baseline is completely stopped updating, and the total magnetic field variation is calculated by equation (4);
Figure FDA0002750806760000032
meanwhile, the counter cnTS2 starts counting, and if the count value of the cnTS2 exceeds the preset value Nav1, the state of S5 is entered;
if M < THR1 appears, go to S3;
s3 is the second vehicle-in transition state, the counter cntS3 starts counting, if M is larger than or equal to THR1, the state returns to S2;
if the count value of the cntS3 exceeds the preset value Nav2, returning to the S1 state;
s5 shows that the vehicle is in a state, when the total magnetic field variation M is smaller than the set threshold THR2, the process goes to S6;
s6 is the first non-vehicle transition state, the counter cntS6 starts counting, if M is larger than or equal to THR2, the state is entered into S4;
if the count value of the cntS3 exceeds the preset value Ndp1, the state returns to the S1 state;
s4 is the second no-vehicle transition state, the counter cntS4 starts counting, if M < THR2 appears, the state returns to S6;
if the count value of cntS4 exceeds the preset value Ndp2, the state of S5 is entered.
5. The method as claimed in claim 1, wherein the geomagnetic detection node in S10 employs a sensor HMC5883L, and the acquisition frequency is 5 Hz.
6. The method according to claim 2, wherein the window length N of the mean filtering in S20 is 20.
7. The method according to claim 3, wherein the weighting factor α in S30 is 0.95.
8. The method as claimed in claim 4, wherein the set threshold values THR1, THR2, Nav1, Nva2, Ndp1 and Ndp2 in S60 are 3 μ T, 3 μ T, 4, 4, 4 and 4 respectively.
CN202010150108.4A 2020-03-06 2020-03-06 Geomagnetic parking space detection method Active CN111341116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010150108.4A CN111341116B (en) 2020-03-06 2020-03-06 Geomagnetic parking space detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010150108.4A CN111341116B (en) 2020-03-06 2020-03-06 Geomagnetic parking space detection method

Publications (2)

Publication Number Publication Date
CN111341116A CN111341116A (en) 2020-06-26
CN111341116B true CN111341116B (en) 2021-01-01

Family

ID=71184020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010150108.4A Active CN111341116B (en) 2020-03-06 2020-03-06 Geomagnetic parking space detection method

Country Status (1)

Country Link
CN (1) CN111341116B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115273490B (en) * 2021-04-30 2023-09-19 阿尔卑斯通信器件技术(上海)有限公司 Parking space detection device and parking space detection method
CN113689711B (en) * 2021-08-31 2023-06-02 武汉拓宝科技股份有限公司 Geomagnetic parking detection method and geomagnetic parking detection system
CN113971887A (en) * 2021-10-29 2022-01-25 深圳市顺易通信息科技有限公司 Processing method and processing device for judging whether vehicles enter or exit parking lot

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103794058B (en) * 2014-03-05 2016-04-13 武汉慧联无限科技有限公司 Based on vehicle checking method and the device of state machine
CN107945570B (en) * 2017-12-18 2020-05-26 浙江工业大学 Geomagnetic parking space detection optimization method
DE102017223696A1 (en) * 2017-12-22 2019-06-27 Robert Bosch Gmbh Method for calibrating a device for determining an occupancy state of a parking space of a parking space
US10847028B2 (en) * 2018-08-01 2020-11-24 Parkifi, Inc. Parking sensor magnetometer calibration
CN109272772B (en) * 2018-08-20 2020-07-03 中国科学院深圳先进技术研究院 Parking lot parking space detection method and device and terminal equipment

Also Published As

Publication number Publication date
CN111341116A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN111341116B (en) Geomagnetic parking space detection method
CN101923782B (en) Method for acquiring transportation traffic speed based on geomagnetic sensing technology
CN105006170B (en) Parking stall detection system and method based on doppler radar and terrestrial magnetism detection
CN109920257B (en) Internet intelligent vehicle management method
CN107919017B (en) A kind of earth magnetism parking space detection method
CN103123743A (en) Vehicle counting system and method based on wireless sensor network
CN105631414A (en) Vehicle-borne multi-obstacle classification device and method based on Bayes classifier
CN101908250A (en) Full RFID (Radio Frequency Identification Device) license plate based parkinglay-by intelligent monitoring system and method
CN103593984A (en) Environmentally adaptive traffic flow detection method based on terrestrial magnetism
Liu et al. The calculation method of road travel time based on license plate recognition technology
CN201936359U (en) Automatic motorcycle type identification system special for card dispenser at expressway entrance
CN105547322A (en) Method for computing vehicle travel mileage with satellite positioning data
CN107730916B (en) A kind of earth magnetism parking space detection method
CN102930743A (en) Recording method and system for associated information of parking space with parking car
CN106548659A (en) To anti-collision warning method and device before a kind of
CN104299417A (en) Vehicle identification method based on waveform detection
CN102722987A (en) Roadside parking space detection method
CN105206063A (en) Traffic information monitoring signal acquiring device based on GMI sensors and detecting method
CN110379179A (en) Improve the system and method for earth magnetism vehicle checker Detection accuracy under complex environment
CN111899527A (en) Composite vehicle detection algorithm
CN205680289U (en) A kind of parking detecting system
CN109284731A (en) A kind of parking stall kind identification method of the inclined parking stall for automated parking system
CN108437837A (en) The management system and method for charging pile charging parking stall
CN106297373B (en) Parking lot vehicle detection method based on cross-correlation and geomagnetic sensors
CN108646044B (en) Bumpy road surface detection method based on rotating speed of window motor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231215

Address after: 313000 east of floor 1, building 1, No. 926, Changhong East Street, KangQian street, Deqing County, Huzhou City, Zhejiang Province

Patentee after: Deqing dark blue Environmental Technology Co.,Ltd.

Address before: 310018 No.1, No.2 street, Xiasha Higher Education Park, Hangzhou City, Zhejiang Province

Patentee before: HANGZHOU DIANZI University

TR01 Transfer of patent right