Electronic rearview mirror double-point light source image recognition optimization method and system

By collecting driving scene information and matching the dual-point light source image recognition optimization solution, adjusting camera parameters and optimizing image processing, it solves the problem that existing technology cannot optimize dual-point light source imaging based on actual scenes, and improves image recognition accuracy and driving safety.

CN118587240AActive Publication Date: 2024-09-03深圳森云智能科技有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410605970.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-03
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

The existing dual-point light source testing and optimization algorithms cannot optimize the best imaging effect based on actual scene changes, and cannot provide the optimal dual-point imaging effect.

Method used

By collecting the environmental information of the current driving scene, matching the corresponding dual-point light source image recognition optimization scheme, adjusting the camera parameters of the electronic rearview mirror, optimizing the image, and generating an optimized image for real-time display.

Benefits of technology

It improves the accuracy and efficiency of image recognition, provides clearer and more accurate image collection, and improves the driver's driving experience and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587240A
    Figure CN118587240A
Patent Text Reader

Abstract

The embodiment of the invention provides an electronic rearview mirror double-point light source image recognition optimization method and system, and belongs to the technical field of double-point light source testing. The method comprises the following steps: acquiring environment information of a current driving scene, and matching a corresponding double-point light source image recognition optimization scheme based on the environment information; based on the matched double-point light source image recognition optimization scheme, camera parameters of the electronic rearview mirror are adjusted, image collection is executed based on the camera after parameter adjustment, and a to-be-recognized image is obtained; based on a matched double-point light source image recognition optimization scheme, performing optimization processing on the to-be-recognized image to obtain an optimized image; and pushing the optimized image to a vehicle machine display module, and executing real-time display of the optimized image. According to the scheme, the problem that an existing double-point light source imaging scheme cannot provide an optimal imaging effect based on a real-time driving scene is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of double-point light source testing, and in particular to a double-point light source image recognition optimization method for an electronic rearview mirror and a double-point light source image recognition optimization system for an electronic rearview mirror. Background Art

[0002] The dual-point light source imaging test is an optical test method that is usually used to evaluate the imaging performance and resolution of an optical system. In the dual-point light source imaging test, two very close point light sources are placed in front of the optical system to observe their imaging on the imaging plane. By analyzing the position and shape of the two point light sources on the imaging plane, the imaging quality, resolution, distortion and other parameters of the optical system can be evaluated.

[0003] In the existing scheme, by building a test environment that complies with GB15084-2022, tuning and debugging are carried out to make the image effect meet the regulatory requirements. However, the cost of building a debugging environment is high. For general companies, they all judge whether the brightness of the dual-point light source image is within the standard range of GB15084-2022 based on subjective debugging. It is very inconvenient in the early research and development stage, and the debugging engineer has too single way to judge the subjective effect. CMS electronic rearview mirror system refers to the "Camera Monitoring System" electronic rearview mirror system. This system uses a camera to replace the traditional rearview mirror, captures real-time images around the vehicle through the camera, and displays these images on the in-vehicle display to provide the driver with a clearer and more comprehensive field of view. During the use of the vehicle, especially in the dark scene, when identifying the approaching vehicle and the following vehicle, the corresponding headlight target recognition is actually the corresponding dual-point light source imaging. The existing dual-point light source test and optimization algorithms cannot optimize the best imaging effect based on the actual scene changes, and cannot provide users with the best dual-point imaging. To address this problem, a new electronic rearview mirror dual-point light source image recognition optimization scheme needs to be proposed. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide an electronic rearview mirror dual-point light source image recognition optimization method and system, so as to at least solve the problem that the existing dual-point light source image recognition scheme cannot perform optimal imaging based on real-time environmental conditions.

[0005] In order to achieve the above-mentioned objectives, the first aspect of the present invention provides an electronic rearview mirror dual-point light source image recognition optimization method, the method comprising: collecting environmental information of the current driving scene, and matching the corresponding dual-point light source image recognition optimization scheme based on the environmental information; adjusting the camera parameters of the electronic rearview mirror based on the matched dual-point light source image recognition optimization scheme, and performing image acquisition based on the camera with adjusted parameters to obtain an image to be recognized; performing optimization processing on the image to be recognized based on the matched dual-point light source image recognition optimization scheme to obtain an optimized image; pushing the optimized image to the vehicle display module, and performing real-time display of the optimized image.

[0006] Optionally, the dual-point light source image recognition optimization scheme corresponding to the environmental information matching includes: generating a binary array based on the light intensity and temperature information indicated by the environmental information; performing a dual-point light source image recognition optimization scheme matching retrieval in a pre-built scheme library based on the binary data to obtain a dual-point light source image recognition optimization scheme with the closest similarity.

[0007] Optionally, the method also includes: constructing the solution library, including: simulating adaptive adjustment of light intensity and temperature information based on laboratory scenes, and constructing a binary array of corresponding light intensity and temperature information based on each adjustment to construct a first array sample set; based on the light intensity and temperature information of the corresponding driving scene recovered by each data communication vehicle, constructing a binary array of corresponding light intensity and temperature information based on each data collection to construct a second array sample set; integrating the first array sample set and the second array sample set to obtain a training integrated array sample set; constructing a training sample set based on the dual-point light source images corresponding to each binary array in the array sample set; based on the training samples, performing light spot recognition processing on each dual-point light source image, and determining the spot halo size of each dual-point light source image based on the recognition result; determining the camera parameter optimization solution for the corresponding scene based on the spot halo size of each dual-point light source image, and constructing a solution library based on all results.

