Parking space relationship identification method, system, electronic device and storage medium

The neural network model automatically identifies the relationship between parking spaces, which solves the problem of identifying the relative position relationship between parking spaces in automatic parking that is time-consuming and labor-intensive and susceptible to manual influence, and achieves efficient and accurate parking space optimization.

CN114116719BActive Publication Date: 2024-10-01WUHAN ZHONGHAITING DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111401428.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-10-01
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

In the field of automatic parking, identifying the relative positional relationship between parking spaces in the existing technology is time-consuming and labor-intensive, and is susceptible to manual errors, resulting in the unavailability of high-precision garage maps.

Method used

Two neural network models are used (the first neural network model is used to distinguish the opposite/adjacent relationships and other relationships between parking spaces, and the second neural network model is used to distinguish the opposite and adjacent relationships) to extract features and label the parking space data. , trained through the training set and test set to realize automatic identification of parking space relationships.

Benefits of technology

It greatly reduces the manpower and material costs of manually identifying the parking space relationship after replacing the garage, saves detection time, improves identification efficiency, avoids errors caused by human factors, and ensures the accuracy of identification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114116719B_ABST
    Figure CN114116719B_ABST
Patent Text Reader

Abstract

The present invention provides a parking space relationship recognition method, system, electronic device and storage medium, the method comprising: extracting parking space data features, the parking space data features at least including the main direction of the parking space and the characteristic relationship between parking spaces; obtaining a marked parking space relationship table, marking the parking spaces according to the parking space relationship table, and dividing the parking spaces into training sets and test sets; establishing a first neural network model and a second neural network model, and respectively training and testing the two neural network models through the training set and the test set; the first neural network model is used to distinguish between opposite / adjacent relationships and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships; the first neural network model and the second neural network model are used to recognize parking space relationships for newly collected parking space data. Thus, automatic recognition of parking space relationships can be achieved without manual participation, reducing the consumption of manpower and material resources, and effectively improving recognition efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of automatic parking, and in particular relates to a parking space relationship recognition method, system, electronic equipment and storage medium. Background Art

[0002] In the field of automatic parking, it is usually necessary to draw a high-precision garage map. When processing the parking space collection data, due to the poor GPS signal of the garage, the collected data needs to be matched and fused. When matching and fusing parking spaces, it is necessary to determine the relative position relationship between each parking space and its surrounding parking spaces, and achieve parking space matching fusion optimization of collected data with the assistance of relative position relationship.

[0003] Since each garage has a different parking space number and different parking space planning and placement schemes, the only way to identify the relative position relationship between parking spaces is to manually identify and record it. Every time a garage is changed or the garage is replanned, it is necessary to manually re-identify and record it for the parking space optimization algorithm to use. This is very time-consuming and labor-intensive, and is easily affected by human errors, resulting in the unavailability of high-precision garage maps. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a parking space relationship recognition method, system, electronic device and storage medium, which are used to solve the problem that the relative position relationship recognition between existing parking spaces is time-consuming and labor-intensive and easily affected by human factors.

[0005] In a first aspect of an embodiment of the present invention, a method for identifying a parking space relationship is provided, comprising:

[0006] Extracting parking space data features, where the parking space data features at least include a main direction of the parking space and a characteristic relationship between parking spaces;

[0007] Obtain the identified parking space relationship table, perform feature marking on the parking spaces according to the parking space relationship table, and divide the parking spaces into a training set and a test set;

[0008] Establishing a first neural network model and a second neural network model, and respectively training and testing the two neural network models through a training set and a test set;

[0009] The first neural network model is used to distinguish between opposite / adjacent relationships between parking spaces and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships;

[0010] The parking space relationship is identified for the newly collected parking space data through the first neural network model and the second neural network model.

[0011] In a second aspect of an embodiment of the present invention, a parking space relationship recognition system is provided, comprising:

[0012] A feature extraction module, used to extract parking space data features, wherein the parking space data features at least include the main direction of the parking space and the characteristic relationship between the parking spaces;

