Fuzzy matching method and device based on license plate, electronic device and storage medium

By obtaining the license plate string and determining its matching first character to generate a matching condition string, efficient query of license plate fuzzy matching is realized, and the problem of inefficiency caused by multiple interceptions and queries in the existing technology is solved.

CN112329758BActive Publication Date: 2024-09-20SHENZHEN EXTREME TECH CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202011221475.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-04
Publication Date
2024-09-20
Estimated Expiration
2040-11-04

AI Technical Summary

Technical Problem

Existing license plate fuzzy matching technology requires multiple interceptions of strings and database queries, resulting in a large amount of query data and low efficiency.

Method used

By obtaining the license plate string to be matched, determining the first character matching it, generating the matching condition string from the preset fuzzy matching character library, and querying the database at one time, reducing the number of database accesses.

Benefits of technology

It simplifies the query process, reduces the amount of calculations, improves matching efficiency, and reduces the bottleneck of slow query data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112329758B
    Figure CN112329758B
Patent Text Reader

Abstract

The present application provides a fuzzy matching method, device, electronic device and storage medium based on license plates. It belongs to the field of data processing technology. The method includes: obtaining a license plate string to be matched; determining the first character that matches each character in the license plate string from a preset fuzzy matching character library; generating a matching condition string composed of each first character based on the matched first characters; inputting the matching condition string into a preset database to query a target license plate that matches the license plate string; wherein at least one license plate string is pre-stored in the preset database. Compared with the prior art, the query process of this method is relatively simple, the amount of calculation is small, and all conditions are comprehensively queried at one time, which reduces the number of database accesses, minimizes the bottleneck of slow data query, and improves execution efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a license plate-based fuzzy matching method, device, electronic device and storage medium. Background Art

[0002] With the development of intelligent transportation technology, the automation and intelligence level of urban traffic management systems and highway traffic management systems has been continuously improved. Video surveillance equipment, electronic camera equipment, and mobile monitoring equipment are widely deployed in observation stations, toll booths, and important intersections in the road network. License plate automatic recognition technology can be used to obtain images and videos from these devices to extract license plate information. Although the license plate recognition system has made great progress, the license plate recognized is not completely correct due to the damage, blur, occlusion, weather, etc. of the license plate.

[0003] Therefore, how to achieve fuzzy matching of license plates has become a research trend in recent years. In related fuzzy matching algorithms, the number of fuzzy matches that match at least three digits is generally set first, and then the string is intercepted from the identified license plate according to the set number, and the database is queried based on the intercepted string to obtain a matching set; different strings are intercepted multiple times in a loop for database query, and the obtained sets are combined and then queried from the database to obtain the final result. This method intercepts the string multiple times, the query data volume is large, and the database needs to be accessed multiple times for query matching, which is inefficient. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a fuzzy matching method, device, electronic device and storage medium based on license plates, so as to improve the problem that "the current fuzzy matching of license plates requires multiple string interceptions, resulting in a large amount of query data and multiple database accesses, resulting in low efficiency."

[0005] The present invention is achieved in that:

[0006] In a first aspect, an embodiment of the present application provides a fuzzy matching method based on a license plate, comprising: obtaining a license plate string to be matched; determining a first character that matches each character in the license plate string from a preset fuzzy matching character library; based on the matched first characters, generating a matching condition string composed of the first characters; inputting the matching condition string into a preset database to query a target license plate that matches the license plate string; wherein at least one license plate string is pre-stored in the preset database.

[0007] In the embodiment of the present application, the obtained license plate string to be matched is first matched with the preset fuzzy matching character library to determine the first character that matches each character in the license plate string to be matched, and then based on each first character, a matching condition string composed of each first character is generated, and finally all composed matching condition strings are queried in the database to obtain the target license plate. Compared with the prior art, the query process of this method is relatively simple, the amount of calculation is small, and all conditions are comprehensively queried at one time, which reduces the number of database accesses, minimizes the bottleneck of slow data query, and improves execution efficiency.