[0008] Optionally, based on the training samples, light spot recognition processing is performed on each dual-point light source image, and the size of the light source halo of each dual-point light source image is determined based on the recognition result, including: performing grayscale processing on the dual-point light source image to obtain a grayscale image; performing smoothing filtering processing on the grayscale image, and performing threshold segmentation processing on the smoothing filtered grayscale image to obtain a segmented image; marking spot areas on the segmented image and outputting a spot marked image; performing halo area recognition in the spot marked image, and calculating the halo based on area.

[0009] Optionally, the spot area marking of the segmented image and outputting the spot marked image includes: performing corrosion and / or dilation processing on the segmented image to obtain a spot marked area; performing connected component analysis in the spot marked area, and marking the spots of two light source positions in the dual-point light source image based on the analysis results, and outputting the spot marked image; the halo area identification in the spot marked image and calculating the halo based on the area include: performing secondary threshold segmentation on the spot marked image to obtain the halo area; determining the single-pixel area scale based on the light source size of the dual-point light source; counting the number of pixels in the halo area, and calculating the area of ​​the halo area based on the number of pixels and the single-pixel area scale.

[0010] Optionally, the dual-point light source image recognition optimization scheme includes: a camera parameter optimization scheme and an image optimization scheme; wherein, the camera parameter optimization scheme and the image optimization scheme are respectively an exposure time optimization scheme and a camera gain optimization scheme; the camera gain optimization scheme includes: Gamma value optimization, 1tm optimization, and Sharpness optimization.

[0011] Optionally, the matching-based dual-point light source image recognition optimization scheme adjusts the camera parameters of the electronic rearview mirror, and performs image acquisition based on the camera with adjusted parameters to obtain an image to be recognized, including: adjusting the exposure parameters of the camera of the electronic rearview mirror based on the exposure time optimization scheme; based on the camera with adjusted exposure parameters, continuously acquiring scene images during vehicle driving, and when a light source target appears in the acquired image, performing video frame capture processing, and using the frame image containing the light source target as the image to be recognized.

[0012] Optionally, the matching-based dual-point light source image recognition optimization scheme performs optimization processing on the image to be recognized to obtain an optimized image, including: performing gamma value optimization, ltm optimization and sharpness optimization on the image to be recognized in sequence, and displaying the optimized image in real time based on the vehicle display module.

[0013] The second aspect of the present invention provides an electronic rearview mirror dual-point light source image recognition optimization system, the system comprising: an acquisition unit, used to acquire environmental information of the current driving scene, and match the corresponding dual-point light source image recognition optimization scheme based on the environmental information; an execution unit, used to adjust the camera parameters of the electronic rearview mirror based on the matched dual-point light source image recognition optimization scheme, and perform image acquisition based on the camera with adjusted parameters to obtain an image to be recognized; an optimization unit, used to perform optimization processing on the image to be recognized based on the matched dual-point light source image recognition optimization scheme to obtain an optimized image; and a push unit, used to push the optimized image to the vehicle display module to perform real-time display of the optimized image.

[0014] On the other hand, the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed on a computer, enables the computer to execute the above-mentioned electronic rearview mirror dual-point light source image recognition optimization method.

[0015] Through the above technical solution, the solution of the present invention has the following beneficial effects:

[0016] 1) Environmental information matching optimization scheme: By collecting the environmental information of the current driving scene and matching the corresponding dual-point light source image recognition optimization scheme, image recognition can be optimized according to the actual environmental conditions to improve recognition accuracy and efficiency.

[0017] 2) Camera parameter adjustment: Based on the matching optimization scheme, the camera parameters of the electronic rearview mirror can be adjusted to adapt the camera to different environmental conditions and provide clearer and more accurate image acquisition.

[0018] 3) Image optimization processing: Optimizing the image to be recognized can improve image quality, reduce noise and interference, and thus improve the accuracy and reliability of image recognition.

[0019] 4) Real-time display of optimized images: The optimized images are pushed to the vehicle display module in real time, allowing the driver to observe the optimized images in real time in the vehicle, improving driving experience and safety.

[0020] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0022] Figure 1 It is a flowchart of the steps of a method for optimizing the image recognition of a dual-point light source of an electronic rearview mirror provided by one embodiment of the present invention;

[0023] Figure 2 It is a system structure diagram of an electronic rearview mirror dual-point light source image recognition optimization system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0025] Figure 11 is a flowchart of a method for optimizing the image recognition of a dual-point light source of an electronic rearview mirror provided by an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides an electronic rearview mirror dual-point light source image recognition optimization method, the method comprising:

[0026] Step S10: Collecting environmental information of the current driving scene, and matching a corresponding dual-point light source image recognition optimization solution based on the environmental information.

