A method for correcting the position of a bayonet

By matching the vehicle's driving trajectory and counting the number of times the bayonet appears, the problem of deviation of bayonet position information is solved, and abnormal judgment and deviation correction of bayonet position information is achieved.

CN117012024BActive Publication Date: 2025-03-04ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310714804.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2025-03-04
Estimated Expiration
2043-06-15

AI Technical Summary

Technical Problem

There is a large deviation between the bayonet position information and the real position information, and it is difficult to determine whether there is an abnormality.

Method used

By obtaining the road list and the bayonet list, matching the vehicle's driving trajectory, counting the number of times the bayonet appears. If the number of times it occurs is greater than the threshold and does not exist in the common bayonet set, it is determined that the bayonet position is abnormal.

Benefits of technology

The abnormal judgment of the bayonet position information is realized, and information is output to indicate that there is an abnormality in the position information, and the user can verify and correct the bayonet position information in a targeted manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117012024B_ABST
    Figure CN117012024B_ABST
Patent Text Reader

Abstract

The present application relates to the field of electronic digital data processing technology, and in particular to a method for correcting the position of a checkpoint. The method comprises: obtaining a road list A; traversing a n , get a n,m List of vehicles collected in the corresponding time period B n,m ; B n,1 With B n,M Match and add the matching vehicles to a n,M The corresponding preset set; if S n,M / Q n,1 >θ1, then obtain L n,M ; Traverse L n,M , if #imgabs0# is greater than or equal to θ2 and a n,M The corresponding total bayonet set G n,M If #imgabs1# does not exist in a, then #imgabs2# will be appended to a n,M The corresponding total bayonet set G n,M ; Traverse G n,M If the position indicated by the position information corresponding to #imgabs3# is not on the nth road, then the abnormality information is output. The present invention realizes the judgment of whether the checkpoint position information is abnormal and realizes the checkpoint position deviation correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic digital data processing, in particular to a method for correcting the position deviation of a bayonet. Background Art

[0002] Crossroads are usually equipped with checkpoints for photographing the license plates of vehicles. Generally, there are four checkpoints at the intersection, which are used to collect the license plate information of vehicles entering the intersection from four directions. The checkpoint dimension table is a list created by the user to record the checkpoint location information. However, the checkpoint location information in the checkpoint dimension table may deviate greatly from the actual checkpoint location information. How to determine whether the checkpoint location information is abnormal (i.e., a large deviation) is an urgent problem to be solved. Summary of the invention

[0003] The object of the present invention is to provide a method for correcting the position of a bayonet, so as to determine whether there is any abnormality in the position information of the bayonet.

[0004] According to the present invention, a method for correcting the position of a bayonet is provided, comprising the following steps:

[0005] S100, obtain road list A=(a 1 ,a 2 ,…,a n ,…,a N ), a n is the checkpoint list of the nth road, a n =(a n,1 ,a n,2 ,…,a n,m ,…,a n,M ), a n,m is the mth checkpoint obtained according to the extension direction of the nth road. The value range of m is 1 to M, and M is a n The number of included bayonet ports; the value of n ranges from 1 to N, where N is the number of bayonet ports included in A.

[0006] S200, traverse a n , get a n,m List of vehicles collected in the corresponding time period for a n,m The qth vehicle collected in the corresponding time period, the value of q ranges from 1 to Q n,m , Q n,m for a n,m The number of vehicles collected in the corresponding time period.

[0007] S300, a n,1 List of vehicles collected in the corresponding time period B n,1 with an,M List of vehicles collected in the corresponding time period B n,M Match and add the matching vehicles to a n,M The corresponding preset set, the a n,M The corresponding preset collection is initialized to Null.