[0008] In combination with the technical solution provided in the first aspect above, in some possible implementations, after obtaining the license plate string to be matched, the method also includes: filtering out the first character in the license plate string; correspondingly, determining the first character that matches each character in the license plate string from a preset fuzzy matching character library includes: determining the first character that matches each character in the license plate string after filtering out the first character from the preset fuzzy matching character library.

[0009] Since the first character in the license plate string is usually a Chinese character, and the recognition of Chinese characters is more accurate than the recognition of numbers or English letters, in the embodiment of the present application, after obtaining the license plate string to be matched, the first character in the license plate string is first filtered out, thereby reducing the amount of calculation for Chinese character matching.

[0010] In combination with the technical solution provided in the first aspect above, in some possible implementation methods, determining the first character that matches each character in the license plate string from a preset fuzzy matching character library includes: constructing the license plate string into a character array, wherein the data length of the character array is the number of characters in the license plate string; an element in the character array corresponds to a character in the license plate string; and inputting each character in the character array into the preset fuzzy matching character library in turn to determine the first character that matches each character in the character array.

[0011] In the embodiment of the present application, the license plate string is constructed as a character array, and the data length of the character array is the number of characters in the license plate string, and one element in the character array corresponds to one character in the license plate string. In this way, it is convenient to input each element in the character array into the preset fuzzy matching character library in turn to determine the first character that matches each character in the character array.

[0012] In combination with the technical solution provided in the first aspect above, in some possible implementations, generating a matching condition string composed of the first characters based on the matched first characters includes: merging the matched first characters using OR to generate a matching condition string composed of the first characters.

[0013] In the embodiment of the present application, the matched first characters are combined by OR, so as to accurately generate the matching condition character strings for all situations.

[0014] In combination with the technical solution provided in the first aspect above, in some possible implementations, the preset fuzzy matching character library includes a plurality of preset second characters and third characters that match each other; accordingly, the step of inputting each character in the character array into the preset fuzzy matching character library in turn to determine the first character that matches each character in the character array includes: inputting each character in the character array into the preset fuzzy matching character library in turn to determine whether the character in the character array is the second character or the third character; when the character in the character array is the second character, the third character is the first character that is determined to match the character in the character array; when the character in the character array is the third character, the second character is the first character that is determined to match the character in the character array.

[0015] In the embodiment of the present application, a plurality of second characters and third characters that match each other are set in the preset fuzzy matching character library. When the input first character, second character or third character is the same, the character that matches it is determined as the first character. In this way, the fuzzy matching character library can be flexibly configured, and it is also convenient to perform a matching query to obtain the first character.

[0016] In the second aspect, an embodiment of the present application provides a fuzzy matching device based on a license plate, comprising: an acquisition module for acquiring a license plate character string to be matched; a determination module for determining, from a preset fuzzy matching character library, a first character that matches each character in the license plate character string; a generation module for generating, based on the matched first characters, a matching condition character string composed of the first characters; a query module for inputting the matching condition character string into a preset database to query a target license plate that matches the license plate character string; wherein at least one license plate character string is pre-stored in the preset database.

[0017] In a third aspect, an embodiment of the present application provides a fuzzy matching system for license plates, comprising: an image acquisition device and an electronic device communicatively connected to the image acquisition device; the image acquisition device is used to identify the license plate and send the identified license plate character string to the electronic device; the electronic device is used to receive the license plate character string, determine the first character that matches each character in the license plate character string from a preset fuzzy matching character library; based on the matched first characters, generate a matching condition character string composed of the first characters; and input the matching condition character string into a preset database to query a target license plate that matches the license plate character string; wherein at least one license plate character string is pre-stored in the preset database.

[0018] In combination with the technical solution provided in the third aspect above, in some possible implementations, the electronic device is a server, and accordingly, the fuzzy matching system of the license plate also includes a display unit; the display unit is connected to the server, and the display unit is used to receive the target license plate that matches the license plate string and is queried and sent by the server, and display it.

[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected; the memory is used to store programs; the processor is used to call the programs stored in the memory to execute the method provided in the above-mentioned first aspect embodiment and / or in combination with some possible implementation methods of the above-mentioned first aspect embodiment.

[0020] In a fifth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method provided in the embodiment of the first aspect and / or in combination with some possible implementation methods of the embodiment of the first aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A schematic diagram of the structure of a fuzzy matching system for license plates provided in an embodiment of the present application.

[0023] Figure 2 A schematic diagram of a recognized car image provided in an embodiment of the present application.

[0024] Figure 3A schematic diagram of the structure of another license plate fuzzy matching system provided in an embodiment of the present application.

[0025] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0026] Figure 5 A flowchart of the steps of a fuzzy matching method based on license plates provided in an embodiment of the present application.

[0027] Figure 6 A schematic diagram of the process of fuzzy matching conditions for a license plate proposed in an embodiment of the present application.

[0028] Figure 7 A module block diagram of a license plate-based fuzzy matching device provided in an embodiment of the present application.

[0029] Icon: 100 - fuzzy matching system of license plate; 10 - image acquisition device; 20 - electronic device; 30 - server; 40 - display unit; 201 - processor; 202 - memory; 300 - fuzzy matching device based on license plate; 301 - acquisition module; 302 - determination module; 303 - generation module; 304 - query module; 305 - filtering module. DETAILED DESCRIPTION

[0030] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0031] In view of the fact that the current fuzzy matching of license plates requires multiple interception of character strings, resulting in a large amount of query data and multiple accesses to the database, resulting in low efficiency, etc. The inventor of the present application has proposed the following embodiments through research and exploration to solve the above problems.

[0032] See also Figure 1 The embodiment of the present application provides a license plate fuzzy matching system 100 that applies a license plate-based fuzzy matching method. The license plate fuzzy matching system 100 includes an image acquisition device 10 and an electronic device 20. The image acquisition device 10 and the electronic device 20 are connected in communication.

[0033] The image acquisition device 10 recognizes the license plate and sends the recognized license plate string to the electronic device 20. Specifically, the image acquisition device 10 can obtain an image containing a car through a video monitoring device or an electronic camera, and then extract the license plate information on the vehicle through image recognition technology to generate a license plate string. Figure 2A schematic diagram of a recognized car image is shown. The license plate information on the vehicle is extracted from the image using image recognition technology, and then a license plate string "Chuan A13579" is generated. However, since the license plate may sometimes be damaged, blocked, etc. For example, part of the character 7 on the license plate is blocked. In this case, the license plate string generated by the image recognition technology may be "Chuan A13519". It should be noted that the number of digits of a car license plate is generally fixed. For example, the license plate of a conventional civilian fuel vehicle has 7 digits, and the license plate of a conventional new energy vehicle has 8 digits. But in some other cases, such as the license plate of the armed police has 9 digits.

[0034] Among them, the electronic device 20 is used to receive the license plate string, determine the first character that matches each character in the license plate string from a preset fuzzy matching character library; generate a matching condition string composed of each of the matched first characters; and input the matching condition string into a preset database to query the target license plate that matches the license plate string. Among them, at least one license plate string is pre-stored in the preset database. In the embodiments of the present application, the electronic device 20 may be, but is not limited to, a personal computer (PC), a tablet computer, a personal digital assistant (PDA), a mobile Internet device (MID), etc. For example, when the scenario where the license plate fuzzy matching system 100 is applied is a parking lot, the electronic device 20 may be the computer in the guard room. But when the scenario where the license plate fuzzy matching system 100 is applied is road traffic management, the electronic device 20 may be the computer in the remote operation room.

[0035] In terms of structure, the electronic device 20 may include a processor 201 and a memory 202.

[0036] The processor 201 is directly or indirectly electrically connected to the memory 202 to achieve data transmission or interaction. For example, these components may be electrically connected to each other through one or more communication buses or signal lines. The license plate-based fuzzy matching device includes at least one software module that can be stored in the memory 202 in the form of software or firmware or固化 in the operating system (OS) of the electronic device 20. The processor 201 is used to execute the executable modules stored in the memory 202. For example, the software function modules and computer programs included in the license plate-based fuzzy matching device are used to implement the license plate-based fuzzy matching method. The processor 201 may execute the computer program after receiving the execution instruction.