[0027] Specifically, in the field of modern automotive technology, collecting environmental information of the current driving scene and matching the dual-point light source image recognition optimization solution based on this information is a forward-looking and innovative technological development. Through this solution, a smarter and more accurate electronic rearview mirror system can be realized, providing drivers with a safer and more convenient driving experience. First of all, collecting environmental information of the current driving scene is a key step. By using various sensors and cameras, the system can obtain environmental information around the vehicle in real time, including road conditions, traffic conditions, light intensity, etc. These data can provide an accurate basis for subsequent image recognition and processing, enabling the system to make corresponding adjustments and optimizations based on actual conditions.

[0028] The dual-point light source image recognition optimization scheme based on the environmental information matching is a key step in personalized optimization for image recognition needs in different environments. By analyzing and matching environmental information, the system can select the image recognition optimization scheme that best suits the current scene, such as adjusting image brightness, contrast, color saturation and other parameters to ensure clear and accurate image recognition results under various lighting conditions.

[0029] The beneficial effects of this program include but are not limited to the following:

[0030] 1) Improve image recognition accuracy: By matching the optimization solution according to real-time environmental information, the accuracy and stability of image recognition can be effectively improved, and the cases of misidentification and missed identification can be reduced, thereby improving the driver's perception of the surrounding environment.

[0031] 2) Enhanced driving safety: The optimized image recognition solution can help the driver see the situation around the vehicle more clearly, detect potential dangers in time, and take action in advance, thereby improving driving safety and reducing the occurrence of traffic accidents.

[0032] 3) Improve driving comfort: Accurate image recognition and optimization processing can make the driver easier and more comfortable during driving, reduce visual fatigue and stress, and improve the driving experience.

[0033] 4) Intelligent driving assistance: The optimization solution based on environmental information matching gives the electronic rearview mirror system an intelligent driving assistance function, enabling the driver to better cope with complex traffic environments and improve driving efficiency and convenience.

[0034] Preferably, the dual-point light source image recognition optimization scheme corresponding to the environmental information matching includes: generating a binary array based on the light intensity and temperature information indicated by the environmental information; performing a dual-point light source image recognition optimization scheme matching retrieval in a pre-built scheme library based on the binary data to obtain a dual-point light source image recognition optimization scheme with the closest similarity.

[0035] In an embodiment of the present invention, the light and temperature of the environment will affect the performance and imaging effect of the optical system. Based on this feature, the scheme of the present invention needs to fully consider the influencing factors of these two schemes when performing dual-point light source image recognition optimization, so as to execute the best imaging optimization scheme for the current scene. Based on this, the scheme of the present invention first collects the light intensity and temperature information of the scene, and then generates a corresponding binary array based on the collected information, so as to perform subsequent optimal scheme matching based on the binary array.

[0036] Furthermore, the method also includes: constructing the solution library, including: simulating adaptive adjustment of light intensity and temperature information based on laboratory scenes, and constructing a binary array of corresponding light intensity and temperature information based on each adjustment, to construct a first array sample set; based on the light intensity and temperature information of the corresponding driving scene recovered by each data communication vehicle, constructing a binary array of corresponding light intensity and temperature information based on each data collection, to construct a second array sample set; integrating the first array sample set and the second array sample set to obtain a training integrated array sample set; constructing a training sample set based on the dual-point light source images corresponding to each binary array in the array sample set; based on the training samples, performing light spot recognition processing on each dual-point light source image, and determining the spot halo size of each dual-point light source image based on the recognition result; determining the camera parameter optimization solution for the corresponding scene based on the spot halo size of each dual-point light source image, and constructing a solution library based on all results.

[0037] In an embodiment of the present invention, for the completeness of the solution library, the solution of the present invention collects sample data from two aspects, namely, laboratory scenes and real scenes. In the laboratory scene, a simulated dual-point light source is constructed, and then the scene light intensity and temperature information are adaptively adjusted, and a target dual-point light source image acquisition is performed after each adjustment. In the actual scene, real scene images are acquired through the vehicle terminals connected to the server, and then the images collected in the real scene are annotated with images of vehicle headlights. The annotated images are used as sample images, and the light intensity information and temperature information at the image sampling moment are synchronously determined. A complete solution library is constructed through training samples obtained from laboratory scenes and training samples based on real scenes. Furthermore, the solution library can also be continuously updated based on new scene images in the future.

[0038] Furthermore, based on the training samples, light spot recognition processing is performed on each dual-point light source image, and the size of the light source halo of each dual-point light source image is determined based on the recognition result, including: performing grayscale processing on the dual-point light source image to obtain a grayscale image; performing smoothing filtering processing on the grayscale image, and performing threshold segmentation processing on the smoothing filtered grayscale image to obtain a segmented image; marking the spot area of ​​the segmented image and outputting a spot marked image; performing halo area recognition in the spot marked image, and calculating the halo based on area.

[0039] In the embodiment of the present invention, the following steps are specifically included:

[0040] 1) Grayscale the image: Grayscale processing of an image is the process of converting a color image into a grayscale image, that is, converting the RGB (red, green, and blue) channel value of each pixel into a single grayscale value. This processing can simplify the image processing process, reduce the amount of calculation, and retain the main features of the image. First, obtain color image data from an input source (such as a camera, file, etc.). Color images usually consist of three channels: red, green, and blue. For each pixel, the values ​​of its RGB channels are weighted averaged according to certain weights to obtain a grayscale value. The corresponding grayscale formula is: Gray = 0.299*R + 0.587*G + 0.114*B, and these weights are determined based on the sensitivity of the human eye to different colors. Grayscale values ​​are usually between 0 and 255, representing different grayscale levels from black to white. After grayscale processing, it may be necessary to adjust the range of the grayscale value to ensure that the grayscale values ​​of all pixels are within the appropriate range. Recombine the grayscale values ​​of each pixel into a grayscale image. Grayscale images have only one channel and each pixel has only one grayscale value, so grayscale images take up less storage space than color images. Finally, the grayscale image can be displayed on the screen or saved as a file for subsequent processing or analysis. By graying, the complexity of image processing can be simplified, the amount of calculation can be reduced, and the main features of the image can be retained.

[0041] 2) Image smoothing filtering: Image smoothing filtering is a commonly used image processing technique used to reduce noise in an image and smooth the details of the image. Smoothing filtering can help improve image quality and make the image easier to process and analyze. First, the grayscale image is used as the image data that needs to be smoothed. Select an appropriate smoothing filter. Common smoothing filters include mean filters, Gaussian filters, median filters, etc. Different filters have different smoothing effects and applicable scenarios. Apply the selected filter to each pixel of the image. The filter is usually a small matrix. The smoothing effect is achieved by sliding the matrix on the image and taking a weighted average of the surrounding pixels. When sliding the filter, the processing of boundary pixels needs to be considered. Use different boundary processing methods, such as filling boundary pixels, ignoring boundary pixels, or using a specific boundary processing algorithm. Adjust the filter parameters, such as filter size, weight, etc. as needed to achieve the best smoothing effect. Recombine the filtered pixels into a smoothed image. Smoothed images usually have less noise and details and are more suitable for subsequent processing or analysis. Finally, save the smoothed image as a file for subsequent processing or analysis. Through image smoothing filtering processing, the noise in the image can be effectively reduced, the details of the image can be smoothed, and the image quality can be improved.

[0042] 3) Image threshold segmentation processing: First, the image after smoothing filtering is used as the image data that needs to be processed by threshold segmentation. According to the characteristics and requirements of the image, select an appropriate threshold. The choice of threshold has a great influence on the segmentation result, and the optimal threshold can be determined by histogram analysis, experimental method and other methods. Apply the selected threshold to each pixel of the image and divide the pixels into two categories: above the threshold and below the threshold. This step can obtain a binary image containing only two pixel values. Post-process the segmented image, such as removing small areas, filling holes, connecting adjacent areas, etc., to obtain more accurate segmentation results and obtain spot segmentation results. Finally, the segmented image can be displayed on the screen or saved as a file for subsequent processing or analysis.

[0043] 4) Mark the spot area: In the image after threshold segmentation, the spot area is the area with specific features that is segmented out. By analyzing the segmented image, the location and shape of the spot area are found. Draw a bounding box or outline around the spot area to highlight the location and shape of the spot area. This can be achieved by drawing a rectangle, polygon or other shape on the image. In order to calibrate the spot area more clearly, add labels or annotations near the spot area to describe the content of the target.

[0044] Furthermore, the spot area marking of the segmented image and outputting the spot marked image includes: performing corrosion and / or dilation processing on the segmented image to obtain a spot marked area; performing connected component analysis in the spot marked area, and marking the spots of two light source positions in the dual-point light source image based on the analysis results, and outputting the spot marked image; the halo area identification in the spot marked image and calculating the halo based on the area include: performing secondary threshold segmentation on the spot marked image to obtain the halo area; determining the single-pixel area scale based on the light source size of the dual-point light source; counting the number of pixels in the halo area, and calculating the area of ​​the halo area based on the number of pixels and the single-pixel area scale.

[0045] In the embodiment of the present invention, in the obtained marking image, the halo of the spot area is often very large, which makes the distance between the two photoelectrics very small, and reduces the effect of distinguishing the dual point light sources. In order to solve this problem, the scheme of the present invention needs to identify the size of the halo, and perform the threshold segmentation process again to segment the spot center area and the halo area. Because the area of ​​the spot center area is known (related to the size of the light source), the area scale of a single pixel is determined by the known area of ​​the spot center, and then the size of the halo can be determined based on the number of pixels contained in the segmented halo area.

[0046] Step S20: Based on the matched dual-point light source image recognition optimization solution, the camera parameters of the electronic rearview mirror are adjusted, and image acquisition is performed based on the camera with adjusted parameters to obtain an image to be recognized.

[0047] Specifically, halo refers to the blurry or bright effect that appears around bright areas in images or photos. Long exposure time means that the lens receives more light, especially in the case of backlight or strong light source. Long exposure time will increase the possibility of halo effect. Long exposure time will cause the light to be reflected and scattered multiple times inside the lens, aggravating the halo effect and making the halo more obvious. Short exposure time means that the lens receives less light, reducing the possibility of halo effect. Short exposure time can reduce the number of reflections of light inside the lens, reduce the halo effect, and make the halo less obvious. However, too short exposure time will cause the camera's photosensitive element to receive insufficient light, making the image too dark and the details cannot be clearly displayed. Therefore, if you want to reduce the sound while ensuring that the collected image has sufficient ability to identify the characteristics of the spot area, it is necessary to adjust the exposure time of the external light halo. Based on this, the point light source image recognition optimization scheme of the present invention includes: a camera parameter optimization scheme and an image optimization scheme; the camera parameter optimization scheme is an exposure time optimization scheme.

