Parking lot license plate recognition method and device

By using convex mirrors and distortion compensation algorithms to process images in urban underground parking lots, the problem of the camera only collecting license plate information on one side is solved, the recognition of license plates on both sides is realized, and the efficiency and utilization of the license plate recognition system are improved.

CN113591848BActive Publication Date: 2024-09-03JINMAO DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110863858.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-29
Publication Date
2024-09-03
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

In existing urban underground parking lots, cameras only collect license plate information on one side, so the utilization rate is low and it is difficult to effectively improve the license plate recognition efficiency.

Method used

By collecting and processing image data including parking information on both sides on one side, using convex mirror reflection and distortion compensation algorithms to segment and process the image, obtain license plate information on both sides, and improve the utilization of the camera.

Benefits of technology

It effectively improves the utilization rate of the camera, realizes the recognition of license plates in parking spaces on both sides, and improves the efficiency and accuracy of the license plate recognition system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113591848B
    Figure CN113591848B
Patent Text Reader

Abstract

The present application discloses a parking lot license plate recognition method and device. The method comprises: reflecting an image of a first parking area through a convex mirror facing the shooting direction to obtain a reflected image; collecting an image of a second parking area facing the shooting direction and the reflected image to obtain a collected image; segmenting the collected image to obtain a distorted reflected image of the first parking area and a direct image of the second parking area; correcting the distorted reflected image through a distortion compensation algorithm to obtain a corrected image; processing the direct image and the corrected image to obtain a character image set with source side marking information; matching the character image set through a sample set to obtain license plate information data. The present application effectively improves the camera utilization rate by collecting and processing image data including parking information on both sides.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of license plate recognition, and in particular to a method and device for parking lot license plate recognition. Background Art

[0002] One of the main application scenarios of license plate recognition is parking lots, especially underground parking lots in cities. Urban underground parking lots have a strong demand for automated management, which requires the implementation of license plate recognition systems. The license plate recognition system uses pattern recognition, digital image processing and machine vision related technologies to automatically detect the license plate number from the digital image captured by the camera. Its key technology lies in the analysis, processing and recognition of the image.

[0003] In the process of implementing the prior art, the inventor discovered the following technical problems:

[0004] At present, urban underground parking lots are generally arranged in a way that one camera is used to collect video for multiple consecutive parking spaces. Due to the limited space of urban underground parking lots, most parking spaces are distributed on both sides of the passage. For underground parking scenarios with parking spaces on both sides of the lane, when the distance between the parking spaces on both sides is insufficient, dual cameras are still used to complete video collection, that is, each camera captures one side of the parking space. The disadvantage of this solution is that the camera used only collects the license plate information on one side, and the utilization rate is low.

[0005] Therefore, it is necessary to provide a parking lot license plate recognition technology solution that effectively improves the utilization rate of cameras. Summary of the invention

[0006] The embodiment of the present application provides a technical solution for parking lot license plate recognition, which effectively improves the camera utilization rate by collecting and processing image data including parking information on both sides on one side.

[0007] The present application provides a parking lot license plate recognition method, comprising:

[0008] Reflecting the image of the first parking area by a convex mirror facing the shooting direction to obtain a reflected image;

[0009] collecting an image of the second parking area facing the shooting direction and the reflected image to obtain a collected image;

[0010] Segmenting the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area;

[0011] Correcting the distorted reflected image by using a distortion compensation algorithm to obtain a corrected image;

[0012] Processing the direct image and the corrected image to obtain a character image set with source-side marking information;

[0013] The license plate information data is obtained by matching the sample set with the character image set.

[0014] Furthermore, in a preferred embodiment provided in the present application, segmenting the collected image to obtain the distorted reflection image of the first parking area and the direct image of the second parking area specifically includes:

[0015] Identify the collected image to obtain a distorted reflection ROI area of ​​the first parking area and a direct ROI area of ​​the second parking area;

[0016] The collected image is segmented according to the distorted reflection ROI area and the direct ROI area to obtain a distorted reflection image of the first parking area and a direct image of the second parking area.