[0013] A marking module is used to obtain a marked parking space relationship table, mark the parking spaces according to the parking space relationship table, and divide them into a training set and a test set;

[0014] A model training module is used to establish a first neural network model and a second neural network model, and to train and test the two neural network models respectively through a training set and a test set;

[0015] The first neural network model is used to distinguish between opposite / adjacent relationships between parking spaces and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships;

[0016] The parking space recognition module is used to recognize parking space relationships of newly collected parking space data through the first neural network model and the second neural network model.

[0017] In a third aspect of an embodiment of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect of the embodiment of the present invention when executing the computer program.

[0018] In a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method provided in the first aspect of the embodiment of the present invention are implemented.

[0019] In the embodiment of the present invention, based on the extraction of feature data between parking spaces, two neural networks are used to make judgments respectively to realize fully automatic detection and identification of parking space relationships, which can greatly reduce the manpower and material costs of manually identifying parking space relationships after replacing the garage, save detection and identification time, improve identification efficiency, and avoid errors caused by human factors, which may lead to failure of subsequent parking space optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A schematic flow chart of a parking space relationship identification method provided by one embodiment of the present invention;

[0022] Figure 2 A schematic diagram of parking space relationships provided by an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of the structure of a parking space relationship recognition system provided by an embodiment of the present invention;

[0024] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] It should be understood that the term "including" and other similar expressions in the specification or claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions, such as a process, method, system, or device including a series of steps or units is not limited to the listed steps or units. In addition, "first" and "second" are used to distinguish different objects, not to describe a specific order.

[0027] See also Figure 1 , a flow chart of a parking space relationship recognition method provided by an embodiment of the present invention includes:

[0028] S101, extracting parking space data features, where the parking space data features at least include a main direction of the parking space and a characteristic relationship between parking spaces;

[0029] The parking space data features include the directional features of the parking space itself and the positional relationship features between parking spaces. Parking spaces are generally represented by rectangular ground markings. In this implementation, each parking space data consists of five points, A, B, C, D, and P. A, B, C, and D are the vertices of a rectangle representing a parking space. A and B are the endpoints of the side where the entrance and exit of the parking space are located, C and D are the endpoints of the other side, and P is the midpoint of AB. APBCD is arranged counterclockwise. The parking space data set is:

[0030] Ω={(A1, B1, C1, D1, P1), (A2, B2, C2, D2, P2)…(A n , B n , C n , D n , P n )};

[0031] The main direction of the parking space is the angle between one side (long side) of the parking space and the positive direction of the x-axis, such as the main direction α of the parking space n , α n for The angle with the positive x-axis.

[0032] The characteristic relationship between parking spaces is characteristic data of the positional relationship between two parking spaces.

[0033] It is understandable that if Figure 2 As shown, taking parking space No. 1 as an example, parking space No. 1 is adjacent to parking space No. 2, facing parking space No. 3, and has other relationships with parking space No. 4. Therefore, corresponding feature data can be extracted according to the positional relationship between parking spaces.

[0034] Specifically, the distance between two parking spaces, the main direction angle difference, and the minimum distance between the perpendicular point of the midpoint of the parking space sideline on the corresponding sideline of the other parking space and the two end points of the corresponding sideline are calculated as the characteristic values ​​of the relationship between the parking spaces.

[0035] For example, take parking spaces 0 and 1 as examples. The distances between A0B1, B0A1, C0D1, and D0C1 are calculated as f1, f2, f3, and f4, the angle difference (0°-180°) between α0 and α1 is calculated as f5, and the minimum distance between the vertical point of P1 on A0B0 and the two points A0 and B0 is calculated as f6. Furthermore, six eigenvalues, f1, f2, f3, f4, f5, and f6, are calculated between all two parking spaces.

[0036] S102, obtaining a marked parking space relationship table, marking the parking spaces according to the parking space relationship table, and dividing the parking spaces into a training set and a test set;