[0048] In a possible implementation, for a CMS camera, the frame rate is generally 50 fps or 60 fps, so the maximum exposure time is 20 ms or 16.6 ms. Appropriately controlling the exposure time is beneficial to reducing the size of the halo.

[0049] Step S30: Based on the matched dual-point light source image recognition optimization solution, the image to be recognized is optimized to obtain an optimized image.

[0050] Specifically, in addition to improving halo by shortening the exposure time during image acquisition, the solution of the present invention also improves halo by adjusting the gain during the image backend processing process. The halo effect is reduced by adjusting parameters such as contrast and brightness.

[0051] Furthermore, sharpness optimization refers to enhancing the clarity and details of an image through a series of technologies and methods, making the image look clearer and sharper. Image clarity refers to the clarity of the edges and details of objects in the image, which affects the visual quality and recognition ability of the image. The present invention implements the sharpness optimization method through the following steps:

[0052] 1) Sharpening Filters: By applying sharpening filters (such as Laplacian filters) to enhance the edges and details of the image and highlight the subtle changes in the image, the clarity of the image is improved.

[0053] 2) Local Contrast Enhancement: By enhancing the contrast of local areas of the image, the details in the image can be made more prominent, thereby improving the clarity and visual effect of the image.

[0054] 3) Super-Resolution Reconstruction: Super-resolution technology is used to reconstruct low-resolution images into high-resolution images, thereby enhancing the clarity and details of the image.

[0055] 4) Deblurring: Remove the blur effect in the image, restore the clarity and details of the image, and make the image look clearer and sharper.

[0056] 5) Local Detail Enhancement: Perform detail enhancement on specific areas or features in the image to highlight important details in the image and improve image clarity and quality.

[0057] In the embodiment of the present invention, by applying the above-mentioned Sharpness optimization method, the visual quality of the image can be improved, making the image clearer and sharper.

[0058] Step S40: Push the optimized image to the vehicle display module to perform real-time display of the optimized image.

[0059] Specifically, based on the environmental information of the current scene, after the corresponding optimization plan is selected, the collected video stream information is optimized in real time, and then the optimization results are displayed in real time, so that the display module on the vehicle side always displays the most optimized dual-point light source imaging image, ensuring the user experience and driving safety.

[0060] Figure 2 1 is a system structure diagram of an electronic rearview mirror dual-point light source image recognition optimization system provided by an embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention provides an electronic rearview mirror dual-point light source image recognition optimization system, the system comprising:

[0061] The acquisition unit is used to acquire environmental information of the current driving scene and match the corresponding dual-point light source image recognition optimization scheme based on the environmental information.

[0062] Specifically, the dual-point light source image recognition optimization scheme corresponding to the environmental information matching includes: generating a binary array based on the light intensity and temperature information indicated by the environmental information; performing a dual-point light source image recognition optimization scheme matching retrieval in a pre-built scheme library based on the binary data to obtain a dual-point light source image recognition optimization scheme with the closest similarity.

[0063] In an embodiment of the present invention, the light and temperature of the environment will affect the performance and imaging effect of the optical system. Based on this feature, the scheme of the present invention needs to fully consider the influencing factors of these two schemes when performing dual-point light source image recognition optimization, so as to execute the best imaging optimization scheme for the current scene. Based on this, the scheme of the present invention first collects the light intensity and temperature information of the scene, and then generates a corresponding binary array based on the collected information, so as to perform subsequent optimal scheme matching based on the binary array.

[0064] Furthermore, the method also includes: constructing the solution library, including: simulating adaptive adjustment of light intensity and temperature information based on laboratory scenes, and constructing a binary array of corresponding light intensity and temperature information based on each adjustment, to construct a first array sample set; based on the light intensity and temperature information of the corresponding driving scene recovered by each data communication vehicle, constructing a binary array of corresponding light intensity and temperature information based on each data collection, to construct a second array sample set; integrating the first array sample set and the second array sample set to obtain a training integrated array sample set; constructing a training sample set based on the dual-point light source images corresponding to each binary array in the array sample set; based on the training samples, performing light spot recognition processing on each dual-point light source image, and determining the spot halo size of each dual-point light source image based on the recognition result; determining the camera parameter optimization solution for the corresponding scene based on the spot halo size of each dual-point light source image, and constructing a solution library based on all results.

[0065] In an embodiment of the present invention, for the completeness of the solution library, the solution of the present invention collects sample data from two aspects, namely, laboratory scenes and real scenes. In the laboratory scene, a simulated dual-point light source is constructed, and then the scene light intensity and temperature information are adaptively adjusted, and a target dual-point light source image acquisition is performed after each adjustment. In the actual scene, real scene images are acquired through the vehicle terminals connected to the server, and then the images collected in the real scene are annotated with images of vehicle headlights. The annotated images are used as sample images, and the light intensity information and temperature information at the image sampling moment are synchronously determined. A complete solution library is constructed through training samples obtained from laboratory scenes and training samples based on real scenes. Furthermore, the solution library can also be continuously updated based on new scene images in the future.