[0017] Furthermore, in a preferred embodiment provided in the present application, the distorted reflected image is corrected by a distortion compensation algorithm to obtain a corrected image, which specifically includes:

[0018] Calculating a distortion parameter of the distorted reflected image;

[0019] According to the distortion parameter, a distortion compensation algorithm is called to process the distorted reflected image to obtain a corrected image.

[0020] Furthermore, in a preferred embodiment provided in the present application, calculating the distortion parameter of the distorted reflected image specifically includes:

[0021] Obtaining the curvature of the convex mirror;

[0022] According to the curvature, a distortion parameter of the distorted reflected image is calculated.

[0023] Furthermore, in a preferred embodiment provided in the present application, processing the direct image and the corrected image to obtain a character image set with source side marking information specifically includes:

[0024] Processing the direct image and the corrected image by a neural network algorithm to obtain a license plate image matrix block;

[0025] Processing the license plate image matrix block to obtain an original character image set;

[0026] The original character image set is marked to obtain a character image set with source-side marking information.

[0027] Furthermore, in a preferred embodiment provided in the present application, the direct image and the corrected image are processed by a neural network algorithm to obtain a license plate image matrix block, which specifically includes:

[0028] Processing the direct image and the corrected image according to the edge information and the color feature information to obtain a set of candidate license plates;

[0029] The candidate license plate set is screened by the SVM classifier to obtain a license plate image matrix block.

[0030] Furthermore, in a preferred embodiment provided in the present application, processing the license plate image matrix block to obtain an original character image set specifically includes:

[0031] Based on the grayscale image and Radon transform, the license plate image matrix block is corrected to obtain a license plate corrected image;

[0032] According to the morphological opening method, the spacers in the license plate correction image are eliminated to obtain a non-spaced license plate image;

[0033] Converting the non-spaced license plate image into a histogram, identifying the border position through an algorithm and the histogram, removing the border from the non-spaced license plate image, and obtaining a borderless license plate image;

[0034] The borderless license plate image is segmented by a projection method to obtain a set of original character images.

[0035] Furthermore, in a preferred embodiment provided by the present application, obtaining the license plate information data by matching the character image set with the sample set specifically includes:

[0036] Identifying source-side marking information of the character image set;

[0037] When the source-side mark information is the first source mark, the mirror sample set is used to match the character image set to obtain the license plate information data.

[0038] Furthermore, in a preferred embodiment provided by the present application, obtaining the license plate information data by matching the character image set with the sample set specifically includes:

[0039] Identifying source-side marking information of the character image set;

[0040] When the source-side mark information is the second source mark, the character image set is matched using a positive sample set to obtain the license plate information data.

[0041] The present application also provides a parking lot license plate recognition device, comprising:

[0042] A collection module, used to reflect the image of the first parking area through a convex mirror facing the shooting direction to obtain a reflected image; and also used to collect the image of the second parking area facing the shooting direction and the reflected image to obtain a collected image;

[0043] An image separation module, used to segment the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area;

[0044] An image correction module, used for correcting the distorted reflected image by using a distortion compensation algorithm to obtain a corrected image;

[0045] An image processing module, used for processing the direct image and the corrected image to obtain a set of character images with source-side marking information;

[0046] The matching module is used to match the character image set through the sample set to obtain the license plate information data.

[0047] The embodiments provided in this application have at least the following technical effects:

[0048] By collecting and processing image data including parking information on both sides on one side, the camera utilization rate is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0050] Figure 1 A flowchart of a parking lot license plate recognition method provided in an embodiment of the present application;

[0051] Figure 2 A schematic diagram of a convex mirror surface curve provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of the deployment of a parking lot license plate recognition device provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of the structure of a parking lot license plate recognition device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0055] Please refer to Figure 1 , a parking lot license plate recognition method provided in an embodiment of the present application, specifically comprising the following steps:

[0056] S100: Reflecting the image of the first parking area through a convex mirror facing the shooting direction to obtain a reflected image.