[0008] S400, if S n,M / Q n,1 >θ 1 , then get a n,M The list of checkpoints that the vehicle passes through during the target time period in the corresponding preset collection for a n,M The list of checkpoints that the i-th vehicle in the corresponding preset set passes through during the target time period. The value of i ranges from 1 to S n,M , S n,M for a n,M The number of vehicles in the corresponding preset set; for a n,M The jth checkpoint that the i-th vehicle in the corresponding preset set passes through during the target time period, and the value of j ranges from 1 to P n,M , P n,M for a n,M The number of checkpoints that the i-th vehicle in the corresponding preset set passes through within the target time period; the target time period is determined by a n,1 The corresponding time period is n,M The time period between the corresponding time periods, a n,1 The corresponding time period and a n,M The corresponding time period constitutes the time period; θ 1 is the preset first threshold, 0.5≤θ 1 <1.

[0009] S500, traverse L n,M ,if In L n,M Number of times it appears in Greater than or equal to θ 2 And a n,M The corresponding total bayonet set G n,M Does not exist Then Append to a n,M The corresponding total bayonet set G n,M ,get a n,M The corresponding total bayonet set G n,M is initialized to Null, is the rth one added to G n,MThe value range of r is 1 to R, and R is appended to G n,M The number of bayonet holes; θ 2 is the preset second threshold, ceil(S n,M / 2)<θ 2 n,M , ceil() is rounded up.

[0010] S600, traverse G n,M , get Corresponding location information, if If the location indicated by the corresponding location information is not on the nth road, then the output is used to indicate The corresponding location information contains abnormal information.

[0011] Compared with the prior art, the present invention has at least the following beneficial effects:

[0012] The present invention obtains a list of checkpoints included in each road, and for the nth road, obtains the number of vehicles collected by each checkpoint along the extension direction of the road. If a n,1 List of vehicles collected in the corresponding time period B n,1 with a n,M List of vehicles collected in the corresponding time period B n,M The number of vehicles S that match n,M Satisfy S n,M / Q n,1 >θ 1 If the condition is met, the list of checkpoints that the matching vehicles pass through within the target time period is obtained; the driving trajectory of most of these matching vehicles is along the extension direction of the nth road from a n,1 Drive to a n,M If a certain card port The number of times the matching vehicle appears in the list of checkpoints passed by the target time period is greater than θ 2 , then it is determined that the checkpoint is on the nth road; based on this, if If the location indicated by the corresponding location information is not on the nth road, it is determined that If the corresponding location information is abnormal, it will be output to the user to indicate The present invention realizes the judgment of whether there is an abnormality in the position information of the checkpoint. When it is determined that the position information of a checkpoint may be abnormal, an output is used to indicate that The corresponding location information contains abnormal information, and the user can use this information to indicate If there is any abnormality in the corresponding location information, The corresponding position information is verified to achieve the correction of the bayonet position. BRIEF DESCRIPTION OF THE DRAWINGS​

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0014] Figure 1 A flow chart of a method for correcting the position of a bayonet provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0015] 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 only 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0016] Embodiment 1

[0017] According to the present invention, Figure 1 As shown, a method for correcting the position of a bayonet is provided, comprising the following steps:

[0018] S100, obtain road list A=(a 1 ,a 2 ,…,a n ,…,a N ), a n is the checkpoint list of the nth road, a n =(a n,1 ,a n,2 ,…,a n,m ,…,a n,M ), a n,m is the mth checkpoint obtained according to the extension direction of the nth road. The value range of m is 1 to M, and M is a n The number of included bayonet ports; the value of n ranges from 1 to N, where N is the number of bayonet ports included in A.

[0019] According to the present invention, each checkpoint has a name created by the user, and the user generally creates the name of the corresponding checkpoint based on the name of the road where the checkpoint is located. For example, if a checkpoint is located at the intersection of XXX Road and XXX Road, then the name created by the user for the checkpoint is generally: XXX checkpoint at the intersection of XXX Road and XXX Road. Therefore, based on the name of the checkpoint, it is possible to determine which road the checkpoint is on, and it is also possible to obtain which checkpoints are included on which road, and in combination with the geographical information of the road, it is possible to know the order of the checkpoints included on a road along the extension direction of the road. However, the name of each checkpoint is created by the user, and it is possible that the information used to indicate that the checkpoint is on XXX road in the name of some checkpoints is abnormal. In view of this, the present invention proposes S200-S500 for determining a n A method for determining which checkpoints are located on the nth road.

