Vehicle information retrieval method, device, electronic device and storage medium
By determining the word segmentation type in advance in the license plate number search library, combining the vague number of license plate numbers and locations, the precise license plate number of the target vehicle is quickly retrieved, which solves the problem of quickly searching for license plate numbers in massive data and improves the search efficiency.
Patent Information
- Application Number
- CN202111261362.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-10-28
AI Technical Summary
在海量车辆历史数据中快速搜索指定车牌号并缩短检索时间和范围,提升检索效率。
By determining the license plate number participle type in the license plate number search library in advance, after obtaining the fuzzy license plate number of the target vehicle, the target fuzzy type is determined based on the number of digits and position of the fuzzy characters, so that the exact license plate number of the target vehicle can be quickly retrieved in the license plate number search library.
It realizes the rapid search of the precise license plate number of the target vehicle in the license plate number search library, shortens the search time, reduces the search range, and improves the search efficiency.
Smart Images

Figure CN113961671B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle information technology, and in particular to a vehicle information retrieval method, device, electronic device and storage medium. Background Art
[0002] With the continuous investment in urban construction, there are more and more cameras on the road, and the number of motor vehicles is also increasing rapidly. As a result, the data of passing vehicles captured and identified by cameras has exploded. According to statistics, a large amount of historical data of motor vehicles needs to be stored every once in a while. In practical applications, it is often necessary to search for license plate numbers from the most recent year or even a larger time range, and the amount of data reaches more than 100 billion. Therefore, how to search for a specified license plate number from this massive amount of data and shorten the search range and search time is the key. Summary of the invention
[0003] In view of this, the embodiments of the present application at least provide a vehicle information retrieval method, device, electronic device and storage medium. By determining the license plate number segmentation type in the license plate number retrieval library in advance, after obtaining the retrieval request of the target vehicle, the precise license plate number corresponding to the target vehicle can be quickly retrieved in the license plate number retrieval library, thereby shortening the retrieval time and reducing the retrieval scope, thereby improving the retrieval efficiency.
[0004] This application mainly includes the following aspects:
[0005] In a first aspect, an embodiment of the present application provides a method for retrieving vehicle information, the method comprising:
[0006] Obtaining a search request for a target vehicle, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character;
[0007] Determining a target fuzzy type of the fuzzy license plate number according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number;
[0008] After determining that the license plate number segmentation type in the license plate number search library includes the target fuzzy type, the precise license plate number corresponding to the target vehicle is retrieved from the license plate search library according to the fuzzy license plate number and the target fuzzy type;
[0009] Based on the precise license plate number of the target vehicle, vehicle information of the target vehicle is retrieved.
[0010] In a possible implementation, the license plate number retrieval library stores preset fuzzy types, sample fuzzy license plate numbers and sample precise license plate numbers, wherein each sample precise license plate number is stored corresponding to a plurality of the sample fuzzy license plate numbers under each preset fuzzy type.
[0011] In a possible implementation, a sample fuzzy license plate number is generated in the following manner:
[0012] For each sample accurate license plate number, the sample accurate license plate number is fuzzy processed according to each preset fuzzy type to generate a plurality of sample fuzzy license plate numbers corresponding to each preset fuzzy type.
[0013] In a possible implementation, the blurring of the sample precise license plate number according to each preset blur type to generate a plurality of sample blurred license plate numbers corresponding to each preset blur type includes:
[0014] At least one sample character in the sample precise license plate number is replaced with a preset fuzzy character to obtain a sample character string; the sample character string includes the preset fuzzy character and the sample character;
[0015] The obtained sample character string is determined as a sample fuzzy license plate number.
[0016] In a possible implementation, the retrieval method further includes:
[0017] If it is determined that the license plate number segmentation type in the license plate number search library does not include the target fuzzy type, the license plate number search library is traversed according to the fuzzy license plate number, and the precise license plate number corresponding to the target vehicle is retrieved from the license plate search library.
[0018] In a second aspect, an embodiment of the present application further provides a vehicle information retrieval device, the retrieval device comprising:
[0019] An acquisition module, used for acquiring a search request of a target vehicle, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character;
[0020] A first determination module, used for determining a target fuzzy type of the fuzzy license plate number according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number;
[0021] The second determination module is used to retrieve the precise license plate number corresponding to the target vehicle from the license plate retrieval library according to the fuzzy license plate number and the target fuzzy type after determining that the license plate number segmentation type in the license plate number retrieval library contains the target fuzzy type.
[0022] A retrieval module is used to retrieve the vehicle information of the target vehicle based on the precise license plate number of the target vehicle.
[0023] In a possible implementation, the license plate number retrieval library stores preset fuzzy types, sample fuzzy license plate numbers and sample precise license plate numbers, wherein each sample precise license plate number is stored corresponding to a plurality of the sample fuzzy license plate numbers under each preset fuzzy type.
[0024] In a possible implementation manner, the retrieval device further includes:
[0025] The third determination module is used to traverse the license plate number retrieval library according to the fuzzy license plate number if it is determined that the license plate number segmentation type in the license plate number retrieval library does not contain the target fuzzy type, and retrieve the precise license plate number corresponding to the target vehicle from the license plate retrieval library.
[0026] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the retrieval method described in the first aspect or any possible implementation manner of the first aspect.
[0027] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the retrieval steps described in the above-mentioned first aspect or any possible implementation manner of the first aspect are performed.
[0028] Compared with the prior art of directly retrieving motor vehicle data from a database, the vehicle information retrieval, device, electronic device and storage medium provided in the embodiments of the present application, by predetermining the license plate number segmentation type in the license plate number retrieval library, can quickly retrieve the precise license plate number corresponding to the target vehicle in the license plate number retrieval library after obtaining a retrieval request for the target vehicle, thereby shortening the retrieval time and reducing the retrieval scope, thereby improving the retrieval efficiency.
[0029] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments 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.
[0031] Figure 1 A flow chart showing a method for retrieving vehicle information provided by an embodiment of the present application is shown;
[0032] Figure 2 A structural diagram showing a vehicle information retrieval method provided in an embodiment of the present application;
[0033] Figure 3 A structural diagram showing another vehicle information retrieval method provided in an embodiment of the present application;
[0034] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.
[0035] Description of main component symbols:
[0036] In the figure: 20 - retrieval device; 210 - acquisition module; 220 - first determination module; 230 - second determination module; 240 - retrieval module; 250 - third determination module; 400 - electronic device; 410 - processor; 420 - memory; 430 - bus. DETAILED DESCRIPTION
[0037] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0038] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0039] In order to enable those skilled in the art to use the contents of this application, the following implementation methods are given in combination with the specific application scenario "retrieval of vehicle information". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.
[0040] The following methods, devices, electronic devices or computer-readable storage media of the embodiments of the present application can be applied to any scenario where vehicle information needs to be retrieved. The embodiments of the present application are not limited to specific application scenarios. Any scheme using the vehicle information retrieval method and device provided by the embodiments of the present application is within the scope of protection of the present application.
[0041] It is worth noting that before this application was proposed, in existing solutions, in actual applications, it was often necessary to search for license plate numbers from the most recent year or even a larger time range, when the amount of data reached hundreds of billions. Therefore, how to search for a specified license plate number from this massive amount of data and shorten the search range and search time is the key.
[0042] In response to the above problems, the embodiment of the present application determines the license plate number segmentation type in the license plate number retrieval library in advance, so that after obtaining the retrieval request of the target vehicle, the precise license plate number corresponding to the target vehicle can be quickly retrieved in the license plate number retrieval library, thereby shortening the retrieval time and reducing the retrieval scope, thereby improving the retrieval efficiency.
[0043] It should be noted that, in order to facilitate the understanding of the present application, the technical solution provided by the present application is described in detail below in conjunction with specific embodiments.
[0044] Figure 1 This is a flow chart of a vehicle information retrieval method provided in an embodiment of the present application. Figure 1 As shown, the vehicle information retrieval method provided in the embodiment of the present application includes the following steps:
[0045] S101. Obtain a search request for a target vehicle, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character.
[0046] In the above steps, the retrieval request for the target vehicle is a retrieval request for directly retrieving the vehicle information of the target vehicle by using the fuzzy license plate number of the target vehicle captured or recognized by the camera when the researcher needs to observe or view the relevant information of the target vehicle, wherein the fuzzy license plate number is composed of at least one fuzzy character. Here, the fuzzy license plate number of the target vehicle corresponds to the accurate license plate number of the target vehicle in the license plate number retrieval library.
[0047] The fuzzy characters include digital fuzzy characters and alphabetical fuzzy characters.
[0048] Here, since the vehicle license plate number is composed of two parts: a digital license plate number and an alphabetic license plate number, the fuzzy characters in the fuzzy license plate number also include digital fuzzy characters and alphabetic fuzzy characters, and the combination of fuzzy characters in the fuzzy license plate number of the target vehicle here includes but is not limited to three types: all digital fuzzy characters, all alphabetic fuzzy characters and a combination of digital fuzzy characters and alphabetic fuzzy characters.
[0049] S102: Determine a target fuzzy type of the fuzzy license plate number according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number.
[0050] In the above steps, the number of fuzzy characters in the fuzzy license plate number and the position of the fuzzy character of each digit are determined according to the fuzzy license plate number, and the target fuzzy type of the fuzzy license plate number is determined according to the number of fuzzy characters and their positions.
[0051] Here, different fuzzy characters with different digits and fuzzy characters at different positions correspond to different target fuzzy types.
[0052] Among them, it is necessary to match the target fuzzy type of the fuzzy license plate number with the license plate number segmentation type in the license plate number retrieval library. By judging whether the target fuzzy type can be found in the license plate number segmentation type in the license plate number retrieval library, it is determined whether the precise license plate number corresponding to the target vehicle can be directly determined from the license plate retrieval library based on the fuzzy license plate number and the target fuzzy type.
[0053] S103, after determining that the license plate number segmentation type in the license plate number search library includes the target fuzzy type, retrieve the precise license plate number corresponding to the target vehicle from the license plate search library according to the fuzzy license plate number and the target fuzzy type.
[0054] In the above steps, first, it is determined whether the license plate number segmentation type in the license plate number retrieval library contains the target fuzzy type, and after determining that the license plate number segmentation type in the license plate number retrieval library contains the target fuzzy type, after retrieving the license plate number segmentation type corresponding to the target fuzzy type in the license plate number retrieval library, the precise license plate number of the target vehicle is determined according to the fuzzy license plate number and the target fuzzy type.
[0055] Here, the license plate number retrieval library stores preset fuzzy types, sample fuzzy license plate numbers and sample accurate license plate numbers, wherein each sample accurate license plate number is stored corresponding to a plurality of the sample fuzzy license plate numbers under each preset fuzzy type.
[0056] Among them, the license plate number retrieval library stores a large number of sample precise license plate numbers, and each sample precise license plate number corresponds to multiple sample fuzzy license plate numbers after being blurred by any preset fuzzy type, and the license plate number retrieval library stores each sample precise license plate number and multiple sample fuzzy license plate numbers after being blurred by each preset fuzzy type in a corresponding manner.
[0057] Furthermore, the sample fuzzy license plate number is generated in the following manner: for each sample precise license plate number, the sample precise license plate number is fuzzy processed according to each preset fuzzy type to generate a plurality of sample fuzzy license plate numbers corresponding to each preset fuzzy type.
[0058] Here, the preset fuzzy type includes at least one preset fuzzy character with multiple different digits and at least one preset fuzzy character with multiple different positions, that is, the sample characters in the sample precise license plate number are customized for word segmentation by the number of digits and positions of the preset fuzzy characters. The process of generating the sample fuzzy license plate number is the process of creating word segmentation rules for the customized word segmentor.
[0059] The custom setting of the word segmenter includes but is not limited to using the Java development language in the distributed search engine of Elasticsearch and custom setting of the word segmenter by adding a plug-in.
[0060] Furthermore, the sample accurate license plate number is fuzzy processed according to each preset fuzzy type to generate a plurality of sample fuzzy license plate numbers corresponding to each preset fuzzy type, including:
[0061] At least one sample character in the sample precise license plate number is replaced with a preset fuzzy character to obtain a sample character string; the sample character string includes the preset fuzzy character and the sample character.
[0062] Here, the sample precise license plate number is composed of multi-digit sample characters. At least one sample character in the sample precise license plate number is replaced with a preset fuzzy character to obtain a sample character string, wherein the sample character string includes the replaced preset fuzzy characters and the sample characters in the sample precise license plate number that have not been replaced.
[0063] In this way, the preset fuzzy characters include but are not limited to using fuzzy characters with covering properties similar to "*".
[0064] The obtained sample character string is determined as a sample fuzzy license plate number.
[0065] Here, the obtained sample character string is a sample fuzzy license plate number in which the sample characters at the positions where the preset fuzzy characters are located are different from the sample accurate license plate number, while the sample characters at other positions are the same as the sample accurate license plate number.
[0066] In this way, the rule of setting the preset fuzzy characters is to recursively divide the sample precise license plate number.
[0067] Next, a recursive algorithm is used to dynamically obtain multiple starting sample character strings consisting of different numbers of numbers and letters. The starting sample character string can be specifically any one of the beginnings of a character string consisting of 0 to multiple numbers and letters. Then, starting with these sample character strings, the subsequent sample character strings are recursively continued to form a multi-layer recursion for each sample license plate number.
[0068] Here, the recursive partitioning method in computer science refers to a method of solving a problem by repeatedly decomposing the problem into similar sub-problems.
[0069] The number of digits of the sample license plate number includes but is not limited to the number of digits of the commonly used license plate numbers in the market. This embodiment mainly takes 7-digit license plate numbers and 8-digit license plate numbers as examples. The recursive principles of 7-digit license plate numbers and 8-digit license plate numbers are the same, except that the characters of the 8-digit license plate number are longer. Therefore, the preset segmentation types obtained by segmenting the 8-digit license plate number are more than those of the 7-digit license plate number.
[0070] Here, multi-layer recursive division can be performed on the numeric characters and alphabetic characters in any sample precise license plate number of the 7-digit license plate number and the 8-digit license plate number listed in the embodiments of the present application, wherein the sample precise license plate numbers of different digits provided in the present application include but are not limited to 7-digit license plate numbers and 8-digit license plate numbers.
[0071] In a specific implementation, any sample character string after recursive processing is replaced with "*" one by one, and the sample character combinations in each sample precise license plate number that are not fuzzy processed according to each preset fuzzy type and recursively divided are replaced.
[0072] The purpose of using "*" to replace any sample characters after recursive processing one by one is to facilitate recording the positions of the sample characters so as to use this information for building an inverted index.
[0073] Here, building an inverted index is an important structure in a distributed search engine. It is used to store the mapping of a word in a document or a group of documents under full-text search. This mapping relationship is used to quickly retrieve matching documents. In this application document, it is used to store the fuzzy license plate number in a retrieval request for a target vehicle under full-text search, so as to quickly retrieve the precise license plate number of the target vehicle that matches the fuzzy license plate number.
[0074] Example 1: Taking the 7-digit license plate number Zhejiang A12345 as an example, the following specifically describes the determined license plate number segmentation type:
[0075] (1) First, segment the types starting with the previous several characters, and 7 types can be segmented, such as Zhe*, Zhe A*, Zhe A1*, Zhe A12*, etc., among which the word Zhe A12345 is included.
[0076] (2) Replace a certain sample character in the middle with *, which is convenient for direct and accurate query during fuzzy query, and 5 types of license plate number segmentation can be segmented, such as Zhe*12345, Zhe A*2345, Zhe A1*345, etc.
[0077] (3) Replace two consecutive sample characters in the middle with *, which is convenient for direct and accurate query during fuzzy query, and 4 types of license plate number segmentation can be segmented, such as Zhe*2345, Zhe A*345, Zhe A1*45, etc.
[0078] (4) Replace three consecutive sample characters in the middle with *, which is convenient for direct and accurate query during fuzzy query, and 3 types of license plate number segmentation can be segmented, such as Zhe*345, Zhe A*45, Zhe A1*5.
[0079] (5) Replace four consecutive sample characters in the middle with *, which is convenient for direct and accurate query during fuzzy query, and 2 types of license plate number segmentation can be segmented, such as Zhe*45, Zhe A*5.
[0080] (6) Replace five consecutive sample characters in the middle with *, which is convenient for direct and accurate query during fuzzy query, and one type of license plate number segmentation can be segmented, such as Zhe*5.
[0081] (7) Replace several consecutive sample characters in the front with *, which is convenient for direct and accurate query during fuzzy query, and 6 types of license plate number segmentation can be segmented, such as *A12345, *12345, *2345, *345, *45, and *5.
[0082] Here, there are a total of 28 types of license plate number segmentation. For 8-digit license plates, a total of 36 types of license plate number segmentation can be determined through the above segmentation method, which will not be elaborated here.
[0083] Furthermore, the retrieval method further includes: if it is determined that the license plate number segmentation types in the license plate number retrieval library do not include the target fuzzy type, then traverse the license plate number retrieval library according to the fuzzy license plate number, and retrieve the accurate license plate number corresponding to the target vehicle from the license plate retrieval library.
[0084] Here, after it is determined that the license plate number segmentation types in the license plate number retrieval library do not include the target fuzzy type, traversing the license plate number retrieval library according to the fuzzy license plate number realizes a coarse-grained retrieval of the accurate license plate number compared with the method of directly determining the accurate license plate number. At this time, the traversal-based fuzzy query will not cause memory overflow or slow query, because the scenarios where the traversal-based fuzzy query is slow are already included in the queries of the above 28 types of license plate number segmentation.
[0085] S104: Retrieve vehicle information of the target vehicle based on the precise license plate number of the target vehicle.
[0086] In the above steps, based on the determined accurate license plate number of the target vehicle, the vehicle information corresponding to the accurate license plate number of the target vehicle can be determined from other external retrieval libraries.
[0087] Here, there is a direct mapping relationship between the precise license plate number and the vehicle information of the target vehicle, and the embodiment of this mapping relationship includes but is not limited to an external database, or a mapping table between the license plate number and the vehicle information.
[0088] Compared with the prior art, the retrieval method provided by the present application determines the license plate number segmentation type in the license plate number retrieval library in advance, so that after obtaining the retrieval request of the target vehicle, the precise license plate number corresponding to the target vehicle can be quickly retrieved in the license plate number retrieval library, thereby shortening the retrieval time and reducing the retrieval scope, thereby improving the retrieval efficiency.
[0089] like Figures 2 to 3 As shown, Figure 2 This is one of the functional module diagrams of a vehicle information retrieval device 20 provided in an embodiment of the present application. Figure 3 This is a second functional module diagram of a vehicle information retrieval device 20 provided in an embodiment of the present application.
[0090] like Figure 2 As shown, Figure 2 A vehicle information retrieval device is provided, the retrieval device 20 comprising:
[0091] The acquisition module 210 is used to acquire a search request for a target vehicle, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character.
[0092] The first determination module 220 is used to determine the target fuzzy type of the fuzzy license plate number according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number.
[0093] The second determination module 230 is used to retrieve the precise license plate number corresponding to the target vehicle from the license plate retrieval library according to the fuzzy license plate number and the target fuzzy type after determining that the license plate number segmentation type in the license plate number retrieval library contains the target fuzzy type.
[0094] The retrieval module 240 is used to retrieve the vehicle information of the target vehicle based on the precise license plate number of the target vehicle.
[0095] Compared with the prior art, the retrieval device 20 provided in the present application determines the license plate number segmentation type in the license plate number retrieval library in advance, so that after obtaining the retrieval request of the target vehicle, it can quickly retrieve the precise license plate number corresponding to the target vehicle in the license plate number retrieval library, thereby shortening the retrieval time and reducing the retrieval scope, thereby improving the retrieval efficiency.
[0096] like Figure 3 As shown, Figure 3 A vehicle information retrieval device is provided, the retrieval device 20 comprising:
[0097] The acquisition module 210 is used to acquire a search request for a target vehicle, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character.
[0098] The first determination module 220 is used to determine the target fuzzy type of the fuzzy license plate number according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number.
[0099] The second determination module 230 is used to retrieve the precise license plate number corresponding to the target vehicle from the license plate retrieval library according to the fuzzy license plate number and the target fuzzy type after determining that the license plate number segmentation type in the license plate number retrieval library contains the target fuzzy type.
[0100] The retrieval module 240 is used to retrieve the vehicle information of the target vehicle based on the precise license plate number of the target vehicle.
[0101] The third determination module 250 is used to traverse the license plate number retrieval library according to the fuzzy license plate number if it is determined that the license plate number segmentation type in the license plate number retrieval library does not contain the target fuzzy type, and retrieve the precise license plate number corresponding to the target vehicle from the license plate retrieval library.
[0102] Compared with the prior art, the retrieval device 20 provided in the present application determines the license plate number segmentation type in the license plate number retrieval library in advance, so that after obtaining the retrieval request of the target vehicle, it can quickly retrieve the precise license plate number corresponding to the target vehicle in the license plate number retrieval library, thereby shortening the retrieval time and reducing the retrieval scope, thereby improving the retrieval efficiency.
[0103] Based on the same application concept, see Figure 4As shown, it is a structural diagram of an electronic device 400 provided in an embodiment of the present application, including: a processor 410, a memory 420 and a bus 430, the memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 is running, the processor 410 and the memory 420 communicate through the bus 430, and the machine-readable instructions are executed by the processor 410 when running to perform the steps of the vehicle information retrieval method described in any of the above embodiments.
[0104] Specifically, when the machine-readable instructions are executed by the processor 410, the following processing may be performed:
[0105] A search request for a target vehicle is obtained, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character.
[0106] The target fuzzy type of the fuzzy license plate number is determined according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number.
[0107] After determining that the license plate number segmentation type in the license plate number search library includes the target fuzzy type, the precise license plate number corresponding to the target vehicle is retrieved from the license plate search library according to the fuzzy license plate number and the target fuzzy type.
[0108] Based on the precise license plate number of the target vehicle, vehicle information of the target vehicle is retrieved.
[0109] In an embodiment of the present application, by segmenting the license plate numbers in the database in advance and determining the segmentation type, when a search request for a target vehicle is received, the precise license plate number corresponding to the target vehicle can be quickly retrieved from the database, thereby reducing the search time and the search scope, thereby improving the search efficiency.
[0110] Based on the same application concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle quantity information retrieval method provided in the above embodiment are executed.
[0111] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned vehicle information retrieval method can be executed. By performing multi-layer recursive segmentation on the sample license plate number information, a target license plate segmenter is established, and according to the retrieval request of the target vehicle, the precise license plate number information is determined in the target license plate segmenter, and then the vehicle information corresponding to the license plate number information is determined, thereby avoiding large-scale searches in the time dimension and reducing memory consumption during large-scale searches.
[0112] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method 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, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0113] 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.
[0114] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0115] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0116] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle information retrieval method, characterized in that: The retrieval method comprises: Obtaining a search request for a target vehicle, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character; Determining a target fuzzy type of the fuzzy license plate number according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number; After determining that the target fuzzy type is included in the license plate number segmentation type in the license plate number search library, the precise license plate number corresponding to the target vehicle is retrieved from the license plate number search library according to the fuzzy license plate number and the target fuzzy type; the license plate number search library stores preset fuzzy types, sample fuzzy license plate numbers and sample precise license plate numbers, wherein each sample precise license plate number is stored correspondingly to a plurality of sample fuzzy license plate numbers under each preset fuzzy type; Retrieving vehicle information of the target vehicle based on the precise license plate number of the target vehicle; Among them, the sample fuzzy license plate number is generated in the following way: For each sample accurate license plate number, the sample accurate license plate number is fuzzy processed according to each preset fuzzy type to generate a plurality of sample fuzzy license plate numbers corresponding to each preset fuzzy type; The step of performing blur processing on the sample accurate license plate number according to each preset blur type to generate a plurality of sample blur license plate numbers corresponding to each preset blur type includes: At least one sample character in the sample precise license plate number is replaced with a preset fuzzy character to obtain a sample character string; the sample character string includes the preset fuzzy character and the sample character; The obtained sample character string is determined as a sample fuzzy license plate number.
2. The search method according to claim 1, characterized in that: The retrieval method further comprises: If it is determined that the license plate number segmentation type in the license plate number search library does not include the target fuzzy type, the license plate number search library is traversed according to the fuzzy license plate number, and the precise license plate number corresponding to the target vehicle is retrieved from the license plate number search library.
3. A vehicle information retrieval device, characterized in that: The retrieval device comprises: An acquisition module, used for acquiring a search request of a target vehicle, wherein the search request includes a fuzzy license plate number of the target vehicle; the fuzzy license plate number includes at least one fuzzy character; A first determination module, used for determining a target fuzzy type of the fuzzy license plate number according to the number of digits and positions of the fuzzy characters in the fuzzy license plate number; The second determination module is used to retrieve the precise license plate number corresponding to the target vehicle from the license plate number retrieval library according to the fuzzy license plate number and the target fuzzy type after determining that the license plate number segmentation type in the license plate number retrieval library contains the target fuzzy type; the license plate number retrieval library stores preset fuzzy types, sample fuzzy license plate numbers and sample precise license plate numbers, wherein each sample precise license plate number is stored corresponding to a plurality of sample fuzzy license plate numbers under each preset fuzzy type; wherein the sample fuzzy license plate number is generated by the following method: For each sample accurate license plate number, the sample accurate license plate number is fuzzy processed according to each preset fuzzy type to generate a plurality of sample fuzzy license plate numbers corresponding to each preset fuzzy type; The step of performing blur processing on the sample accurate license plate number according to each preset blur type to generate a plurality of sample blur license plate numbers corresponding to each preset blur type includes: At least one sample character in the sample precise license plate number is replaced with a preset fuzzy character to obtain a sample character string; the sample character string includes the preset fuzzy character and the sample character; Determine the obtained sample character string as a sample fuzzy license plate number; A retrieval module is used to retrieve the vehicle information of the target vehicle based on the precise license plate number of the target vehicle.
4. The search device according to claim 3, characterized in that: The retrieval device also includes: The third determination module is used to traverse the license plate number retrieval library according to the fuzzy license plate number if it is determined that the license plate number segmentation type in the license plate number retrieval library does not contain the target fuzzy type, and retrieve the precise license plate number corresponding to the target vehicle from the license plate number retrieval library.
5. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the retrieval method as described in any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the retrieval method according to any one of claims 1 to 2 are executed.
Citation Information
Patent Citations
Quick search method and apparatus of license plate numbers
CN104679829A
License plate recognition apparatus, license plate recognition system, license plate recognition program, and license plate recognition method
JP2015176248A