[0057] It is understandable that the convex mirror uses the principle of light divergence to expand the field of view. When the convex mirror is applied to the field of parking, it can effectively expand the viewing angle of the parking area. In the specific implementation process, the present application collects the sight lines of the parking area in two directions on the camera mirror used for shooting by setting a convex mirror facing the shooting direction. The area on the side backed by the shooting device can be called the first parking area, and the area on the other side backed by the convex mirror, that is, the area on the other side facing the shooting device can be called the second parking area. Generally, in order to facilitate image acquisition, the convex mirror can be set in front of the shooting device. Through the set convex mirror, the parking conditions of the first parking area and the second parking area can be observed simultaneously in the shooting direction. It is obvious that the method of reflecting the image of the parking area on one side by the convex mirror effectively expands the viewing angle of the parking area.

[0058] It should be noted that, in the specific implementation process, the convex mirror in the present application can adopt a mirror surface that meets the hyperbolic condition and satisfies the single viewpoint constraint condition. The hyperbolic condition here can be expressed by the mirror curve formula as follows:

[0059]

[0060] Among them, a and b are both greater than 0, a is the length of the real axis of the hyperbola, b is the length of the imaginary axis of the hyperbola, and x, y, and z correspond to the x-axis, y-axis, and z-axis of the three-dimensional Cartesian coordinate system, respectively.

[0061] Specifically, the convex mirror surface and camera position can refer to Figure 2 . Among them, the two foci of the hyperbola are F1 and F2. F2 corresponds to the origin o in the xoz plane of the three-dimensional Cartesian coordinate system, and the part where F2 is located (the upper half of the hyperbola) is the actual reflective mirror. M is a point on the mirror surface. When the light is incident along the direction of MF2, it will be reflected in the direction of MF1. The angle between MF1 and the axis where F1F2 is located is θ. F1 is the optical center of the camera, C is the center point of the hyperbola, and the distances between CF1 and CF2 are The values ​​of parameters a and b can be selected and determined according to the actual deployment scenario. Among them, the mirror surface of the convex mirror is formed by rotating the part of the curve where the focus F2 is located half a circle (180°). It should be noted that the process of aligning the optical center of the camera with the hyperbola focus F1 can be understood as system calibration, which can be completed by inversion of the calibration plate, adjustment of the mirror edge, etc., or further feedback adjustment can be made through the captured image information. Obviously, the design method of the single viewpoint constraint condition reduces the requirements for the camera, and can make the mapping relationship between the imaging coordinate system and the absolute coordinate system relatively simple while ensuring that the entire imaging system meets the perspective projection conditions, which is conducive to improving the license plate recognition speed.

[0062] S200: Capture an image of a second parking area facing a shooting direction and the reflected image to obtain a captured image.

[0063] It is understandable that when collecting the image of the second parking area facing the shooting direction and the reflected image in the convex mirror, a variety of collection methods can be used according to different actual conditions. For example, for a camera whose focal length and angle cannot be adjusted automatically, the camera can simultaneously capture images including the second parking area and the convex mirror. For a camera that can automatically adjust the focal length or angle according to the setting conditions, the camera can first capture an image including the second parking area, and then capture an image including the convex mirror; the camera can also first capture an image including the convex mirror, and then capture an image including the second parking area; the camera can also simultaneously capture an image including the second parking area and the convex mirror. Obviously, when simultaneously capturing images including the second parking area and the convex mirror, it is necessary to ensure that the camera's shooting clarity does not affect the recognition of the targets in the second parking area and the convex mirror.

[0064] In the specific implementation process, the deployment of convex mirrors and cameras can refer to Figure 3 . Wherein, A is the camera, AE is the central axis of the camera, B is the deployed convex mirror, the imaging area where CD is located can be understood as the first parking area, and the imaging area where FG is located can be understood as the second parking area. Convex mirror B faces the shooting direction of camera A, and at the same time reflects the image of the first parking area CD, forming a reflected image on the mirror surface of convex mirror B. It should be pointed out that convex mirror B only has a mirror body on the lower side of the AE axis to reduce the influence of convex mirror B on the image of the second parking area FG collected by camera A.

[0065] S300: Segment the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area.

[0066] Specifically, in a preferred embodiment provided in the present application, segmenting the collected image to obtain the distorted reflection image of the first parking area and the direct image of the second parking area specifically includes:

[0067] Identify the collected image to obtain a distorted reflection ROI area of ​​the first parking area and a direct ROI area of ​​the second parking area;

[0068] The collected image is segmented according to the distorted reflection ROI area and the direct ROI area to obtain a distorted reflection image of the first parking area and a direct image of the second parking area.

[0069] It is understandable that the English corresponding to ROI is region of interest, which can be understood as a region of interest. In image processing, the area to be processed is outlined from the processed image in the form of a box, circle, ellipse, irregular polygon, etc., which is called a region of interest. In the specific implementation process, the image distribution of the collected image will vary according to the actual deployment conditions. In general, by adjusting the optical path design, it can be ensured that the ROI areas of the license plates on both sides are located in the upper and lower parts of the image collected by the camera, respectively. Depending on the curvature of the convex mirror, the image of the first parking area reflected by the convex mirror obtained by the camera will have a certain image distortion, and this distorted image can be understood as a distorted reflection image. The image of the second parking area obtained by directly shooting with the camera can be understood as a direct image. Since the license plate in the image is the key part of license plate recognition, the image of the license plate part can be understood as the ROI area in this application. It is obvious that ROI technology can perform high-resolution video encoding only on key areas to meet users' high-definition video surveillance requirements without increasing network bandwidth.

[0070] S400: Correcting the distorted reflected image by using a distortion compensation algorithm to obtain a corrected image.

[0071] Specifically, in a preferred embodiment provided in the present application, the distorted reflected image is corrected by a distortion compensation algorithm to obtain a corrected image, which specifically includes:

[0072] Calculating a distortion parameter of the distorted reflected image;

[0073] According to the distortion parameter, a distortion compensation algorithm is called to process the distorted reflected image to obtain a corrected image.

[0074] It is understandable that the distorted reflection image is a distorted image. When the license plate recognition is directly performed on this image, the complexity of the license plate recognition algorithm will be increased. For this reason, the distorted reflection image can be corrected first, and then the corrected image can be applied to the next license plate recognition. In the specific implementation process, the distortion parameter of the distorted reflection image can be determined according to the relevant parameters of the curved mirror. When the distortion parameter is known, the distorted reflection image can be corrected by the corresponding distortion compensation algorithm, thereby reducing the distortion effect of the lateral expansion and contraction caused by the reflection of the curved mirror. It should be pointed out that the distortion compensation algorithm includes correcting the distorted reflection image by the reprojection method. After the optical center of the camera and the curved mirror complete the system calibration, the collected image satisfies the perspective projection effect, and there is a one-to-one correspondence between any point in space and its imaging point. The imaged image can be reprojected to reduce the distortion caused by the reflection of the curved mirror. According to the mirror curve formula and the parameters selected in the specific implementation, according to the above one-to-one correspondence, the region of interest of the projected image is inversely transformed to obtain the calibration result of the actual image. The distortion rate of the calibrated image has been significantly improved and can be used for image recognition. It is obvious that the distortion compensation algorithm can effectively reduce the distortion effect of the curved mirror on the image, reduce the complexity of the subsequent license plate recognition algorithm, and improve the speed of license plate recognition.

[0075] Furthermore, in a preferred embodiment provided in the present application, calculating the distortion parameter of the distorted reflected image specifically includes:

[0076] Obtaining the curvature of the convex mirror;

[0077] According to the curvature, a distortion parameter of the distorted reflected image is calculated.

[0078] It is understandable that the curvature of the convex mirror actually used here needs to be determined based on the viewing angle of the camera, the distance of the convex mirror from the camera, and the width of the acquisition area. For example, the general deployment of the camera is: the camera is 3-6 meters away from the parking space line, the camera is 2.2-3 meters above the ground, the camera can effectively identify the license plates of 6 parking spaces in parallel, the camera field of view generally does not exceed 120°, and the image clarity level is 1080P. In the specific implementation process, the deployment of the camera is determined. According to the determined camera deployment and the deployment position of the convex mirror itself, the curvature of the corresponding curved mirror can be calculated. When the curvature of the convex mirror is determined, the distortion parameter of the corresponding convex mirror reflected image can be calculated according to the curvature of the convex mirror. Obviously, calculating the corresponding distortion parameter according to the curvature of the convex mirror can effectively reduce the calculation complexity of the distortion parameter.