[0020] Optional, a n The included checkpoints are all or part of the checkpoints included in the nth road. It should be understood that if the user intends to correct the position information of the checkpoints on 5 roads, then N=5; if the user intends to correct the position information of the checkpoints on all roads included in a certain area, then N is the number of roads included in the area.

[0021] It should be understood that the extension direction of a road is the direction in which vehicles travel on it. For a road that is passable in both directions, it has two extension directions, and these two extension directions are opposite; if the nth road is a road that is passable in both directions, then the extension direction of the nth road in the present invention refers to one of the extension directions of the nth road. For a road that is only passable in one direction, it has one extension direction; if the nth road is a road that is only passable in one direction, then the extension direction of the nth road in the present invention refers to the direction in which vehicles travel on the nth road.

[0022] S200, traverse a n , get a n,m List of vehicles collected in the corresponding time period for a n,m The qth vehicle collected in the corresponding time period, the value of q ranges from 1 to Q n,m , Q n,m for a n,m The number of vehicles collected in the corresponding time period.

[0023] According to the present invention, B n,1 for a n,1 The vehicle list collected in the corresponding time period is the vehicle list collected by the first checkpoint in the corresponding time period according to the extension direction of the nth road.n,1 with a n Except a n,1 The mount is different from other n,1 It is a bayonet that has been manually corrected, that is, a n,1 The information of the first checkpoint along the extension direction of the nth road is accurate, a n Except a n,1 It is uncertain whether the checkpoints other than a belong to the checkpoints on the nth road. n However, if the checkpoint is not actually on the nth road, it means that the user made an error when creating the name of the checkpoint.

[0024] It should be noted that a n,m The corresponding time period is set by the user based on experience, but should meet the following requirements: a. n,m-1 The corresponding time period is earlier than a n,m The corresponding time period, a n,m-1 The corresponding time period is n,m The interval between the corresponding time periods is n,m-1 with a n,m The distance between them is positively correlated, that is, a n,m-1 with a n,m The larger the distance between them, the n,m-1 The corresponding time period is n,m The longer the interval between the corresponding time periods, the n,m-1 The corresponding time period is n,m The interval between the corresponding time periods is equal to the extension direction of the vehicle along the nth road under normal road conditions from a n,m-1 Drive to a n,m The time required; for example, a n,m-1 The corresponding time period is 1:30-1:40 in the afternoon of a certain day, a n,m-1 The corresponding time period is n,m The interval between the corresponding time periods is 5 minutes, so a n,m The corresponding time period is 1:35-1:45 in the afternoon of that day.

[0025] S300, a n,1 List of vehicles collected in the corresponding time period B n,1 with a n,M List of vehicles collected in the corresponding time period B n,M Match and add the matching vehicles to a n,M The corresponding preset set, the a n,M The corresponding preset collection is initialized to Null.

[0026] According to the present invention, the matching vehicle exists in B n,1In B n,M It should be understood that B n,1 With B n,M After matching a n,M The corresponding preset set includes all matching vehicles.

[0027] S400, if S n,M / Q n,1 >θ 1 , then get a n,M The list of checkpoints that the vehicle passes through during the target time period in the corresponding preset collection for a n,M The list of checkpoints that the i-th vehicle in the corresponding preset set passes through during the target time period. The value of i ranges from 1 to S n,M , S n,M for a n,M The number of vehicles in the corresponding preset set; for a n,M The jth checkpoint that the i-th vehicle in the corresponding preset set passes through during the target time period, and the value of j ranges from 1 to P n,M , P n,M for a n,M The number of checkpoints that the i-th vehicle in the corresponding preset set passes through within the target time period; the target time period is determined by a n,1 The corresponding time period is n,M The time period between the corresponding time periods, a n,1 The corresponding time period and a n,M The corresponding time period constitutes the time period; θ 1 is the preset first threshold, 0.5≤θ 1 <1.

