Parking space number identification method and device, equipment and storage medium
Through on-board camera collection and image fusion and splicing technology, combined with historical recognition template matching, the parking space number is quickly and accurately recognized, solving the problem of difficult parking space number identification in large parking lots and improving user experience.
Patent Information
- Application Number
- CN202410614500.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-27
AI Technical Summary
In large parking lots, car owners tend to forget the location of the parking space, which leads to them spending a lot of time and energy looking for a parking space. It is difficult for existing technology to quickly and accurately identify the parking space number.
Through the vehicle-mounted camera to collect multiple images at low speeds, image fusion splicing and historical recognition template matching technology are used to generate a parking space number map to achieve initial recognition and accurate matching of parking space numbers.
It improves the accuracy and efficiency of parking space number recognition, reduces the time and energy consumption of users looking for parking spaces, and solves the problem of difficult parking space positioning in parking lots.
Smart Images

Figure CN118552944A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to image recognition technology, and are related to but not limited to a parking space number recognition method and apparatus, equipment, and storage medium. Background Art
[0002] As cities continue to expand, more and more large and extra-large parking lots are appearing. However, these parking lots are often complex, and drivers may forget where they parked when leaving, resulting in a significant amount of time spent searching for their space. To address this issue, accurate parking space identification and information acquisition are required.
[0003] Therefore, how to quickly identify parking space numbers and improve the recognition accuracy of parking space numbers is a problem that needs to be solved urgently. Summary of the Invention
[0004] In view of this, the embodiments of the present application provide a parking space number recognition method and apparatus, equipment, and storage medium that can quickly recognize parking space numbers and improve the recognition accuracy of parking space numbers. The embodiments of the present application provide a parking space number recognition method and apparatus, equipment, and storage medium that are implemented as follows:
[0005] The present invention provides a method for identifying a parking space number, including:
[0006] When the speed of the vehicle is lower than a preset speed threshold, acquiring a plurality of images through the vehicle-mounted camera, the plurality of images including an image of the target parking space acquired at the current geographic location;
[0007] Obtaining an initial recognition result of the parking space number of the target parking space based on the multiple images;
[0008] The initial recognition result is matched with a parking space number template corresponding to the current geographic location to obtain a target recognition result, wherein the parking space number template is generated based on parking space numbers historically recognized by the vehicle at the current geographic location.
[0009] In some embodiments, obtaining an initial recognition result of the parking space number of the target parking space based on the multiple images includes:
[0010] Performing image fusion and stitching on the multiple images to obtain a fused and stitched panoramic view BEV image;
[0011] performing image recognition on the panoramic view BEV image to obtain a plurality of parking space numbers including a plurality of preset parking spaces, each of which includes at least one parking space number, and the plurality of preset parking spaces including the target parking space;
[0012] Acquire a plurality of vehicle driving data and a plurality of vehicle geographic locations collected when the speed of the vehicle is lower than a preset speed threshold, and obtain a parking space number map based on the plurality of vehicle driving data, the plurality of vehicle geographic locations, and the plurality of parking space numbers;
[0013] An initial recognition result of the target parking space is obtained from the parking space number map.
[0014] In some embodiments, the plurality of vehicle driving data are collected based on a first data collection period, the plurality of vehicle geographic locations are collected based on a second data collection period, the first data collection period is different from the second data collection period, the parking space number map includes the plurality of parking space numbers and coordinates corresponding to each parking space number, and obtaining the parking space number map based on the plurality of vehicle driving data, the plurality of vehicle geographic locations, and the plurality of parking space numbers includes:
[0015] Obtaining a timestamp of capturing each of the plurality of images, a first acquisition time of each of the plurality of vehicle driving data, and a second acquisition time of each of the plurality of vehicle geographic locations;
[0016] According to the timestamp of each image, the first acquisition time, and the second acquisition time, and with the timestamp of each image as a reference, performing data alignment on the multiple vehicle driving data and the multiple vehicle geographic locations to obtain multiple aligned vehicle driving data and multiple aligned vehicle geographic locations, wherein the multiple aligned vehicle driving data include the vehicle driving data corresponding to the timestamp of each image, and the multiple aligned vehicle geographic locations include the vehicle geographic locations corresponding to the timestamp of each image;
[0017] Obtaining coordinates corresponding to each parking space number according to the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations;
[0018] The parking space number map is obtained according to the multiple parking space numbers and the coordinates corresponding to each parking space number.
[0019] In some embodiments, each vehicle driving data is data represented by a vehicle coordinate system, and each vehicle geographic location is data represented by a world coordinate system. The coordinates corresponding to each parking space number are obtained based on the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations, including:
[0020] Obtain the image coordinates corresponding to each parking space number;
[0021] According to the correspondence between the preset world coordinate system, the image coordinate system and the vehicle coordinate system, the aligned multiple vehicle driving data, the aligned multiple vehicle geographic locations and the image coordinates corresponding to each parking space number, the image coordinates corresponding to each parking space number are converted into world coordinates to obtain the coordinates of each parking space number.
[0022] In some embodiments, obtaining the initial recognition result of the target parking space from the parking space number map includes:
[0023] Clustering the multiple parking space numbers in the parking space number map according to the world coordinates corresponding to the multiple parking space numbers to obtain multiple initial clustering results;
[0024] Aligning the initial clustering results according to an edit distance of the parking space number character strings of the multiple initial clustering results, where the edit distance of the character strings includes the number of bits of modified characters required to transform two different character strings into the same character string by modifying the characters;
[0025] Acquire multiple target clustering results according to the parking space number included in each aligned initial clustering result and the probability that the parking space number in each aligned initial clustering result appears in the target parking space;
[0026] An initial recognition result of the parking space number of the target parking space is obtained according to the current geographical location and the multiple target clustering results.
[0027] In some embodiments, a plurality of different geographic locations and parking space number templates corresponding to the plurality of different geographic locations form a parking space number knowledge base, and matching the initial recognition result with the parking space number template corresponding to the current geographic location to obtain a target recognition result includes:
[0028] Matching the current geographic location of the vehicle with the geographic locations in the parking space number knowledge base, and if the match is successful, obtaining the parking space number template corresponding to the current geographic location in the parking space number knowledge base;
[0029] Matching the initial recognition result with the parking space number template, and if the initial recognition result successfully matches the parking space number template, determining the initial recognition result as the target recognition result;
[0030] Alternatively, when the initial recognition result fails to match the parking space number template, the parking space numbers of other parking spaces whose distance from the current geographical location is less than or equal to a threshold distance are obtained as the target recognition result.
[0031] In some embodiments, the matching of the initial recognition result with the parking space number template, and if the initial recognition result successfully matches the parking space number template, obtaining the parking space number as the target recognition result, further includes:
[0032] The current geographic location of the vehicle and the target recognition result corresponding to the current geographic location are uploaded to the parking space number template.
[0033] The present invention provides a parking space number recognition device, comprising:
[0034] an acquisition module, configured to acquire a plurality of images through a vehicle-mounted camera when a speed of the vehicle is lower than a preset speed threshold, the plurality of images including an image of a target parking space acquired at a current geographic location;
[0035] The acquisition module is further configured to obtain an initial recognition result of the parking space number of the target parking space based on the multiple images;
[0036] A matching module is used to match the initial recognition result with a parking space number template corresponding to the current geographical location to obtain a target recognition result, wherein the parking space number template is generated based on the parking space number historically recognized by the vehicle at the current geographical location.
[0037] The computer device provided in the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0038] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0039] The embodiments of the present application provide a parking space number recognition method, apparatus, computer device, and computer-readable storage medium. When the vehicle's speed is below a preset speed threshold, the vehicle's onboard camera captures multiple images, including an image of the target parking space captured at the current geographic location. Based on the multiple images, an initial recognition result of the target parking space's parking space number is obtained. The initial recognition result is then matched with a parking space number template corresponding to the current geographic location to obtain a target recognition result. This effectively improves the accuracy of parking space number recognition. By intelligently utilizing historical recognition information, the user experience can be enhanced, reducing the time and energy spent by users searching for parking spaces, thereby resolving the technical problems raised in the background art. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application.
[0041] Figure 1 This is an application scenario diagram of a parking space number recognition method disclosed in an embodiment of the present application;
[0042] Figure 2 This is a schematic diagram of the implementation process of a parking space number recognition method disclosed in an embodiment of the present application;
[0043] Figure 3 This is a schematic diagram of the implementation flow of another parking space number recognition method disclosed in an embodiment of the present application;
[0044] Figure 4 This is a schematic diagram of coordinate conversion of a parking space number recognition method disclosed in an embodiment of the present application;
[0045] Figure 5A This is a schematic diagram of parking space number fusion in a parking space number recognition method disclosed in an embodiment of the present application;
[0046] Figure 5B This is a schematic diagram of parking space number fusion of another parking space number recognition method disclosed in an embodiment of the present application;
[0047] Figure 6 This is a schematic diagram of the implementation flow of another parking space number recognition method disclosed in an embodiment of the present application;
[0048] Figure 7 This is a structural diagram of a parking space recognition method disclosed in an embodiment of the present application;
[0049] Figure 8 This is a structural diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0050] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0052] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0053] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0054] In view of this, an embodiment of the present application provides a parking space number recognition method, which is applied to an intelligent electronic device. Figure 1 FIG. 1 is an application scenario diagram of a parking space number recognition method in an embodiment. Figure 1 As shown, the user can drive the vehicle 10, and the vehicle 10 obtains multiple parking space images of the parking spaces on the driving path through the vehicle-mounted camera, calculates the obtained multiple images through the vehicle-mounted computer, obtains the initial recognition result of the parking space number, and matches the initial recognition result with the parking space number template corresponding to the current geographic location to obtain the target recognition result. The function implemented by this method can be implemented by calling the program code through the processor in the vehicle 10. Of course, the program code can be stored in the computer storage medium. It can be seen that the vehicle 10 includes at least a processor and a storage medium.
[0055] Figure 2 This is a schematic diagram of the implementation process of a parking space number recognition method provided in the embodiment of this application. Figure 1 In the application scenario of a parking space number recognition method shown in FIG. Figure 2 As shown, the method may include the following steps 201 to 203:
[0056] Step 201 : When the speed of the vehicle is lower than a preset speed threshold, a plurality of images are acquired through a vehicle-mounted camera, wherein the plurality of images include an image of a target parking space acquired at a current geographical location.
[0057] In an embodiment of the present application, when the vehicle is driving, the on-board computer obtains the real-time speed of the vehicle and compares the real-time speed with a preset speed threshold. Optionally, this preset speed threshold can be set according to the specific scenario and the driving status of the vehicle. For example, the preset speed threshold can be set to 5 km / h.
[0058] The vehicle's onboard camera captures images of the vehicle's surroundings as it moves. Optionally, the camera's acquisition frequency and angle can be set through the vehicle's software interface, allowing the user to adjust as needed. Optionally, the acquisition frequency and angle can be dynamically adjusted based on factors such as ambient light and vehicle speed.
[0059] Use a real-time positioning system (such as GPS) to obtain current geographic location information. The vehicle's onboard GPS receiver module acquires GPS signals, and the vehicle's onboard computer calculates the current location. Optionally, triangulation can be used to determine the location. Optionally, other sensors, such as an IMU (Inertial Measurement Unit), can be combined to improve positioning accuracy and reliability, especially in indoor environments where GPS signals are weak or unavailable.
[0060] Step 202: Obtain an initial recognition result of the parking space number of the target parking space based on the multiple images.
[0061] In an embodiment of the present application, the multiple images captured by the vehicle-mounted camera are first preprocessed, including denoising, grayscale conversion, and binarization, to improve the accuracy of subsequent character recognition. Specifically, a filter (such as a Gaussian filter or a median filter) is used to remove image noise and improve image quality. The color image is converted into a grayscale image to simplify the data and highlight the brightness information in the image. The grayscale image is converted into a binary image, and a threshold method can be used to distinguish the foreground (character) from the background.
[0062] Using OCR (Optical Character Recognition) technology, such as a deep learning-based Convolutional Neural Network (CNN) model, character information is recognized for parking space numbers in an image. For multiple characters (such as parking space numbers) in an image, segmentation and recognition can be used separately. For example, edge detection algorithms (such as the Canny edge detector) can be used to identify character outlines in the image. All possible character outlines are found in the image and filtered based on size, shape, or position. Using these outlines, each character is segmented into separate regions in preparation for recognition. A deep learning CNN model, trained on a large amount of labeled character image data, is used. The CNN model automatically extracts features from the segmented character images. The trained CNN model is used to classify each segmented character image and predict the character it represents. Recognition results are verified, for example, to check whether the parking space number format complies with the parking space number naming convention. Misrecognized characters can be corrected using strategies such as using contextual information or re-recognition. The segmentation and recognition results for individual characters are combined to form a complete parking space number.
[0063] Step 203 , matching the initial recognition result with a parking space number template corresponding to the current geographic location to obtain a target recognition result, wherein the parking space number template is generated based on parking space numbers historically recognized by the vehicle at the current geographic location.
[0064] In an embodiment of the present application, the parking space number template can be a data structure that records information about historically recognized parking space numbers corresponding to each geographic location, including the format and character positions of the parking space numbers. For a new geographic location, if no historical records exist, other methods can be used to generate an initial template, such as manual entry or automatic recognition. Using a template matching algorithm, the initial recognition result is compared with the matched parking space number template, and further corrections and revisions can be made based on the degree of match. If the initial recognition result successfully matches the parking space number template, the current initial recognition result is determined to be the target recognition result.
[0065] The embodiment of the present application achieves efficient and accurate parking space number recognition by combining real-time image acquisition, historical data template matching, and automated processing, reducing the time and energy consumed by users in finding parking spaces. It effectively solves the problem of users being unable to locate their vehicles in parking scenarios.
[0066] In the above Figure 2 In the case shown, the embodiment of the present application also provides a schematic diagram of the implementation flow of the parking space number recognition method. Figure 3 As shown, the method may include the following steps 301 to 306:
[0067] Step 301 : When the speed of the vehicle is lower than a preset speed threshold, a plurality of images are acquired through a vehicle-mounted camera, wherein the plurality of images include an image of a target parking space acquired at a current geographical location.
[0068] The implementation process of step 301 is consistent with that of the above-mentioned step 201, and will not be repeated here in this application.
[0069] Step 302 : performing image fusion and stitching on the multiple images to obtain a fused and stitched panoramic view BEV image.
[0070] In an embodiment of the present application, multiple images collected are processed by image fusion and stitching technology so that they are visually connected continuously and seamlessly to form a panoramic view BEV (Bird's Eye View) image. Specifically, significant feature points are detected in each image, and these points are easily matched in different images. Common feature point detection algorithms include SIFT (Scale-Invariant Feature Transform), SURF (Speeded Up Robust Features), ORB (Oriented FAST and RotatedBRIEF), etc. For paired images, a feature point matching algorithm is used to find corresponding feature points. This is done by comparing the descriptors of the feature points. The spatial relationship between the images is determined using the matched feature point pairs. Through one or more homography matrices, the matrix can map points in one image to another image. For each image, a perspective transformation is used to map it from one perspective to another, and the images from multiple perspectives are transformed into a common reference coordinate system. The transformed images are fused together. Image processing techniques, such as gradient domain fusion and Laplacian pyramid fusion, are used to smooth the seams between different images. Fusion techniques, such as multi-exposure merging, are applied to overlapping image regions to achieve seamless stitching. The stitched panoramic image is optimized, such as removing ghosting and adjusting brightness and contrast, to improve image quality. Appropriate geometric transformations are used to convert the stitched image to a bird's-eye view, converting the image from perspective projection to orthographic projection.
[0071] Step 303 : performing image recognition on the panoramic view BEV image to obtain a plurality of parking space numbers including a plurality of preset parking spaces, each of which includes at least one parking space number, and the plurality of preset parking spaces includes the target parking space.
[0072] In an embodiment of the present application, the BEV image is first subjected to denoising, brightness and contrast adjustment, and other operations to improve image quality. Image processing techniques (such as edge detection and morphological operations) are then used to locate the boundaries of the parking spaces. Within the located parking area, image segmentation techniques (such as threshold processing and connected domain analysis) are used to identify the parking space number characters. The segmented characters are enhanced, such as binarization and morphological closing operations, to improve the recognizability of the characters. The segmented and enhanced parking space number image is input into the trained CNN model for character recognition.
[0073] Step 304 , obtaining a plurality of vehicle driving data and a plurality of vehicle geographic locations collected when the vehicle speed is lower than a preset speed threshold, and obtaining a parking space number map based on the plurality of vehicle driving data, the plurality of vehicle geographic locations and the plurality of parking space numbers.
[0074] In an embodiment of the present application, vehicle-mounted sensors (such as speed sensors, accelerometers, and gyroscopes) are used to collect driving data such as vehicle speed, acceleration, and steering angle. A GPS device is used to obtain the vehicle's geographic location information, i.e., the current latitude and longitude coordinates. The identified parking space number information is fused with the vehicle's driving data and geographic location information. The fused data is used to generate a parking space number map. The parking space number map can be a digital map that displays the location of each parking space and the corresponding parking space number. Optionally, the parking space number map is updated in real time as the vehicle moves and new image recognition results are obtained.
[0075] As an example, the multiple vehicle driving data are collected based on a first data collection cycle, and the multiple vehicle geographic locations are collected based on a second data collection cycle, the first data collection cycle is different from the second data collection cycle, the parking space number map includes the multiple parking space numbers and the coordinates corresponding to each parking space number, and the parking space number map is obtained based on the multiple vehicle driving data, the multiple vehicle geographic locations and the multiple parking space numbers, including: obtaining the timestamp of each image in the multiple images, the first collection time of each vehicle driving data in the multiple vehicle driving data and the second collection time of each vehicle geographic location in the multiple vehicle geographic locations.
[0076] Specifically, a vehicle camera is used to continuously capture multiple images, with each image timestamped. Driving data, including speed, acceleration, and steering angle, is collected from the vehicle's sensors (e.g., speed sensors and accelerometers), and the time at which this data was collected (the first collection time) is recorded. GPS or other positioning systems are used to obtain the vehicle's geographic location data, and the time at which this data was collected (the second collection time) is recorded.
[0077] Furthermore, according to the timestamp of each image, the first acquisition time and the second acquisition time, the multiple vehicle driving data and the multiple vehicle geographic locations are aligned with the timestamp of each image as a reference to obtain the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations. The aligned multiple vehicle driving data include the vehicle driving data corresponding to the timestamp of each image, and the aligned multiple vehicle geographic locations include the vehicle geographic locations corresponding to the timestamp of each image.
[0078] Specifically, the vehicle travel data and geographic location data are time-aligned using each image's timestamp as a reference point. For each image, the travel data and geographic location data that are closest to its timestamp are found. If the travel data or geographic location data timestamp does not exactly match the image timestamp, interpolation methods (such as linear interpolation) or extrapolation methods can be used to estimate the data corresponding to the image timestamp. The aligned vehicle travel data and geographic location data are then associated with the corresponding image to form a set of synchronized data.
[0079] For example, the timestamps that need to be synchronized are determined, and the timestamps of the four fisheye images (denoted as ts) are used as the synchronization reference;
[0080] The bilinear interpolation method is used to determine the GPS position and DR (Dead Reckoning) value at the target timestamp. GPS is two-dimensional information, and DR is three-dimensional information. Approximate decoupling is performed in the dimensions, and the results of each dimension are interpolated separately to facilitate parallel computing. The details are as follows:
[0081] Take GPS two historical location information, record it as (x_1 GPS ,y_1 GPS ,t_1 GPS ) and (x_2 GPS ,y_2 GPS ,t_2 GPS ), taking the result of x dimension as an example, calculate the result of x at the current timestamp, recorded as x_ts GPS ,The calculation process obtained from the definition of bilinear interpolation is as follows:
[0082]
[0083] Without considering the physical meaning, the above formula can be simplified into the following form:
[0084]
[0085] m represents a vector with no physical meaning and its value changes with time t. Let m be the following vector:
[0086]
[0087] Where x and y are GPS historical information, and h, v, and ω are track history information, representing the horizontal movement distance, vertical movement distance, and heading value of the vehicle at a certain moment, respectively. Substituting them into the general calculation formula can quickly calculate the interpolation value at the same timestamp ts.
[0088] Furthermore, the coordinates corresponding to each parking space number are obtained according to the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations.
[0089] Specifically, use image processing techniques such as edge detection, morphological operations, or deep learning models to detect the position of the vehicle from the image. For each vehicle detected in the image, use a target detection algorithm to determine its position in the image. According to the timestamp of each image, find the matching vehicle driving data and geographic location data. Convert the vehicle's geographic location data (latitude and longitude) into the vehicle's coordinate system in the image. Combine the vehicle's position in the image and the corresponding geographic location data to determine the location coordinates of the parking space. Identify the parking space number on the parking space, such as using OCR technology. Associate the identified parking space number with the location coordinates of the parking space, and assign a geographic coordinate to each parking space number.
[0090] As an example, each vehicle driving data is data represented by a vehicle coordinate system, and each vehicle geographic location is data represented by a world coordinate system. The coordinates corresponding to each parking space number are obtained based on the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations, including: obtaining the image coordinates corresponding to each parking space number.
[0091] Specifically, for each recognized parking space number character, obtain its pixel coordinates in the image. Specifically, the upper left corner of the image can be used as the origin (0,0), the right is the positive direction of the x-axis, and the downward is the positive direction of the y-axis. Record the pixel coordinates of the four corner points of each character or parking space number. These coordinates define the bounding box of the character in the image. Extract features from the parking space number characters, use a machine learning model (such as a convolutional neural network) to recognize the extracted features, and obtain a text representation of the parking space number. Associate the recognized parking space number text with the corresponding image coordinates, and assign an image coordinate to each parking space number.
[0092] Furthermore, based on the correspondence between the preset world coordinate system, the image coordinate system and the vehicle coordinate system, the aligned multiple vehicle driving data, the aligned multiple vehicle geographic locations and the image coordinates corresponding to each parking space number, the image coordinates corresponding to each parking space number are converted into world coordinates to obtain the coordinates of each parking space number.
[0093] Specifically, a camera calibration technique (such as the checkerboard calibration method) is used to obtain the camera's intrinsic parameter matrix and distortion parameters. The image coordinates of the parking space number in the image coordinate system are converted to coordinates in the camera coordinate system using the intrinsic parameter matrix and distortion parameters. Optionally, the distortion is removed and the inverse transformation of the intrinsic parameter matrix is applied. The vehicle's geographic location information is obtained in real time using sensors such as the GPS on the vehicle, expressed in the form of longitude and latitude. The longitude and latitude information obtained by the GPS is converted into coordinates in a world coordinate system, such as the UTM (Universal Transverse Mercator) coordinate system. Combining the coordinates in the vehicle coordinate system and the vehicle's world coordinates, triangulation or other geometric derivation methods are used to determine the specific position of the parking space number in the world coordinate system.
[0094] The relationship between the world coordinate system, the vehicle coordinate system, and the image coordinate system is established through the camera calibration results. The motion changes of the vehicle can be calculated by DR, and the positions of the three coordinate systems can be continuously updated, such as Figure 4 As shown, Figure 4 A coordinate conversion diagram of a parking space number recognition method provided in an embodiment of the present application is provided. By converting the position coordinates of the initial parking space number in the image coordinate system to the vehicle coordinate system, and then converting it to the world coordinate system, all parking space number information can have an independent coordinate in the world coordinate system to form a parking space number map.
[0095] By representing vehicle travel data in a vehicle coordinate system and the vehicle's geographic location in a world coordinate system, and processing the aligned data, the present embodiment improves the accuracy of the coordinates corresponding to parking space numbers and reduces recognition errors. By using the preset correspondence between the world coordinate system, the image coordinate system, and the vehicle coordinate system, the conversion of parking space number image coordinates to world coordinates is achieved, making the recognition results more consistent with the actual location of the parking space. By aligning multiple data sources, the data consistency and integrity of the parking space map are guaranteed, improving the reliability and accuracy of the overall recognition.
[0096] As an example, obtaining the initial recognition result of the target parking space from the parking space number map includes: clustering the multiple parking space numbers in the parking space number map according to the world coordinates corresponding to the multiple parking space numbers to obtain multiple initial clustering results.
[0097] Specifically, use the world coordinates of each parking space number as input data, ensuring that the data format is correct and meets the algorithm requirements. Select an appropriate clustering algorithm, such as K-means clustering. K-means clustering allows you to select the number of clusters based on actual conditions. Randomly select K points as initial cluster centers, where K is the number of clusters. Assign each data point to the cluster with the nearest cluster center. Update each cluster center to the average value of all points in that cluster. Classify each parking space number according to the cluster to which it belongs. Analyze the clustering results to check whether they meet the requirements, and obtain multiple initial clustering results.
[0098] like Figure 5A and Figure 5B As shown, Figure 5A A schematic diagram of parking space number fusion in a parking space number recognition method provided in an embodiment of the present application is provided. Figure 5B The present application provides an embodiment of another parking space number recognition method provided by the parking space number fusion schematic diagram, according to the world coordinates corresponding to the multiple parking space numbers, multiple parking space numbers on the parking space number map are fused, first of all, multiple recognition results of the same position are fused according to the world coordinates of the parking space number. Specifically, the abnormal recognition value is deleted through position prediction, and then the recognition results of multiple parking space numbers are fused. According to the position information of the own vehicle, the target parking space number near the own vehicle is screened out, and the target parking space number is compared with the template. The target parking space number is comprehensively matched with the completeness, and the target parking space number is ranked by confidence. The on-board camera continuously acquires the scene information around the vehicle body during the driving process of the own vehicle. The parking space number at the same position will be captured by multiple frames of images in a row, so that multiple detection results will appear. These results are clustered and fused to obtain the final parking space number result.
[0099] Regarding clustering, different parking space numbers in actual scenarios are spatially independent of each other. Therefore, the parking space number detection results that carry location information can be quickly distinguished using distance clustering. The specific strategy is as follows: The parking space number recognition result is recorded as: PR i =(PND,confidence,Obj X ,Obj Y ) i .
[0100] The input of the clustering module is a series of parking space number calculation results, recorded as:
[0101]
[0102] When i=1, calculate the distance between the parking spaces i=2 to i=N and the parking space i=1, and compare it with the designed clustering distance threshold (D_cluster), and retain the final clustering result, which is recorded as:
[0103]
[0104] After completing a clustering, the results greater than D_cluster constitute the new clustering module input. The above clustering process is continuously iterated until all parking space number calculation results are clustered, and the results with less than 3 cluster targets are discarded as outliers.
[0105] Furthermore, the initial clustering results are aligned according to the edit distance of the parking space number character strings of the multiple initial clustering results, where the edit distance of the character strings includes the number of bits of modified characters required to transform two different character strings into the same character string by modifying the characters.
[0106] Specifically, obtain the initial clustering results from a clustering algorithm (such as K-means clustering), and each cluster contains a set of parking space numbers. Ensure that each parking space number can be represented in a string format to facilitate the calculation of the edit distance. Select a suitable string edit distance algorithm, such as Levenshtein distance, which calculates the minimum number of operations required for two strings to become each other by inserting, deleting, and replacing characters. For each cluster, use the selected algorithm to calculate the edit distance between all parking space numbers in the cluster. Construct a matrix to store all calculated edit distances, and the rows and columns of the matrix represent the parking space numbers in the cluster respectively. Develop a strategy for selecting which parking space number pairs to align. Typically, the pairs with the smallest edit distance are selected for alignment. Based on the edit distance results, align the parking space numbers so that they are more similar in characters and reduce errors.
[0107] For edit distance alignment, theoretically, there will only be one correct parking space number for a location. However, in the actual recognition process, the vehicle body camera may recognize the same location multiple times. In this way, the clustering module will output a group of detection results at the same location. These results are affected by reflections at different angles, image blur, and false detections of the recognition model, and therefore require further error correction.
[0108] This application defines the edit distance between string a and string b as follows:
[0109]
[0110] Among them 1(a i ≠b j ) means a i =b j 0 when , 1 otherwise, med a,b (i, j) represents the distance from the first i bytes of a to the first j bytes of b.
[0111] Among them, relative to the change from a to b string: med a,b(i-1,j)+1, means a deletes one byte to match b; med a,b (i,j-1)+1 means a adds a byte to match b; med a,b (i-1,j-1)+1(a i ≠b j ) represents a match or no match, depending on whether the individual symbols are the same.
[0112] The edit distance algorithm can be used to determine the minimum number of additions, deletions, and replacements between strings, represented by @. Assume that the parking space identification data calculated by the existing fusion module is: B1-F-168, BF-16, 1-F-168, B1-F-, A1-F-16, B1-F-18. The results of the edit distance and fusion alignment of the above strings are as follows:
[0113] B1-F-168
[0114] B@-F-16@
[0115] @1-F-168
[0116] A1-F-@@@
[0117] @1-F-16@
[0118] B1-F-1@8.
[0119] Furthermore, a plurality of target clustering results are obtained according to the parking space number included in each aligned initial clustering result and the probability that the parking space number in each aligned initial clustering result appears in the target parking space.
[0120] Specifically, each initial clustering result after alignment is analyzed. The clustering result contains a set of parking space numbers. For each parking space number in each clustering result, a probability model is used to calculate its probability of appearing in the target parking space. The clustering results are weighted using the probability of each parking space number as a weight to reflect the likelihood of each parking space number being the target parking space. Based on the weighted clustering results, the cluster with the highest probability is selected as the target clustering result.
[0121] Regarding fusion decision-making, since the detection results may contain missed detections and false detections, and the real parking space number target location is unique, it is necessary to suppress the output of false targets through fusion means. This application designs a voting mechanism to ensure the accuracy of the output results by weighing the target confidence and occurrence frequency. The above clustering results statistics can obtain the frequency F and confidence of different targets at the same location. The frequency is expressed in the form of probability: F = f n / f N , where fN Indicates the total number of detections at a specific location, f n Represents the number of times a specific target appears at a specific location. The comprehensive judgment index C can be obtained by weighted summation. The complete mathematical model is as follows:
[0122] C=w1*F+w2*Confidence (7);
[0123] w1+w2=1 (8);
[0124] Considering the key influence of confidence in the detection model, according to the empirical value, w2 is set to 0.7 and w1 = 0.3, which can also be dynamically adjusted according to the actual situation.
[0125] Furthermore, an initial recognition result of the parking space number of the target parking space is obtained based on the current geographical location and the multiple target clustering results.
[0126] Specifically, from the multiple target clusters obtained by the clustering algorithm, the parking space numbers contained in each cluster are screened. For each parking space number, the probability of it being the target parking space is calculated. The parking space number with the highest probability from each cluster is selected as the initial recognition result.
[0127] The embodiment of the present application can more accurately identify the vehicle number through clustering and string edit distance alignment. In the case where the parking space number is unclear or partially blocked, the most likely parking space number can be further filtered out through probability evaluation.
[0128] Furthermore, the parking space number map is obtained based on the multiple parking space numbers and the coordinates corresponding to each parking space number.
[0129] Specifically, the image recognition process collects each parking space number. The precise geographic coordinates of each parking space number are determined using the vehicle's GPS data or image processing techniques (such as stereo vision and visual odometry). Each parking space number is associated with its corresponding coordinates, and a data structure (such as a database table, JSON object, or XML file) is created to store this information. This data structure is known as the parking space map.
[0130] The embodiment of the present application ensures that parking space number recognition matches the vehicle's actual driving status and geographic location through precise data alignment, thereby improving the accuracy of parking space number recognition. The aligned data is used to generate a parking space number map, providing the precise location coordinates of each parking space number.
[0131] Step 305: Obtain an initial recognition result of the target parking space from the parking space number map.
[0132] In the embodiment of the present application, image recognition technology is used to retrieve parking space information that matches the current vehicle position from the parking space map to obtain an initial recognition result of the target parking space. Specifically, this may be recognition results corresponding to multiple parking space information within a certain distance range from the current vehicle position.
[0133] Step 306 , matching the initial recognition result with a parking space number template corresponding to the current geographic location to obtain a target recognition result, wherein the parking space number template is generated based on parking space numbers historically recognized by the vehicle at the current geographic location.
[0134] The implementation process of step 306 is consistent with that of the above-mentioned step 203, and will not be repeated here in this application.
[0135] In this embodiment of the present application, the panoramic BEV image generated through image fusion and stitching technology provides a wider and more continuous field of view, thereby improving the accuracy of parking space identification. By combining vehicle driving data and geographic location information with parking space identification results, a parking space map can be generated. By obtaining parking space identification results from the parking space map, users can quickly find parking spaces, reducing the time and inconvenience of searching for parking spaces.
[0136] In the above Figure 2 In the case shown, the embodiment of the present application also provides a schematic diagram of the implementation flow of the parking space number recognition method. Figure 6 As shown, the method may include the following steps 601 to 605:
[0137] Step 601: When the speed of the vehicle is lower than a preset speed threshold, a plurality of images are acquired through a vehicle-mounted camera, wherein the plurality of images include an image of a target parking space acquired at a current geographical location.
[0138] The implementation process of step 601 is consistent with the above-mentioned step 201, and will not be repeated here in this application.
[0139] Step 602: Obtain an initial recognition result of the parking space number of the target parking space based on the multiple images.
[0140] The implementation process of step 602 is consistent with the above-mentioned step 202, and this application will not repeat it here.
[0141] Step 603: Match the current geographic location of the vehicle with the geographic locations in the parking space number knowledge base. If the match is successful, obtain the parking space number template corresponding to the current geographic location in the parking space number knowledge base.
[0142] In an embodiment of the present application, the system obtains the vehicle's current geographic location information through the vehicle's onboard GPS or other positioning technology. This geographic location information is expressed in longitude and latitude. The obtained geographic location information is compared with the geographic locations in the parking space number knowledge base to determine whether there is a match. If a geographic location match is successful, the system retrieves a parking space number template corresponding to the current geographic location from the parking space number knowledge base. The parking space number template includes the parking space number information for all parking spaces at the location, as well as other relevant information corresponding to each parking space number, such as space dimensions and parking rules.
[0143] Step 604: Match the initial recognition result with the parking space number template. If the initial recognition result successfully matches the parking space number template, determine the initial recognition result as the target recognition result.
[0144] In this embodiment of the present application, the initial recognition result obtained through image recognition or other methods is compared with the acquired parking space number template. Optionally, the parking space number in the image is converted into a comparable text format using a text recognition algorithm. If the initial recognition result successfully matches the parking space number template, the system will confirm that the recognition result is the target recognition result.
[0145] Step 605: If the initial recognition result fails to match the parking space number template, obtain the parking space numbers of other parking spaces whose distance from the current geographical location is less than or equal to a threshold distance as the target recognition result.
[0146] In this embodiment of the present application, if the initial recognition result fails to match the parking space template, the parking space information near the current geographic location is used to search for parking space numbers of other parking spaces that are closer to the current location. Specifically, this can be the parking space closest to the current location, or other parking spaces determined according to certain priority rules.
[0147] By matching the initial recognition result with the parking space number template corresponding to the current geographic location, the embodiments of the present application can more accurately identify the parking space number of the target parking space. If the initial recognition result fails to match the parking space number template, the parking space numbers of other parking spaces whose distance from the current geographic location is less than or equal to the threshold distance can be obtained as the target recognition result, thereby expanding the recognition range and improving the recognition success rate. By establishing a parking space number knowledge base and matching the vehicle's current geographic location with the geographic locations in the knowledge base, the parking space number template corresponding to the current geographic location can be quickly obtained, thereby improving recognition efficiency.
[0148] As an example, the initial recognition result is matched with the parking space number template. When the initial recognition result is successfully matched with the parking space number template, after obtaining the parking space number as the target recognition result, it also includes: uploading the current geographic location of the vehicle and the target recognition result corresponding to the current geographic location to the parking space number template.
[0149] Specifically, the initial recognition result is first compared and matched against a parking space template. This involves image processing and pattern recognition algorithms to ensure accurate matching between the image of the vehicle captured in the parking lot and the pre-stored parking space template. If the initial recognition result successfully matches the parking space template, the parking space number is confirmed as the target recognition result. After confirming the target recognition result, the system uploads the vehicle's current geographic location and the target recognition result to the parking space template. This is achieved through a network connection and data transfer, ensuring that the information in the template is updated. The uploaded information is used to update the parking space template, allowing for more accurate matching of the vehicle's location and parking space number in future recognitions.
[0150] By uploading new recognition results, the embodiment of the present application can learn from actual use and continuously optimize the accuracy of the parking space number template. The updated template can improve the success rate of future parking space number recognition.
[0151] It should be understood that, although the steps in the above-mentioned flowcharts are shown in sequence according to the instructions of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0152] In addition, the further description of some process steps in the embodiments of the present application is only to facilitate the better implementation of the best embodiment provided by the present application, and does not mean that the step can only be implemented through the best embodiment. As long as the implementation method described in each step of the present application is met, it should not be regarded as a specific limitation on the scheme of the present application.
[0153] Based on the foregoing embodiments, an embodiment of the present application provides a parking space number recognition device, which includes the modules included and the units included in each module, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0154] Figure 7 A schematic diagram of the structure of the parking space number recognition device provided in the embodiment of the present application is shown as follows: Figure 7 As shown, the apparatus 700 includes an acquisition module 701 and a matching module 702, wherein:
[0155] an acquisition module 701 for acquiring, through a vehicle-mounted camera, a plurality of images when the vehicle speed is lower than a preset speed threshold, the plurality of images including an image of a target parking space acquired at a current geographic location;
[0156] The acquisition module 701 is further configured to obtain an initial recognition result of the parking space number of the target parking space based on the multiple images;
[0157] The matching module 702 is used to match the initial recognition result with the parking space number template corresponding to the current geographical location to obtain a target recognition result. The parking space number template is generated based on the parking space number historically recognized by the vehicle at the current geographical location.
[0158] In some embodiments, the acquisition module 701 is further configured to perform image fusion and splicing on the multiple images to obtain a fused and spliced panoramic view BEV image;
[0159] The acquisition module 701 is further specifically configured to perform image recognition on the panoramic view BEV image to obtain a plurality of parking space numbers including a plurality of preset parking spaces, each of which includes at least one parking space number, and the plurality of preset parking spaces includes the target parking space;
[0160] The acquisition module 701 is further specifically configured to acquire a plurality of vehicle driving data and a plurality of vehicle geographic locations collected when the vehicle speed is lower than a preset speed threshold, and obtain a parking space number map based on the plurality of vehicle driving data, the plurality of vehicle geographic locations, and the plurality of parking space numbers;
[0161] The acquisition module 701 is further specifically configured to acquire an initial recognition result of the target parking space from the parking space number map.
[0162] In some embodiments, the acquisition module 701 is further specifically configured to acquire a timestamp of capturing each of the plurality of images, a first acquisition time of each of the plurality of vehicle driving data, and a second acquisition time of each of the plurality of vehicle geographic locations;
[0163] The matching module 702 further specifically includes the vehicle travel data corresponding to the timestamp of each image, wherein the aligned multiple vehicle geographic locations include the vehicle geographic location corresponding to the timestamp of each image;
[0164] The acquisition module 701 is further specifically configured to obtain the coordinates corresponding to each parking space number based on the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations;
[0165] The acquisition module 701 is further specifically configured to obtain the parking space number map according to the multiple parking space numbers and the coordinates corresponding to each parking space number.
[0166] In some embodiments, the acquisition module 701 is further specifically configured to acquire the image coordinates corresponding to each parking space number;
[0167] The acquisition module 701 is also specifically used to convert the image coordinates corresponding to each parking space number into world coordinates based on the correspondence between the preset world coordinate system, the image coordinate system and the vehicle coordinate system, the aligned multiple vehicle driving data, the aligned multiple vehicle geographic locations and the image coordinates corresponding to each parking space number, so as to obtain the coordinates of each parking space number.
[0168] In some embodiments, the acquisition module 701 is further specifically configured to cluster the multiple parking space numbers in the parking space number map according to the world coordinates corresponding to the multiple parking space numbers to obtain multiple initial clustering results;
[0169] The matching module 702 is further specifically configured to align the initial clustering results based on an edit distance of the parking space number strings of the multiple initial clustering results, where the edit distance of the strings includes the number of bits of modified characters required to transform two different strings into the same string by modifying the characters;
[0170] The acquisition module 701 is further specifically configured to acquire multiple target clustering results based on the parking space number included in each aligned initial clustering result and the probability that the parking space number in each aligned initial clustering result appears in the target parking space;
[0171] The acquisition module 701 is further specifically configured to acquire an initial recognition result of the parking space number of the target parking space according to the current geographical location and the multiple target clustering results.
[0172] In some embodiments, the matching module 702 is further configured to match the current geographic location of the vehicle with the geographic locations in the parking space number knowledge base, and if a match is successful, obtain a parking space number template corresponding to the current geographic location in the parking space number knowledge base;
[0173] The matching module 702 is further specifically used to match the initial recognition result with the parking space number template. If the initial recognition result successfully matches the parking space number template, the initial recognition result is determined as the target recognition result; or, if the initial recognition result fails to match the parking space number template, the parking space numbers of other parking spaces whose distance from the current geographic location is less than or equal to a threshold distance are obtained as the target recognition result.
[0174] In some embodiments, the matching module 702 is further specifically configured to upload the current geographic location of the vehicle and the target recognition result corresponding to the current geographic location to the parking space number template.
[0175] The description of the above device embodiment is similar to the description of the above method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0176] It should be noted that in the embodiments of this application Figure 7 The module division of the parking space number recognition device shown is schematic and represents only a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units. Alternatively, a combination of software and hardware may be used.
[0177] It should be noted that, in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology 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 for enabling an electronic device to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0178] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the above method is implemented.
[0179] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method provided in the above embodiment are implemented.
[0180] An embodiment of the present application provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0181] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0182] In one embodiment, the parking space number recognition device provided by the present application can be implemented in the form of a computer program. The computer program can be used in Figure 8 The computer device is operated on the computer device shown. The memory of the computer device can store various program modules that constitute the above-mentioned device. The computer program composed of each program module enables the processor to execute the steps of the method of each embodiment of the present application described in this specification.
[0183] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0184] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order 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 application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0185] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0186] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0187] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0188] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed across multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0189] In addition, all functional modules in the embodiments of the present application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the above-mentioned integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0190] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0191] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0192] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0193] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0194] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0195] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A parking space number recognition method, characterized in that: The method comprises: When the speed of the vehicle is lower than a preset speed threshold, acquiring multiple images through the vehicle-mounted camera, the multiple images including an image of the target parking space acquired at the current geographic location; Obtaining an initial recognition result of the parking space number of the target parking space according to the multiple images; The initial recognition result is matched with a parking space number template corresponding to the current geographical location to obtain a target recognition result, wherein the parking space number template is generated based on the parking space number historically recognized by the vehicle at the current geographical location.
2. The method according to claim 1, characterized in that The step of obtaining an initial recognition result of the parking space number of the target parking space according to the plurality of images includes: Performing image fusion and splicing on the multiple images to obtain a fused and spliced panoramic view BEV image; Performing image recognition on the panoramic view BEV image to obtain a plurality of parking space numbers including a plurality of preset parking spaces, each of which includes at least one parking space number, and the plurality of preset parking spaces including the target parking space; Acquire a plurality of vehicle driving data and a plurality of vehicle geographic locations collected when the speed of the vehicle is lower than a preset speed threshold, and obtain a parking space number map according to the plurality of vehicle driving data, the plurality of vehicle geographic locations and the plurality of parking space numbers; An initial recognition result of the target parking space is obtained from the parking space number map.
3. The method according to claim 2, characterized in that The plurality of vehicle driving data are collected according to a first data collection period, the plurality of vehicle geographic locations are collected according to a second data collection period, the first data collection period is different from the second data collection period, the parking space number map includes the plurality of parking space numbers and coordinates corresponding to each parking space number, and obtaining the parking space number map according to the plurality of vehicle driving data, the plurality of vehicle geographic locations and the plurality of parking space numbers includes: Obtaining a timestamp of shooting each of the plurality of images, a first acquisition time of each of the plurality of vehicle driving data, and a second acquisition time of each of the plurality of vehicle geographic locations; According to the timestamp of each image, the first acquisition time and the second acquisition time, the multiple vehicle driving data and the multiple vehicle geographic locations are aligned based on the timestamp of each image to obtain the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations, wherein the aligned multiple vehicle driving data include the vehicle driving data corresponding to the timestamp of each image, and the aligned multiple vehicle geographic locations include the vehicle geographic locations corresponding to the timestamp of each image; Obtaining coordinates corresponding to each parking space number according to the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations; The parking space number map is obtained according to the multiple parking space numbers and the coordinates corresponding to each parking space number.
4. The method according to claim 3, characterized in that Each vehicle driving data is data represented by a vehicle coordinate system, and each vehicle geographic location is data represented by a world coordinate system. The coordinates corresponding to each parking space number are obtained according to the aligned multiple vehicle driving data and the aligned multiple vehicle geographic locations, including: Obtain the image coordinates corresponding to each parking space number; According to the correspondence between the preset world coordinate system, the image coordinate system and the vehicle coordinate system, the aligned multiple vehicle driving data, the aligned multiple vehicle geographic locations and the image coordinates corresponding to each parking space number, the image coordinates corresponding to each parking space number are converted into world coordinates to obtain the coordinates of each parking space number.
5. The method according to claim 4, characterized in that The obtaining of the initial recognition result of the target parking space from the parking space number map includes: Clustering the multiple parking space numbers in the parking space number map according to the world coordinates corresponding to the multiple parking space numbers to obtain multiple initial clustering results; Aligning the initial clustering results according to the edit distance of the character strings of the parking space numbers of the multiple initial clustering results, wherein the edit distance of the character strings includes the number of bits of modified characters required for two different character strings to become the same character string by modifying the characters; Acquire multiple target clustering results according to the parking space number included in each aligned initial clustering result and the probability that the parking space number in each aligned initial clustering result appears in the target parking space; An initial recognition result of the parking space number of the target parking space is obtained according to the current geographical location and the multiple target clustering results.
6. The method according to claim 1, characterized in that A plurality of different geographical locations and parking space number templates corresponding to the plurality of different geographical locations form a parking space number knowledge base, and the initial recognition result is matched with the parking space number template corresponding to the current geographical location to obtain a target recognition result, including: Matching the current geographical location of the vehicle with the geographical location in the parking space number knowledge base, and if the match is successful, obtaining the parking space number template corresponding to the current geographical location in the parking space number knowledge base; Matching the initial recognition result with the parking space number template, and if the initial recognition result successfully matches the parking space number template, determining the initial recognition result as the target recognition result; Alternatively, when the initial recognition result fails to match the parking space number template, the parking space numbers of other parking spaces whose distances from the current geographical location are less than or equal to a threshold distance are obtained as the target recognition result.
7. The method according to claim 5, characterized in that The initial recognition result is matched with the parking space number template, and when the initial recognition result matches the parking space number template successfully, after obtaining the parking space number as the target recognition result, the method further includes: The current geographic location of the vehicle and the target recognition result corresponding to the current geographic location are uploaded to the parking space number template.
8. A parking space number recognition device, characterized in that: include: an acquisition module, configured to acquire a plurality of images through a vehicle-mounted camera when the speed of the vehicle is lower than a preset speed threshold, the plurality of images including an image of a target parking space acquired at a current geographical location; The acquisition module is further used to obtain an initial recognition result of the parking space number of the target parking space according to the multiple images; The matching module is used to match the initial recognition result with the parking space number template corresponding to the current geographical location to obtain a target recognition result, wherein the parking space number template is generated based on the parking space number historically recognized by the vehicle at the current geographical location.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Reverse vehicle tracking system and reverse vehicle tracking method based on same
CN107123297A
Vehicle searching method, device and system, storage medium and user terminal
CN110491166A
Parking lot vehicle positioning system and method based on image recognition
CN111127902A
Roadside parking automatic payment method and system based on Internet of Vehicles
CN111815791A
Vision-based vehicle positioning method and parking lot management system applying same
CN112184818A
