Screen control method based on multi-source ambient light detection
By detecting and analyzing multi-source ambient light, the brightness, color temperature, and refresh rate of the in-vehicle screen are adjusted in real time, solving the problem of unclear display under multi-source ambient light interference and improving screen visibility and driving safety.
Patent Information
- Application Number
- CN202511357033.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-22
- Publication Date
- 2025-11-18
AI Technical Summary
Existing in-vehicle screens are not clear enough under multi-source ambient light interference, and the computational resources required to adjust brightness, color temperature and refresh rate in real time are large, making it difficult to achieve intelligent management.
By using a multi-source ambient light detection method, ambient light data and polarization angle are analyzed. Combined with the vehicle screen size and standard light sensor, grid data is calculated, and brightness, color temperature, refresh rate and polarizer angle are adjusted in real time.
It enables intelligent adjustment of the in-vehicle screen under multi-source ambient light, improving display clarity and driving safety while reducing computing resource consumption.
Smart Images

Figure CN120977265A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of screen intelligent control technology, specifically a screen control method based on multi-source ambient light detection. Background Technology
[0002] In-vehicle screen control refers to the intelligent management and dynamic adjustment of the brightness, color temperature, contrast, display content, and response mode of the in-vehicle displays (such as the central control screen, instrument panel screen, and passenger entertainment screen). Its core purpose is to improve screen visibility and driving safety based on factors such as ambient light intensity, driving status, viewing angle deviation, and night mode, while also taking into account energy efficiency and user experience. Modern in-vehicle screen control usually combines sensor data (light, temperature, proximity, etc.) and algorithm models to achieve functions such as multi-screen linkage display, local adaptive brightness adjustment, and anti-glare compensation.
[0003] With the development of vehicle intelligence, the popularity of in-vehicle screens has increased. In the current use of in-vehicle screens, multiple sources of ambient light interfere with the screen, resulting in unclear display. At the same time, when the in-vehicle screen detects the source of multiple sources of ambient light one by one, it consumes a lot of computing resources. It is also difficult to adjust the screen brightness, color temperature, refresh rate and suppress reflected light in real time.
[0004] Therefore, this invention proposes a screen control method based on multi-source ambient light detection. Summary of the Invention
[0005] The purpose of this invention is to propose a screen control method based on multi-source ambient light detection to solve the problems mentioned in the background art.
[0006] The technical problem to be solved by this invention is:
[0007] How to achieve intelligent adjustment of in-vehicle screens based on multi-source ambient light.
[0008] The objective of this invention can be achieved through the following technical solutions:
[0009] A screen control method based on multi-source ambient light detection, the method includes:
[0010] Step S100: Analyze the illumination of the vehicle screen area based on the ambient light data and the polarization angle of the incident light, and obtain the ambient light set of the vehicle screen area.
[0011] Step S200: Based on the size data of the vehicle screen and the analysis of standard light sensors, the distance weights of all standard light sensors are obtained. Based on the distance weights and the ambient light set of the vehicle screen area, the grid data of the grid within the vehicle screen area is obtained.
[0012] Step S300: Obtain the standard mapping data of the vehicle screen and combine it with grid data analysis to obtain the adjustment data of the vehicle screen;
[0013] Step S400: Adjust the brightness, color temperature, refresh rate, and polarizer angle of the vehicle screen in real time based on the adjustment data of the vehicle screen.
[0014] As a further aspect of the present invention, the ambient light data includes the light-receiving area of the light sensor within the vehicle screen area, as well as the response sensitivity, output voltage, and timing signal of the light sensor within the vehicle screen area at different wavelengths of incident light.
[0015] As a further aspect of the present invention, step S100 includes the following sub-steps:
[0016] Step S101: Construct a light sensor array for the vehicle screen and obtain ambient light data for the vehicle screen area based on the light sensor array.
[0017] Step S102: Obtain the light-receiving area A of the light sensor within the vehicle screen area, and the response sensitivity S of the light sensor within the vehicle screen area at different wavelengths of incident light. i (a) Output voltage V i (a) and the spectral perception efficiency T(a) of the user's corresponding eye, where i is the number of the light sensor, i = 1, 2, ..., n, n is a positive integer, and a is the wavelength of the incident light. The spatial illuminance value L of the light sensor in the vehicle screen area is calculated by the formula. i The formula is as follows:
[0018] Where k is the spectral optics-photometric conversion constant that converts optical power into illuminance; the output voltage is the voltage output value of the i-th photosensitive sensor at wavelength a; the response sensitivity is the sensitivity of the i-th photosensitive sensor in converting incident light into an electrical signal at wavelength a; and the spectral sensing efficiency is the sensitivity of the human eye to the relative brightness at wavelength a.
[0019] Step S103: Acquire the timing signal of the vehicle screen area, perform a fast Fourier transform on the timing signal to obtain the incident light amplitude X. i (f); where f is the frequency of the incident light intensity changing with time, specifically:
[0020] The photodiode records the intensity X of the incident light at fixed time intervals. i (t), where t is the time point number, is used to sort the light intensities of all incident light according to the time series, thus obtaining the time-series signal X of the vehicle screen area. i (1), X i (2), ..., Xi (t), and then the time-series signal is converted into the incident light amplitude using a fast Fourier transform. The specific conversion formula is as follows:
[0021] X i (f) = FFT[X] i (t)];
[0022] Step S104: Obtain the incident light amplitude of the light sensor in the vehicle screen area at a fixed frequency, and calculate the incident light component amplitude F using the formula. 50,i The formula is as follows:
[0023] F 50,i =|X i (50)|;
[0024] Step S105: Obtain the light intensities P0°, P10°, and P20° when the polarization angles of the incident light are 0°, 45°, 90°, and 135°, respectively. 45 °、P 90 ° and P 135 °, the polarization direction angle J of the incident light is calculated using the formula. i The formula is as follows:
[0025]
[0026] As a further aspect of the present invention, step S100 further includes the following sub-steps:
[0027] Step S106: Using the geometric center of the vehicle screen as the origin O, the plane where the vehicle screen is located as the XY plane, and the direction perpendicular to the XY plane as the Z-axis, the screen coordinate system OXYZ is obtained. The sensor coordinates Q of all light sensors within the screen coordinate system are then acquired. i and the pixel coordinates Q of any pixel within the vehicle screen d Simultaneously, the head coordinates TB of the user's head in the vehicle screen coordinate system are obtained, and the user's gaze vector o is calculated using the following formula:
[0028] o=(Q d -TB) / ||Q d -TB||, where d is the pixel number on the vehicle screen, d = 1, 2, ..., m, and m is a positive integer;
[0029] Step S107: Subtract the sensor coordinates of all optical sensors from the head coordinates to obtain the direction vector vi between the user's head and the optical sensors.
[0030] Step S108: Calculate the line-of-sight correlation value wi between the line-of-sight vector and the direction vector using the following formula:
[0031] wi=(o×vi) / (||o||×||vi||);
[0032] Step S109: Sort the line-of-sight association values in descending order to obtain the optical sensor sequence, take a fixed number of optical sensors as standard optical sensors, and use the corresponding numbers as optical sensor indexes;
[0033] Step S110: Obtain the ambient color temperature R of the vehicle screen area. i The ambient light illuminance value GZ for the vehicle screen area was calculated using the formula. i Ambient light color temperature (SW) i Ambient light flicker frequency GS i and the average incident angle of ambient light JP i The formula is as follows:
[0034]
[0035]
[0036] Step S111: Combine the ambient light illuminance value, ambient light color temperature value, ambient light flicker frequency, and average ambient light incident angle of the vehicle screen area to obtain the ambient light set of the vehicle screen area; wherein, the ambient light set of the vehicle screen area is specifically {GZ i SW i GS i JP i}
[0037] As a further aspect of the present invention, the size data refers to the length and width of the vehicle screen.
[0038] As a further aspect of the present invention, step S200 includes the following sub-steps:
[0039] Step S201: Obtain the length and width of the vehicle screen, divide the vehicle screen into a grid of B rows and C columns, then divide the length of the vehicle screen by the number of columns to obtain the grid length WC of each grid, and divide the width of the vehicle screen by the number of rows to obtain the grid width WK of each grid.
[0040] Step S202: Calculate the center point coordinates D of all grid centers using the formula. j Where j is the grid number, j = 1, 2, ..., B×C, the specific formula is as follows:
[0041] D j = (xj, yj);
[0042] xj = (c - 1 / 2) × WC;
[0043] yj=(b-1 / 2)×WK, where c is the column number of the corresponding grid, c=1,2,……,C; b is the row number of the corresponding grid, b=1,2,……,B;
[0044] Step S203: Obtain the sensor coordinates Qi of the standard light sensor in the screen coordinate system. Calculate the Euclidean distance between the center point of all grids and the standard light sensor using the Euclidean distance formula. Take the reciprocal of the Euclidean distance to obtain the proximity weight between the center point of all grids and the standard light sensor. The specific formula is as follows:
[0045] Where i = 1, 2, 3; h is used to prevent the denominator from being zero in the formula;
[0046] Step S204: Calculate the distance weight u for each of the standard optical sensors using the formula. ij The formula is as follows:
[0047]
[0048] Step S205: Based on the ambient light set of the vehicle screen area, calculate the grid illuminance GZ of all grids within the vehicle screen area using a formula. j Grid color temperature SW j Grid flicker index GS j and grid incident angle JP j The formula is as follows:
[0049]
[0050] Step S206: The grid illuminance, grid color temperature, grid flicker index and grid incident angle of the same grid are summarized into the grid data of the corresponding grid in the vehicle screen area.
[0051] As a further aspect of the present invention, the standard mapping data includes the standard brightness adjustment coefficient, standard white balance color temperature value, refresh rate range value, standard refresh rate, minimum safety difference value, and refresh rate offset value of the vehicle screen. The refresh rate range value includes the minimum refresh rate and the maximum refresh rate.
[0052] As a further aspect of the present invention, step S300 includes the following sub-steps:
[0053] Step S301: Obtain the standard brightness adjustment coefficient BL, and calculate the target grid brightness LD for all grids using the formula. j The formula is as follows:
[0054] LD j =BL×ln(GZ) j );
[0055] Step S302: Obtain the standard white balance color temperature value T' of the vehicle screen area, and calculate the target grid color temperature value SZ for all grids using the formula. j The formula is as follows:
[0056] SZ j =T'+γ×(SW) j -T'), where γ is the color temperature following coefficient;
[0057] Step S303: Obtain the minimum refresh rate, maximum refresh rate, standard refresh rate, minimum safety difference, and refresh rate offset of the vehicle screen. Subtract the standard refresh rate from the grid flicker index and take the absolute value to obtain the refresh rate safety difference for all grids.
[0058] When the refresh rate safety difference is less than the minimum safety difference, and the sum of the standard refresh rate and the refresh rate offset is less than the maximum refresh rate, the standard refresh rate and the refresh rate offset are added together to obtain the actual refresh rate of the grid.
[0059] When the refresh rate safety difference is less than the minimum safety difference, and the sum of the standard refresh rate and the refresh rate offset is greater than or equal to the maximum refresh rate, the maximum refresh rate is used as the actual refresh rate of the grid.
[0060] When the refresh rate safety difference is less than the minimum safety difference, and the difference between the standard refresh rate and the refresh rate offset is greater than the minimum refresh rate, subtract the refresh rate offset from the standard refresh rate to obtain the actual refresh rate of the grid.
[0061] When the refresh rate safety difference is less than the minimum safety difference, and the difference between the standard refresh rate and the refresh rate offset is less than or equal to the minimum refresh rate, the minimum refresh rate is used as the actual refresh rate of the grid.
[0062] No action is taken when the refresh rate safety difference is greater than or equal to the minimum safety difference.
[0063] Step S304: Obtain the grid incident angle of all grids in the vehicle screen, and increase or decrease the grid incident angle by a fixed angle to obtain the actual adjustment angle of the polarizer in the grid.
[0064] Step S305: Combine the target grid brightness, target grid color temperature value, actual refresh rate, and actual adjustment angle of all grids into adjustment data for the vehicle screen.
[0065] The present invention also provides a computer device, the computer device comprising:
[0066] A memory that stores a computer program;
[0067] The processor is communicatively connected to the memory, and when the computer program is executed by the processor, it implements the screen control method.
[0068] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the screen control method described above.
[0069] Compared with the prior art, the beneficial effects of the present invention are:
[0070] 1. This invention analyzes the illumination of the vehicle screen area based on ambient light data and the polarization angle of incident light, and obtains the ambient light set of the vehicle screen area. At the same time, based on the size data of the vehicle screen and the standard light sensor, the distance weight of all standard light sensors is obtained. This invention combines the obtained distance weight with the ambient light set of the vehicle screen area to obtain the grid data of the grid within the vehicle screen area.
[0071] 2. This invention acquires standard mapping data of the vehicle screen and combines it with grid data analysis to obtain adjustment data for the vehicle screen. Then, based on the adjustment data of the vehicle screen, the brightness, color temperature, refresh rate and polarizer angle of the vehicle screen are adjusted in real time. This invention realizes intelligent adjustment of the vehicle screen based on multi-source ambient light. Attached Figure Description
[0072] To facilitate understanding by those skilled in the art, the present invention will be further described below with reference to the accompanying drawings.
[0073] Figure 1 This is a flowchart of the method of the present invention;
[0074] Figure 2 This is an example diagram of the optical sensor array corresponding to the vehicle screen in this invention;
[0075] Figure 3 This is an example diagram of the grid within the vehicle-mounted screen in this invention;
[0076] Figure 4 This is a schematic diagram of the computer device in this invention. Detailed Implementation
[0077] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0078] Example 1: Please refer to Figures 1-3As shown, the technical solution provided by this invention is: a screen control method based on multi-source ambient light detection. This method is used to control the vehicle screen based on the multi-source ambient light when multiple sources of ambient light simultaneously illuminate the screen. The specific method is as follows:
[0079] Step S100: Analyze the illumination of the vehicle screen area based on the ambient light data and the polarization angle of the incident light, and obtain the ambient light set of the vehicle screen area.
[0080] Among them, the ambient light data specifically refers to the light receiving area of the light sensor in the vehicle screen area, as well as the response sensitivity, output voltage and timing signal of the light sensor in the vehicle screen area at different wavelengths of incident light.
[0081] Specifically, timing signals of the vehicle screen area are acquired using photodiodes; the response sensitivity and ambient color temperature of the vehicle screen area are acquired using a spectral / RGB sensor; and the polarization angle of the incident light is acquired using a polarization detector.
[0082] In this embodiment, step S100 includes the following sub-steps:
[0083] Step S101, as follows Figure 2 As shown, an optical sensor array for the vehicle screen is constructed, and ambient light data of the vehicle screen area is obtained based on the optical sensor array.
[0084] Specifically, the optical sensing array is a collection of a fixed number of optical sensors deployed on the front of the vehicle screen. The optical sensing array is used to acquire ambient light data of the vehicle screen area. In a specific implementation, the optical sensing array consists of eight optical sensors. Specifically, the optical sensors integrate a spectral / RGB sensor, a photodiode, and a polarization detector.
[0085] Step S102: Obtain the light-receiving area A of the light sensor within the vehicle screen area, and the response sensitivity S of the light sensor within the vehicle screen area at different wavelengths of incident light. i (a) Output voltage V i (a) and the spectral perception efficiency T(a) of the user's corresponding eye, where i is the number of the light sensor, i = 1, 2, ..., n, n is a positive integer, and a is the wavelength of the incident light, with a value ranging from [400nm, 700nm]. The spatial illuminance value L of the light sensor in the vehicle screen area is calculated using the formula. i The formula is as follows:
[0086] Where k is specifically the spectral optics-photometric conversion constant that converts optical power into illuminance value; in practice, k = 683 lumens / watt; the unit of spatial illuminance value is lux.
[0087] Specifically, the output voltage is the voltage output value of the i-th photosensitive sensor at wavelength a; the response sensitivity is the sensitivity of the i-th photosensitive sensor in converting incident light into an electrical signal at wavelength a, measured in volts per watt; the spectral sensing efficiency is the sensitivity of the human eye to the relative brightness at wavelength a, obtained directly from the spectral luminous efficiency, which is a dimensionless number used to map the incident light power to the brightness visible to the human eye.
[0088] Step S103: Acquire the timing signal of the vehicle screen area, perform a fast Fourier transform on the timing signal to obtain the incident light amplitude X. i (f); where f is specifically the frequency of the change in the intensity of the incident light over time;
[0089] Specifically, the photodiode records the intensity X of the incident light at fixed time intervals. i (t), where t is the time point number, is used to sort the light intensities of all incident light according to the time series, thus obtaining the time-series signal X of the vehicle screen area. i (1), X i (2), ..., X i (t), and then the time-series signal is converted into the incident light amplitude using a fast Fourier transform. The specific conversion formula is as follows:
[0090] X i (f) = FFT[X] i (t)];
[0091] Step S104: Obtain the incident light amplitude of the light sensor in the vehicle screen area at a fixed frequency, and calculate the incident light component amplitude F using the formula. 50,i The formula is as follows:
[0092] F 50,i =|X i (50)|;
[0093] In practice, the fixed frequency is 50Hz;
[0094] Step S105: Obtain the light intensities P0°, P10°, and P20° when the polarization angles of the incident light are 0°, 45°, 90°, and 135°, respectively. 45 °、P 90 ° and P 135 °, the polarization direction angle J of the incident light is calculated using the formula. i The formula is as follows:
[0095]
[0096] Step S106: Using the geometric center of the vehicle screen as the origin O, the plane where the vehicle screen is located as the XY plane, and the direction perpendicular to the XY plane as the Z-axis, the screen coordinate system OXYZ is obtained. The sensor coordinates Q of all light sensors within the screen coordinate system are then acquired. i and the pixel coordinates Q of any pixel within the vehicle screen d Simultaneously, the head coordinates TB of the user's head in the vehicle screen coordinate system are obtained, and the user's gaze vector o is calculated using the following formula:
[0097] o=(Q d -TB) / ||Q d -TB||;
[0098] Among them, the user's head coordinates in the vehicle screen coordinate system can be obtained through technologies such as TOF, stereo cameras or head tracking.
[0099] Specifically, d is the pixel number within the vehicle screen, d = 1, 2, ..., m, where m is a positive integer;
[0100] Step S107: Subtract the sensor coordinates of all optical sensors from the head coordinates to obtain the direction vector vi between the user's head and the optical sensors.
[0101] Step S108: Calculate the line-of-sight correlation value wi between the line-of-sight vector and the direction vector using the following formula:
[0102] wi=(o×vi) / (||o||×||vi||);
[0103] In practice, the higher the gaze correlation value, the greater the match between the illumination of the corresponding light sensor and the user's gaze direction;
[0104] Step S109: Sort the line-of-sight association values in descending order to obtain the optical sensor sequence, take a fixed number of optical sensors as standard optical sensors, and use the corresponding numbers as optical sensor indexes;
[0105] In practice, the first three sensors in the optical sensor sequence are used as the standard optical sensor;
[0106] Step S110: Obtain the ambient color temperature R of the vehicle screen area. i The ambient light illuminance value GZ for the vehicle screen area was calculated using the formula. i Ambient light color temperature (SW) i Ambient light flicker frequency GS i and the average incident angle of ambient light JP i The formula is as follows:
[0107]
[0108] Among them, the line-of-sight correlation value is not used to compare the importance of ambient light illuminance, ambient light color temperature, ambient light flicker frequency and average ambient light incident angle, but is used to reflect the relative impact of different light sensors on the user's vision;
[0109] Step S111: Combine the ambient light illuminance value, ambient light color temperature value, ambient light flicker frequency and average ambient light incident angle of the vehicle screen area to obtain the ambient light set of the vehicle screen area.
[0110] Specifically, the ambient light set for the in-vehicle screen area is {GZ}. i SW i GS i JP i}
[0111] Step S200: Based on the size data of the vehicle screen and the analysis of standard light sensors, the distance weights of all standard light sensors are obtained. Based on the distance weights and the ambient light set of the vehicle screen area, the grid data of the grid within the vehicle screen area is obtained.
[0112] Specifically, the size data refers to the length and width of the in-vehicle screen;
[0113] In this embodiment, step S200 includes the following sub-steps:
[0114] Step S201, as follows Figure 3 As shown, the length and width of the vehicle screen are obtained, and the vehicle screen is divided into a grid of B rows and C columns. Then, the length of the vehicle screen is divided by the number of columns to obtain the grid length WC of each grid, and the width of the vehicle screen is divided by the number of rows to obtain the grid width WK of each grid.
[0115] Step S202: Calculate the center point coordinates D of all grid centers using the formula. j Where j is the grid number, j = 1, 2, ..., B×C, the specific formula is as follows:
[0116] D j = (xj, yj);
[0117] xj = (c - 1 / 2) × WC;
[0118] yj=(b-1 / 2)×WK, where c is the column number of the corresponding grid, c=1,2,……,C; b is the row number of the corresponding grid, b=1,2,……,B;
[0119] It should be noted that the subsequent steps only analyze the in-vehicle screen, therefore the Z-axis direction in the screen coordinate system OXYZ will not be analyzed.
[0120] Step S203: Obtain the sensor coordinates Qi of the standard light sensor in the screen coordinate system. Calculate the Euclidean distance between the center point of all grids and the standard light sensor using the Euclidean distance formula. Take the reciprocal of the Euclidean distance to obtain the proximity weight between the center point of all grids and the standard light sensor. The specific formula is as follows:
[0121] Where i = 1, 2, 3; h is used to prevent the denominator from being zero in the formula, and in the actual calculation process, h = 0.01;
[0122] Step S204: Calculate the distance weight u for each of the standard optical sensors using the formula. ij The formula is as follows:
[0123]
[0124] Step S205: Based on the ambient light set of the vehicle screen area, calculate the grid illuminance GZ of all grids within the vehicle screen area using a formula. j Grid color temperature SW j Grid flicker index GS j and grid incident angle JP j The formula is as follows:
[0125]
[0126] Step S206: The grid illuminance, grid color temperature, grid flicker index and grid incident angle of the same grid are summarized into the grid data of the corresponding grid in the vehicle screen area.
[0127] Step S300: Obtain the standard mapping data of the vehicle screen and combine it with grid data analysis to obtain the adjustment data of the vehicle screen;
[0128] Specifically, the standard mapping data includes the standard brightness adjustment coefficient, standard white balance color temperature value, refresh rate range value, standard refresh rate, minimum safety difference value, and refresh rate offset value of the vehicle screen. The refresh rate range value includes the minimum refresh rate and the maximum refresh rate.
[0129] Specifically, the minimum safety difference is used to determine whether the grid flicker index interferes with the standard refresh rate; when the grid flicker index interferes with the grid refresh rate, the refresh rate offset value is used to adjust the grid refresh rate.
[0130] It should be noted that, without any refresh rate adjustment, the refresh rate of the in-vehicle screen is the standard refresh rate.
[0131] In practice, a polarizer is an optical element that controls the direction of light wave vibration in a vehicle screen, and a fixed number of polarizers exist in a grid.
[0132] In this embodiment, step S300 includes the following sub-steps:
[0133] Step S301: Obtain the standard brightness adjustment coefficient BL, and calculate the target grid brightness LD for all grids using the formula. j The formula is as follows:
[0134] LD j =BL×ln(GZ) j );
[0135] It should be noted that the standard brightness adjustment factor is used to map the grid illuminance of all grids in the vehicle screen to the corresponding target grid brightness. In the actual calculation, BL = 0.6.
[0136] Step S302: Obtain the standard white balance color temperature value T' of the vehicle screen area, and calculate the target grid color temperature value SZ for all grids using the formula. j The formula is as follows:
[0137] SZ j =T'+γ×(SW) j -T'), where γ is the color temperature following coefficient, which is used to quantify the influence of ambient color temperature on grid color temperature. The larger the color temperature following coefficient, the more similar the grid color temperature is to the ambient color temperature of the vehicle screen area. In actual calculation, γ = 0.5.
[0138] Step S303: Obtain the minimum refresh rate, maximum refresh rate, standard refresh rate, minimum safety difference, and refresh rate offset of the vehicle screen. Subtract the standard refresh rate from the grid flicker index and take the absolute value to obtain the refresh rate safety difference for all grids.
[0139] When the refresh rate safety difference is less than the minimum safety difference, and the sum of the standard refresh rate and the refresh rate offset is less than the maximum refresh rate, the standard refresh rate and the refresh rate offset are added together to obtain the actual refresh rate of the grid.
[0140] When the refresh rate safety difference is less than the minimum safety difference, and the sum of the standard refresh rate and the refresh rate offset is greater than or equal to the maximum refresh rate, the maximum refresh rate is used as the actual refresh rate of the grid.
[0141] When the refresh rate safety difference is less than the minimum safety difference, and the difference between the standard refresh rate and the refresh rate offset is greater than the minimum refresh rate, subtract the refresh rate offset from the standard refresh rate to obtain the actual refresh rate of the grid.
[0142] When the refresh rate safety difference is less than the minimum safety difference, and the difference between the standard refresh rate and the refresh rate offset is less than or equal to the minimum refresh rate, the minimum refresh rate is used as the actual refresh rate of the grid.
[0143] No action is taken when the refresh rate safety difference is greater than or equal to the minimum safety difference.
[0144] In practice, the refresh rate offset is set to 10Hz.
[0145] Step S304: Obtain the grid incident angle of all grids in the vehicle screen, and increase or decrease the grid incident angle by a fixed angle to obtain the actual adjustment angle of the polarizer in the grid.
[0146] In actual calculations, the fixed angle is 90°. It should be noted that, according to Malus's law, when the angle of the polarizer is perpendicular to the angle of incidence of the grid, the incident light cannot penetrate the polarizer, thus suppressing the interference of the incident light by adjusting the angle of the polarizer. If the angle between the angle of the polarizer and the angle of incidence of the grid is not perpendicular, the polarizer can only suppress part of the light intensity and cannot completely eliminate the interference of the incident light.
[0147] Step S305: Combine the target grid brightness, target grid color temperature value, actual refresh rate, and actual adjustment angle of all grids into adjustment data for the vehicle screen.
[0148] Step S400: Adjust the brightness, color temperature, refresh rate, and polarizer angle of the vehicle screen in real time based on the adjustment data of the vehicle screen.
[0149] Example 2: This embodiment of the invention also provides a computer device for running the aforementioned screen control method based on multi-source ambient light detection; see [link to previous example]. Figure 4 The schematic diagram of a computer device provided by the embodiment of the present invention shown above includes a memory and a processor. The memory is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to realize the screen control method based on multi-source ambient light detection described above.
[0150] Furthermore, Figure 4 The computer device shown also includes a communication bus and a communication interface, with the processor, communication interface, and memory connected via the communication bus;
[0151] The memory may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface (wired or wireless), which can use the Internet, wide area network, local area network, metropolitan area network, etc. The communication bus can be an ISA bus, PCI bus, or EISA bus, etc. The communication bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by only one double-headed arrow, but this does not mean that there is only one communication bus or one type of communication bus.
[0152] The processor may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above methods can be completed by integrated logic circuits in the processor's hardware or by software instructions. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0153] Example 3: This embodiment of the invention also provides a computer storage medium that stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-mentioned screen control method based on multi-source ambient light detection. For specific implementation, please refer to the method embodiment, which will not be repeated here.
[0154] The computer program product of the screen control method based on multi-source ambient light detection provided in this embodiment of the invention includes a computer storage medium storing program code. The instructions included in the program code can be used to execute the methods in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0155] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and / or device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0156] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0157] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A screen control method based on multi-source ambient light detection, characterized in that, The methods include: Step S100: Analyze the illumination of the vehicle screen area based on the ambient light data and the polarization angle of the incident light, and obtain the ambient light set of the vehicle screen area. Step S200: Based on the size data of the vehicle screen and the analysis of standard light sensors, the distance weights of all standard light sensors are obtained. Based on the distance weights and the ambient light set of the vehicle screen area, the grid data of the grid within the vehicle screen area is obtained. Step S300: Obtain the standard mapping data of the vehicle screen and combine it with grid data analysis to obtain the adjustment data of the vehicle screen; Step S400: Adjust the brightness, color temperature, refresh rate, and polarizer angle of the vehicle screen in real time based on the adjustment data of the vehicle screen.
2. The screen control method based on multi-source ambient light detection according to claim 1, characterized in that, The ambient light data includes the light-receiving area of the light sensor within the vehicle screen area, as well as the response sensitivity, output voltage, and timing signal of the light sensor within the vehicle screen area at different wavelengths of incident light.
3. The screen control method based on multi-source ambient light detection according to claim 2, characterized in that, Step S100 includes the following sub-steps: Step S101: Construct a light sensor array for the vehicle screen and obtain ambient light data for the vehicle screen area based on the light sensor array. Step S102: Obtain the light-receiving area A of the light sensor within the vehicle screen area, and the response sensitivity S of the light sensor within the vehicle screen area at different wavelengths of incident light. i (a) Output voltage V i (a) and the spectral perception efficiency T(a) of the user's corresponding eye, where i is the number of the light sensor, i = 1, 2, ..., n, n is a positive integer, and a is the wavelength of the incident light. The spatial illuminance value L of the light sensor in the vehicle screen area is calculated by the formula. i The formula is as follows: Where k is the spectral optics-photometric conversion constant that converts optical power into illuminance; the output voltage is the voltage output value of the i-th photosensitive sensor at wavelength a; the response sensitivity is the sensitivity of the i-th photosensitive sensor in converting incident light into an electrical signal at wavelength a; and the spectral sensing efficiency is the sensitivity of the human eye to the relative brightness at wavelength a. Step S103: Acquire the timing signal of the vehicle screen area, perform a fast Fourier transform on the timing signal to obtain the incident light amplitude X. i (f); where f is the frequency of the incident light intensity changing with time, specifically: The photodiode records the intensity X of the incident light at fixed time intervals. i (t), where t is the time point number, is used to sort the light intensities of all incident light according to the time series, thus obtaining the time-series signal X of the vehicle screen area. i (1), X i (2), ..., X i (t), and then the time-series signal is converted into the incident light amplitude through a fast Fourier transform. The specific conversion formula is as follows: X i (f)=FFT[X i (t)]; Step S104: Obtain the incident light amplitude of the light sensor in the vehicle screen area at a fixed frequency, and calculate the incident light component amplitude F using the formula. 50,i The formula is as follows: F 50,i =|X i (50)|; Step S105: Obtain the light intensities P0°, P10°, and P20° when the polarization angles of the incident light are 0°, 45°, 90°, and 135°, respectively. 45 °、P 90 ° and P 135 °, the polarization direction angle J of the incident light is calculated using the formula. i The formula is as follows:
4. The screen control method based on multi-source ambient light detection according to claim 3, characterized in that, Step S100 further includes the following sub-steps: Step S106: Using the geometric center of the vehicle screen as the origin O, the plane where the vehicle screen is located as the XY plane, and the direction perpendicular to the XY plane as the Z-axis, the screen coordinate system OXYZ is obtained. The sensor coordinates Q of all light sensors within the screen coordinate system are then acquired. i and the pixel coordinates Q of any pixel within the vehicle screen d Simultaneously, the head coordinates TB of the user's head in the vehicle screen coordinate system are obtained, and the user's gaze vector o is calculated using the following formula: o=(Q d -TB) / ||Q d -TB||, where d is the pixel number on the vehicle screen, d = 1, 2, ..., m, and m is a positive integer; Step S107: Subtract the sensor coordinates of all optical sensors from the head coordinates to obtain the direction vector vi between the user's head and the optical sensors. Step S108: Calculate the line-of-sight correlation value wi between the line-of-sight vector and the direction vector using the following formula: wi=(o×vi) / (||o||×||vi||); Step S109: Sort the line-of-sight association values in descending order to obtain the optical sensor sequence, take a fixed number of optical sensors as standard optical sensors, and use the corresponding numbers as optical sensor indexes; Step S110: Obtain the ambient color temperature R of the vehicle screen area. i The ambient light illuminance value GZ for the vehicle screen area was calculated using the formula. i Ambient light color temperature (SW) i Ambient light flicker frequency GS i and the average incident angle of ambient light JP i The formula is as follows: Step S111: Combine the ambient light illuminance value, ambient light color temperature value, ambient light flicker frequency, and average ambient light incident angle of the vehicle screen area to obtain the ambient light set of the vehicle screen area; wherein, the ambient light set of the vehicle screen area is specifically {GZ i SW i GS i JP i } 5. The screen control method based on multi-source ambient light detection according to claim 4, characterized in that, The dimensions are the length and width of the in-vehicle screen.
6. The screen control method based on multi-source ambient light detection according to claim 5, characterized in that, Step S200 includes the following sub-steps: Step S201: Obtain the length and width of the vehicle screen, divide the vehicle screen into a grid of B rows and C columns, then divide the length of the vehicle screen by the number of columns to obtain the grid length WC of each grid, and divide the width of the vehicle screen by the number of rows to obtain the grid width WK of each grid. Step S202: Calculate the center point coordinates D of all grid centers using the formula. j Where j is the grid number, j = 1, 2, ..., B×C, the specific formula is as follows: D j =(xj,yj); xj = (c - 1 / 2) × WC; yj=(b-1 / 2)×WK, where c is the column number of the corresponding grid, c=1,2,……,C; b is the row number of the corresponding grid, b=1,2,……,B; Step S203: Obtain the sensor coordinates Qi of the standard light sensor in the screen coordinate system. Calculate the Euclidean distance between the center point of all grids and the standard light sensor using the Euclidean distance formula. Take the reciprocal of the Euclidean distance to obtain the proximity weight between the center point of all grids and the standard light sensor. The specific formula is as follows: Where i = 1, 2, 3; h is used to prevent the denominator from being zero in the formula; Step S204: Calculate the distance weight u for each of the standard optical sensors using the formula. ij The formula is as follows: Step S205: Based on the ambient light set of the vehicle screen area, calculate the grid illuminance GZ of all grids within the vehicle screen area using a formula. j Grid color temperature SW j Grid flicker index GS j and grid incident angle JP j The formula is as follows: Step S206: The grid illuminance, grid color temperature, grid flicker index and grid incident angle of the same grid are summarized into the grid data of the corresponding grid in the vehicle screen area.
7. The screen control method based on multi-source ambient light detection according to claim 6, characterized in that, The standard mapping data includes the standard brightness adjustment coefficient, standard white balance color temperature value, refresh rate range value, standard refresh rate, minimum safety difference value, and refresh rate offset value for the vehicle screen. The refresh rate range value includes the minimum refresh rate and the maximum refresh rate.
8. The screen control method based on multi-source ambient light detection according to claim 7, characterized in that, Step S300 includes the following sub-steps: Step S301: Obtain the standard brightness adjustment coefficient BL, and calculate the target grid brightness LD for all grids using the formula. j The formula is as follows: LD j =BL×ln(GZ j ); Step S302: Obtain the standard white balance color temperature value T' of the vehicle screen area, and calculate the target grid color temperature value SZ for all grids using the formula. j The formula is as follows: SZ j =T'+γ×(SW) j -T'), where γ is the color temperature following coefficient; Step S303: Obtain the minimum refresh rate, maximum refresh rate, standard refresh rate, minimum safety difference, and refresh rate offset of the vehicle screen. Subtract the standard refresh rate from the grid flicker index and take the absolute value to obtain the refresh rate safety difference for all grids. When the refresh rate safety difference is less than the minimum safety difference, and the sum of the standard refresh rate and the refresh rate offset is less than the maximum refresh rate, the standard refresh rate and the refresh rate offset are added together to obtain the actual refresh rate of the grid. When the refresh rate safety difference is less than the minimum safety difference, and the sum of the standard refresh rate and the refresh rate offset is greater than or equal to the maximum refresh rate, the maximum refresh rate is used as the actual refresh rate of the grid. When the refresh rate safety difference is less than the minimum safety difference, and the difference between the standard refresh rate and the refresh rate offset is greater than the minimum refresh rate, subtract the refresh rate offset from the standard refresh rate to obtain the actual refresh rate of the grid. When the refresh rate safety difference is less than the minimum safety difference, and the difference between the standard refresh rate and the refresh rate offset is less than or equal to the minimum refresh rate, the minimum refresh rate is used as the actual refresh rate of the grid. No action is taken when the refresh rate safety difference is greater than or equal to the minimum safety difference. Step S304: Obtain the grid incident angle of all grids in the vehicle screen, and increase or decrease the grid incident angle by a fixed angle to obtain the actual adjustment angle of the polarizer in the grid. Step S305: Combine the target grid brightness, target grid color temperature value, actual refresh rate, and actual adjustment angle of all grids into adjustment data for the vehicle screen.
9. A computer device, characterized in that, The computer device includes: A memory that stores a computer program; A processor, communicatively connected to the memory, implements the method described in any one of claims 1-8 when the computer program is executed by the processor.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method of any one of claims 1 to 8.