[0079] S500: Process the direct image and the corrected image to obtain a set of character images with source-side marking information.

[0080] Specifically, in a preferred embodiment provided in the present application, processing the direct image and the corrected image to obtain a character image set with source side marking information specifically includes:

[0081] Processing the direct image and the corrected image by a neural network algorithm to obtain a license plate image matrix block;

[0082] Processing the license plate image matrix block to obtain an original character image set;

[0083] The original character image set is marked to obtain a character image set with source-side marking information.

[0084] It is understandable that when processing direct images and corrected images, the direct images and corrected images can be processed simultaneously in batches by a neural network algorithm, or the direct images and corrected images can be processed separately by a neural network algorithm. When processing images by a neural network algorithm, images containing license plate parts can be screened and converted into license plate image matrix blocks. It is obvious that the license plate image matrix block needs to be further processed into a set consisting of character images. The set consisting of character images here can be defined as a set of original character images. In order to simplify the subsequent license plate recognition algorithm, according to actual needs, the elements of the corresponding original character image set can be directly marked in the process of generating the original character image set to obtain a set of character images with source side marking information. It is also possible to further mark the elements in the original character image set after the original character image set is generated to obtain a set of character images with source side marking information. According to the source side marking information, it can be determined whether the corresponding character image set comes from a direct image or a corrected image. It should be noted that the direct image is an image obtained by the camera normally shooting the second parking area, and the corrected image is an image obtained by the camera shooting the first parking area through the convex mirror. The marked character image set is conducive to simplifying the subsequent license plate recognition algorithm and improving the license plate recognition speed.

[0085] Furthermore, in a preferred embodiment provided in the present application, the direct image and the corrected image are processed by a neural network algorithm to obtain a license plate image matrix block, which specifically includes:

[0086] Processing the direct image and the corrected image according to the edge information and the color feature information to obtain a set of candidate license plates;

[0087] The candidate license plate set is screened by the SVM classifier to obtain a license plate image matrix block.

[0088] It can be understood that based on edge information and color feature information, a set of candidate license plates can be analyzed and obtained. For example, the CEDD algorithm in the image feature extraction algorithm can be used to process the direct image and the corrected image to obtain a set of candidate license plates. The full name of CEDD is the directional descriptor of color and edge, which has the advantages of fast feature extraction speed and small space occupied by feature descriptors. After obtaining the set of candidate license plates, the license plates can be screened twice by the SVM classifier to output the license plate image matrix block. SVM can be understood as a support vector machine, which is a two-class classification model, and its basic model is defined as the linear classifier with the largest interval in the feature space. Obviously, by combining the use of edge information and color information, and making full use of the SVM classifier, the license plate recognition rate can be effectively improved.

[0089] Furthermore, in a preferred embodiment provided in the present application, processing the license plate image matrix block to obtain an original character image set specifically includes:

[0090] Based on the grayscale image and Radon transform, the license plate image matrix block is corrected to obtain a license plate corrected image;

[0091] According to the morphological opening method, the spacers in the license plate correction image are eliminated to obtain a non-spaced license plate image;

[0092] Converting the non-spaced license plate image into a histogram, identifying the border position through an algorithm and the histogram, removing the border from the non-spaced license plate image, and obtaining a borderless license plate image;

[0093] The borderless license plate image is segmented by a projection method to obtain a set of original character images.

[0094] It can be understood that Radon transform is called Radon transform, which is an integral transform. Radon transform performs line integral on a function f(x, y) defined on a two-dimensional plane along any straight line on the plane. In the specific implementation process, the following steps can be adopted: convert the license plate image matrix block into a grayscale image; binarize the grayscale image to obtain a binary image; perform Radon transform on the binary image to obtain a result matrix; find the extreme points based on the result matrix; determine the position of the straight line based on the extreme points; calculate the inclination angle based on the position of the straight line; correct the license plate image matrix block based on the inclination angle to obtain a license plate corrected image.

