Vehicle surround view brightness compensation method and system considering display time sequence
By calculating regional and temporal brightness compensation coefficients in the vehicle surround view system, the vehicle surround view image is compensated in real time, which solves the problem of insufficient brightness compensation in the existing technology and improves driving safety and experience.
Patent Information
- Application Number
- CN202410697088.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-27
AI Technical Summary
When existing vehicle surround-view systems process images collected by multiple cameras, brightness compensation mainly relies on overlapping area calculations and fails to effectively consider brightness differences in display timing, making it difficult for drivers to judge the surrounding environment during driving and causing safety issues. Hidden danger.
This paper proposes a vehicle surround view brightness compensation method that considers display timing. By calculating the regional brightness compensation coefficient and timing brightness compensation coefficient of each vehicle camera, the corresponding image is compensated in real time and the continuity of image brightness adjustment is optimized.
It effectively balances the overall brightness of the vehicle's surrounding image, solves the brightness difference problem between image data at adjacent moments, improves the driver's real-time understanding of the vehicle's surrounding environment, and improves driving safety and experience.
Smart Images

Figure CN118710568A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and more specifically, to a vehicle surround view brightness compensation method and system taking display timing into consideration. Background Art
[0002] With the development of intelligent vehicles, more and more cars are equipped with surround monitoring systems. The surround monitoring system uses multiple cameras to collect images around the vehicle, and then stitches them into a 360-degree surround view around the vehicle body, so that the driver can understand the safety conditions around the vehicle body. Since the installation angles, lighting conditions and exposure levels of each camera are different, there will be obvious differences in the brightness of the areas collected by different cameras in the surround stitching image, which will cause certain interference to the driver's judgment of the road conditions.
[0003] The existing brightness compensation solutions for the top view and 360-degree surround view of the vehicle AVM function generally only consider the brightness compensation of the image data fusion of different cameras at the current moment, and most of them only calculate the brightness compensation coefficient based on the overlapping area, and rarely involve the brightness compensation in the display image sequence. When the lighting difference in the areas covered by the various cameras of the vehicle is too large, it is very likely to affect the driver's judgment of the surrounding environment during driving, thus causing safety hazards.
[0004] At present, the brightness compensation method for display screen timing usually selectively calculates the brightness of the display screen within a certain period of time. For example, an existing patent document discloses a brightness compensation method, a brightness compensation device and a display device. However, this method has the following defects: 1) Selectively performing brightness compensation on some continuous frames may cause the display screen to flicker; 2) Using the frequency change mode as a condition for whether the brightness compensation is satisfied is not very applicable when displaying the spliced image. Summary of the invention
[0005] In order to overcome the defect that most of the above-mentioned prior arts perform brightness compensation based on overlapping areas and do not perform brightness compensation for the display image timing, thereby causing large brightness differences between images of different cameras and adjacent moments, the present invention provides a vehicle surround view brightness compensation method and system taking display timing into consideration, which not only compensates for the overall image brightness of cameras at different positions at the same time, but also performs brightness compensation for two or more adjacent frames of image data in timing, thereby optimizing the continuity of image brightness adjustment and improving driving safety and driving experience.
[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0007] A vehicle surround view brightness compensation method considering display timing comprises the following steps:
[0008] S1: respectively collect the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment;
[0009] S2: Calculating the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment;
[0010] Calculate the time series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment;
[0011] S3: using the regional brightness compensation coefficient of each vehicle-mounted camera to respectively perform real-time compensation on the image of the corresponding vehicle-mounted camera to obtain an image of each vehicle-mounted camera after regional brightness compensation;
[0012] Using the time-series brightness compensation coefficient of each vehicle-mounted camera, respectively, the image after the brightness compensation of the corresponding area is compensated again in real time to obtain the image after the compensation of each vehicle-mounted camera;
[0013] S4: stitching the images after compensation by each vehicle-mounted camera in real time to obtain a vehicle surround view after brightness compensation;
[0014] In this method, two brightness compensation coefficients are first calculated using the original data, and the calculated brightness compensation coefficients can be directly used for the real-time brightness compensation of the subsequent vehicle camera image;
[0015] It is worth noting that after the brightness compensation coefficient is calculated using the original data, the original data is not modified, but is directly used as a fixed parameter for subsequent brightness compensation. This can greatly reduce the calculation time, improve the calculation efficiency and the real-time performance of image brightness compensation. When rendering the top view and surround view images at the end, the regional compensation coefficient can be used directly to compensate the corresponding camera image data, and then the timing compensation coefficient is used to perform brightness compensation calculations. Finally, the compensated images are spliced to obtain the vehicle top view and surround view after brightness compensation.
[0016] Preferably, in step S1, the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment are YUV images in UYVY format, where U and V of the YUV image represent chrominance components, and Y represents brightness component.
[0017] Preferably, in step S1, the number of vehicle-mounted cameras is 4, which are respectively used to capture images of the front, rear, left and right sides of the vehicle.
[0018] Preferably, in step S2, calculating the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment includes:
[0019] S2.1.1: extracting the brightness component of the original image of each vehicle-mounted camera at the current moment, and obtaining the brightness matrix of each vehicle-mounted camera respectively;
[0020] S2.1.2: Normalize and average the brightness matrix of each vehicle-mounted camera in turn to obtain the average value of each normalized brightness matrix;
[0021] S2.1.3: Calculate the regional brightness compensation coefficient of each vehicle-mounted camera based on the mean value of each normalized brightness matrix.
[0022] Preferably, in step S2.1.3, the regional brightness compensation coefficient of each vehicle-mounted camera is calculated according to the following formula:
[0023] f area,i =1+(Y a -Y i )
[0024]
[0025] Among them, f area,i is the regional brightness compensation coefficient of the i-th vehicle camera; Y i is the normalized brightness matrix mean of the i-th vehicle-mounted camera; n is the number of vehicle-mounted cameras.
[0026] Preferably, in step S2, calculating the time series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment includes:
[0027] S2.2.1: extracting the brightness component of the original image of each vehicle-mounted camera at the current moment and the brightness component of the displayed image of each vehicle-mounted camera at the previous moment, and respectively obtaining the brightness matrix of each vehicle-mounted camera at the current moment and the previous moment;
[0028] S2.2.2: Normalize the brightness matrix of each vehicle-mounted camera at the current moment and the previous moment respectively, and obtain the normalized brightness matrix of each vehicle-mounted camera at the current moment and the previous moment;
[0029] S2.2.3: For each on-board camera, use the Otsu algorithm to calculate the inter-class variance and intra-class variance between the normalized brightness matrices at the current moment and the previous moment;
[0030] S2.2.4: For each vehicle-mounted camera, calculate the temporal brightness compensation coefficient according to the inter-class variance and the intra-class variance.
[0031] Preferably, the step S2.2.3 comprises:
[0032] For each on-board camera, the Otsu algorithm is used to calculate the inter-class variance s between the normalized brightness matrices at the current moment and the previous moment according to the following formula: w 2 :
[0033] s w 2 =w0s0 2 +w1s1 2
[0034] Among them, w0 and w1 are the weights of the normalized brightness matrix at the current moment and the previous moment respectively; s0 2 and s1 2 are the variances of the normalized brightness matrices at the current moment and the previous moment respectively;
[0035] The intra-class variance s between the normalized brightness matrix at the current moment and the previous moment is calculated according to the following formula: b 2 :
[0036] s b 2 =w0(m0-m c ) 2 +w1(m1-m c ) 2
[0037] m c =w0m0+w1m1
[0038] Among them, m0 and m1 are the average values of the normalized brightness matrix at the current moment and the previous moment respectively; for m0 of the i-th camera, m0=Y i .
[0039] Preferably, the step S2.2.4 comprises:
[0040] For each vehicle camera, according to the inter-class variance s w 2 and the intra-class variance s b 2 Calculate the total discreteness s between the normalized brightness matrix at the current moment and the previous moment u :
[0041] s u =s w2 +s b 2
[0042] According to the total dispersion s u , calculate the temporal brightness compensation coefficient f brightness :
[0043] f brightness =1+(s u -T)
[0044] Wherein, T is the preset threshold.
[0045] Preferably, in step S3, obtaining the image after compensation of each vehicle-mounted camera includes:
[0046] Y used =Y raw ×f area ×f brightness
[0047] Among them, Y used The image after compensation of a single vehicle camera; Y raw is an image from a single vehicle camera without brightness compensation; f area is the regional brightness compensation coefficient of a single vehicle-mounted camera; f brightness It is the temporal brightness compensation coefficient of a single vehicle-mounted camera.
[0048] The present invention also provides a vehicle surround view brightness compensation system considering display timing, and the vehicle surround view brightness compensation method considering display timing is applied, comprising:
[0049] Data acquisition unit: used to respectively acquire the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment;
[0050] A compensation coefficient calculation unit: used to calculate the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment;
[0051] and for calculating the time series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment;
[0052] A brightness compensation unit: used to respectively use the regional brightness compensation coefficient of each vehicle-mounted camera to perform real-time compensation on the image of the corresponding vehicle-mounted camera, and obtain an image of each vehicle-mounted camera after regional brightness compensation;
[0053] and for respectively using the time-series brightness compensation coefficient of each vehicle-mounted camera to perform real-time compensation again on the image after brightness compensation of the corresponding area, so as to obtain the image after compensation of each vehicle-mounted camera;
[0054] Image stitching unit: used for stitching the compensated images of each vehicle-mounted camera in real time to obtain a surround view of the vehicle after brightness compensation.
[0055] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0056] The present invention provides a vehicle surround view brightness compensation method and system considering display timing, firstly, respectively collecting the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment; then, calculating the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment; calculating the time sequence brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment; finally, performing real-time brightness compensation on the image of each vehicle-mounted camera according to the regional brightness compensation coefficient of each vehicle-mounted camera and the time sequence brightness compensation coefficient, and obtaining the image after compensation of each vehicle-mounted camera; splicing the images after compensation of each vehicle-mounted camera, and obtaining the vehicle surround view after brightness compensation;
[0057] The algorithm proposed in the present invention for compensating for the overall image brightness of each camera can effectively and in real time balance the overall brightness of the vehicle's surround view image in the overhead view and 360-degree surround view of the AVM function; at the same time, the present invention also takes into account the brightness difference between adjacent displayed images in time sequence, which can effectively solve the brightness difference problem between image data at adjacent moments, optimize the continuity of image brightness adjustment, help the driver to understand the current vehicle surrounding environment in real time, and improve driving safety and driving experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A flow chart of a vehicle surround view brightness compensation method considering display timing provided in Example 1.
[0059] Figure 2 This is a schematic diagram of images of four vehicle-mounted cameras provided in Example 2.
[0060] Figure 3 This is a structural diagram of a vehicle surround view brightness compensation system that takes display timing into consideration, as provided in Example 3. DETAILED DESCRIPTION
[0061] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;
[0062] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;
[0063] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0064] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0065] Example 1
[0066] like Figure 1 As shown, this embodiment provides a vehicle surround view brightness compensation method considering display timing, comprising the following steps:
[0067] S1: respectively collect the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment;
[0068] S2: Calculating the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment;
[0069] Calculate the time series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment;
[0070] S3: using the regional brightness compensation coefficient of each vehicle-mounted camera to respectively perform real-time compensation on the image of the corresponding vehicle-mounted camera to obtain an image of each vehicle-mounted camera after regional brightness compensation;
[0071] Using the time-series brightness compensation coefficient of each vehicle-mounted camera, respectively, the image after the brightness compensation of the corresponding area is compensated again in real time to obtain the image after the compensation of each vehicle-mounted camera;
[0072] S4: stitching the compensated images of each vehicle-mounted camera in real time to obtain a surround view of the vehicle after brightness compensation.
[0073] In the specific implementation process, firstly, the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment are collected respectively; then, the regional brightness compensation coefficient of each vehicle-mounted camera is calculated respectively according to the original image of each vehicle-mounted camera at the current moment; the time-series brightness compensation coefficient of each vehicle-mounted camera is calculated according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment; finally, the image of each vehicle-mounted camera is brightness compensated in real time according to the regional brightness compensation coefficient and the time-series brightness compensation coefficient of each vehicle-mounted camera, and the image after brightness compensation of each vehicle-mounted camera is obtained; the images after brightness compensation of each vehicle-mounted camera are spliced to obtain the vehicle surround view after brightness compensation;
[0074] The algorithm proposed in this embodiment for compensating for the overall image brightness of each camera can effectively and in real time balance the overall brightness of the vehicle's surround view image in the overhead view and 360-degree surround view of the AVM function; at the same time, this method also takes into account the brightness difference between adjacent displayed images in time sequence, which can effectively solve the brightness difference problem between image data at adjacent moments, optimize the continuity of image brightness adjustment, help the driver to understand the current vehicle surrounding environment in real time, and improve driving safety and driving experience.
[0075] Example 2
[0076] This embodiment provides a vehicle surround view brightness compensation method considering display timing, including the following steps:
[0077] S1: respectively collect the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment;
[0078] In this embodiment, the number of vehicle-mounted cameras is 4, which are used to collect images of the front, rear, left and right sides of the vehicle respectively;
[0079] The original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment are both YUV images in UYVY format, where U and V of the YUV image represent chrominance components, and Y represents brightness component;
[0080] S2: Calculate the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment, specifically including:
[0081] S2.1.1: extracting the brightness component of the original image of each vehicle-mounted camera at the current moment, and obtaining the brightness matrix of each vehicle-mounted camera respectively;
[0082] S2.1.2: Normalize and average the brightness matrix of each vehicle-mounted camera in turn to obtain the average value of each normalized brightness matrix;
[0083] S2.1.3: Calculate the regional brightness compensation coefficient of each vehicle-mounted camera according to the mean value of each normalized brightness matrix; specifically, calculate the regional brightness compensation coefficient of each vehicle-mounted camera according to the following formula:
[0084] f area,i =1+(Y a -Y i )
[0085]
[0086] Among them, f area,i is the regional brightness compensation coefficient of the i-th vehicle camera; Y i is the normalized brightness matrix mean of the i-th vehicle camera; n is the number of vehicle cameras;
[0087] According to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment, the temporal brightness compensation coefficient of each vehicle-mounted camera is calculated, specifically including:
[0088] S2.2.1: extracting the brightness component of the original image of each vehicle-mounted camera at the current moment and the brightness component of the displayed image of each vehicle-mounted camera at the previous moment, and respectively obtaining the brightness matrix of each vehicle-mounted camera at the current moment and the previous moment;
[0089] S2.2.2: Normalize the brightness matrix of each vehicle-mounted camera at the current moment and the previous moment respectively, and obtain the normalized brightness matrix of each vehicle-mounted camera at the current moment and the previous moment;
[0090] S2.2.3: For each on-board camera, use the Otsu algorithm to calculate the inter-class variance s between the normalized brightness matrices at the current moment and the previous moment according to the following formula: w 2 :
[0091] s w 2 =w0s0 2 +w1s1 2
[0092] Wherein, w0 and w1 are the weights of the normalized brightness matrix at the current moment and the previous moment respectively. In this embodiment, w0 and w1 are both 0.5; s0 2 and s1 2 are the variances of the normalized brightness matrices at the current moment and the previous moment respectively;
[0093] The intra-class variance s between the normalized brightness matrix at the current moment and the previous moment is calculated according to the following formula: b 2 :
[0094] s b 2 =w0(m0-m c ) 2 +w1(m1-m c ) 2
[0095] m c =w0m0+w1m1
[0096] Wherein, m0 and m1 are respectively the average values of the normalized brightness matrix at the current moment and the previous moment; in this embodiment, for m0 of the i-th camera, m0=Y i ;
[0097] S2.2.4: For each vehicle camera, according to the inter-class variance s w 2 and the intra-class variance s b 2 Calculate the total discreteness s between the normalized brightness matrix at the current moment and the previous moment u :
[0098] s u =s w 2 +s b 2
[0099] According to the total dispersion s u , calculate the temporal brightness compensation coefficient f brightness :
[0100] f brightness =1+(s u -T)
[0101] Wherein, T is the preset threshold, generally 0.9 to 0.95;
[0102] S3: using the regional brightness compensation coefficient of each vehicle-mounted camera to respectively perform real-time compensation on the image of the corresponding vehicle-mounted camera to obtain an image of each vehicle-mounted camera after regional brightness compensation;
[0103] Using the time-series brightness compensation coefficient of each vehicle-mounted camera to compensate the corresponding regional brightness compensated image again in real time, and obtaining the compensated image of each vehicle-mounted camera, including:
[0104] Yused =Y raw ×f area ×f brightness
[0105] Among them, Y used The image after compensation of a single vehicle camera; Y raw is an image from a single vehicle camera without brightness compensation; f area is the regional brightness compensation coefficient of a single vehicle-mounted camera; f brightness is the temporal brightness compensation coefficient of a single vehicle-mounted camera;
[0106] S4: stitching the compensated images of each vehicle-mounted camera in real time to obtain a surround view of the vehicle after brightness compensation.
[0107] In the specific implementation process, the vehicle AVM top view and 360-degree surround view are realized based on the raw data of each vehicle-mounted camera. The raw data of the camera image is generally in UYVY format, where the U and V components represent chromaticity and the Y component represents brightness; Figure 2 As shown, in this embodiment, the number of vehicle-mounted cameras is 4, which are used to collect images of the front, rear, left and right of the vehicle respectively;
[0108] The input data of the brightness compensation algorithm is the brightness component of the original camera image data. First, the brightness component is extracted from the original camera image and combined into a matrix. The format of the original input image data is a matrix, and the dimensions are the length and width of the display screen multiplied by 2 (H×2, W×2), respectively, in the form of:
[0109]
[0110] According to the Y components extracted from the corresponding areas of each camera in the original image, they are combined into brightness component matrices. The dimension of each brightness component matrix is half the size of the display screen (H×0.5, W×0.5), and all the elements are the Y components of the original UYVY data. Suppose the brightness matrices corresponding to each camera are:
[0111]
[0112]
[0113]
[0114]
[0115] Among them, Matrix F 、Matrix R 、Matrix L and Matrix rThey are the brightness matrices of the front, rear, left and right vehicle cameras at the current moment;
[0116] The brightness component of the original camera data has a value of 0 to 255. First, normalize each brightness matrix element to 0 to 1:
[0117]
[0118] Among them, Matrix new is the normalized brightness matrix, Matrix raw is the brightness matrix before normalization, that is, Matrix raw Matrix F 、Matrix R 、Matrix L and Matrix r Any one of;
[0119] Then calculate the mean of each normalized brightness matrix:
[0120]
[0121] Among them, Y arerage is the mean of the normalized brightness matrix; Sum is the summation function; Num element Matrix new The number of elements in ;
[0122] Then calculate the regional brightness compensation coefficient for each on-board camera:
[0123] f F =1+(Y a -Y Fa )
[0124] f R =1+(Y a -Y Ra )
[0125] f L =1+(Y a -Y La )
[0126] f r =1+(Y a -Y ra )
[0127]
[0128] Among them, f F 、f R 、f L and f rare the regional brightness compensation coefficients of the on-board cameras in front, behind, left and right of the vehicle; Fa , Y Ra , Y La and Y ra They are the normalized brightness matrix averages of the on-board cameras in front, behind, left, and right of the vehicle;
[0129] After calculating the regional brightness compensation coefficient, it is also necessary to calculate the time series brightness compensation coefficient of each on-board camera. When the vehicle is driving, two adjacent frames of original images are saved in real time. After extracting the two frames of camera data in the time series from the memory, the brightness components are extracted from the original data and combined into a brightness matrix. The matrix dimension is the display image size (H×W);
[0130] The brightness compensation of two adjacent frames of images used for final rendering and display is essentially to reduce the discreteness between two matrices, where the matrix elements are all brightness components; the two adjacent frames of images refer to the image that has been used for display in the previous frame and the image that is currently to be output for display; the solution of the brightness compensation coefficient of the two adjacent frames of display images is based on the image currently used for display after the regional camera brightness compensation is performed;
[0131] For each on-board camera, the elements of the two brightness matrices are first normalized, and then the inter-class variance and intra-class variance of the two brightness matrices are solved using the Otsu Nobuyuki algorithm. The intra-class variance s w 2 The solution is as follows:
[0132] s w 2 =w0s0 2 +w1s1 2
[0133] Wherein, w0 and w1 are the weights of the normalized brightness matrix at the current moment and the previous moment respectively. In this embodiment, w0 and w1 are both 0.5; s0 2 and s1 2 are the variances of the normalized brightness matrices at the current moment and the previous moment respectively;
[0134] The intra-class variance s between the normalized brightness matrix at the current moment and the previous moment is calculated according to the following formula: b 2 :
[0135] s b 2 =w0(m0-m c ) 2 +w1(m1-m c ) 2
[0136] m c =w0m0+w1m1
[0137] Wherein, m0 and m1 are respectively the average values of the normalized brightness matrix at the current moment and the previous moment; in this embodiment, for m0 of the i-th camera, m0=Y i ;
[0138] Then according to the between-class variance s w 2 and the intra-class variance s b 2 Calculate the total discreteness s between the normalized brightness matrix at the current moment and the previous moment u :
[0139] s u =s w 2 +s b 2
[0140] According to the total dispersion s u , calculate the temporal brightness compensation coefficient f brightness :
[0141] f brightness =1+(s u -T)
[0142] Wherein, T is the preset threshold, generally 0.9 to 0.95;
[0143] Before the AVM top view and 360-degree surround view output the final display image, when calculating the brightness compensation of the original data, first determine which camera's image data the current pixel belongs to by passing the image texture coordinates into OPENGL, and use the corresponding regional brightness compensation coefficient (f area ) is multiplied by the original brightness component value to adjust the brightness component, and then the timing compensation coefficient is multiplied by the brightness components of all pixels to adjust:
[0144] Y used =Y raw ×f area ×f brightness
[0145] Among them, Y used The image after compensation of a single vehicle camera; Y raw is an image from a single vehicle camera without brightness compensation; f area is the regional brightness compensation coefficient of a single vehicle-mounted camera; f brightness is the temporal brightness compensation coefficient of a single vehicle-mounted camera;
[0146] In this method, two brightness compensation coefficients are first calculated using the original data, and the calculated brightness compensation coefficients can be directly used for the real-time brightness compensation of the subsequent vehicle camera image;
[0147] It is worth noting that after the brightness compensation coefficient is calculated using the original data, the original data is not modified, but directly used as a fixed parameter for subsequent brightness compensation, which can greatly reduce the calculation time, improve the calculation efficiency and the real-time performance of image brightness compensation;
[0148] After performing real-time brightness compensation on the image of each camera, all the brightness-compensated images are stitched together to obtain a surround view of the vehicle after brightness compensation;
[0149] This method can compensate for the image brightness of cameras (4-way cameras, 6-way cameras, etc.) at different positions at the same time based on the vehicle AVM or 360-degree surround view system, and compensate for two or more frames of image data adjacent in time sequence to optimize the continuity of image brightness adjustment;
[0150] The algorithm proposed in this embodiment for compensating for the overall image brightness of each camera can effectively and in real time balance the overall brightness of the vehicle's surround view image in the overhead view and 360-degree surround view of the AVM function; at the same time, this method also takes into account the brightness difference between adjacent displayed images in time sequence, which can effectively solve the brightness difference problem between image data at adjacent moments, optimize the continuity of image brightness adjustment, help the driver to understand the current vehicle surrounding environment in real time, and improve driving safety and driving experience.
[0151] Example 3
[0152] like Figure 3 As shown, this embodiment provides a vehicle surround view brightness compensation system considering display timing, and applies the vehicle surround view brightness compensation method considering display timing described in embodiment 1 or 2, including:
[0153] Data acquisition unit 301: used to respectively acquire the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment;
[0154] The compensation coefficient calculation unit 302 is used to calculate the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment;
[0155] and for calculating the time series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment;
[0156] The brightness compensation unit 303 is used to respectively use the regional brightness compensation coefficient of each vehicle-mounted camera to perform real-time compensation on the image of the corresponding vehicle-mounted camera, and obtain the image after regional brightness compensation of each vehicle-mounted camera;
[0157] and for respectively using the time-series brightness compensation coefficient of each vehicle-mounted camera to perform real-time compensation again on the image after brightness compensation of the corresponding area, so as to obtain the image after compensation of each vehicle-mounted camera;
[0158] The image stitching unit 304 is used to stitch the compensated images of each vehicle-mounted camera in real time to obtain a vehicle surround view after brightness compensation.
[0159] In the specific implementation process, first, the data acquisition unit 301 respectively acquires the original image of each vehicle-mounted camera at the current moment, and the display image of each vehicle-mounted camera at the previous moment;
[0160] Then, the brightness compensation coefficient calculation unit 302 calculates the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment; calculates the time-series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment;
[0161] Finally, the brightness compensation unit 303 performs real-time brightness compensation on the image of each vehicle-mounted camera according to the regional brightness compensation coefficient of each vehicle-mounted camera and the time-series brightness compensation coefficient, and obtains the image after the brightness compensation of each vehicle-mounted camera;
[0162] Finally, the image stitching unit 304 stitches the images after compensation by each vehicle-mounted camera in real time to obtain a vehicle surround view after brightness compensation;
[0163] This system can effectively and in real time balance the overall brightness of the vehicle's surround view image; at the same time, it can also effectively solve the brightness difference problem between image data at adjacent moments, optimize the continuity of image brightness adjustment, help the driver understand the current vehicle surrounding environment in real time, and improve driving safety and driving experience.
[0164] The same or similar reference numerals correspond to the same or similar components;
[0165] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;
[0166] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A vehicle surround view brightness compensation method considering display timing, characterized in that: The following steps are involved: S1: respectively collect the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment; S2: Calculating the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment; Calculate the time series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment; S3: using the regional brightness compensation coefficient of each vehicle-mounted camera to respectively perform real-time compensation on the image of the corresponding vehicle-mounted camera to obtain an image of each vehicle-mounted camera after regional brightness compensation; Using the time-series brightness compensation coefficient of each vehicle-mounted camera, respectively, the image after the brightness compensation of the corresponding area is compensated again in real time to obtain the image after the compensation of each vehicle-mounted camera; S4: stitching the compensated images of each vehicle-mounted camera in real time to obtain a surround view of the vehicle after brightness compensation.
2. The vehicle surround view brightness compensation method considering display timing according to claim 1, characterized in that: In the step S1, the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment are both YUV images in UYVY format, where U and V of the YUV image represent chrominance components, and Y represents brightness component.
3. The vehicle surround view brightness compensation method considering display timing according to claim 1, characterized in that: In step S1, there are four on-board cameras, which are respectively used to capture images of the front, rear, left and right sides of the vehicle.
4. The vehicle surround view brightness compensation method considering display timing according to claim 1, characterized in that: In step S2, according to the original image of each vehicle-mounted camera at the current moment, respectively calculating the regional brightness compensation coefficient of each vehicle-mounted camera includes: S2.1.1: extracting the brightness component of the original image of each vehicle-mounted camera at the current moment, and obtaining the brightness matrix of each vehicle-mounted camera respectively; S2.1.2: Normalize and average the brightness matrix of each vehicle-mounted camera in turn to obtain the average value of each normalized brightness matrix; S2.1.3: Calculate the regional brightness compensation coefficient of each vehicle-mounted camera based on the mean value of each normalized brightness matrix.
5. The vehicle surround view brightness compensation method considering display timing according to claim 4, characterized in that: In step S2.1.3, the regional brightness compensation coefficient of each vehicle-mounted camera is calculated according to the following formula: f area,i =1+(Y a -Y i ) Among them, f area,i is the regional brightness compensation coefficient of the i-th vehicle camera; Y i is the normalized brightness matrix mean of the i-th vehicle camera; n is the number of vehicle cameras.
6. The vehicle surround view brightness compensation method considering display timing according to claim 1, characterized in that: In step S2, according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment, calculating the time series brightness compensation coefficient of each vehicle-mounted camera includes: S2.2.1: extracting the brightness component of the original image of each vehicle-mounted camera at the current moment and the brightness component of the displayed image of each vehicle-mounted camera at the previous moment, and respectively obtaining the brightness matrix of each vehicle-mounted camera at the current moment and the previous moment; S2.2.2: Normalize the brightness matrix of each vehicle-mounted camera at the current moment and the previous moment respectively, and obtain the normalized brightness matrix of each vehicle-mounted camera at the current moment and the previous moment; S2.2.3: For each on-board camera, use the Otsu algorithm to calculate the inter-class variance and intra-class variance between the normalized brightness matrices at the current moment and the previous moment; S2.2.4: For each vehicle-mounted camera, calculate the temporal brightness compensation coefficient according to the inter-class variance and the intra-class variance.
7. The vehicle surround view brightness compensation method considering display timing according to claim 6, characterized in that: The step S2.2.3 comprises: For each on-board camera, the Otsu algorithm is used to calculate the inter-class variance s between the normalized brightness matrix at the current moment and the previous moment according to the following formula: w 2 : s w 2 =w0s0 2 +w1s1 2 Among them, w0 and w1 are the weights of the normalized brightness matrix at the current moment and the previous moment respectively; s0 2 and s1 2 are the variances of the normalized brightness matrices at the current moment and the previous moment respectively; The intra-class variance s between the normalized brightness matrix at the current moment and the previous moment is calculated according to the following formula: b 2 : s b 2 =w0(m0-m c ) 2 +w1(m1-m c ) 2 m c =w0m0+w1m1 Among them, m0 and m1 are the means of the normalized brightness matrices at the current moment and the previous moment respectively.
8. The vehicle surround view brightness compensation method considering display timing according to claim 7, characterized in that: The step S2.2.4 comprises: For each vehicle camera, according to the inter-class variance s w 2 and the intra-class variance s b 2 Calculate the total discreteness s between the normalized brightness matrix at the current moment and the previous moment u : s u =s w 2 +s b 2 According to the total dispersion s u , calculate the temporal brightness compensation coefficient f brightness : f brightness =1+(s u -T) Wherein, T is the preset threshold.
9. The vehicle surround view brightness compensation method considering display timing according to claim 1, characterized in that: In the step S3, obtaining the image after each vehicle-mounted camera has been compensated includes: AND used =And raw ×f area ×f brightness Among them, Y used The image after compensation of a single vehicle camera; Y raw is an image from a single vehicle camera without brightness compensation; f area is the regional brightness compensation coefficient of a single vehicle-mounted camera; f brightness It is the temporal brightness compensation coefficient of a single vehicle-mounted camera.
10. A vehicle surround view brightness compensation system considering display timing, using the vehicle surround view brightness compensation method considering display timing as claimed in any one of claims 1 to 9, characterized in that: include: Data acquisition unit: used to respectively acquire the original image of each vehicle-mounted camera at the current moment and the display image of each vehicle-mounted camera at the previous moment; A compensation coefficient calculation unit: used to calculate the regional brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment; and for calculating the time series brightness compensation coefficient of each vehicle-mounted camera according to the original image of each vehicle-mounted camera at the current moment and the displayed image of each vehicle-mounted camera at the previous moment; A brightness compensation unit: used to respectively use the regional brightness compensation coefficient of each vehicle-mounted camera to perform real-time compensation on the image of the corresponding vehicle-mounted camera, and obtain an image of each vehicle-mounted camera after regional brightness compensation; and for respectively using the time-series brightness compensation coefficient of each vehicle-mounted camera to perform real-time compensation again on the image after brightness compensation of the corresponding area, so as to obtain the image after compensation of each vehicle-mounted camera; Image stitching unit: used for stitching the compensated images of each vehicle-mounted camera in real time to obtain a surround view of the vehicle after brightness compensation.
Citation Information
Patent Citations
Brightness adjustment method and device of image to be spliced
CN102903086A
Brightness balancing method and system in vehicle-mounted surround view system
CN113658058A
Brightness compensation method and device for vehicle panoramic image
CN117319805A
Image processing method, image processing system, and non-transitory computer readable storage medium
US20230186442A1
Display device for vehicle
US20240071269A1