[0028] According to the present invention, if S n,M / Q n,1 >θ 1 , 0.5≤θ 1 <1, it means after a n,1 More than half of the vehicles passed a n,M The present invention obtains these through a n,1 After a n,M According to the present invention, only these checkpoints passing a n,1 After a n,M The checkpoints that vehicles pass through during the target time period, where the target time period is a n,1 The corresponding time period is n,M The time period between the corresponding time periods, a n,1The corresponding time period and a n,M The time period composed of the corresponding time period, that is, the target time period is from a n,1 The earliest time of the corresponding time period to a n,M The latest time of the corresponding time period to avoid these passing a n,1 After a n,M The checkpoint information of vehicles passing through in the non-target time period interferes with the present invention in determining which checkpoints are checkpoints on the nth road, thereby improving the accuracy of the determination.

[0029] As a specific implementation, a n,1 The corresponding time period is 10:00-10:10 in the morning of a certain day. n,M The corresponding time period is 10:20-10:30 in the morning of that day, so the target time period is 10:00-10:30 in the morning of that day; a n,M The corresponding time period is n,1 The interval between the corresponding time periods is 20 minutes, and the length of the interval is related to a n,M with a n,1 The longer the distance, the longer the interval; the shorter the distance, the shorter the interval. Optionally, the interval value is set by the user based on experience. The vehicle extends along the nth road from a n,1 Drive to a n,M The time required.

[0030] S500, traverse L n,M ,if In L n,M Number of times it appears in Greater than or equal to θ 2 And a n,M The corresponding total bayonet set G n,M Does not exist Then Append to a n,M The corresponding total bayonet set G n,M ,get a n,M The corresponding total bayonet set G n,M is initialized to Null, is the rth one added to G n,M The value range of r is 1 to R, and R is appended to G n,M The number of bayonet holes; θ 2 is the preset second threshold, ceil(S n,M / 2)<θ 2 n,M , ceil() is rounded up.

[0031] ​According to the present invention, the present invention is added to G n,M of Satisfy its L n,M Number of times it appears in Greater than or equal to θ 2 Condition, due to ceil(S n,M / 2)<θ 2 n,M , is appended to G n,M of For checkpoints that are passed by more than half of the vehicles, it can avoid the interference of a certain vehicle or a small number of vehicles that do not travel in the extension direction of the nth road on the determination of which checkpoints are checkpoints on the nth road, thereby improving the accuracy of the determination.

[0032] Preferably, θ 2 The following conditions are met: ceil(0.6×S n,M )<θ 2 <ceil(0.8×S n,M ).

[0033] S600, traverse G n,M , get Corresponding location information, if If the location indicated by the corresponding location information is not on the nth road, then the output is used to indicate The corresponding location information contains abnormal information.

[0034] Optionally, the location information includes longitude and latitude information.

[0035] According to the present invention, the position information of the checkpoint is recorded by the user, and there may be a situation where the position information of the checkpoint recorded by the user is inconsistent with the actual position information of the checkpoint; through S200-S500 of the present invention, it can be determined The checkpoint is most likely to be set on the nth road. Therefore, the present invention If the location indicated by the corresponding location information is not on the nth road, the output is used to indicate The corresponding location information contains abnormal information to remind users The corresponding location information is verified. If the verification result is If the corresponding location information is indeed abnormal, the user can modify it by himself. The corresponding location information is the correct location information. Optionally, obtain g from the card port dimension table n r ,M Corresponding location information, the checkpoint dimension table is a list created by the user for recording the checkpoint location information.

