A light-adjusting method and device for a shading component, a shading component, and a vehicle
By using real-time image acquisition and transparency adjustment technology in vehicles, the existing technology's problems of complicated operation of the visor and the impact of illumination changes are solved, and the effects of effective light shading and clear display are achieved while ensuring safe driving.
Patent Information
- Application Number
- CN202011534054.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-23
AI Technical Summary
The existing technology cannot ensure safe driving while taking into account the shading effect. Especially when the light changes frequently, manual operation of the shading plate is required, which is complicated and affects the field of vision.
By integrating the image acquisition unit on the transparent panel, the scene image is collected in real time, the brightness value is determined, and the transparency is adjusted according to the pixel value to achieve the real-time shading effect of the transparent panel, and the image processing is optimized based on the human eye gaze point information to adapt to different light environments.
It achieves effective light shielding under strong light conditions, avoids strong light exposure, and ensures safe driving. At the same time, it improves the clarity of road condition display in dark environments, avoids excessive blocking of the field of view by transparent panels, and improves the safety performance of light shielding components.
Smart Images

Figure CN114666488B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shading, and in particular to a light-adjusting method of a shading component and a device thereof, a shading component and a vehicle. Background Art
[0002] When driving, the driver's eyes often have to face strong light, such as sunlight, reflected light from asphalt roads, and lights from oncoming vehicles at night. These strong light interferences can easily cause visual dizziness and lead to traffic accidents.
[0003] In the past, a non-light-transmitting sunshade was often installed on the front windshield of the vehicle to block the strong light and ensure safe driving of the vehicle. However, the sunshade can easily block part of the driver's field of vision during use, causing safety hazards. When the light changes frequently, the sunshade needs to be opened and closed frequently manually, which is complicated to operate. In addition, the interference of strong light can also be suppressed by wearing sun visors, but this method will cause the outside view to darken and the field of vision to deteriorate when driving at night, thus affecting the driver's safe driving.
[0004] It can be seen that the existing method cannot ensure safe driving while taking into account the shading effect. Summary of the invention
[0005] The present invention provides a dimming method of a shading component and a device thereof, a shading component, and a vehicle, which are used to ensure safe driving while taking into account the shading effect.
[0006] In a first aspect, an embodiment of the present invention provides a dimming method of a shading component, comprising:
[0007] Controlling a first image acquisition unit to acquire a scene image, wherein the first image acquisition unit is located on a side of the transparent panel away from human eyes;
[0008] Determining the brightness value of each pixel in the scene image;
[0009] Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel;
[0010] Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value;
[0011] According to the adjusted pixel value, the transparency of the transparent panel at the corresponding pixel position in the first pixel set is reduced, so that the transparent panel displays the scene image according to the adjusted pixel value.
[0012] In a possible implementation manner, after determining the brightness value of each pixel in the scene image, the method further includes:
[0013] Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel;
[0014] The pixel value of each pixel in the second pixel set is adjusted to a minimum value, so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized.
[0015] In a possible implementation manner, after controlling the first image acquisition unit to acquire the scene image, the method further includes:
[0016] Controlling a second image acquisition unit to acquire a face image, wherein the second image acquisition unit is located on a side of the transparent panel close to human eyes;
[0017] Determine a first coordinate position of a gaze point of a human eye on the transparent panel according to the facial image;
[0018] Determining a movement vector of the first coordinate position relative to the central coordinate position of the transparent panel;
[0019] Moving each pixel in the scene image according to the movement vector to obtain a moved image;
[0020] The first set of pixels is determined from the shifted image.
[0021] In a possible implementation, if the scene in which the shading component is currently located is a dark environment, after determining the first coordinate position of the gaze point of the human eye on the transparent panel according to the face image, the method further includes:
[0022] Determine, from the scene image, a partial image corresponding to a preset area including the first coordinate position;
[0023] Performing image enhancement processing on the partial image to obtain an enhanced image;
[0024] The enhanced image is multiplied by a preset transparency and superimposed on the scene image to obtain a superimposed image, so that the transparent panel displays the superimposed image.
[0025] In a second aspect, an embodiment of the present invention provides a shading component using the dimming method as described in the first aspect above, comprising:
[0026] A transparent panel, a main control unit and a first image acquisition unit located on a side of the transparent panel away from the human eye; wherein the main control unit is used to:
[0027] Controlling the first image acquisition unit to acquire scene images;
[0028] Determining the brightness value of each pixel in the scene image;
[0029] Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel;
[0030] Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value;
[0031] According to the adjusted pixel value, the transparency of the transparent panel at the corresponding pixel position in the first pixel set is reduced, so that the transparent panel displays the scene image according to the adjusted pixel value.
[0032] In a possible implementation manner, the main control unit is further used for:
[0033] Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel;
[0034] The pixel value of each pixel in the second pixel set is adjusted to a minimum value, so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized.
[0035] In a possible implementation, the shading assembly further includes a second image acquisition unit located on a side of the transparent panel close to the human eye, and the main control unit is used to:
[0036] Controlling the second image acquisition unit to acquire a face image;
[0037] Determine a first coordinate position of a gaze point of a human eye on the transparent panel according to the facial image;
[0038] Determining a movement vector of the first coordinate position relative to the central coordinate position of the transparent panel;
[0039] Moving each pixel in the scene image according to the movement vector to obtain a moved image;
[0040] The first set of pixels is determined from the shifted image.
[0041] In a possible implementation, if the scene in which the shading component is currently located is a dark environment, the main control unit is further used to:
[0042] Determine, from the scene image, a partial image corresponding to a preset area including the first coordinate position;
[0043] Performing image enhancement processing on the partial image to obtain an enhanced image;
[0044] The enhanced image is multiplied by a preset transparency and superimposed on the scene image to obtain a superimposed image, so that the transparent panel displays the superimposed image.
[0045] In a third aspect, an embodiment of the present invention further provides a vehicle, comprising a shading assembly as described in any one of the second aspects.
[0046] In a fourth aspect, an embodiment of the present invention further provides a dimming device for a shading assembly, the dimming device is applied to a vehicle, the dimming device comprises a memory and a processor, wherein the memory is used to store a computer program;
[0047] The processor is used to execute the computer program in the memory to implement the following steps:
[0048] Controlling a first image acquisition unit to acquire a scene image, wherein the first image acquisition unit is located on a side of the transparent panel away from human eyes; determining a brightness value of each pixel in the scene image;
[0049] Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel;
[0050] Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value;
[0051] According to the adjusted pixel value, the transparency of the transparent panel at the corresponding pixel position in the first pixel set is reduced, so that the transparent panel displays the scene image according to the adjusted pixel value.
[0052] The beneficial effects of the present invention are as follows:
[0053] The embodiment of the present invention provides a dimming method and device of a shading component, a shading component, and a vehicle. First, a first image acquisition unit located on the side of a transparent panel away from human eyes is controlled to acquire a scene image. Then, the brightness value of each pixel in the scene image is determined, and the first pixel set whose brightness value is greater than a preset brightness threshold in the scene image is determined. Then, the pixel value of each pixel in the first pixel set is adjusted to a pixel value less than the pixel value corresponding to the preset brightness threshold to obtain the adjusted pixel value. Then, according to the adjusted pixel value, the transparency of the corresponding pixel position of the transparent panel in the first pixel set is reduced, so that the transparent panel displays the scene image according to the adjusted pixel value. In this way, when strong light irradiates the transparent panel, the transparency of the transparent panel can be reduced by adjusting the pixel value of the corresponding position, thereby avoiding strong irradiation of the strong light to the human eye, and having a good shading effect. In addition, according to the scene image acquired in real time, the pixel values of the pixels in the scene image can be adjusted one by one in real time, thereby realizing the real-time adjustment of the transparency of the transparent panel and ensuring the shading effect of the shading component. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A method flow chart of a dimming method of a shading component provided by an embodiment of the present invention;
[0055] Figure 2 A method flow chart after step S101 in a dimming method of a shading component provided by an embodiment of the present invention;
[0056] Figure 3 A method flow chart after step S101 in a dimming method of a shading component provided by an embodiment of the present invention;
[0057] Figure 4 A schematic diagram of the structure between the human eye's gaze point and the central coordinate position of the transparent panel in a dimming method of a shading component provided by an embodiment of the present invention;
[0058] Figure 5 A method flow chart after step S302 in a dimming method of a shading component provided by an embodiment of the present invention if the scene currently located by the shading component is a dark environment;
[0059] Figure 6 A schematic structural diagram of a shading assembly provided by an embodiment of the present invention;
[0060] Figure 7 A schematic structural diagram of a dimming device of a shading assembly provided in an embodiment of the present invention;
[0061] Figure 8 A schematic structural diagram of a dimming device of a shading assembly provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. And in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. Based on the described embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention.
[0063] Unless otherwise defined, the technical terms or scientific terms used in the present invention shall have the common meanings understood by people with ordinary skills in the field to which the present invention belongs. The words "include" or "comprise" and the like used in the present invention mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, but do not exclude other elements or objects.
[0064] It should be noted that the sizes and shapes of the figures in the accompanying drawings do not reflect the actual proportions, but are only intended to illustrate the content of the present invention. The same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions.
[0065] In the prior art, either a light-proof visor is used to block the strong light, or the strong light is blocked by wearing sun visors, which cannot ensure safe driving while taking into account the shading effect.
[0066] In view of this, an embodiment of the present invention provides a dimming method of a shading component and a device thereof, a vehicle, and a shading component.
[0067] like Figure 1 The method flow chart of a dimming method of a shading component provided by an embodiment of the present invention includes:
[0068] S101: Controlling a first image acquisition unit to acquire a scene image, wherein the first image acquisition unit is located on a side of a transparent panel away from human eyes;
[0069] In the specific implementation process, the first image acquisition unit can be controlled to acquire scene images in real time. The first image acquisition unit is located on the side of the transparent panel away from the human eye. The first image acquisition unit can be a camera. The transparent panel can be an intelligent dimming glass panel with high transmittance, specifically a transparent liquid crystal panel. If the dimming method of the shading component is applied to a vehicle, the scene image can be an image of the road conditions along the driving direction of the vehicle. In addition, if the image resolution of the display image ScreenImage of the transparent panel is ScreenW*ScreenH, the resolution of the image acquired by the first image acquisition unit can be stretched to ScreenW*ScreenH, so that the size of the image acquired by the first image acquisition unit is consistent with the image size that can be displayed by the transparent panel. In the specific implementation process, the scene image is essentially an image after stretching the original image acquired by the first image acquisition unit, recorded as BackImage.
[0070] S102: Determine the brightness value of each pixel in the scene image;
[0071] In a specific implementation process, the brightness value of each pixel in the scene image can be calculated according to the following formula:
[0072] Y=(0.299*R)+(0.587*G)+(0.114*B)
[0073] Among them, Y represents the brightness value of the pixel, R represents the pixel value of the red sub-pixel included in the pixel, G represents the pixel value of the green sub-pixel included in the pixel, and B represents the pixel value of the blue sub-pixel included in the pixel.
[0074] In a specific implementation process, after the brightness value of each pixel in the scene image is determined, a brightness image corresponding to the scene image can be obtained, which is recorded as BackImageLight.
[0075] S103: Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, where the first pixel set includes at least one pixel;
[0076] In the specific implementation process, the preset brightness threshold is a preset brightness threshold. Those skilled in the art can preset the brightness threshold according to actual application needs. If the light brightness exceeds the preset brightness threshold, it is strong light and needs to be processed. Specifically, the first pixel set whose brightness value is greater than the preset brightness threshold in the scene image is determined, that is, the pixels whose brightness value is greater than the preset brightness threshold are counted from the scene image.
[0077] S104: adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold, to obtain an adjusted pixel value;
[0078] In a specific implementation process, the pixel value of each pixel in the first pixel set whose brightness value in the scene image is greater than the preset brightness threshold can be adjusted to a pixel value less than the preset brightness threshold, thereby achieving the suppression of strong light. The entire adjustment process can achieve the adjustment of the pixel values of the pixels in the scene image one by one, which is more in line with the actual scene compared to the method of uniformly adjusting the transparency of the area, and can have a better shading effect while taking into account safe driving.
[0079] S105: reducing the transparency of the transparent panel at a corresponding pixel position in the first pixel set according to the adjusted pixel value, so that the transparent panel displays the scene image according to the adjusted pixel value.
[0080] In a specific implementation process, according to the adjusted pixel value, the transparency of the transparent panel at the corresponding pixel position in the first pixel set is reduced. Since the pixel value of the pixel can be adjusted one by one, the transparency of the transparent panel at each pixel position in the first pixel set can be adjusted one by one accordingly. After reducing the transparency of the transparent panel at the corresponding pixel position in the first pixel set according to the adjusted pixel value, the transparent panel can display the scene image according to the adjusted pixel value, thereby ensuring safe driving while taking into account the shading effect.
[0081] In the embodiment of the present invention, step S104: adjusting the pixel value of each pixel in the first pixel set to be less than the pixel value corresponding to the preset brightness threshold to obtain the adjusted pixel value includes:
[0082] Counting a first maximum brightness value and a first minimum brightness value corresponding to pixel values of pixels from the first pixel set;
[0083] Counting a second maximum brightness value and a second minimum brightness value corresponding to the pixel values of the pixels from the second pixel set;
[0084] According to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value and the second minimum brightness value, the pixel value of each pixel in the first pixel set is adjusted to be less than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value.
[0085] Among them, the step: according to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value and the second minimum brightness value, the pixel value of each pixel in the first pixel set is adjusted to be less than the pixel value corresponding to the preset brightness threshold, and the adjusted pixel value is obtained, which can be specifically adopted by the following formula:
[0086] BackImageLight(i,j)_2=(BackImageLight(i,j)-MinDown)*(MaxUp-MinUp) / (MaxDown-MinDown)
[0087] Among them, BackImageLight(i,j) represents the brightness value corresponding to the pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, BackImageLight(i,j)_2 represents the adjusted pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, MinDown represents the first minimum brightness value, MaxDown represents the first maximum brightness value, MaxUp represents the second maximum brightness value, and MinUp represents the second minimum brightness value.
[0088] In the embodiment of the present invention, after adjusting the pixel value of each pixel in the first pixel set to obtain the adjusted pixel value, the method further includes obtaining, according to the adjusted pixel value, a pixel value of a display image of the scene image displayed by the transparent panel, wherein the display image is recorded as ScreenImage:
[0089] ScreenImage(i,j)=(BackImageLight(i,j)_2-MinDown)*(MaxDown-MinDown) / (MaxScreen-MinScreen)
[0090] Among them, MaxScreen represents the maximum value of the opacity of the transparent panel, that is, the minimum transparency value, indicating that the transparent panel is completely opaque, and MinScreen represents the minimum opacity value of the transparent panel, that is, the maximum transparency value, indicating that the transparent panel is completely opaque.
[0091] In the specific implementation process, the opacity of the transparent panel corresponds to the display image ScreenImage one by one. In practical applications, the opacity of the transparent panel can be adjusted by adjusting the pixel value of the pixel in the image. For example, when the pixel value is 255, the transparent panel is completely opaque. For another example, when the pixel value is 0, the transparent panel is completely transparent. In this way, the interference of strong light can be suppressed by controlling the opacity of the transparent panel, and the strong light illumination in the first pixel set is stretched to the light without strong light. In addition, the light in the second pixel set is not processed. The entire shading processing process is more in line with the law of human eye viewing, and the shading effect is better.
[0092] In a specific implementation process, in addition to using the above formula to adjust the opacity of the transparent panel pixel by pixel, the opacity of the transparent panel can also be adjusted by controlling the deflection of pixels one by one, wherein the transparent panel is a liquid crystal panel, and the position corresponding to each pixel in the liquid crystal panel includes a first electrode and a second electrode that are relatively arranged, and a liquid crystal layer located between the first electrode and the second electrode. The deflection of the liquid crystal can be controlled by controlling the driving signal transmitted to the first electrode and the second electrode, thereby achieving the adjustment of the transparency of the liquid crystal panel pixel by pixel, thereby ensuring the shading effect.
[0093] like Figure 2 As shown, after step S102: determining the brightness value of each pixel in the scene image, the method further includes:
[0094] S201: Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, where the second pixel set includes at least one pixel;
[0095] S202: Adjust the pixel value of each pixel in the second pixel set to a minimum value, so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized.
[0096] In the specific implementation process, the specific implementation process of step S201 to step S202 is as follows:
[0097] First, determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, that is, count the second pixel set whose brightness value is less than or equal to the preset brightness threshold from the scene image, and then adjust the pixel value of each pixel in the second pixel set to a minimum value. For example, when the pixel value ranges from 0 to 255, the pixel value of each pixel in the second pixel set whose brightness value in the scene image is less than or equal to the preset brightness threshold can be adjusted to 0, so that the position of each pixel of the transparent panel in the second pixel set is transparent. In this way, while the transparent panel shields strong light by adjusting the pixel value of each pixel of the first pixel set, the transparency of the transparent panel and the position of each pixel in the second pixel set can be kept at the maximum, which avoids excessive blocking of the human eye's field of view by the transparent panel to a certain extent, and improves the safety performance of the shading component.
[0098] like Figure 3 As shown, after step S101: controlling the first image acquisition unit to acquire a scene image, the method further includes:
[0099] S301: Controlling a second image acquisition unit to acquire a face image, wherein the second image acquisition unit is located on a side of the transparent panel close to human eyes;
[0100] S302: Determine a first coordinate position of a gaze point of a human eye on the transparent panel according to the facial image;
[0101] S303: Determine a movement vector of the first coordinate position relative to the central coordinate position of the transparent panel;
[0102] S304: moving each pixel in the scene image according to the movement vector to obtain a moved image;
[0103] S305: Determine the first pixel set from the moved image.
[0104] In the specific implementation process, the specific implementation process of step S301 to step S305 is as follows:
[0105] First, the second image acquisition unit located on the side of the transparent panel close to the human eye can be controlled in real time to acquire a facial image. The second image acquisition unit can be a camera, and eye tracking can be realized. If the dimming method of the shading component is applied to a vehicle, the second image acquisition unit and the first image acquisition unit can be relatively arranged on the transparent panel. When the transparent panel is arranged in front of the human eye, the second image acquisition unit can acquire a facial image, and the first image acquisition unit can acquire a road condition image. After acquiring the facial image, the first coordinate position of the human eye gaze point on the transparent panel can be determined according to the facial image. In the specific implementation process, after acquiring the facial image, the facial position can be determined, and then the three-dimensional coordinate position of the head relative to the second image acquisition unit is obtained by pnp solution, which is recorded as H(x, y, z). Among them, the face detection and pnp solution of the head posture can be implemented by the technology in the prior art, which will not be described in detail here.
[0106] After determining the three-dimensional coordinate position of the head, the line of sight of the human eye can be calculated according to the three-dimensional coordinate position of the head. Since the line of sight of the human eye and the transparent panel will have two intersections when the human eye is looking forward, and the difference between the two intersections is small, the middle value between the two intersections can be taken as the human eye gaze point, recorded as point A. According to the coordinate conversion relationship between the camera coordinate system and the world coordinate system, the first coordinate position of the human eye gaze point on the transparent panel can be determined. Then, according to the first coordinate position, the movement vector of the first coordinate position relative to the central coordinate position of the transparent panel is determined. If the dimming method of the shading component is applied to a vehicle, due to the difference in height, fatness and thinness of individuals, the coordinate position of the human eye gaze point of each driver on the transparent panel will be different. In order to improve the display effect of the transparent panel, the movement vector of the current human eye gaze point on the transparent panel can be determined. Then, each pixel in the scene image is moved according to the movement vector to obtain the moved image, and then the first pixel set is determined from the moved image.
[0107] by Figure 4Taking the structural schematic diagram shown as an example, the central coordinate position of the transparent panel is B (x2, y2), the coordinate position of the current human eye gaze point (i.e., the actual human eye gaze point) on the transparent panel is the first coordinate position A (x1, y1), and mark 10 is a transparent panel. If the coordinate position of the human eye gaze point on the transparent panel is the central coordinate position B of the transparent panel, the corresponding scene image is recorded as ScreenImage. If the coordinate position of the human eye gaze point on the transparent panel is the first coordinate position A, the movement vector V of the first coordinate position A relative to the central coordinate position B can be AB. After each pixel in the scene image is moved according to the movement vector V, the obtained moved image is recorded as ScreenImage_2. Specifically, the relationship before and after the image movement can be: ScreenImage_2=ScreenImage+V. Then, the transparency of the transparent panel is adjusted according to the moved image. Finally, the shading effect of the transparent panel is more in line with the human eye perspective, the shading effect is better, and it is more in line with the user experience.
[0108] like Figure 5 As shown, if the scene where the shading component is currently located is a dark environment, after determining the first coordinate position of the gaze point of the human eye on the transparent panel according to the face image in step S302, the method further includes:
[0109] S401: Determine, from the scene image, a partial image corresponding to a preset area including the first coordinate position;
[0110] S402: performing image enhancement processing on the partial image to obtain an enhanced image;
[0111] S403: multiplying the enhanced image by a preset transparency, and superimposing the enhanced image on the scene image to obtain a superimposed image, so that the transparent panel displays the superimposed image.
[0112] In the specific implementation process, the specific implementation process of step S401 to step S403 is as follows:
[0113] First, detect whether the scene where the shading component is currently located is a dark environment. If the scene where the shading component is currently located is a dark environment, such as a night driving environment, it can be determined based on the lighting conditions of the current environment that the scene where the shading component is currently located is a dark environment. For example, if the average light intensity of the scene image is less than the preset light intensity, it indicates that the scene where the shading component is currently located is a dark environment. For another example, it can be detected based on the detected current system time and the time period set at night that the scene where the shading component is currently located is a dark environment. For example, if the current system time is 23:00 and the night time period is 22:00-6:00, it indicates that the scene where the shading component is currently located is a dark environment.
[0114] If the scene where the shading component is currently located is a dark environment, first, according to the face image, determine the first coordinate position of the human eye gaze point on the transparent panel, and then determine the partial image corresponding to the preset area including the first coordinate position from the scene image, for example, the partial image can be cut out from the scene image. Among them, the shape of the preset area can be rectangular or circular, which is not limited here. The area of the preset area can be specifically set according to the human eye field of view in actual applications, which is not described in detail here. After cutting out the partial image from the scene image, the partial image is subjected to image enhancement processing to obtain an enhanced image, wherein the image enhancement processing can be edge enhancement processing, high dynamic range (HDR) processing, or contrast stretching processing, so as to enhance the image quality of the partial image corresponding to the preset area (i.e., the human eye gaze area). After obtaining the enhanced image, the enhanced image can be multiplied by the preset transparency and superimposed on the scene image to obtain the superimposed image, so that the transparent panel displays the superimposed image. Wherein, the numerical range of the preset transparency is (0, 1), wherein when the preset transparency is a numerical value close to 0, it indicates that the state of the area corresponding to the transparent panel and the preset area is close to being completely opaque, and when the preset transparency is a numerical value close to 1, it indicates that the state of the area corresponding to the transparent panel and the preset area is close to being completely transparent. Taking the dimming method of the shading component applied to a vehicle as an example, for dark environments such as driving at night, the dark light can be enhanced, thereby improving the display quality of the collected scene image in a dark environment. Since the road conditions ahead seen by the human eye are superimposed with part of the image after image enhancement processing, that is, the road conditions ahead are displayed on the transparent panel as image information and enhanced, in this way, the image displayed by the transparent panel will become clearer, which improves the driver's grasp of the road conditions and ensures driving safety. In addition, the transparency can be adjusted by the preset transparency to avoid the transparent panel completely blocking the human eye's line of sight, while taking into account safe driving, it has a good shading effect.
[0115] Based on the same inventive concept, an embodiment of the present invention also provides a shading component that adopts the above-mentioned dimming method. The principle of solving the problem by the shading component is similar to that of the above-mentioned dimming method. Therefore, the implementation of the shading component can refer to the implementation of the above-mentioned dimming method, and the repeated parts will not be repeated.
[0116] In the specific implementation process, Figure 6 As shown, the shading component includes:
[0117] The transparent panel 10, the main control unit 20 and the first image acquisition unit 30 (eg, Figure 6 The main control unit 20 is used for:
[0118] Controlling the first image acquisition unit 30 to acquire scene images;
[0119] Determining the brightness value of each pixel in the scene image;
[0120] Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel;
[0121] Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value;
[0122] According to the adjusted pixel value, the transparency of the transparent panel 10 at the corresponding pixel position in the first pixel set is reduced, so that the transparent panel 10 displays the scene image according to the adjusted pixel value.
[0123] In the embodiment of the present invention, the main control unit 20 is further used for:
[0124] Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel;
[0125] The pixel value of each pixel in the second pixel set is adjusted to a minimum value, so that the transparency of the transparent panel 10 at the corresponding pixel position in the second pixel set is maximized.
[0126] In the specific implementation process, the main control unit 20 is provided with a hardware structure such as a driving circuit, which can control the transparency of the transparent panel 10 and the effect of the display image. The first image acquisition unit 30 can be a rear camera integrated on the transparent panel 10.
[0127] In the embodiment of the present invention, the shading assembly further includes a second image acquisition unit 40 located on a side of the transparent panel 10 close to the human eye, and the main control unit 20 is used for:
[0128] Controlling the second image acquisition unit 40 to acquire a face image;
[0129] Determine a first coordinate position of a gaze point of a human eye on the transparent panel 10 according to the facial image;
[0130] Determine a movement vector of the first coordinate position relative to the central coordinate position of the transparent panel 10;
[0131] Moving each pixel in the scene image according to the movement vector to obtain a moved image;
[0132] The first set of pixels is determined from the shifted image.
[0133] In a specific implementation process, the second image acquisition unit 40 may be a front camera integrated on the transparent panel 10 .
[0134] In the embodiment of the present invention, if the scene in which the shading component is currently located is a dark environment, the main control unit 20 is further used to:
[0135] Determine, from the scene image, a partial image corresponding to a preset area including the first coordinate position;
[0136] Performing image enhancement processing on the partial image to obtain an enhanced image;
[0137] The enhanced image is multiplied by a preset transparency and superimposed on the scene image to obtain a superimposed image, so that the transparent panel 10 displays the superimposed image.
[0138] Based on the same inventive concept, an embodiment of the present invention further provides a vehicle, including: Figure 6 The shading assembly shown in the figure can be fixed at the position of the original light-proof shading plate of the vehicle. The vehicle can be provided with only the shading assembly, or can be provided with both the shading assembly and the original light-proof shading plate. In actual application, the shading assembly can be selected to shade light as needed, and the light-proof shading plate can be selected to shade light as needed, thereby ensuring the shading effect. Among them, the side of the transparent panel 10 facing the driver is integrated with the second image acquisition unit 40, which can be used to photograph the driver. The side of the transparent panel 10 facing the road condition in front is integrated with the first image acquisition unit 30, which can be used to photograph the road condition. The main control unit 20 arranged on the shading assembly can be connected to the vehicle-mounted USB charging port or other power interface through a power cord. In the specific implementation process, the shading assembly can be folded up as a whole according to the actual application needs, thereby saving vehicle space.
[0139] Based on the same inventive concept, Figure 7 As shown, an embodiment of the present invention further provides a dimming device for a shading assembly, the dimming device is applied to a vehicle, and the dimming device includes a memory 100 and a processor 200, wherein the memory 100 is used to store a computer program;
[0140] The processor 200 is used to execute the computer program in the memory to implement the following steps:
[0141] Controlling a first image acquisition unit to acquire a scene image, wherein the first image acquisition unit is located on a side of the transparent panel away from human eyes; determining a brightness value of each pixel in the scene image;
[0142] Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel;
[0143] Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value;
[0144] According to the adjusted pixel value, the transparency of the transparent panel at the corresponding pixel position in the first pixel set is reduced, so that the transparent panel displays the scene image according to the adjusted pixel value.
[0145] Based on the same inventive concept, Figure 8 As shown, an embodiment of the present invention further provides a dimming device for a shading assembly, the dimming device comprising:
[0146] A control unit 1, used for controlling a first image acquisition unit to acquire a scene image, wherein the first image acquisition unit is located on a side of the transparent panel away from human eyes;
[0147] A first determining unit 2, used to determine the brightness value of each pixel in the scene image;
[0148] A second determining unit 3 is used to determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel;
[0149] An obtaining unit 4 is used to adjust the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold, so as to obtain an adjusted pixel value;
[0150] The reducing unit 5 is used to reduce the transparency of the transparent panel at the corresponding pixel position in the first pixel set according to the adjusted pixel value, so that the transparent panel displays the scene image according to the adjusted pixel value.
[0151] In an embodiment of the present invention, the dimming device further includes an adjustment unit, and the adjustment unit is used to:
[0152] Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel;
[0153] The pixel value of each pixel in the second pixel set is adjusted to a minimum value, so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized.
[0154] In the embodiment of the present invention, the control unit 1 is further used for:
[0155] Controlling a second image acquisition unit to acquire a face image, wherein the second image acquisition unit is located on a side of the transparent panel close to human eyes;
[0156] Determine a first coordinate position of a gaze point of a human eye on the transparent panel according to the facial image;
[0157] Determining a movement vector of the first coordinate position relative to the central coordinate position of the transparent panel;
[0158] Moving each pixel in the scene image according to the movement vector to obtain a moved image;
[0159] The first set of pixels is determined from the shifted image.
[0160] In the embodiment of the present invention, the control unit 1 is further used for:
[0161] Determine, from the scene image, a partial image corresponding to a preset area including the first coordinate position;
[0162] Performing image enhancement processing on the partial image to obtain an enhanced image;
[0163] The enhanced image is multiplied by a preset transparency and superimposed on the scene image to obtain a superimposed image, so that the transparent panel displays the superimposed image.
[0164] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0169] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A dimming method for a shading component, characterized in that: include: Controlling a first image acquisition unit to acquire a scene image, wherein the first image acquisition unit is located on a side of the transparent panel away from human eyes, and the scene image is specifically an image obtained by stretching an original image acquired by the first image acquisition unit according to an image resolution of a display image of the transparent panel; Determining the brightness value of each pixel in the scene image; Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel; Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value; According to the adjusted pixel value, reducing the transparency of the transparent panel at the corresponding pixel position in the first pixel set, so that the transparent panel displays the scene image according to the adjusted pixel value; Wherein, after determining the brightness value of each pixel in the scene image, the method further includes: Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel; Adjusting the pixel value of each pixel in the second pixel set to a minimum value so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized; The pixel value of each pixel in the first pixel set is adjusted to be smaller than the pixel value corresponding to the preset brightness threshold, so as to obtain the adjusted pixel value: Counting a first maximum brightness value and a first minimum brightness value corresponding to pixel values of pixels from the first pixel set; Counting a second maximum brightness value and a second minimum brightness value corresponding to the pixel values of the pixels from the second pixel set; According to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value, and the second minimum brightness value, adjusting the pixel value of each pixel in the first pixel set to be less than the pixel value corresponding to the preset brightness threshold, to obtain an adjusted pixel value; Among them, the step: according to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value and the second minimum brightness value, the pixel value of each pixel in the first pixel set is adjusted to be less than the pixel value corresponding to the preset brightness threshold, and the adjusted pixel value is obtained, which can be specifically adopted by the following formula: BackImageLight(i,j)_2=(BackImageLight(i,j)-MinDown)*(MaxUp-MinUp) / (MaxDown-MinDown) Among them, BackImageLight(i,j) represents the brightness value corresponding to the pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, BackImageLight(i,j)_2 represents the adjusted pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, MinDown represents the first minimum brightness value, MaxDown represents the first maximum brightness value, MaxUp represents the second maximum brightness value, and MinUp represents the second minimum brightness value.
2. The method according to claim 1, characterized in that After controlling the first image acquisition unit to acquire the scene image, the method further includes: Controlling a second image acquisition unit to acquire a face image, wherein the second image acquisition unit is located on a side of the transparent panel close to human eyes; Determine a first coordinate position of a gaze point of a human eye on the transparent panel according to the facial image; Determining a movement vector of the first coordinate position relative to the central coordinate position of the transparent panel; Moving each pixel in the scene image according to the movement vector to obtain a moved image; The first set of pixels is determined from the shifted image.
3. The method according to claim 2, characterized in that If the scene where the shading component is currently located is a dark environment, after determining the first coordinate position of the gaze point of the human eye on the transparent panel according to the face image, the method further includes: Determine, from the scene image, a partial image corresponding to a preset area including the first coordinate position; Performing image enhancement processing on the partial image to obtain an enhanced image; The enhanced image is multiplied by a preset transparency and superimposed on the scene image to obtain a superimposed image, so that the transparent panel displays the superimposed image.
4. A shading component using the dimming method according to any one of claims 1 to 3, characterized in that: include: A transparent panel, a main control unit and a first image acquisition unit located on a side of the transparent panel away from the human eye; wherein the main control unit is used to: Controlling the first image acquisition unit to acquire a scene image, wherein the scene image is specifically an image obtained by stretching an original image acquired by the first image acquisition unit according to an image resolution of a display image of the transparent panel; Determining the brightness value of each pixel in the scene image; Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel; Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value; According to the adjusted pixel value, reducing the transparency of the transparent panel at the corresponding pixel position in the first pixel set, so that the transparent panel displays the scene image according to the adjusted pixel value; Wherein, after determining the brightness value of each pixel in the scene image, the main control unit is further used for: Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel; Adjusting the pixel value of each pixel in the second pixel set to a minimum value so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized; Counting a first maximum brightness value and a first minimum brightness value corresponding to pixel values of pixels from the first pixel set; Counting a second maximum brightness value and a second minimum brightness value corresponding to the pixel values of the pixels from the second pixel set; According to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value, and the second minimum brightness value, adjusting the pixel value of each pixel in the first pixel set to be less than the pixel value corresponding to the preset brightness threshold, to obtain an adjusted pixel value; Among them, the step: according to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value and the second minimum brightness value, the pixel value of each pixel in the first pixel set is adjusted to be less than the pixel value corresponding to the preset brightness threshold, and the adjusted pixel value is obtained, which can be specifically adopted by the following formula: BackImageLight(i,j)_2=(BackImageLight(i,j)-MinDown)*(MaxUp-MinUp) / (MaxDown-MinDown) Among them, BackImageLight(i,j) represents the brightness value corresponding to the pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, BackImageLight(i,j)_2 represents the adjusted pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, MinDown represents the first minimum brightness value, MaxDown represents the first maximum brightness value, MaxUp represents the second maximum brightness value, and MinUp represents the second minimum brightness value.
5. The shading assembly according to claim 4, characterized in that: The main control unit is also used for: Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel; The pixel value of each pixel in the second pixel set is adjusted to a minimum value, so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized.
6. The shading assembly according to claim 4, characterized in that: The shading assembly further includes a second image acquisition unit located on a side of the transparent panel close to the human eye, and the main control unit is used for: Controlling the second image acquisition unit to acquire a face image; Determine a first coordinate position of a gaze point of a human eye on the transparent panel according to the facial image; Determining a movement vector of the first coordinate position relative to the central coordinate position of the transparent panel; Moving each pixel in the scene image according to the movement vector to obtain a moved image; The first set of pixels is determined from the shifted image.
7. The shading assembly according to claim 6, wherein: If the scene where the shading component is currently located is a dark environment, the main control unit is further used to: Determine, from the scene image, a partial image corresponding to a preset area including the first coordinate position; Performing image enhancement processing on the partial image to obtain an enhanced image; The enhanced image is multiplied by a preset transparency and superimposed on the scene image to obtain a superimposed image, so that the transparent panel displays the superimposed image.
8. A vehicle, characterized in that: Comprising a shading assembly as described in any one of claims 4-7.
9. A dimming device for a shading component, characterized in that: The dimming device is applied to a vehicle, and comprises a memory and a processor, wherein the memory is used to store a computer program; The processor is used to execute the computer program in the memory to implement the following steps: Controlling a first image acquisition unit to acquire a scene image, wherein the first image acquisition unit is located on a side of the transparent panel away from human eyes, and the scene image is specifically an image obtained by stretching an original image acquired by the first image acquisition unit according to an image resolution of a display image of the transparent panel; Determining the brightness value of each pixel in the scene image; Determine a first pixel set in the scene image whose brightness value is greater than a preset brightness threshold, wherein the first pixel set includes at least one pixel; Adjusting the pixel value of each pixel in the first pixel set to be smaller than the pixel value corresponding to the preset brightness threshold to obtain an adjusted pixel value; According to the adjusted pixel value, reducing the transparency of the transparent panel at the corresponding pixel position in the first pixel set, so that the transparent panel displays the scene image according to the adjusted pixel value; Wherein, after determining the brightness value of each pixel in the scene image, the processor is further used to: Determine a second pixel set in the scene image whose brightness value is not greater than the preset brightness threshold, the second pixel set including at least one pixel; Adjusting the pixel value of each pixel in the second pixel set to a minimum value so that the transparency of the transparent panel at the corresponding pixel position in the second pixel set is maximized; The pixel value of each pixel in the first pixel set is adjusted to be smaller than the pixel value corresponding to the preset brightness threshold, so as to obtain the adjusted pixel value: Counting a first maximum brightness value and a first minimum brightness value corresponding to pixel values of pixels from the first pixel set; Counting a second maximum brightness value and a second minimum brightness value corresponding to the pixel values of the pixels from the second pixel set; According to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value, and the second minimum brightness value, adjusting the pixel value of each pixel in the first pixel set to be less than the pixel value corresponding to the preset brightness threshold, to obtain an adjusted pixel value; Among them, the step: according to the first maximum brightness value, the first minimum brightness value, the second maximum brightness value and the second minimum brightness value, the pixel value of each pixel in the first pixel set is adjusted to be less than the pixel value corresponding to the preset brightness threshold, and the adjusted pixel value is obtained, which can be specifically adopted by the following formula: BackImageLight(i,j)_2=(BackImageLight(i,j)-MinDown)*(MaxUp-MinUp) / (MaxDown-MinDown) Among them, BackImageLight(i,j) represents the brightness value corresponding to the pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, BackImageLight(i,j)_2 represents the adjusted pixel value of the pixel in the i-th row and j-th column in the brightness image corresponding to the scene image, MinDown represents the first minimum brightness value, MaxDown represents the first maximum brightness value, MaxUp represents the second maximum brightness value, and MinUp represents the second minimum brightness value.
