CN109272034B - Missing vehicle license plate prediction method and processing terminal - Google Patents

Missing vehicle license plate prediction method and processing terminal Download PDF

Info

Publication number
CN109272034B
CN109272034B CN201811048279.5A CN201811048279A CN109272034B CN 109272034 B CN109272034 B CN 109272034B CN 201811048279 A CN201811048279 A CN 201811048279A CN 109272034 B CN109272034 B CN 109272034B
Authority
CN
China
Prior art keywords
vehicle
bayonet
weight
license plate
records
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
CN201811048279.5A
Other languages
Chinese (zh)
Other versions
CN109272034A (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.)
PCI Technology Group Co Ltd
Original Assignee
PCI Suntek 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 PCI Suntek Technology Co Ltd filed Critical PCI Suntek Technology Co Ltd
Priority to CN201811048279.5A priority Critical patent/CN109272034B/en
Priority to PCT/CN2018/106628 priority patent/WO2020047907A1/en
Publication of CN109272034A publication Critical patent/CN109272034A/en
Application granted granted Critical
Publication of CN109272034B publication Critical patent/CN109272034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/54Surveillance or monitoring of activities, e.g. for recognising suspicious objects of traffic, e.g. cars on the road, trains or boats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/625License plates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a missing vehicle license plate prediction method and a processing terminal, wherein the method comprises the following steps of sequentially performing offline analysis processing and periodic analysis processing: step 1: performing off-line analysis processing, namely taking the vehicle passing records containing the recognized license plates in the latest months as a training set A, generating a bayonet directed graph, presetting a limited number of weight combinations which are constants, calculating the corresponding similarity of each weight combination by adopting a vehicle similarity function through training, and determining the optimal weight combination so as to determine a vehicle similarity function; step 2: and (3) carrying out periodic analysis processing, predicting the license plate through the vehicle similarity function, determining the license plate which is missed to be detected, periodically carrying out offline analysis processing according to the period n, and using the offline analysis result to update the weight of the bayonet directed graph and the vehicle similarity function. On the basis of predicting the license plate and avoiding missing detection, the invention also comprises the following steps: 1) the method is convenient to realize, small in calculation amount and high in prediction efficiency; 2) can adapt to the change of road networks and image recognition algorithms.

Description

Missing vehicle license plate prediction method and processing terminal
Technical Field
The invention relates to the technical field of license plate detection, in particular to a missing detection license plate prediction method and a processing terminal.
Background
With the development of society and the strong support of the state on the fields of smart cities, intelligent transportation and the like, the field of intelligent security and protection is developed at a high speed, various snapshot cameras are distributed in all main traffic roads of cities, the main functions of the cameras are to record vehicle videos and identify snapshot vehicles, and a large number of snapshot images and videos are generated at every moment. Due to the development of high-definition snapshot cameras and the progress of video image processing technology, at present, the structured information of the vehicle, including license plates, vehicle types, vehicle body colors, vehicle brands and the like, can be analyzed in real time from videos, and the method has practical capability. However, in an actual scene of vehicle recognition, due to the existence of objective factors such as insufficient light, shielding of a front vehicle and non-high-definition snapshot, a license plate number cannot be recognized, and license plate missing detection occurs.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a missing detection license plate prediction method, which can solve the problems that the license plate number cannot be identified and the license plate is missing;
the invention also provides a processing terminal which can solve the problems that the license plate number cannot be identified and the license plate is missed;
the invention also provides a method for determining the vehicle similarity function, which can solve the problem of determining the vehicle similarity function weight required by license plate number recognition and license plate missing detection.
The technical scheme for realizing one purpose of the invention is as follows: a missing vehicle license plate prediction method comprises the following steps of sequentially performing offline analysis processing and periodic analysis processing:
step 1: performing off-line analysis processing, namely taking the vehicle passing records containing the recognized license plates in a plurality of recent months as a training set A, generating a bayonet directed graph, presetting a limited number of weight combinations which are constants, calculating the corresponding similarity by adopting a vehicle similarity function through training for each weight combination, obtaining an average evaluation score by ranking the similarity according to a descending order evaluation strategy, and selecting the weight combination corresponding to the highest average evaluation score as the optimal weight combination of the vehicle similarity function, thereby determining the vehicle similarity function;
step 2: and periodically analyzing and processing, namely periodically traversing the missed vehicle license plate passing record within a period of time before a plurality of hours according to the period of m, predicting the vehicle license plate through the vehicle similarity function, calculating the similarity of the missed vehicle license plate, periodically executing off-line analysis processing according to the period of n, wherein the similarity with the highest value corresponds to the vehicle license plate in the passing record, the vehicle license plate is the missed vehicle license plate, the off-line analysis result is used for updating the weight in the checkpoint directed graph and the vehicle similarity function, and m and n are constants.
Further, the expression of the vehicle similarity function is formula (i):
Figure BDA0001792063440000021
in the formula, x is the color of the vehicle body in the vehicle passing record to be compared, y is the type of the vehicle in the vehicle passing record to be compared, z is the brand of the vehicle in the vehicle passing record to be compared, c is the bayonet number in the vehicle passing record to be compared, x, y, z and c are all assigned, and pxTo identify the accuracy of the body colour, pyTo identify the accuracy of the vehicle type, pzTo identify the accuracy of the vehicle brand, pcThe method comprises the following steps: in the training set A, if the current bayonet is the predecessor bayonet of the target bayonet, pcThe ratio of the number of records from the current bayonet to the target bayonet to the total number of records entering the target bayonet, if the current bayonet is a successor of the target bayonet, p iscThe ratio of the number of records from the target card slot to the current card slot to the total number of records from the target card slot,
Figure BDA0001792063440000031
and
Figure BDA0001792063440000032
are all a function Iu,vWhen u equals v, Iu,vValue 1, otherwise, Iu,vA value of 0, x0Recording the value of body color, y, in the target passing0Value of vehicle type, z, in the target pass record0For the value of the vehicle brand in the target pass record, θ1Is the weight of the body color x, θ2Weight of vehicle type y, θ3Weight of vehicle brand z, θ4Is the weight of the bayonet, and θ1234Weight (θ) 11,θ2,θ3,θ4) A finite number of weight combinations are formed,
Figure BDA0001792063440000033
and
Figure BDA0001792063440000034
are all kωExpression of different meanings, kωThe confidence rate of the value omega of the vehicle characteristic recorded for the target passing vehicle in all the values of the characteristic is calculated by the formula II:
Figure BDA0001792063440000035
wherein n isωThe number of vehicle passing records with the value of omega of the vehicle feature in the training set A is shown, and N is the total number of vehicle passing records in the training set A.
Further, the determining the vehicle similarity function includes the following steps performed in sequence:
step 1-1: for each selected weight combination, performing the following steps 1-2 to 1-4 in sequence;
step 1-2: randomly selecting a certain proportion of vehicle passing records in a training set A as a set B, calculating the similarity between each vehicle passing record in the set B and each vehicle passing record of a front drive gate corresponding to a gate where the vehicle passing record is located, simultaneously calculating the similarity between each vehicle passing record and each vehicle passing record of a subsequent gate corresponding to the gate where the vehicle passing record is located, and sorting all the calculated similarities in a descending order to form a sorted list which is recorded as a sorted list U;
step 1-3: for each vehicle passing record in the set B, taking the reciprocal of the position, which is most ranked in the ranked list U, of the corresponding license plate as an evaluation score, calculating all vehicle passing records according to the evaluation score to obtain the evaluation scores of all vehicle passing records in the set B, and calculating the average value of all the evaluation scores, wherein the average value is taken as the evaluation score of the selected weight combination;
step 1-4: and selecting a group of weight combinations with the highest evaluation score as an optimal weight combination, and taking the optimal weight combination as the weight in the vehicle similarity function, thereby determining the vehicle similarity function.
Further, in the step 1-2, forming the ordered list U includes the following steps performed in sequence:
step 1-2-1: for each vehicle passing record S in the set B, acquiring a bayonet number of the passing bayonet and time T of the passing bayonet;
step 1-2-2: all the front drive bayonets and the subsequent bayonets of the current bayonets, and corresponding vehicle passing records and average driving time consumption delta T are obtained according to the bayonet digraph;
step 1-2-3: screening known license plate passing records corresponding to the predecessor bayonet and the successor bayonet and meeting the time range condition from the training set A to serve as a set C, wherein the time range is [ T-2 delta T, T ] for the predecessor bayonet and [ T, T +2 delta T ] for the successor bayonet;
step 1-2-4: calculating the similarity between each vehicle passing record S' in the set C and the vehicle passing record S by using a vehicle similarity function;
step 1-2-5: and (4) carrying out descending sorting on the similarity calculated in the step (1-2-4) according to the similarity value to form a sorted list, and recording the sorted list as a sorted list U.
Further, the weight (θ)1,θ2,θ3,θ4) And forming the finite weight combinations, and increasing the value of each weight in the weight combinations from 0.1 to 1 according to a fixed step length.
Further, the fixed step size is 0.1 or 0.01.
Further, the generating the bayonet directed graph includes the following steps executed in sequence:
step 1-1-1: screening vehicle passing records containing recognized license plates in a plurality of months recently from all the existing vehicle passing records to form a training set A, wherein the vehicle passing records in the training set A at least comprise license plate numbers, bayonet serial numbers, time passing through the bayonets, vehicle body colors, vehicle types and vehicle brands;
step 1-1-2: and for each license plate in the training set A, constructing a directed graph according to the bayonets through which vehicles corresponding to the license plate pass in time sequence, so as to obtain the bayonet directed graph, wherein directed edges in the bayonet directed graph represent that vehicles are driven from the bayonet a to the next bayonet b, the number of vehicle passing records from the bayonet a to the bayonet b and the average driving time delta T are recorded, and the directed edges of the bayonet directed graph all point to other bayonets relative to the current bayonet.
Further, the period m has a value of 30 minutes.
Further, the period n has a value of 30 days.
Further, the previous period of time has a value of 30 minutes.
The second technical scheme for realizing the aim of the invention is as follows: a processing terminal, comprising,
a memory for storing program instructions;
a processor for executing the program instructions to perform the steps of:
step 1: performing off-line analysis processing, namely taking the vehicle passing records containing the recognized license plates in a plurality of recent months as a training set A, generating a bayonet directed graph, presetting a limited number of weight combinations which are constants, calculating the corresponding similarity by adopting a vehicle similarity function through training for each weight combination, obtaining an average evaluation score by ranking the similarity according to a descending order evaluation strategy, and selecting the weight combination corresponding to the highest average evaluation score as the optimal weight combination of the vehicle similarity function, thereby determining the vehicle similarity function;
step 2: and periodically analyzing and processing, namely periodically traversing the missed vehicle license plate passing record within a period of time before a plurality of hours according to the period of m, predicting the vehicle license plate through the vehicle similarity function, calculating the similarity of the missed vehicle license plate, periodically executing off-line analysis processing according to the period of n, wherein the similarity with the highest value corresponds to the vehicle license plate in the passing record, the vehicle license plate is the missed vehicle license plate, the off-line analysis result is used for updating the weight in the checkpoint directed graph and the vehicle similarity function, and m and n are constants.
Further, the expression of the vehicle similarity function is formula (i):
Figure BDA0001792063440000061
wherein x is the color of the vehicle body in the record of the vehicle to be compared, and y is the color of the vehicle to be comparedThe vehicle types in the vehicle records, z is the vehicle brands in the vehicle records to be compared, c is the bayonet numbers in the vehicle records to be compared, x, y, z and c are assigned with values, and pxTo identify the accuracy of the body colour, pyTo identify the accuracy of the vehicle type, pzTo identify the accuracy of the vehicle brand, pcThe method comprises the following steps: in the training set A, if the current bayonet is the predecessor bayonet of the target bayonet, pcThe ratio of the number of records from the current bayonet to the target bayonet to the total number of records entering the target bayonet, if the current bayonet is a successor of the target bayonet, p iscThe ratio of the number of records from the target card slot to the current card slot to the total number of records from the target card slot,
Figure BDA0001792063440000062
and
Figure BDA0001792063440000063
are all a function Iu,vWhen u equals v, Iu,vValue 1, otherwise, Iu,vA value of 0, x0Recording the value of body color, y, in the target passing0Value of vehicle type, z, in the target pass record0For the value of the vehicle brand in the target pass record, θ1Is the weight of the body color x, θ2Weight of vehicle type y, θ3Weight of vehicle brand z, θ4Is the weight of the bayonet, and θ1234Weight (θ) 11,θ2,θ3,θ4) A finite number of weight combinations are formed,
Figure BDA0001792063440000071
and
Figure BDA0001792063440000072
are all kωExpression of different meanings, kωThe confidence rate of the value omega of the vehicle characteristic recorded for the target passing vehicle in all the values of the characteristic is calculated by the formula II:
Figure BDA0001792063440000073
wherein n isωThe number of vehicle passing records with the value of omega of the vehicle feature in the training set A is shown, and N is the total number of vehicle passing records in the training set A.
Further, the determining the vehicle similarity function includes the following steps performed in sequence:
step 1-1: for each selected weight combination, performing the following steps 1-2 to 1-4 in sequence;
step 1-2: randomly selecting a certain proportion of vehicle passing records in a training set A as a set B, calculating the similarity between each vehicle passing record in the set B and each vehicle passing record of a front drive gate corresponding to a gate where the vehicle passing record is located, simultaneously calculating the similarity between each vehicle passing record and each vehicle passing record of a subsequent gate corresponding to the gate where the vehicle passing record is located, and sorting all the calculated similarities in a descending order to form a sorted list which is recorded as a sorted list U;
step 1-3: for each vehicle passing record in the set B, taking the reciprocal of the position, which is most ranked in the ranked list U, of the corresponding license plate as an evaluation score, calculating all vehicle passing records according to the evaluation score to obtain the evaluation scores of all vehicle passing records in the set A, and calculating the average value of all the evaluation scores, wherein the average value is taken as the evaluation score of the selected weight combination;
step 1-4: and selecting a group of weight combinations with the highest evaluation score as an optimal weight combination, and taking the optimal weight combination as the weight in the vehicle similarity function, thereby determining the vehicle similarity function.
Further, in the step 1-2, forming the ordered list U includes the following steps performed in sequence:
step 1-2-1: for each vehicle passing record S in the set B, acquiring a bayonet number of the passing bayonet and time T of the passing bayonet;
step 1-2-2: all the front drive bayonets and the subsequent bayonets of the current bayonets, and corresponding vehicle passing records and average driving time consumption delta T are obtained according to the bayonet digraph;
step 1-2-3: screening known license plate passing records corresponding to the predecessor bayonet and the successor bayonet and meeting the time range condition from the training set A to serve as a set C, wherein the time range is [ T-2 delta T, T ] for the predecessor bayonet and [ T, T +2 delta T ] for the successor bayonet;
step 1-2-4: calculating the similarity between each vehicle passing record S' in the set C and the vehicle passing record S by using a vehicle similarity function;
step 1-2-5: and (4) carrying out descending sorting on the similarity calculated in the step (1-2-4) according to the similarity value to form a sorted list, and recording the sorted list as a sorted list U.
Further, the weight (θ)1,θ2,θ3,θ4) And forming the finite weight combinations, and increasing the value of each weight in the weight combinations from 0.1 to 1 according to a fixed step length.
Further, the fixed step size is 0.1 or 0.01.
Further, the generating the bayonet directed graph includes the following steps executed in sequence:
step 1-1-1: screening vehicle passing records containing recognized license plates in a plurality of months recently from all the existing vehicle passing records to form a training set A, wherein the vehicle passing records in the training set A at least comprise license plate numbers, bayonet serial numbers, time passing through the bayonets, vehicle body colors, vehicle types and vehicle brands;
step 1-1-2: and for each license plate in the training set A, constructing a directed graph according to the bayonets through which vehicles corresponding to the license plate pass in time sequence, so as to obtain the bayonet directed graph, wherein directed edges in the bayonet directed graph represent that vehicles are driven from the bayonet a to the next bayonet b, the number of vehicle passing records from the bayonet a to the bayonet b and the average driving time delta T are recorded, and the directed edges of the bayonet directed graph all point to other bayonets relative to the current bayonet.
Further, the period m has a value of 30 minutes.
Further, the period n has a value of 30 days.
Further, the previous period of time has a value of 30 minutes.
The technical scheme for realizing the third aim of the invention is as follows: a method of determining a vehicle similarity function: the method comprises the following steps:
step 1: obtaining the passing records of the last months containing the identified license plates
Step 2: taking the passing records containing the recognized license plates in the last months as a training set A, and generating a bayonet directed graph;
and step 3: presetting a limited number of weight combinations which are constants, and calculating the corresponding similarity of each weight combination by adopting a vehicle similarity function through training;
and 4, step 4: and (3) sorting the similarity calculated in the step (3) according to a descending order evaluation strategy to obtain average evaluation scores, and selecting a weight combination corresponding to the highest average evaluation score as an optimal weight combination of the vehicle similarity function so as to determine the vehicle similarity function.
Further, the expression of the vehicle similarity function is formula (i):
Figure BDA0001792063440000091
in the formula, x is the color of the vehicle body in the vehicle passing record to be compared, y is the type of the vehicle in the vehicle passing record to be compared, z is the brand of the vehicle in the vehicle passing record to be compared, c is the bayonet number in the vehicle passing record to be compared, x, y, z and c are all assigned, and pxTo identify the accuracy of the body colour, pyTo identify the accuracy of the vehicle type, pzTo identify the accuracy of the vehicle brand, pcThe method comprises the following steps: in the training set A, if the current bayonet is the predecessor bayonet of the target bayonet, pcThe ratio of the number of records from the current bayonet to the target bayonet to the total number of records entering the target bayonet, if the current bayonet is a successor of the target bayonet, p iscThe ratio of the number of records from the target card slot to the current card slot to the total number of records from the target card slot,
Figure BDA0001792063440000101
and
Figure BDA0001792063440000102
are all a function Iu,vWhen u equals v, Iu,vValue 1, otherwise, Iu,vA value of 0, x0Recording the value of body color, y, in the target passing0Value of vehicle type, z, in the target pass record0For the value of the vehicle brand in the target pass record, θ1Is the weight of the body color x, θ2Weight of vehicle type y, θ3Weight of vehicle brand z, θ4Is the weight of the bayonet, and θ1234Weight (θ) 11,θ2,θ3,θ4) A finite number of weight combinations are formed,
Figure BDA0001792063440000103
and
Figure BDA0001792063440000104
are all kωExpression of different meanings, kωThe confidence rate of the value omega of the vehicle characteristic recorded for the target passing vehicle in all the values of the characteristic is calculated by the formula II:
Figure BDA0001792063440000105
wherein n isωThe number of vehicle passing records with the value of omega of the vehicle feature in the training set A is shown, and N is the total number of vehicle passing records in the training set A.
Further, the determining the vehicle similarity function includes the following steps performed in sequence:
step 1-1: for each selected weight combination, performing the following steps 1-2 to 1-4 in sequence;
step 1-2: randomly selecting a certain proportion of vehicle passing records in a training set A as a set B, calculating the similarity between each vehicle passing record in the set B and each vehicle passing record of a front drive gate corresponding to a gate where the vehicle passing record is located, simultaneously calculating the similarity between each vehicle passing record and each vehicle passing record of a subsequent gate corresponding to the gate where the vehicle passing record is located, and sorting all the calculated similarities in a descending order to form a sorted list which is recorded as a sorted list U;
step 1-3: for each vehicle passing record in the set B, taking the reciprocal of the position, which is most ranked in the ranked list U, of the corresponding license plate as an evaluation score, calculating all vehicle passing records according to the evaluation score to obtain the evaluation scores of all vehicle passing records in the set B, and calculating the average value of all the evaluation scores, wherein the average value is taken as the evaluation score of the selected weight combination;
step 1-4: and selecting a group of weight combinations with the highest evaluation score as an optimal weight combination, and taking the optimal weight combination as the weight in the vehicle similarity function, thereby determining the vehicle similarity function.
Further, in the step 1-2, forming the ordered list U includes the following steps performed in sequence:
step 1-2-1: for each vehicle passing record S in the set B, acquiring a bayonet number of the passing bayonet and time T of the passing bayonet;
step 1-2-2: all the front drive bayonets and the subsequent bayonets of the current bayonets, and corresponding vehicle passing records and average driving time consumption delta T are obtained according to the bayonet digraph;
step 1-2-3: screening known license plate passing records corresponding to the predecessor bayonet and the successor bayonet and meeting the time range condition from the training set A to serve as a set C, wherein the time range is [ T-2 delta T, T ] for the predecessor bayonet and [ T, T +2 delta T ] for the successor bayonet;
step 1-2-4: calculating the similarity between each vehicle passing record S' in the set C and the vehicle passing record S by using a vehicle similarity function;
step 1-2-5: and (4) carrying out descending sorting on the similarity calculated in the step (1-2-4) according to the similarity value to form a sorted list, and recording the sorted list as a sorted list U.
Further onWeight (θ)1,θ2,θ3,θ4) And forming the finite weight combinations, and increasing the value of each weight in the weight combinations from 0.1 to 1 according to a fixed step length.
Further, the fixed step size is 0.1 or 0.01.
Further, the generating the bayonet directed graph includes the following steps executed in sequence:
step 1-1-1: screening vehicle passing records containing recognized license plates in a plurality of months recently from all the existing vehicle passing records to form a training set A, wherein the vehicle passing records in the training set A at least comprise license plate numbers, bayonet serial numbers, time passing through the bayonets, vehicle body colors, vehicle types and vehicle brands;
step 1-1-2: and for each license plate in the training set A, constructing a directed graph according to the bayonets through which vehicles corresponding to the license plate pass in time sequence, so as to obtain the bayonet directed graph, wherein directed edges in the bayonet directed graph represent that vehicles are driven from the bayonet a to the next bayonet b, the number of vehicle passing records from the bayonet a to the bayonet b and the average driving time delta T are recorded, and the directed edges of the bayonet directed graph all point to other bayonets relative to the current bayonet.
The invention has the beneficial effects that: on the basis of being capable of identifying the license plate and avoiding missing the license plate, the invention also has the following advantages:
1) convenient to realize, small in calculation amount and high in prediction efficiency
The method mainly consumes time as an offline analysis processing part, the offline analysis processing part only trains aiming at limited weight combinations, parallel analysis is easy to realize, the analysis interval period is long, the system bottleneck cannot be formed, and when the offline analysis processing is finished, a vehicle similarity function is also determined and a bayonet digraph is formed; and for the periodic processing part of the latest missed license plate record, the similarity is calculated only by aiming at the data in the short time range in the front drive checkpoint and the subsequent checkpoint, and the license plate with the highest similarity is used as a predicted value, so that the calculated amount is small, and the prediction efficiency is high.
2) Can adapt to the change of road network and image recognition algorithm
Because the track of the vehicle passing through the gate is very sensitive to the change of the road network, when the road network changes, vehicles may not pass through certain gates any more, and the method of the invention can periodically update the directed graph of the gate to adapt to the change of the road network to a certain extent; in addition, as the number of manufacturers of the image recognition algorithm is large, the recognition capability of the image recognition algorithm of each manufacturer for different vehicle characteristics is different, the algorithm of each manufacturer is continuously improved, and the recognition accuracy of the same algorithm for the vehicle characteristics is continuously changed.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the present invention;
FIG. 2 is a flow chart of an off-line analysis process of the present invention;
fig. 3 is a schematic structural diagram of a processing terminal according to the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below:
as shown in fig. 1 and 2, a missing vehicle license plate prediction method includes sequentially performing offline analysis processing and periodic analysis processing:
step 1: offline analysis processing, namely taking the vehicle passing records containing the recognized license plates in the last months as a training set A, generating a bayonet directed graph, selecting a limited number of preset weight combinations which are all constants, calculating the corresponding similarity of a preselected vehicle similarity function through training for each weight combination, sorting all the similarities into a list according to a descending order, wherein each similarity corresponds to one vehicle passing record containing the license plate, taking the reciprocal of the position in the sorted list as an evaluation score, carrying out averaging operation on all the evaluation scores to obtain an average evaluation score, and selecting the weight combination corresponding to the highest average evaluation score as the weight combination of the preselected vehicle similarity function so as to determine the vehicle similarity function;
step 2: and periodically analyzing and processing, namely periodically traversing the missed vehicle license plate passing record within a period of time several hours before, predicting the vehicle license plate through the vehicle similarity function, calculating the similarity of the missed vehicle license plate, wherein the similarity with the highest value corresponds to the vehicle license plate in the passing record as the missed vehicle license plate, periodically executing off-line analysis processing, and using the off-line analysis result to update the weights in the checkpoint directed graph and the vehicle similarity function.
More specifically, the offline analysis processing includes the following steps performed in sequence:
step 1-1: taking the vehicle passing records containing the recognized license plates in the latest months as a training set A, selecting the vehicle passing records in the latest month or two months or other months, and generating a bayonet directed graph through the training set A;
step 1-2: defining a vehicle similarity function simθ(x, y, z, c) selecting a finite number of weight combinations for the weight parameters, the vehicle similarity function simθThe expression of (x, y, z, c) is formula (1):
Figure BDA0001792063440000141
wherein x is the color of the vehicle body in the vehicle passing record to be compared, y is the type of the vehicle in the vehicle passing record to be compared, z is the brand of the vehicle in the vehicle passing record to be compared, c is the bayonet number in the vehicle passing record to be compared, x, y, z and c are all assigned, and pxTo identify the accuracy of the body colour, pyTo identify the accuracy of the vehicle type, pzTo identify the accuracy of the vehicle brand, pcThe method comprises the following steps: in the training set A, if the current bayonet is the predecessor bayonet of the target bayonet, pcThe ratio of the number of records from the current bayonet to the target bayonet to the total number of records entering the target bayonet, if the current bayonet is a successor of the target bayonet, p iscThe comparison result is that the ratio of the number of records from the target gate to the current gate to the total number of records leaving the target gate, the target gate is the gate containing the passing record of the missed-detection license plate, the current gate is the gate to which the passing record is to be compared, and the next gate of the front-drive gate is used as the next gateThere may be a plurality of vehicles which leave from the front driving bayonet and are dispersed to each subsequent bayonet, namely, a part of vehicles enters the bayonet G, when the traffic flow entering the bayonet G is larger, namely p iscThe larger the value is, the larger the probability that the target license plate to be predicted appears at the gate G is, and similarly, because a plurality of subsequent gates of the target gate are possible, the vehicles leaving from the target gate can be dispersed into each subsequent gate, and when the traffic flow of the target gate to the gate G is larger, namely p iscThe larger the value is, the larger the probability that the target license plate to be predicted appears at the gate G is considered to be, where the front gate refers to the last gate relative to the current gate, and the subsequent gate refers to the next gate relative to the current gate, but it should be noted that there may be a plurality of last gates relative to the current gate, and there may also be a plurality of next gates relative to the current gate;
Figure BDA0001792063440000151
and
Figure BDA0001792063440000152
are all a function Iu,vWhen u equals v, Iu,vValue 1, otherwise, Iu,vA value of 0, x0The value of the color of the vehicle body in the target vehicle passing record is the vehicle passing record of which the license plate is not identified in the acquired vehicle passing record, y0Value of vehicle type, z, in the target pass record0For values of vehicle brand in the target pass record, e.g. value x of body colour when the target pass record0Equal to the value x of the body colour in the pass record to be compared, i.e. x0When x is equal, the color of the vehicle body of the vehicle to be predicted is the same as the color of the vehicle body in the vehicle record to be compared,
Figure BDA0001792063440000153
otherwise
Figure BDA0001792063440000154
Figure BDA0001792063440000155
And
Figure BDA0001792063440000156
is taken from
Figure BDA0001792063440000157
Similarly, θ1Weight of body color x feature, θ2Weight, θ, characteristic of vehicle type y3Weight of the brand z feature of the vehicle, θ4Is the weight of the bayonet number feature,
Figure BDA0001792063440000161
and
Figure BDA0001792063440000162
are all kωExpression of different meanings, kωThe value of the vehicle feature recorded for the target passing vehicle is a confidence rate of ω among all values of the vehicle feature, the confidence rate indicates the confidence level of the corresponding vehicle feature value, and the lower the confidence rate, the lower the confidence level, the more vehicles having the same vehicle feature, the lower the confidence level, the calculation formula (2):
Figure BDA0001792063440000163
wherein n isωFor the number of records with a value of ω for the vehicle feature in the training set A and N for the total number of records in the training set A, e.g. during calculation
Figure BDA0001792063440000164
Then, the value of the color feature of the car body in the training set A is obtained as x0Number of records
Figure BDA0001792063440000165
And acquiring the total record number of the training set A as N, and calculating the value of the color characteristic of the vehicle body as x according to the formula (2)0Corresponding confidence rate
Figure BDA0001792063440000166
Figure BDA0001792063440000167
The larger the confidence corresponding to the color of the vehicle body, the higher the others
Figure BDA0001792063440000168
And
Figure BDA0001792063440000169
the same is true for the calculations;
the sum of the four weights being 1, i.e. θ1234Weight (θ) 11,θ2,θ3,θ4) Forming the limited weight combinations, wherein the weight combinations are preset constants which are determined as follows: each weight value in the weight combination is increased from 0.1 to 1 according to a fixed step length, if the step length is 0.1, the value of each weight has 10 possibilities, and the theta is satisfied1234On the premise of 1, θ1、θ2、θ3And theta4The weight combination composed of four weights is 84 combinations in total, and if the step size is changed to 0.001, θ satisfies the same conditions as described above1、θ2、θ3And theta4The weight combinations of the four weights are 156849 combinations, that is, a finite number of weight combinations, it can be seen that the number of weight combinations is related to the value of the step size, and the finite number of weight combinations selected in step 1 is from θ1、θ2、θ3And theta4Selecting from the combination formed by the four weights to obtain an optimal weight combination;
step 1-3: for each selected weight combination, performing the following steps 1-4 and 1-5 in sequence;
step 1-4: randomly selecting a certain proportion of vehicle passing records in the training set A as a set B, preferably, the proportion is one thousandth in the embodiment, calculating the similarity between each vehicle passing record in the set B and each vehicle passing record of a front drive gate corresponding to a gate where the vehicle passing record is located, simultaneously calculating the similarity between each vehicle passing record and each vehicle passing record of a subsequent gate corresponding to the gate where the vehicle passing record is located, and sorting all the calculated similarities in a descending order to form a list;
step 1-5: for each vehicle passing record in the set B, taking the reciprocal of the position of the corresponding license plate in the sorted list as an evaluation score, calculating all vehicle passing records according to the evaluation score to obtain the evaluation scores of all vehicle passing records in the set B, calculating the average value of all the evaluation scores, and taking the average value as the evaluation score of the selected weight combination;
step 1-6: and selecting a group of weight combinations with the highest evaluation score as an optimal weight combination, and taking the optimal weight combination as the weight in the vehicle similarity function, thereby determining the vehicle similarity function.
The step 1-1 specifically includes the following steps that are sequentially executed:
step 1-1-1: screening vehicle-passing records containing license plates in the vehicle-passing records of a plurality of months in the past from all the existing vehicle-passing records, such as screening vehicle-passing records of one month or two months or other months in the past, if some vehicles in the vehicle-passing records do not identify the license plates, rejecting the vehicle-passing records to form a training set A, wherein the screened vehicle-passing records at least comprise structural information such as license plate numbers, bayonet numbers, time passing through the bayonet, vehicle body colors, vehicle types, vehicle brands and the like, and the specific structural information can be increased or decreased in actual use, such as increasing the year money, the vehicle sub-brands and the like;
step 1-1-2: for each license plate in the training set A, constructing a directed graph according to bayonets through which vehicles corresponding to the license plate pass in sequence, so as to obtain a bayonet directed graph, wherein a bayonet is a universal finger snapshot camera in the patent, the bayonet directed graph refers to that if a vehicle with a certain license plate is captured and tapped by the bayonet A at a certain moment and is captured and tapped by the bayonet B at the next moment, A- > B is one directed edge of the directed graph, a graph formed by directed edges among all the bayonets is called a bayonet directed graph, namely, the bayonet passed by a driving track of the vehicle corresponding to each license plate forms the bayonet directed graph, but the bayonet directed graph does not include directed edges directed to the bayonet directed graph, namely, the directed edges of the bayonet directed graph all point to other bayonets relative to the current bayonet;
step 1-1-3: the directed edge in the gate directed graph indicates that the number of passing records and the average travel time information from a to b are recorded from the gate a to the next gate b.
The steps 1 to 4 specifically include the following steps that are sequentially executed:
step 1-4-1: randomly selecting limited vehicle passing records from the training set A as a set B, preferably selecting one thousandth of the vehicle passing records of the training set A as the set B in the embodiment, and acquiring the gate number of each vehicle passing through the gate and the time T of the vehicle passing through the gate for each vehicle passing record S in the set B;
step 1-4-2: obtaining all front drive bayonets and subsequent bayonets of the current bayonets and corresponding vehicle passing records and average driving time consumption delta T according to the bayonet digraph, wherein the average driving time consumption delta T refers to the average driving time consumption of the current bayonets and the front drive bayonets or the average driving time consumption of the current bayonets and the subsequent bayonets;
step 1-4-3: screening known license plate vehicle passing records corresponding to a precursor bayonet and a subsequent bayonet and meeting the condition of a time range from the training set A to serve as a set C, wherein the time range is [ T-2 Delta T, T ] for the precursor bayonet, and [ T, T +2 Delta T ] for the subsequent bayonet, and setting 2 Delta T is based on research finding that a target vehicle can pass through a certain precursor bayonet or a subsequent bayonet with high probability within the time;
1-4-4: for each record S 'in the set C, calculating the similarity of each record S' and the vehicle passing record S by using a vehicle similarity function;
1-4-5: and (4) performing descending sorting on the similarity calculated in the steps 1-4-4 according to the similarity value to form a list, and marking the list as a sorted list U, wherein the position of the target license plate in the sorted list U is closer to the front, and the prediction effect is better.
The steps 1 to 5 specifically include the following steps that are sequentially executed:
step 1-5-1: taking the reciprocal of the position, closest to the front, of the license plate in each vehicle passing record S 'in the set C in the sorted list U as an evaluation score for predicting the license plate in the record S', wherein any one evaluation score corresponds to one record in the set C and also corresponds to one record in the set B;
step 1-5-2: and calculating the average value of the evaluation scores corresponding to all records in the set B, wherein the average value is used as the evaluation score of the selected weight combination.
More specifically, the periodic analysis process includes the following steps performed in sequence:
step 2-1: the method comprises the steps of periodically traversing vehicle passing records in a period of time several hours before, screening vehicle passing records containing missed vehicle license plates, predicting the vehicle license plates by using a vehicle similarity function, calculating the similarity of the missed vehicle license plates, wherein the vehicle license plate in the corresponding vehicle passing record with the highest similarity is a predicted vehicle license plate, namely the vehicle license plate is the missed vehicle license plate, so that the vehicle license plate number is recognized, and the missed vehicle license plate is avoided;
step 2-2: all steps of the off-line analysis processing are executed periodically, and the weight parameters in the bayonet directed graph and the vehicle similarity function are updated, in the embodiment, the period is preferably 30 days, the length of the period can be flexibly selected according to the actual situation, the purpose of the periodic updating is to adapt to the situation of road change, and the change of the pattern recognition algorithm to the accuracy of each feature recognition is adapted.
Therefore, the missing detection license plate prediction method provided by the invention has the following advantages:
1) convenient to realize, small in calculation amount and high in prediction efficiency
The method mainly consumes time as an offline analysis processing part, the offline analysis processing part only trains aiming at limited weight combinations, parallel analysis is easy to realize, the analysis interval period is long, the system bottleneck cannot be formed, and when the offline analysis processing is finished, a vehicle similarity function is also determined and a bayonet digraph is formed; and for the periodic processing part of the latest missed license plate record, the similarity is calculated only by aiming at the data in the short time range in the front drive checkpoint and the subsequent checkpoint, and the license plate with the highest similarity is used as a predicted value, so that the calculated amount is small, and the prediction efficiency is high.
2) The method and the idea of the invention have wide application range, are not limited and can predict the missing detection of the license plate
The method provided by the invention has the main ideas that: if vehicles appearing at the current time point also appear at nearby gates in the recent historical time period and the future time period, missing license plates at the current time point are predicted by comparing the vehicles appearing at the nearby gates. The method and the idea can be popularized and applied to other similar scenes, such as vehicle track prejudgment, WIFI perception track prediction and the like.
3) Can adapt to the change of road network and image recognition algorithm
Because the track of the vehicle passing through the gate is very sensitive to the change of the road network, when the road network changes, vehicles may not pass through certain gates any more, and the method of the invention can periodically update the directed graph of the gate to adapt to the change of the road network to a certain extent; in addition, as the number of manufacturers of the image recognition algorithm is large, the recognition capability of the image recognition algorithm of each manufacturer for different vehicle characteristics is different, the algorithm of each manufacturer is continuously improved, and the recognition accuracy of the same algorithm for the vehicle characteristics is continuously changed.
Therefore, the method can be effectively applied to vehicle identification systems of departments such as public security traffic police and the like for predicting the missing detection license plate, and can also effectively improve the accuracy of service scenes such as vehicle track research and judgment and the like based on the vehicle identification system.
As shown in fig. 3, the present invention also relates to a processing terminal 100 of a physical device implementing the above method, which comprises,
a memory 101 for storing program instructions;
the processor 102 is configured to run the program instructions to execute the steps of the missing-detected license plate prediction method, and the specific steps are the same as those of the missing-detected license plate prediction method described above, and are not described herein again.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (18)

1. A missing vehicle license plate prediction method is characterized by comprising the following steps: comprises the steps of off-line analysis and processing and periodic analysis and processing which are sequentially carried out:
an off-line analysis processing step: taking the vehicle passing records containing the recognized license plates in a plurality of months recently as a training set A, generating a bayonet directed graph, presetting a limited number of weight combinations which are constants, adopting a vehicle similarity function to calculate corresponding similarity through training for each weight combination, sequencing evaluation strategies according to the similarity in a descending order to obtain average evaluation scores, and selecting the weight combination corresponding to the highest average evaluation score as the optimal weight combination of the vehicle similarity function so as to determine the vehicle similarity function;
a periodic analysis processing step: and periodically traversing the missed vehicle license plate passing record within a period of time before a plurality of hours according to the period of m, predicting the vehicle license plate through the vehicle similarity function, calculating the similarity of the missed vehicle license plate, periodically executing off-line analysis processing according to the period of n, using the off-line analysis result to update the weight in the checkpoint directed graph and the vehicle similarity function, wherein m and n are constants.
2. The missing vehicle license plate prediction method of claim 1, characterized in that: the expression of the vehicle similarity function is formula (I):
Figure FDA0001792063430000011
in the formula, x is the color of the vehicle body in the vehicle passing record to be compared, y is the type of the vehicle in the vehicle passing record to be compared, z is the brand of the vehicle in the vehicle passing record to be compared, c is the bayonet number in the vehicle passing record to be compared, x, y, z and c are all assigned, and pxTo identify the accuracy of the body colour, pyTo identify the accuracy of the vehicle type, pzTo identify the accuracy of the vehicle brand, pcThe method comprises the following steps: in the training set A, if the current bayonet is the predecessor bayonet of the target bayonet, pcThe ratio of the number of records from the current bayonet to the target bayonet to the total number of records entering the target bayonet, if the current bayonet is a successor of the target bayonet, p iscThe ratio of the number of records from the target card slot to the current card slot to the total number of records from the target card slot,
Figure FDA0001792063430000021
and
Figure FDA0001792063430000022
are all a function Iu,vWhen u equals v, Iu,vValue 1, otherwise, Iu,vA value of 0, x0Recording the value of body color, y, in the target passing0Value of vehicle type, z, in the target pass record0For the value of the vehicle brand in the target pass record, θ1Is the weight of the body color x, θ2Weight of vehicle type y, θ3Weight of vehicle brand z, θ4Is the weight of the bayonet, and θ1234Weight (θ) 11,θ2,θ3,θ4) A finite number of weight combinations are formed,
Figure FDA0001792063430000023
and
Figure FDA0001792063430000024
are all kωExpression of different meanings, kωTo pass through the vehicleThe recorded value of the vehicle feature is the confidence rate of omega in all values of the feature, and the calculation formula is a formula II:
Figure FDA0001792063430000025
wherein n isωThe number of vehicle passing records with the value of omega of the vehicle feature in the training set A is shown, and N is the total number of vehicle passing records in the training set A.
3. The missing vehicle license plate prediction method of claim 1, characterized in that: the method for determining the vehicle similarity function comprises the following steps of:
step 1-1: for each selected weight combination, performing the following steps 1-2 to 1-4 in sequence;
step 1-2: randomly selecting a certain proportion of vehicle passing records in a training set A as a set B, calculating the similarity between each vehicle passing record in the set B and each vehicle passing record of a front drive gate corresponding to a gate where the vehicle passing record is located, simultaneously calculating the similarity between each vehicle passing record and each vehicle passing record of a subsequent gate corresponding to the gate where the vehicle passing record is located, and sorting all the calculated similarities in a descending order to form a sorted list which is recorded as a sorted list U;
step 1-3: for each vehicle passing record in the set B, taking the reciprocal of the position, which is most ranked in the ranked list U, of the corresponding license plate as an evaluation score, calculating all vehicle passing records according to the evaluation score to obtain the evaluation scores of all vehicle passing records in the set B, and calculating the average value of all the evaluation scores, wherein the average value is taken as the evaluation score of the selected weight combination;
step 1-4: and selecting a group of weight combinations with the highest evaluation score as an optimal weight combination, and taking the optimal weight combination as the weight in the vehicle similarity function, thereby determining the vehicle similarity function.
4. The missing vehicle license plate prediction method of claim 3, wherein: in the step 1-2, the forming of the ordered list U includes the following steps performed in sequence:
step 1-2-1: for each vehicle passing record S in the set B, acquiring a bayonet number of the passing bayonet and time T of the passing bayonet;
step 1-2-2: all the front drive bayonets and the subsequent bayonets of the current bayonets, and corresponding vehicle passing records and average driving time consumption delta T are obtained according to the bayonet digraph;
step 1-2-3: screening known license plate passing records corresponding to the predecessor bayonet and the successor bayonet and meeting the time range condition from the training set A to serve as a set C, wherein the time range is [ T-2 delta T, T ] for the predecessor bayonet and [ T, T +2 delta T ] for the successor bayonet;
step 1-2-4: calculating the similarity between each vehicle passing record S' in the set C and the vehicle passing record S by using a vehicle similarity function;
step 1-2-5: and (4) carrying out descending sorting on the similarity calculated in the step (1-2-4) according to the similarity value to form a sorted list, and recording the sorted list as a sorted list U.
5. The missing vehicle license plate prediction method of claim 2, characterized in that: weight (theta)1,θ2,θ3,θ4) And forming the finite weight combinations, and increasing the value of each weight in the weight combinations from 0.1 to 1 according to a fixed step length.
6. The missing vehicle license plate prediction method of claim 5, wherein: the fixed step size is 0.1 or 0.01.
7. The missing vehicle license plate prediction method of claim 1, characterized in that: the generation of the bayonet directed graph comprises the following steps which are executed in sequence:
step 1-1-1: screening vehicle passing records containing recognized license plates in a plurality of months recently from all the existing vehicle passing records to form a training set A, wherein the vehicle passing records in the training set A at least comprise license plate numbers, bayonet serial numbers, time passing through the bayonets, vehicle body colors, vehicle types and vehicle brands;
step 1-1-2: and for each license plate in the training set A, constructing a directed graph according to the bayonets through which vehicles corresponding to the license plate pass in time sequence, so as to obtain the bayonet directed graph, wherein directed edges in the bayonet directed graph represent that vehicles are driven from the bayonet a to the next bayonet b, the number of vehicle passing records from the bayonet a to the bayonet b and the average driving time delta T are recorded, and the directed edges of the bayonet directed graph all point to other bayonets relative to the current bayonet.
8. The missing vehicle license plate prediction method of claim 1, characterized in that: the period m has a value of 30 minutes.
9. The missing vehicle license plate prediction method of claim 1, characterized in that: the value of the period n is 30 days.
10. The missing vehicle license plate prediction method of claim 1, characterized in that: the previous period has a value of 30 minutes.
11. A processing terminal, comprising,
a memory for storing program instructions;
a processor for executing said program instructions to perform the steps of the missing license plate prediction method according to any of claims 1 to 10.
12. A method of determining a vehicle similarity function: the method comprises the following steps:
step 1: obtaining vehicle passing records containing the recognized license plates in the last months;
step 2: taking the passing records containing the recognized license plates in the last months as a training set A, and generating a bayonet directed graph;
and step 3: presetting a limited number of weight combinations which are constants, and calculating the corresponding similarity of each weight combination by adopting a vehicle similarity function through training;
and 4, step 4: and (3) sorting the similarity calculated in the step (3) according to a descending order evaluation strategy to obtain average evaluation scores, and selecting a weight combination corresponding to the highest average evaluation score as an optimal weight combination of the vehicle similarity function so as to determine the vehicle similarity function.
13. The method of determining a vehicle similarity function according to claim 12, wherein: the expression of the vehicle similarity function is formula (I):
Figure FDA0001792063430000051
in the formula, x is the color of the vehicle body in the vehicle passing record to be compared, y is the type of the vehicle in the vehicle passing record to be compared, z is the brand of the vehicle in the vehicle passing record to be compared, c is the bayonet number in the vehicle passing record to be compared, x, y, z and c are all assigned, and pxTo identify the accuracy of the body colour, pyTo identify the accuracy of the vehicle type, pzTo identify the accuracy of the vehicle brand, pcThe method comprises the following steps: in the training set A, if the current bayonet is the predecessor bayonet of the target bayonet, pcThe ratio of the number of records from the current bayonet to the target bayonet to the total number of records entering the target bayonet, if the current bayonet is a successor of the target bayonet, p iscThe ratio of the number of records from the target card slot to the current card slot to the total number of records from the target card slot,
Figure FDA0001792063430000052
and
Figure FDA0001792063430000053
are all a function Iu,vWhen u equals v, Iu,vValue 1, otherwise, Iu,vA value of 0, x0Recording the value of body color, y, in the target passing0Value of vehicle type, z, in the target pass record0For the value of the vehicle brand in the target pass record, θ1Is the weight of the body color x, θ2Weight of vehicle type y, θ3Weight of vehicle brand z, θ4Is the weight of the bayonet, and θ1234Weight (θ) 11,θ2,θ3,θ4) A finite number of weight combinations are formed,
Figure FDA0001792063430000061
and
Figure FDA0001792063430000062
are all kωExpression of different meanings, kωThe confidence rate of the value omega of the vehicle characteristic recorded for the target passing vehicle in all the values of the characteristic is calculated by the formula II:
Figure FDA0001792063430000063
wherein n isωThe number of vehicle passing records with the value of omega of the vehicle feature in the training set A is shown, and N is the total number of vehicle passing records in the training set A.
14. The method of determining a vehicle similarity function according to claim 12, wherein: the method for determining the vehicle similarity function comprises the following steps of:
step 1-1: for each selected weight combination, performing the following steps 1-2 to 1-4 in sequence;
step 1-2: randomly selecting a certain proportion of vehicle passing records in a training set A as a set B, calculating the similarity between each vehicle passing record in the set B and each vehicle passing record of a front drive gate corresponding to a gate where the vehicle passing record is located, simultaneously calculating the similarity between each vehicle passing record and each vehicle passing record of a subsequent gate corresponding to the gate where the vehicle passing record is located, and sorting all the calculated similarities in a descending order to form a sorted list which is recorded as a sorted list U;
step 1-3: for each vehicle passing record in the set B, taking the reciprocal of the position, which is most ranked in the ranked list U, of the corresponding license plate as an evaluation score, calculating all vehicle passing records according to the evaluation score to obtain the evaluation scores of all vehicle passing records in the set B, and calculating the average value of all the evaluation scores, wherein the average value is taken as the evaluation score of the selected weight combination;
step 1-4: and selecting a group of weight combinations with the highest evaluation score as an optimal weight combination, and taking the optimal weight combination as the weight in the vehicle similarity function, thereby determining the vehicle similarity function.
15. The method of determining a vehicle similarity function according to claim 14, wherein: in the step 1-2, the forming of the ordered list U includes the following steps performed in sequence:
step 1-2-1: for each vehicle passing record S in the set B, acquiring a bayonet number of the passing bayonet and time T of the passing bayonet;
step 1-2-2: all the front drive bayonets and the subsequent bayonets of the current bayonets, and corresponding vehicle passing records and average driving time consumption delta T are obtained according to the bayonet digraph;
step 1-2-3: screening known license plate passing records corresponding to the predecessor bayonet and the successor bayonet and meeting the time range condition from the training set A to serve as a set C, wherein the time range is [ T-2 delta T, T ] for the predecessor bayonet and [ T, T +2 delta T ] for the successor bayonet;
step 1-2-4: calculating the similarity between each vehicle passing record S' in the set C and the vehicle passing record S by using a vehicle similarity function;
step 1-2-5: and (4) carrying out descending sorting on the similarity calculated in the step (1-2-4) according to the similarity value to form a sorted list, and recording the sorted list as a sorted list U.
16. The method of determining a vehicle similarity function according to claim 13, wherein: weight (theta)1,θ2,θ3,θ4) Forming the finite number of weight combinations, among the weight combinationsEach weight value of (a) is incremented from 0.1 to 1 in fixed steps.
17. The method of determining a vehicle similarity function according to claim 16, wherein: the fixed step size is 0.1 or 0.01.
18. The method of determining a vehicle similarity function according to claim 12, wherein: the generation of the bayonet directed graph comprises the following steps which are executed in sequence:
step 1-1-1: screening vehicle passing records containing recognized license plates in a plurality of months recently from all the existing vehicle passing records to form a training set A, wherein the vehicle passing records in the training set A at least comprise license plate numbers, bayonet serial numbers, time passing through the bayonets, vehicle body colors, vehicle types and vehicle brands;
step 1-1-2: and for each license plate in the training set A, constructing a directed graph according to the bayonets through which vehicles corresponding to the license plate pass in time sequence, so as to obtain the bayonet directed graph, wherein directed edges in the bayonet directed graph represent that vehicles are driven from the bayonet a to the next bayonet b, the number of vehicle passing records from the bayonet a to the bayonet b and the average driving time delta T are recorded, and the directed edges of the bayonet directed graph all point to other bayonets relative to the current bayonet.
CN201811048279.5A 2018-09-07 2018-09-07 Missing vehicle license plate prediction method and processing terminal Active CN109272034B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811048279.5A CN109272034B (en) 2018-09-07 2018-09-07 Missing vehicle license plate prediction method and processing terminal
PCT/CN2018/106628 WO2020047907A1 (en) 2018-09-07 2018-09-20 License plate failed-detection estimation method and processing terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811048279.5A CN109272034B (en) 2018-09-07 2018-09-07 Missing vehicle license plate prediction method and processing terminal

Publications (2)

Publication Number Publication Date
CN109272034A CN109272034A (en) 2019-01-25
CN109272034B true CN109272034B (en) 2021-04-30

Family

ID=65188311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811048279.5A Active CN109272034B (en) 2018-09-07 2018-09-07 Missing vehicle license plate prediction method and processing terminal

Country Status (2)

Country Link
CN (1) CN109272034B (en)
WO (1) WO2020047907A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111833591A (en) * 2019-04-17 2020-10-27 北京嘀嘀无限科技发展有限公司 Information verification method and device for traffic gate, electronic equipment and storage medium
CN111369790B (en) * 2019-10-16 2021-11-09 杭州海康威视系统技术有限公司 Vehicle passing record correction method, device, equipment and storage medium
CN112036401B (en) * 2020-07-14 2024-03-26 中山大学 License plate recognition integrated machine evaluation method and device based on license plate image attribute calibration
CN112257589B (en) * 2020-10-22 2024-03-05 大连交通大学 Detection method for abnormal parking vehicle
CN112309126B (en) * 2020-10-30 2022-07-05 杭州海康威视数字技术股份有限公司 License plate detection method and device, electronic equipment and computer readable storage medium
CN114005186A (en) * 2021-10-25 2022-02-01 北京筑梦园科技有限公司 License plate recognition method and device and parking management system
CN115063977B (en) * 2022-06-20 2023-05-26 公安部交通管理科学研究所 Method for analyzing vehicle flow direction from single departure place to multiple destinations
CN115512543B (en) * 2022-09-21 2023-11-28 浙江大学 Vehicle path chain reconstruction method based on deep reverse reinforcement learning
CN115600866B (en) * 2022-10-18 2024-08-02 南京莱斯信息技术股份有限公司 Police dispatch method and terminal for specific vehicle interception

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8588470B2 (en) * 2011-11-18 2013-11-19 Xerox Corporation Methods and systems for improved license plate signature matching by similarity learning on synthetic images
CN104392232B (en) * 2014-11-07 2017-09-29 北京邮电大学 The bearing calibration of video metadata under a kind of traffic scene
CN104361087B (en) * 2014-11-17 2017-12-12 东方网力科技股份有限公司 A kind of motor vehicles search method and device based on image
CN104517445A (en) * 2014-12-09 2015-04-15 浪潮电子信息产业股份有限公司 Fake-licensed vehicle identification method based on big data
CN105139659A (en) * 2015-10-09 2015-12-09 东方网力科技股份有限公司 Vehicle license plate recognition method and device
CN105321352A (en) * 2015-11-16 2016-02-10 深圳市哈工大交通电子技术有限公司 A motor vehicle license plate blocking violation detection and evidence obtaining method
CN105513368B (en) * 2015-11-26 2017-10-17 银江股份有限公司 A kind of false-trademark car screening technique based on uncertain information
CN105702047B (en) * 2016-03-04 2018-06-05 浙江宇视科技有限公司 Car license recognition mistake filter method and device in a kind of deck analysis
CN105719489B (en) * 2016-03-24 2018-01-30 银江股份有限公司 A kind of fake-licensed car detection method that probability is flowed to based on bayonet vehicle
EP3340084A1 (en) * 2016-12-22 2018-06-27 Dassault Systèmes Replica selection
CN107729818B (en) * 2017-09-21 2020-09-22 北京航空航天大学 Multi-feature fusion vehicle re-identification method based on deep learning
CN107622667B (en) * 2017-09-28 2021-05-25 广州烽火众智数字技术有限公司 Method and system for detecting altered license plate number
CN107808126A (en) * 2017-10-11 2018-03-16 苏州科达科技股份有限公司 Vehicle retrieval method and device

Also Published As

Publication number Publication date
WO2020047907A1 (en) 2020-03-12
CN109272034A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109272034B (en) Missing vehicle license plate prediction method and processing terminal
CN107992819B (en) Method and device for determining vehicle attribute structural features
CN102509457A (en) Vehicle tracking method and device
CN109427191A (en) A kind of traveling detection method and device
Poddar et al. Automated traffic monitoring system using computer vision
CN113470206B (en) Expressway inspection method, equipment and medium based on vehicle matching
CN105224947A (en) Sorter training method and system
CN115170611A (en) Complex intersection vehicle driving track analysis method, system and application
CN113505638A (en) Traffic flow monitoring method, traffic flow monitoring device and computer-readable storage medium
CN113221760A (en) Expressway motorcycle detection method
Rouf et al. Real-time vehicle detection, tracking and counting system based on YOLOv7
CN108932839B (en) Method and device for judging vehicles in same-driving mode
CN105975982A (en) Front vehicle detection method
CN115762153A (en) Method and device for detecting backing up
CN109800685A (en) The determination method and device of object in a kind of video
Haryono et al. Accuracy in Object Detection based on Image Processing at the Implementation of Motorbike Parking on the Street
CN109740518B (en) Method and device for determining object in video
CN110428612B (en) Vehicle management and control method and device, computer equipment and storage medium
CN115187886A (en) Vehicle violation detection method and device and electronic equipment
CN114023085A (en) Intersection signal timing parameter inference method based on bayonet detection data
CN110781710B (en) Target object clustering method and device
Ward Development of Detection and Tracking Systems for Autonomous Vehicles Using Machine Learning
CN111741267A (en) Method, device, equipment and medium for determining vehicle delay
CN110718066A (en) License plate recognition method, medium, device and system
CN113723316B (en) Vehicle identification method, device, equipment and storage medium

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
CP03 Change of name, title or address

Address after: Room 306, area 2, building 1, Fanshan Venture Center, Panyu energy saving science and Technology Park, 832 Yingbin Road, Donghuan street, Panyu District, Guangzhou, Guangdong 510000

Patentee after: Jiadu Technology Group Co.,Ltd.

Address before: Room 306, zone 2, building 1, Fanshan entrepreneurship center, Panyu energy saving technology park, No. 832 Yingbin Road, Donghuan street, Panyu District, Guangzhou City, Guangdong Province

Patentee before: PCI-SUNTEKTECH Co.,Ltd.

CP03 Change of name, title or address
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190125

Assignee: Guangzhou Jiadu Technology Software Development Co.,Ltd.

Assignor: Jiadu Technology Group Co.,Ltd.

Contract record no.: X2021980015159

Denomination of invention: A missing license plate prediction method and processing terminal

Granted publication date: 20210430

License type: Common License

Record date: 20211215

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190125

Assignee: Guangzhou Jiadu Technology Software Development Co.,Ltd.

Assignor: Jiadu Technology Group Co.,Ltd.

Contract record no.: X2021440000226

Denomination of invention: A missing license plate prediction method and processing terminal

Granted publication date: 20210430

License type: Common License

Record date: 20211222

EC01 Cancellation of recordation of patent licensing contract
EC01 Cancellation of recordation of patent licensing contract

Assignee: Guangzhou Jiadu Technology Software Development Co.,Ltd.

Assignor: Jiadu Technology Group Co.,Ltd.

Contract record no.: X2021980015159

Date of cancellation: 20220111