CN106781664B - Method for detecting parking stalls and device - Google Patents

Method for detecting parking stalls and device Download PDF

Info

Publication number
CN106781664B
CN106781664B CN201611222552.2A CN201611222552A CN106781664B CN 106781664 B CN106781664 B CN 106781664B CN 201611222552 A CN201611222552 A CN 201611222552A CN 106781664 B CN106781664 B CN 106781664B
Authority
CN
China
Prior art keywords
value
parking stall
ground magnetic
difference
infrared distance
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
CN201611222552.2A
Other languages
Chinese (zh)
Other versions
CN106781664A (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.)
Chengdu Templar Digital Technology Co Ltd
Original Assignee
Chengdu Templar Digital Technology Co Ltd
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 Chengdu Templar Digital Technology Co Ltd filed Critical Chengdu Templar Digital Technology Co Ltd
Priority to CN201611222552.2A priority Critical patent/CN106781664B/en
Publication of CN106781664A publication Critical patent/CN106781664A/en
Priority to TW106139148A priority patent/TWI660332B/en
Application granted granted Critical
Publication of CN106781664B publication Critical patent/CN106781664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/04Detecting movement of traffic to be counted or controlled using optical or ultrasonic detectors
    • 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

Abstract

The application is about method for detecting parking stalls and device, this method comprises: utilizing the ground magnetic value on the geomagnetic sensor cycle detection parking stall being arranged on parking stall;Judge whether the situation of change for the ground magnetic value that continuous several times detect meets preset condition;If the variation for the ground magnetic value that continuous several times detect meets preset condition, the infrared distance value on the infrared distance sensor detection parking stall on setting parking stall between object and infrared distance sensor is utilized;The situation of change of the ground magnetic value detected using continuous several times and infrared distance value determine the parking space state of parking stall.This method is in parking stall measure, not merely with the ground magnetic value on geomagnetic sensors detection parking stall, and using the infrared distance value of object on infrared distance sensor measurement parking stall, using two variables, so that testing result accuracy improves.In addition, being determined after carrying out synthesis for the two variables to parking space state, testing result accuracy can be made to greatly improve, avoid the case where failing to report and reporting by mistake.

Description

