Parking lot congestion level analysis method and device
By analyzing the entrance and exit records and historical data of the parking lot and judging the congestion level of the parking lot, the problem that traditional systems cannot deeply analyze parking behaviors is solved, and the accuracy and user experience of the parking lot congestion analysis are improved.
Patent Information
- Application Number
- CN202411389955.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-07
AI Technical Summary
Traditional parking management systems cannot deeply analyze parking behavior, resulting in low accuracy in analysis of parking congestion situations, affecting users' parking experience.
By obtaining the entrance and exit records of the current and historical periods of the parking lot, we can determine whether the parking lot is in a tense state at the remaining position, and determine the congestion level of the parking lot based on the number of congestions in the historical period.
It improves the accuracy of parking congestion determination, provides more accurate parking difficulty assessment, and improves user experience.
Smart Images

Figure CN119274342A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of parking lot management, and in particular to a parking lot congestion level analysis method and device. Background Art
[0002] In the field of intelligent transportation systems and urban parking management, traditional parking management systems usually rely on some basic hardware devices, such as parking space detectors and surveillance cameras. These devices can provide parking lot entry records, exit records or parking space status, so as to monitor and manage the parking space usage and congestion in the parking lot according to the parking lot entry records, exit records and parking space status at the current time. However, the congestion of the parking lot is only analyzed based on the information recorded by the parking lot at the current time, lacking the ability to deeply analyze parking behavior, for example, it is impossible to analyze the changing trend of parking demand within a specific time period. This limited analysis capability leads to low accuracy in the analysis of parking lot congestion, which affects the user's parking experience. Summary of the invention
[0003] Based on this, it is necessary to provide a parking lot congestion level analysis method and device for the above technical problems, so as to solve at least one of the above technical problems.
[0004] The present invention provides a method for analyzing parking lot congestion level, comprising:
[0005] Obtain the target entry and exit records corresponding to the current time period, as well as the historical entry and exit records of each historical time period that is the same as the current time period;
[0006] Based on the target entry and exit records, determining whether the parking lot is in a state of insufficient parking spaces in the current time period, wherein the state of insufficient parking spaces refers to a state in which the number of remaining free parking spaces in the parking lot in the current time period is less than a preset parking space threshold or a state in which the ratio of the number of remaining free parking spaces to the total number of valid parking spaces in the parking lot is less than a preset ratio threshold;
[0007] Based on the historical entry and exit records of each of the historical periods, determine the number of times the parking lot was in a state of insufficient parking space in each of the historical periods;
[0008] The congestion level of the parking lot is determined based on the number of times and the judgment result of the remaining space shortage state in the current time period.
[0009] Optionally, according to a parking lot congestion level analysis method provided by the present invention, the determining of the parking lot congestion level based on the number of times and the judgment result of the remaining space shortage state in the current time period includes:
[0010] When the judgment result is that the parking lot is in a state of limited remaining space:
[0011] Compare the number of times with a preset number threshold to obtain a comparison result;
[0012] According to the preset first time window, the current time period is slid to obtain a plurality of first divided time periods, and based on the target entry and exit records, the first vehicle frequencies in the plurality of first divided time periods are obtained by counting, wherein the first vehicle frequencies include vehicle entry frequencies and vehicle exit frequencies in the first divided time periods;
[0013] According to the preset second time window, the current time period is slid to obtain a plurality of second divided time periods, and based on the target entry and exit records, the second vehicle frequencies in the plurality of second divided time periods are obtained by counting, wherein the second vehicle frequency refers to the vehicle frequencies corresponding to both entry and exit behaviors in the second divided time periods;
[0014] The congestion level of the parking lot is determined based on the comparison result, the first vehicle frequency in each of the first divided time periods, and the second vehicle frequency in each of the second divided time periods.
[0015] Optionally, according to a method for analyzing parking lot congestion level provided by the present invention, determining the parking lot congestion level based on the comparison result, the first vehicle frequency in each of the first divided time periods, and the second vehicle frequency in each of the second divided time periods includes:
[0016] If the comparison result is that the number of times is greater than the preset number threshold:
[0017] If any of the first vehicles has a frequency greater than a first frequency threshold, and any of the second vehicles has a frequency greater than a second frequency threshold, then the congestion level of the parking lot is determined to be a first congestion level;
[0018] If the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the second congestion level;
[0019] The congestion probability of the first congestion level is greater than the congestion probability of the second congestion level.
[0020] Optionally, according to a method for analyzing parking lot congestion level provided by the present invention, determining the parking lot congestion level based on the comparison result, the first vehicle frequency in each of the first divided time periods, and the second vehicle frequency in each of the second divided time periods includes:
[0021] If the comparison result is that the number of times is not greater than the preset number threshold:
[0022] If any of the first vehicles has a frequency greater than a first frequency threshold, and any of the second vehicles has a frequency greater than a second frequency threshold, then the congestion level of the parking lot is determined to be a third congestion level;
[0023] If the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the fourth congestion level;
[0024] The congestion probability of the second congestion level is greater than the congestion probability of the third congestion level; and the congestion probability of the third congestion level is greater than the congestion probability of the fourth congestion level.
[0025] Optionally, according to a parking lot congestion level analysis method provided by the present invention, the first time window and the first frequency threshold are determined based on the following steps:
[0026] Get the entry and exit records corresponding to each period in the preset historical time period;
[0027] Based on the entry and exit records corresponding to the time periods, a plurality of target time periods corresponding to the parking lot being in a state of limited parking space are determined;
[0028] For any target time period: sliding in the target time period according to the preset divided time window to obtain a plurality of third divided time periods;
[0029] Based on the entry and exit records, counting the third vehicle frequency corresponding to any of the third divided time periods, wherein the third vehicle frequency includes the entry frequency and exit frequency corresponding to the parking lot in the third divided time period;
[0030] If the difference between the entry frequency and the exit frequency corresponding to any of the third divided time periods is less than a preset difference threshold, the divided time window and the third vehicle frequency whose difference is less than the preset difference threshold are recorded;
[0031] If the difference between the entry frequency and the exit frequency corresponding to all the third divided time periods is not less than the preset difference threshold, a new divided time window is determined to return to the step of sliding in the target time period according to the preset divided time window to obtain a plurality of third divided time periods, wherein the new divided time window is smaller than the divided time window of the last division;
[0032] The first time window is determined based on all recorded divided time windows, and the first frequency threshold is determined based on all recorded third vehicle frequencies.
[0033] Optionally, according to a parking lot congestion level analysis method provided by the present invention, the second time window and the second frequency threshold are determined based on the following steps:
[0034] Get the entry and exit records corresponding to each period in the preset historical time period;
[0035] Based on the entry and exit records corresponding to the time periods, a plurality of target time periods corresponding to the parking lot being in a state of limited parking space are determined;
[0036] For any target time period: sliding in the target time period according to the preset divided time window to obtain a plurality of fourth divided time periods;
[0037] Based on the entry and exit records, counting the fourth vehicle frequency corresponding to any of the fourth divided time periods, wherein the fourth vehicle frequency refers to the vehicle frequency corresponding to both entry and exit behaviors in the fourth divided time period;
[0038] Determine a vehicle frequency ratio corresponding to any adjacent divided time period based on the fourth vehicle frequencies corresponding to all fourth divided time periods;
[0039] If any of the vehicle frequency ratios is greater than a preset ratio threshold, a fourth vehicle frequency corresponding to the vehicle frequency greater than the preset ratio threshold is recorded and a time window is divided;
[0040] If the frequency ratio of all vehicles is not greater than the preset ratio threshold, a new division time window is determined to return to the step of sliding in the target time period according to the preset division time window to obtain a plurality of fourth division time periods, wherein the new division time window is greater than the division time window of the last division;
[0041] The second time window is determined based on all recorded divided time windows, and the second frequency threshold is determined based on all recorded fourth vehicle frequencies.
[0042] Optionally, according to a parking lot congestion level analysis method provided by the present invention, the determining of the parking lot congestion level based on the number of times and the judgment result of the remaining space shortage state in the current time period includes:
[0043] When the judgment result is that the parking lot is not in a state of insufficient space:
[0044] Comparing the number of times with a preset number threshold;
[0045] If the number is greater than a preset number threshold, determining that the congestion level of the parking lot is the fifth congestion level;
[0046] If the number is not greater than the preset number threshold, determining that the congestion level of the parking lot is the sixth congestion level;
[0047] The congestion probability of the fifth congestion level is greater than the congestion probability of the sixth congestion level.
[0048] Optionally, according to a parking lot congestion level analysis method provided by the present invention, determining whether the parking lot is in a state of limited parking space in the current period based on the target entry and exit records includes:
[0049] Determine the total number of available parking spaces in the parking lot;
[0050] Based on the entry and exit records, determine the number of vehicles entering and exiting the parking lot in the current period;
[0051] Determine the number of remaining free parking spaces in the parking lot in the current time period based on the total number of valid parking spaces, the number of vehicles entering the parking lot, and the number of vehicles leaving the parking lot;
[0052] Determine the ratio between the remaining number of free parking spaces and the total number of valid parking spaces;
[0053] If the ratio is less than a preset ratio threshold, it is determined that the parking lot is in a state of limited space in the current time period.
[0054] Optionally, according to a parking lot congestion level analysis method provided by the present invention, after determining the parking lot congestion level based on the number of times and the judgment result of the remaining space shortage state in the current time period, the method further includes:
[0055] Determine the congestion level of all parking lots in the target area;
[0056] The congestion levels of all the parking lots are averaged to obtain the parking difficulty level of the target area.
[0057] The present invention also provides a parking lot congestion level analysis device, comprising:
[0058] The acquisition module is used to acquire the target entry and exit records corresponding to the current time period of the parking lot, as well as the historical entry and exit records of each historical time period that is the same as the current time period;
[0059] A first determination module is used to determine whether the parking lot is in a state of insufficient parking spaces in the current time period based on the target entry and exit records, wherein the state of insufficient parking spaces is used to indicate a state in which the number of remaining free parking spaces in the parking lot in the current time period is less than a preset parking space threshold;
[0060] A second determination module is used to determine the number of times the parking lot is in a state of insufficient space in each of the historical time periods based on the historical entry and exit records of each of the historical time periods;
[0061] The third determination module is used to determine the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage state in the current time period.
[0062] The above-mentioned parking lot congestion level analysis method and device include: obtaining the target entry and exit records corresponding to the parking lot in the current time period, and the historical entry and exit records of each historical time period that is the same as the current time period; based on the target entry and exit records, determining whether the parking lot is in a state of tight remaining spaces in the current time period, wherein the state of tight remaining spaces refers to a state in which the number of remaining free parking spaces in the parking lot in the current time period is less than a preset parking space threshold or a state in which the ratio between the remaining free parking spaces and the total number of valid parking spaces in the parking lot is less than a preset ratio threshold; based on the historical entry and exit records of each of the historical time periods, determining the number of times the parking lot is in a state of tight remaining spaces in each of the historical time periods; based on the number of times and the judgment result of the state of tight remaining spaces in the current time period, determining the congestion level of the parking lot. The present invention determines whether the parking lot is in a state of tight space in the current time period based on the target entry and exit records corresponding to the current time period. In addition, the historical entry and exit records of each historical time period that is the same as the current time period are combined to determine the number of times the parking lot is in a state of tight space in each of the historical time periods; thereby combining the judgment result of the state of tight space in the current time period and the number of times the time period is in a state of tight space in the historical time to deeply analyze the congestion level of the parking lot, effectively improving the accuracy of the judgment of parking lot congestion. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0064] Figure 1 It is one of the flow charts of the method for analyzing parking lot congestion level in one embodiment of the present invention;
[0065] Figure 2 It is a complete flow chart of a method for analyzing parking lot congestion level in one embodiment of the present invention;
[0066] Figure 3 This is a second flow chart of a method for analyzing parking lot congestion levels in one embodiment of the present invention;
[0067] Figure 4 This is a third flow chart of a method for analyzing parking lot congestion level in one embodiment of the present invention;
[0068] Figure 5This is a fourth flow chart of a method for analyzing parking lot congestion level in one embodiment of the present invention;
[0069] Figure 6 This is a fifth flow chart of a method for analyzing parking lot congestion level in one embodiment of the present invention;
[0070] Figure 7 This is a sixth flow chart of a method for analyzing parking lot congestion level in one embodiment of the present invention;
[0071] Figure 8 is a structural schematic diagram of a parking lot congestion level analysis device in one embodiment of the present invention;
[0072] Fig. 9 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.
[0075] In one embodiment, if Figure 1 As shown, Figure 1 The figure is one of the flow charts of a method for analyzing a parking lot congestion level in one embodiment of the present invention. The embodiment of the present invention provides a method for analyzing a parking lot congestion level, comprising the following steps:
[0076] Step S11, obtaining the target entry and exit records corresponding to the current time period of the parking lot, and the historical entry and exit records of each historical time period that is the same as the current time period;
[0077] It should be noted that the target entry and exit records refer to the entry and exit records of the parking lot during the current period. The historical entry and exit records refer to the entry and exit records of the same period as the current period in the past. Among them, the entry record includes the parking lot unique identifier, the channel unique identifier, the entry record unique identifier, the license plate number, the license plate color, the entry time and the free parking time. The exit record includes the parking lot unique identifier, the channel unique identifier, the exit record unique identifier, the license plate number, the license plate color, the entry time, the exit time, the parking duration, the charging information and the entry record unique identifier. For example, the target entry and exit record of the current period refers to the entry and exit records of vehicles in the period from 3 to 4 pm on September 9, 2023. The historical entry and exit records of each historical period can be set as the entry and exit records of the same period (3 to 4 pm) every day in the past week.
[0078] Step S12, based on the target entry and exit records, determining whether the parking lot is in a state of limited parking space in the current period;
[0079] It should be noted that the remaining space shortage state refers to the state in which the number of remaining free parking spaces in the parking lot in the current time period is less than the preset parking space threshold. In one embodiment, based on the target entry and exit records, the number of vehicles entering and exiting the parking lot in the current time period is determined; in addition, the total number of valid parking spaces in the parking lot is also determined. Optionally, the total number of valid parking spaces refers to the maximum number of vehicles that the parking lot has accommodated in a day, or it can be the total number of parking spaces in the parking lot. Then, based on the total number of valid parking spaces, the number of vehicles entering and exiting the parking lot, the number of remaining free parking spaces in the parking lot in the current time period is calculated. Further, the remaining free parking spaces are compared with the preset parking space threshold. If the remaining free parking spaces are less than the preset parking space threshold, it is determined that the parking lot is in the remaining space shortage state in the current time period; if the remaining free parking spaces are not less than the preset parking space threshold, it is determined that the parking lot is not in the remaining space shortage state in the current time period. In other embodiments, the remaining space shortage state refers to the state in which the ratio between the remaining free parking spaces and the total number of valid parking spaces in the parking lot is less than the preset ratio threshold. After calculating the remaining number of vacant parking spaces in the parking lot, the ratio between the remaining number of vacant parking spaces and the total number of valid parking spaces is further calculated; if the ratio is less than a preset ratio threshold, it is determined that the parking lot is in a state of tight remaining parking spaces in the current time period; if the ratio is not less than the preset ratio threshold, it is determined that the parking lot is not in a state of tight remaining parking spaces in the current time period.
[0080] Step S13, based on the historical entry and exit records of each historical period, determining the number of times the parking lot was in a state of insufficient parking space in each historical period;
[0081] In one embodiment, based on the historical entry and exit records of any historical period, it is determined whether the parking lot is in a state of limited space in any historical period, wherein the process of determining whether the parking lot is in a state of limited space in any historical period is similar to the process of determining whether the parking lot is in a state of limited space in the current period, and will not be repeated here. Then, the number of times corresponding to the state of limited space in all historical periods is counted to determine whether limited space has always occurred in the period in history.
[0082] Step S14, determining the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage status in the current time period.
[0083] It should be noted that this embodiment divides the congestion of the parking lot into three types: Situation 1: The parking lot is short of available parking spaces, that is, there are not enough vacant parking spaces. Situation 2: There is an obvious pattern of vehicles entering and exiting within a short period of time. Situation 3: Multiple vehicles enter and then exit within a short period of time, which may indicate that the parking lot has a temporary peak flow. This embodiment combines the above three situations to determine the congestion of the parking lot. The specific analysis process is as follows:
[0084] In one embodiment, the result of judging the tight space status in the current time period is that the parking lot is in a tight space status: the number is compared with a preset number threshold to obtain a comparison result; according to the preset first time window, the current time period is slid to obtain a plurality of first divided time periods. For example, the current time period is from 3:00 to 4:00 p.m., and the first time window is 20 minutes. Sliding is performed in this time period to obtain a plurality of first divided time periods corresponding to 3:00-3:20, 3:01-3:21, 3:02-3:22, and so on. In other embodiments, the sliding time interval can also be limited, and the time interval is set to 5 minutes. For example, the first window slid to is: 3:00-3:20; the next sliding is traversed to 3:05-3:25 and 3:10-3:30. Then, based on the target entry and exit records, the first vehicle frequency in each first divided time period can be statistically obtained, wherein the first vehicle frequency includes the vehicle entry frequency and the vehicle exit frequency in the first divided time period, the vehicle entry frequency refers to the frequency of vehicles driving into the parking lot in the first divided time period, and the vehicle exit frequency refers to the frequency of vehicles driving out of the parking lot in the first divided time period. For example, in the time period from 3 to 4 pm, a total of 5 vehicles enter the parking lot and 6 vehicles leave the parking lot, the vehicle entry frequency is 5, and the vehicle exit frequency is 6. In addition, according to the preset second time window, the current time period is slid to divide the vehicle into The second divided time periods are obtained, and then based on the target entry and exit records, the second vehicle frequencies under the multiple second divided time periods are obtained by counting, wherein the second vehicle frequency refers to the frequency of vehicles corresponding to the simultaneous entry and exit behaviors under the second divided time period. For example, in the time period from 3 pm to 4 pm, the vehicles corresponding to license plates A, B and C enter the parking lot, and the vehicles corresponding to license plates A, B and C leave the parking lot in the time period from 3 pm to 4 pm, which proves that the vehicles corresponding to license plates A, B and C are the vehicles that simultaneously enter and exit the parking lot, and then the second vehicle frequency is determined to be 3.
[0085] Furthermore, when the comparison result is that the number is greater than the preset number threshold: if there is any first vehicle whose frequency is greater than the first frequency threshold, and there is any second vehicle whose frequency is greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the first congestion level; if the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the second congestion level; wherein the congestion probability of the first congestion level is greater than the congestion probability of the second congestion level.
[0086] In addition, when the comparison result is that the number of times is not greater than the preset number threshold: if there is any first vehicle whose frequency is greater than the first frequency threshold, and there is any second vehicle whose frequency is greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the third congestion level; if the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the fourth congestion level; wherein the congestion probability of the second congestion level is greater than the congestion probability of the third congestion level; and the congestion probability of the third congestion level is greater than the congestion probability of the fourth congestion level.
[0087] In other embodiments, reference Figure 2 , Figure 2 It is a complete flow chart of the parking lot congestion level analysis method in one embodiment of the present invention. For parking lots in transportation hubs with large traffic volume such as airports and stations, when the judgment result is that the parking lot is in a state of tight remaining spaces: if the comparison result is that the number of times is greater than the preset number threshold, and the parking lot is a parking lot in a transportation hub with large traffic volume such as airports and stations, then the congestion level of the parking lot is directly determined to be the first congestion level; if the comparison result is that the number of times is not greater than the preset number threshold, and the parking lot is a parking lot in a transportation hub with large traffic volume such as airports and stations, then the congestion level of the parking lot is directly determined to be the third congestion level.
[0088] In another embodiment, when the result of judging the state of tight space in the current time period is that the parking lot is not in a state of tight space: the number of times is compared with a preset number threshold; if the number of times is greater than the preset number threshold, it proves that the parking lot has often been in a state of tight space in this time period in the past, and then the congestion level of the parking lot is determined to be the fifth congestion level, for example, indicating that congestion may exist in the parking lot; in addition, if the number of times is not greater than the preset number threshold, it proves that the parking lot has rarely been in a state of tight space in this time period in the past, and then the congestion level of the parking lot is determined to be the sixth congestion level, for example, the parking lot is in a normal circulation situation, wherein the congestion probability of the fourth congestion level is greater than the congestion probability of the fifth congestion level, and the congestion probability of the fifth congestion level is greater than the congestion probability of the sixth congestion level.
[0089] The embodiment of the present invention uses the above scheme to determine whether the parking lot is in a state of tight space in the current time period based on the target entry and exit records corresponding to the current time period. In addition, the historical entry and exit records of each historical time period that is the same as the current time period are combined to determine the number of times the parking lot is in a state of tight space in each historical time period. In this way, the judgment result of the state of tight space in the current time period and the number of times the time period is in a state of tight space in the past time are combined to conduct an in-depth analysis of the parking lot congestion level, thereby effectively improving the accuracy of the parking lot congestion judgment.
[0090] In one embodiment of the present invention, after determining the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage state in the current time period, the method further includes:
[0091] Determine the congestion levels of all parking lots in the target area; average the congestion levels of all parking lots to obtain the parking difficulty level of the target area.
[0092] In one embodiment, the congestion levels of all parking lots in the target area are determined, and then the congestion levels of all parking lots are averaged to obtain the parking difficulty level of the target area, thereby reflecting the overall congestion status of parking lots in the entire area. For example, if the congestion levels of two parking lots in the target area are level 1 and level 6 respectively, the parking difficulty level of the target area is: (1+6) / 2=3.5.
[0093] The embodiment of the present invention integrates the congestion conditions of different parking lots through the above solution, and analyzes the parking difficulty level of the entire target area. Therefore, the parking difficulty level of the target area can be combined to reasonably control and guide the traffic flow in the difficult parking area, reduce traffic congestion caused by parking problems, and improve the user's parking experience.
[0094] Reference Figure 3 , Figure 3 FIG2 is a flow chart of a method for analyzing parking lot congestion level in one embodiment of the present invention; in one embodiment of the present invention, the congestion level of the parking lot is determined based on the number of times and the judgment result of the remaining space shortage state in the current time period, including:
[0095] Step S21: when the result of the judgment is that the parking lot is in a state of insufficient parking space:
[0096] Step S22, comparing the number of times with a preset number threshold to obtain a comparison result;
[0097] Step S23, sliding the current time period according to the preset first time window to obtain a plurality of first divided time periods, and obtaining the first vehicle frequencies in the plurality of first divided time periods based on the target entry and exit records;
[0098] Step S24, sliding the current time period according to the preset second time window to obtain a plurality of second divided time periods, and obtaining the second vehicle frequencies in the plurality of second divided time periods based on the target entry and exit records;
[0099] Step S25, determining the congestion level of the parking lot based on the comparison result, the first vehicle frequency in each first divided time period, and the second vehicle frequency in each second divided time period.
[0100] It should be noted that the first vehicle frequency includes the vehicle entry frequency and vehicle exit frequency in the first divided time period, and the second vehicle frequency refers to the vehicle frequency corresponding to the simultaneous entry and exit behaviors in the second divided time period, that is, the frequency of the same license plate entering and exiting the venue in the second divided time period.
[0101] In one embodiment, when the judgment result is that the parking lot is in a state of tight space: the number of times is compared with the preset number threshold to obtain a comparison result, wherein the preset number threshold is set according to the actual situation of the parking lot and is not specifically limited here. According to the preset first time window, slide in the current time period to divide into multiple first divided time periods, and then based on the target entry and exit records, the first vehicle frequency in multiple first divided time periods is obtained by statistics. For example, the current time period is the time period from 3 pm to 4 pm, the first time window is 20 minutes, and the first divided time periods corresponding to 3:00-3:20, 3:01-3:21, 3:02-3:22 and so on are obtained, and then based on the target entry and exit records, the first vehicle frequency in multiple first divided time periods is obtained by statistics. In addition, according to the preset second time window, the current time period is slid to obtain multiple second divided time periods. The division process of the second divided time periods is similar to the division process of the first divided time periods, which will not be repeated here. Then, based on the target entry and exit records, the second vehicle frequencies in multiple second divided time periods are statistically obtained, wherein the process of calculating the second vehicle frequencies is similar to the statistical process of the above-mentioned first vehicle frequencies, which will not be repeated here.
[0102] Furthermore, when the comparison result is that the number of times is greater than the preset number threshold, it proves that the parking lot has been in a state of tight space for a large number of times in the past period of time. Then, the frequencies of each first vehicle are compared with the first frequency threshold, and the frequencies of each second vehicle are compared with the second frequency threshold; if there is any first vehicle frequency greater than the first frequency threshold, and there is any second vehicle frequency greater than the second frequency threshold, it proves that there is an obvious regularity in the entry and exit of vehicles in a short period of time, and there is a situation in which multiple license plates enter and then leave the parking lot in a short period of time, and then the congestion level of the parking lot is determined to be the first congestion level; if all first vehicle frequencies are not greater than the first frequency threshold, or all second vehicle frequencies are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the second congestion level; wherein, the congestion probability of the first congestion level is greater than the congestion probability of the second congestion level.
[0103] In other embodiments, when the comparison result is that the number of times is not greater than the preset number threshold: it proves that the number of times the parking lot has been in a state of tight space in the past period of time is relatively small. Furthermore, if there is any first vehicle whose frequency is greater than the first frequency threshold, and there is any second vehicle whose frequency is greater than the second frequency threshold, it proves that there is an obvious regularity in and out of vehicles in a short period of time and that multiple license plates enter and then leave the lot within a short period of time, and then the congestion level of the parking lot is determined to be the third congestion level; if the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, the congestion level of the parking lot is determined to be the fourth congestion level; wherein the congestion probability of the third congestion level is greater than the congestion probability of the fourth congestion level, and is less than the congestion probability of the second congestion level.
[0104] The embodiment of the present invention uses the above scheme to count the vehicle entry frequency and vehicle exit frequency in multiple first divided time periods to determine the situation of one entry and one exit in a parking lot in a short period of time; and count the vehicle frequencies corresponding to the simultaneous entry and exit behaviors in multiple second divided time periods to determine the situation of multiple license plates entering and then leaving the parking lot in a short period of time, and also comprehensively determine the congestion level of the parking lot based on the number of times the parking lot is in a state of tight remaining space in each historical time period, thereby effectively improving the accuracy of vehicle congestion judgment.
[0105] Reference Figure 4 , Figure 4 FIG3 is a flow chart of a method for analyzing parking lot congestion level in an embodiment of the present invention; In an embodiment of the present invention, the first time window and the first frequency threshold are determined based on the following steps:
[0106] Step S31, obtaining the entry and exit records corresponding to each period in the preset historical time period;
[0107] Step S32, based on the entry and exit records corresponding to each time period, determining a plurality of target time periods corresponding to the parking lot being in a state of limited parking space;
[0108] Step S33, for any target time period: sliding the target time period according to the preset divided time window to obtain a plurality of third divided time periods;
[0109] Step S34, based on the entry and exit records, counting the third vehicle frequency corresponding to any third divided time period;
[0110] Step S35, if the difference between the entry frequency and the exit frequency corresponding to any third divided time period is less than the preset difference threshold, the divided time window and the third vehicle frequency whose difference is less than the preset difference threshold are recorded;
[0111] Step S36, if the difference between the entry frequency and the exit frequency corresponding to all the third divided time periods is not less than the preset difference threshold, then a new divided time window is determined, so as to return to the step of executing the divided time window, sliding in the target time period, and dividing to obtain a plurality of third divided time periods, wherein the new divided time window is smaller than the divided time window of the last division;
[0112] Step S37, determining a first time window based on all recorded divided time windows, and determining a first frequency threshold based on all recorded third vehicle frequencies.
[0113] In one embodiment, the entry and exit records corresponding to each period in the preset historical time period are obtained. The preset historical time period can be set according to the actual situation and will not be described in detail here. Then, based on the entry and exit records corresponding to any period, it is judged whether the parking lot is in a state of tight space in the period. The judgment process of the state of tight space is specifically described in the above embodiment and will not be described in detail here. Then, according to the judgment result of the state of tight space, multiple target time periods corresponding to the state of tight space in the parking lot are determined.
[0114] Furthermore, the following steps are performed for any target period:
[0115] According to the preset division time window, slide in the target time period to divide and obtain multiple third division time periods, wherein the division time window can be set according to the actual situation, for example, set to 30 minutes, and then based on the entry and exit records, the third vehicle frequency corresponding to each third division time period is counted, wherein the third vehicle frequency includes the entry frequency and exit frequency corresponding to the parking lot under the third division time period. Calculate the difference between the entry frequency and exit frequency corresponding to any third division time period; if there is a difference corresponding to any third division time period that is less than the preset difference threshold, it proves that the frequency of entry and exit of the parking lot in this period is roughly the same, and then record the division time window and the third vehicle frequency whose difference is less than the preset difference threshold. In addition, if the difference corresponding to all third division time periods is not less than the preset difference threshold, determine a new division time window, and return to the step of executing the division time window, sliding in the target time period, and dividing to obtain multiple third division time periods, wherein the new division time window is less than the division time window divided last time, until all the division time windows set are traversed and completed. As a specific example, after filtering out time periods with limited space available based on the entry and exit records corresponding to each time period within a preset historical time period, the time periods with limited space available are subdivided by sliding according to the 30-minute time window. When the difference between the entry frequency and the exit frequency is less than the preset difference threshold, it is considered that there is an obvious regularity in and out of the parking lot in a short period of time, and then the time window and the frequency are recorded. When the difference between the entry frequency and the exit frequency is not less than the preset difference threshold, the time period is appropriately shortened each time, such as 20 minutes, 15 minutes, 10 minutes, and 5 minutes, and the frequency is recalculated, and the time window and the frequency corresponding to the difference less than the preset difference threshold are recorded.
[0116] Furthermore, based on all the recorded divided time windows, the divided time window with the largest value is selected as the first time window. In addition, when there are few remaining parking spaces in the parking lot, the number of vehicles entering and exiting at the same time will be more than that in normal circulation. This is reflected in the frequency histogram as a sudden increase in frequency. For example, there are only 8 or 9 vehicles in a short period of time, and the number suddenly increases to 20 vehicles in a certain period of time, which proves that the frequency of this period has a sudden increase. Based on all the recorded third vehicle frequencies, the frequencies of each sudden increase are determined, and then the minimum value of each sudden increase is used as the first frequency threshold.
[0117] The embodiment of the present invention, through the above scheme, realizes determining multiple target time periods corresponding to the parking lot being in a tight space state based on the entry and exit records corresponding to each time period in the historical time period, and then sliding in the target time period to divide and statistically obtain the third vehicle frequency corresponding to any third divided time period, and then based on the difference between the entry frequency and the exit frequency corresponding to the third divided time period, analyze the situation of one entry and one exit of the parking lot in a short period of time, and record the divided time window and the third vehicle frequency corresponding to the difference less than the preset difference threshold, so as to determine the first time window and the first frequency threshold based on the recorded first time window and all third vehicle frequencies. When the vehicle entry frequency and exit frequency in the subsequent first time window are greater than the first frequency threshold, it can be directly determined that there is a situation of one entry and one exit in the parking lot in a short period of time.
[0118] Reference Figure 5 , Figure 5 FIG4 is a flow chart of a method for analyzing parking lot congestion level in an embodiment of the present invention; in an embodiment of the present invention, the second time window and the second frequency threshold are determined based on the following steps:
[0119] Step S41, obtaining the entry and exit records corresponding to each period in the preset historical time period;
[0120] Step S42, based on the entry and exit records corresponding to each time period, determining a plurality of target time periods corresponding to the parking lot being in a state of limited parking space;
[0121] Step S43, for any target time period: sliding in the target time period according to the preset divided time window to obtain a plurality of fourth divided time periods;
[0122] Step S44, based on the entry and exit records, counting the fourth vehicle frequency corresponding to any fourth divided time period;
[0123] Step S45, determining a vehicle frequency ratio corresponding to any adjacent divided time period based on the fourth vehicle frequencies corresponding to all fourth divided time periods;
[0124] Step S46, if there is any vehicle frequency ratio greater than the preset ratio threshold, then record the fourth vehicle frequency corresponding to the vehicle frequency greater than the preset ratio threshold and divide the time window;
[0125] Step S47, if the frequency ratio of all vehicles is not greater than the preset ratio threshold, a new division time window is determined to return to the step of sliding in the target time period according to the preset division time window to obtain a plurality of fourth division time periods, wherein the new division time window is greater than the division time window of the last division;
[0126] Step S48, determining a second time window based on all recorded divided time windows, and determining a second frequency threshold based on all recorded fourth vehicle frequencies.
[0127] In one embodiment, the entry and exit records corresponding to each period in the preset historical time period are obtained, and then based on the entry and exit records corresponding to any period, it is determined whether the parking lot is in a state of tight space in the period. The process of determining the state of tight space is specifically described in the above embodiment and will not be repeated here. Then, according to the determination result of the state of tight space, multiple target time periods corresponding to the state of tight space are determined.
[0128] Furthermore, the following operations are performed for any target period:
[0129] According to the preset divided time window, slide in the target time period to obtain multiple fourth divided time periods, wherein the divided time window can be set according to the actual situation, for example, set to 5 minutes, and then based on the entry and exit records, the fourth vehicle frequency corresponding to any fourth divided time period is counted, wherein the fourth vehicle frequency refers to the vehicle frequency corresponding to the simultaneous entry and exit behaviors in the fourth divided time period.
[0130] Further, based on the fourth vehicle frequencies corresponding to all fourth divided time periods, the vehicle frequency ratio corresponding to any adjacent divided time period is calculated. For example, for the fourth vehicle frequencies corresponding to 3:00-3:20, 3:01-3:21, and 3:02-3:22, the fourth vehicle frequency of 3:01-3:21 is divided by the fourth vehicle frequency of 3:00-3:20 to obtain the vehicle frequency ratio; the fourth vehicle frequency of 3:02-3:22 is divided by the fourth vehicle frequency of 3:01-3:21 to obtain the vehicle frequency ratio. If there is any vehicle frequency ratio greater than the preset ratio threshold, the fourth vehicle frequency corresponding to the preset ratio threshold and the divided time window are recorded; in addition, if all vehicle frequency ratios are not greater than the preset ratio threshold, a new divided time window is determined to return to the step of slidingly dividing the target time period according to the preset divided time window to obtain multiple fourth divided time periods, wherein the new divided time window is greater than the divided time window of the last division. It should be noted that the preset ratio threshold is determined based on the fourth vehicle frequency of each fourth divided time period in the residual tension state and the fourth vehicle frequency of each fourth divided time period in the non-residual tension state. For example, in one embodiment, the first frequency mean corresponding to the fourth vehicle frequency of each fourth divided time period in the residual tension state is determined, and the second frequency mean corresponding to the fourth vehicle frequency of each fourth divided time period in the non-residual tension state is determined, and then the first frequency mean is divided by the second frequency mean to obtain the preset ratio threshold.
[0131] Furthermore, the divided time window with the smallest value among all the recorded divided time windows is selected as the second time window, and the frequency with the smallest value among all the recorded fourth vehicle frequencies is selected as the second frequency threshold.
[0132] The embodiment of the present invention, through the above scheme, realizes determining multiple target time periods corresponding to the parking lot being in a state of tight remaining space based on the entry and exit records corresponding to each time period in the historical time period, and then sliding in the target time period to divide and statistically obtain the fourth vehicle frequencies corresponding to multiple fourth divided time periods, and combining the fourth vehicle frequencies corresponding to each fourth divided time period to obtain the second time window and the second frequency threshold through comprehensive analysis. When the vehicle frequency in the subsequent second time window is greater than the second frequency threshold, it can be directly determined that there are multiple vehicles in the parking lot that enter and then leave within a short time.
[0133] Reference Figure 6 , Figure 6 FIG5 is a flowchart of a method for analyzing parking lot congestion level in one embodiment of the present invention; in one embodiment of the present invention, the parking lot congestion level is determined based on the number of times and the result of judging the remaining space shortage state in the current time period, including:
[0134] Step S51: when the result of the judgment is that the parking lot is not in a state of insufficient parking space:
[0135] Step S51, comparing the number of times with a preset number threshold;
[0136] Step S51, if the number is greater than the preset number threshold, the congestion level of the parking lot is determined to be the fifth congestion level;
[0137] Step S51: If the number is not greater than the preset number threshold, the congestion level of the parking lot is determined to be the sixth congestion level.
[0138] It should be noted that the congestion probability of the fifth congestion level is greater than the congestion probability of the sixth congestion level, and less than the congestion probability of the fourth congestion level. In one embodiment, when the judgment result is that the parking lot is not in a state of shortage of remaining parking spaces: it is proved that the parking lot has a large number of remaining free parking spaces in the current time period, and the number is compared with the preset number threshold; further, if the number is greater than the preset number threshold, the congestion level of the parking lot is determined to be the fifth congestion level, that is, congestion often occurs in this time period in the past period, and congestion may occur in the parking lot in the current period; if the number is not greater than the preset number threshold, the congestion level of the parking lot is determined to be the sixth congestion level, that is, congestion rarely occurs in this time period in the past period, and vehicles in the parking lot can flow normally in the current period.
[0139] Through the above scheme, the embodiment of the present invention realizes that when the judgment result of the current time period is that the parking lot is not in a state of tight space, based on the number of times that the time period was in a state of tight space in the past time, it is determined whether the parking lot has often been in a state of tight space in the time period in the past time, and then the congestion level of the parking lot is deeply analyzed in combination with the number of times that the time period was in a state of tight space in the past time, thereby effectively improving the accuracy of the parking lot congestion judgment.
[0140] Reference Figure 7 , Figure 7 FIG6 is a flowchart of a method for analyzing parking lot congestion level in an embodiment of the present invention; in an embodiment of the present invention, determining whether the parking lot is in a state of insufficient space in the current period based on target entry and exit records includes:
[0141] Step S61, determining the total number of valid parking spaces in the parking lot;
[0142] Step S62, based on the entry and exit records, determining the number of vehicles entering and exiting the parking lot in the current period;
[0143] Step S63, determining the number of remaining vacant parking spaces in the parking lot in the current period based on the total number of valid parking spaces, the number of vehicles entering the parking lot, and the number of vehicles leaving the parking lot;
[0144] Step S64, determining the ratio between the number of remaining free parking spaces and the total number of valid parking spaces;
[0145] Step S65: if the ratio is less than the preset ratio threshold, it is determined that the parking lot is in a state of tight space availability in the current time period.
[0146] In one embodiment, the total number of valid parking spaces in the parking lot is determined. In addition, based on the entry and exit records, the number of vehicles entering and exiting the parking lot in the current time period is calculated, and then based on the number of vehicles entering and exiting the parking lot in the current time period, the net flow of the parking lot in the current time period is calculated, and the net flow of the parking lot is zi = ci-gi, where ci represents the number of vehicles entering the parking lot and gi represents the number of vehicles exiting the parking lot. Further, based on the total number of valid parking spaces and the net flow of the parking lot, the number of remaining free parking spaces in the parking lot in the current time period is calculated, and the number of remaining free parking spaces ri = Max-zi, where Max represents the total number of valid parking spaces. Further, the ratio between the remaining free parking spaces and the total number of valid parking spaces is calculated; if the ratio is less than a preset ratio threshold, it is determined that the parking lot is in a state of tight remaining spaces in the current time period. If the ratio is not less than the preset ratio threshold, it is determined that the parking lot is not in a state of tight remaining spaces in the current time period.
[0147] The embodiment of the present invention uses the above scheme to determine the number of vehicles entering and exiting the parking lot in the current time period based on the entry and exit records, and then calculate the remaining number of free parking spaces in the parking lot in the current time period based on the total number of valid parking spaces, the number of vehicles entering and the number of vehicles exiting. Based on the remaining number of free parking spaces, it is possible to accurately judge whether the parking lot is in a state of tight remaining spaces in the current time period, and subsequently determine the congestion level of the parking lot in combination with the parking lot status in the current time period.
[0148] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0149] In one embodiment, a parking lot congestion level analysis device is provided, and the parking lot congestion level analysis device corresponds to the parking lot congestion level analysis method in the above embodiment. Figure 8 As shown, Figure 8 1 is a schematic diagram of a structure of a parking lot congestion level analysis device in one embodiment of the present invention, the parking lot congestion level analysis device comprises:
[0150] The acquisition module 71 is used to acquire the target entry and exit records corresponding to the current time period of the parking lot, and the historical entry and exit records of each historical time period that is the same as the current time period;
[0151] The first determination module 72 is used to determine whether the parking lot is in a state of insufficient parking spaces in the current time period based on the target entry and exit records, wherein the state of insufficient parking spaces is used to indicate a state in which the number of remaining free parking spaces in the parking lot in the current time period is less than a preset parking space threshold;
[0152] The second determination module 73 is used to determine the number of times the parking lot is in a state of insufficient space in each historical period based on the historical entry and exit records of each historical period;
[0153] The third determination module 74 is used to determine the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage state in the current time period.
[0154] The third determination module 74 is further used for:
[0155] When it is determined that the parking lot is in a state of limited space:
[0156] Compare the number of times with a preset number threshold to obtain a comparison result;
[0157] According to the preset first time window, the current time period is slid to obtain a plurality of first divided time periods, and based on the target entry and exit records, the first vehicle frequencies in the plurality of first divided time periods are obtained by counting, wherein the first vehicle frequencies include the vehicle entry frequency and the vehicle exit frequency in the first divided time periods;
[0158] According to the preset second time window, the current time period is slid to obtain a plurality of second divided time periods, and based on the target entry and exit records, the second vehicle frequencies in the plurality of second divided time periods are obtained by counting, wherein the second vehicle frequencies refer to the vehicle frequencies corresponding to both the entry behavior and the exit behavior in the second divided time period;
[0159] The congestion level of the parking lot is determined based on the comparison result, the first vehicle frequency in each first divided time period, and the second vehicle frequency in each second divided time period.
[0160] The third determination module 74 is further used for:
[0161] If the comparison result is greater than the preset number threshold:
[0162] If any first vehicle frequency is greater than the first frequency threshold, and any second vehicle frequency is greater than the second frequency threshold, the congestion level of the parking lot is determined to be the first congestion level;
[0163] If the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the second congestion level;
[0164] The congestion probability of the first congestion level is greater than the congestion probability of the second congestion level.
[0165] The third determination module 74 is further used for:
[0166] If the comparison result is that the number of times is not greater than the preset number threshold:
[0167] If any first vehicle frequency is greater than the first frequency threshold, and any second vehicle frequency is greater than the second frequency threshold, the congestion level of the parking lot is determined to be the third congestion level;
[0168] If the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, the congestion level of the parking lot is determined to be the fourth congestion level;
[0169] Among them, the congestion probability of the second congestion level is greater than the congestion probability of the third congestion level; the congestion probability of the third congestion level is greater than the congestion probability of the fourth congestion level.
[0170] The third determination module 74 is further used for:
[0171] If the result of the judgment is that the parking lot is not in a state of shortage of remaining spaces:
[0172] Compare the number of times with a preset number threshold;
[0173] If the number is greater than the preset number threshold, the congestion level of the parking lot is determined to be the fifth congestion level;
[0174] If the number is not greater than the preset number threshold, the congestion level of the parking lot is determined to be the sixth congestion level;
[0175] The congestion probability of the fifth congestion level is greater than the congestion probability of the sixth congestion level.
[0176] The second determining module 72 is further used for:
[0177] Determine the total number of available parking spaces in the parking lot;
[0178] Based on the entry and exit records, determine the number of vehicles entering and leaving the parking lot in the current period;
[0179] Based on the total number of valid parking spaces, the number of vehicles entering the parking lot, and the number of vehicles leaving the parking lot, determine the number of remaining vacant parking spaces in the parking lot during the current period;
[0180] Determine the ratio between the remaining number of free parking spaces and the total number of available parking spaces;
[0181] If the ratio is less than a preset ratio threshold, it is determined that the parking lot is in a state of limited space in the current period.
[0182] The parking lot congestion level analysis device also includes:
[0183] The first time window and the first frequency threshold are determined based on the following steps:
[0184] Get the entry and exit records corresponding to each period in the preset historical time period;
[0185] Based on the entry and exit records corresponding to each time period, multiple target time periods corresponding to the parking lot being in a state of limited remaining space are determined;
[0186] For any target time period: according to the preset divided time window, slide in the target time period to obtain a plurality of third divided time periods;
[0187] Based on the entry and exit records, the third vehicle frequency corresponding to any third divided time period is counted, wherein the third vehicle frequency includes the entry frequency and exit frequency corresponding to the parking lot in the third divided time period;
[0188] If the difference between the entry frequency and the exit frequency corresponding to any third divided time period is less than the preset difference threshold, the divided time window and the third vehicle frequency whose difference is less than the preset difference threshold are recorded;
[0189] If the difference between the entry frequency and the exit frequency corresponding to all the third divided time periods is not less than the preset difference threshold, a new divided time window is determined to return to the step of executing the divided time window and sliding in the target time period to obtain a plurality of third divided time periods, wherein the new divided time window is smaller than the divided time window of the last division;
[0190] A first time window is determined based on all recorded divided time windows, and a first frequency threshold is determined based on all recorded third vehicle frequencies.
[0191] The second time window and the second frequency threshold are determined based on the following steps:
[0192] Get the entry and exit records corresponding to each period in the preset historical time period;
[0193] Based on the entry and exit records corresponding to each time period, multiple target time periods corresponding to the parking lot being in a state of limited remaining space are determined;
[0194] For any target time period: according to the preset divided time window, slide in the target time period to obtain a plurality of fourth divided time periods;
[0195] Based on the entry and exit records, the fourth vehicle frequency corresponding to any fourth divided time period is counted, wherein the fourth vehicle frequency refers to the vehicle frequency corresponding to both the entry and exit behaviors in the fourth divided time period;
[0196] Determine a vehicle frequency ratio corresponding to any adjacent divided time period based on the fourth vehicle frequencies corresponding to all fourth divided time periods;
[0197] If there is any vehicle frequency ratio greater than the preset ratio threshold, then the fourth vehicle frequency corresponding to the vehicle frequency greater than the preset ratio threshold is recorded and the time window is divided;
[0198] If the frequency ratio of all vehicles is not greater than the preset ratio threshold, a new division time window is determined to return to the step of sliding in the target time period according to the preset division time window to obtain a plurality of fourth division time periods, wherein the new division time window is greater than the division time window of the last division;
[0199] A second time window is determined based on all recorded divided time windows, and a second frequency threshold is determined based on all recorded fourth vehicle frequencies.
[0200] The parking lot congestion level analysis device also includes:
[0201] A fourth determination module is used to determine the congestion level of all parking lots in the target area;
[0202] The calculation module is used to average the congestion levels of all parking lots to obtain the parking difficulty level of the target area.
[0203] The specific definition of the parking lot congestion level analysis device can be found in the definition of the parking lot congestion level analysis method above, which will not be repeated here. Each module in the above-mentioned parking lot congestion level analysis device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0204] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown, Fig. 9 : is a schematic diagram of a computer device in an embodiment of the present invention. The computer device includes a processor, a memory, a network interface and a database connected by a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating device, a computer-readable instruction and a database. The internal memory provides an environment for the operation of the operating device and the computer-readable instructions in the readable storage medium. The database of the computer device is used to store data involved in the parking lot congestion level analysis method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a parking lot congestion level analysis method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
[0205] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, and a network interface connected through a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a method for analyzing the congestion level of a parking lot is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
[0206] In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the steps of the parking lot congestion level analysis method described above are implemented.
[0207] In one embodiment, a readable storage medium is provided, the readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor to implement the steps of the parking lot congestion level analysis method as described above. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0208] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0209] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for analyzing parking lot congestion level, characterized in that: include: Obtain the target entry and exit records corresponding to the current time period, as well as the historical entry and exit records of each historical time period that is the same as the current time period; Based on the target entry and exit records, determining whether the parking lot is in a state of insufficient parking spaces in the current time period, wherein the state of insufficient parking spaces refers to a state in which the number of remaining free parking spaces in the parking lot in the current time period is less than a preset parking space threshold or a state in which the ratio of the number of remaining free parking spaces to the total number of valid parking spaces in the parking lot is less than a preset ratio threshold; Based on the historical entry and exit records of each of the historical periods, determine the number of times the parking lot was in a state of insufficient parking space in each of the historical periods; The congestion level of the parking lot is determined based on the number of times and the judgment result of the remaining space shortage state in the current time period.
2. The parking lot congestion level analysis method according to claim 1, characterized in that: The determining of the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage state in the current time period includes: When the judgment result is that the parking lot is in a state of limited remaining space: Compare the number of times with a preset number threshold to obtain a comparison result; According to the preset first time window, the current time period is slid to obtain a plurality of first divided time periods, and based on the target entry and exit records, the first vehicle frequencies in the plurality of first divided time periods are obtained by counting, wherein the first vehicle frequencies include vehicle entry frequencies and vehicle exit frequencies in the first divided time periods; According to the preset second time window, the current time period is slid to obtain a plurality of second divided time periods, and based on the target entry and exit records, the second vehicle frequencies in the plurality of second divided time periods are obtained by counting, wherein the second vehicle frequency refers to the vehicle frequencies corresponding to both entry and exit behaviors in the second divided time periods; The congestion level of the parking lot is determined based on the comparison result, the first vehicle frequency in each of the first divided time periods, and the second vehicle frequency in each of the second divided time periods.
3. The parking lot congestion level analysis method according to claim 2, characterized in that: The determining the congestion level of the parking lot based on the comparison result, the first vehicle frequency in each of the first divided time periods, and the second vehicle frequency in each of the second divided time periods includes: If the comparison result is that the number of times is greater than the preset number threshold: If any of the first vehicles has a frequency greater than a first frequency threshold, and any of the second vehicles has a frequency greater than a second frequency threshold, then the congestion level of the parking lot is determined to be a first congestion level; If the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the second congestion level; The congestion probability of the first congestion level is greater than the congestion probability of the second congestion level.
4. The parking lot congestion level analysis method according to claim 3, characterized in that: The determining the congestion level of the parking lot based on the comparison result, the first vehicle frequency in each of the first divided time periods, and the second vehicle frequency in each of the second divided time periods includes: If the comparison result is that the number of times is not greater than the preset number threshold: If any of the first vehicles has a frequency greater than a first frequency threshold, and any of the second vehicles has a frequency greater than a second frequency threshold, then the congestion level of the parking lot is determined to be a third congestion level; If the frequencies of all first vehicles are not greater than the first frequency threshold, or the frequencies of all second vehicles are not greater than the second frequency threshold, then the congestion level of the parking lot is determined to be the fourth congestion level; The congestion probability of the second congestion level is greater than the congestion probability of the third congestion level; and the congestion probability of the third congestion level is greater than the congestion probability of the fourth congestion level.
5. The parking lot congestion level analysis method according to claim 3 or 4, characterized in that: The first time window and the first frequency threshold are determined based on the following steps: Get the entry and exit records corresponding to each period in the preset historical time period; Based on the entry and exit records corresponding to the time periods, a plurality of target time periods corresponding to the parking lot being in a state of limited parking space are determined; For any target time period: sliding in the target time period according to the preset divided time window to obtain a plurality of third divided time periods; Based on the entry and exit records, counting the third vehicle frequency corresponding to any of the third divided time periods, wherein the third vehicle frequency includes the entry frequency and exit frequency corresponding to the parking lot in the third divided time period; If the difference between the entry frequency and the exit frequency corresponding to any of the third divided time periods is less than a preset difference threshold, the divided time window and the third vehicle frequency whose difference is less than the preset difference threshold are recorded; If the difference between the entry frequency and the exit frequency corresponding to all the third divided time periods is not less than the preset difference threshold, a new divided time window is determined to return to the step of sliding in the target time period according to the preset divided time window to obtain a plurality of third divided time periods, wherein the new divided time window is smaller than the divided time window of the last division; The first time window is determined based on all recorded divided time windows, and the first frequency threshold is determined based on all recorded third vehicle frequencies.
6. The parking lot congestion level analysis method according to claim 3 or 4, characterized in that: The second time window and the second frequency threshold are determined based on the following steps: Get the entry and exit records corresponding to each period in the preset historical time period; Based on the entry and exit records corresponding to the time periods, a plurality of target time periods corresponding to the parking lot being in a state of limited parking space are determined; For any target time period: sliding in the target time period according to the preset divided time window to obtain a plurality of fourth divided time periods; Based on the entry and exit records, counting the fourth vehicle frequency corresponding to any of the fourth divided time periods, wherein the fourth vehicle frequency refers to the vehicle frequency corresponding to both entry and exit behaviors in the fourth divided time period; Determine a vehicle frequency ratio corresponding to any adjacent divided time period based on the fourth vehicle frequencies corresponding to all fourth divided time periods; If any of the vehicle frequency ratios is greater than a preset ratio threshold, a fourth vehicle frequency corresponding to the vehicle frequency greater than the preset ratio threshold is recorded and a time window is divided; If the frequency ratio of all vehicles is not greater than the preset ratio threshold, a new division time window is determined to return to the step of sliding in the target time period according to the preset division time window to obtain a plurality of fourth division time periods, wherein the new division time window is greater than the division time window of the last division; The second time window is determined based on all recorded divided time windows, and the second frequency threshold is determined based on all recorded fourth vehicle frequencies.
7. The method for analyzing parking lot congestion level according to claim 1, characterized in that: The determining of the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage state in the current time period includes: When the judgment result is that the parking lot is not in a state of insufficient space: Comparing the number of times with a preset number threshold; If the number is greater than a preset number threshold, determining that the congestion level of the parking lot is the fifth congestion level; If the number is not greater than the preset number threshold, determining that the congestion level of the parking lot is the sixth congestion level; The congestion probability of the fifth congestion level is greater than the congestion probability of the sixth congestion level.
8. The method for analyzing parking lot congestion level according to claim 1, characterized in that: The determining, based on the target entry and exit record, whether the parking lot is in a state of limited parking spaces in the current time period includes: Determine the total number of available parking spaces in the parking lot; Based on the entry and exit records, determine the number of vehicles entering and exiting the parking lot in the current period; Determine the number of remaining free parking spaces in the parking lot in the current time period based on the total number of valid parking spaces, the number of vehicles entering the parking lot, and the number of vehicles leaving the parking lot; Determine the ratio between the remaining number of free parking spaces and the total number of valid parking spaces; If the ratio is less than a preset ratio threshold, it is determined that the parking lot is in a state of limited space in the current time period.
9. The parking lot congestion level analysis method according to claim 1, characterized in that: After determining the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage state in the current time period, the method further includes: Determine the congestion level of all parking lots in the target area; The congestion levels of all the parking lots are averaged to obtain the parking difficulty level of the target area.
10. A parking lot congestion level analysis device, characterized in that: include: The acquisition module is used to acquire the target entry and exit records corresponding to the current time period of the parking lot, as well as the historical entry and exit records of each historical time period that is the same as the current time period; A first determination module is used to determine whether the parking lot is in a state of insufficient parking spaces in the current time period based on the target entry and exit records, wherein the state of insufficient parking spaces is used to indicate a state in which the number of remaining free parking spaces in the parking lot in the current time period is less than a preset parking space threshold; A second determination module is used to determine the number of times the parking lot is in a state of insufficient space in each of the historical time periods based on the historical entry and exit records of each of the historical time periods; The third determination module is used to determine the congestion level of the parking lot based on the number of times and the judgment result of the remaining space shortage state in the current time period.