[0037] The processor 201 may be an integrated circuit chip with signal processing capability. The processor 201 may also be a general-purpose processor, for example, a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a discrete gate or transistor logic device, or a discrete hardware component, which may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. In addition, the general-purpose processor may be a microprocessor or any conventional processor, etc.

[0038] The memory 202 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), and an electric erasable programmable read-only memory (EEPROM). The memory 202 is used to store a program, and the processor 201 executes the program after receiving an execution instruction.

[0039] It should be understood that Figure 3 The structure shown is for illustration only. The electronic device 20 provided in the embodiment of the present application may also have Figure 3 Fewer or more components, or with Figure 3 For example, the electronic device 20 may further include a display unit for displaying the target license plate. Figure 3 The components shown may be implemented by software, hardware or a combination thereof.

[0040] Optionally, the electronic device 20 may also be a server. Accordingly, the license plate fuzzy matching system 100 further includes a display unit. Figure 4 The embodiment of the present application also provides another license plate fuzzy matching system 100, which specifically includes: an image acquisition device 10, a server 30 and a display unit 40. The server 30 is connected to the image acquisition device 10 and the display unit 40 for communication.

[0041] Among them, the server 30 is used to realize the fuzzy matching of the license plate and send the matched target license plate to the display unit. The fuzzy matching process of the license plate can refer to the description in the above-mentioned electronic device. The above-mentioned server 30 can be but not limited to a RISC (Reduced Instruction Set Computing) architecture server, a network server, a cloud server, a business server, etc. Structurally, the server 30 can also include a processor and a memory. Its structure can also refer to the description in the above-mentioned electronic device 20, and this application will not repeat it.

[0042] The display unit 40 is used to receive and display the target license plate matched with the license plate character string sent by the server 30. The display unit 40 can be, but is not limited to, a liquid crystal display or a light emitting diode (LED) display.

[0043] It is understandable that the fuzzy matching method of the embodiment of the present application can also be applied only to the electronic device 20 (it can also be understood that the fuzzy matching system 100 of the license plate only includes the electronic device 20). For example, the electronic device 20 can be used to receive the license plate string input by the user, and then execute the fuzzy matching method based on the license plate, and then output the target license plate. This application is not limited. For example, if the user wants to confirm whether the car that just passed by has been registered, the license plate string can be manually input, and then the electronic device 20 can be used to determine whether the target license plate is output.

[0044] See also Figure 5 , Figure 5 The flowchart of the fuzzy matching method based on the license plate provided in the embodiment of the present application is applied to the electronic device 20 in the fuzzy matching system 100 of the license plate. It should be noted that the fuzzy matching method based on the license plate provided in the embodiment of the present application is not based on Figure 5 The order shown below is a restriction. Figure 5 The specific process and steps of the fuzzy matching method based on license plates are described. The method includes: steps S101 to S104.

[0045] Step S101: Obtain the license plate character string to be matched.

[0046] First, the electronic device obtains the license plate string to be matched. Among them, the obtained license plate string to be matched can be transmitted by an image acquisition device or input manually by the user, which is not limited in this application. For example, the obtained license plate string can be "Yue A 12345", "Chuan A13579". It should be noted that the number of digits of a car license plate is generally fixed. For example, the license plate of a conventional civilian fuel vehicle is 7 digits, and the license plate of a conventional new energy vehicle is 8 digits. However, there are some other situations, such as the license plate of the armed police is 9 digits. The number of license plate strings to be matched obtained in this application is not limited.

[0047] Optionally, since the first character in the license plate string is usually a Chinese character, and the recognition of Chinese characters is more accurate than the recognition of numbers or English letters. Therefore, in order to reduce the subsequent computational complexity of Chinese character matching, after step S101, the method further includes: filtering out the first character in the license plate string.

[0048] For example, after obtaining the license plate "Yue A 12345", the first character "Yue" can be filtered out, so that the license plate string to be matched becomes "A12345". Correspondingly, the first character can also be filtered out by means of character replacement. For example, the character "%" is used to replace the first character. Correspondingly, after the first character of "Yue A 12345" is filtered out by this method, it becomes "%A123456". It should be explained that in database query, "%" in the character type filtering condition is a wild card, indicating any character (any N characters, N>=0).