[0037] The parking space relationship table is a data table of known parking space relationships, and the model can be trained by combining the feature data between parking spaces and the known parking space relationships.

[0038] Obtain the manually marked parking space relationship table, check the accuracy of all parking spaces facing and adjacent parking spaces, and mark the paired parking spaces and their features according to the parking space relationship table. Mark the facing and adjacent parking spaces, and mark all the rest as other relationship parking spaces. Randomly record part of the labeled parking space feature data as the training set TR and part as the test set TS according to a certain ratio.

[0039] Specifically, the parking spaces opposite and adjacent to the current parking space are marked, and the remaining parking spaces are marked as other related parking spaces; of the labeled parking space feature data, a portion of the data is randomly divided into a training set and the other portion is divided into a test set according to a proportion.

[0040] S103, establishing a first neural network model and a second neural network model, and respectively training and testing the two neural network models through a training set and a test set;

[0041] Generally, the training data of the first neural network model and the second neural network model are different. The training set of the second neural network model mainly includes the relationship data of opposite or adjacent parking spaces, while the training set of the first neural network model includes other relationship data in addition to the relationship data of opposite or adjacent parking spaces.

[0042] The first neural network model is used to distinguish between opposite / adjacent relationships between parking spaces and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships;

[0043] The first neural network model and the second neural network model are both binary classification models. The first neural network model structure is a three-layer neural network, and the second neural network model structure is a two-layer neural network.

[0044] Establish a first neural network, the number of layers of the neural network and the number of nodes in each layer can be adjusted, and the various parameters of the neural network can also be adjusted without fixed restrictions. In this embodiment, it can be implemented with a 3-layer 256*512*128 neural network; train the model, the activation rate of each layer of nodes in each training iteration is 75%, and the learning rate is 0.5; input the feature data of the training data for each iteration, and output the binary classification results of whether it belongs to the opposite / adjacent relationship or other relationships, use the training set for training, and use the test set to verify the model; set the conditions for stopping training, and after several iterations, when the various indicators of the test set meet the condition requirements, stop training, save the model, and obtain a binary classification neural network classification model, that is, the first neural network model.

[0045] A second neural network model is established, which is implemented in this embodiment with a 2-layer 256*512 neural network; the model is trained, and the activation rate of each layer of nodes in each training iteration is 75%, and the learning rate is 0.5; in each iteration, feature data labeled as the relationship between opposite parking spaces and adjacent parking spaces in the training data is input, and the output is a binary classification result of opposite relationship or adjacent relationship, and the training data is used for training, and the model is verified by the test data; after several iterations, when the test requirements are met, the training is stopped, the model is saved, and a binary classification neural network classification model, i.e., the second neural network model, is obtained.

[0046] S104, identifying parking space relationships on the newly collected parking space data using the first neural network model and the second neural network model.

[0047] The newly collected parking space data is extracted with feature data in the manner of S101, and the feature data is input into the first neural network model, and after judgment, is input into the second neural network model.

[0048] Specifically, the feature data determined as a facing adjacent relationship by the first neural network model is input into the second neural network model to detect and identify the parking space relationship as a facing relationship or an adjacent relationship.

[0049] Furthermore, the parking space combinations that have opposite and adjacent relationships are deduplicated; if there are repeated combinations of opposite or adjacent parking spaces, such as the combinations of opposite / adjacent parking spaces (m, n) and (n, m), the parking space numbers in the combination are selected, and the corresponding parking space combinations are retained in ascending order, and the other combination is deleted.

[0050] In this embodiment, the automatic recognition of parking space relationships can be achieved without human intervention, thereby reducing the consumption of manpower and material resources, improving recognition efficiency, and ensuring the accuracy of recognition results.

[0051] It should be understood that the serial numbers of the steps in the above embodiments do not imply a sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0052] Figure 3 A schematic diagram of a parking space relationship recognition system provided by an embodiment of the present invention, the system comprising:

[0053] A feature extraction module 310 is used to extract parking space data features, where the parking space data features at least include a main direction of the parking space and a feature relationship between parking spaces;

[0054] Among them, the distance between two parking spaces, the main direction angle difference, and the minimum distance between the vertical point of the midpoint of the parking space edge line on the corresponding edge line of the other parking space and the two end points of the corresponding edge line are calculated as the characteristic values ​​of the relationship between parking spaces.

[0055] The marking module 320 is used to obtain the marked parking space relationship table, mark the parking spaces according to the parking space relationship table, and divide them into a training set and a test set;

[0056] Specifically, the marking module 320 includes:

[0057] A marking unit is used to mark the parking spaces opposite and adjacent to the current parking space, and mark the remaining parking spaces as other related parking spaces;

[0058] The partitioning unit is used to randomly divide part of the labeled parking space feature data into a training set and the other part into a test set according to a proportion.

[0059] A model training module 330 is used to establish a first neural network model and a second neural network model, and to perform training and testing on the two neural network models respectively through a training set and a test set;

[0060] The first neural network model is used to distinguish between opposite / adjacent relationships between parking spaces and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships;

[0061] The first neural network model and the second neural network model are both binary classification models. The first neural network model structure is a three-layer neural network, and the second neural network model structure is a two-layer neural network.

[0062] The parking space recognition module 340 is used to recognize parking space relationships on newly collected parking space data through the first neural network model and the second neural network model.

[0063] Specifically, the feature data determined as a facing adjacent relationship by the first neural network model is input into the second neural network model to detect and identify the parking space relationship as a facing relationship or an adjacent relationship.

[0064] Furthermore, the parking space recognition module 340 also includes:

[0065] The deduplication unit is used to perform deduplication operations on parking space combinations that have opposite and adjacent relationships; if there are repeated combinations of opposite or adjacent parking spaces, the parking space numbers in the combination are selected, and the corresponding parking space combinations are retained in ascending order, and the other combination is deleted.

[0066] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0067] Figure 4 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device is used for garage parking space relationship recognition. Figure 4 As shown, the electronic device 4 of this embodiment includes: a memory 410, a processor 420 and a system bus 430, wherein the memory 410 includes an executable program 4101 stored thereon, and those skilled in the art can understand that Figure 4 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0068] Combine the following Figure 4 A detailed introduction to the various components of electronic equipment:

[0069] The memory 410 can be used to store software programs and modules, and the processor 420 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 410. The memory 410 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as cache data), etc. In addition, the memory 410 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0070] The memory 410 includes an executable program 4101 of a signboard extraction method, and the executable program 4101 can be divided into one or more modules / units, which are stored in the memory 410 and executed by the processor 420 to realize automatic recognition of parking space relationships, etc. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 4101 in the electronic device 4. For example, the computer program 4101 can be divided into a feature extraction module, a marking module, a model training module, and a parking space recognition module.

[0071] The processor 420 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 410, and calling data stored in the memory 410, so as to monitor the overall status of the electronic device. Optionally, the processor 420 may include one or more processing units; preferably, the processor 420 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 420.

[0072] The system bus 430 is used to connect the various functional components inside the computer, and can transmit data information, address information, and control information. Its types can be, for example, PCI bus, ISA bus, VESA bus, etc. The instructions of the processor 420 are transmitted to the memory 410 through the bus, and the memory 410 feeds back data to the processor 420. The system bus 430 is responsible for the data and instruction exchange between the processor 420 and the memory 410. Of course, the system bus 430 can also be connected to other devices, such as network interfaces, display devices, etc.

[0073] In the embodiment of the present invention, the executable program executed by the processor 420 included in the electronic device includes:

[0074] Extracting parking space data features, where the parking space data features at least include a main direction of the parking space and a characteristic relationship between parking spaces;

[0075] Obtain the identified parking space relationship table, perform feature marking on the parking spaces according to the parking space relationship table, and divide the parking spaces into a training set and a test set;