[0066] Furthermore, based on the training samples, light spot recognition processing is performed on each dual-point light source image, and the size of the light source halo of each dual-point light source image is determined based on the recognition result, including: performing grayscale processing on the dual-point light source image to obtain a grayscale image; performing smoothing filtering processing on the grayscale image, and performing threshold segmentation processing on the smoothing filtered grayscale image to obtain a segmented image; marking the spot area of ​​the segmented image and outputting a spot marked image; performing halo area recognition in the spot marked image, and calculating the halo based on area.

[0067] In the embodiment of the present invention, the following steps are specifically included:

[0068] 1) Perform grayscale processing on the image: Grayscale processing of an image is the process of converting a color image into a grayscale image, that is, converting the RGB (red, green, and blue) channel value of each pixel into a single grayscale value. This processing can simplify the image processing process, reduce the amount of calculation, and retain the main features of the image. First, obtain color image data from an input source (such as a camera, file, etc.). A color image usually consists of three channels: red, green, and blue. For each pixel, the values ​​of its RGB channels are weighted averaged according to certain weights to obtain a grayscale value. The corresponding grayscale formula is: Gray = 0.299*R+0.587*G+0.114*B. These weights are determined based on the sensitivity of the human eye to different colors. Grayscale values ​​are usually between 0 and 255, representing different grayscale levels from black to white. After grayscale processing, it may be necessary to adjust the range of the grayscale value to ensure that the grayscale values ​​of all pixels are within the appropriate range. The grayscale values ​​of each pixel are recombined into a grayscale image. Grayscale images have only one channel and each pixel has only one grayscale value, so grayscale images take up less storage space than color images. Finally, the grayscale image can be displayed on the screen or saved as a file for subsequent processing or analysis. By graying, the complexity of image processing can be simplified, the amount of calculation can be reduced, and the main features of the image can be retained.

[0069] 2) Image smoothing filtering: Image smoothing filtering is a commonly used image processing technique used to reduce noise in an image and smooth the details of the image. Smoothing filtering can help improve image quality and make the image easier to process and analyze. First, the grayscale image is used as the image data that needs to be smoothed. Select an appropriate smoothing filter. Common smoothing filters include mean filters, Gaussian filters, median filters, etc. Different filters have different smoothing effects and applicable scenarios. Apply the selected filter to each pixel of the image. The filter is usually a small matrix. The smoothing effect is achieved by sliding the matrix on the image and taking a weighted average of the surrounding pixels. When sliding the filter, the processing of boundary pixels needs to be considered. Use different boundary processing methods, such as filling boundary pixels, ignoring boundary pixels, or using a specific boundary processing algorithm. Adjust the filter parameters, such as filter size, weight, etc. as needed to achieve the best smoothing effect. Recombine the filtered pixels into a smoothed image. Smoothed images usually have less noise and details and are more suitable for subsequent processing or analysis. Finally, save the smoothed image as a file for subsequent processing or analysis. Through image smoothing filtering processing, the noise in the image can be effectively reduced, the details of the image can be smoothed, and the image quality can be improved.

[0070] 3) Image threshold segmentation processing: First, the image after smoothing filtering is used as the image data that needs to be processed by threshold segmentation. According to the characteristics and requirements of the image, select an appropriate threshold. The choice of threshold has a great influence on the segmentation result, and the optimal threshold can be determined by histogram analysis, experimental method and other methods. Apply the selected threshold to each pixel of the image and divide the pixels into two categories: above the threshold and below the threshold. This step can obtain a binary image containing only two pixel values. Post-process the segmented image, such as removing small areas, filling holes, connecting adjacent areas, etc., to obtain more accurate segmentation results and obtain spot segmentation results. Finally, the segmented image can be displayed on the screen or saved as a file for subsequent processing or analysis.

[0071] 4) Mark the spot area: In the image after threshold segmentation, the spot area is the area with specific features that is segmented out. By analyzing the segmented image, the location and shape of the spot area are found. Draw a bounding box or outline around the spot area to highlight the location and shape of the spot area. This can be achieved by drawing a rectangle, polygon or other shape on the image. In order to calibrate the spot area more clearly, add labels or annotations near the spot area to describe the content of the target.

[0072] Furthermore, the spot area marking of the segmented image and outputting the spot marked image includes: performing corrosion and / or dilation processing on the segmented image to obtain a spot marked area; performing connected component analysis in the spot marked area, and marking the spots of two light source positions in the dual-point light source image based on the analysis results, and outputting the spot marked image; the halo area identification in the spot marked image and calculating the halo based on the area include: performing secondary threshold segmentation on the spot marked image to obtain the halo area; determining the single-pixel area scale based on the light source size of the dual-point light source; counting the number of pixels in the halo area, and calculating the area of ​​the halo area based on the number of pixels and the single-pixel area scale.

[0073] In the embodiment of the present invention, in the obtained marking image, the halo of the spot area is often very large, which makes the distance between the two photoelectrics very small, and reduces the effect of distinguishing the dual point light sources. In order to solve this problem, the scheme of the present invention needs to identify the size of the halo, and perform the threshold segmentation process again to segment the spot center area and the halo area. Because the area of ​​the spot center area is known (related to the size of the light source), the area scale of a single pixel is determined by the known area of ​​the spot center, and then the size of the halo can be determined based on the number of pixels contained in the segmented halo area.