Method for detecting parking stalls and device
Technical field
This application involves parking detection technique field more particularly to a kind of method for detecting parking stalls and device.
Background technique
With the raising of people 's material life level, city vehicle quantity is constantly increased sharply, this just brings many parking lots Parking stall management, the problem for finding empty parking stall difficulty.
Parking stall is monitored in order to realize, existing parking stall monitoring device is generally by geomagnetic sensor, microprocessor, nothing The composition such as line communication module and battery, is mounted in a plastic casing.This parking stall monitoring device is generally mounted by earth's surface Or buried mode is mounted on the ground of parking stall region.
Stall testing apparatus generally uses low-power consumption mode, periodically starting geomagnetic sensor, detection ground at work The variation of magnetic is to judge that parking space state changes, after being changed by geomagnetic sensors detection to parking space information by wireless communication Module transmits data in wireless receiver.This to use single geomagnetic sensor, the precision of parking stall detection is low, usually occurs It can't detect a small number of vehicles, alternatively, having judged vehicle by accident because of magnetic interference.
Summary of the invention
A kind of method for detecting parking stalls and device are provided in the embodiment of the present application, to solve parking stall measure in the prior art Device there are the problem of.
In order to solve the above-mentioned technical problem, the following technical solution of the embodiment of the present application application:
A kind of method for detecting parking stalls, comprising:
Utilize the ground magnetic value on the geomagnetic sensor cycle detection parking stall being arranged on parking stall;
Judge whether the situation of change for the ground magnetic value that continuous several times detect meets preset condition;
If the variation for the ground magnetic value that continuous several times detect meets preset condition, passed using the infrared distance on setting parking stall Sensor detects the infrared distance value on parking stall between object and infrared distance sensor;
The situation of change of the ground magnetic value detected using the continuous several times and the infrared distance value determine the vehicle The parking space state of position.
Optionally, the parking space state includes: that parking stall is occupied and parking stall is unoccupied.
Optionally, the method also includes:
The parking space state of the parking stall is sent to wireless receiver;
It controls the geomagnetic sensor and the infrared distance sensor enters low-power consumption mode.
Optionally, whether the situation of change for judging ground magnetic value that continuous several times detect meets preset condition, comprising:
Whether the absolute value of magnetic value with preceding one-time detection the earth magnetism value difference value of magnetic value is less than with judging current one-time detection First ground magnetic value threshold value;
If earth magnetism value difference value magnetic value threshold value less than the first, by pre-determined stability, count is incremented, and the pre-determined stability counts first Initial value is 0;
When the value that the pre-determined stability counts after continuous several times detection is greater than default count threshold, judge that current earth magnetism is steady Whether the deviation between definite value and last time earth magnetism stationary value is greater than predetermined deviation value;
If the deviation is greater than predetermined deviation value, definitely the situation of change of magnetic value meets preset condition.
Optionally, the situation of change of the ground magnetic value detected using the continuous several times and the infrared distance value Determine the parking space state of the parking stall, comprising:
Situation of change using described ground magnetic value is by tabling look-up or curve matching obtains earth magnetism vehicle probability;Using described red Outer distance value, which is tabled look-up, or curve matching obtains infrared has vehicle probability;
According to weighted value to the earth magnetism have vehicle probability and it is infrared there is vehicle probability to be weighted, averagely had vehicle general Rate;
Judge whether previous secondary parking space state is that parking stall is occupied;
If previous secondary parking space state is that parking stall is occupied, judge when the ground magnetic value and parking stall that detect for the last time are occupied Whether the difference of ground magnetic value is greater than the first ground magnetic value threshold value, and judge the infrared distance value and parking stall it is occupied when it is infrared away from Whether the difference from value is greater than first distance threshold value;
If the difference of described ground magnetic value magnetic value threshold value greater than the first, and the difference of the infrared distance value be greater than first away from From threshold value, averagely there is vehicle probability to subtract to be preset with vehicle probability correction value, have vehicle probability as target by described;If described ground magnetic value Difference no more than the first, magnetic value threshold value and/or the difference of the infrared distance value are greater than first distance threshold value, described will put down There is vehicle probability plus vehicle probability correction value is preset with, has vehicle probability as target;
If previous secondary parking space state is that parking stall is unoccupied, when judging ground magnetic value and the occupied parking stall that last time detects The difference of ground magnetic value whether be greater than the second ground magnetic value threshold value, and judge that the infrared distance value and parking stall are infrared when occupied Whether the difference of distance value is greater than second distance threshold value;
If the difference of described ground magnetic value magnetic value threshold value greater than the second, and the difference of the infrared distance value be greater than second away from From threshold value, averagely there is vehicle probability increase to be preset with vehicle probability correction value for described, have vehicle probability as target;If described ground magnetic value Difference no more than the second, magnetic value threshold value and/or the difference of the infrared distance value are greater than second distance threshold value, described will put down There is vehicle probability to subtract and be preset with vehicle probability correction value, has vehicle probability as target;
Judging the target has whether vehicle probability is greater than predetermined probabilities value;
If the target has vehicle probability to be greater than predetermined probabilities value, determine that the parking space state is that parking stall is occupied;Otherwise, really The fixed parking space state is that parking stall is unoccupied.
A kind of stall testing apparatus, comprising:
Ground magnetic value detection unit, for utilizing the earth magnetism on the geomagnetic sensor cycle detection parking stall being arranged on parking stall Value;
Ground magnetic value judging unit, for judging whether the situation of change of ground magnetic value that continuous several times detect meets default item Part;
When the variation of infrared distance value detection unit, the ground magnetic value for detecting when continuous several times meets preset condition, Utilize the infrared distance value on the infrared distance sensor detection parking stall on setting parking stall between object and infrared distance sensor;
Parking space state determination unit, the situation of change of the ground magnetic value for being detected using the continuous several times and described Infrared distance value determines the parking space state of the parking stall.
Optionally, the parking space state includes: that parking stall is occupied and parking stall is unoccupied.
Optionally, described device further include:
Transmission unit, for the parking space state of the parking stall to be sent to wireless receiver;
Low power consumption control unit enters low function for controlling the geomagnetic sensor and the infrared distance sensor Consumption mode.
Optionally, described ground magnetic value change unit, comprising:
First ground magnetic value judgment sub-unit, for judging current one-time detection magnetic value and preceding one-time detection the ground of magnetic value The absolute value of magnetic value difference whether less than the first magnetic value threshold value;
Count sub-element, if for earth magnetism value difference value less than the first magnetic value threshold value, by pre-determined stability, count is incremented, described The initial value that pre-determined stability counts is 0;
Second ground magnetic value judgment sub-unit, the value for the pre-determined stability counting described after continuous several times detection are greater than default When count threshold, judge whether the deviation between current earth magnetism stationary value and last time earth magnetism stationary value is greater than predetermined deviation value;
Determine subelement, if being greater than predetermined deviation value for the deviation, definitely the situation of change of magnetic value meets default Condition.
Optionally, the parking space state determination unit, comprising:
It is fitted subelement, passes through for the situation of change using described ground magnetic value and tables look-up or curve matching obtains earth magnetism vehicle Probability;It is tabled look-up using the infrared distance value or curve matching obtains infrared has vehicle probability;
Ranking operation subelement, for having vehicle probability to the earth magnetism according to weighted value and infrared thering is vehicle probability to be weighted Operation is averagely had vehicle probability;
State judgment sub-unit, for judging whether previous secondary parking space state is that parking stall is occupied;
First comprehensive descision subelement judges that last time detects if being that parking stall is occupied for previous secondary parking space state Ground magnetic value and the difference of ground magnetic value when occupied parking stall whether be greater than the first ground magnetic value threshold value, and judge the infrared distance Whether the difference of infrared distance value when value and parking stall are occupied is greater than first distance threshold value;
First determine the probability subelement, if the difference for described ground magnetic value greater than the first magnetic value threshold value, and it is described red The difference of outer distance value is greater than first distance threshold value, averagely has vehicle probability to subtract to be preset with vehicle probability correction value by described, as Target has vehicle probability;If the difference of described ground magnetic value magnetic value threshold value and/or difference of the infrared distance value no more than the first Greater than first distance threshold value, averagely there is vehicle probability plus vehicle probability correction value is preset with for described, have vehicle probability as target;
Second comprehensive descision subelement judges that last time is examined if being that parking stall is unoccupied for previous secondary parking space state Whether the difference of the ground magnetic value when ground magnetic value of survey and parking stall are occupied is greater than the second ground magnetic value threshold value, and judge it is described it is infrared away from Whether the difference of infrared distance value when occupied from value and parking stall is greater than second distance threshold value;
Second determine the probability subelement, if the difference for described ground magnetic value greater than the second magnetic value threshold value, and it is described red The difference of outer distance value is greater than second distance threshold value, averagely has vehicle probability increase to be preset with vehicle probability correction value for described, as Target has vehicle probability;If the difference of described ground magnetic value magnetic value threshold value and/or difference of the infrared distance value no more than the second Greater than second distance threshold value, averagely there is vehicle probability to subtract to be preset with vehicle probability correction value, have vehicle probability as target by described;
Probability value judgment sub-unit, for judging that the target has whether vehicle probability is greater than predetermined probabilities value;
Parking stall determines subelement, if having vehicle probability to be greater than predetermined probabilities value for the target, determines the parking space state It is occupied for parking stall;Otherwise, it determines the parking space state is that parking stall is unoccupied.
The technical solution that embodiments herein provides can include the following benefits:
This method provided by the embodiments of the present application, first with the geomagnetic sensor cycle detection parking stall being arranged on parking stall On ground magnetic value;Then judge whether the situation of change for the ground magnetic value that continuous several times detect meets preset condition;If continuous more The variation of the secondary ground magnetic value detected meets preset condition, recycles on the infrared distance sensor detection parking stall on setting parking stall Infrared distance value between object and infrared distance sensor;The variation of the ground magnetic value finally detected using the continuous several times Situation and the infrared distance value determine the parking space state of the parking stall.
This method is when carrying out parking stall measure, not merely with the ground magnetic value on geomagnetic sensors detection parking stall, and utilizes Infrared distance sensor measures the infrared distance value of object on parking stall, using two variables, so that testing result accuracy improves, In addition, this method is not simply to utilize, and carry out after carrying out synthesis to parking space state for ground magnetic value and infrared distance value It determines, equally testing result accuracy can be made to greatly improve, avoid the case where failing to report and reporting by mistake.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of method for detecting parking stalls provided by the embodiments of the present application;
Fig. 2 is a kind of structural schematic diagram of stall testing apparatus provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without making creative work Range.
Fig. 1 is a kind of flow diagram of method for detecting parking stalls provided by the embodiments of the present application.
This method is applied to be equipped on the parking stall of geomagnetic sensor and infrared distance sensor, the effect of geomagnetic sensor It is the ground magnetic value for detecting earth magnetism on parking stall, when there is vehicle to be moved to parking stall or leave parking stall, the earth magnetism of earth magnetism on parking stall Value will generate variation.Geomagnetic sensor can be one or more, and in one embodiment, geomagnetic sensor can be one, And it is mounted on the surface of the center of parking stall;In another embodiment, geomagnetic sensor can be multiple and multiple Geomagnetic sensor is evenly distributed on the surface of parking stall.It is infrared to be vertically installed on parking stall apart from tactility apparatus, for detecting parking stall The distance between vehicle chassis and ground.Infrared distance sensor can have one or more, when there is one, be mounted on parking stall Center be evenly distributed on the surface of parking stall when having multiple.
This method as shown in Figure 1, may comprise steps of.
S101 utilizes the ground magnetic value on the geomagnetic sensor cycle detection parking stall being arranged on parking stall.
When geomagnetic sensor is one, directly using this geomagnetic sensor, magnetic value is measured over the ground;It is more when having It, can be by the earth magnetism after the ground magnetic value result of this multiple geomagnetic sensor synthesis as earth magnetism on parking stall when a geomagnetic sensor Value, comprehensive mode are including but not limited to averaged.
S102, judges whether the situation of change for the ground magnetic value that continuous several times detect meets preset condition.
In the embodiment of the present application, which may comprise steps of:
S201, with judging current one-time detection magnetic value and preceding one-time detection the earth magnetism value difference value of magnetic value absolute value whether The magnetic value threshold value less than the first.
Ground magnetic value when detecting, by the way of cycle detection, so collected ground magnetic value respectively collects every time Ground magnetic value result.When vehicle enters parking stall, the ground magnetic value of earth magnetism on parking stall can be made to reduce, when vehicle leaves parking stall, Meeting is so that the ground magnetic value of earth magnetism increases on parking stall.
If earth magnetism value difference value magnetic value threshold value less than the first, S202, by pre-determined stability, count is incremented.
The effect that pre-determined stability counts is to judge whether ground magnetic value continuously changes, when the ground detected in each period Magnetic value is all larger than the ground magnetic value detected in the previous period, then the value that pre-determined stability counts will continue to increase, that is, It says, pre-determined stability counting is bigger, shows that continuous several times detect that ground magnetic value is stepped up.
In the embodiment of the present application, the initial value that pre-determined stability counts is 0, will after a parking space state detects Pre-determined stability counting is set as initial value 0.
Step S203: whether the value for judging that the pre-determined stability counts after continuous several times detect is greater than default count threshold.
Default count threshold can rule of thumb be set by technical staff, preset count threshold value size with The detection cycle of ground magnetic value has relationship.
When the value that the pre-determined stability counts after continuous several times detection is greater than default count threshold, S204 judges current Whether the deviation between earth magnetism stationary value and last time earth magnetism stationary value is greater than predetermined deviation value;
The ground magnetic value of one-time detection is if △ t before the ground magnetic value of current one-time detection subtracts, then the step is exactly Whether the △ t that detection last time is calculated is more than default ground magnetic value threshold value.Although namely pre-determined stability counting increases to one Determine threshold value, but also needs to judge whether last ground magnetic value changing value is greater than default ground magnetic value threshold value.
If the deviation is greater than predetermined deviation value, S205, definitely the situation of change of magnetic value meets preset condition.
Increase to certain threshold value when pre-determined stability counts, and last ground magnetic value changing value is greater than default ground magnetic value threshold Value shows to judge to have met condition from the angle of ground magnetic value.
If the variation for the ground magnetic value that continuous several times detect meets preset condition, S103 is infrared on parking stall using being arranged Range sensor detects the infrared distance value on parking stall between object and infrared distance sensor.
When infrared distance sensor is one, directly infrared distance value is carried out using this infrared distance sensor Measurement;It, can be comprehensive by the infrared distance value result of this multiple infrared distance sensor when there is multiple infrared distance sensors Afterwards as the infrared distance value detected on parking stall, comprehensive mode is including but not limited to averaged.
S104, the situation of change of the ground magnetic value detected using the continuous several times and the infrared distance value determine institute State the parking space state of parking stall.
In this application, which may comprise steps of:
S301, the situation of change using described ground magnetic value is by tabling look-up or curve matching obtains earth magnetism vehicle probability;It utilizes The infrared distance value, which is tabled look-up, or curve matching obtains infrared has vehicle probability.
In this application, the situation of change of ground magnetic value in a manner of first passing through history test in advance, can be obtained and have vehicle probability Between correspondence table or homologous thread, since different vehicle is different in the variation by parking stall Shangdi magnetic value, herein no longer It illustrates.Similarly, the infrared distance value detected for infrared distance sensor, can also first pass through the side repeatedly tested in advance Formula, obtain infrared distance value with have corresponding table or the homologous thread between vehicle probability.
By taking look-up table as an example, the following table 1 is the mapping table that ground magnetic value and earth magnetism have vehicle probability.
Table 1:
Ground magnetic value (unit wb) Earth magnetism has vehicle probability
0 0%
10 1%
40 10%
120 83%
150 98%
200 99%
300 100%
The following table 2 is infrared distance value and the infrared mapping table for having vehicle probability.
Infrared distance value (unit cm) It is infrared to have vehicle probability
0 100%
10 99%
30 98%
40 80%
65 10%
75 3%
100 1%
110 0%
In this application, there is vehicle probability for P1 with earth magnetism, it is infrared to there is vehicle probability to be illustrated for P2.
S302, according to weighted value to the earth magnetism have vehicle probability and it is infrared there is vehicle probability to be weighted, be averaged There is vehicle probability.
Ground magnetic value variation weighted value corresponding with infrared distance value is different, such as: ground magnetic value changes corresponding weighted value and is M, the corresponding weighted value of infrared distance value are N, then in this step, weighted average method are as follows: averagely have vehicle probability=earth magnetism There is vehicle probability * M+ is infrared to have vehicle probability * N.Such as: averagely there is vehicle probability=earth magnetism to there is vehicle probability * 0.6+ is infrared to have vehicle probability * 0.4。
S303 judges whether previous secondary parking space state is that parking stall is occupied.
Previous secondary parking space state is the obtained result in history calculating process.In initialization, previous secondary parking space state It is defaulted as unoccupied.
If previous secondary parking space state is that parking stall is occupied, S304 judges that the ground magnetic value of last time detection and parking stall are occupied Whether the difference of the ground magnetic value of used time is greater than the first ground magnetic value threshold value, and judges when the infrared distance value and parking stall are occupied Whether the difference of infrared distance value is greater than first distance threshold value.
In this application, the difference of ground magnetic value when △ t1 is ground magnetic value and the occupied parking stall of last time detection, △ T1 magnetic value threshold value for the first.H1 is whether the difference of infrared distance value of the infrared distance value of detection with parking stall when occupied is greater than First distance threshold value
If the difference of described ground magnetic value magnetic value threshold value greater than the first, and the difference of the infrared distance value be greater than first away from From threshold value, S305 averagely has vehicle probability to subtract to be preset with vehicle probability correction value, have vehicle probability as target by described;If described No more than the first, magnetic value threshold value and/or the difference of the infrared distance value are greater than first distance threshold value to the difference of ground magnetic value, S306 averagely has described vehicle probability plus vehicle probability correction value is preset with, has vehicle probability as target;
If previous secondary parking space state is that parking stall is unoccupied, S307, ground magnetic value and parking stall quilt that last time detects are judged Whether the difference of ground magnetic value when occupancy is greater than the second ground magnetic value threshold value, and judge the infrared distance value and parking stall it is occupied when The difference of infrared distance value whether be greater than second distance threshold value;
If the difference of described ground magnetic value magnetic value threshold value greater than the second, and the difference of the infrared distance value be greater than second away from From threshold value, S308 averagely has described vehicle probability increase to be preset with vehicle probability correction value, has vehicle probability as target;If described No more than the second, magnetic value threshold value and/or the difference of the infrared distance value are greater than second distance threshold value to the difference of ground magnetic value, S309 averagely has vehicle probability to subtract to be preset with vehicle probability correction value, have vehicle probability as target by described;
S310 judges that the target has whether vehicle probability is greater than predetermined probabilities value;
If the target has vehicle probability to be greater than predetermined probabilities value, S311 determines that the parking space state is that parking stall is occupied;It is no Then, S312 determines that the parking space state is that parking stall is unoccupied.
In the application other embodiments, this method may also comprise the following steps:.
The parking space state of the parking stall is sent to wireless receiver;
It controls the geomagnetic sensor and the infrared distance sensor enters low-power consumption mode.
In addition, the value that pre-determined stability counts is lasting constant, it is equal to initial value 0, then also entering low-power consumption mode.Or Person, the value that the pre-determined stability counts after continuous several times detection are not more than default count threshold, also enter low-power consumption mode. Alternatively, also entering low-power consumption mode if deviation is not more than predetermined deviation value.
In this application, low-power consumption mode refers to microprocessor, closes unnecessary peripheral circuit, only enables a low function Timer is consumed, about 1 second or wake-up processor after several seconds reenter the circulation of " reading ground magnetic value ".
Geomagnetic sensor is that starting in per second or several second is primary, and geomagnetic sensor triggers work, no item by microprocessor The periodical starting of part.Purpose is to detect the variation of surrounding magnetic field, and the power consumption of geomagnetic sensor is much lower compared with infrared sensor, when Detect that restarting after GEOMAGNETIC CHANGE infrared is a kind of method for reducing power consumption.
The embodiment of the present application also provides a kind of stall testing apparatus, as shown in Fig. 2, being a kind of knot of stall testing apparatus Structure schematic diagram.
A kind of stall testing apparatus may include:
Ground magnetic value detection unit 11, for utilizing the earth magnetism on the geomagnetic sensor cycle detection parking stall being arranged on parking stall Value;
Ground magnetic value judging unit 12, for judging it is default whether the situation of change of ground magnetic value that continuous several times detect meets Condition;
The variation of infrared distance value detection unit 13, the ground magnetic value for detecting when continuous several times meets preset condition When, utilize the infrared distance on the infrared distance sensor detection parking stall on setting parking stall between object and infrared distance sensor Value;
Parking space state determination unit 14, the situation of change of the ground magnetic value for being detected using the continuous several times and institute State the parking space state that infrared distance value determines the parking stall.
In the application one embodiment, the parking space state includes: that parking stall is occupied and parking stall is unoccupied.
In the application one embodiment, described device further include:
Transmission unit, for the parking space state of the parking stall to be sent to wireless receiver;
Low power consumption control unit enters low function for controlling the geomagnetic sensor and the infrared distance sensor Consumption mode.
In the application one embodiment, described ground magnetic value change unit, comprising:
First ground magnetic value judgment sub-unit, for judging current one-time detection magnetic value and preceding one-time detection the ground of magnetic value The absolute value of magnetic value difference whether less than the first magnetic value threshold value;
Count sub-element, if for earth magnetism value difference value less than the first magnetic value threshold value, by pre-determined stability, count is incremented, described The initial value that pre-determined stability counts is 0;
Second ground magnetic value judgment sub-unit, the value for the pre-determined stability counting described after continuous several times detection are greater than default When count threshold, judge whether the deviation between current earth magnetism stationary value and last time earth magnetism stationary value is greater than predetermined deviation value;
Determine subelement, if being greater than predetermined deviation value for the deviation, definitely the situation of change of magnetic value meets default Condition.
In the application one embodiment, the parking space state determination unit, comprising:
It is fitted subelement, passes through for the situation of change using described ground magnetic value and tables look-up or curve matching obtains earth magnetism vehicle Probability;It is tabled look-up using the infrared distance value or curve matching obtains infrared has vehicle probability;
Ranking operation subelement, for having vehicle probability to the earth magnetism according to weighted value and infrared thering is vehicle probability to be weighted Operation is averagely had vehicle probability;
State judgment sub-unit, for judging whether previous secondary parking space state is that parking stall is occupied;
First comprehensive descision subelement judges that last time detects if being that parking stall is occupied for previous secondary parking space state Ground magnetic value and the difference of ground magnetic value when occupied parking stall whether be greater than the first ground magnetic value threshold value, and judge the infrared distance Whether the difference of infrared distance value when value and parking stall are occupied is greater than first distance threshold value;
First determine the probability subelement, if the difference for described ground magnetic value greater than the first magnetic value threshold value, and it is described red The difference of outer distance value is greater than first distance threshold value, averagely has vehicle probability to subtract to be preset with vehicle probability correction value by described, as Target has vehicle probability;If the difference of described ground magnetic value magnetic value threshold value and/or difference of the infrared distance value no more than the first Greater than first distance threshold value, averagely there is vehicle probability plus vehicle probability correction value is preset with for described, have vehicle probability as target;
Second comprehensive descision subelement judges that last time is examined if being that parking stall is unoccupied for previous secondary parking space state Whether the difference of the ground magnetic value when ground magnetic value of survey and parking stall are occupied is greater than the second ground magnetic value threshold value, and judge it is described it is infrared away from Whether the difference of infrared distance value when occupied from value and parking stall is greater than second distance threshold value;
Second determine the probability subelement, if the difference for described ground magnetic value greater than the second magnetic value threshold value, and it is described red The difference of outer distance value is greater than second distance threshold value, averagely has vehicle probability increase to be preset with vehicle probability correction value for described, as Target has vehicle probability;If the difference of described ground magnetic value magnetic value threshold value and/or difference of the infrared distance value no more than the second Greater than second distance threshold value, averagely there is vehicle probability to subtract to be preset with vehicle probability correction value, have vehicle probability as target by described;
Probability value judgment sub-unit, for judging that the target has whether vehicle probability is greater than predetermined probabilities value;
Parking stall determines subelement, if having vehicle probability to be greater than predetermined probabilities value for the target, determines the parking space state It is occupied for parking stall;Otherwise, it determines the parking space state is that parking stall is unoccupied.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
It is understood that the application can be used in numerous general or special purpose computing system environments or configuration.Such as: it is a People's computer, server computer, handheld device or portable device, multicomputer system, are based on micro process at laptop device The system of device, set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including to take up an official post The distributed computing environment etc. of what system or equipment.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only the specific embodiment of the application, is made skilled artisans appreciate that or realizing this Shen Please.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and applied principle and features of novelty phase one herein The widest scope of cause.

