CN111369803B - Marginal bayonet detection method and device and computer readable storage medium - Google Patents

Marginal bayonet detection method and device and computer readable storage medium Download PDF

Info

Publication number
CN111369803B
CN111369803B CN201911073787.3A CN201911073787A CN111369803B CN 111369803 B CN111369803 B CN 111369803B CN 201911073787 A CN201911073787 A CN 201911073787A CN 111369803 B CN111369803 B CN 111369803B
Authority
CN
China
Prior art keywords
passing data
bayonet
vehicle passing
data set
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911073787.3A
Other languages
Chinese (zh)
Other versions
CN111369803A (en
Inventor
卞晓骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201911073787.3A priority Critical patent/CN111369803B/en
Publication of CN111369803A publication Critical patent/CN111369803A/en
Application granted granted Critical
Publication of CN111369803B publication Critical patent/CN111369803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention provides a detection method and a device for a marginal bayonet and a computer readable storage medium, wherein the detection method for the marginal bayonet comprises the following steps: acquiring a first effective vehicle passing data set of the same gate in a preset time period; according to the first effective vehicle passing data set, respectively determining a first proportion of local vehicle passing data volume passing through the gate in the first effective vehicle passing data set and a second proportion of foreign vehicle passing data volume passing through the gate in the first effective vehicle passing data set; the local vehicle is a vehicle with a license plate belonging to the current region; the vehicles outside the country are vehicles of which the license plate home location does not belong to the current region range; and when the first occupation ratio is smaller than the second occupation ratio, determining that the bayonet is a marginal bayonet. The invention can improve the accuracy and reliability of the configuration of the marginal bayonet.

Description

Marginal bayonet detection method and device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for detecting a marginal bayonet, and a computer-readable storage medium.
Background
The traffic gate is a short for road traffic public security gate monitoring system, and is characterized by that it utilizes the gate points of special places on the road, such as toll station, traffic or public security inspection station, etc. to shoot, record and process all the motor vehicles passed through said gate points.
For a city manager, in some cases, a marginal checkpoint needs to be determined from all checkpoints set by the city, so as to be used as a reference when city management is performed based on related applications.
At present, the marginal bayonets are usually configured manually, and since the actual vehicle passing condition of each bayonet is changed, the accuracy and reliability of the manually configured marginal bayonets are not high.
Disclosure of Invention
The method and the device for detecting the marginal bayonet and the computer-readable storage medium can improve the accuracy and the reliability of the configuration of the marginal bayonet.
In a first aspect, the present invention provides a marginal bayonet detection method, including:
acquiring a first effective vehicle passing data set of the same gate in a preset time period;
according to the first effective vehicle passing data set, respectively determining a first proportion of local vehicle passing data volume passing through the gate in the first effective vehicle passing data set and a second proportion of foreign vehicle passing data volume passing through the gate in the first effective vehicle passing data set; the local vehicle is a vehicle with a license plate belonging to the current region; the vehicles outside the country are vehicles of which the license plate home location does not belong to the current region range;
and when the first occupation ratio is smaller than the second occupation ratio, determining that the bayonet is a marginal bayonet.
Optionally, the acquiring a first valid vehicle passing data set of the same gate within a predetermined time period includes:
acquiring a second effective vehicle passing data set of at least two checkpoints within a preset time period and a preset area range;
determining a target gate from the second valid passing data set; the target bayonet is a bayonet through which the vehicle outside the country passes;
and determining a first effective vehicle passing data set passing through the same target gate from the second effective vehicle passing data set.
Optionally, the determining a target gate from the second valid vehicle passing data set includes:
according to the attribution places of the license plates, the vehicle passing data in the second effective vehicle passing data set are grouped, and the attribution places of the license plates corresponding to the vehicle passing data in each group are the same;
and determining the bayonets contained in the passing data of other groups except the group with the largest passing data amount as the target bayonets.
Optionally, after the determining that the bayonet is a marginal bayonet, the method further comprises:
according to the first effective vehicle passing data set, respectively determining a third proportion of the data volume of the coming-in vehicle passing in the first effective vehicle passing data set and a fourth proportion of the data volume of the coming-in vehicle passing in the first effective vehicle passing data set;
when the third ratio is smaller than the fourth ratio, determining that the bayonet is a city-entering bayonet;
and when the third ratio is larger than the fourth ratio, determining that the bayonet is a city-out bayonet.
In a second aspect, the present invention provides a marginal bayonet detection device, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first effective vehicle passing data set of the same gate in a preset time period;
a first determination unit, configured to respectively determine, according to the first valid vehicle passing data set, a first proportion of local vehicle passing data volume that passes through the gate in the first valid vehicle passing data set and a second proportion of foreign vehicle passing data volume that passes through the gate in the first valid vehicle passing data set; the local vehicle is a vehicle with a license plate belonging to the current region; the vehicles outside the country are vehicles of which the license plate home location does not belong to the current region range;
and the second determining unit is used for determining the bayonet to be a marginal bayonet when the first occupation ratio is smaller than the second occupation ratio.
Optionally, the obtaining unit includes:
the first acquisition module is used for acquiring a second effective vehicle passing data set of at least two checkpoints within a preset time period and a preset area range;
the first determining module is used for determining a target gate from the second effective vehicle passing data set; the target bayonet is a bayonet through which the vehicle outside the country passes;
and the second determining module is used for determining a first effective vehicle passing data set passing through the same target gate from the second effective vehicle passing data set.
Optionally, the first determining module includes:
the grouping submodule is used for grouping the vehicle passing data in the second effective vehicle passing data set according to the attribution of the vehicle license plate, and the attributions of the vehicle license plates corresponding to the vehicle passing data in each group are the same;
and the determining submodule is used for determining the bayonets contained in the passing data of other groups except the group with the maximum passing data amount as the target bayonets.
Optionally, the apparatus further comprises:
a third determining unit, configured to determine, according to the first effective vehicle passing data set, a third proportion of the amount of the outbound vehicle passing data in the first effective vehicle passing data set and a fourth proportion of the amount of the inbound vehicle passing data in the first effective vehicle passing data set, respectively, after the second determining unit determines that the gate is the marginal gate;
a fourth determining unit, configured to determine that the bayonet is a city entry bayonet when the third percentage is smaller than the fourth percentage; and when the third ratio is larger than the fourth ratio, determining that the bayonet is a city-out bayonet.
In a third aspect, the present invention provides a marginal bayonet detection device, including:
a memory;
and a processor coupled to the memory, the processor being configured to execute the above-mentioned marginal bayonet detection method based on instructions stored in the memory.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions, when executed by a processor, implement the above marginal bayonet detection method.
The detection method, the detection device and the computer-readable storage medium for the marginal bayonet provided by the embodiment of the invention respectively determine the proportion of the local vehicle passing data volume passing through the bayonet in the effective passing data set and the proportion of the foreign vehicle passing data volume in the effective passing data set according to the acquired effective passing data set of the same bayonet within a certain time period, and the proportion of the local vehicle passing data volume passing through the bayonet is usually smaller than that of the foreign vehicle, so that whether the bayonet is the marginal bayonet can be determined by comparing the two proportions, the invention determines that the marginal bayonet is based on the effective passing data passing through the bayonet, and the effective passing data is the objective data acquired in real time, so that the detection result obtained according to the effective passing data is more accurate, and a city manager performs city management according to the marginal bayonet determined by the invention, the reliability is higher.
Drawings
FIG. 1 is a flow chart of a method for detecting a marginal bayonet according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a detection device for a marginal bayonet according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a detection device for a marginal bayonet according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a detection apparatus for a marginal bayonet according to yet another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a detection device for a marginal bayonet according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a detection device for a marginal bayonet according to still another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method for detecting a marginal bayonet, which comprises the following steps of:
and S11, acquiring a first valid vehicle passing data set of the same gate in a preset time period.
Each effective vehicle passing data in the first effective vehicle passing data set can comprise a bayonet number, a vehicle head and vehicle tail direction identifier and a license plate number.
S12, respectively determining a first proportion of local vehicle passing data volume passing through the gate in the first effective vehicle passing data set and a second proportion of foreign vehicle passing data volume passing through the gate in the first effective vehicle passing data set according to the first effective vehicle passing data set; the local vehicle is a vehicle with a license plate belonging to the current region; the vehicles outside the country are vehicles whose license plate belongs to a region not within the current region.
And S13, when the first occupation ratio is smaller than the second occupation ratio, determining that the bayonet is a marginal bayonet.
The detection method for the marginal gate provided by the embodiment of the invention respectively determines the proportion of the local vehicle passing data volume passing through the gate in the effective vehicle passing data set and the proportion of the foreign vehicle passing data volume in the effective vehicle passing data set according to the acquired effective vehicle passing data set of the same gate in a certain time period, since the local vehicle occupancy at the marginal gate is typically less than the foreign vehicle occupancy, by comparing the two occupancy, namely, whether the bayonet is the marginal bayonet can be determined, the marginal bayonet is determined according to the effective vehicle passing data passing through the bayonet, the effective vehicle passing data is objective data acquired in real time, so that the detection result obtained according to the effective vehicle passing data is more accurate, and a city manager performs city management according to the marginal checkpoint determined by the invention, so that the reliability is higher.
Specifically, step S11 may include: acquiring a second effective vehicle passing data set of at least two checkpoints within a preset time period and a preset area range; determining a target gate from the second valid passing data set; the target bayonet is a bayonet through which the vehicle outside the country passes; and determining a first effective vehicle passing data set passing through the same target gate from the second effective vehicle passing data set.
Wherein the determining a target gate from the second valid vehicle passing data set may include: according to the attribution places of the license plates, the vehicle passing data in the second effective vehicle passing data set are grouped, and the attribution places of the license plates corresponding to the vehicle passing data in each group are the same; and determining the bayonets contained in the passing data of other groups except the group with the largest passing data amount as the target bayonets.
Further, after step S13, the method may further include: according to the first effective vehicle passing data set, respectively determining a third proportion of the data volume of the coming-in vehicle passing in the first effective vehicle passing data set and a fourth proportion of the data volume of the coming-in vehicle passing in the first effective vehicle passing data set; when the third ratio is smaller than the fourth ratio, determining that the bayonet is a city-entering bayonet; and when the third ratio is larger than the fourth ratio, determining that the bayonet is a city-out bayonet.
The embodiment of the invention provides another marginal checkpoint detection method, which takes detection of an intercity checkpoint as an example for explanation, and the vehicle passing data based on detection is mainly historical vehicle passing data, namely data already stored in a database. Wherein, the bayonet department sets up and is used for shooing the vehicle in order to obtain the camera of the car data and towards the outer direction of city. In order to prevent some vehicles from entering and leaving the city on different days, data 30 days before the current date is loaded by default in the calculation process to perform analysis calculation so as to improve the accuracy of the final result, and meanwhile, the start time and the end time are manually configured, so that a user can modify the data according to actual needs, and the flexibility is improved.
The method for detecting the marginal bayonet provided by the embodiment comprises the following steps:
s201, determining a time interval in which the vehicle passing data needs to be loaded.
And if the start time and the end time are configured by the user, taking the start time and the end time configured by the user as the time interval for loading the vehicle passing data.
And if the user does not configure the starting time and the ending time, taking the current time as the ending time, and taking zero-point zero minute zero second of the date pushed forward by 30 days as the starting time, wherein the starting time is taken as the time interval for loading the vehicle passing data.
Among them, the time format may be "yyyy-MM-dd".
S202, loading the passing data in the time interval.
In order to avoid a large data amount of the loaded original vehicle passing data due to a large interval between the start time and the end time in step S201, a loading period may be set, and the vehicle passing data may be loaded in blocks according to the loading period.
For example: the loading period of 7 days can be adopted, and the vehicle passing data is loaded into the hbase database in a scan mode in a blocking mode.
And S203, screening the loaded vehicle passing data to obtain effective vehicle passing data.
Specifically, as for the data loaded in step S202, data with a license plate (plateon) of "11111111", "00000000", "no license plate", "license plate", and the like are removed; removing data of vehicleheadontail ═ 0, wherein the vehicleheadontail identifies whether the vehicle is a head or a tail of the vehicle, vehicleheadontail is 0 indicating unknown, 1 indicating the head, and 2 indicating the tail; data of a mobile gate (9), which is a device installed in a police cruiser or having a similar mobile snapshot function, is removed, and this embodiment is directed to detection of a fixed gate, and thus this part of gate data is excluded.
And each piece of obtained effective vehicle passing data at least comprises a bayonet number, a vehicle head and vehicle tail direction identifier and a license plate number.
And S204, respectively establishing second effective vehicle passing data sets aiming at different license plate area identifications based on the effective vehicle passing data, wherein the license plate area identifications are partial characters used for distinguishing the area to which the license plate belongs in the license plate number, and each element in each second effective vehicle passing data set comprises a bayonet number and a vehicle head and tail direction identification.
Specifically, the effective vehicle passing data obtained by filtering in step S203 is converted as follows: the first two characters subplate no of the license plate number (plate no) are taken as the license plate area identification, namely, the province + city number is taken, for example: taking the first two characters 'Zhe A' of the license plate number 'Zhe A12345' as license plate area identifications; and respectively establishing effective vehicle passing data sets according to the subplate No: map < subplate no, List < cross indexcode + vehicleheadoratail > >, where cross indexcode is a bayonet number and vehicleheadoratail identifies whether the vehicle's nose or tail is identified.
In this step, the effective vehicle passing data sets corresponding to each subplate no are merged, two fields, namely a bayonet number and a vehicle head and tail direction identifier in the taken vehicle passing data, are identified in the List, and for example, a second effective vehicle passing data set is respectively established for the vehicle passing data corresponding to the subplate nos of zhe a, zhe B and zhe C:
map < "Zhe A", List < crossitntIndexcode 1+ vehicleHeadOrTail1, crossitntIndexcode 2+ vehicleHeadOrTail2, crossitntIndexcode 3+ vehicleHeadOrTail3 >: the effective passing data corresponding to the data "Zhe A" are cross IndexCode1+ vehicle HeadOrTail1, cross IndexCode2+ vehicle HeadOrTail2, cross IndexCode3+ vehicle HeadOrTail 3;
map < "Zhe B", List < crossindIndexcode 4+ vehicleHeadOrTail4, crossindIndexcode 5+ vehicleHeadOrTail5 >: the effective passing data corresponding to the 'Zhe B' is crossIndexCode 4+ vehicleHeadOrTail4, crossIndexCode 5+ vehicleHeadOrTail 5;
map < "Zhe C", List < ross Indexcode6+ vehicle HeadOrTail6, ross Indexcode7+ vehicle HeadOrTail7, ross Indexcode8+ vehicle HeadOrTail8 >: the effective passing data corresponding to "Zhe C" includes cross IndexCode6+ vehicle HeadOrTail6, cross IndexCode7+ vehicle HeadOrTail7, cross IndexCode8+ vehicle HeadOrTail8
And S205, removing the second effective vehicle passing data set with the largest number of elements.
This step is to default to the maximum vehicle passing data of the local city in a city, and the purpose is to obtain the non-local city vehicles.
If the vehicle data is loaded in the loading cycle in blocks in step S202, the List sets corresponding to the same subplate no in the result obtained in step S204 are merged, and the List with the most elements after merging is removed.
For example, for the second valid vehicle passing data sets respectively established by the partitions in step S204 for the vehicle passing data corresponding to subplate nos of zhe a, zhe B and zhe C, merging is performed according to the Key in the Map (Key-Value: if Key is "zhe a") structure, that is, to obtain the set of all the vehicle passing data of subplate nos of "zhe a", "zhe B" and "zhe C", and then the local vehicle is calculated according to the number of elements in the set, for example, in hangzhou, the vehicle of default zhe a is the most, and the purpose of this step of operation is to distinguish the local vehicle from the external vehicle.
S206, extracting the bayonet numbers in other second effective vehicle passing data sets except the second effective vehicle passing data set with the maximum element number, wherein the second effective vehicle passing data set with the maximum element number corresponds to the first license plate area identification.
Specifically, the result of step S205 is subjected to flattening processing, and the data structure after conversion is (cross indexcode).
For example: for the vehicle passing data sets corresponding to subPlatNo "zhe B" and "zhe C" in step S205:
map < "Zhe B", List < crossindIndexcode 4+ vehicleHeadOrTail4, crossindIndexcode 5+ vehicleHeadOrTail5 >: the effective passing data corresponding to the 'Zhe B' is crossIndexCode 4+ vehicleHeadOrTail4, crossIndexCode 5+ vehicleHeadOrTail 5;
map < "Zhe C", List < ross Indexcode6+ vehicle HeadOrTail6, ross Indexcode7+ vehicle HeadOrTail7, ross Indexcode8+ vehicle HeadOrTail8 >: the effective passing data corresponding to "Zhe C" includes cross IndexCode6+ vehicleHeadOrTail6, cross IndexCode7+ vehicleHeadOrTail7, cross IndexCode8+ vehicleHeadOrTail 8.
The crossingIndexCode in the vehicle data was extracted from the two sets. The reason for this is that the possibility of getting in and out of the city gate is high because of the gate through which the vehicles outside the city pass.
And S207, screening the effective vehicle passing data according to the extracted bayonet number to obtain vehicle passing data related to the bayonet number.
Specifically, the valid vehicle passing data of all the blocks obtained in step S203 are screened according to the set of gates obtained in step S206, so as to obtain vehicle passing data related to the gates in the set of gates.
The step aims to screen original vehicle passing data loaded according to time intervals initially according to a passing gate of a foreign vehicle, and aims to acquire the vehicle passing the gate, and if the foreign vehicle passes the gate A, the vehicle passing data of the gate A is acquired.
And S208, respectively establishing first effective vehicle passing data sets aiming at different gate numbers based on vehicle passing data related to the gate numbers, wherein each first effective vehicle passing data set comprises sub-sets corresponding to different license plate area identifications, and elements in each sub-set are identifications of the directions of the vehicle head and the vehicle tail.
Specifically, the first valid passing data set is created for the passing data obtained in step S207 in the form of Map < cross indexcode, List < Map < subplate no, List < vehicleHeadOrTail > > >.
The purpose of this step is to obtain a passing data set corresponding to a passing gate of a foreign vehicle, for example, the passing gate extracted in step S207 is: bayonet a and bayonet B, then the first valid vehicle passing data set established here is:
map < bayonet A, List < Map < "Zhe A", List < "locomotive", "vehicle tail", "locomotive" >, Map < "Zhe B", List < "locomotive", "vehicle tail" > > >;
map < bayonet B, List < Map < "Zhe A", List < "nose", "tail", "nose" >, Map < "Zhe B", List < "nose", "tail" > >.
S209, calculating the number of elements in a first effective passing data set corresponding to each gate number, the subset corresponding to the first license plate area identification and the total number of elements in the subset corresponding to the license plate area identifications except the first license plate area identification.
Specifically, the List corresponding to each cross indexcode in the Map set in step S208 is traversed, and the number of local vehicles and the number of foreign vehicles passing through the gate are calculated according to the local vehicle plate region identifier screened in step S205.
For example: and for the first valid vehicle passing data set corresponding to the mount a obtained in step S208, calculating the number of elements in the List corresponding to "zhe a" and the number of elements in the List corresponding to "zhe B".
S210, judging whether the number of elements in the subset corresponding to the first license plate area identification is smaller than the total number of elements in the subset corresponding to the license plate area identifications except the first license plate area identification in the first effective vehicle passing data set corresponding to each card port number, and if so, judging that the card port number is a marginal card port.
Specifically, it is determined whether the number of vehicles in the city corresponding to each crossingIndexCode in step S209 is smaller than the number of vehicles in the other cities, and if so, it is determined that this crossingIndexCode is an intercity gate.
For example: regarding the number of elements in the List corresponding to "zhe a" and the number of elements in the List corresponding to "zhe B" in the first valid vehicle passing data set corresponding to bayonet a calculated in step S209, if the number of elements in the List corresponding to "zhe a" is less than the number of elements in the List corresponding to "zhe B", bayonet a is determined to be an intercity bayonet.
According to the inter-city gate and inter-city gate passing rule, the data volume of the inter-city gate passing vehicles in the city is larger, and the vehicle passing vehicles outside the inter-city gate is larger, so that the inter-city gate is filtered from the gates passing vehicles outside the city, the range of the inter-city gate is further reduced, if the number of the inter-city vehicles in the gate A is larger than that of the inter-city vehicles, the gate A is not considered as the inter-city gate, and otherwise, the gate A is considered as the inter-city gate.
S211, acquiring the total number of elements for marking the head direction and the total number of elements for marking the tail direction in each subset in a first effective vehicle passing data set corresponding to the marginal bayonet, and if the total number of the elements for marking the head direction is greater than the total number of the elements for marking the tail direction, determining the marginal bayonet as the marginal bayonet in the city entering direction; and if the total number of the elements for marking the direction of the vehicle head is less than the total number of the elements for marking the direction of the vehicle tail, determining the marginal bayonet as the marginal bayonet in the coming direction.
Specifically, the List set of each intercity gate calculated in step S209 is traversed, and the number of vehicles entering and exiting the city is counted according to vehicleHeadOrTail, for example: if the vehicle head is identified as 1, the vehicle is an entering vehicle; if vehicleHeadOrTail is recognized as the tail of the vehicle, the vehicle is an out-of-town vehicle, if the number of out-of-town vehicles is greater than the number of in-town vehicles, the cross IndexCode is judged to be an inter-city gate in the out-of-town direction, and otherwise, the cross IndexCode is judged to be an inter-city gate in the in-town direction.
For example, for Map < bayonet a, List < Map < "zhe a", List < "vehicle head", "vehicle tail", "vehicle head" >, Map < "zhe B", List < "vehicle head", "vehicle tail" > > >, the numbers of elements "vehicle head" and "vehicle tail" in the set are respectively counted, and if the number of elements "vehicle head" is greater than the number of elements "vehicle tail", it is determined that bayonet a is an intercity bayonet in the city entering direction; and if the number of the elements 'car heads' is less than that of the elements 'car tails', judging the bayonet A as an intercity bayonet in the city-leaving direction.
And S212, updating the stored bayonet data according to the determined marginal bayonet.
Specifically, if the stored bayonet data does not include the determined bayonet, the determined marginal bayonet information is stored;
if the stored bayonet data comprises the determined bayonet, adding the determined marginal bayonet information to the stored bayonet;
and if the determined in-out direction information corresponding to the marginal bayonet is inconsistent with the stored in-out direction information, replacing the stored in-out direction information with the determined in-out direction information corresponding to the marginal bayonet.
The method for detecting a marginal gate provided in the embodiment of the present invention determines, according to an obtained valid vehicle-passing data set of a same gate within a certain time period, an occupation ratio of a local vehicle-passing data volume passing through the gate in the valid vehicle-passing data set and an occupation ratio of an external vehicle-passing data volume passing through the gate in the valid vehicle-passing data set, since the occupation ratio of the local vehicle passing through the marginal gate is usually smaller than that of the external vehicle, by comparing the two occupation ratios, it can be determined whether the gate is the marginal gate, and an entering-exiting direction of the marginal gate can be determined by comparing the occupation ratio of the city-passing data volume in the first valid vehicle-passing data set and the occupation ratio of the city-entering vehicle-passing data volume in the valid vehicle-passing data set, the present invention determines that the marginal gate and the entering-exiting direction are both based on the valid vehicle-passing data passing through the gate, the effective vehicle passing data is objective data acquired in real time, so that the detection result obtained according to the effective vehicle passing data is more accurate, and a city manager performs city management according to the marginal checkpoint determined by the invention, so that the reliability is higher.
An embodiment of the present invention further provides a device for detecting a marginal bayonet, as shown in fig. 2, the device includes:
the acquiring unit 11 is configured to acquire a first valid vehicle passing data set of the same gate within a predetermined time period;
a first determining unit 12, configured to respectively determine, according to the first valid vehicle passing data set, a first proportion of the local vehicle passing data volume that passes through the gate in the first valid vehicle passing data set and a second proportion of the foreign vehicle passing data volume that passes through the gate in the first valid vehicle passing data set; the local vehicle is a vehicle with a license plate belonging to the current region; the vehicles outside the country are vehicles of which the license plate home location does not belong to the current region range;
a second determining unit 13, configured to determine that the bayonet is a marginal bayonet when the first duty ratio is smaller than the second duty ratio.
The detection device for the marginal gate provided by the embodiment of the invention respectively determines the proportion of the local vehicle passing data volume passing through the gate in the effective vehicle passing data set and the proportion of the foreign vehicle passing data volume in the effective vehicle passing data set according to the acquired effective vehicle passing data set of the same gate in a certain time period, since the local vehicle occupancy at the marginal gate is typically less than the foreign vehicle occupancy, by comparing the two occupancy, namely, whether the bayonet is the marginal bayonet can be determined, the marginal bayonet is determined according to the effective vehicle passing data passing through the bayonet, the effective vehicle passing data is objective data acquired in real time, so that the detection result obtained according to the effective vehicle passing data is more accurate, and a city manager performs city management according to the marginal checkpoint determined by the invention, so that the reliability is higher.
Further, as shown in fig. 3, the acquiring unit 11 includes:
the first obtaining module 111 is configured to obtain a second effective vehicle passing data set of at least two checkpoints within a preset region range within a preset time period;
a first determining module 112, configured to determine a target gate from the second valid vehicle passing data set; the target bayonet is a bayonet through which the vehicle outside the country passes;
a second determining module 113, configured to determine, from the second valid vehicle passing data set, a first valid vehicle passing data set that passes through the same target gate.
Further, as shown in fig. 4, the first determining module 112 includes:
the grouping submodule 1121 is configured to group the vehicle passing data in the second effective vehicle passing data set according to the license plate attribution, where the license plate attributions corresponding to the vehicle passing data in each group are the same;
the determining submodule 1122 is configured to determine that the gates included in the passing data of the other groups except the group with the largest passing data amount are the target gates.
Further, as shown in fig. 5, the apparatus further includes:
a third determining unit 14, configured to determine, according to the first valid vehicle passing data set, a third proportion of the amount of the outbound vehicle passing data in the first valid vehicle passing data set and a fourth proportion of the amount of the inbound vehicle passing data in the first valid vehicle passing data set, respectively, after the second determining unit 13 determines that the gate is the marginal gate;
a fourth determining unit 15, configured to determine that the bayonet is a city entry bayonet when the third percentage is smaller than the fourth percentage; and when the third ratio is larger than the fourth ratio, determining that the bayonet is a city-out bayonet.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
The embodiment of the present invention further provides a detection apparatus 2 for a marginal bayonet, as shown in fig. 6, including:
a memory 21;
and a processor 22 coupled to the memory 21, wherein the processor 22 is configured to execute the marginal bayonet detection method according to the above embodiment based on the instructions stored in the memory 21.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions, when executed by a processor, implement the marginal bayonet detection method described in the foregoing embodiment.
It will be understood by those skilled in the art that all or part of the processes of the embodiments of the methods described above may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A marginal bayonet detection method is characterized by comprising the following steps:
acquiring a first effective vehicle passing data set of the same gate in a preset time period;
according to the first effective vehicle passing data set, respectively determining a first proportion of local vehicle passing data volume passing through the gate in the first effective vehicle passing data set and a second proportion of foreign vehicle passing data volume passing through the gate in the first effective vehicle passing data set; the local vehicle is a vehicle with a license plate belonging to the current region; the vehicles outside the country are vehicles of which the license plate home location does not belong to the current region range;
and when the first occupation ratio is smaller than the second occupation ratio, determining that the bayonet is a marginal bayonet.
2. The method of claim 1, wherein the obtaining a first valid vehicle passing data set for the same gate for a predetermined period of time comprises:
acquiring a second effective vehicle passing data set of at least two checkpoints within a preset time period and a preset area range;
determining a target gate from the second valid passing data set; the target bayonet is a bayonet through which the vehicle outside the country passes;
and determining a first effective vehicle passing data set passing through the same target gate from the second effective vehicle passing data set.
3. The method of claim 2, wherein the determining a target checkpoint from the second set of valid vehicle passing data comprises:
according to the attribution places of the license plates, the vehicle passing data in the second effective vehicle passing data set are grouped, and the attribution places of the license plates corresponding to the vehicle passing data in each group are the same;
and determining the bayonets contained in the passing data of other groups except the group with the largest passing data amount as the target bayonets.
4. The method of any of claims 1-3, further comprising, after the determining that the bayonet is a marginal bayonet:
according to the first effective vehicle passing data set, respectively determining a third proportion of the data volume of the coming-in vehicle passing in the first effective vehicle passing data set and a fourth proportion of the data volume of the coming-in vehicle passing in the first effective vehicle passing data set;
when the third ratio is smaller than the fourth ratio, determining that the bayonet is a city-entering bayonet;
and when the third ratio is larger than the fourth ratio, determining that the bayonet is a city-out bayonet.
5. A marginal bayonet detection device is characterized by comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first effective vehicle passing data set of the same gate in a preset time period;
a first determination unit, configured to respectively determine, according to the first valid vehicle passing data set, a first proportion of local vehicle passing data volume that passes through the gate in the first valid vehicle passing data set and a second proportion of foreign vehicle passing data volume that passes through the gate in the first valid vehicle passing data set; the local vehicle is a vehicle with a license plate belonging to the current region; the vehicles outside the country are vehicles of which the license plate home location does not belong to the current region range;
and the second determining unit is used for determining the bayonet to be a marginal bayonet when the first occupation ratio is smaller than the second occupation ratio.
6. The apparatus of claim 5, wherein the obtaining unit comprises:
the first acquisition module is used for acquiring a second effective vehicle passing data set of at least two checkpoints within a preset time period and a preset area range;
the first determining module is used for determining a target gate from the second effective vehicle passing data set; the target bayonet is a bayonet through which the vehicle outside the country passes;
and the second determining module is used for determining a first effective vehicle passing data set passing through the same target gate from the second effective vehicle passing data set.
7. The apparatus of claim 6, wherein the first determining module comprises:
the grouping submodule is used for grouping the vehicle passing data in the second effective vehicle passing data set according to the attribution of the vehicle license plate, and the attributions of the vehicle license plates corresponding to the vehicle passing data in each group are the same;
and the determining submodule is used for determining the bayonets contained in the passing data of other groups except the group with the maximum passing data amount as the target bayonets.
8. The apparatus of any of claims 5 to 7, further comprising:
a third determining unit, configured to determine, according to the first effective vehicle passing data set, a third proportion of the amount of the outbound vehicle passing data in the first effective vehicle passing data set and a fourth proportion of the amount of the inbound vehicle passing data in the first effective vehicle passing data set, respectively, after the second determining unit determines that the gate is the marginal gate;
a fourth determining unit, configured to determine that the bayonet is a city entry bayonet when the third percentage is smaller than the fourth percentage; and when the third ratio is larger than the fourth ratio, determining that the bayonet is a city-out bayonet.
9. A marginal bayonet detection device comprises:
a memory;
and a processor coupled to the memory, the processor configured to execute the method for detecting a marginal bayonet according to any one of claims 1 to 4 based on instructions stored in the memory.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions which, when executed by a processor, implement the marginal bayonet detection method according to any one of claims 1 to 4.
CN201911073787.3A 2019-11-05 2019-11-05 Marginal bayonet detection method and device and computer readable storage medium Active CN111369803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911073787.3A CN111369803B (en) 2019-11-05 2019-11-05 Marginal bayonet detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911073787.3A CN111369803B (en) 2019-11-05 2019-11-05 Marginal bayonet detection method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111369803A CN111369803A (en) 2020-07-03
CN111369803B true CN111369803B (en) 2021-11-19

Family

ID=71210281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911073787.3A Active CN111369803B (en) 2019-11-05 2019-11-05 Marginal bayonet detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111369803B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1147818C (en) * 2001-01-11 2004-04-28 中华人民共和国深圳出入境边防检查总站 Multi-media processing method for vehicle immigration data
CN102426786B (en) * 2011-11-15 2014-02-12 无锡港湾网络科技有限公司 Intelligent video analyzing system and method for automatically identifying fake plate vehicle
CN104574974A (en) * 2013-10-22 2015-04-29 镇江石鼓文智能化系统开发有限公司 Traffic block port monitoring system for urban road
CN105427602B (en) * 2015-12-16 2018-04-27 浙江宇视科技有限公司 A kind of vehicle driving theme determines method and device
CN106971534B (en) * 2017-02-09 2019-09-06 江苏智通交通科技有限公司 Commuter characteristic analysis method based on number plate data
CN108765968A (en) * 2018-07-04 2018-11-06 珠海市特车网络科技有限公司 A kind of management and control region car monitoring system
CN108717790B (en) * 2018-07-06 2021-02-26 广州市交通运输研究所 Vehicle travel analysis method based on checkpoint license plate recognition data

Also Published As

Publication number Publication date
CN111369803A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN108091140B (en) Method and device for determining fake-licensed vehicle
CN109615853B (en) Method and device for identifying suspected illegal operating vehicles on expressway
CN108257386B (en) Method and device for acquiring running track
CN107645709B (en) Method and device for determining personnel information
CN109165237A (en) Method, apparatus and electronic equipment are determined with object
CN110888884B (en) Vehicle code fitting method and system based on geohash matching
CN110942640B (en) Method for actively discovering suspect vehicle illegally engaged in network car booking passenger transportation
CN111179589B (en) Method, device, equipment and storage medium for predicting vehicle OD
CN111369801B (en) Vehicle identification method, device, equipment and storage medium
CN110851490B (en) Vehicle travel common stay point mining method and device based on vehicle passing data
CN106571040B (en) Suspicious vehicle confirmation method and equipment
CN111598347A (en) Road transport vehicle ultra-long stroke segmentation optimization method
CN111949701B (en) Moving object travel rule analysis method and device based on track similarity
CN110956822B (en) Fake-licensed vehicle identification method and device, electronic equipment and readable storage medium
CN112115946B (en) License plate fake-license plate identification method and device, storage medium and electronic equipment
CN111369803B (en) Marginal bayonet detection method and device and computer readable storage medium
CN111369790B (en) Vehicle passing record correction method, device, equipment and storage medium
CN111368617B (en) Vehicle access data processing method and device
CN111368626B (en) Vehicle identification method, device, electronic equipment and storage medium
CN111078923A (en) Method, device and storage medium for searching illegal suspected vehicle
CN111488417A (en) Information processing method, system, device, equipment and computer storage medium
CN111369804B (en) Vehicle data processing method and device, electronic equipment and storage medium
CN113989715A (en) Vehicle parking violation detection method and device, electronic equipment and storage medium
CN113779171A (en) Method and device for determining object foot placement point, storage medium and electronic device
CN106448178B (en) Fake-licensed vehicle analysis method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant