Summary of the invention
In view of this, the embodiment of the invention provides a kind of large-sized truck method for generating message violating the regulations and systems, to solve
It is difficult to generate large-sized truck message violating the regulations in time in the prior art, so that the problem that the supervision effect of large-sized truck is not satisfactory.
In a first aspect, the embodiment of the invention provides a kind of large-sized truck method for generating message violating the regulations, comprising:
Car-mounted terminal obtains current position coordinates, detects whether the current position coordinates are in highway;
If the current position coordinates are in highway, judge whether current lane is the highway
Left-lane;
If the current lane is the left-lane of the highway, shooting instruction is just triggered, is referred to using the shooting
It enables, obtains camera shooting group towards the shooting time of the vehicle image and the vehicle image of region shooting immediately ahead of windshield, know
The license plate number of the not described vehicle image;
In preset storage region, obtain the large-sized truck license plate number of this province prestored, by the license plate number with it is described
The large-sized truck license plate number of this province is matched;
If the large-sized truck license plate number successful match of the license plate number and described province, just identify the license plate number for this
The large-sized truck license plate number of province;
By preset large-sized truck label, the large-sized truck license plate number, shooting time and the position coordinates violating the regulations
Package generates large-sized truck message violating the regulations;
It establishes the large-sized truck to break rules and regulations the corresponding relationship that message and the large-sized truck break rules and regulations between video, to default
Management server upload break rules and regulations message, the large-sized truck of the large-sized truck and break rules and regulations video and the corresponding relationship.
Preferably, if the current position coordinates are in highway, judge whether current lane is institute
The left-lane of highway is stated, specifically:
If the current position coordinates are in highway, the road image of the highway is obtained, to institute
It states road image and carries out lane identification, if lane identification is left-lane, be judged as the left side that current lane is the highway
Lane is judged as current lane not and is the left-lane of the highway if lane identification is middle lane or right lane.
Preferably, if the current position coordinates are in highway, judge whether current lane is institute
The left-lane of highway is stated, specifically:
If the current position coordinates are in highway, by being mounted on the side view camera of left-hand mirror,
The image for obtaining the vehicle body left side identifies that the image on the vehicle body left side whether there is mobile object, simultaneously using background subtraction
By being mounted on the range sensor of handle outside left-hand door, vehicle body is obtained with a distance from the railing of left side, if within a preset time,
There is no the mean value of mobile object and the vehicle body with a distance from the railing of left side to be less than pre-determined distance for the image on the vehicle body left side,
It is judged as the left-lane that current lane is the highway, if within a preset time, the image on the vehicle body left side exists
The mean value of mobile object or the vehicle body with a distance from the railing of left side is not less than pre-determined distance, and it is described for being judged as current lane not
The left-lane of highway.
Preferably, if the current lane is the left-lane of the highway, shooting instruction is just triggered, is utilized
The shooting instruction obtains the bat of camera shooting group towards the vehicle image and the vehicle image of region shooting immediately ahead of windshield
The time is taken the photograph, identifies the license plate number of the vehicle image, specifically:
If the current lane is the left-lane of the highway, current vehicle speed is obtained, whether judges current vehicle speed
Lower than the minimum traveling travel speed that the left-lane of the highway requires, if the current vehicle speed is public lower than the high speed
The minimum traveling travel speed that the left-lane on road requires, just utilizes the shooting instruction, obtain camera shooting group towards windshield just before
The vehicle image of square region shooting and the shooting time of the vehicle image, identify the license plate number of the vehicle image.
It is described that preset large-sized truck is broken rules and regulations label, the large-sized truck license plate number, shooting time and the position
Coordinate package generates large-sized truck message violating the regulations, specifically:
Image frame per second is obtained, image frame per second is multiplied with preset time, obtains the vehicle got in preset time
The frame number of image obtains the number for the large-sized truck license plate number that the identification license plate number in preset time is this province, according to default
Lorry identification safety factor to generate model, the frame number of the vehicle image got and the identification license plate number be this province
Large-sized truck license plate number number, the lorry identification for generating the large-sized truck license plate number for identifying that the license plate number is this province is reliable
Coefficient, when lorry identification safety factor is greater than preset value, by preset large-sized truck label, the large-sized truck license plate violating the regulations
Number, shooting time and the position coordinates package, generate large-sized truck and break rules and regulations message;
Wherein, lorry identification safety factor generates model specifically:
Wherein, V is that lorry identifies that safety factor, V are made of discrimination and migration index two parts,For identification
Rate, Ni indicate that the number for the large-sized truck license plate number for identifying that the license plate number is this province in preset time, Frames indicate default
In time, the frame number of the vehicle image got;For migration index, No indicates preset identification number;0 < a < 1,
The size of 0 < b < 1, a+b=1, a and b decide the weight of discrimination and migration index in lorry identification safety factor respectively
Than.
Preferably, the position coordinates are GPS coordinate or Beidou coordinate, and the large-sized truck breaks rules and regulations label by the first character
String and the second character string composition, first character string are 0x1906, and second character string is Truck.
Second aspect, the embodiment of the invention provides a kind of large-sized truck message violating the regulations to generate system, comprising:
Position coordinates obtain module, for obtaining current position coordinates, detect whether the current position coordinates are located
In in highway;
Left-lane judgment module judges current lane if be in highway for the current position coordinates
Whether be the highway left-lane;
License plate number identification module, if being the left-lane of the highway for the current lane, just triggering shooting
Instruction obtains vehicle image and the vehicle that camera shooting group is shot towards region immediately ahead of windshield using the shooting instruction
The shooting time of image, identifies the license plate number of the vehicle image;
Large-sized truck license plate number matching module, for obtaining the large-scale goods of this province prestored in preset storage region
Vehicle license plate number matches the license plate number with the large-sized truck license plate number of described province;
Large-sized truck license plate number identification module, if the large-sized truck license plate number for the license plate number and described province
With success, just identify that the license plate number is the large-sized truck license plate number of this province;
Large-sized truck is broken rules and regulations message generating module, for preset large-sized truck to be broken rules and regulations label, the large-sized truck vehicle
The trade mark, shooting time and the position coordinates package generate large-sized truck message violating the regulations;
Large-sized truck is broken rules and regulations message uploading module, is broken rules and regulations message and the large-sized truck for establishing the large-sized truck
Corresponding relationship between video violating the regulations uploads large-sized truck message violating the regulations, the large-scale goods to preset management server
Vehicle video violating the regulations and the corresponding relationship.
Preferably, the left-lane judgment module, is specifically used for:
If the current position coordinates are in highway, the road image of the highway is obtained, to institute
It states road image and carries out lane identification, if lane identification is left-lane, be judged as the left side that current lane is the highway
Lane is judged as current lane not and is the left-lane of the highway if lane identification is middle lane or right lane.
Preferably, the left-lane judgment module, is specifically used for:
If the current position coordinates are in highway, by being mounted on the side view camera of left-hand mirror,
The image for obtaining the vehicle body left side identifies that the image on the vehicle body left side whether there is mobile object, simultaneously using background subtraction
By being mounted on the range sensor of handle outside left-hand door, vehicle body is obtained with a distance from the railing of left side, if within a preset time,
There is no the mean value of mobile object and the vehicle body with a distance from the railing of left side to be less than pre-determined distance for the image on the vehicle body left side,
It is judged as the left-lane that current lane is the highway, if within a preset time, the image on the vehicle body left side exists
The mean value of mobile object or the vehicle body with a distance from the railing of left side is not less than pre-determined distance, and it is described for being judged as current lane not
The left-lane of highway.
Preferably, the large-sized truck license plate number identification module, is specifically used for: if the current lane is the high speed
The left-lane of highway obtains current vehicle speed, judges whether current vehicle speed is lower than the minimum of the left-lane requirement of the highway
Travel speed is travelled, if the current vehicle speed travels travel speed lower than the minimum that the left-lane of the highway requires,
The shooting instruction is just utilized, vehicle image and the vehicle figure that camera shooting group is shot towards region immediately ahead of windshield are obtained
The shooting time of picture identifies the license plate number of the vehicle image.
Preferably, large-sized truck message generating module violating the regulations, is specifically used for: image frame per second is obtained, by image frame per second
It is multiplied with preset time, obtains the frame number of the vehicle image got in preset time, obtain and identify institute in preset time
The number for stating the large-sized truck license plate number that license plate number is this province identifies that safety factor generates model, acquisition according to preset lorry
The frame number and the identification license plate number of the vehicle image arrived are the number of the large-sized truck license plate number of this province, generate identification
The license plate number is that the lorry of the large-sized truck license plate number of this province identifies safety factor, is preset when lorry identification safety factor is greater than
When value, preset large-sized truck label, the large-sized truck license plate number, shooting time and the position coordinates violating the regulations are sealed
Packet generates large-sized truck message violating the regulations;
Wherein, lorry identification safety factor generates model specifically:
Wherein, V is that lorry identifies that safety factor, V are made of discrimination and migration index two parts,For identification
Rate, Ni indicate that the number for the large-sized truck license plate number for identifying that the license plate number is this province in preset time, Frames indicate default
In time, the frame number of the vehicle image got;For migration index, No indicates preset identification number;0 < a < 1,
The size of 0 < b < 1, a+b=1, a and b decide the weight of discrimination and migration index in lorry identification safety factor respectively
Than.
Compared to the prior art, the method for generating message violating the regulations of large-sized truck provided by the embodiment of the present invention and system, solution
It has determined and has been difficult to generate large-sized truck message violating the regulations in the prior art in time, asked so that the supervision effect of large-sized truck is not satisfactory
Topic.
Specific embodiment
It is the implementation flow chart of large-sized truck provided in an embodiment of the present invention method for generating message violating the regulations with reference to Fig. 1, Fig. 1,
This method is applied to terminal, and large-sized truck as shown in Figure 1 method for generating message violating the regulations may comprise steps of:
S101, car-mounted terminal obtain current position coordinates, detect whether the current position coordinates are in high speed public affairs
In road;
Wherein, car-mounted terminal is the headend equipment of vehicle body monitoring management system, and car-mounted terminal is connected with camera shooting group, vehicle-mounted
Terminal is located at car, and car-mounted terminal is automobile data recorder, mobile phone.
S102 judges whether current lane is the high speed if the current position coordinates are in highway
The left-lane of highway;
Wherein, S102, there are two types of implementations, and details are as follows:
The first implementation obtains the highway if the current position coordinates are in highway
Road image, to the road image carry out lane identification, if lane identification be left-lane, be judged as current lane as institute
The left-lane of highway is stated, if lane identification is middle lane or right lane, being judged as current lane not is the high speed
The left-lane of highway.
Wherein, the algorithm of lane identification is the prior art, and this will not be repeated here.
Second of implementation, if the current position coordinates are in highway, by being mounted on left back view
The side view camera of mirror, the image for obtaining the vehicle body left side identify whether the image on the vehicle body left side is deposited using background subtraction
In mobile object, while the range sensor by being mounted on handle outside left-hand door, vehicle body is obtained with a distance from the railing of left side, such as
Within a preset time, mobile object is not present for the image on the vehicle body left side and the vehicle body is equal with a distance from the railing of left side for fruit
Value is less than pre-determined distance, is judged as the left-lane that current lane is the highway, if within a preset time, the vehicle body
The image on the left side mean value that there are mobile objects or the vehicle body with a distance from the railing of left side is not less than pre-determined distance, is judged as working as
Preceding lane is not the left-lane of the highway.
Wherein, preset time, pre-determined distance are user from setting or system default, herein with no restrictions.
Wherein, if within a preset time, the image on the vehicle body left side is there is no mobile object and the vehicle body is from a left side
The mean value of the distance of lateral rail is less than pre-determined distance, illustrates that the vehicle body of the vehicle body is close from left side railing, in highway
Left-lane.
Wherein it is preferred to which pre-determined distance is 1.95 meters, preset time is set as 10 seconds.Default focal length is 2.6 millimeters.Because
The lane of highway is usually 3.75 meters, and 1.80 meters of vehicle-width or so, 2.50 meters or so of big vehicle-width, mobile unit is automatic
The focal length for adjusting side view camera is 2.6 millimeters, can control on the left of the coverage covering vehicle body of side view camera 1.95 meters
Lane, in this manner it is possible to get the image for obtaining the vehicle body left side.
S103 just triggers shooting instruction, utilizes the bat if the current lane is the left-lane of the highway
It takes the photograph instruction, obtains camera shooting group towards immediately ahead of windshield when the shooting of the vehicle image and the vehicle image of region shooting
Between, identify the license plate number of the vehicle image;
Wherein, if the current lane is the left-lane of the highway, current vehicle speed is obtained, judges current vehicle speed
The minimum traveling travel speed whether required lower than the left-lane of the highway, if the current vehicle speed is lower than the height
The minimum traveling travel speed that the left-lane of fast highway requires, just utilizes the shooting instruction, obtains camera shooting group towards windshield
The vehicle image of front region shooting and the shooting time of the vehicle image, identify the license plate color of the vehicle image
Whether it is yellow, if the licence plate of the vehicle image is yellow, just identifies the license plate number of the vehicle image.
Wherein, the vehicle body of large-sized truck is yellow bottom black word licence plate, and the vehicle body of middle-size and small-size vehicle is blue bottom wrongly written or mispronounced character licence plate, the two
Color is different, as long as can directly distinguish large-sized truck and middle-size and small-size lorry using Car license recognition software detection license plate color,
After distinguishing large-sized truck, then license plate number identification is carried out, such beneficial effect is: the license plate without identifying non-large-scaled lorry
Number, reduce the data for identifying the license plate number of non-large-scaled lorry, therefore, the data volume of car-mounted terminal processing can be greatly reduced.
Wherein, if current vehicle speed is lower than the minimum traveling travel speed that the left-lane of the highway requires, explanation
There is barrier in front, and therefore, the present invention determines current driving states by judging the current vehicle speed of vehicle body, is license plate number
Work is ready in identification.
S104 obtains the large-sized truck license plate number of this province prestored in preset storage region, by the license plate number with
The large-sized truck license plate number of described province is matched;
Wherein, the large-sized truck license plate number of this province prestored can be significantly compared with the large-sized truck license plate number of storage this country
The time that matching needs is reduced, the matching efficiency of large-sized truck license plate number can be effectively improved.
S105, if the large-sized truck license plate number successful match of the license plate number and described province, just identifies the license plate
Number be this province large-sized truck license plate number;
S106, by preset large-sized truck label, the large-sized truck license plate number, shooting time and the position violating the regulations
Coordinate package generates large-sized truck message violating the regulations;
Wherein, S106, specifically:
Image frame per second is obtained, image frame per second is multiplied with preset time, obtains the vehicle got in preset time
The frame number of image obtains the number for the large-sized truck license plate number that the identification license plate number in preset time is this province, according to default
Lorry identification safety factor to generate model, the frame number of the vehicle image got and the identification license plate number be this province
Large-sized truck license plate number number, the lorry identification for generating the large-sized truck license plate number for identifying that the license plate number is this province is reliable
Coefficient, when lorry identification safety factor is greater than preset value, by preset large-sized truck label, the large-sized truck license plate violating the regulations
Number, shooting time and the position coordinates package, generate large-sized truck and break rules and regulations message;
Wherein, lorry identification safety factor generates model specifically:
Wherein, V is that lorry identifies that safety factor, V are made of discrimination and migration index two parts,For identification
Rate, Ni indicate that the number for the large-sized truck license plate number for identifying that the license plate number is this province in preset time, Frames indicate default
In time, the frame number of the vehicle image got;For migration index, No indicates preset identification number;0 < a < 1,
The size of 0 < b < 1, a+b=1, a and b decide the weight of discrimination and migration index in lorry identification safety factor respectively
Than.
Wherein, lorry identification safety factor be used to describe to identify the license plate number for this province large-sized truck license plate number can
By degree, lorry identifies that safety factor is higher, more reliable, conversely, lorry identification safety factor is lower, it is more unreliable.
Wherein, discrimination and migration index are bigger, and lorry identifies that safety factor is also higher, can effectively avoid accidentally knowing in this way
The case where not described license plate number is the large-sized truck license plate of this province is conducive to identify the large-sized truck vehicle that the license plate number is this province
The accuracy of the trade mark, the large-sized truck of generation message violating the regulations are also just more reliable.
Wherein, preset value and preset time, by user from setting or system default, herein with no restrictions.
Wherein, the position coordinates are GPS coordinate or Beidou coordinate, and the large-sized truck breaks rules and regulations label by the first character string
It is formed with the second character string, first character string is 0x1906, and second character string is Truck.
Wherein, large-sized truck label violating the regulations is stored in the fixation position of large-sized truck message violating the regulations, for notifying pipe
The subsequent label violating the regulations of large-sized truck described in reason server is that the large-sized truck license plate number, shooting time and the position are sat
Mark.
S107 establishes the corresponding relationship that the large-sized truck is broken rules and regulations between message and large-sized truck video violating the regulations,
Large-sized truck message violating the regulations, large-sized truck video violating the regulations and the corresponding pass are uploaded to preset management server
System.
It should be noted that management server obtains the automatic scanning parameter of default setting, the automatic scanning parameter includes
Time interval and message interface, the extraction time interval in the automatic scanning parameter obtain timer according between the time
Every the scan instruction for generating message interface, according to the scan instruction, scan what message interface was uploaded with the presence or absence of car-mounted terminal
Data detect (Deep Packet by depth data packet when the data that message interface is uploaded there are car-mounted terminal
Inspection, DPI) data that upload of technical treatment car-mounted terminal, and then obtain the large-sized truck and break rules and regulations message, described big
Large-sized truck message violating the regulations is transmitted to decision by type lorry video violating the regulations and the corresponding relationship, then, the message interface
Interface is handled, and then, decision interface breaks rules and regulations large-sized truck according to the position coordinates in large-sized truck message violating the regulations
LED display where message is transmitted to position coordinates on expressway drives the vehicle of the large-sized truck license plate number with prompting
Driver.Large-sized truck message violating the regulations can be got in time in this way, remind the vehicle for driving the large-sized truck license plate number in time
Driver.
Wherein, the corresponding relationship that the large-sized truck is broken rules and regulations between message and large-sized truck video violating the regulations is established,
Using 4G network mode or 5G network mode, the large-sized truck is uploaded to preset management server and is broken rules and regulations message, described big
Type lorry video violating the regulations and the corresponding relationship.
In embodiments of the present invention, by preset large-sized truck label, the large-sized truck license plate number, shooting time violating the regulations
And the position coordinates package, large-sized truck message violating the regulations is generated, therefore, large-sized truck message violating the regulations can be generated in time, be
Large-sized truck judgement violating the regulations provides evidence, is conducive to the supervision effect for improving large-sized truck.
It is the structural block diagram that large-sized truck provided in an embodiment of the present invention message violating the regulations generates system with reference to Fig. 2, Fig. 2, it should
Large-sized truck message violating the regulations generates system and includes:
Position coordinates obtain module 21, for obtaining current position coordinates, whether detect the current position coordinates
In highway;
Left-lane judgment module 22, if be in highway for the current position coordinates, front truck is worked as in judgement
Road whether be the highway left-lane;
License plate number identification module 23, if being the left-lane of the highway for the current lane, just triggering is clapped
Instruction is taken the photograph, using the shooting instruction, obtains camera shooting group towards the vehicle image of region shooting immediately ahead of windshield and described
The shooting time of vehicle image identifies the license plate number of the vehicle image;
Large-sized truck license plate number matching module 24, for obtaining the large size of this province prestored in preset storage region
Lorry license plate number matches the license plate number with the large-sized truck license plate number of described province;
Large-sized truck license plate number identification module 25, if the large-sized truck license plate number for the license plate number and described province
Successful match just identifies that the license plate number is the large-sized truck license plate number of this province;
Large-sized truck is broken rules and regulations message generating module 26, for preset large-sized truck to be broken rules and regulations label, the large-sized truck
License plate number, shooting time and the position coordinates package generate large-sized truck message violating the regulations;
Large-sized truck is broken rules and regulations message uploading module 27, is broken rules and regulations message and the large-scale goods for establishing the large-sized truck
Corresponding relationship between vehicle video violating the regulations uploads the large-sized truck message, the large size violating the regulations to preset management server
Lorry video violating the regulations and the corresponding relationship.
In embodiments of the present invention, by preset large-sized truck label, the large-sized truck license plate number, shooting time violating the regulations
And the position coordinates package, large-sized truck message violating the regulations is generated, therefore, large-sized truck message violating the regulations can be generated in time, be
Large-sized truck judgement violating the regulations provides evidence, is conducive to the supervision effect for improving large-sized truck.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.