[0049] It can be understood that the fuzzy matching method based on license plates provided in the embodiments of this application can set whether the first character participates in the matching. When the first character participates, the subsequent obtained is an exact matching condition including the first character. If the first character is filtered out, the subsequent obtained is a fuzzy matching condition without the first character.

[0050] Step S102: Determine the first character that matches each character in the license plate string from the preset fuzzy matching character library.

[0051] After obtaining the license plate string to be matched, the license plate string is matched with the preset fuzzy matching character library to determine the first character that matches each character in the string. For example, if the license plate string to be matched is "A1245", then the first character that matches A, the first character that matches 1, the first character that matches 2, the first character that matches 4, and the first character that matches 5 are determined from the preset fuzzy matching character library.

[0052] As an optional implementation, step S102 determines the first character that matches each character in the license plate string from a preset fuzzy matching character library. The license plate string can be constructed as a character array, wherein the data length of the character array is the number of characters in the license plate string; an element in the character array corresponds to a character in the license plate string; and then each character in the character array is input into the preset fuzzy matching character library in turn to determine the first character that matches each character in the character array.

[0053] The structure of the constructed character array may be arrCar[X], where arrCar is the character array and X represents the data length in the character data, that is, the number of elements.

[0054] The following uses the license plate string "A13579" to be matched as an example. The license plate string is constructed as a character array arrCar[6]. Among them, arrCar is the character array, and 6 represents the data length in the character data, that is, the number of elements. One element corresponds to one character in the license plate string, that is,

[0055] arrCar[0] = A;

[0056] arrCar[1] = 1;

[0057] arrCar[2] = 3;

[0058] arrCar[3] = 5;

[0059] arrCar[4] = 7;

[0060] arrCar[5]=9.

[0061] Among them, arrCar[0] represents the first element of the character array, and the first element corresponds to the first character A in the license plate string. arrCar[1] represents the second element of the character array, and the second element corresponds to the second character 1 in the license plate string. arrCar[2] represents the third element of the character array, and the third element corresponds to the third character 3 in the license plate string. arrCar[3] represents the fourth element of the character array, and the fourth element corresponds to the fourth character 5 in the license plate string. arrCar[4] represents the fifth element of the character array, and the fifth element corresponds to the fifth character 7 in the license plate string. arrCar[5] represents the sixth element of the character array, and the sixth element corresponds to the sixth character 9 in the license plate string.

[0062] Then, the above six elements are sequentially input into a preset fuzzy matching character library for matching, that is, the six characters are sequentially input into the preset fuzzy matching character library for matching. In this way, the first character matching each character in the character array can be determined sequentially.

[0063] The process of matching characters with the preset fuzzy matching character library is described below.

[0064] As a first implementation manner, the preset fuzzy matching character library includes a plurality of preset mutually matching second characters @M and third characters @N. For example, character 1 and character L can be used as a pair of mutually matching characters, where character 1 is the second character @M and character L is the third character @N. Correspondingly, the mutually matching characters can also be character B and character 8, character 6 and character 8, character 9 and character B. Correspondingly, when this solution is also used for matching Chinese characters, a plurality of mutually matching Chinese characters should also be set in the preset fuzzy matching character library. For example, Chinese character "粤" and Chinese character "奥" can be used as a pair of mutually matching characters. Correspondingly, Chinese character "粤" is the second character @M and Chinese character "奥" is the third character @N.

[0065] When the first implementation manner is adopted, each character in the character array is sequentially input into the preset fuzzy matching character library to determine whether the character in the character array is a second character or a third character. When the character in the character array is a second character, the third character is the first character determined to match the character in the character array; when the character in the character array is a third character, the second character is the first character determined to match the character in the character array.

[0066] For example, from arrCar[X], a character @A is sequentially determined. Then, the character @A is sequentially matched with a plurality of mutually matching second characters @M and third characters @N in the preset fuzzy matching character library to determine whether @A is equal to @M. If they are equal, @N is used as the first character determined to match @A; and to determine whether @A is equal to @N. If they are equal, @M is used as the first character determined to match @A. If neither is equal, the next pair of mutually matching second characters @M and third characters @N is matched.