Claims (8)

1. a kind of method for detecting parking stalls characterized by comprising
Utilize the ground magnetic value on the geomagnetic sensor cycle detection parking stall being arranged on parking stall;
Judge whether the situation of change for the ground magnetic value that continuous several times detect meets preset condition;
If the variation for the ground magnetic value that continuous several times detect meets preset condition, the infrared Distance-sensing being arranged on parking stall is utilized Device detects the infrared distance value on parking stall between object and infrared distance sensor;
The situation of change of the ground magnetic value detected using the continuous several times and the infrared distance value determine the parking stall Parking space state;
The situation of change of the ground magnetic value detected using the continuous several times and the infrared distance value determine the vehicle The parking space state of position, comprising:
Situation of change using described ground magnetic value is by tabling look-up or curve matching obtains earth magnetism vehicle probability;Using it is described it is infrared away from It tables look-up from value or curve matching obtains infrared has vehicle probability;
According to weighted value to the earth magnetism have vehicle probability and it is infrared there is vehicle probability to be weighted, averagely had vehicle probability;
Judge whether previous secondary parking space state is that parking stall is occupied;
If previous secondary parking space state is that parking stall is occupied, earth magnetism when ground magnetic value and the occupied parking stall that last time detects is judged Whether the difference of value is greater than the first ground magnetic value threshold value, and judges infrared distance value when the infrared distance value and parking stall are occupied Difference whether be greater than first distance threshold value;
If the difference of described ground magnetic value magnetic value threshold value greater than the first, and the difference of the infrared distance value is greater than first distance threshold Value averagely has vehicle probability to subtract to be preset with vehicle probability correction value, have vehicle probability as target by described;If the difference of described ground magnetic value No more than the first, magnetic value threshold value and/or the difference of the infrared distance value are greater than first distance threshold value to value, averagely have described Vehicle probability has vehicle probability as target plus vehicle probability correction value is preset with;
If previous secondary parking space state is that parking stall is unoccupied, ground when ground magnetic value and the occupied parking stall that last time detects is judged Whether the difference of magnetic value is greater than the second ground magnetic value threshold value, and judges infrared distance when the infrared distance value and parking stall are occupied Whether the difference of value is greater than second distance threshold value;
If the difference of described ground magnetic value magnetic value threshold value greater than the second, and the difference of the infrared distance value is greater than second distance threshold Value, averagely has described vehicle probability increase to be preset with vehicle probability correction value, has vehicle probability as target;If the difference of described ground magnetic value No more than the second, magnetic value threshold value and/or the difference of the infrared distance value are greater than second distance threshold value to value, averagely have described Vehicle probability, which subtracts, is preset with vehicle probability correction value, has vehicle probability as target;
Judging the target has whether vehicle probability is greater than predetermined probabilities value;
If the target has vehicle probability to be greater than predetermined probabilities value, determine that the parking space state is that parking stall is occupied;Otherwise, it determines institute Stating parking space state is that parking stall is unoccupied.
2. the method according to claim 1, wherein the parking space state include: that parking stall is occupied and parking stall not It is occupied.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
The parking space state of the parking stall is sent to wireless receiver;
It controls the geomagnetic sensor and the infrared distance sensor enters low-power consumption mode.
4. the method according to claim 1, wherein the variation for the ground magnetic value that the judgement continuous several times detect Whether situation meets preset condition, comprising:
With judging current one-time detection magnetic value and preceding one-time detection the earth magnetism value difference value of magnetic value absolute value whether less than first Ground magnetic value threshold value;
If earth magnetism value difference value magnetic value threshold value less than the first, by pre-determined stability, count is incremented, the initial value that the pre-determined stability counts It is 0;
When the value that the pre-determined stability counts after continuous several times detection is greater than default count threshold, current earth magnetism stationary value is judged Whether the deviation between last time earth magnetism stationary value is greater than predetermined deviation value;
If the deviation is greater than predetermined deviation value, definitely the situation of change of magnetic value meets preset condition.
5. a kind of stall testing apparatus characterized by comprising
Ground magnetic value detection unit, for utilizing the ground magnetic value on the geomagnetic sensor cycle detection parking stall being arranged on parking stall;
Ground magnetic value judging unit, for judging whether the situation of change of ground magnetic value that continuous several times detect meets preset condition;
When the variation of infrared distance value detection unit, the ground magnetic value for detecting when continuous several times meets preset condition, utilize Infrared distance value on infrared distance sensor detection parking stall on parking stall between object and infrared distance sensor is set;
Parking space state determination unit, the situation of change of the ground magnetic value for being detected using the continuous several times and described infrared Distance value determines the parking space state of the parking stall;
The parking space state determination unit, comprising:
It is fitted subelement, passes through for the situation of change using described ground magnetic value and tables look-up or curve matching obtains earth magnetism has vehicle general Rate;It is tabled look-up using the infrared distance value or curve matching obtains infrared has vehicle probability;
Ranking operation subelement, for having vehicle probability to the earth magnetism according to weighted value and infrared thering is vehicle probability to be weighted fortune It calculates, is averagely there is vehicle probability;
State judgment sub-unit, for judging whether previous secondary parking space state is that parking stall is occupied;
First comprehensive descision subelement judges the ground that last time detects if being that parking stall is occupied for previous secondary parking space state Whether the difference of ground magnetic value when magnetic value and parking stall are occupied is greater than the first ground magnetic value threshold value, and judge the infrared distance value and Whether the difference of infrared distance value when parking stall is occupied is greater than first distance threshold value;
First determine the probability subelement, if the difference for described ground magnetic value greater than the first magnetic value threshold value, and it is described it is infrared away from Difference from value is greater than first distance threshold value, averagely has vehicle probability to subtract to be preset with vehicle probability correction value by described, as target There is vehicle probability;If the difference of described ground magnetic value is no more than the first, magnetic value threshold value and/or the difference of the infrared distance value are greater than First distance threshold value averagely has described vehicle probability plus vehicle probability correction value is preset with, has vehicle probability as target;
Second comprehensive descision subelement judges what last time detected if being that parking stall is unoccupied for previous secondary parking space state Whether the difference of ground magnetic value when ground magnetic value and parking stall are occupied is greater than the second ground magnetic value threshold value, and judges the infrared distance value Whether it is greater than second distance threshold value with the difference of infrared distance value of parking stall when occupied;
Second determine the probability subelement, if the difference for described ground magnetic value greater than the second magnetic value threshold value, and it is described it is infrared away from Difference from value is greater than second distance threshold value, averagely has vehicle probability increase to be preset with vehicle probability correction value for described, as target There is vehicle probability;If the difference of described ground magnetic value is no more than the second, magnetic value threshold value and/or the difference of the infrared distance value are greater than Second distance threshold value averagely has vehicle probability to subtract to be preset with vehicle probability correction value, have vehicle probability as target by described;
Probability value judgment sub-unit, for judging that the target has whether vehicle probability is greater than predetermined probabilities value;
Parking stall determines subelement, if having vehicle probability to be greater than predetermined probabilities value for the target, determines that the parking space state is vehicle Position is occupied;Otherwise, it determines the parking space state is that parking stall is unoccupied.
6. device according to claim 5, which is characterized in that the parking space state include: that parking stall is occupied and parking stall not It is occupied.
7. device according to claim 5, which is characterized in that described device further include:
Transmission unit, for the parking space state of the parking stall to be sent to wireless receiver;
Low power consumption control unit enters low-power consumption mould for controlling the geomagnetic sensor and the infrared distance sensor Formula.
8. device according to claim 5, which is characterized in that described ground magnetic value judging unit, comprising:
First ground magnetic value judgment sub-unit, for judging current one-time detection magnetic value and preceding one-time detection the ground magnetic value of magnetic value The absolute value of difference whether less than the first magnetic value threshold value;
Count sub-element, if for earth magnetism value difference value less than the first magnetic value threshold value, by pre-determined stability, count is incremented, described default Stablizing the initial value counted is 0;
Second ground magnetic value judgment sub-unit, the value counted for the pre-determined stability described after continuous several times detection are greater than default count When threshold value, judge whether the deviation between current earth magnetism stationary value and last time earth magnetism stationary value is greater than predetermined deviation value;
Determine subelement, if being greater than predetermined deviation value for the deviation, definitely the situation of change of magnetic value meets preset condition.
CN201611222552.2A 2016-12-27 2016-12-27 Method for detecting parking stalls and device Active CN106781664B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611222552.2A CN106781664B (en) 2016-12-27 2016-12-27 Method for detecting parking stalls and device
TW106139148A TWI660332B (en) 2016-12-27 2017-11-13 Parking space detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611222552.2A CN106781664B (en) 2016-12-27 2016-12-27 Method for detecting parking stalls and device

