TW201826232A - Parking space detection method and device - Google Patents

Parking space detection method and device Download PDF

Info

Publication number
TW201826232A
TW201826232A TW106139148A TW106139148A TW201826232A TW 201826232 A TW201826232 A TW 201826232A TW 106139148 A TW106139148 A TW 106139148A TW 106139148 A TW106139148 A TW 106139148A TW 201826232 A TW201826232 A TW 201826232A
Authority
TW
Taiwan
Prior art keywords
value
geomagnetic
parking space
infrared distance
difference
Prior art date
Application number
TW106139148A
Other languages
Chinese (zh)
Other versions
TWI660332B (en
Inventor
李雄
Original Assignee
成都天鉑數字技術有限公司
鄭士欣
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 成都天鉑數字技術有限公司, 鄭士欣 filed Critical 成都天鉑數字技術有限公司
Publication of TW201826232A publication Critical patent/TW201826232A/en
Application granted granted Critical
Publication of TWI660332B publication Critical patent/TWI660332B/en

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

Landscapes

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

Abstract

The application discloses a parking space detection method and a parking space detection device, wherein the method includes steps of periodically detecting a terrestrial magnetism value on a parking space by using a terrestrial magnetism sensor on the parking space; judging if the changing condition of the terrestrial magnetism value detected for continuously many times can meet the preset condition; if the changing condition of the terrestrial magnetism value detected for continuously many times can meet the preset condition, detecting an infrared distance value between an object on the parking space and the infrared distance sensor by an infrared distance sensor on the parking space; confirming the parking space state of the parking space by using the changing condition of the terrestrial magnetism value detected for continuously many times and the infrared distance value. In detection of parking space, the terrestrial magnetism value on the parking space can be detected by the terrestrial magnetism sensor, and the infrared distance value of the object on the parking space can be measured by using the infrared distance sensor; by using two variables, the detection result accuracy is improved. Besides, the parking space state is determined after combining two variables, and the detection result accuracy is largely improved, thereby avoiding leaked report and false report.

Description

車位檢測方法及裝置    Parking space detection method and device   

本發明涉及停車檢測技術領域,尤其涉及一種車位檢測方法及裝置。 The invention relates to the technical field of parking detection, in particular to a method and a device for detecting parking spaces.

隨著人們物質生活水平的提高,城市車輛數量不斷激增,這就帶來了許多停車場車位管理、尋找空停車位困難的問題。 With the improvement of people's material living standards, the number of urban vehicles has continued to increase, which has brought many difficulties in managing parking spaces and finding empty parking spaces.

為了實現對車位進行監控,現有的車位監測裝置一般由地磁傳感器、微處理器、無綫通信模塊和電池等組成,安裝在一個塑料殼體中。這種車位監測裝置一般通過地表貼裝或地埋的方式安裝在停車位所在區域的地面上。 In order to monitor parking spaces, existing parking space monitoring devices generally consist of a geomagnetic sensor, a microprocessor, a wireless communication module, and a battery, and are installed in a plastic housing. This parking space monitoring device is generally installed on the ground in the area where the parking space is located by means of surface mounting or buried.

車位檢測裝置一般在工作時採用低功耗方式,周期性的啟動地磁傳感器,檢測地磁的變化從而判斷車位狀態變化,當通過地磁傳感器檢測到車位信息變化後通過無綫通信模塊將數據發送到無綫接收機中。這種採用單一地磁傳感器,車位探測的精度低,常常出現檢測不到少數車輛,或者,因為磁場干擾而誤判有車。 The parking space detection device generally uses a low power consumption mode during operation. The geomagnetic sensor is periodically activated to detect changes in the geomagnetic field to determine the change in parking space status. When the change in parking space information is detected by the geomagnetic sensor, the wireless communication module sends data to the wireless receiver. Machine. This type uses a single geomagnetic sensor, and the accuracy of parking space detection is low. A small number of vehicles cannot be detected, or there is a car misjudged because of magnetic field interference.

本發明實施例中提供了一種車位檢測方法及裝置,以解决現有技術中的車位檢測裝置存在的問題。 The embodiments of the present invention provide a parking space detection method and device to solve the problems existing in the parking space detection device in the prior art.

為了解决上述技術問題,本發明實施例申請了如下技術方案:一種車位檢測方法,包括:利用設置在車位上的地磁傳感器周期檢測車位上的地磁值;判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件;若連續多次檢測到的地磁值的變化滿足預設條件,利用設置車位上的紅外距離傳感器檢測車位上物體與紅外距離傳感器之間的紅外距離值;利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態。 In order to solve the above technical problems, an embodiment of the present invention applies the following technical solution: A parking space detection method includes: periodically detecting a geomagnetic value on a parking space by using a geomagnetic sensor provided on the parking space; and judging changes in the geomagnetic value detected multiple times in succession Whether the condition meets the preset conditions; if the detected changes in the geomagnetic value for multiple consecutive times meet the preset conditions, the infrared distance sensor on the parking space is used to detect the infrared distance value between the object on the parking space and the infrared distance sensor; using the continuous Changes in the geomagnetic value detected multiple times and the infrared distance value determine the parking space status of the parking space.

較佳者,所述車位狀態包括:車位被占用和車位未被占用。 Preferably, the parking space status includes: the parking space is occupied and the parking space is not occupied.

較佳者,所述方法還包括:將所述車位的車位狀態發送給無綫接收機;控制所述地磁傳感器以及所述紅外距離傳感器進入到低功耗模式。 Preferably, the method further comprises: transmitting the parking state of the parking space to a wireless receiver; and controlling the geomagnetic sensor and the infrared distance sensor to enter a low power consumption mode.

較佳者,所述判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件,包括:判斷當前一次檢測地磁值與前一次檢測地磁值的地磁值差值的絕對值是否小於第一地磁值閾值;若地磁值差值小於第一地磁值閾值,將預設穩定計數加1,所述預設穩定計數的初始值為0;當連續多次檢測後所述預設穩定計數的值大於預設計數閾值時,判斷當前地磁穩定值與上次地磁穩定值之間的偏差是否大於預設偏差值;若所述偏差大於預設偏差值,確定地磁值的變化情况滿足預設條件。 Preferably, the determining whether the change of the geomagnetic value detected for multiple consecutive times satisfies a preset condition includes: determining whether the absolute value of the difference between the geomagnetic value of the current detected geomagnetic value and the previous detected geomagnetic value is less than the first Geomagnetic value threshold; if the difference of the geomagnetic value is less than the first geomagnetic value threshold, increase the preset stable count by 1 and the initial value of the preset stable count is 0; the value of the preset stable count after continuous multiple detections When it is greater than the preset count threshold, it is judged whether the deviation between the current geomagnetic stability value and the previous geomagnetic stability value is greater than the preset deviation value; if the deviation is greater than the preset deviation value, it is determined that the change of the geomagnetic value meets the preset condition.

較佳者,所述利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態,包括:利用所述地磁值的變化情况通過查表或曲綫擬合得到地磁有車機率;利用所述紅外距離值查表或曲綫擬合得到紅外有車機率;按照權重值對所述地磁有車機率和紅外有車機率進行加權運算,得到平均有車機率;判斷前一次車位狀態是否為車位被占用;若前一次車位狀態為車位被占用,判斷最後一次檢測的地磁 值與車位被占用時的地磁值的差值是否大於第一地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第一距離閾值;若所述地磁值的差值大於第一地磁值閾值,且所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第一地磁值閾值,和/或所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率加上預設有車機率修正值,作為目標有車機率;若前一次車位狀態為車位未被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第二地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第二距離閾值;若所述地磁值的差值大於第二地磁值閾值,且所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率增加預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第二地磁值閾值,和/或所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;判斷所述目標有車機率是否大於預設機率值;若所述目標有車機率大於預設機率值,確定所述車位狀態為車位被占用;否則,確定所述車位狀態為車位未被占用。 Preferably, the determining the parking space status of the parking space by using the changes in the geomagnetic value detected multiple times in succession and the infrared distance value includes: using a change in the geomagnetic value to look up a table or a curve. Combine the geomagnetic vehicle probability; use the infrared distance value lookup table or curve fitting to obtain the infrared vehicle probability; weight the geomagnetic vehicle probability and the infrared vehicle probability according to the weight value to obtain the average vehicle probability; Determine whether the previous parking state was occupied; if the previous parking state was occupied, determine whether the difference between the last detected geomagnetic value and the value when the parking space was occupied is greater than the first geomagnetic threshold, and Whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the first distance threshold; if the difference between the geomagnetic value is greater than the first geomagnetic value threshold and the difference between the infrared distance value is greater than the first Distance threshold, the average vehicle probability is subtracted from the preset vehicle probability correction value as the target vehicle probability; if the difference between the geomagnetic values is not greater than the first The geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the first distance threshold, and the average vehicle probability plus a preset vehicle probability correction value is used as the target vehicle probability; if the previous parking state is The parking space is not occupied, it is determined whether the difference between the last detected geomagnetic value and the geomagnetic value when the parking space is occupied is greater than the second geomagnetic value threshold, and the difference between the infrared distance value and the infrared distance value when the parking space is occupied Whether it is greater than the second distance threshold; if the difference between the geomagnetic values is greater than the second geomagnetic value threshold and the difference between the infrared distance values is greater than the second distance threshold, increasing the average vehicle probability to a preset vehicle probability The correction value is used as the target vehicle probability; if the difference between the geomagnetic values is not greater than the second geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the second distance threshold, the average vehicle probability is reduced. Go to the preset vehicle probability correction value as the target vehicle probability; determine whether the target vehicle probability is greater than the preset probability value; if the target vehicle probability is greater than the preset probability value, determine the parking condition Of parking spaces occupied; otherwise, determining that the parking spaces unoccupied state.

一種車位檢測裝置,包括:地磁值檢測單元,用於利用設置在車位上的地磁傳感器周期檢測車位上的地磁值;地磁值判斷單元,用於判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件;紅外距離值檢測單元,用於當連續多次檢測到的地磁值的變化滿足預設條件時,利用設置車位上的紅外距離傳感器檢測車位上物體與紅外距離傳感器之間的紅外距離值;車位狀態確定單元,用於利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態。 A parking space detection device includes: a geomagnetic value detection unit for periodically detecting a geomagnetic value on a parking space using a geomagnetic sensor provided on the parking space; and a geomagnetic value judgment unit for determining whether a change in the geomagnetic value detected multiple times in succession Meet the preset conditions; the infrared distance value detection unit is used to detect the infrared between the object on the parking space and the infrared distance sensor when the change in the geomagnetic value detected multiple times in succession meets the preset condition A distance value; a parking space state determining unit, configured to determine a parking space state of the parking space by using changes in the geomagnetic value detected multiple times in succession and the infrared distance value.

較佳者,所述車位狀態包括:車位被占用和車位未被占用。 Preferably, the parking space status includes: the parking space is occupied and the parking space is not occupied.

較佳者,所述裝置還包括:發送單元,用於將所述車位的車位狀態發送給無綫接收機;低功耗控制單元,用於控制所述地磁傳感器以及所述紅外距離傳感器進入到低功耗模式。 Preferably, the device further comprises: a transmitting unit for transmitting the parking space status of the parking space to the wireless receiver; and a low power consumption control unit for controlling the geomagnetic sensor and the infrared distance sensor to enter a low level. Power mode.

較佳者,所述地磁值變化單元,包括:第一地磁值判斷子單元,用於判斷當前一次檢測地磁值與前一次檢測地磁值的地磁值差值的絕對值是否小於第一地磁值閾值;計數子單元,用於若地磁值差值小於第一地磁值閾值,將預設穩定計數加1,所述預設穩定計數的初始值為0;第二地磁值判斷子單元,用於當連續多次檢測後所述預設穩定計數的值大於預設計數閾值時,判斷當前地磁穩定值與上次地磁穩定值之間的偏差是否大於預設偏差值;確定子單元,用於若所述偏差大於預設偏差值,確定地磁值的變化情况滿足預設條件。 Preferably, the geomagnetic value changing unit includes: a first geomagnetic value judging subunit, configured to determine whether the absolute value of the difference between the geomagnetic value of the current detected geomagnetic value and the previously detected geomagnetic value is less than the first geomagnetic value threshold A counting subunit for increasing the preset stable count by 1 if the difference in geomagnetic value is less than the first geomagnetic value threshold, and the initial value of the preset stable count is 0; a second geomagnetic value judging subunit for when When the value of the preset stable count is greater than the preset count after multiple consecutive detections, determine whether the deviation between the current geomagnetic stability value and the previous geomagnetic stability value is greater than the preset deviation value; determine a subunit for The deviation is greater than a preset deviation value, and it is determined that the change of the geomagnetic value satisfies a preset condition.

較佳者,所述車位狀態確定單元,包括:擬合子單元,用於利用所述地磁值的變化情况通過查表或曲綫擬合得到地磁有車機率;利用所述紅外距離值查表或曲綫擬合得到紅外有車機率;加權運算子單元,用於按照權重值對所述地磁有車機率和紅外有車機率進行加權運算,得到平均有車機率;狀態判斷子單元,用於判斷前一次車位狀態是否為車位被占用;第一綜合判斷子單元,用於若前一次車位狀態為車位被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第一地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第一距離閾值;第一機率確定子單元,用於若所述地磁值的差值大於第一地磁值閾值,且所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第一地磁值閾值,和/或所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率加上預設有車機率修正值,作為目標有車機率; 第二綜合判斷子單元,用於若前一次車位狀態為車位未被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第二地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第二距離閾值;第二機率確定子單元,用於若所述地磁值的差值大於第二地磁值閾值,且所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率增加預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第二地磁值閾值,和/或所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;機率值判斷子單元,用於判斷所述目標有車機率是否大於預設機率值;車位確定子單元,用於若所述目標有車機率大於預設機率值,確定所述車位狀態為車位被占用;否則,確定所述車位狀態為車位未被占用。 Preferably, the parking space status determining unit includes: a fitting sub-unit for obtaining a geomagnetic vehicle probability through a look-up table or curve fitting using the change of the geomagnetic value; using the infrared distance value to look up the table or Curve fitting to obtain the probability of infrared vehicle; weighted operation subunit for weighting the geomagnetic vehicle probability and infrared vehicle probability in accordance with the weight value to obtain the average vehicle probability; the state judgment subunit is used to judge the Whether the parking status is occupied once; the first comprehensive judgment subunit is used to determine whether the difference between the last detected geomagnetic value and the geomagnetic value when the parking space was occupied is greater than the first if the previous parking status was occupied A geomagnetic value threshold, and determining whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than a first distance threshold; a first probability determining subunit for, if the difference of the geomagnetic value is greater than the first The geomagnetic value threshold, and the difference between the infrared distance values is greater than the first distance threshold. The average vehicle probability is subtracted from the preset vehicle probability correction value as a target. Vehicle probability; if the difference between the geomagnetic values is not greater than the first geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the first distance threshold, add the average vehicle probability plus a preset vehicle presence The probability correction value is used as the target vehicle probability. The second comprehensive judgment subunit is used to determine whether the difference between the last detected geomagnetic value and the geomagnetic value when the parking space is occupied is greater than the previous time if the parking space status was unoccupied. A second geomagnetic value threshold, and determining whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than a second distance threshold; a second probability determining subunit for, if the difference of the geomagnetic value is greater than A second geomagnetic value threshold, and the difference between the infrared distance values is greater than the second distance threshold, increasing the average vehicle probability by a preset vehicle probability correction value as a target vehicle probability; if the difference in the geomagnetic value The value is not greater than the second geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the second distance threshold, and the average vehicle probability is subtracted from the preset vehicle probability correction value as the target vehicle probability; A rate value judging sub-unit for judging whether the target vehicle probability is greater than a preset probability value; a parking space determination sub-unit for determining if the target vehicle probability is greater than a preset probability value, determining that the parking state is Occupied; otherwise, it is determined that the parking space status is that the parking space is not occupied.

本發明的實施例提供的技術方案可以包括以下有益效果:本發明實施例提供的該方法,首先利用設置在車位上的地磁傳感器周期檢測車位上的地磁值;然後判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件;若連續多次檢測到的地磁值的變化滿足預設條件,再利用設置車位上的紅外距離傳感器檢測車位上物體與紅外距離傳感器之間的紅外距離值;最後利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態。 The technical solution provided by the embodiment of the present invention may include the following beneficial effects: The method provided by the embodiment of the present invention first uses a geomagnetic sensor provided on the parking space to periodically detect the geomagnetic value on the parking space; and then determines the geomagnetism detected multiple times in a row. Whether the change of the value meets the preset conditions; if the changes of the geomagnetic value detected multiple times in succession meet the preset conditions, the infrared distance sensor on the parking space is used to detect the infrared distance value between the object on the parking space and the infrared distance sensor; Finally, the state of the parking space is determined using the changes in the geomagnetic value detected multiple times in succession and the infrared distance value.

該方法在進行車位檢測時,不僅利用地磁傳感器檢測車位上的地磁值,而且利用紅外距離傳感器測量車位上物體的紅外距離值,利用兩個變量,使得檢測結果準確性提高,另外,針對地磁值以及紅外距離值,該方法不是簡單利用,而且進行綜合後對車位狀態進行確定,同樣可以使得檢測結果準確性大大提高,避免了漏報以及誤報的情况。應當理解的是, 以上的一般描述和後文的細節描述僅是示例性和解釋性的,並不能限制本發明。 This method not only uses the geomagnetic sensor to detect the geomagnetic value on the parking space, but also uses the infrared distance sensor to measure the infrared distance value of the object on the parking space. The method uses two variables to improve the accuracy of the detection result. And the infrared distance value, this method is not simple to use, and the status of the parking space is determined after synthesis, which can also greatly improve the accuracy of the detection results and avoid the situation of false negatives and false positives. It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and should not limit the present invention.

S101~S104‧‧‧車位檢測方法的步驟 S101 ~ S104‧‧‧Steps of parking space detection method

11‧‧‧地磁值檢測單元 11‧‧‧Geomagnetic value detection unit

12‧‧‧地磁值判斷單元 12‧‧‧Geomagnetic value judgment unit

13‧‧‧紅外距離值檢測單元 13‧‧‧ Infrared distance value detection unit

14‧‧‧車位狀態確定單元 14‧‧‧Parking status determination unit

圖1為本發明實施例提供的一種車位檢測方法的流程示意圖。 FIG. 1 is a schematic flowchart of a parking space detection method according to an embodiment of the present invention.

圖2為本發明實施例提供的一種車位檢測裝置的結構示意圖。 FIG. 2 is a schematic structural diagram of a parking space detection device according to an embodiment of the present invention.

為了使本技術領域的人員更好地理解本發明中的技術方案,下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都應當屬□本發明保護的範圍。 In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts should fall within the protection scope of the present invention.

圖1為本發明實施例提供的一種車位檢測方法的流程示意圖。 FIG. 1 is a schematic flowchart of a parking space detection method according to an embodiment of the present invention.

該方法應用於安裝有地磁傳感器和紅外距離傳感器的車位上,地磁傳感器的作用是用於檢測車位上地磁的地磁值,當有車輛移動到車位或離開車位時,車位上地磁的地磁值將會產生變化。地磁傳感器可以一個或多個,在一個實施例中,地磁傳感器可以為一個,並且安裝在車位的中心位置的表面;在另一個實施例中,地磁傳感器可以為多個,並且多個地磁傳感器均勻分布在車位的表面。紅外距離觸感器竪直安裝在車位上,用於檢測車位上車輛底盤與地面之間的距離。紅外距離傳感器可以有 一個或多個,當有一個時,安裝在車位的中心位置,當有多個時,均勻分布在車位的表面上。 The method is applied to a parking space equipped with a geomagnetic sensor and an infrared distance sensor. The role of the geomagnetic sensor is to detect the geomagnetic value of the geomagnetism on the parking space. When a vehicle moves to or leaves the parking space, the geomagnetic value of the geomagnetism on the parking space will be Make a difference. There may be one or more geomagnetic sensors. In one embodiment, there may be one geomagnetic sensor and it is installed on the surface of the center of the parking space. In another embodiment, there may be multiple geomagnetic sensors, and the plurality of geomagnetic sensors are uniform. Distributed on the surface of the parking space. The infrared distance sensor is vertically installed on the parking space and is used to detect the distance between the vehicle chassis and the ground in the parking space. There can be one or more infrared distance sensors. When there is one, it is installed in the center of the parking space. When there are multiple, it is evenly distributed on the surface of the parking space.

如圖1所示該方法,可以包括以下步驟。 The method shown in FIG. 1 may include the following steps.

S101:利用設置在車位上的地磁傳感器周期檢測車位上的地磁值。當地磁傳感器為一個時,直接利用這一個地磁傳感器對地磁值進行測量;當有多個地磁傳感器時,可以將這多個地磁傳感器的地磁值結果綜合後作為車位上地磁的地磁值,綜合的方式包括但不局限於取平均值。 S101: Use a geomagnetic sensor provided on the parking space to periodically detect the geomagnetic value on the parking space. When there is only one geomagnetic sensor, use this geomagnetic sensor to measure the geomagnetic value directly; when there are multiple geomagnetic sensors, the geomagnetic value results of the multiple geomagnetic sensors can be integrated as the geomagnetic value of the geomagnetism on the parking space. Methods include, but are not limited to, averaging.

S102:判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件。 S102: Determine whether the change of the geomagnetic value detected multiple times in a row satisfies a preset condition.

在本發明實施例中,該步驟可以包括以下步驟: In the embodiment of the present invention, this step may include the following steps:

S201:判斷當前一次檢測地磁值與前一次檢測地磁值的地磁值差值的絕對值是否小於第一地磁值閾值。 S201: Determine whether the absolute value of the difference between the currently detected geomagnetic value and the previously detected geomagnetic value is smaller than the first geomagnetic value threshold.

地磁值在檢測時,採用周期檢測的方式,所以採集到的地磁值分別為每次採集到的地磁值結果。在車輛進入車位時,會使得車位上地磁的地磁值减小,在車輛離開車位時,會使得車位上地磁的地磁值增加。 During the detection of the geomagnetic value, the periodic detection method is adopted, so the collected geomagnetic values are the results of the geomagnetic values collected each time. When the vehicle enters the parking space, the geomagnetic value on the parking space will decrease, and when the vehicle leaves the parking space, the geomagnetic value on the parking space will increase.

若地磁值差值小於第一地磁值閾值,S202:將預設穩定計數加1。 If the difference in the geomagnetic value is less than the first geomagnetic value threshold, S202: increase the preset stable count by one.

預設穩定計數的作用是判斷地磁值是否連續出現變化,當每個周期內檢測到的地磁值均大於前一個周期內檢測到的地磁值,那麽預設穩定計數的值將會持續增加,也就是說,預設穩定計數越大,表明連續多次檢測到地磁值逐步增加。 The role of the preset stable count is to determine whether the geomagnetic value has continuously changed. When the geomagnetic value detected in each cycle is greater than the geomagnetic value detected in the previous cycle, the value of the preset stable count will continue to increase. That is, the larger the preset stable count is, it means that the gradual increase of the geomagnetic value is detected continuously for multiple times.

在本發明實施例中,預設穩定計數的初始值為0,當一次車位狀態檢測結束後,將預設穩定計數設置為初始值0。 In the embodiment of the present invention, the initial value of the preset stable count is 0. After the detection of the parking space state is completed, the preset stable count is set to the initial value of 0.

步驟S203:判斷連續多次檢測後所述預設穩定計數的值是否大於預設計數閾值。預設計數閾值可以由技術人員根據經驗來進行設定,預設計數閾值的取值大小與地磁值的檢測周期有關係。 Step S203: Determine whether the value of the preset stable count is greater than a preset count threshold after multiple consecutive detections. The preset count threshold can be set by a technician based on experience. The value of the preset count threshold is related to the detection period of the geomagnetic value.

當連續多次檢測後所述預設穩定計數的值大於預設計數閾值時,S204:判斷當前地磁穩定值與上次地磁穩定值之間的偏差是否大於預設偏差值;當前一次檢測的地磁值减去前一次檢測的地磁值若為△t的話,那麽該步驟就是檢測最後一次計算得到的△t是否超過預設地磁值閾值。也即雖然預設穩定計數增加到一定閾值,但還需要判斷最後的地磁值變化值是否大於預設地磁值閾值。 When the value of the preset stable count is greater than the preset count threshold after multiple consecutive detections, S204: determine whether the deviation between the current geomagnetic stable value and the last geomagnetic stable value is greater than the preset deviation value; the current geomagnetic detection If the value minus the previous detected geomagnetic value is Δt, then this step is to detect whether the last calculated Δt exceeds a preset geomagnetic value threshold. That is, although the preset stable count is increased to a certain threshold, it is also necessary to determine whether the last change value of the geomagnetic value is greater than the preset geomagnetic value threshold.

若所述偏差大於預設偏差值,S205,確定地磁值的變化情况滿足預設條件。 If the deviation is greater than a preset deviation value, S205, it is determined that the change of the geomagnetic value satisfies a preset condition.

當預設穩定計數增加到一定閾值,並且最後的地磁值變化值大於預設地磁值閾值,即表明從地磁值的角度判斷已經滿足條件。 When the preset stable count increases to a certain threshold and the final change value of the geomagnetic value is greater than the preset geomagnetic value threshold, it indicates that the conditions have been satisfied from the perspective of the geomagnetic value.

若連續多次檢測到的地磁值的變化滿足預設條件,S103:利用設置車位上的紅外距離傳感器檢測車位上物體與紅外距離傳感器之間的紅外距離值。 If the changes in the geomagnetic value detected multiple times in a row satisfy the preset conditions, S103: the infrared distance sensor on the parking space is set to detect the infrared distance value between the object on the parking space and the infrared distance sensor.

當紅外距離傳感器為一個時,直接利用這一個紅外距離傳感器對紅外距離值進行測量;當有多個紅外距離傳感器時,可以將這多個紅外距離傳感器的紅外距離值結果綜合後作為車位上檢測到的紅外距離值,綜合的方式包括但不局限於取平均值。 When there is only one infrared distance sensor, use this one infrared distance sensor to measure the infrared distance value directly; when there are multiple infrared distance sensors, the infrared distance value results of these multiple infrared distance sensors can be integrated and used as the detection on the parking space. The integrated infrared distance value includes but is not limited to averaging.

S104:利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態。 S104: Determine a parking state of the parking space by using changes in the geomagnetic value detected multiple times in succession and the infrared distance value.

在本發明中,該步驟可以包括以下步驟:S301:利用所述地磁值的變化情况通過查表或曲綫擬合得到地磁有車機率;利用所述紅外距離值查表或曲綫擬合得到紅外有車機率。 In the present invention, this step may include the following steps: S301: Use the change of the geomagnetic value to obtain the geomagnetic vehicle probability by looking up a table or curve fitting; use the infrared distance value looking up table or curve fitting to obtain an infrared Car probability.

在本發明中,可以預先通過歷史測試的方式,得到地磁值的變化情况與有車機率之間的對應表或者對應曲綫,由於不同車輛在經過車位上地磁值的變化均不同,在此不再舉例說明。同理,對於紅外距離傳感器檢測到的紅外距離值,也可以預先通過多次測試的方式,得到紅外距離值與有車機率之間的對應表或對應曲綫。 In the present invention, a correspondence table or a curve between the change of the geomagnetic value and the probability of having a vehicle can be obtained through a historical test in advance. Since the changes of the geomagnetic value of different vehicles passing through the parking spaces are different, no longer here for example. Similarly, for the infrared distance value detected by the infrared distance sensor, a correspondence table or a curve between the infrared distance value and the vehicle probability can be obtained through multiple tests in advance.

以查表法為例,下表1為地磁值與地磁有車機率的對應關係表。 Taking the table lookup method as an example, the following table 1 is the corresponding relationship table between the geomagnetic value and the probability of geomagnetic vehicles.

下表2為紅外距離值與紅外有車機率的對應關係表。 The following table 2 is the correspondence table between the infrared distance value and the infrared car probability.

在本發明中,以地磁有車機率為P1,紅外有車機率為P2進行舉例說明。 In the present invention, the geomagnetic vehicle probability is P1 and the infrared vehicle probability is P2.

S302:按照權重值對所述地磁有車機率和紅外有車機率進行加權運算,得到平均有車機率。地磁值變化和紅外距離值對應的權重值不同,例如:地磁值變化對應的權重值為M,紅外距離值對應的權重值為N,那麽在該步驟中,加權平均方法為:平均有車機率=地磁有車機率* M+紅外有車機率* N。例如:平均有車機率=地磁有車機率*0.6+紅外有車機率*0.4。 S302: Perform a weighted operation on the geomagnetic vehicle probability and the infrared vehicle probability according to the weight value to obtain an average vehicle probability. The change in the geomagnetic value and the infrared distance value have different weight values. For example, the change in the geomagnetic value corresponds to the weight value M, and the infrared distance value corresponds to the weight value N. Then, in this step, the weighted average method is: the average vehicle probability = Geomagnetic vehicle probability * M + Infrared vehicle probability * N. For example: average vehicle probability = geomagnetic vehicle probability * 0.6 + infrared vehicle probability * 0.4.

S303:判斷前一次車位狀態是否為車位被占用。 S303: Determine whether the previous parking space status is that the parking space is occupied.

前一次車位狀態是在歷史計算過程中,得到的結果。在初始化時,前一次車位狀態默認為未被占用。 The previous parking space status is the result obtained during historical calculation. At the time of initialization, the previous parking space state is unoccupied by default.

若前一次車位狀態為車位被占用,S304:判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第一地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第一距離閾值。 If the previous parking state was occupied, S304: determine whether the difference between the last detected geomagnetic value and the geomagnetic value when the parking space was occupied is greater than the first geomagnetic value threshold, and determine whether the infrared distance value and the parking space are occupied Whether the difference between the infrared distance values is greater than the first distance threshold.

在本發明中,△t1為最後一次檢測的地磁值與車位被占用時的地磁值的差值,△T1為第一地磁值閾值。H1為檢測紅外距離值與車位被占用時的紅外距離值的差值是否大於第一距離閾值; 若所述地磁值的差值大於第一地磁值閾值,且所述紅外距離值的差值大於第一距離閾值,S305:將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第一地磁值閾值,和/或所述紅外距離值的差值大於第一距離閾值,S306:將所述平均有車機率加上預設有車機率修正值,作為目標有車機率; 若前一次車位狀態為車位未被占用,S307:判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第二地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第二距離閾值; 若所述地磁值的差值大於第二地磁值閾值,且所述紅外距離值的差值大於第二距離閾值,S308:將所述平均有車機率增加預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第二地磁值閾值,和/或所述紅外距離值的差值大於第二距離閾值,S309:將所述平均有車機率减去預設有車機率修正值,作為目標有車機率; S310:判斷所述目標有車機率是否大於預設機率值;若所述目標有車機率大於預設機率值,S311:確定所述車位狀態為車位被占用;否則,S312,確定所述車位狀態為車位未被占用。 In the present invention, Δt1 is the difference between the last detected geomagnetic value and the geomagnetic value when the parking space is occupied, and ΔT1 is the first geomagnetic value threshold. H1 is detecting whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the first distance threshold; if the difference between the geomagnetic values is greater than the first geomagnetic value threshold, and the difference between the infrared distance values is greater than The first distance threshold, S305: subtracting the preset vehicle probability from the average vehicle probability to the target vehicle probability; if the difference between the geomagnetic values is not greater than the first geomagnetic value threshold, and / or The difference between the infrared distance values is greater than the first distance threshold, S306: adding the average vehicle probability plus a preset vehicle probability correction value as the target vehicle probability; if the previous state of the parking space was unoccupied, S307 : Determine whether the difference between the last detected geomagnetic value and the geomagnetic value when the parking space is occupied is greater than the second geomagnetic value threshold, and determine whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the second Distance threshold; if the difference between the geomagnetic values is greater than the second geomagnetic value threshold and the difference between the infrared distance values is greater than the second distance threshold, S308: increasing the average vehicle probability to a preset vehicle probability The correction value is the target vehicle probability; if the difference between the geomagnetic values is not greater than the second geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the second distance threshold, S309: set the average vehicle presence Probability minus the preset vehicle probability correction value as the target vehicle probability; S310: determine whether the target vehicle probability is greater than the preset probability value; if the target vehicle probability is greater than the preset probability value, S311: determine all The parking space state is that the parking space is occupied; otherwise, S312, it is determined that the parking space state is that the parking space is not occupied.

在本發明其它實施例中,該方法還可以包括以下步驟。將所述車位的車位狀態發送給無綫接收機;控制所述地磁傳感器以及所述紅外距離傳感器進入到低功耗模式。 In other embodiments of the present invention, the method may further include the following steps. Sending the parking state of the parking space to a wireless receiver; controlling the geomagnetic sensor and the infrared distance sensor to enter a low power consumption mode.

此外,預設穩定計數的值持續不變,等於初始值0,那麽也進入到低功耗模式。或者,當連續多次檢測後所述預設穩定計數的值不大於預設計數閾值,也進入到低功耗模式。或者,如果偏差不大於預設偏差值,也進入到低功耗模式。 In addition, the value of the preset stable count remains unchanged, equal to the initial value of 0, and then the low power consumption mode is also entered. Alternatively, when the value of the preset stable count is not greater than a preset count threshold after multiple consecutive detections, the low power consumption mode is also entered. Or, if the deviation is not greater than a preset deviation value, the low power consumption mode is also entered.

在本發明中,低功耗模式是指微處理器,關閉不必要的外圍電路,僅啟用一個低功耗定時器,大約1秒或幾秒後喚醒處理器,重新進入“讀取地磁值”的循環。 In the present invention, the low power consumption mode refers to the microprocessor, turning off unnecessary peripheral circuits, enabling only a low power consumption timer, awakening the processor after about one or a few seconds, and re-entering the "read geomagnetic value" Cycle.

地磁傳感器是每秒或幾秒鐘啟動一次的,地磁傳感器由微處理器觸發工作,無條件的周期性啟動。目的是檢測周圍磁場的變化,地磁傳感器的功耗較紅外傳感器低很多,當檢測到地磁變化後再啟動紅外是一種降低功耗的方法。 The geomagnetic sensor is activated once every second or a few seconds. The geomagnetic sensor is triggered by the microprocessor to work, and it starts periodically and unconditionally. The purpose is to detect the change of the surrounding magnetic field. The power consumption of a geomagnetic sensor is much lower than that of an infrared sensor. Restarting the infrared after detecting a change in the geomagnetic field is a way to reduce power consumption.

本發明實施例,還提供一種車位檢測裝置,如圖2所示,為一種車位檢測裝置的結構示意圖。 An embodiment of the present invention further provides a parking space detection device. As shown in FIG. 2, it is a schematic structural diagram of a parking space detection device.

該一種車位檢測裝置可以包括:地磁值檢測單元11,用於利用設置在車位上的地磁傳感器周期檢測車位上的地磁值;地磁值判斷單元12,用於判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件;紅外距離值檢測單元13,用於當連續多次檢測到的地磁值的變化滿足預設條件時,利用設置車位上的紅外距離傳感器檢測車位上物體與紅外距離傳感器之間的紅外距離值;車位狀態確定單元14,用於利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態。 The parking space detection device may include: a geomagnetic value detection unit 11 for periodically detecting a geomagnetic value on the parking space using a geomagnetic sensor provided on the parking space; and a geomagnetic value judgment unit 12 for judging the geomagnetic value detected multiple times in a row. Whether the change meets a preset condition; the infrared distance value detection unit 13 is configured to detect an object on the parking space and an infrared distance sensor when a change in the geomagnetic value detected multiple times in succession satisfies a preset condition A value of an infrared distance between them; a parking space state determining unit 14 is configured to determine a parking space state of the parking space by using changes in the geomagnetic value detected continuously for multiple times and the infrared distance value.

在本發明一個實施例中,所述車位狀態包括:車位被占用和車位未被占用。 In one embodiment of the present invention, the parking space status includes: the parking space is occupied and the parking space is not occupied.

在本發明一個實施例中,所述裝置還包括:發送單元,用於將所述車位的車位狀態發送給無綫接收機;低功耗控制單元,用於控制所述地磁傳感器以及所述紅外距離傳感器進入到低功耗模式。 In an embodiment of the present invention, the device further includes: a sending unit for sending the parking space status of the parking space to the wireless receiver; and a low power consumption control unit for controlling the geomagnetic sensor and the infrared distance The sensor enters a low power mode.

在本發明一個實施例中,所述地磁值變化單元,包括:第一地磁值判斷子單元,用於判斷當前一次檢測地磁值與前一次檢測地磁值的地磁值差值的絕對值是否小於第一地磁值閾值;計數子單元,用於若地磁值差值小於第一地磁值閾值,將預設穩定計數加1,所述預設穩定計數的初始值為0;第二地磁值判斷子單元,用於當連續多次檢測後所述預設穩定計數的值大於預設計數閾值時,判斷當前地磁穩定值與上次地磁穩定值之間的偏差是否大於預設偏差值;確定子單元,用於若所述偏差大於預設偏差值,確定地磁值的變化情况滿足預設條件。 In an embodiment of the present invention, the geomagnetism value changing unit includes: a first geomagnetism value judging subunit, configured to determine whether the absolute value of the difference between the geomagnetism value of the current detected geomagnetism value and the previously detected geomagnetism value is less than A geomagnetic value threshold; a counting subunit for adding a preset stable count to 1 if the difference in the geomagnetic value is less than the first geomagnetic value threshold, and the initial value of the preset stable count is 0; the second geomagnetic value judging subunit For determining whether the deviation between the current geomagnetic stability value and the last geomagnetic stability value is greater than a preset deviation value when the value of the preset stable count is greater than a preset count threshold after multiple consecutive detections; determining a subunit, If the deviation is greater than a preset deviation value, it is determined that the change of the geomagnetic value satisfies a preset condition.

在本發明一個實施例中,所述車位狀態確定單元,包括:擬合子單元,用於利用所述地磁值的變化情况通過查表或曲綫擬合得到地磁有車機率;利用所述紅外距離值查表或曲綫擬合得到紅外有車機率;加權運算子單元,用於按照權重值對所述地磁有車機率和紅外有車機率進行加權運算,得到平均有車機率;狀態判斷子單元,用於判斷前一次車位狀態是否為車位被占用;第一綜合判斷子單元,用於若前一次車位狀態為車位被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第一地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第一距離閾值;第一機率確定子單元,用於若所述地磁值的差值大於第一地磁值閾值,且所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於 第一地磁值閾值,和/或所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率加上預設有車機率修正值,作為目標有車機率;第二綜合判斷子單元,用於若前一次車位狀態為車位未被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第二地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第二距離閾值;第二機率確定子單元,用於若所述地磁值的差值大於第二地磁值閾值,且所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率增加預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第二地磁值閾值,和/或所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;機率值判斷子單元,用於判斷所述目標有車機率是否大於預設機率值;車位確定子單元,用於若所述目標有車機率大於預設機率值,確定所述車位狀態為車位被占用;否則,確定所述車位狀態為車位未被占用。 In an embodiment of the present invention, the parking space state determining unit includes: a fitting subunit, configured to obtain a geomagnetic vehicle probability through a look-up table or curve fitting using the change of the geomagnetic value; and using the infrared distance Value lookup table or curve fitting to obtain the infrared car probability; a weighting operation subunit for weighting the geomagnetic vehicle probability and the infrared vehicle probability according to a weight value to obtain an average vehicle probability; a state judgment subunit, It is used to determine whether the previous parking state was occupied. The first comprehensive judgment subunit is used to determine the difference between the last detected geomagnetic value and the geomagnetic value when the parking space was occupied if the previous parking state was occupied. Whether it is greater than the first geomagnetic value threshold, and determine whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the first distance threshold; the first probability determining subunit is configured to If the value is greater than the first geomagnetic value threshold, and the difference between the infrared distance values is greater than the first distance threshold, the average vehicle probability is subtracted from the preset vehicle probability A positive value as the target vehicle probability; if the difference between the geomagnetic values is not greater than the first geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the first distance threshold, the average vehicle probability is increased The vehicle probability correction value is preset as the target vehicle probability. The second comprehensive judgment sub-unit is used to determine the last detected geomagnetic value and the geomagnetic value when the parking space is occupied if the previous parking space status is unoccupied. Whether the difference of the value is greater than the second geomagnetic value threshold, and determine whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the second distance threshold; the second probability determining subunit is used if the geomagnetism The difference between the values is greater than the second geomagnetic value threshold, and the difference between the infrared distance values is greater than the second distance threshold. The average vehicle probability is increased by a preset vehicle probability correction value as the target vehicle probability. The difference between the geomagnetic values is not greater than the second geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the second distance threshold, and the average vehicle probability is subtracted from the preset vehicle probability correction value as The vehicle probability is marked; a probability value judging subunit is used to determine whether the target vehicle probability is greater than a preset probability value; a parking space determination subunit is used to determine the target vehicle probability if the target vehicle probability is greater than a preset probability value The parking space state is that the parking space is occupied; otherwise, it is determined that the parking space state is that the parking space is not occupied.

為了描述的方便,描述以上裝置時以功能分為各種單元分別描述。當然,在實施本發明時可以把各單元的功能在同一個或多個軟件和/或硬件中實現。 For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the present invention, the functions of the units may be implemented in the same or multiple software and / or hardware.

本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於裝置或系統實施例而言,由於其基本相似於方法實施例,所以描述得比較簡單,相關之處參見方法實施例的部分說明即可。以上所描述的裝置及系統實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示 的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分布到多個網絡單元上。可以根據實際的需要選擇其中的部分或者全部模塊來實現本實施例方案的目的。本領域普通技術人員在不付出創造性勞動的情况下,即可以理解並實施。 Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, it is described relatively simply. For the relevant part, refer to the description of the method embodiment. The embodiments of the device and system described above are only schematic, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, It can be located in one place or distributed across multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment. Those of ordinary skill in the art can understand and implement without creative efforts.

可以理解的是,本發明可用於衆多通用或專用的計算系統環境或配置中。例如:個人計算機、服務器計算機、手持設備或便携式設備、平板型設備、多處理器系統、基於微處理器的系統、置頂盒、可編程的消費電子設備、網絡PC、小型計算機、大型計算機、包括以上任何系統或設備的分布式計算環境等等。 It can be understood that the present invention can be used in many general-purpose or special-purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, small computers, mainframe computers, including Distributed computing environment for any of the above systems or devices, etc.

本發明可以在由計算機執行的計算機可執行指令的一般上下文中描述,例如程序模塊。一般地,程序模塊包括執行特定任務或實現特定抽象數據類型的例程、程序、對象、組件、數據結構等等。也可以在分布式計算環境中實踐本發明,在這些分布式計算環境中,由通過通信網絡而被連接的遠程處理設備來執行任務。在分布式計算環境中,程序模塊可以位於包括存儲設備在內的本地和遠程計算機存儲介質中。 The invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The invention can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

需要說明的是,在本文中,諸如“第一”和“第二”等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者設備所固有的要素。在沒有更多限制的情况下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、物品或者設備中還存在另外的相同要素。 It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these. There is any such actual relationship or order between entities or operations. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article, or equipment including the elements.

以上所述僅是本發明的具體實施方式,使本領域技術人員能够理解或實現本發明。對這些實施例的多種修改對本領域的技術人員來說將是顯而易見的,本文中所定義的一般原理可以在不脫離本發明的精神或範圍的情况下,在其它實施例中實現。因此,本發明將不會被限制於本文所示的這些實施例,而是要符合與本文所申請的原理和新穎特點相一致的最寬的範圍。 The above are only specific embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but shall conform to the widest scope consistent with the principles and novel features applied herein.

Claims (10)

一種車位檢測方法,其包括:利用設置在車位上的地磁傳感器周期檢測車位上的地磁值;判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件;若連續多次檢測到的地磁值的變化滿足預設條件,利用設置車位上的紅外距離傳感器檢測車位上物體與紅外距離傳感器之間的紅外距離值;利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態。     A parking space detection method includes: periodically detecting a geomagnetic value on a parking space by using a geomagnetic sensor provided on the parking space; judging whether a change in the geomagnetic value detected multiple times in a row satisfies a preset condition; The change of the value satisfies the preset conditions. The infrared distance sensor on the parking space is used to detect the infrared distance value between the object on the parking space and the infrared distance sensor; the change of the geomagnetic value detected multiple times in succession and the infrared distance are used. The value determines a parking state of the parking space.     如請求項1所述的方法,其中,所述車位狀態包括:車位被占用和車位未被占用。     The method according to claim 1, wherein the parking space status includes: the parking space is occupied and the parking space is not occupied.     如請求項2所述的方法,其中,所述方法還包括:將所述車位的車位狀態發送給無綫接收機;控制所述地磁傳感器以及所述紅外距離傳感器進入到低功耗模式。     The method according to claim 2, wherein the method further comprises: transmitting a parking space status of the parking space to a wireless receiver; and controlling the geomagnetic sensor and the infrared distance sensor to enter a low power consumption mode.     如請求項1所述的方法,其中,所述判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件,包括:判斷當前一次檢測地磁值與前一次檢測地磁值的地磁值差值的絕對值是否小於第一地磁值閾值;若地磁值差值小於第一地磁值閾值,將預設穩定計數加1,所述預設穩定計數的初始值為0;當連續多次檢測後所述預設穩定計數的值大於預設計數閾值時,判斷當前地磁穩定值與上次地磁穩定值之間的偏差是否大於預設偏差值;若所述偏差大於預設偏差值,確定地磁值的變化情况滿足預設條件。     The method according to claim 1, wherein the determining whether the change of the geomagnetic value detected for multiple consecutive times satisfies a preset condition includes: judging the difference between the geomagnetic value of the current detected geomagnetic value and the previous detected geomagnetic value. Whether the absolute value of the value is less than the first geomagnetic value threshold; if the difference of the geomagnetic value is less than the first geomagnetic value threshold, increase the preset stable count by 1, and the initial value of the preset stable count is 0; When the preset stable count value is greater than the preset count threshold, it is judged whether the deviation between the current geomagnetic stability value and the previous geomagnetic stability value is greater than the preset deviation value; if the deviation is greater than the preset deviation value, the determination of the geomagnetic value is determined. The change meets the preset conditions.     如請求項1所述的方法,其特徵在於,所述利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀 態,包括:利用所述地磁值的變化情况通過查表或曲綫擬合得到地磁有車機率;利用所述紅外距離值查表或曲綫擬合得到紅外有車機率;按照權重值對所述地磁有車機率和紅外有車機率進行加權運算,得到平均有車機率;判斷前一次車位狀態是否為車位被占用;若前一次車位狀態為車位被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第一地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第一距離閾值;若所述地磁值的差值大於第一地磁值閾值,且所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第一地磁值閾值,和/或所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率加上預設有車機率修正值,作為目標有車機率;若前一次車位狀態為車位未被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第二地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第二距離閾值;若所述地磁值的差值大於第二地磁值閾值,且所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率增加預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第二地磁值閾值,和/或所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;判斷所述目標有車機率是否大於預設機率值;若所述目標有車機率大於預設機率值,確定所述車位狀態為車位被占 用;否則,確定所述車位狀態為車位未被占用。     The method according to claim 1, wherein the determining a parking space state of the parking space by using changes in the geomagnetic value detected multiple times in succession and the infrared distance value includes using the geomagnetic value The change situation of the geomagnetic vehicle probability is obtained by looking up the table or curve fitting; the infrared distance vehicle probability is obtained by using the infrared distance value lookup table or curve fitting; the geomagnetic vehicle probability and the infrared vehicle probability are performed according to the weight value Weighted calculation to get the average probability of parking; determine whether the previous parking status was occupied; if the previous parking status was occupied, determine whether the difference between the last detected geomagnetic value and the geomagnetic value when the parking space was occupied is greater than A first geomagnetic value threshold, and determining whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the first distance threshold; if the difference between the geomagnetic value is greater than the first geomagnetic value threshold, and the If the difference between the infrared distance values is greater than the first distance threshold, the average vehicle probability is subtracted from the preset vehicle probability correction value as the target vehicle probability; The difference between the geomagnetic values is not greater than the first geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the first distance threshold, and the average vehicle probability plus a preset vehicle probability correction value is taken as a target There is a vehicle probability; if the previous state of the parking space was unoccupied, determine whether the difference between the last detected geomagnetic value and the value when the parking space was occupied is greater than the second geomagnetic value threshold, and determine the infrared distance value and parking space Whether the difference between the infrared distance values when occupied is greater than the second distance threshold; if the difference between the geomagnetic values is greater than the second geomagnetic value threshold, and the difference between the infrared distance values is greater than the second distance threshold, The average vehicle probability increases with the preset vehicle probability correction value as the target vehicle probability; if the difference between the geomagnetic values is not greater than the second geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the second distance A threshold value, subtracting the average vehicle probability from the preset vehicle probability correction value as a target vehicle probability; judging whether the target vehicle probability is greater than a preset probability value; if the target vehicle probability is greater than a predetermined value Probability values, determining the status of parking spaces occupied used; otherwise, determining the status of parking spaces unoccupied.     一種車位檢測裝置,其包括:地磁值檢測單元,用於利用設置在車位上的地磁傳感器周期檢測車位上的地磁值;地磁值判斷單元,用於判斷連續多次檢測到的地磁值的變化情况是否滿足預設條件;紅外距離值檢測單元,用於當連續多次檢測到的地磁值的變化滿足預設條件時,利用設置車位上的紅外距離傳感器檢測車位上物體與紅外距離傳感器之間的紅外距離值;車位狀態確定單元,用於利用所述連續多次檢測到的地磁值的變化情况以及所述紅外距離值確定所述車位的車位狀態。     A parking space detection device includes: a geomagnetic value detecting unit for periodically detecting a geomagnetic value on a parking space using a geomagnetic sensor provided on the parking space; and a geomagnetic value judging unit for determining a change in the geomagnetic value detected multiple times in a row. Whether the preset conditions are met; the infrared distance value detection unit is used to detect the change between the object on the parking space and the infrared distance sensor when the change in the geomagnetic value detected multiple times in succession meets the preset condition. An infrared distance value; a parking space state determining unit, configured to determine a parking space state of the parking space by using changes in the geomagnetic value detected multiple times in succession and the infrared distance value.     如請求項6所述的裝置,其中,所述車位狀態包括:車位被占用和車位未被占用。     The device according to claim 6, wherein the parking space status includes: the parking space is occupied and the parking space is not occupied.     如請求項6所述的裝置,其中,所述裝置還包括:發送單元,用於將所述車位的車位狀態發送給無綫接收機;低功耗控制單元,用於控制所述地磁傳感器以及所述紅外距離傳感器進入到低功耗模式。     The device according to claim 6, wherein the device further comprises: a sending unit for sending the parking space status of the parking space to the wireless receiver; and a low power consumption control unit for controlling the geomagnetic sensor and the The infrared distance sensor enters a low power consumption mode.     如請求項6所述的裝置,其中,所述地磁值變化單元,包括:第一地磁值判斷子單元,用於判斷當前一次檢測地磁值與前一次檢測地磁值的地磁值差值的絕對值是否小於第一地磁值閾值;計數子單元,用於若地磁值差值小於第一地磁值閾值,將預設穩定計數加1,所述預設穩定計數的初始值為0;第二地磁值判斷子單元,用於當連續多次檢測後所述預設穩定計數的值大於預設計數閾值時,判斷當前地磁穩定值與上次地磁穩定值之間的偏 差是否大於預設偏差值;確定子單元,用於若所述偏差大於預設偏差值,確定地磁值的變化情况滿足預設條件。     The device according to claim 6, wherein the geomagnetism value changing unit comprises: a first geomagnetism value judging subunit for judging an absolute value of a geomagnetism value difference between the current geomagnetism value and the previous geomagnetism value. Whether it is less than the first geomagnetic value threshold; a counting subunit, configured to increase the preset stable count by 1 if the difference in the geomagnetic value is less than the first geomagnetic value threshold, and the initial value of the preset stable count is 0; the second geomagnetic value A judging subunit, configured to determine whether the deviation between the current geomagnetic stability value and the previous geomagnetic stability value is greater than a preset deviation value when the preset stable count value is greater than a preset count threshold after multiple consecutive detections; determine A sub-unit for determining that the change of the geomagnetic value satisfies a preset condition if the deviation is greater than a preset deviation value.     如請求項6所述的裝置,其中,所述車位狀態確定單元,包括:擬合子單元,用於利用所述地磁值的變化情况通過查表或曲綫擬合得到地磁有車機率;利用所述紅外距離值查表或曲綫擬合得到紅外有車機率;加權運算子單元,用於按照權重值對所述地磁有車機率和紅外有車機率進行加權運算,得到平均有車機率;狀態判斷子單元,用於判斷前一次車位狀態是否為車位被占用;第一綜合判斷子單元,用於若前一次車位狀態為車位被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第一地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第一距離閾值;第一機率確定子單元,用於若所述地磁值的差值大於第一地磁值閾值,且所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第一地磁值閾值,和/或所述紅外距離值的差值大於第一距離閾值,將所述平均有車機率加上預設有車機率修正值,作為目標有車機率;第二綜合判斷子單元,用於若前一次車位狀態為車位未被占用,判斷最後一次檢測的地磁值與車位被占用時的地磁值的差值是否大於第二地磁值閾值,且判斷所述紅外距離值與車位被占用時的紅外距離值的差值是否大於第二距離閾值;第二機率確定子單元,用於若所述地磁值的差值大於第二地磁值閾 值,且所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率增加預設有車機率修正值,作為目標有車機率;若所述地磁值的差值不大於第二地磁值閾值,和/或所述紅外距離值的差值大於第二距離閾值,將所述平均有車機率减去預設有車機率修正值,作為目標有車機率;機率值判斷子單元,用於判斷所述目標有車機率是否大於預設機率值;車位確定子單元,用於若所述目標有車機率大於預設機率值,確定所述車位狀態為車位被占用;否則,確定所述車位狀態為車位未被占用。     The device according to claim 6, wherein the parking space status determining unit includes: a fitting subunit, configured to obtain a geomagnetic vehicle probability by looking up a table or curve fitting using the change of the geomagnetic value; The infrared distance value look-up table or curve fitting is used to obtain the infrared car probability; the weighting operation subunit is configured to perform a weighted operation on the geomagnetic vehicle probability and the infrared vehicle probability according to the weight value to obtain the average vehicle probability; status judgment Sub-unit for determining whether the previous parking state was occupied or not; the first comprehensive judgment sub-unit is for determining the last detected geomagnetic value and the geomagnetic value of the occupied parking space if the previous state of the parking was occupied. Whether the difference of the value is greater than the first geomagnetic value threshold, and determine whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the first distance threshold; the first probability determining subunit is used if the geomagnetism The difference between the values is greater than the first geomagnetic value threshold, and the difference between the infrared distance values is greater than the first distance threshold. The probability correction value is the target vehicle probability; if the difference between the geomagnetic values is not greater than the first geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the first distance threshold, the average vehicle probability is Add the preset vehicle probability correction value as the target vehicle probability; the second comprehensive judgment sub-unit is used to determine the last detected geomagnetic value and the geomagnetism when the parking space is occupied if the previous parking space status is unoccupied. Whether the difference between the values is greater than the second geomagnetic value threshold, and determining whether the difference between the infrared distance value and the infrared distance value when the parking space is occupied is greater than the second distance threshold; the second probability determining subunit is used if the If the difference between the geomagnetic values is greater than the second geomagnetic value threshold and the difference between the infrared distance values is greater than the second distance threshold, the average vehicle probability is increased by a preset vehicle probability correction value as the target vehicle probability. The difference between the geomagnetic values is not greater than the second geomagnetic value threshold, and / or the difference between the infrared distance values is greater than the second distance threshold, and subtracting the preset vehicle probability from the average vehicle probability, Is the target vehicle probability; a probability value judging subunit is used to determine whether the target vehicle probability is greater than a preset probability value; a parking space determination subunit is used to determine the target vehicle probability if the target vehicle probability is greater than a preset probability value The parking space state is that the parking space is occupied; otherwise, it is determined that the parking space state is that the parking space is not occupied.    
TW106139148A 2016-12-27 2017-11-13 Parking space detection method and device TWI660332B (en)

Applications Claiming Priority (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
??201611222552.2 2016-12-27

Publications (2)

Publication Number Publication Date
TW201826232A true TW201826232A (en) 2018-07-16
TWI660332B TWI660332B (en) 2019-05-21

Family

ID=58927004

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106139148A TWI660332B (en) 2016-12-27 2017-11-13 Parking space detection method and device

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109191867A (en) * 2018-07-31 2019-01-11 四川西牛矩阵科技有限公司 A kind of parking space state detection method based on geomagnetic sensor

Families Citing this family (11)

* 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
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

Family Cites Families (8)

* 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
CN103258442A (en) * 2013-04-18 2013-08-21 中山市路讯智能交通科技有限公司 Parking space state sensor and parking space state sensing method
CN103544848B (en) * 2013-09-29 2016-08-17 郑侃 A kind of parking space state decision method based on many parking stalls geomagnetism detecting and device
CN203931204U (en) * 2013-11-08 2014-11-05 上海微悦科技有限公司 A kind of compound stall testing apparatus
CN204406675U (en) * 2015-03-10 2015-06-17 南京颐丰益信息技术有限公司 A kind of geomagnetic parking stall detector
CN105427593A (en) * 2015-11-03 2016-03-23 徐承柬 Parking stall management method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109191867A (en) * 2018-07-31 2019-01-11 四川西牛矩阵科技有限公司 A kind of parking space state detection method based on geomagnetic sensor

Also Published As

Publication number Publication date
CN106781664B (en) 2019-08-06
CN106781664A (en) 2017-05-31
TWI660332B (en) 2019-05-21

Similar Documents

Publication Publication Date Title
TWI660332B (en) Parking space detection method and device
CN111052035B (en) Electronic device and operation control method thereof
US20150062032A1 (en) Mobile communication terminal, screen adjusting method and storage medium thereof
US20110126034A1 (en) Power management utilizing proximity or link status determination
US20140338428A1 (en) Water leak early detection system and method
JP2015156703A (en) Methods, apparatuses and systems for monitoring exposure of electronic devices to moisture and reacting to exposure
CN103581443A (en) Intelligent terminal automatic awakening method and system based on sensors
US20160174185A1 (en) Method and system for location estimation
EP3447632A3 (en) Electronic device for displaying application and operating method thereof
US20180132643A1 (en) An Intelligent Liquid Intake Measurement Device
CN104639732A (en) Electronic equipment and method for automatically lightening screen
CN104598143A (en) Electronic equipment and wakeup method thereof
US10867518B2 (en) Method and system for identifying location of a parked vehicle
JPWO2011074511A1 (en) Existence determination apparatus, system, method, and program
CN114387762A (en) Building data management method, device, equipment and storage medium
CN111060000A (en) Rotation angle detection device and method and electronic equipment
CN108802835B (en) Wireless charging detection method and device, mobile terminal and wireless charging system
CN105739812A (en) Interface processing method and device of mobile terminal
CN106913313B (en) Sleep monitoring method and system
TW201403390A (en) System and method for controlling display device
US20200103542A1 (en) Structure safety detection system and method thereof
CN106815564A (en) A kind of calibration method of fingerprint recognition system, system and a kind of electronic equipment
JP2014174811A5 (en) Programs and electronic devices
CN105792004B (en) A kind of triggering passes the method and system of screen
CN105630138A (en) Method and device for waking terminal device