[0067] Next, we continue to take the license plate string "A13579" as an example. From the character array arrCar[6] constructed by the license plate string "A13579", determine the first element arrCar[0]=A, and then input character A into the above-mentioned preset fuzzy matching character library, and match character A with multiple mutually matching characters in the preset fuzzy matching character library one by one. Assuming that the first pair of mutually matching characters are character B and character 8, which does not contain character A, then obtain the next pair of mutually matching characters. Assuming that the next pair of mutually matching characters are character A and character 4, character 4 is determined as the first character that matches character A. And so on, until the first character that matches all the characters in the license plate string is obtained. It should be noted that the number of first characters that match each character can be one or more, and this application does not limit it.

[0068] In summary, in the embodiment of the present application, a plurality of second characters and third characters that match each other are set in the preset fuzzy matching character library. When the input first character, second character or third character is the same, the character that matches it is determined as the first character. In this way, the fuzzy matching character library can be flexibly configured, and it is also convenient to perform a matching query to obtain the first character.

[0069] As a second implementation method, the preset fuzzy matching character library includes similar characters that match the target character. Among them, the numbers 0 to 9 and English characters A to Z are the target characters, and each target character is preset with similar characters that match it. For example, the similar characters of the English character A are character 4 and character M; the similar characters of character 1 are character 7, character I, and character L; the similar characters of character 3 are S and B. Correspondingly, when the scheme is also used to match Chinese characters, the preset fuzzy matching character library should also set Chinese characters and similar characters that match them, for example, the similar characters of the Chinese character Yue are Ao and Wu.

[0070] When the second implementation is adopted, each character in the character array is input into the preset fuzzy matching character library in turn, the target character identical to each character in the character array is searched out, and then the similar character matched by the target character identical to each character is determined as the first character matching the character. For example, if the first character in the character array is A, then character A is input into the preset fuzzy matching character library, and then the target character A in the preset fuzzy matching character library is searched out, and the similar characters matched by the target character A are character 4 and character M. Then character 4 and character M are determined as the first characters matching character A.

[0071] After obtaining the first character that matches each character in the license plate string through the above two implementations, a condition set list can be generated. Continuing with the license plate string "A13579" as an example, the generated condition set list can refer to Figure 6 . It needs to be explained. Figure 6 It is only an illustration of a condition set list and is not intended to be limiting. Among them, the characters that match character A are character 4 and character M, the characters that match character 1 are character 7, character I, and character L, the characters that match character 3 are character S and character B, the characters that match character 5 are character S, character R, and character 6, the characters that match character 7 are character I, character 1, and character T, and the characters that match character 9 are character 8 and character P.

[0072] Step S103: Based on the matched first characters, a matching condition character string composed of the first characters is generated.

[0073] Finally, based on the matched first characters, a matching condition string is formed. In the embodiment of the present application, step S103 specifically includes combining the matched first characters by OR to generate a matching condition string composed of the first characters. Among them, OR combination is to combine data by OR. For ease of understanding, Figure 6 The condition set list shown is used as an illustration. When the first characters in the condition set list are combined by OR, it can be understood that the two character sets of characters 4 and M and characters 7, characters I and characters L are combined by OR. Correspondingly, the two character sets of characters 7, characters I and characters L are combined by OR. Finally, in this way, a matching condition string is combined to form, for example, the matching condition string formed by the combination is M7S618.

[0074] Of course, based on the matched first characters, the matching condition string composed of the first characters can also include characters in the license plate string, for example, OR merging is also used to merge the two character sets of character 1, character 4, character M and character 1, character 7, character I, character L. Correspondingly, the matching condition string formed by combining in this way may be A73579, AL3579, which is not limited in this application.

[0075] In the embodiment of the present application, the matched first characters are combined by OR, so as to accurately generate the matching condition character strings for all situations.

[0076] Step S104: input the matching condition character string into a preset database to search for a target license plate that matches the license plate character string; wherein at least one license plate character string is pre-stored in the preset database.

