Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide the intelligent card issuing method for the highway toll collection channel, which can be used for preparing cards in advance and issuing the cards without keys, effectively preventing the cards from being stolen and repeatedly getting the cards, limiting the passage of vehicles in danger of two passengers and one passenger, being compatible with ETC cards and supporting the card recovery.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a full-automatic intelligent card issuing control method based on license plate vehicle types is characterized in that a vehicle type license plate recognition system and a card machine control system of an automatic card issuing machine at an entrance lane of a highway toll plaza are used as executing devices, corresponding stations are controlled to be provided with cards in advance to be issued according to license plate vehicle type recognition results, vehicles in danger of two passengers and one support card are limited to drive in at a high speed in a traffic-restricted time period, and ETC cards and support card recycling are compatible to avoid repeated card taking and card stealing; the method mainly comprises the following steps:
a) firstly, a license plate vehicle type recognition system of an automatic card sender is set to circularly call an IO card interface to obtain a trigger coil state CL and a passing coil state PL;
b) comparing the current trigger coil state CL with the last trigger coil state LCL, judging whether a vehicle arrives, and assigning a vehicle arrival mark CR;
c) comparing the current passing coil state PL with the last passing coil state LPL, judging whether a vehicle passes through or not, and assigning a vehicle passing mark CG;
d) storing the state of the trigger coil, and assigning CL to the LCL, namely enabling the LCL = CL; meanwhile, the state of a passing coil is stored, and PL is assigned to LPL, namely LPL = PL;
e) checking a CR value, if CR =1 indicates that a vehicle arrives, executing the step f downwards, and otherwise, returning to execute the step a);
f) calling a license plate recognition interface to obtain a license plate recognition result CP, and calling a vehicle type recognition interface to obtain a current vehicle type recognition result CT;
g) if the vehicle type identification result CT is empty, namely the vehicle type is 0 and the vehicle height is 0, and the license plate number of the license plate identification result CP is 'no-license plate vehicle', judging that the current card stealing operation is performed, and forbidding an unattended card machine to issue cards; if the vehicle is invalid, the system returns to execute the step a);
h) if the license plate number of the current license plate recognition result CP is consistent with the license plate number of the last card-taking vehicle license plate recognition result LCP, the vehicle is judged to be repeatedly card-taking, and card issuing by an unattended card machine is forbidden; if the vehicle is invalid, the system returns to execute the step a);
i) if the dangerous goods mark of the license plate recognition result CP is 1 or the vehicle type recognition result CT shows that the vehicle is a vehicle type of two passengers, the current vehicle is a vehicle with two passengers and one danger, the mark SK of the two passengers and one danger is set to be 1, and if not, the mark SK is set to be 0;
j) if the 'two passengers are in danger' mark SK =1, the current time CN of the system is obtained, and whether the CN is in the 'two passengers are in danger' vehicle restricted time interval T is judged1、T2、…、TnIf the restricted traffic flag XR =1 is set in the restricted traffic time period, the traffic is restricted, otherwise, XR =0 is set, the traffic is not restricted;
k) if the restricted bank mark XR =1, the unattended card machine is prohibited to issue cards; if the vehicle is invalid, the system returns to execute the step a); if the restricted line mark XR =0, entering the l) step;
l) judging a card issuing station according to the vehicle height if the recognition result is that the vehicle is allowed to pass in the previous step, controlling the automatic card sender to issue cards at a lower station if the vehicle height of the vehicle type recognition result CT is smaller than a set threshold, and controlling the automatic card sender to issue cards at an upper station if the vehicle height is not smaller than the set threshold;
m) simultaneously, the vehicle type and license plate recognition system sends the card issuing information of the vehicle to the card machine control system, and the license plate and vehicle type information is sent to lane charging software;
n) the card machine control system sends a card sending request instruction to the lane charging software after receiving the vehicle card sending information, and waits for the lane charging software to write in and reply the information;
o) if the card machine control system receives a damaged card recovery command of lane charging software, controlling a card sending station to recover a damaged card to a damaged card recovery box, and carrying out card standby operation again; if the card machine control system receives a card issuing command allowed by lane charging software, the card machine control system controls the corresponding station to discharge the card, if the card is discharged from the next station, the telescopic bayonet extends forwards for a set distance, so that a driver can conveniently take the card; after the card is successfully discharged, the card machine control system reports the card discharging completion information to lane charging software to wait for the vehicle to take the pass card away;
p) if the card taking key at the opposite station is pressed, the card machine control system reports the key information to lane charging software, recovers the card after receiving a card recovery command of the lane charging software and reports the recovery completion information to the lane charging software, and controls the key to discharge the card at the corresponding station after receiving a card re-issuing command of the lane charging software; after the card is successfully discharged, the card machine control system reports the card discharging completion information to lane charging software to wait for the vehicle to take the pass card away;
q) if the vehicle takes the pass card away, the card machine control system reports the card taking information to lane charging software, controls the corresponding card sending station to restore the original position and carries out card standby operation on the next pass card in advance;
r) if the vehicle brushes the ETC card, the card machine control system controls the card sending station to recover the card to the standby card position after receiving a card recovery command of lane charging software; reporting the card recovery completion information to lane charging software;
and s) subsequently storing the license plate number of the vehicle into LCP by the license plate vehicle type recognition system, deleting the current vehicle type information in the vehicle type queue, returning to execute the step a) and circulating the vehicle type number in a successive cycle according to the vehicle passing condition.
As a preferred technical solution of the present invention, in step a), CL and PL are assigned according to the following rules: a value of 0 indicates no car on the coil and a value of 1 indicates a car on the coil.
As a preferred embodiment of the present invention, in step b), if LCL =0 and CL =1, it indicates that a vehicle arrives, at this time, a vehicle arrival flag CR =1 is set, indicating that a vehicle arrives, otherwise, CR =0 is set, indicating that no vehicle arrives.
As a preferred embodiment of the present invention, in step c), if LPL =1 and PL =0, it indicates that the vehicle passes, a vehicle passing flag CG =1 is set, indicating that there is a vehicle passing; otherwise, CG =0 is set, indicating no vehicle has passed.
As a preferred technical scheme of the present invention, in step f), the CP at least includes a license plate number, a license plate color, and hazardous vehicle logo information; the CT at least comprises information of vehicle type and vehicle height.
In a preferable technical scheme of the invention, in a CP value assignment system, 0 is used for non-dangerous goods vehicles and 1 is used for dangerous goods vehicles.
As a preferred technical scheme, in the steps g) and h), after the system judges that the card is stolen or the card is repeatedly taken, the yellow flash alarm is turned on to give an alarm while the card is issued by the unattended card machine.
As a preferred technical scheme of the invention, in the step k), after the system judges the restriction, the yellow flashing alarm is turned on and the prompt voice is played while the card issuing of the unattended card machine is forbidden.
As a preferred technical solution of the present invention, in step n), the card issuing information at least includes card issuing station information, vehicle type information, two-passenger one-dangerous vehicle marking information, and card leaving permission information.
The beneficial effects produced by adopting the technical scheme are as follows.
The invention designs a set of full-automatic intelligent card issuing control system based on the vehicle type of the license plate based on the existing vehicle type license plate recognition system and the card machine control system by combining the infrastructure and the existing equipment condition of the existing highway toll station, is applied to an unattended card issuing lane at an entrance of a highway, and has good applicability and compatibility.
The control method of the invention does not need manual keys of a driver, and the card can be prepared and taken out in advance by corresponding stations (up/down stations) of the automatic card sender after the system identifies the information of the type of the license plate, thereby reducing the waiting time of the vehicle and improving the passing efficiency of the vehicle at the entrance.
The function of preparing and outputting the card in advance has good compatibility with the ETC passing card, namely, if a driver swipes the ETC passing card, the automatic card sender can identify and automatically recover the card sent in advance. In addition, the function of preparing and taking out the card in advance of the invention has good compatibility with the function of taking the card by pressing the key, namely, if the driver selects the key to take the card by pressing the key at the opposite station, the automatic card sender can identify and automatically recycle the card sent in advance.
The invention can also limit the high speed of the vehicle which is dangerous for two passengers in the traffic-restricted time period; and the phenomena of repeated card taking and card stealing are effectively prevented through the optimization cycle verification of license plate vehicle type identification.
Detailed Description
The following examples illustrate the invention in detail. The invention can realize seamless connection and compatibility with the vehicle type license plate recognition system and the card machine control system of the automatic card sender of the existing high-speed charging system, and does not need to add any equipment on hardware, thereby bringing great convenience for application and popularization of the control method. The control method of the invention mainly comprises the following steps:
a) firstly, a license plate vehicle type recognition system of an automatic card sender is set to circularly call an IO card interface to obtain a trigger coil state CL and a passing coil state PL, and the CL and the PL are assigned according to the following rules: a value of 0 indicates no car on the coil and a value of 1 indicates a car on the coil.
b) Comparing the current trigger coil state CL with the last trigger coil state LCL to judge whether a vehicle arrives; if LCL =0 and CL =1, it means that the vehicle arrives, at this time, a vehicle arrival flag CR =1 is set, it means that there is a vehicle coming, otherwise, CR =0 is set, it means that there is no vehicle coming.
c) Comparing the current passing coil state PL with the last passing coil state LPL to judge whether a vehicle passes through; if LPL =1 and PL =0, indicating that the vehicle passes, a vehicle passing flag CG =1 is set, indicating that there is a vehicle passing; otherwise, CG =0 is set, indicating no vehicle has passed.
d) Storing the state of the trigger coil, and assigning CL to the LCL, namely enabling the LCL = CL; and meanwhile, the state of the passing coil is saved, and PL is assigned to LPL, namely LPL = PL.
e) Checking a CR value, if CR =1 indicates that a vehicle arrives, executing the step f downwards, and otherwise, returning to execute the step a);
f) calling a license plate recognition interface to obtain a license plate recognition result CP, and calling a vehicle type recognition interface to obtain a current vehicle type recognition result CT; the CP data group at least comprises license plate numbers, license plate colors and dangerous goods vehicle mark information, and 0 is adopted to represent non-dangerous goods vehicles and 1-represents dangerous goods vehicles; the CT data set at least includes information of vehicle type and vehicle height.
g) If the vehicle type identification result CT is empty, namely the vehicle type is 0 and the vehicle height is 0, and the license plate number of the license plate identification result CP is 'no-license plate vehicle', judging that the current card stealing operation is performed, prohibiting an unattended card machine from issuing cards, and simultaneously turning on a yellow flashing alarm to give an alarm; the vehicle is invalid and the system returns to execute the step a).
h) If the license plate number of the current license plate recognition result CP is consistent with the license plate number of the last card-taking vehicle license plate recognition result LCP, the vehicle is judged to be repeatedly card-taking, the card issuing of an unattended card machine is forbidden, and meanwhile, a yellow flash alarm is turned on to give an alarm; the vehicle is invalid and the system returns to execute the step a).
i) If the dangerous goods mark of the license plate recognition result CP is 1 or the vehicle type recognition result CT shows that the vehicle is a vehicle with two passengers and one dangerous, the current vehicle is represented as a vehicle with two passengers and one dangerous, the mark SK with two passengers and one dangerous is set to be 1, and otherwise, the mark SK with two passengers and one dangerous is set to be 0.
j) If the 'two passengers are in danger' mark SK =1, the current time CN of the system is obtained, and whether the CN is in the 'two passengers are in danger' vehicle restricted time interval T is judged1、T2、…、TnIf the restricted traffic flag XR =1 is set in the restricted traffic period, the traffic is restricted, otherwise, XR =0 is set, the traffic is not restricted.
k) If the restricted driving mark XR =1, forbidding the unattended card machine to issue cards, simultaneously turning on a yellow flashing alarm to give an alarm and playing a prompt voice; if the vehicle is invalid, the system returns to execute the step a); and if the restricted line mark XR =0, entering the l) step.
l) judging a card issuing station according to the vehicle height if the recognition result is that the vehicle is allowed to pass in the previous step, controlling the automatic card sender to issue the card at a lower station if the vehicle height of the vehicle type recognition result CT is less than a set threshold, and controlling the automatic card sender to issue the card at an upper station if the vehicle height of the vehicle type recognition result CT is not less than the set threshold.
m) simultaneously, the vehicle type and license plate recognition system sends the card issuing information of the vehicle to the card machine control system, and the license plate and vehicle type information is sent to lane charging software.
And n) the card machine control system sends a card sending request instruction to the lane charging software after receiving the vehicle card sending information, and waits for the lane charging software to write in and reply the information.
o) if the card machine control system receives a damaged card recovery command of lane charging software, controlling a card sending station to recover a damaged card to a damaged card recovery box, and carrying out card standby operation again; if the card machine control system receives a card issuing command allowed by lane charging software, the card machine control system controls the corresponding station to discharge the card, if the card is discharged from the next station, the telescopic bayonet extends forwards for a set distance, so that a driver can conveniently take the card; and after the card is successfully discharged, the card machine control system reports the card discharging completion information to lane charging software to wait for the vehicle to take the pass card away.
p) if the card taking key at the opposite station is pressed, the card machine control system reports the key information to lane charging software, recovers the card after receiving a card recovery command of the lane charging software and reports the recovery completion information to the lane charging software, and controls the key to discharge the card at the corresponding station after receiving a card re-issuing command of the lane charging software.
q) if the vehicle takes the pass card away, the card machine control system reports the card taking information to lane charging software, controls the corresponding card sending station to restore the original position and carries out card standby operation on the next pass card in advance; if the vehicle brushes the ETC card, the card machine control system controls the card sending station to recover the card to the standby card position after receiving the card recovery command of the lane toll software.
And r) subsequently storing the license plate number of the vehicle into LCP by the license plate vehicle type recognition system, deleting the current vehicle type information in the vehicle type queue, returning to execute the step a) and circulating the vehicle in successive times according to the vehicle passing condition.
The invention takes the automatic card sender arranged on the entrance lane of the highway toll plaza as an execution device, and can prepare and discharge cards in advance at corresponding stations (up/down stations) of the automatic card sender according to the license plate vehicle type recognition result, thereby reducing the vehicle waiting time and improving the entrance vehicle passing efficiency. The function of preparing and outputting the card in advance has good compatibility with an ETC card swiping passing mode, and the automatic card sender can identify and automatically recover the card sent in advance under the condition that the ETC card swipes. The invention can also limit the high speed of the vehicle which is dangerous for two passengers in the traffic-restricted time period; and the optimized cycle verification of license plate vehicle type recognition effectively prevents the phenomena of repeated card taking and card stealing, improves the safety, facilitates the management and obviously improves the passing efficiency of the highway entrance.
The above description is only presented as an enabling solution for the present invention and should not be taken as a sole limitation on the solution itself.