Publications (2)

Publication Number Publication Date
CN106781664A CN106781664A (en) 2017-05-31
CN106781664B true CN106781664B (en) 2019-08-06

Family

ID=58927004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611222552.2A Active CN106781664B (en) 2016-12-27 2016-12-27 Method for detecting parking stalls and device

Country Status (2)

Country Link
CN (1) CN106781664B (en)
TW (1) TWI660332B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730995B (en) * 2017-11-21 2020-09-04 微传智能科技(常州)有限公司 Parking space detection method and system based on joint data judgment
CN108281011A (en) * 2018-01-25 2018-07-13 小牛(深圳)科技贸易有限公司 A kind of vehicle in-place detection system and method
CN108734794A (en) * 2018-05-11 2018-11-02 深圳市方格尔科技有限公司 Vehicle berth detection method and device
CN109191867B (en) * 2018-07-31 2021-01-05 四川西牛智泊科技有限公司 Parking space state detection method based on geomagnetic sensor
CN109243183B (en) * 2018-09-18 2020-12-08 青岛海信网络科技股份有限公司 Parking space occupation judgment method and device
CN109979203A (en) * 2019-04-24 2019-07-05 西安中星测控有限公司 A kind of parking stall monitoring method and device based on earth magnetism monitoring
CN110335463A (en) * 2019-06-16 2019-10-15 扬州锐吉科技有限公司 A kind of compound Ground Vehicle level monitoring system and its monitoring method
CN110660227B (en) * 2019-10-11 2020-11-03 杭州立方控股股份有限公司 Vehicle detection method and vehicle detection system
CN112767712A (en) * 2019-11-04 2021-05-07 深圳长城开发科技股份有限公司 Method, system and storage medium for geomagnetic sensor to detect fast passing vehicle
CN111047907B (en) * 2019-12-25 2021-07-02 深圳人人停技术有限公司 Parking space management method, device, equipment and computer readable storage medium
CN111524364B (en) * 2020-04-29 2021-06-25 武汉拓宝科技股份有限公司 Parking space state detection method and system
CN111624302B (en) * 2020-04-30 2023-07-28 汉威科技集团股份有限公司 Automatic calibration method, gas detection device, terminal and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258442A (en) * 2013-04-18 2013-08-21 中山市路讯智能交通科技有限公司 Parking space state sensor and parking space state sensing method
CN103544848A (en) * 2013-09-29 2014-01-29 郑侃 Method and device for judging parking space states on basis of geomagnetic detection for multiple parking spaces
CN203931204U (en) * 2013-11-08 2014-11-05 上海微悦科技有限公司 A kind of compound stall testing apparatus
CN105427593A (en) * 2015-11-03 2016-03-23 徐承柬 Parking stall management method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1235017C (en) * 2002-10-08 2006-01-04 曲声波 Vehicle position detection apparatus and treatment method
KR20100071026A (en) * 2010-05-28 2010-06-28 백운기 Wireless charge parking system
TW201433808A (en) * 2013-02-23 2014-09-01 Netvox Technology Co Ltd Moving object detection and positioning system and method
CN204406675U (en) * 2015-03-10 2015-06-17 南京颐丰益信息技术有限公司 A kind of geomagnetic parking stall detector

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258442A (en) * 2013-04-18 2013-08-21 中山市路讯智能交通科技有限公司 Parking space state sensor and parking space state sensing method
CN103544848A (en) * 2013-09-29 2014-01-29 郑侃 Method and device for judging parking space states on basis of geomagnetic detection for multiple parking spaces
CN203931204U (en) * 2013-11-08 2014-11-05 上海微悦科技有限公司 A kind of compound stall testing apparatus
CN105427593A (en) * 2015-11-03 2016-03-23 徐承柬 Parking stall management method and system

Also Published As

Publication number Publication date
TWI660332B (en) 2019-05-21
CN106781664A (en) 2017-05-31
TW201826232A (en) 2018-07-16

Similar Documents

Publication Publication Date Title
CN106781664B (en) Method for detecting parking stalls and device
US20170108407A1 (en) Machine component diagnosis system and server thereof
US11860291B2 (en) Determining a location of an electronic device
US20210286383A1 (en) Liquid handling system monitoring systems and methods
JP5627504B2 (en) Air conditioning equipment maintenance system and data analysis device
US10521722B2 (en) Disturbance detection, predictive analysis, and handling system
CN107154676A (en) A kind of electrical equipment electricity monitoring system and the method for power consumption feedback analysis processing
CN108763040B (en) Data acquisition method and data acquisition device
US20180132643A1 (en) An Intelligent Liquid Intake Measurement Device
KR101929742B1 (en) Smart factory system
EP3427240A1 (en) Systems and methods for a compound sensor system
US10911897B2 (en) Locating devices
CN102346534A (en) Electronic device with electricity saving function and electricity saving method thereof
JP6972868B2 (en) Safety judgment program, safety judgment method and safety judgment device
CN105190563A (en) Method and device for identifying a power equipment work pattern
Habaebi et al. Development of physical intrusion detection system using Wi-Fi/ZigBee RF signals
WO2019099539A3 (en) Method and system for electronic vaping operations
US9129507B2 (en) Portable electrical apparatus and method for detecting state of the same
JP5985443B2 (en) Anomaly detection device
CN107300723B (en) Assembly type building assembly detection device and method
KR20160026492A (en) Anomaly detection method using confidence interval estimation based on time series analysis
US10872515B2 (en) Method and apparatus for monitoring and reporting salt level in a water softener
Yusupbekov A wireless intelligent system construction for measuring and control of liquid product level in reservoir parks
CN107707634A (en) To the illegal dismounting identifying system of product and its method
CN104182231A (en) Running control method and system for application function of acceleration sensor

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