[0077] Finally, all combinations can be input into a preset database for query. The query process is to query whether the input matching condition string exists in the preset database. When the same license plate string is obtained in the preset database, the license plate string is output as the target license plate.

[0078] As an implementation method, the SQL (Structured Query Language) statement is generated by OR merging in step S103. SQL is a special-purpose programming language, a database query and programming language, used to access data and query, update and manage relational database systems. SQL statements facilitate database queries.

[0079] In summary, in the embodiment of the present application, the obtained license plate string to be matched is first matched with the preset fuzzy matching character library to determine the first character that matches each character in the license plate string to be matched, and then based on each first character, a matching condition string composed of each first character is generated, and finally all composed matching condition strings are queried in the database to obtain the target license plate. Compared with the prior art, the query process of this method is relatively simple, the amount of calculation is small, and all conditions are comprehensively queried at one time, which reduces the number of database accesses, minimizes the bottleneck of slow data query, and improves execution efficiency.

[0080] See also Figure 7 Based on the same inventive concept, the embodiment of the present application also provides a license plate-based fuzzy matching device 300 , including: an acquisition module 301 , a determination module 302 , a generation module 303 and a query module 304 .

[0081] The acquisition module 301 is used to acquire the license plate character string to be matched.

[0082] The determination module 302 is used to determine the first character that matches each character in the license plate character string from a preset fuzzy matching character library.

[0083] The generating module 303 is used to generate a matching condition character string composed of each first character based on each matched first character.

[0084] The query module 304 is used to input the matching condition character string into a preset database to query a target license plate that matches the license plate character string; wherein at least one license plate character string is pre-stored in the preset database.

[0085] Optionally, the license plate-based fuzzy matching device 300 further includes a filtering module 305 .

[0086] The filtering module 305 is used to filter out the first character in the license plate string after obtaining the license plate string to be matched. Correspondingly, the determining module 302 is used to determine the first character that matches each character in the license plate string after filtering out the first character from a preset fuzzy matching character library.

[0087] Optionally, the determination module 302 is specifically used to construct the license plate string as a character array, wherein the data length of the character array is the number of characters in the license plate string; an element in the character array corresponds to a character in the license plate string; each character in the character array is input into the preset fuzzy matching character library in turn to determine the first character that matches each character in the character array.

[0088] Correspondingly, the generating module 303 is specifically configured to combine the matched first characters by OR, and generate a matching condition string composed of the first characters.

[0089] Correspondingly, the determination module 302 is also specifically used to input each character in the character array into the preset fuzzy matching character library in turn, and determine whether the character in the character array is the second character or the third character; when the character in the character array is the second character, the third character is the first character determined to match the character in the character array; when the character in the character array is the third character, the second character is the first character determined to match the character in the character array; wherein the preset fuzzy matching character library includes a plurality of preset second characters and third characters that match each other.

[0090] It should be noted that, since technicians in the relevant field can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0091] Based on the same inventive concept, an embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed, the method provided in the above embodiment is executed.

[0092] The storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)).

[0093] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0094] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0095] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0096] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0097] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A fuzzy matching method based on license plate, characterized in that: include: Get the license plate string to be matched; Determining, from a preset fuzzy matching character library, a first character that matches each character in the license plate character string; Based on the matched first characters, generating a matching condition character string composed of the first characters; Input the matching condition string into a preset database to search for a target license plate that matches the license plate string; wherein the preset database pre-stores at least one license plate string; Determining the first character that matches each character in the license plate character string from a preset fuzzy matching character library includes: Constructing the license plate string into a character array, wherein the data length of the character array is the number of characters in the license plate string; one element in the character array corresponds to one character in the license plate string; Inputting each character in the character array into the preset fuzzy matching character library in turn, and determining the first character that matches each character in the character array; The preset fuzzy matching character library includes a plurality of preset second characters and third characters that match each other; accordingly, inputting each character in the character array into the preset fuzzy matching character library in sequence to determine a first character that matches each character in the character array includes: Inputting each character in the character array into the preset fuzzy matching character library in turn, and determining whether the character in the character array is the second character or the third character; When the character in the character array is the second character, the third character is the first character determined to match the character in the character array; When the character in the character array is the third character, the second character is the first character determined to match the character in the character array.