[0095] After obtaining the license plate correction image, it is necessary to eliminate the spacers in the license plate correction image. It can be understood that the opening operation in morphology is a filter based on geometric operations, which can be used to remove relatively small points in the image. By using the opening operation method, the spacers in the license plate correction image can be eliminated. In the specific implementation process, the opening operation first corrodes the license plate correction image, and then dilates the corroded license plate correction image, and finally obtains a license plate image without intervals. Dilation is the expansion of the highlight part in the image, the domain is expanded, and the highlight area of ​​the effect image is larger than the original image; when operating, it is manifested as the adjacent area is replaced by the maximum value, and the highlight area increases. Erosion is the erosion of the highlight part in the image, the domain is reduced, and the highlight area of ​​the effect image is smaller than the original image; when operating, it is manifested as the adjacent area is replaced by the minimum value, and the highlight area is reduced.

[0096] To ensure that the image contains necessary information, the collected image is generally larger than the actual license plate area, so it contains license plate border information. To facilitate subsequent license plate recognition, it is necessary to eliminate the influence of the license plate border. To this end, the unintervaled license plate image is converted into a histogram. The position of the license plate border in the unintervaled license plate image can be identified through the converted histogram and the corresponding algorithm, and then the license plate border is removed from the unintervaled license plate image to obtain a borderless license plate image. In the specific implementation process, the above process can also be completed with the help of software tools.

[0097] It is understandable that there are many methods for character segmentation. The present application segments the borderless license plate image through the projection segmentation method to obtain a set of original character images. The projection method can find the dividing point between adjacent characters and segment the borderless license plate image according to the dividing point. The projection reflects the number of pixels in the character area in the vertical direction. It is only necessary to judge each column of the projection to find the segmentation point. It should be noted that segmenting the borderless license plate image according to the segmentation point can effectively improve the image segmentation speed.

[0098] S600: Obtain license plate information data by matching the character image set with the sample set.

[0099] It is understandable that the character image set contains the license plate information that needs to be identified. By screening the character image set, the license plate information data captured in the parking area can be obtained. In the specific implementation process, a total sample set can be used to match the character image set obtained in the above steps, so as to screen and obtain the final license plate information data. Different sample sets can also be trained for different parking areas according to the length and angle of the acquisition optical path. The character image set is classified according to the source side marking information of the character image set, and the classified character image sets are matched with the corresponding sample sets to finally obtain the license plate information data.

[0100] Specifically, in a preferred embodiment provided in the present application, obtaining the license plate information data by matching the character image set with the sample set specifically includes:

[0101] Identifying source-side marking information of the character image set;

[0102] When the source-side mark information is the first source mark, the mirror sample set is used to match the character image set to obtain the license plate information data.

[0103] It is understandable that due to the different collection optical path lengths and angles, the collected images of the first parking area and the second parking area will be significantly different. In order to improve the speed of the license plate recognition algorithm, the license plate character sample libraries corresponding to the first parking area and the second parking area can be trained respectively to obtain a mirror sample set corresponding to the first parking area and a forward sample set corresponding to the second parking area. According to the source side marking information marked in the character image set, the character image sets corresponding to the first parking area and the second parking area can be obtained. When the source side marking information is the first source marking, it can be determined that the corresponding character image set uses the mirror sample set for license plate matching. Finally, the license plate information data of the first parking area is obtained. It is obvious that targeted data matching based on the source side marking information is conducive to the convergence of the license plate recognition algorithm and improves the speed of license plate recognition.

[0104] Furthermore, in a preferred embodiment provided by the present application, obtaining the license plate information data by matching the character image set with the sample set specifically includes:

[0105] Identifying source-side marking information of the character image set;

[0106] When the source-side mark information is the second source mark, the character image set is matched using a positive sample set to obtain the license plate information data.

