Check port clock asynchronization checking method, device and equipment and storage medium
By analyzing the historical detection data of the bayonet and the positioning data of the floating vehicle, calculating the current scattered distance and comparing it with the reasonable scattered distance, the problem of low efficiency of checking the clock out of synchronization is solved, and more efficient and accurate inspection is achieved.
Patent Information
- Application Number
- CN202311139250.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, the efficiency of checking the problem of clocks that are not synchronized by the bayonet is extremely low, especially in large-scale bayonet systems, it is unrealistic to manually check one by one.
By obtaining the historical detection data of the target mount, filtering out the data of the detected floating vehicle, extracting the positioning data of the floating vehicle, calculating the median and distance of the positioning data, determining the current scattered distance, and comparing it with the reasonable scattered distance to determine whether the bayonet clock is not synchronized.
It improves the efficiency and accuracy of the check of the clock asynchronous inspection, eliminates the huge workload of manual inspections one by one, and can screen out the severity of the clock asynchronous inspections of each check.
Smart Images

Figure CN119584177A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of checkpoint detection, and in particular to a method, device, equipment and storage medium for troubleshooting checkpoint clock asynchrony. Background Art
[0002] At present, many cities at home and abroad have deployed a variety of checkpoint equipment such as electronic police checkpoints and public security checkpoints equipped with license plate recognition technology. Their widespread use has greatly improved the law enforcement, management, control and service levels of traffic management departments. At the same time, it has also made it possible to accurately grasp when and where individual vehicles travel, thereby perceiving the operating conditions of the entire traffic network. Whether the checkpoint data can be effectively used depends on whether its detection time is accurate, that is, whether its clock is synchronized and whether the clock error is within an acceptable range. However, in the daily operation of the checkpoint, it is inevitable that the clock will be out of sync, and the longer it is used, the greater the possibility of clock out of sync and the greater the degree of clock error, which will have a greater impact on the traffic management department's use of checkpoint data for law enforcement and management.
[0003] Currently, the troubleshooting of clock asynchrony at checkpoints mainly relies on manual operation, which is to log in to the checkpoint terminal to check whether the checkpoint clock is synchronized with the current time. However, considering the huge volume of checkpoints built in major and medium-sized cities, and the fact that the checkpoint clock will have a certain error every once in a while, it is obviously unrealistic to manually check every checkpoint, and the troubleshooting efficiency is extremely low. Summary of the invention
[0004] In view of this, the present application provides a method, device, equipment and storage medium for troubleshooting card slot clock asynchrony, so as to improve the efficiency and accuracy of troubleshooting card slot clock asynchrony.
[0005] One aspect of the present application provides a method for troubleshooting asynchronism of a card slot clock, comprising:
[0006] Acquire historical detection data of the target checkpoint within a set time period, and filter out detection data of a floating vehicle detected from the historical detection data as the checkpoint detection data;
[0007] Extracting positioning data of each floating vehicle from the positioning data acquisition device of each floating vehicle according to the bayonet detection data, wherein the positioning data includes the longitude and latitude at the time of positioning;
[0008] Calculate the median of each longitude and each latitude respectively to obtain the longitude and latitude of the distribution center of each positioning data;
[0009] Calculating the distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center, and determining the current scattering distance of the target bayonet according to each calculated distance;
[0010] A reasonable dispersion distance is determined, and the current dispersion distance is compared with the reasonable dispersion distance, and it is determined whether the target bayonet has clock asynchronism according to the comparison result.
[0011] Optionally, the step of filtering out detection data of a floating vehicle from the historical detection data as the checkpoint detection data includes:
[0012] Detection data of the license plate number of the floating vehicle is screened out from the historical detection data, and the license plate number and the corresponding detection time are used as the checkpoint detection data.
[0013] Optionally, the positioning data includes a license plate number, a collection time, a longitude at the time of positioning, and a latitude at the time of positioning;
[0014] The positioning data of each floating vehicle is extracted from the positioning data acquisition device of each floating vehicle according to the bayonet detection data, and the positioning data includes the longitude and latitude at the time of positioning, including:
[0015] According to each moment when each floating vehicle is detected by the target checkpoint, a piece of positioning data is extracted, the license plate number in the positioning data being consistent with the license plate number in the checkpoint detection data and the collection time being closest to the detection time in the checkpoint detection data.
[0016] Optionally, respectively calculating the median of each of the longitudes and each of the latitudes to obtain the longitude and latitude of the distribution center of each of the positioning data includes:
[0017] Calculate the median longitude of each of the longitudes according to the first expression, calculate the median latitude of each of the latitudes according to the second expression, and combine the median longitude and the median latitude as the longitude and longitude of the distribution center of the positioning data;
[0018] The first expression is:
[0019] lon c = median{lon 1 ,lon 2 ,...,lon i ,...,lon n}
[0020] The second expression is:
[0021] lat c =median{lat 1 ,lat 2 , ..., lat i , ..., lat n}
[0022] Among them, n represents the number of positioning data, lon i Indicates the longitude of the i-th positioning data, lat i Indicates the latitude of the i-th positioning data, lon c Indicates the longitude of the scatter center, lat c It represents the latitude of the center of the scatter, and median is the sign of the median.
[0023] Optionally, calculating the distance between the longitude and latitude of each positioning data and the longitude and latitude of the distribution center, and determining the current distribution distance of the target bayonet according to each calculated distance includes:
[0024] The distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center is calculated according to the third expression, and the third expression is:
[0025]
[0026] Among them, d i represents the distance between the longitude and latitude of the ith positioning data and the longitude and latitude of the distribution center;
[0027] The calculated distances are sorted from small to large, and the distance ranked m% is taken as the current spread distance of the target bayonet.
[0028] Optionally, determining a reasonable scattering distance includes:
[0029] The reasonable spread distance is calculated according to the fourth expression, which is:
[0030]
[0031] Among them, d p represents the reasonable scattering distance, t f represents the sampling frequency of the floating car data, t e represents the clock error time allowed by the target checkpoint, and v represents the maximum speed limit of the road where the target checkpoint is located.
[0032] Optionally, comparing the current dispersion distance with the reasonable dispersion distance, and judging whether the target checkpoint has clock asynchronism according to the comparison result, includes:
[0033] Comparing the current dispersion distance with the reasonable dispersion distance;
[0034] If the current spread distance is greater than the reasonable spread distance, it is determined that the target bayonet has clock asynchronism;
[0035] If the current spread distance is less than or equal to the reasonable spread distance, it is determined that there is no clock asynchronism at the target bayonet.
[0036] Another aspect of the present application further provides a device for troubleshooting asynchronism of a checkpoint clock, comprising:
[0037] The first unit is used to obtain historical detection data of the target checkpoint within a set time period, and filter out detection data of the floating vehicle detected from the historical detection data as the checkpoint detection data;
[0038] The second unit is used to extract the positioning data of each floating vehicle from the positioning data acquisition device of each floating vehicle according to the bayonet detection data, and the positioning data includes the longitude and latitude at the time of positioning;
[0039] The third unit is used to calculate the median of each of the longitudes and each of the latitudes, respectively, to obtain the longitude and latitude of the distribution center of each of the positioning data;
[0040] The fourth unit is used to calculate the distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center, and determine the current scattering distance of the target bayonet according to each calculated distance;
[0041] The fifth unit is used to determine a reasonable dispersion distance, compare the current dispersion distance with the reasonable dispersion distance, and determine whether the target bayonet has clock asynchronism according to the comparison result.
[0042] Another aspect of the present application also provides an electronic device, including a processor and a memory;
[0043] The memory is used to store programs;
[0044] The processor executes the program to implement the method described.
[0045] Another aspect of the present application further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described.
[0046] The present application also discloses a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the above method.
[0047] This application first obtains the historical detection data of the target checkpoint within a set time period, and selects the detection data of the floating vehicle detected from the historical detection data as the checkpoint detection data; then extracts the positioning data of each floating vehicle from the positioning data acquisition device of each floating vehicle according to the checkpoint detection data, and the positioning data includes the longitude at the time of positioning and the latitude at the time of positioning; then calculates the median of each longitude and each latitude respectively, and obtains the longitude and latitude of the distribution center of each positioning data; then calculates the distance between the longitude and latitude of each positioning data and the longitude and latitude of the distribution center, and determines the current distribution distance of the target checkpoint according to the calculated distances; finally determines the reasonable distribution distance, and compares the current distribution distance with the reasonable distribution distance, and judges whether the target checkpoint has clock asynchrony according to the comparison result. Through this application, the huge workload of manually checking the clocks of each checkpoint can be avoided, and the severity of the clock asynchrony of each checkpoint can be screened out according to the comparison result of the current distribution distance and the reasonable distribution distance, making the check of clock asynchrony at the checkpoint more convenient, efficient and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 A flowchart of a method for troubleshooting asynchronism of a checkpoint clock provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of the distribution of positioning data detected by a checkpoint provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of the distribution of positioning data detected by another type of bayonet provided in an embodiment of the present application;
[0052] Figure 4 A structural block diagram of a device for troubleshooting clock asynchrony at a checkpoint provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] It should be noted that although the functional modules are divided in the device schematic and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.
[0055] The terms "first", "second", etc. in the specification and claims and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Moreover, the terms "comprises", "comprising", or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article, or device. In the absence of further limitations, an element limited by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0057] In addition to the checkpoint data, the floating vehicle positioning data is another source of urban traffic information. At present, taxis, buses and other operating vehicles in major and medium-sized cities have installed positioning data collection equipment, which can collect the latitude and longitude, speed, direction and other information of each floating vehicle at any time. Through a sufficient number of floating vehicles, the traffic operation status of each section of the city can be obtained. Thanks to the good accuracy and real-time nature of the floating vehicle positioning data, as well as the rich traffic information such as the detected longitude and latitude, driving speed, driving direction, etc., combined with the checkpoint data, some verification and auxiliary correction can be made to the checkpoint.
[0058] In view of the limitations of the current methods for troubleshooting checkpoint clock asynchrony problems, this application proposes a checkpoint clock asynchrony troubleshooting method based on floating vehicle positioning data, which can not only avoid the huge workload of manually checking the checkpoint clocks one by one, but also screen out the severity of the asynchrony of each checkpoint clock, making the checkpoint clock asynchrony troubleshooting more convenient, efficient and accurate.
[0059] Next, a method for troubleshooting a clock asynchronization problem provided by the present application is described in detail. Figure 1 The method may include steps S100 to S140, which are specifically as follows:
[0060] S100: Acquire historical detection data of a target checkpoint within a set time period, and filter out detection data of a floating vehicle from the historical detection data as the checkpoint detection data.
[0061] First, the checkpoints of the embodiments of the present application are described, which may include electronic police checkpoints, public security checkpoints, video surveillance (video structuring) multiplexing checkpoints, and other detection checkpoints equipped with license plate recognition equipment.
[0062] It should be noted that the set time period can be one month, three months or half a year, etc. The specific duration can be determined according to actual needs and is not strictly limited in the embodiments of the present application.
[0063] Specifically, a target checkpoint to be checked is selected, historical detection data of the target checkpoint for several days is obtained, and data in which floating vehicles are detected in the historical detection data are screened.
[0064] Furthermore, the historical detection data of the target checkpoint may include the license plate number and the detection time. Therefore, the detection data of the detected floating vehicle is screened out from the historical detection data as the checkpoint detection data. This step may further include:
[0065] Detection data of the license plate number of the floating vehicle is screened out from the historical detection data, and the license plate number and the corresponding detection time are used as the checkpoint detection data.
[0066] S110: extracting positioning data of each floating vehicle from the positioning data acquisition device of each floating vehicle according to the checkpoint detection data, wherein the positioning data includes the longitude and latitude at the time of positioning.
[0067] In addition to longitude and latitude, the positioning data may also include the license plate number of the corresponding floating vehicle and the collection time of the collected data, so S110 may further include:
[0068] According to each moment when each floating vehicle is detected by the target checkpoint, a piece of positioning data is extracted, the license plate number in the positioning data being consistent with the license plate number in the checkpoint detection data and the collection time being closest to the detection time in the checkpoint detection data.
[0069] Specifically, the positioning data of each floating vehicle is extracted, and according to each moment when each floating vehicle is detected by the target checkpoint, only one piece of positioning data is extracted, the license plate of the floating vehicle positioning data is consistent with the license plate detected by the checkpoint, and the positioning data collection time is closest to the time when it is detected by the checkpoint; in addition, the embodiment of the present application can also extract more than one piece of data, and the specific number of extracted pieces is subject to actual needs. Generally speaking, for floating vehicles operating in the city, the positioning data collection equipment installed thereon will collect positioning data once every period of time. Therefore, the collection time of the positioning data extracted from the positioning data collection equipment of each floating vehicle in the embodiment of the present application can be set to not exceed the time interval for the positioning data collection equipment to collect data. Exemplarily, the time interval can be 10 seconds. The extracted positioning data of the floating vehicle may include: license plate number, collection time, longitude, and latitude.
[0070] S120: Calculate the median of each of the longitudes and each of the latitudes respectively to obtain the longitude and longitude of the distribution center of each of the positioning data.
[0071] Further, S120 may include:
[0072] Calculate the median longitude of each of the longitudes according to the first expression, calculate the median latitude of each of the latitudes according to the second expression, and combine the median longitude and the median latitude as the longitude and longitude of the distribution center of the positioning data;
[0073] The first expression is:
[0074] lon c =median{lon 1 ,lon 2 ,...,lon i ,...,lon n}
[0075] The second expression is:
[0076] lat c =median{lat 1 ,lat 2 , ..., lat i , ..., lat n}
[0077] Among them, n represents the number of positioning data, lon i Indicates the longitude of the i-th positioning data, lat i Indicates the latitude of the i-th positioning data, lon c Indicates the longitude of the scatter center, lat c It represents the latitude of the center of the scatter, and median is the symbol for finding the median.
[0078] Specifically, the median of the longitude and latitude of each positioning data is calculated to obtain the longitude and latitude of the distribution center of the positioning data. Assuming that there are n records of the filtered positioning data, the embodiment of the present application can record the longitude of the i-th GPS record as lon i , latitude is denoted as lat i , then the longitude of the center of the distribution of the positioning data is lon c , scatter center latitude lat c It can be obtained by finding the median, as shown in the following expression, where "median" is the symbol for finding the median:
[0079] lon c = median{lon 1 ,lon 2 ,...,lon i ,...,lon n} (1)
[0080] lat c =median{lat 1 ,lat 2 , ..., lat i , ..., lat n} (2)
[0081] S130: Calculate the distance between the longitude and latitude of each positioning data and the longitude and latitude of the distribution center, and determine the current distribution distance of the target bayonet according to the calculated distances.
[0082] Specifically, the longitude and latitude of each positioning data corresponds to a position, and the longitude and latitude of the scatter center also corresponds to a position. Therefore, the embodiment of the present application can calculate the distance between the position corresponding to each positioning data and the position corresponding to the scatter center.
[0083] Further, S130 may include:
[0084] The distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center is calculated according to the third expression, and the third expression is:
[0085]
[0086] Among them, d i represents the distance between the longitude and latitude of the ith positioning data and the longitude and latitude of the distribution center;
[0087] The calculated distances are sorted from small to large, and the distance ranked m% is taken as the current spread distance of the target bayonet.
[0088] Specifically, the distance between the longitude and latitude of each positioning data and the longitude and latitude of the distribution center is calculated, and the calculated distances are sorted from small to large, and the distance ranked m% is taken as the current distribution distance of the target checkpoint. For example, the embodiment of the present application can select the 90% digit as the current distribution distance of the target checkpoint. Then, the distance d from the longitude and latitude of the i-th positioning data to the longitude and latitude of the current distribution center is calculated by the following expression: i (Unit: meter):
[0089]
[0090] For each distance {d 1 , d 2 , ..., d i , ..., d n} Sort from small to large, and take the 90% digit as the current scatter distance d of the target bayonet detection s .
[0091] Current spread distance d s It can be used to reflect whether there is a clock asynchrony problem at the target checkpoint and the severity of the clock asynchrony problem. Assuming that the positioning data clock is accurate, if the target checkpoint clock is more accurate, then at the moment of detection by the target checkpoint, the spatial range of the positioning data of different floating vehicles will be smaller, and they will be mainly concentrated near the target checkpoint. On the contrary, if the target checkpoint clock error is larger, at the moment of detection by the target checkpoint with error, the floating vehicle is not near the target checkpoint, but on a road that is reachable in any time and space in all directions within the time range of the clock error. The larger the target checkpoint clock error, the larger the spatial range of the positioning data of different floating vehicles will be. The current dispersion distance d s The bigger.
[0092] S140: Determine a reasonable spread distance, compare the current spread distance with the reasonable spread distance, and determine whether the target checkpoint has clock asynchronism according to the comparison result.
[0093] Furthermore, the step of determining a reasonable dispersion distance may include:
[0094] The reasonable spread distance is calculated according to the fourth expression, which is:
[0095]
[0096] Among them, d p represents the reasonable scattering distance, t f represents the sampling frequency of the floating car data, t e represents the clock error time allowed by the target checkpoint, and v represents the maximum speed limit of the road where the target checkpoint is located.
[0097] Specifically, it is determined whether the current dispersion distance is within the reasonable dispersion distance range. If it exceeds the reasonable dispersion distance, it is determined that the target card port has a clock asynchronization problem. p (Unit: meter) The calculation expression is as follows, where t f is the sampling frequency of the floating car data (in seconds), t e is the clock error time allowed by the target checkpoint (10 seconds is acceptable), and v is the maximum speed limit of the road where the target checkpoint is located (40 km / h is generally acceptable for ground roads):
[0098]
[0099] Then, the current dispersion distance is compared with the reasonable dispersion distance, and it is determined whether the target bayonet has clock asynchronism according to the comparison result. This step may further include:
[0100] Comparing the current dispersion distance with the reasonable dispersion distance;
[0101] If the current spread distance is greater than the reasonable spread distance, it is determined that the target bayonet has clock asynchronism;
[0102] If the current spread distance is less than or equal to the reasonable spread distance, it is determined that there is no clock asynchronism at the target bayonet.
[0103] Specifically, if the current scatter distance d s >Reasonable spreading distance d p , it is judged that the target card port has a clock asynchronism problem, and the current dispersion distance d s The larger it is, the more serious the problem of clock desynchronization will be.
[0104] Next, the application process of this application is explained with reference to the accompanying drawings and specific examples.
[0105] In the embodiment of the present application, the preset implementation conditions are: 1. The detection quality and data status of the target checkpoint (hereinafter referred to as the checkpoint) are good, and there are not too many license plate omissions or license plate recognition errors. 2. There is a floating car passing by the road section where the checkpoint is located, and the checkpoint can capture the floating car. 3. The sampling frequency of the floating car positioning data does not exceed 10 seconds, and there is no clock error or the clock error is small.
[0106] Step 1: Select a target checkpoint, obtain its historical detection data for several days, and filter the data in which floating vehicles are detected. The historical detection data of the checkpoint includes: license plate number and detection time.
[0107] Reference Figure 2 and Figure 3, an embodiment of the present application provides a distribution diagram of positioning data detected by two different checkpoints.
[0108] Specifically, the historical detection data of two checkpoints in a certain city on several days in December 2022 and the taxi location data of the city within the above time range are selected as implementation cases. The following is an example of the detection record of the checkpoint for floating vehicles, where "*" is an encrypted character:
[0109] Table 1 is an example of the detection record of the bayonet on the floating vehicle, as follows:
[0110] Target mount Floating vehicle license plate number Checkpoint detection time A *A***A2 2022 / 12 / 12 12:46:28 A *A***B7 2022 / 12 / 12 16:24:57 B *A***R5 2022 / 12 / 12 04:05:08 B *A***76 2022 / 12 / 12 16:52:05
[0111] Step 2: Extract the positioning data of each floating vehicle. According to each moment when each floating vehicle is detected by the checkpoint, only extract the one positioning data whose license plate of the floating vehicle positioning data is consistent with the license plate detected by the checkpoint and the time of positioning data collection is closest to the time when it is detected by the checkpoint. Generally speaking, floating vehicles operating in the city collect positioning data every 10 seconds. Therefore, it is required that the difference between the time of positioning data collection and the time when it is detected by the checkpoint in the extracted data cannot exceed 10 seconds. The content of the extracted floating vehicle positioning data includes: license plate number, collection time, longitude, and latitude.
[0112] Table 2 is an example of the extracted bayonet detection data and its floating vehicle positioning data, as follows:
[0113]
[0114] Step 3: Calculate the median of the longitude and latitude of each positioning data to obtain the longitude and latitude of the distribution center of the positioning data. Assume that there are n records of the filtered positioning data, and record the longitude of the i-th GPS record as lon i , latitude is denoted as lat i , then the longitude of the center of the distribution of the positioning data is lon c , scatter center latitude lat c It can be obtained by finding the median, as shown in the following formula, where "median" is the symbol for finding the median:
[0115] lon c = median{lon 1 ,lon 2 ,...,lon i ,...,lon n} (5)
[0116] lat c =median{lat 1 ,lat 2 , ..., lat i , ..., latn} (6)
[0117] Figure 2 The position of the bayonet A and the position distribution of the positioning data of the floating vehicle detected by it at similar collection time are shown. The calculated scatter center longitude lon c , scatter center latitude lat c They are 113.3220291 and 23.0929412 respectively. Figure 3 The position of the bayonet B and the position distribution of the positioning data of the floating vehicle detected by it at a similar collection time are shown. The calculated scatter center longitude lon c , scatter center latitude lat c They are 113.2565994 and 23.1046180 respectively.
[0118] Step 4: Calculate the distance between the longitude and latitude of each positioning data and the longitude and latitude of the distribution center, and use the 90% digit of the distance value sorted from small to large as the current distribution distance of the card mouth detection. The distance d from the longitude and latitude of the i-th positioning data to the longitude and latitude of the distribution center can be calculated by the following formula: i (Unit: meter):
[0119]
[0120] For each distance {d 1 , d 2 , ..., d i , ..., d n} Sort from small to large, and take the 90% digit as the current scatter distance d of the bayonet detection s .
[0121] Current spread distance d s It can be used to reflect whether there is a clock asynchrony problem at the checkpoint and the severity of the clock asynchrony problem. Assuming that the positioning data clock is accurate, if the checkpoint clock is more accurate, the spatial range of the positioning data of different floating vehicles will be smaller at the moment of detection by the checkpoint, and it will be mainly concentrated near the checkpoint. On the contrary, if the checkpoint clock error is larger, at the moment of detection by the checkpoint with error, the floating vehicle is not near the checkpoint, but on the road that can be reached in any time and space in all directions within the time range of the clock error. The larger the checkpoint clock error, the larger the spatial range of the positioning data of different floating vehicles. The current dispersion distance d s The bigger.
[0122] Figure 2 Current dispersion distance d calculated by the middle mount A s =539 meters, Figure 3 Current dispersion distance d calculated by the middle mount B s =49 meters.
[0123] Step 5: Determine whether the current dispersion distance is within the reasonable dispersion distance range. If it exceeds the reasonable dispersion distance, it is determined that the camera has a clock asynchrony problem. Reasonable dispersion distance d p (Unit: meter) The calculation formula is as follows, where t f is the sampling frequency of the floating car data (in seconds), t e is the clock error time allowed by the checkpoint (10 seconds is acceptable), and v is the maximum speed limit of the road where the checkpoint is located (40 km / h is generally acceptable for ground roads):
[0124]
[0125] If the current scatter distance d s >Reasonable spreading distance d p , it is judged that there is a clock asynchronization problem at the card port, and the current dispersion distance d s The larger it is, the more serious the problem of clock desynchronization will be.
[0126] The maximum speed limit v of the roads where checkpoints A and B are located is 40km / h, and the sampling frequency t f , the clock error time t allowed by the card slot e Take 10 seconds for each, and calculate the reasonable dispersion distance d of the two bayonet ports p The current dispersion distance d of the bayonet A is 222 meters. s =539m>222m, so it is judged that there is a clock asynchrony problem. The current dispersion distance d of the bayonet B s =49m<222m, so there is no clock asynchrony problem.
[0127] Reference Figure 4 The embodiment of the present application provides a device for checking the asynchronism of the card slot clock, comprising:
[0128] The first unit is used to obtain historical detection data of the target checkpoint within a set time period, and filter out detection data of the floating vehicle detected from the historical detection data as the checkpoint detection data;
[0129] The second unit is used to extract the positioning data of each floating vehicle from the positioning data acquisition device of each floating vehicle according to the bayonet detection data, and the positioning data includes the longitude and latitude at the time of positioning;
[0130] The third unit is used to calculate the median of each of the longitudes and each of the latitudes, respectively, to obtain the longitude and latitude of the distribution center of each of the positioning data;
[0131] The fourth unit is used to calculate the distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center, and determine the current scattering distance of the target bayonet according to each calculated distance;
[0132] The fifth unit is used to determine a reasonable dispersion distance, compare the current dispersion distance with the reasonable dispersion distance, and determine whether the target bayonet has clock asynchronism according to the comparison result.
[0133] The specific implementation of the screening device is basically the same as the specific implementation of the above screening method, and will not be repeated here.
[0134] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned troubleshooting method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0135] Specifically, the electronic device may be a user terminal or a server.
[0136] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned troubleshooting method is implemented.
[0137] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0138] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the electronic device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction so that the electronic device executes Figure 1 The method shown.
[0139] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are expected, wherein the order of various operations is changed and the sub-operation described as a part of a larger operation is performed independently.
[0140] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.
[0141] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0142] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0143] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0144] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0145] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0146] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
[0147] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the described embodiments. Technical personnel familiar with the field may make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A method for troubleshooting asynchronism of a card slot clock, characterized in that: include: Acquire historical detection data of the target checkpoint within a set time period, and filter out detection data of a floating vehicle detected from the historical detection data as the checkpoint detection data; Extracting positioning data of each floating vehicle from the positioning data acquisition device of each floating vehicle according to the bayonet detection data, wherein the positioning data includes the longitude and latitude at the time of positioning; Calculate the median of each longitude and each latitude respectively to obtain the longitude and latitude of the distribution center of each positioning data; Calculating the distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center, and determining the current scattering distance of the target bayonet according to each calculated distance; A reasonable dispersion distance is determined, and the current dispersion distance is compared with the reasonable dispersion distance, and it is determined whether the target bayonet has clock asynchronism according to the comparison result.
2. A method for troubleshooting asynchronism of a card slot clock according to claim 1, characterized in that: The step of filtering out the detection data of the floating vehicle from the historical detection data as the checkpoint detection data includes: Detection data of the license plate number of the floating vehicle is screened out from the historical detection data, and the license plate number and the corresponding detection time are used as the checkpoint detection data.
3. A method for troubleshooting asynchronism of a bayonet clock according to claim 2, characterized in that: The positioning data includes the license plate number, the collection time, the longitude at the time of positioning, and the latitude at the time of positioning; The positioning data of each floating vehicle is extracted from the positioning data acquisition device of each floating vehicle according to the bayonet detection data, and the positioning data includes the longitude and latitude at the time of positioning, including: According to each moment when each floating vehicle is detected by the target checkpoint, a piece of positioning data is extracted, the license plate number in the positioning data being consistent with the license plate number in the checkpoint detection data and the collection time being closest to the detection time in the checkpoint detection data.
4. The method for troubleshooting the asynchronism of the card slot clock according to claim 1, characterized in that: The respectively calculating the median of each of the longitudes and each of the latitudes to obtain the longitude and latitude of the distribution center of each of the positioning data includes: Calculate the median longitude of each of the longitudes according to the first expression, calculate the median latitude of each of the latitudes according to the second expression, and combine the median longitude and the median latitude as the longitude and longitude of the distribution center of the positioning data; The first expression is: lon c =median{lon1,lon2,...,lon i ,...,lon n } The second expression is: years c =median{lat1,lat2,...,lat i ,...,years n } Among them, n represents the number of positioning data, lon i Indicates the longitude of the i-th positioning data, lat i Indicates the latitude of the i-th positioning data, lon c Indicates the longitude of the scatter center, lat c It represents the latitude of the center of the scatter, and median is the sign of the median.
5. A method for troubleshooting asynchronism of a card slot clock according to claim 4, characterized in that: The calculating the distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center, and determining the current scattering distance of the target bayonet according to each calculated distance, comprises: The distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center is calculated according to the third expression, and the third expression is: Among them, d i represents the distance between the longitude and latitude of the ith positioning data and the longitude and latitude of the distribution center; The calculated distances are sorted from small to large, and the distance ranked m% is taken as the current spread distance of the target bayonet.
6. The method for troubleshooting the asynchronism of the card slot clock according to claim 1, characterized in that: Determining a reasonable scattering distance includes: The reasonable spread distance is calculated according to the fourth expression, which is: Among them, d p represents the reasonable scattering distance, t f represents the sampling frequency of the floating car data, t e represents the clock error time allowed by the target checkpoint, and v represents the maximum speed limit of the road where the target checkpoint is located.
7. A method for troubleshooting asynchronism of a card slot clock according to any one of claims 1 to 6, characterized in that: The comparing the current dispersion distance with the reasonable dispersion distance, and judging whether the target checkpoint has clock asynchronism according to the comparison result, includes: Comparing the current dispersion distance with the reasonable dispersion distance; If the current spread distance is greater than the reasonable spread distance, it is determined that the target bayonet has clock asynchronism; If the current spread distance is less than or equal to the reasonable spread distance, it is determined that there is no clock asynchronism at the target bayonet.
8. A device for checking clock asynchronism at a checkpoint, characterized in that: include: The first unit is used to obtain historical detection data of the target checkpoint within a set time period, and filter out detection data of the floating vehicle detected from the historical detection data as the checkpoint detection data; The second unit is used to extract the positioning data of each floating vehicle from the positioning data acquisition device of each floating vehicle according to the bayonet detection data, and the positioning data includes the longitude and latitude at the time of positioning; The third unit is used to calculate the median of each of the longitudes and each of the latitudes, respectively, to obtain the longitude and latitude of the distribution center of each of the positioning data; The fourth unit is used to calculate the distance between the longitude and latitude of each positioning data and the longitude and latitude of the scattering center, and determine the current scattering distance of the target bayonet according to each calculated distance; The fifth unit is used to determine a reasonable dispersion distance, compare the current dispersion distance with the reasonable dispersion distance, and determine whether the target bayonet has clock asynchronism according to the comparison result.
9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement a method for troubleshooting card slot clock asynchrony according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement a method for troubleshooting asynchronism of a card slot clock according to any one of claims 1 to 7.