2. The fuzzy matching method based on license plate according to claim 1 is characterized in that: After obtaining the license plate character string to be matched, the method further includes: Filter out the first character in the license plate string; Accordingly, determining the first character that matches each character in the license plate character string from a preset fuzzy matching character library includes: From the preset fuzzy matching character library, determine the first character that matches each character in the license plate string after filtering out the first character.

3. The fuzzy matching method based on license plate according to claim 1 is characterized in that: The step of generating a matching condition string composed of the first characters based on the matched first characters includes: The matched first characters are merged to generate a matching condition character string composed of the first characters.

4. A fuzzy matching device based on license plates, characterized in that: include: The acquisition module is used to obtain the license plate string to be matched; A determination module, used to determine the first character that matches each character in the license plate character string from a preset fuzzy matching character library; A generating module, used for generating a matching condition string composed of each first character based on each matched first character; A query module, used for inputting the matching condition string into a preset database to query a target license plate that matches the license plate string; wherein the preset database pre-stores at least one license plate string; The determination module is specifically used to construct the license plate string into a character array, wherein the data length of the character array is the number of characters in the license plate string; one element in the character array corresponds to one character in the license plate string; each character in the character array is input into the preset fuzzy matching character library in turn, and a first character matching each character in the character array is determined; the preset fuzzy matching character library includes a preset plurality of second characters and a preset third character that match each other; each character in the character array is input into the preset fuzzy matching character library in turn, and it is determined whether the character in the character array is the second character or the third character; when the character in the character array is the second character, the third character is the first character determined to match the character in the character array; when the character in the character array is the third character, the second character is the first character determined to match the character in the character array; wherein the preset fuzzy matching character library includes a preset plurality of second characters and a preset third character that match each other.

5. A fuzzy matching system for license plates, characterized in that: include: An image acquisition device and an electronic device connected to the image acquisition device for communication; The image acquisition device is used to identify the license plate and send the identified license plate character string to the electronic device; The electronic device is used to receive the license plate character string, determine the first character that matches each character in the license plate character string from a preset fuzzy matching character library; based on each matched first character, generate a matching condition character string composed of each first character; and inputting the matching condition string into a preset database to query the target license plate that matches the license plate string; wherein at least one license plate string is pre-stored in the preset database; constructing the license plate string into a character array, wherein the data length of the character array is the number of characters in the license plate string; one element in the character array corresponds to one character in the license plate string; inputting each character in the character array into the preset fuzzy matching character library in turn to determine the first character that matches each character in the character array; the preset fuzzy matching character library includes a preset plurality of second characters and a third character that match each other; inputting each character in the character array into the preset fuzzy matching character library in turn to determine whether the character in the character array is the second character or the third character; when the character in the character array is the second character, the third character is the first character that is determined to match the character in the character array; when the character in the character array is the third character, the second character is the first character that is determined to match the character in the character array; wherein the preset fuzzy matching character library includes a preset plurality of second characters and a third character that match each other.

6. The fuzzy matching system for license plates according to claim 5, characterized in that: The electronic device is a server, and accordingly, the license plate fuzzy matching system also includes a display unit; the display unit is connected to the server, and the display unit is used to receive and display the target license plate that matches the license plate string and is queried and sent by the server.

7. An electronic device, characterized in that: include: A processor and a memory, the processor and the memory being connected; The memory is used to store programs; The processor is used to run the program stored in the memory to execute the method according to any one of claims 1 to 3.

8. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the method according to any one of claims 1 to 3 is executed.

Citation Information

Patent Citations

  • Method and system for managing vehicle based on image identifying technique

    CN102054305A

  • Parking lot reverse car seeking management system based on fuzzy positioning and implementation method of parking lot reverse car seeking management system

    CN103440781A

  • Auxiliary recognition system based on vehicle license fuzzy matching

    CN107798880A

  • Vehicle license plate recognition method, apparatus and device, and computer readable storage medium

    CN108364010A

  • Radio-frequency identification and video identification matching method and system, equipment and storage medium

    CN108596119A