[0107] It can be understood that, based on the source side marking information of the mark, the character image set can be directly classified into the character image set of the first parking area and the character image set of the second parking area. When the source side marking information is the second source marking, the positive sample set can be used to match the corresponding character image set to obtain the license plate information data of the second parking area. It is obvious that the positive sample set used needs to be trained in advance according to the situation of obtaining images in the second parking area. It should be pointed out that targeted data matching based on the source side marking information reduces the amount of calculation of the license plate recognition algorithm, which is conducive to improving the speed of license plate recognition.

[0108] The above is a parking lot license plate recognition method provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application also provides a parking lot license plate recognition device 100, such as Figure 4shown.

[0109] A parking lot license plate recognition device 100, comprising:

[0110] The acquisition module 11 is used to reflect the image of the first parking area through a convex mirror facing the shooting direction to obtain a reflected image; and is also used to acquire the image of the second parking area facing the shooting direction and the reflected image to obtain an acquired image;

[0111] An image separation module 12, configured to segment the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area;

[0112] An image correction module 13, used to correct the distorted reflected image by using a distortion compensation algorithm to obtain a corrected image;

[0113] An image processing module 14 is used to process the direct image and the modified image to obtain a character image set with source side marking information;

[0114] The matching module 15 is used to match the character image set with the sample set to obtain the license plate information data.

[0115] Further, in a preferred embodiment provided in the present application, the image separation module 12 is used to segment the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area, specifically for:

[0116] Identify the collected image to obtain a distorted reflection ROI area of ​​the first parking area and a direct ROI area of ​​the second parking area;

[0117] The collected image is segmented according to the distorted reflection ROI area and the direct ROI area to obtain a distorted reflection image of the first parking area and a direct image of the second parking area.

[0118] Further, in a preferred embodiment provided in the present application, the image correction module 13 is used to correct the distorted reflected image by a distortion compensation algorithm to obtain a corrected image, specifically for:

[0119] Calculating a distortion parameter of the distorted reflected image;

[0120] According to the distortion parameter, a distortion compensation algorithm is called to process the distorted reflected image to obtain a corrected image.

[0121] Furthermore, in a preferred embodiment provided in the present application, calculating the distortion parameter of the distorted reflected image specifically includes:

[0122] Obtaining the curvature of the convex mirror;

[0123] According to the curvature, a distortion parameter of the distorted reflected image is calculated.

[0124] Furthermore, in a preferred embodiment provided by the present application, the image processing module 14 is used to process the direct image and the corrected image to obtain a character image set with source side marking information, specifically for:

[0125] Processing the direct image and the corrected image by a neural network algorithm to obtain a license plate image matrix block;

[0126] Processing the license plate image matrix block to obtain an original character image set;

[0127] The original character image set is marked to obtain a character image set with source-side marking information.

[0128] Furthermore, in a preferred embodiment provided in the present application, the direct image and the corrected image are processed by a neural network algorithm to obtain a license plate image matrix block, which specifically includes:

[0129] Processing the direct image and the corrected image according to the edge information and the color feature information to obtain a set of candidate license plates;

[0130] The candidate license plate set is screened by the SVM classifier to obtain a license plate image matrix block.

[0131] Furthermore, in a preferred embodiment provided in the present application, processing the license plate image matrix block to obtain an original character image set specifically includes:

[0132] Based on the grayscale image and Radon transform, the license plate image matrix block is corrected to obtain a license plate corrected image;

[0133] According to the morphological opening method, the spacers in the license plate correction image are eliminated to obtain a non-spaced license plate image;

[0134] Converting the non-spaced license plate image into a histogram, identifying the border position through an algorithm and the histogram, removing the border from the non-spaced license plate image, and obtaining a borderless license plate image;

[0135] The borderless license plate image is segmented by a projection method to obtain a set of original character images.

[0136] Furthermore, in a preferred embodiment provided by the present application, the matching module 15 is used to match the character image set through the sample set to obtain the license plate information data, specifically for:

[0137] Identifying source-side marking information of the character image set;

[0138] When the source-side mark information is the first source mark, the mirror sample set is used to match the character image set to obtain the license plate information data.