[0076] Establishing a first neural network model and a second neural network model, and respectively training and testing the two neural network models through a training set and a test set;

[0077] The first neural network model is used to distinguish between opposite / adjacent relationships between parking spaces and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships;

[0078] The parking space relationship is identified for the newly collected parking space data through the first neural network model and the second neural network model.

[0079] Those skilled in the art 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.

[0080] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0081] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A parking space relationship recognition method, characterized in that: include: Extracting parking space data features, where the parking space data features at least include a main direction of the parking space and a characteristic relationship between parking spaces; The method of extracting parking space data features includes: The distance between two parking spaces, the main direction angle difference, and the minimum distance between the vertical point of the midpoint of the parking space sideline on the corresponding sideline of the other parking space and the two end points of the corresponding sideline are calculated as the characteristic values ​​of the relationship between the parking spaces; Obtain the identified parking space relationship table, perform feature marking on the parking spaces according to the parking space relationship table, and divide the parking spaces into a training set and a test set; The step of marking the parking spaces according to the parking space relationship table and dividing the parking spaces into a training set and a test set includes: Mark the parking spaces opposite and adjacent to the current parking space, and mark the remaining parking spaces as other related parking spaces; The labeled parking space feature data is randomly divided into a training set and a test set according to the proportion; Establishing a first neural network model and a second neural network model, and respectively training and testing the two neural network models through a training set and a test set; The first neural network model is used to distinguish between opposite / adjacent relationships between parking spaces and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships; The parking space relationship is identified for the newly collected parking space data through the first neural network model and the second neural network model.

2. The method according to claim 1, characterized in that The first neural network model and the second neural network model are both binary classification models. The first neural network model structure is a three-layer neural network, and the second neural network model structure is a two-layer neural network.

3. The method according to claim 1, characterized in that The performing parking space relationship recognition on the newly collected parking space data by using the first neural network model and the second neural network model comprises: The feature data determined as an opposing adjacent relationship by the first neural network model is input into the second neural network model to detect and identify the parking space relationship as an opposing relationship or an adjacent relationship.

4. The method according to claim 1, characterized in that: The performing parking space relationship recognition on the newly collected parking space data by using the first neural network model and the second neural network model further comprises: De-duplicate parking space combinations that have opposing and adjacent relationships; If there are repeated combinations of opposite or adjacent parking spaces, select the parking space numbers in the combination, keep the corresponding parking space combinations in ascending order, and delete the other combination.

5. A system for identifying parking space relationships, characterized in that: include: A feature extraction module, used to extract parking space data features, wherein the parking space data features at least include the main direction of the parking space and the characteristic relationship between the parking spaces; The method of extracting parking space data features includes: The distance between two parking spaces, the main direction angle difference, and the minimum distance between the vertical point of the midpoint of the parking space sideline on the corresponding sideline of the other parking space and the two end points of the corresponding sideline are calculated as the characteristic values ​​of the relationship between the parking spaces; A marking module is used to obtain a marked parking space relationship table, mark the parking spaces according to the parking space relationship table, and divide them into a training set and a test set; Wherein, the marking module includes: A marking unit is used to mark the parking spaces opposite and adjacent to the current parking space, and mark the remaining parking spaces as other related parking spaces; A partitioning unit is used to randomly divide a portion of the labeled parking space feature data into a training set and another portion into a test set according to a proportion; A model training module is used to establish a first neural network model and a second neural network model, and to train and test the two neural network models respectively through a training set and a test set; The first neural network model is used to distinguish between opposite / adjacent relationships between parking spaces and other relationships between parking spaces, and the second neural network model is used to distinguish between opposite relationships and adjacent relationships; The parking space recognition module is used to recognize parking space relationships of newly collected parking space data through the first neural network model and the second neural network model.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of a parking space relationship identification method as described in any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed, the steps of a parking space relationship identification method as described in any one of claims 1 to 4 are implemented.