[0074] The execution unit is used to adjust the camera parameters of the electronic rearview mirror based on the matched dual-point light source image recognition optimization solution, and perform image acquisition based on the camera with adjusted parameters to obtain an image to be recognized.

[0075] Specifically, halo refers to the blurry or bright effect that appears around bright areas in images or photos. Long exposure time means that the lens receives more light, especially in the case of backlight or strong light source. Long exposure time will increase the possibility of halo effect. Long exposure time will cause light to reflect and scatter multiple times inside the lens, aggravate the halo effect, and make the halo more obvious. Short exposure time means that the lens receives less light, which reduces the possibility of halo effect. Short exposure time can reduce the number of reflections of light inside the lens, reduce the halo effect, and make the halo less obvious. However, too short exposure time will cause insufficient light to be received by the camera's photosensitive element, making the image too dark and the details cannot be clearly displayed. Therefore, if you want to reduce the influence of halo, you must ensure that the collected image has sufficient ability to identify the characteristics of the spot area, and you need to adjust the appropriate exposure time. Based on this, the point light source image recognition optimization scheme of the present invention includes: a camera parameter optimization scheme and an image optimization scheme; the camera parameter optimization scheme is an exposure time optimization scheme.

[0076] The optimization unit is used to perform optimization processing on the image to be identified based on the matched dual-point light source image recognition optimization scheme to obtain an optimized image.

[0077] Specifically, in addition to improving halo by shortening the exposure time during image acquisition, the solution of the present invention will also improve halo by adjusting the gain during the image backend processing. The halo effect is mitigated by adjusting parameters such as contrast and brightness. Gamma value optimization refers to adjusting the Gamma value in image processing to optimize the brightness and contrast of the image. In digital image processing, the Gamma value is usually used to correct the nonlinear response of the display device so that the image can more accurately show the brightness and color of the original scene when displayed. Gamma value optimization can help adjust the overall brightness and contrast of the image, making the image look clearer and more natural.

[0078] Furthermore, "ltm optimization" in camera gain refers to "Local Tone Mapping optimization". Local tone mapping is a technique for enhancing local details and contrast of an image, and is commonly used in image processing and computational photography. Local tone mapping technology aims to adjust the local contrast of an image so that the details in the image are clearer and more prominent. By applying different tone mapping functions in different areas, the local details of the image can be enhanced, thereby improving the visual effect of the image. Applying local tone mapping optimization in camera gain can help improve the quality and detail of the image, especially in images taken in low light conditions. This optimization can make the image better show both dark and bright details, thereby improving the overall visual effect.

[0079] Furthermore, sharpness optimization refers to enhancing the clarity and details of an image through a series of technologies and methods, making the image look clearer and sharper. Image clarity refers to the clarity of the edges and details of objects in the image, which affects the visual quality and recognition ability of the image. The present invention implements the sharpness optimization method through the following steps:

[0080] 1) Sharpening Filters: By applying sharpening filters (such as Laplacian filters) to enhance the edges and details of the image and highlight the subtle changes in the image, the clarity of the image is improved.

[0081] 2) Local Contrast Enhancement: By enhancing the contrast of local areas of the image, the details in the image can be made more prominent, thereby improving the clarity and visual effect of the image.

[0082] 3) Super-Resolution Reconstruction: Super-resolution technology is used to reconstruct low-resolution images into high-resolution images, thereby enhancing the clarity and details of the image.

[0083] 4) Deblurring: Remove the blur effect in the image, restore the clarity and details of the image, and make the image look clearer and sharper.

[0084] 5) Local Detail Enhancement: Perform detail enhancement on specific areas or features in the image to highlight important details in the image and improve image clarity and quality.

[0085] In the embodiment of the present invention, by applying the above-mentioned Sharpness optimization method, the visual quality of the image can be improved, making the image clearer and sharper, thereby significantly improving the halo phenomenon.

[0086] The push unit is used to push the optimized image to the vehicle display module and perform real-time display of the optimized image.

[0087] Specifically, based on the environmental information of the current scene, after the corresponding optimization plan is selected, the collected video stream information is optimized in real time, and then the optimization results are displayed in real time, so that the display module on the vehicle side always displays the most optimized dual-point light source imaging image, ensuring the user experience and driving safety.

[0088] The embodiment of the present invention further provides a computer-readable storage medium, on which instructions are stored, which, when executed on a computer, enable the computer to execute the above-mentioned electronic rearview mirror dual-point light source image recognition optimization method.

[0089] Those skilled in the art will understand that all or part of the steps in the method for implementing the above-mentioned embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a single-chip microcomputer, a chip or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0090] The optional embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above embodiments. Within the technical concept of the embodiments of the present invention, the technical scheme of the embodiments of the present invention can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the embodiments of the present invention. It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.

[0091] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed in the embodiments of the present invention.

Claims