[0036] ​The present invention obtains a list of checkpoints included in each road, and for the nth road, obtains the number of vehicles collected by each checkpoint along the extension direction of the road. If a n,1 List of vehicles collected in the corresponding time period B n,1 with a n,M List of vehicles collected in the corresponding time period B n,M The number of vehicles S that match n,M Satisfy S n,M / Q n,1 >θ 1 If the condition is met, the list of checkpoints that the matching vehicles pass through within the target time period is obtained; the driving trajectory of most of these matching vehicles is along the extension direction of the nth road from a n,1 Drive to a n,M If a certain card port The number of times the matching vehicle appears in the list of checkpoints passed by the target time period is greater than θ 2 , then it is determined that the checkpoint is on the nth road; based on this, if If the location indicated by the corresponding location information is not on the nth road, it is determined that If the corresponding location information is abnormal, it will be output to the user to indicate The present invention realizes the judgment of whether there is an abnormality in the position information of the checkpoint. When it is determined that the position information of a checkpoint may be abnormal, an output is used to indicate that The corresponding location information contains abnormal information, and the user can use this information to indicate If there is any abnormality in the corresponding location information, The corresponding position information is verified to achieve the correction of the bayonet position.

[0037] S400 also includes: If S n,M / Q n,1 ≤θ 1 , and enter S700.

[0038] S700, if S is not met n,v(M / 2) / Q n,1 >θ 1 And S n,v(M / 2)+1 / Q n,1 ≤θ 1 If the condition is met, the first variable z=2 is set, and the process goes to S710; v() is rounded, S n,v(M / 2) for a n,v(M / 2) The number of vehicles in the corresponding preset set, S n,v(M / 2)+1 for a n,v(M / 2)+1 The number of vehicles in the corresponding preset set.

[0039] It should be understood that obtaining an,v(M / 2) The corresponding preset set and S300 get a n,M The method of the corresponding preset collection is the same, that is, n,1 List of vehicles collected in the corresponding time period B n,1 with a n,v(M / 2) List of vehicles collected in the corresponding time period B n,v(M / 2) Match and add the matching vehicles to a n,v(M / 2) The corresponding preset set, the a n,v(M / 2) The corresponding preset collection is initialized to Null. n,v(M / 2)+1 The corresponding preset set and S300 get a n , The method of the preset set corresponding to M is the same and will not be repeated here.

[0040] S710, a n,1 List of vehicles collected in the corresponding time period B n,1 and List of vehicles collected in the corresponding time period Match and add the matching vehicles to The corresponding preset set, the a n,Fz The corresponding preset collection is initialized to Null; when When f k =-1; when When f k =1; f 1 =1.

[0041] S720, if not satisfied and If the condition is met, z=z+1, and S710 is repeated until and conditions.

[0042] According to the present invention, when and When the condition is n,1 More than half of the vehicles passed by But after a n,1 No more than half of the vehicles passed by The present invention will satisfy and The condition is used as the termination condition of the loop, which can increase the amount of vehicle information counted in S730 and improve the accuracy of the judgment.

[0043] S730, get The list of checkpoints that the vehicle passes through during the target time period in the corresponding preset collection for The list of checkpoints that the e-th vehicle in the corresponding preset set passes through during the target time period. The value of e ranges from 1 to for The number of vehicles in the corresponding preset set; for The hth checkpoint that the eth vehicle in the corresponding preset set passes through during the target time period, and the value range of h is 1 to for The number of checkpoints that the e-th vehicle in the corresponding preset set passes through during the target time period.

[0044] S740, traverse if exist Number of times it appears in Greater than or equal to θ 3 and Corresponding total bayonet set Does not exist Then Append to Corresponding total bayonet set get Corresponding total bayonet set is initialized to Null, The dth one is appended to The value range of d is 1 to D, and D is the value added to The number of bayonet holes; θ 3 is the preset third threshold,

[0045] It should be understood that traversing back, Corresponding total bayonet set Included in The number of occurrences in is greater than or equal to θ 3 All bayonet ports.