[0139] Furthermore, in a preferred embodiment provided by the present application, the matching module 15 is used to match the character image set through the sample set to obtain the license plate information data, and is specifically used to:

[0140] Identifying source-side marking information of the character image set;

[0141] When the source-side mark information is the second source mark, the character image set is matched using a positive sample set to obtain the license plate information data.

[0142] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

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

Claims

1. A parking lot license plate recognition method, characterized in that: include: Reflecting the image of the first parking area by a convex mirror facing the shooting direction to obtain a reflected image; collecting an image of the second parking area facing the shooting direction and the reflected image to obtain a collected image; Segmenting the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area; Correcting the distorted reflected image by using a distortion compensation algorithm to obtain a corrected image; Processing the direct image and the corrected image to obtain a character image set with source-side marking information; Obtaining license plate information data by matching the character image set with the sample set; Correcting the distorted reflected image by a distortion compensation algorithm to obtain a corrected image specifically includes: Calculating a distortion parameter of the distorted reflected image; According to the distortion parameter, a distortion compensation algorithm is called to process the distorted reflected image to obtain a corrected image; Calculating the distortion parameter of the distorted reflected image specifically includes: Obtaining the curvature of the convex mirror; According to the curvature, a distortion parameter of the distorted reflected image is calculated.

2. The method according to claim 1, characterized in that Segmenting the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area specifically includes: Identify the collected image to obtain a distorted reflection ROI area of ​​the first parking area and a direct ROI area of ​​the second parking area; The collected image is segmented according to the distorted reflection ROI area and the direct ROI area to obtain a distorted reflection image of the first parking area and a direct image of the second parking area.

3. The method according to claim 1, characterized in that Processing the direct image and the corrected image to obtain a character image set with source-side marking information specifically includes: Processing the direct image and the corrected image by a neural network algorithm to obtain a license plate image matrix block; Processing the license plate image matrix block to obtain an original character image set; The original character image set is marked to obtain a character image set with source-side marking information.

4. The method according to claim 3, characterized in that Processing the direct image and the corrected image by a neural network algorithm to obtain a license plate image matrix block specifically includes: Processing the direct image and the corrected image according to the edge information and the color feature information to obtain a set of candidate license plates; The candidate license plate set is screened by the SVM classifier to obtain a license plate image matrix block.

5. The method according to claim 3, characterized in that: Processing the license plate image matrix block to obtain an original character image set specifically includes: Based on the grayscale image and Radon transform, the license plate image matrix block is corrected to obtain a license plate corrected image; According to the opening operation method in morphology, the spacers in the license plate correction image are eliminated to obtain a license plate image without spacers; Converting the non-spaced license plate image into a histogram, identifying the border position through an algorithm and the histogram, removing the border from the non-spaced license plate image, and obtaining a borderless license plate image; The borderless license plate image is segmented by a projection method to obtain a set of original character images.

6. The method according to claim 1, characterized in that By matching the sample set with the character image set, the license plate information data is obtained, which specifically includes: Identifying source-side marking information of the character image set; When the source-side mark information is the first source mark, the mirror sample set is used to match the character image set to obtain the license plate information data.

7. The method according to claim 1, characterized in that By matching the sample set with the character image set, the license plate information data is obtained, which specifically includes: Identifying source-side marking information of the character image set; When the source-side mark information is the second source mark, the character image set is matched using a positive sample set to obtain the license plate information data.

8. A parking lot license plate recognition device for implementing the method described in any one of claims 1 to 7, characterized in that: include: A collection module, used for reflecting the image of the first parking area through a convex mirror facing the shooting direction to obtain a reflected image; Also used for collecting the image of the second parking area facing the shooting direction and the reflected image to obtain a collected image; An image separation module, used to segment the collected image to obtain a distorted reflection image of the first parking area and a direct image of the second parking area; An image correction module, used for correcting the distorted reflected image by using a distortion compensation algorithm to obtain a corrected image; An image processing module, used for processing the direct image and the corrected image to obtain a set of character images with source-side marking information; The matching module is used to match the character image set through the sample set to obtain the license plate information data.