1. An optimization method for image recognition of dual-point light sources in electronic rearview mirrors. It is characterized in that The method comprises: Collecting environmental information of the current driving scene, and matching the corresponding dual-point light source image recognition optimization scheme based on the environmental information; Based on the matched dual-point light source image recognition optimization solution, the camera parameters of the electronic rearview mirror are adjusted, and image acquisition is performed based on the camera with adjusted parameters to obtain the image to be recognized; Based on the matched dual-point light source image recognition optimization scheme, performing optimization processing on the image to be recognized to obtain an optimized image; Push the optimized image to the vehicle display module and perform real-time display of the optimized image.

2. The method according to claim 1, It is characterized in that The dual-point light source image recognition optimization solution based on the environmental information matching corresponding to the dual-point light source image recognition optimization solution includes: Generate a binary array based on the light intensity and temperature information indicated by the environmental information; Based on the binary data, a matching search for dual-point light source image recognition optimization solutions is performed in a pre-built solution library to obtain a dual-point light source image recognition optimization solution with the closest similarity.

3. The method according to claim 2, It is characterized in that The method further comprises: Constructing the solution library includes: Performing simulated adaptive adjustment of light intensity and temperature information based on a laboratory scene, and constructing a binary array corresponding to the light intensity and temperature information based on each adjustment to construct a first array sample set; Based on the light intensity and temperature information of the corresponding driving scene collected by each data communication vehicle, a binary array of the corresponding light intensity and temperature information is constructed based on each data collection, and a second array sample set is constructed; Integrate the first array sample set and the second array sample set to obtain a training integrated array sample set; Constructing a training sample set based on the dual point light source images corresponding to each binary array in the array sample set; Based on the training samples, performing light spot recognition processing on each dual-point light source image, and determining the spot halo size of each dual-point light source image based on the recognition result; The camera parameter optimization scheme for the corresponding scene is determined based on the spot halo size of each dual-point light source image, and a scheme library is built based on all the results.

4. The method according to claim 3, It is characterized in that The step of performing light spot recognition processing on each dual-point light source image based on the training samples and determining the light source halo size of each dual-point light source image based on the recognition result includes: Performing grayscale processing on the dual point light source image to obtain a grayscale image; Performing smoothing filtering on the grayscale image, and performing threshold segmentation on the grayscale image subjected to the smoothing filtering to obtain a segmented image; Mark the spot areas of the segmented image and output the spot marked image; Halo regions are identified in the spot marking image and halo based areas are calculated.

5. The method according to claim 4, It is characterized in that The step of marking the spot regions of the segmented image and outputting the spot marked image comprises: Performing erosion and / or dilation processing on the segmented image to obtain a spot marking area; In the spot marking area, performing connected component analysis, performing spot marking of two light source positions in the dual-point light source image based on the analysis result, and outputting a spot marking image; The step of identifying the halo region in the spot mark image and calculating the halo based on the area includes: Perform secondary threshold segmentation on the spot-marked image to obtain the halo region; Determine the single pixel area scale based on the light source size of the dual point light sources; The number of pixels in the halo region is counted, and the area of ​​the halo region is calculated based on the number of pixels and the single pixel area scale.

6. The method according to claim 1, It is characterized in that The dual-point light source image recognition optimization solution includes: Camera parameter optimization solution and image optimization solution; among them, The camera parameter optimization scheme and the image optimization scheme are respectively an exposure time optimization scheme and a camera gain optimization scheme; The camera gain optimization scheme includes: Gamma value optimization, ltm optimization, sharpness optimization.

7. The method according to claim 6, It is characterized in that The matching-based dual-point light source image recognition optimization scheme adjusts the camera parameters of the electronic rearview mirror, and performs image acquisition based on the camera after parameter adjustment to obtain the image to be recognized, including: Based on the exposure time optimization scheme, adjusting the exposure parameters of the camera of the electronic rearview mirror; Based on the camera with adjusted exposure parameters, scene images are continuously collected during vehicle driving. When a light source target appears in the collected image, video frame capture processing is performed, and the frame image containing the light source target is used as the image to be recognized.

8. The method according to claim 6, It is characterized in that The matching-based dual-point light source image recognition optimization scheme performs optimization processing on the image to be recognized to obtain an optimized image, including: Gamma value optimization, LTM optimization and Sharpness optimization are performed on the image to be recognized in sequence, and the optimized image is displayed in real time based on the vehicle display module.

9. An electronic rearview mirror dual point light source image recognition optimization system, It is characterized in that The system comprises: A collection unit, used to collect environmental information of the current driving scene, and match the corresponding dual-point light source image recognition optimization scheme based on the environmental information; An execution unit, used to adjust the camera parameters of the electronic rearview mirror based on the matched dual-point light source image recognition optimization scheme, and perform image acquisition based on the camera with adjusted parameters to obtain an image to be recognized; An optimization unit, configured to perform optimization processing on the image to be recognized based on a matched dual-point light source image recognition optimization scheme to obtain an optimized image; The push unit is used to push the optimized image to the vehicle display module and perform real-time display of the optimized image.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the electronic rearview mirror dual-point light source image recognition optimization method described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and apparatus for confirming indoor scene and outdoor scene

    CN106131376A

  • Moon shooting method and electronic equipment

    CN110913131A

  • Self-adaptive adjustment method and system for image shooting parameters and vehicle

    CN116614700A

  • Adapting an optical image stabilizer on a camera

    EP2733922A1

  • Image processing method and image processing apparatus

    WO2022021999A1