[0046] S750, traverse Get Corresponding location information, if If the location indicated by the corresponding location information is not on the nth road, then the output is used to indicate The corresponding location information contains abnormal information.

[0047] According to the present invention, in S700, if S is satisfied n,v(M / 2) / Q n,1 >θ 1 And S n,v(M / 2)+1 / Q n,1 ≤θ 1 If the condition is z =v(M / 2), and execute the same steps as S730-S750.

[0048] According to the present invention, S730-S750 can only achieve a on the nth road. n,1 and On this basis, in order to realize the abnormal judgment of the location information of the checkpoints on the nth road and a n,M The abnormality of the position information of the bayonet between As the first stopper on the nth road along its extension direction, a n,M As the M-(F z -1) bayonet, repeat the same method as S200-S600.

[0049] Embodiment 2

[0050] The difference between this embodiment and the first embodiment is that S600 of this embodiment further includes: The corresponding position information is corrected, and the correction process includes:

[0051] S610, if it is determined On the nth road and the nth 1 If the road is on, then go to S620; n≠n 1 , n 1 The value range is from 1 to N.

[0052] According to the present invention, if A includes the nth 1 The list of checkpoints on the road, then according to the nth 1 Checkpoint list determination for each road For nth 1 The checkpoints set up on the road are used to determine For nth 1 on a road.

[0053] S620, obtaining the nth road and the nth 1 The location range of the intersection corresponding to the road.

[0054] According to the present invention, the nth road and the nth 1 The location range of the intersection corresponding to the nth road is the intersection between the nth road and the nth 1 The location range of the area where the nth road overlaps can be based on the geographical location information of the nth road and the nth 1 The geographical location information of the road is obtained.

[0055] S630, The corresponding position information is corrected to fall within the position range of the intersection.

[0056] The above S610-S630 can only The corresponding position information is corrected to a wider position range. Preferably, in order to The corresponding position information is corrected to a more accurate position range, and S630 includes:

[0057] S631, obtain the information on the nth road and the nth 1 List of other checkpoints on the road ( ), For the nth path and the nth 1 The road The first mount other than For the nth path and the nth 1 The road The second bayonet other than For the nth path and the nth 1 The road A third mount other than the

[0058] According to the present invention, if A includes the nth 1 The list of checkpoints on the road, then according to the judgment On the nth road and the nth 1 The method on the nth road can also determine the 1 Other checkpoints on the road.

[0059] S632: Acquire vehicle turning information at the intersection.

[0060] According to the present invention, the vehicle steering information refers to whether the vehicle is going straight, turning left, or turning right. Those skilled in the art know that the method of obtaining the vehicle steering information based on images is a prior art and will not be described in detail here.

[0061] S633: If there is a target vehicle turning left from the nth road to the nth road, 1 In the process of the road, first After collection, ) is collected at a certain checkpoint, then it is determined It is a checkpoint set on the nth road in the intersection and used to collect vehicles traveling in a target direction, and enters S634; the target direction is the traveling direction of the target vehicle on the nth road.

[0062] Those skilled in the art know that the method of obtaining the vehicle's driving direction based on an image is a prior art and will not be described in detail here.

[0063] S634, will The corresponding position information is corrected to be the position of the vehicle which is set on the nth road in the intersection and is used to collect the position of the vehicle traveling along the target direction.

[0064] According to the present invention, the number of checkpoints set at the intersection is 4, and the positions of the 4 checkpoints are different, but the positions of the 4 checkpoints can be obtained, and the road on which each checkpoint is set and the direction in which the license plate information of the vehicle head is collected are also known; in the present invention, S633 is used for The judgment result (i.e. is a checkpoint set on the nth road at the intersection and used to collect vehicles traveling in the target direction, and The position information of the bayonet that matches the judgment result is given to That's it, it's coming The corresponding position information is corrected to The position information of the bayonet that matches the judgment result is realized. Accurate correction of location information.

[0065] Optionally, get the nth road and nth 1 The method for determining the positions of the four checkpoints on the nth road comprises: 1 The geographical location information of the roads is used to obtain the location range of the overlapping area, and the midpoints of the four sides that enclose the overlapping area are used as the locations of the four checkpoints. The road where each checkpoint is located and the direction in which the vehicles are collected are determined according to the sides corresponding to each checkpoint. For example, the nth road is a road extending in the east-west direction, and the nth road is a road extending in the east-west direction. 1 The roads are roads extending in the north-south direction, and the nth road and the nth road 1 The overlapping area of ​​the roads is a quadrilateral area, where the first side of the quadrilateral is the side located on the north side, the second side is the side located on the west side, the third side is the side located on the east side, and the fourth side is the side located on the south side. Then the bayonet set on the first side is set on the nth side. 1 The checkpoint on the second side is set on the nth road and is used to collect vehicles traveling in the north direction. The checkpoint on the second side is set on the nth road and is used to collect vehicles traveling in the west direction. The checkpoint on the third side is set on the nth road and is used to collect vehicles traveling in the east direction. The checkpoint on the fourth side is set on the nth road and is used to collect vehicles traveling in the east direction. 1 The road is used to collect vehicles traveling in the south direction.

[0066] This second embodiment further includes the following steps based on the first embodiment: The corresponding position information is corrected, wherein the The location range of the intersection of two roads is The corresponding position information is corrected to fall within the position range of the intersection, and the present invention realizes Automatic correction of corresponding position information.

[0067] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A method for correcting the position of a bayonet, characterized in that: The following steps are involved: S100, obtain a road list A = (a1, a2, ..., a n ,…,a N ), a n is the checkpoint list of the nth road, a n =(a n,1 ,a n,2 ,…,a n,m ,…,a n,M ), a n,m is the mth checkpoint obtained according to the extension direction of the nth road. The value range of m is 1 to M, and M is a n The number of included bayonet ports; the value of n ranges from 1 to N, where N is the number of bayonet ports included in A; S200, traverse a n , get a n,m List of vehicles collected in the corresponding time period for a n,m The qth vehicle collected in the corresponding time period, the value of q ranges from 1 to Q n,m , Q n,m for a n,m The number of vehicles collected in the corresponding time period; S300, a n,1 List of vehicles collected in the corresponding time period B n,1 with a n,M List of vehicles collected in the corresponding time period B n,M Match and add the matching vehicles to a n,M The corresponding preset set, the a n,M The corresponding preset collection is initialized to Null; S400, if S n,M / Q n,1 >θ1, then get a n,M The list of checkpoints that the vehicle passes through during the target time period in the corresponding preset collection for a n,M The list of checkpoints that the i-th vehicle in the corresponding preset set passes through during the target time period. The value of i ranges from 1 to S n,M , S n,M for a n,M The number of vehicles in the corresponding preset set; for a n,M The jth checkpoint that the i-th vehicle in the corresponding preset set passes through during the target time period, and the value of j ranges from 1 to P n,M , P n,M for a n,M The number of checkpoints that the i-th vehicle in the corresponding preset set passes through within the target time period; the target time period is determined by a n,1 The corresponding time period is n,M The time period between the corresponding time periods, a n,1 The corresponding time period and a n,M The corresponding time periods constitute a time period; θ1 is a preset first threshold, 0.5≤θ1<1; S500, traverse L n,M , if l i,j n,M In L n,M The number of times c appears in i,j n,M Greater than or equal to θ2 and a n,M The corresponding total bayonet set G n,M There is no l i,j n,M , then l i,j n,M Append to a n,M The corresponding total bayonet set G n,M ,get a n,M The corresponding total bayonet set G n,M is initialized to Null, is the rth one appended to G n,M The value range of r is 1 to R, and R is appended to G n,M The number of bayonet slots; θ2 is the preset second threshold, ceil(S n,M / 2)<θ2 n,M , ceil() is rounded up;​ S600, traverse G n,M , get g r n,M Corresponding location information, if g r n,M If the location indicated by the corresponding location information is not on the nth road, then the output is used to indicate g r n,M The corresponding location information contains abnormal information.

2. The method for correcting the position of the bayonet according to claim 1, characterized in that: S400 also includes: If S n,M / Q n,1 ≤θ1, and enter S700; S700, if S is not met n,v(M / 2) / Q n,1 >θ1 and S n,v(M / 2)+1 / Q n,1 ≤θ1, the first variable z=2 is set, and the process goes to S710; v() is rounded, S n,v(M / 2) for a n,v(M / 2) The number of vehicles in the corresponding preset set, S n,v(M / 2)+1 for a n,v(M / 2)+1 The number of vehicles in the corresponding preset set; S710, a n,1 List of vehicles collected in the corresponding time period B n,1 and List of vehicles collected in the corresponding time period Match and add the matching vehicles to The corresponding preset set, The corresponding preset collection is initialized to Null; when When f k =-1; when When f k =1; f1=1; S720, if not satisfied and If the condition is met, z=z+1, and S710 is repeated until and conditions; S730, get The list of checkpoints that the vehicle passes through during the target time period in the corresponding preset collection for The list of checkpoints that the e-th vehicle in the corresponding preset set passes through during the target time period. The value of e ranges from 1 to for The number of vehicles in the corresponding preset set; for The hth checkpoint that the eth vehicle in the corresponding preset set passes through during the target time period, and the value range of h is 1 to for The number of checkpoints that the e-th vehicle in the corresponding preset set passes through during the target time period; S740, traverse if exist Number of times it appears in Greater than or equal to θ3 and Corresponding total bayonet set Does not exist Then Append to Corresponding total bayonet set get Corresponding total bayonet set is initialized to Null, The dth one is appended to The value range of d is 1 to D, and D is the value added to The number of bayonet holes; θ3 is the preset third threshold, S750, traverse Get Corresponding location information, if If the location indicated by the corresponding location information is not on the nth road, then the output is used to indicate The corresponding location information contains abnormal information.

3. The method for correcting the position of the bayonet according to claim 1, characterized in that: S600 also includes: The corresponding position information is corrected, and the correction process includes: S610, if it is determined On the nth road and the n1th road, the process proceeds to S620; n≠n1, and the value range of n1 is 1 to N; S620, obtaining a location range of an intersection corresponding to the nth road and the n1th road; S630, The corresponding position information is corrected to fall within the position range of the intersection.

4. The method for correcting the position of the bayonet according to claim 3, characterized in that: S630 includes: S631, obtaining a list of other checkpoints on the nth road and the n1th road is the difference between the nth road and the n1th road The first mount other than is the difference between the nth road and the n1th road The second bayonet other than is the difference between the nth road and the n1th road A third bayonet other than the S632, obtaining vehicle turning information at the intersection; S633: If there is a target vehicle turning left from the nth road to the n1th road, After collection, If a certain checkpoint is collected, it is determined is a checkpoint set on the nth road in the intersection and used to collect vehicles traveling in a target direction, and enters S634; the target direction is the traveling direction of the target vehicle on the nth road; S634, will The corresponding position information is corrected to be the position of the vehicle which is set on the nth road in the intersection and is used to collect the position of the vehicle traveling along the target direction.

5. The method for correcting the position of the bayonet according to claim 1, characterized in that: In S600, obtain from the card port dimension table Corresponding location information, the checkpoint dimension table is a list created by the user for recording the checkpoint location information.

6. The method for correcting the position of the bayonet according to claim 1, characterized in that: ceil(0.6×S n,M )<θ2<ceil(0.8×S n,M )。 7. The method for correcting the position of the bayonet according to claim 1, characterized in that: The location information includes longitude and latitude information.

Citation Information

Patent Citations

  • Gate detection rate obtaining method based on floating vehicle data

    CN105374210A

  • Track deviation correcting method and apparatus for floating vehicle

    CN106469505A