Anti-dazzling function starting method, device and equipment, storage medium and vehicle

By determining the environmental brightness observed by the inner and outer rearview mirrors in the vehicle and determining whether preset conditions are met, the problem of difficulty in accurately enabling the anti-glare function in the prior art is solved, and the precise automatic opening of the existing equipment of the vehicle is achieved, and driving safety is improved.

CN119858501AActive Publication Date: 2025-04-22BEIJING CO WHEELS TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202311368882.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-22
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

The prior art is difficult to accurately enable the anti-glare function based on the actual environment when using existing equipment of the vehicle. The light intensity perception threshold of the light sensor is single, so it is impossible to specifically judge the ambient light intensity.

Method used

By determining the target environmental brightness of the first and second environmental areas of the target vehicle, if the first and overall environmental brightness meet the preset brightness conditions, it is determined whether the anti-glare function of the exterior rearview mirror is turned on.

Benefits of technology

The anti-glare function of accurately and automatically turns on the exterior rearview mirror based on the actual environment under the existing equipment of the vehicle, improving driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119858501A_ABST
    Figure CN119858501A_ABST
Patent Text Reader

Abstract

The invention relates to an anti-dazzling function starting method and device, equipment, a storage medium and a vehicle. The method comprises the following steps: determining first target environment brightness of a first environment area of a target vehicle; the first environment area is an environment area observed through an inner rearview mirror of a target vehicle, and the first target environment brightness is the maximum value of the first local environment brightness of the first environment area; if the first target environment brightness and the overall environment brightness meet a preset brightness condition, determining second target environment brightness of a second environment area of the target vehicle; the second environment area is an environment area observed through an outside rear-view mirror of the target vehicle; according to the first target environment brightness and the second target environment brightness, whether the anti-dazzling function of the outside rear-view mirror is started or not is judged. According to the embodiment of the invention, under the condition of the existing equipment of the vehicle, the anti-dazzling function of the outside rear-view mirror is accurately and automatically started based on the actual environment of the vehicle, and the driving safety of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular to a method, device, equipment, storage medium and vehicle for activating an anti-glare function. Background Art

[0002] At present, with the development of vehicle technology, more and more vehicles are equipped with anti-glare rearview mirrors. The anti-glare rearview mirror can turn on the anti-glare function when encountering strong light or other vehicles turning on the high beam, thereby reducing the intensity of light reflected from the rearview mirror to the driver's eyes, avoiding the rearview mirror reflecting strong light and causing dazzle to the driver operating the vehicle, thereby improving the safety of driving the vehicle.

[0003] In the related technology, one method is that the driver needs to manually turn on the anti-glare function of the rearview mirror after feeling the strong light, but this will cause the driver to be distracted while driving, and it takes a long time to manually turn on the anti-glare function; another method is that an additional light sensor needs to be installed on the rearview mirror, and the electrical signal generated by the light sensor when receiving light is used to control the automatic opening and closing of the anti-glare function, but this method requires the installation of a corresponding light sensor for each rearview mirror (such as the left and right exterior rearview mirrors outside the car and the central interior rearview mirror inside the car), and the light sensor has a relatively simple perception threshold for light intensity, and cannot be combined with the ambient light intensity for specific judgment. Therefore, how to enable the anti-glare function more accurately in combination with the actual environment while using the existing equipment of the vehicle has become an urgent problem to be solved. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a method, device, equipment, storage medium and vehicle for activating an anti-glare function.

[0005] In a first aspect, the present disclosure provides a method for activating an anti-glare function, the method comprising:

[0006] Determine a first target environment brightness of a first environment area of ​​a target vehicle; wherein the first environment area is an environment area observable through an interior rearview mirror of the target vehicle, and the first target environment brightness is a maximum value of a first local environment brightness of the first environment area;

[0007] If the first target environment brightness and the overall environment brightness meet a preset brightness condition, then determine a second target environment brightness of a second environment area of ​​the target vehicle; wherein the overall environment brightness is the environment brightness collected by a preset light sensor of the target vehicle, the second environment area is an environment area observable through an exterior rearview mirror of the target vehicle, and the second target environment brightness is the maximum value of a second local environment brightness of the second environment area;

[0008] According to the first target environment brightness and the second target environment brightness, it is determined whether to turn on the anti-glare function of the exterior rearview mirror.

[0009] In a second aspect, the present disclosure provides an opening device with an anti-glare function, the device comprising:

[0010] A first determination module is used to determine a first target environment brightness of a first environment area of ​​a target vehicle; wherein the first environment area is an environment area observable through an interior rearview mirror of the target vehicle, and the first target environment brightness is a maximum value of a first local environment brightness of the first environment area;

[0011] a second determination module, configured to determine a second target environment brightness of a second environment area of ​​the target vehicle if the first target environment brightness and the overall environment brightness satisfy a preset brightness condition; wherein the overall environment brightness is the environment brightness collected by a preset light sensor of the target vehicle, the second environment area is an environment area observable through an exterior rearview mirror of the target vehicle, and the second target environment brightness is a maximum value of a second local environment brightness of the second environment area;

[0012] A judgment module is used to judge whether to turn on the anti-glare function of the exterior rearview mirror according to the first target environment brightness and the second target environment brightness.

[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:

[0014] processor;

[0015] A memory for storing executable instructions;

[0016] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the method for activating the anti-glare function of the first aspect.

[0017] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program. When the computer program is executed by a processor, the processor implements the method for activating the anti-glare function of the first aspect.

[0018] In a fifth aspect, an embodiment of the present disclosure further provides a vehicle, comprising at least one of the following: the above-mentioned anti-glare function activation device; the above-mentioned electronic device; and the above-mentioned computer-readable storage medium.

[0019] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages: a method, device, equipment and storage medium for activating the anti-glare function of the embodiments of the present disclosure determine a first target environmental brightness of a first environmental area of ​​a target vehicle; wherein the first environmental area is an environmental area that can be observed through an interior rearview mirror of the target vehicle, and the first target environmental brightness is the maximum value of the first local environmental brightness of the first environmental area; if the first target environmental brightness and the overall environmental brightness meet a preset brightness condition, then the second target environmental brightness of a second environmental area of ​​the target vehicle is determined; wherein the overall environmental brightness is the environmental brightness collected by a preset light sensor of the target vehicle, the second environmental area is an environmental area that can be observed through an exterior rearview mirror of the target vehicle, and the second target environmental brightness is the maximum value of the second local environmental brightness of the second environmental area; based on the first target environmental brightness and the second target environmental brightness, determine whether to activate the anti-glare function of the exterior rearview mirror. By adopting the above technical scheme, the maximum value of the local ambient brightness of the environmental area observable by the interior rearview mirror is determined, and the overall ambient brightness collected by the preset light sensor of the target vehicle is determined. Then, the overall ambient brightness and the maximum value of the local ambient brightness corresponding to the interior rearview mirror can be used to characterize whether a light source that is too bright relative to the overall actual environment is observed from the interior rearview mirror. If a light source that is too bright relative to the overall actual environment can be observed from the interior rearview mirror, the maximum value of the local ambient brightness of the environmental area observable by the exterior rearview mirror is determined, so as to judge whether a light source that is too bright can be observed from the exterior rearview mirror based on the two maximum values ​​of the local ambient brightness, and then determine whether to turn on the anti-glare function of the exterior rearview mirror. In the case of existing vehicle equipment, the anti-glare function of the exterior rearview mirror is accurately and automatically turned on based on the actual environment in which the vehicle is located, thereby improving the driving safety of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A schematic diagram of a flow chart of a method for activating an anti-glare function provided in an embodiment of the present disclosure;

[0023] Figure 2 A schematic flow chart of a method for determining a first target environment brightness provided by an embodiment of the present disclosure;

[0024] Figure 3 A schematic diagram of a camera viewing area provided in an embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram of a process for performing brightness processing on a rear image provided by an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of a preset interior rearview mirror area corresponding to a rearview camera provided in an embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram of a process for performing brightness processing on a rear image provided by an embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram of a preset exterior rearview mirror area corresponding to a left rear side view camera provided in an embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram of a preset image area corresponding to a right rear side view camera provided by an embodiment of the present disclosure;

[0030] Fig. 9 A schematic diagram of the structure of an opening device for an anti-glare function provided in an embodiment of the present disclosure;

[0031] Fig.10 A schematic diagram of the hardware circuit structure of a device for activating an anti-glare function provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0034] At present, with the development of vehicle technology, more and more vehicles are equipped with anti-glare rearview mirrors. The anti-glare rearview mirror can turn on the anti-glare function when encountering strong light or other vehicles turning on the high beam, thereby reducing the intensity of light reflected from the rearview mirror to the driver's eyes, avoiding the rearview mirror reflecting strong light and causing dazzle to the driver operating the vehicle, thereby improving the safety of driving the vehicle.

[0035] In the related art, the driver is required to manually turn on the anti-glare function of the rearview mirror after feeling the strong light, but this will cause the driver to be distracted while driving, and it takes a long time to manually turn on the anti-glare function.

[0036] Alternatively, an additional light sensor is installed on the rearview mirror, and the electrical signal generated by the light sensor when receiving light is used to control the automatic opening and closing of the anti-glare function. However, this method requires the installation of a corresponding light sensor for each rearview mirror (such as the left and right exterior rearview mirrors outside the car and a central interior rearview mirror inside the car), and the light sensor has a relatively single perception threshold for light intensity and cannot make a specific judgment based on the ambient light intensity.

[0037] Therefore, how to enable the anti-glare function more accurately in combination with the actual environmental conditions while utilizing the existing equipment of the vehicle and avoiding restrictions on the device layout and shape of the entire vehicle has become an urgent problem to be solved.

[0038] In order to solve the above problems, the embodiments of the present disclosure provide a method, device, equipment, storage medium and vehicle for activating an anti-glare function.

[0039] Figure 1 The flowchart of a method for activating an anti-glare function provided in an embodiment of the present disclosure can be performed by an anti-glare function activation device, wherein the device can be implemented by software and / or hardware, and can generally be integrated in an electronic device. The anti-glare function activation device and / or the electronic device can be configured in a first vehicle. Figure 1 As shown, the method includes:

[0040] Step 101, determining a first target environment brightness of a first environment area of ​​a target vehicle; wherein the first environment area is an environment area observable through an interior rearview mirror of the target vehicle, and the first target environment brightness is a maximum value of a first local environment brightness of the first environment area.

[0041] Among them, the target vehicle can be a moving vehicle, and optionally, the target vehicle can be a vehicle with a gear position of a forward gear, that is, the gear position of the target vehicle is in the forward gear. This embodiment does not limit the energy supply type of the target vehicle. For example, the energy supply type of the target vehicle can be pure electric power or hybrid power. This embodiment does not limit the type of the target vehicle. For example, the type of the target vehicle can be a sports utility vehicle (SUV) or a sedan. The interior rearview mirror can be a rearview mirror located inside the cab of the target vehicle, through which the environment behind the vehicle can be observed.

[0042] The environmental area may be a part of the overall environment of the target vehicle, and the first environmental area may be an environmental area that can be observed by the user through the rearview mirror at the main driving position. The environmental brightness may be the brightness of the environment, and the environmental brightness may be the brightness obtained based on the image brightness conversion. The environmental brightness may be illumination, and the present embodiment does not limit the unit of the environmental brightness. For example, the unit of the environmental brightness may be lux. The first local environmental brightness may be the environmental brightness of a local area within the first environmental area, and the first target environmental brightness may represent the maximum value of the environmental brightness of the local area within the first environmental area.

[0043] In the disclosed embodiment, the device for activating the anti-glare function may collect the first target ambient brightness of the maximum local ambient brightness in the first ambient area through a light sensor. Alternatively, the device for activating the anti-glare function may obtain a rear image corresponding to the rearview mirror, and determine the first target ambient brightness of the first ambient area based on the rear image.

[0044] Step 102, if the first target environment brightness and the overall environment brightness meet the preset brightness condition, determine the second target environment brightness of the second environment area of ​​the target vehicle; wherein the overall environment brightness is the environment brightness collected by the preset light sensor of the target vehicle, the second environment area is the environment area that can be observed through the exterior rearview mirror of the target vehicle, and the second target environment brightness is the maximum value of the second local environment brightness of the second environment area.

[0045] The preset light sensor may be a sensor for measuring the light intensity in front of the vehicle, and the preset light sensor may be a sensor not dedicated to determining whether to turn on the anti-glare function, that is, the preset light sensor may be a light sensor in other systems of the target vehicle except the rearview mirror system. For example, the preset light sensor may be a rain light sensor (also known as an optical rain sensor) of a wiper system. The overall ambient brightness may be the ambient brightness that characterizes the overall environment in which the target vehicle is located.

[0046] The preset brightness condition may be a pre-set condition for determining whether to turn on the anti-glare function of the exterior rearview mirror, and the preset brightness condition may be understood as a precondition for determining whether to turn on the anti-glare function of the exterior rearview mirror. The preset brightness condition may be set according to user needs, application scenarios, etc., and is not limited in this embodiment. The exterior rearview mirror may be a rearview mirror located outside the cab of the vehicle, through which the environment behind the vehicle may be observed. The exterior rearview mirror may include a left exterior rearview mirror located on the left side of the exterior of the vehicle, and / or a right exterior rearview mirror located on the right side of the exterior of the vehicle. The second environmental area may be an environmental area that can be observed by the user through the exterior rearview mirror at the main driving position. The second local environmental brightness may be the environmental brightness of a local area within the second environmental area, and the second target environmental brightness may represent the maximum value of the environmental brightness of a local area within the second environmental area.

[0047] In the disclosed embodiment, the preset light sensor configured for the target vehicle collects the overall ambient brightness and sends the overall ambient brightness to the device for activating the anti-glare function. The device for activating the anti-glare function can receive the overall ambient brightness. It should be noted that the collection time of the overall ambient brightness can be the same as the shooting time of the target image or the time difference can be less than the time difference threshold.

[0048] The overall ambient brightness represents the overall ambient brightness of the vehicle's environment, and the first target ambient brightness represents the maximum value of the first local ambient brightness of the first environmental area that can be observed by the target rearview mirror. Determine whether the first target ambient brightness and the overall ambient brightness meet the preset brightness conditions. If so, it means that a local light source whose ambient brightness is higher than the overall environment can be seen through the interior rearview mirror. Furthermore, the anti-glare function activation device can collect the second target ambient brightness with the maximum local ambient brightness in the second environmental area through a light sensor, or the anti-glare function activation device can obtain the rear side image corresponding to the exterior rearview mirror, and determine the second target ambient brightness of the second environmental area based on the rear side image.

[0049] If the first target ambient brightness and the overall ambient brightness do not meet the preset brightness conditions, it means that no local light source whose ambient brightness is higher than the overall environment can be seen through the interior rearview mirror, and no subsequent judgment on whether to turn on the anti-glare function of the exterior rearview mirror will be made.

[0050] In some embodiments of the present disclosure, the first target environment brightness and the overall environment brightness satisfy a preset brightness condition, including: determining the environment brightness difference between the first target environment brightness and the overall environment brightness; if the environment brightness difference is within a first preset difference range, the preset brightness condition is satisfied.

[0051] The ambient brightness difference may be the numerical difference between the first target ambient brightness and the overall ambient brightness. The first preset difference interval may be a preset range of ambient brightness difference values ​​for judging whether to turn on the anti-glare function of the exterior rearview mirror. The first preset difference interval may be set according to user needs, application scenarios, etc., and is not limited in this embodiment. It can be understood that if the ambient brightness difference is within the first preset difference interval, a subsequent judgment on whether to turn on the anti-glare function of the exterior rearview mirror is performed. If the ambient brightness difference is not within the first preset difference interval, it is determined not to turn on the anti-glare function of the exterior rearview mirror, and a subsequent judgment on whether to turn on the anti-glare function of the exterior rearview mirror is not performed.

[0052] In this embodiment, the difference between the first target environment brightness and the overall environment brightness is calculated to obtain the environment brightness difference. It is determined whether the environment brightness difference is within a preset difference interval. If so, it is determined that the first target environment brightness and the overall environment brightness meet the preset brightness condition. Otherwise, it is determined that the first target environment brightness and the overall environment brightness do not meet the preset brightness condition.

[0053] In the above scheme, based on the fact that the ambient brightness difference is within the first preset difference interval, it is determined that there is a light source that is brighter than the overall environment in the environmental area observed through the interior rearview mirror. Therefore, it is necessary to further determine whether the brighter light source can be seen through the exterior rearview mirror. Reasonable judgment conditions are set for turning on the anti-glare function of the exterior rearview mirror, thereby improving the rationality of turning on the anti-glare function of the subsequent exterior rearview mirror.

[0054] Step 103: Determine whether to turn on the anti-glare function of the exterior rearview mirror according to the first target environment brightness and the second target environment brightness.

[0055] Among them, the anti-glare function can prevent the light reflected by the rearview mirror from being too strong, thereby avoiding dazzle for the user.

[0056] In the disclosed embodiment, after determining the first target environment brightness and the second target environment brightness, the anti-glare function activation device can determine whether the first target environment brightness and the second target environment brightness meet the preset anti-glare function activation conditions. If so, the anti-glare function of the exterior rearview mirror is activated; otherwise, the anti-glare function of the exterior rearview mirror is kept off. The anti-glare function activation condition can be a condition for activating the anti-glare function, and the anti-glare function activation condition can be set according to user needs, application scenarios, etc., and is not limited in this embodiment.

[0057] In some embodiments of the present disclosure, whether to turn on the anti-glare function of the exterior rearview mirror is determined based on the first target environment brightness and the second target environment brightness, including: determining the maximum value difference between the first target environment brightness and the second target environment brightness; if the maximum value difference is within a second preset difference range, turning on the anti-glare function of the exterior rearview mirror.

[0058] The maximum value difference may be the numerical difference between the first target environment brightness and the second target environment brightness. The second preset difference interval may be a preset range of maximum value differences for turning on the anti-glare function of the exterior rearview mirror. The second preset difference interval may be set according to user needs, application scenarios, etc., and is not limited in this embodiment. It can be understood that if the maximum value difference is within the second preset difference interval, the anti-glare function of the exterior rearview mirror is turned on. If the maximum value difference is not within the second preset difference interval, it is determined that the anti-glare function of the exterior rearview mirror is not turned on.

[0059] In this embodiment, the difference between the first target environment brightness and the second target environment brightness is calculated to obtain a maximum difference. It is determined whether the maximum difference is within a second preset difference interval. If so, it is determined to turn on the anti-glare function of the exterior rearview mirror. Otherwise, the anti-glare function of the exterior rearview mirror is kept in an off state.

[0060] In the above scheme, on the basis of determining that there is a light source brighter than the overall environment in the environment area observable by the interior rearview mirror, if the maximum value difference is within the second preset difference interval, it means that a light source with a brightness close to that observed by the interior rearview mirror can be observed through the exterior rearview mirror, and then the anti-glare function of the exterior rearview mirror is turned on, which improves the rationality of turning on the anti-glare function of the exterior rearview mirror.

[0061] The method for activating the anti-glare function provided by the embodiment of the present disclosure determines a first target environmental brightness of a first environmental area of ​​a target vehicle; wherein the first environmental area is an environmental area observable through an interior rearview mirror of the target vehicle, and the first target environmental brightness is the maximum value of a first local environmental brightness of the first environmental area; if the first target environmental brightness and the overall environmental brightness meet a preset brightness condition, then the second target environmental brightness of a second environmental area of ​​the target vehicle is determined; wherein the overall environmental brightness is the environmental brightness collected by a preset light sensor of the target vehicle, the second environmental area is an environmental area observable through an exterior rearview mirror of the target vehicle, and the second target environmental brightness is the maximum value of a second local environmental brightness of the second environmental area; based on the first target environmental brightness and the second target environmental brightness, it is determined whether to activate the anti-glare function of the exterior rearview mirror. The disclosed embodiment determines the maximum local ambient brightness of the environmental area observable by the interior rearview mirror, and determines the overall ambient brightness collected by the preset light sensor of the target vehicle, and then can characterize whether a light source that is too bright relative to the overall actual environment is observed from the interior rearview mirror through the overall ambient brightness and the maximum local ambient brightness corresponding to the interior rearview mirror. If a light source that is too bright relative to the overall actual environment can be observed from the interior rearview mirror, the maximum local ambient brightness of the environmental area observable by the exterior rearview mirror is determined, so as to judge whether a light source that is too bright can be observed from the exterior rearview mirror based on the two maximum local ambient brightness values, and then determine whether to turn on the anti-glare function of the exterior rearview mirror. In the case of existing vehicle equipment, the anti-glare function of the exterior rearview mirror is accurately and automatically turned on based on the actual environment in which the vehicle is located, thereby improving the driving safety of the user.

[0062] In some embodiments of the present disclosure, the device for activating the anti-glare function may determine the brightness of the first target environment based on a rear image captured by a rearview camera corresponding to the rearview mirror. Figure 2 A flowchart of a method for determining a first target environment brightness provided by an embodiment of the present disclosure is shown as follows: Figure 2As shown, determining a first target environment brightness of a first environment area of ​​a target vehicle includes:

[0063] Step 201, obtaining a rear image captured by a rearview camera of a target vehicle.

[0064] The rear-view camera may be a camera whose viewing area includes the area directly behind the target vehicle. The rear-view camera may be a camera facing the rear of the target vehicle. The embodiment does not limit the arrangement position of the rear-view camera. For example, the rear-view camera may be arranged at the rear part of the target vehicle, or the rear-view camera may be arranged inside the target vehicle.

[0065] In an optional embodiment, the rearview camera may be a camera used to capture rear images in an image system. For example, the rearview camera may be a camera facing the rear of the vehicle in an Around View Monitor (AVM) system; or, the rearview camera may be a camera facing the rear of the vehicle in an Advanced Driver Assistance System (ADAS) system. It is understandable that since the observation distance of the camera in the advanced driver assistance system is relatively far, it is able to observe light at a relatively far distance, thereby improving the accuracy of the final determination of whether to turn on the anti-glare function. The rear image may be an image captured by the rear camera. This embodiment does not limit the format of the rear image. For example, the format of the rear image may be a raw image file (RAW).

[0066] In this embodiment, the rear image corresponding to the interior rearview mirror is collected by a rearview camera. Figure 3 A schematic diagram of a camera viewing area provided in an embodiment of the present disclosure, such as Figure 3 As shown, the viewing area of ​​the rear-view camera includes the area directly behind the target vehicle.

[0067] During the driving process of the target vehicle, the rear-view camera collects rear images in real time, and the device for turning on the anti-glare function obtains the rear images.

[0068] Step 202: Perform brightness processing on the rear image to obtain a first target environment brightness of a first environment area.

[0069] The brightness processing may include maximum image brightness recognition, brightness conversion between image brightness and ambient brightness, etc. The first ambient area may be an area that can be observed by the user through the rearview mirror at the main driving position.

[0070] In the disclosed embodiment, after obtaining the rear image, the anti-glare function activation device can crop the rear image according to the preset rearview mirror area corresponding to the rearview mirror, and perform brightness processing such as maximum image brightness recognition and brightness conversion on the cropped rear image to obtain the first target environment brightness. The first target environment brightness records the maximum value of the first local environment brightness within the first environment area that can be observed by the rearview mirror.

[0071] In the above solution, the brightness of the first target environment is determined based on image processing.

[0072] Figure 4 A schematic diagram of a process for performing brightness processing on a rear image provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, in some embodiments of the present disclosure, brightness processing is performed on the rear image to obtain a first target environment brightness of the first environment area, including:

[0073] Step 401, identifying a first target local image with the highest image brightness in a rear image, and determining the image brightness of the first target local image as the first target local image brightness; wherein the first target local image is within a preset inner rearview mirror area of ​​the rear image.

[0074] The first target local image may be a local image with the largest image brightness among the multiple local images divided by the rear image. Alternatively, the first target local image may be a local image determined by performing maximum image brightness recognition on the rear image. Image brightness may be the brightness of the image, and the image brightness may be the brightness presented by the image. The first target local image brightness may be the image brightness of the first target local image, and the first target local image brightness may be understood as the maximum value of the image brightness in the local area of ​​the rear image.

[0075] The preset rearview mirror area may be an area in the rear image that can be observed through the rearview mirror. The preset rearview mirror area may correspond to the rear camera. For example, Figure 5 A schematic diagram of a preset rearview mirror area corresponding to a rearview camera provided in an embodiment of the present disclosure, such as Figure 5 As shown, area 501 in the rear image 500 captured by the rear view camera is a preset interior rearview mirror area, and the area 501 is located in the middle of the rear image 500 .

[0076] In the embodiment of the present disclosure, there are many methods for determining the target partial image, which are not limited in this embodiment. Examples are as follows:

[0077] In an optional implementation, the first target partial image in the rear image may be determined based on a grid division method. Specifically, identifying the first target partial image with the highest image brightness in the rear image includes:

[0078] Step a1, grid-dividing the rear image according to a preset number of rows and a preset number of columns to obtain a plurality of first candidate partial images within a preset interior rearview mirror area.

[0079] The preset number of rows may be a preset number of rows obtained after the rear image is divided, and the preset number of rows may be a positive integer M. This embodiment does not limit the preset number of rows, and the preset number of rows may be set according to user requirements or the recognition sensitivity of image brightness. The preset number of columns may be a preset number of columns obtained after the rear image is divided, and the preset number of columns may be a positive integer N. This embodiment does not limit the preset number of columns, and the preset number of columns may be set according to user requirements or the recognition sensitivity of image brightness. The first candidate partial image may be a first partial image located in a preset inner rearview mirror area among a plurality of first partial images obtained by dividing the rear image.

[0080] In this embodiment, the device for activating the anti-glare function may include an image signal processing (ISP) unit, through which the overall rear image can be grid-divided according to a preset number of rows and a preset number of columns to obtain multiple first local images. Further, the first local images located in the preset image area are determined as multiple first candidate local images.

[0081] Alternatively, the device for activating the anti-glare function can first capture the rear image according to a preset rearview mirror area to obtain a first captured image, and divide the first captured image into a grid according to a preset number of rows and a preset number of columns through an image signal processing unit to obtain a first candidate local image.

[0082] Step a2, determining the brightness of multiple first local images corresponding to the multiple first candidate local images, and determining the candidate local image corresponding to the maximum brightness among the multiple first local images as the first target local image.

[0083] The first partial image brightness may be the image brightness of the first candidate partial image.

[0084] In this embodiment, the device for activating the anti-glare function can use each first candidate partial image as a calculation area, calculate the partial image brightness of each first candidate partial image, and obtain multiple first partial image brightnesses, and determine the maximum value among the multiple first partial image brightnesses, and determine the first candidate partial image corresponding to the maximum value as the first target partial image.

[0085] In the above scheme, based on the grid division of the rear image, the position of the first partial image can be determined while determining the first partial image, which provides a basis for the subsequent determination of the first candidate partial image in the preset rearview mirror area. In addition, the method has a small demand for computing power and can determine the target partial image quickly.

[0086] In another optional implementation, the target partial image in the rear image may be determined based on an image processing method. Specifically, identifying the first target partial image with the highest image brightness in the rear image includes:

[0087] Step b1, performing grayscale processing and Gaussian processing on the rear image to obtain a first processed image.

[0088] Among them, grayscale processing can be a processing method for converting an image from color to grayscale, and this embodiment does not limit the specific method of the grayscale processing. Gaussian processing is also called Gaussian blur processing. Through this Gaussian processing, the noise in the image can be reduced and the level of detail can be reduced, thereby avoiding the influence of noise with high image brightness on the final target local image. The first processed image can be an image obtained by performing image processing on the rear image.

[0089] In this embodiment, the device for activating the anti-glare function can perform grayscale processing and Gaussian processing on the rear image to obtain a first processed image that has completed grayscale processing and noise reduction.

[0090] Step b2: determine the portion of the first processed image located in the preset rearview mirror area as the first intermediate image, and determine the first target pixel point in the first intermediate image whose image brightness is greater than a preset image brightness threshold.

[0091] The preset image brightness threshold may be a preset maximum value that will not cause dazzle to the user. The preset image brightness threshold may be set according to user needs, etc., and is not limited in this embodiment.

[0092] In this embodiment, after determining the first processed image, the first processed image is clipped according to the preset rearview mirror area, and the clipped portion of the image is determined as the first intermediate image. For each pixel in the first intermediate image, the image brightness of the pixel is determined, and it is determined whether the image brightness is greater than a preset image brightness threshold. If so, the pixel is determined as the first target pixel.

[0093] Step b3, determining a first sampling position of a preset sampling frame in the rear image according to the position of the first target pixel point, and sampling the rear image using the preset sampling frame according to the first sampling position to obtain a first target partial image.

[0094] The preset sampling frame may be a frame preset to sample the rear image to obtain the target partial image. The present embodiment does not limit the size of the sampling frame. The size of the sampling frame may be set according to user requirements or the recognition sensitivity of the image brightness. The present embodiment does not limit the shape of the sampling frame. For example, the sampling frame may be a rectangle or a circle. The sampling position may be the position of the preset sampling frame when the preset sampling frame samples the rear image.

[0095] In this embodiment, after determining the first target pixel point, the device for enabling the anti-glare function determines the position of each first target pixel point, performs clustering processing on the position of the first target pixel point, and determines the center point of the clustering result as the first sampling position of the preset sampling frame. The preset sampling frame is sampled at the first sampling position of the rear image to obtain the first target partial image.

[0096] In the above solution, the partial image located in the preset image area can be used as a whole to identify the target local image, and the target local image finally determined can more accurately represent the local image with the maximum image brightness.

[0097] Step 402: convert the first target local image brightness to obtain the first target environment brightness.

[0098] The first target environment brightness may be an environment brightness corresponding to the first target local image brightness, and the first target environment brightness may be a local maximum environment brightness representing a preset rearview mirror area.

[0099] In this embodiment, after determining the brightness of the first target local image, the brightness of the first target local image is converted into the first target environment brightness. There are many methods for converting the brightness of the first target local image into the first target environment brightness, which are not limited in this embodiment, and examples are described as follows:

[0100] In an optional implementation, the shooting process of the rear image can be determined based on the camera parameters of the rear image, and the shooting process can be reversed to obtain an inverse shooting process of the shooting process, and the brightness of the local image of the first target can be restored to the ambient brightness of the first target based on the inverse shooting process.

[0101] In another optional implementation, converting the target local image brightness to obtain the first target environment brightness includes:

[0102] Determine a first camera parameter of the rear image, input the first camera parameter into a preset coefficient adjustment relationship, and obtain a first adjustment value corresponding to the rear image; wherein the camera parameter includes: at least one of an exposure parameter, a gain coefficient, and a gamma coefficient; adjust the first target local image according to the first adjustment value to obtain the first target ambient brightness.

[0103] The camera parameters may be parameters of the rear camera when shooting rear images. The exposure parameters include but are not limited to: at least one of an exposure coefficient and an exposure mode. The exposure coefficient may be a quantity representing the amount of exposure. The exposure mode may be a quantity representing the type of exposure, and the exposure mode includes but is not limited to: long and short exposure, and multi-frame synthesis. The gain coefficient is also called image gain. The gamma coefficient is also called gamma conversion coefficient.

[0104] The preset coefficient adjustment relationship may be a correspondence relationship between a pre-calibrated camera parameter and an adjustment value. The first adjustment value may be a conversion value for adjusting the first target partial image to the ambient brightness.

[0105] In the disclosed embodiment, the rear camera is used in advance to shoot the ambient brightness using different camera parameters to obtain a corresponding captured image, and the image brightness of the captured image is determined. The ambient brightness is divided by the image brightness of the captured image to obtain an adjustment value. The adjustment value corresponding to the different camera parameters is determined. The corresponding relationship between the calibration camera coefficient and the corresponding adjustment value is fitted to obtain a preset coefficient adjustment relationship. Further, after determining the rear image, the preset coefficient adjustment relationship is queried according to the camera parameters of the rear image to obtain a first adjustment value corresponding to the rear image. The first adjustment value is multiplied by the brightness of the first target local image to obtain the first target ambient brightness.

[0106] In the above scheme, a preset coefficient adjustment relationship is established in a calibrated manner. Based on the preset coefficient adjustment relationship, less computing power can be consumed to quickly convert the image brightness into the ambient brightness, thereby improving the timeliness of turning on the anti-glare function.

[0107] In some embodiments of the present disclosure, determining a second target environment brightness of a second environment area of ​​a target vehicle includes: acquiring a rear image captured by a rear side view camera of the target vehicle; performing brightness processing on the rear image to obtain a second target environment brightness of the second environment area.

[0108] Among them, the rear side view camera is also called the side rear view camera, and the rear side view camera can be a camera whose framing area includes the side rear of the target vehicle. The rear side view camera can be a camera facing the side rear of the target vehicle, and the present embodiment does not limit the arrangement position of the rear side view camera. For example, the rear side view camera can be arranged on the exterior rearview mirror of the target vehicle, or the rear side view camera can be arranged on the body of the target vehicle on the side. The rear side camera can include a left rear side view camera and a right rear side view camera. Among them, the left rear side view camera can be a camera whose framing area includes the left rear side of the target vehicle. The left rear side view camera can be a camera facing the left rear side of the target vehicle. The right rear side view camera can be a camera whose framing area includes the right rear side of the target vehicle. The right rear side view camera can be a camera facing the right rear side of the target vehicle. The second environmental area can be the area that the user can observe through the exterior rearview mirror in the main driver's seat.

[0109] In an optional implementation, the rear side view camera may be a camera used in an image system to capture side and rear images. For example, the rear side view camera may be a camera facing the side and rear of the vehicle in a panoramic monitoring imaging system; or, the rear side view camera may be a camera facing the side and rear of the vehicle in an advanced driver assistance system.

[0110] The rear side image may be an image acquired by a rear side view camera. The present embodiment does not limit the format of the rear side image, for example, the format of the rear side image may be a raw image file (RAW).

[0111] In this embodiment, the rear side image corresponding to the left rear rearview mirror is collected by the left rear side view camera, and the rear side image corresponding to the right rear rearview mirror is collected by the right rear side view camera. Figure 3 As shown, the viewing area of ​​the left rear side view camera includes the area behind the left side of the target vehicle, and the viewing area of ​​the right rear side view camera includes the area behind the right side of the target vehicle.

[0112] During the driving process of the target vehicle, the rear side camera collects the rear side image in real time, and the anti-glare function activation device obtains the rear side image. Afterwards, the rear side image is cropped according to the preset rear side mirror area corresponding to the rear side mirror, and the rear side image after cropping is subjected to brightness processing such as maximum image brightness recognition and brightness conversion to obtain the second target environment brightness, which records the maximum value of the second local environment brightness in the second environment area observable by the rear side mirror.

[0113] Figure 6 A schematic diagram of a process for performing brightness processing on a rear image provided by an embodiment of the present disclosure is shown in FIG. Figure 6As shown, in some embodiments of the present disclosure, brightness processing is performed on the rear image to obtain a second target environment brightness of the second environment area, including:

[0114] Step 601, identifying a second target local image with the highest image brightness in the rear side image, and determining the image brightness of the second target local image as the second target local image brightness; wherein the second target local image is within a preset exterior rearview mirror area of ​​the rear side image.

[0115] The second target partial image may be a second partial image with the largest image brightness among a plurality of second partial images divided from the rear image. Alternatively, the second target partial image may be a second partial image determined by performing maximum image brightness recognition on the rear image. The second target partial image brightness may be the image brightness of the second target partial image, and the second target partial image brightness may be understood as the maximum value of the image brightness in the partial portion of the rear image.

[0116] The preset exterior rearview mirror area may be an area in the rear image that can be observed through the exterior rearview mirror. The preset exterior rearview mirror area may correspond to the rear side view camera. For example, Figure 7 A schematic diagram of a preset exterior rearview mirror area corresponding to a left rear side view camera provided in an embodiment of the present disclosure, such as Figure 7 As shown, area 701 in the rear image 700 captured by the left rear side view camera is a preset exterior rearview mirror area, and the area 701 is located on the left side of the rear image 700 . Figure 8 A schematic diagram of a preset image area corresponding to a right rear side view camera provided in an embodiment of the present disclosure, such as Figure 8 As shown, area 801 in the rear image 800 captured by the right rear side view camera is a preset image area, and the area 801 is located in the right part of the rear image 800 .

[0117] In the embodiment of the present disclosure, there are many methods for determining the second target partial image, which are not limited in this embodiment. Examples are as follows:

[0118] In an optional implementation, the second target partial image in the rear image may be determined based on a grid division method. Specifically, identifying the second target partial image with the highest image brightness in the rear image includes:

[0119] Step c1, gridding the rear side image according to a preset number of rows and a preset number of columns to obtain a plurality of second candidate partial images within a preset exterior rearview mirror area.

[0120] The second candidate partial image may be a second partial image located in the rearview mirror area among a plurality of second partial images obtained by dividing the rear side image.

[0121] In this embodiment, the device for activating the anti-glare function may include an image signal processing unit, through which the overall rear image can be grid-divided according to a preset number of rows and a preset number of columns to obtain multiple second local images. Further, the second local image located in a preset exterior rearview mirror area is determined as a plurality of second candidate local images.

[0122] Alternatively, the device for activating the anti-glare function can first capture the rear image according to the exterior rearview mirror area to obtain a second captured image, and divide the second captured image into a grid according to a preset number of rows and a preset number of columns through an image signal processing unit to obtain a second candidate local image.

[0123] Step c2, determining the brightness of multiple second local images corresponding to the multiple second candidate local images, and determining the second candidate local image corresponding to the maximum brightness among the multiple second local images as the second target local image.

[0124] In this embodiment, the device for activating the anti-glare function can use each second candidate partial image as a calculation area, calculate the partial image brightness of each second candidate partial image, and obtain multiple second partial image brightnesses. The maximum value among the multiple second partial image brightnesses is determined, and the second candidate partial image corresponding to the maximum value is determined as the second target partial image.

[0125] In the above scheme, based on the grid division of the rear image, the location of the local image can be determined while determining the local image, which provides a basis for the subsequent determination of the second candidate local image in the preset exterior rearview mirror area. In addition, the scheme has a low demand for computing power and can determine the second target local image quickly.

[0126] In another optional implementation, the second target partial image in the rear image may be determined based on an image processing method. Specifically, identifying the second target partial image with the highest image brightness in the rear image includes:

[0127] Step d1, performing grayscale processing and Gaussian processing on the rear image to obtain a second processed image.

[0128] The second processed image may be an image obtained by performing image processing on the rear side image.

[0129] In this embodiment, the device for activating the anti-glare function can perform grayscale processing and Gaussian processing on the rear image to obtain a second processed image that has completed grayscale processing and noise reduction.

[0130] Step d2, determining the portion of the second processed image located in the preset exterior rearview mirror area as the second intermediate image, and determining a second target pixel point in the second intermediate image whose image brightness is greater than a preset image brightness threshold.

[0131] In this embodiment, after determining the second processed image, the second processed image is clipped according to the preset exterior rearview mirror area, and the clipped portion of the image is determined as the second intermediate image. For each pixel in the second intermediate image, the image brightness of the pixel is determined, and it is determined whether the image brightness is greater than a preset image brightness threshold. If so, the pixel is determined as the second target pixel.

[0132] Step d3, determining a second sampling position of a preset sampling frame in the rear image according to the position of the second target pixel point, and sampling the rear image using the preset sampling frame according to the second sampling position to obtain a second target partial image.

[0133] In this embodiment, after determining the second target pixel point, the device for enabling the anti-glare function determines the position of each second target pixel point, performs clustering processing on the position of the second target pixel point, and determines the center point of the clustering result as the second sampling position of the preset sampling frame. The preset sampling frame is sampled at the second sampling position of the rear image to obtain a second target partial image.

[0134] In the above scheme, the partial image located in the preset exterior rearview mirror area can be used as a whole to identify the second target local image, and the second target local image finally determined can more accurately represent the local image with the maximum image brightness.

[0135] Step 602: convert the second target local image brightness to obtain the second target environment brightness.

[0136] The second target environment brightness may be an environment brightness corresponding to the second target local image brightness, and the second target environment brightness may be a local maximum environment brightness representing the second environment area.

[0137] In this embodiment, after determining the brightness of the second target local image, the overall image brightness and the second target local image brightness are converted into the second target environment brightness. There are many methods for converting the second target local image brightness into the second target environment brightness, which are not limited in this embodiment, and the examples are as follows:

[0138] In an optional implementation, the shooting process of the rear image can be determined based on the camera parameters of the rear image, and the shooting process can be reversed to obtain an inverse shooting process of the shooting process, and the brightness of the local image of the second target can be restored to the ambient brightness of the second target based on the inverse shooting process.

[0139] In another optional implementation, converting the brightness of the second target local image to obtain the second target environment brightness includes:

[0140] Determine a second camera parameter of the rear image, input the second camera parameter into a preset coefficient adjustment relationship, and obtain a second adjustment value corresponding to the rear image; adjust the brightness of the second target local image according to the second adjustment value to obtain the second target environment brightness.

[0141] The camera parameters may be parameters of the rear camera when shooting the rear side image.

[0142] In the disclosed embodiment, after the rear image is determined, the preset coefficient adjustment relationship is queried according to the camera parameters of the rear image to obtain the adjustment value corresponding to the rear image. The adjustment value is multiplied by the brightness of the second target local image to obtain the second target environment brightness.

[0143] In the above scheme, a preset coefficient adjustment relationship is established in a calibration manner. Based on the preset coefficient adjustment relationship, it is possible to consume less computing power and quickly convert the image brightness into the ambient brightness, thereby improving the timeliness of turning on the anti-glare function. In addition, the camera corresponds to the rearview mirror, and the image collected by the camera is more consistent with the environmental area that can be observed through the rearview mirror, which can more accurately determine whether to turn on the anti-glare function of the rearview mirror, thereby improving driving safety.

[0144] In the related art, photosensitive sensors are installed on the side facing the front of the vehicle and the side facing the rear of the vehicle of the rearview mirror with anti-glare function. However, in order to ensure that the external light can enter the photosensitive sensor, it is necessary to avoid the light path of the photosensitive sensor being blocked by the components in the vehicle. Therefore, the shape of the front window part, the rear window part and other parts of the vehicle, as well as the arrangement of components inside the vehicle are restricted. In the method for activating the anti-glare function provided in the embodiment of the present disclosure, the rearview camera and the rear side view camera can be the existing cameras of the vehicle. Since the setting of an additional photosensitive sensor for the anti-glare function is avoided, there is no need to avoid blocking the light path of the photosensitive sensor, thereby removing the restrictions on the arrangement of components, shape design, etc. of the vehicle.

[0145] Fig. 9 A schematic structural diagram of an opening device with an anti-glare function provided in an embodiment of the present disclosure is shown.

[0146] In some embodiments of the present disclosure, Fig. 9 The anti-glare function activation device shown can be executed by an electronic device or a server. The electronic device can include but is not limited to a mobile terminal such as a vehicle-mounted terminal, and a fixed terminal such as a vehicle domain controller. The server can be a server cluster or a cloud server.

[0147] like Fig. 9 As shown, the anti-glare function activation device 900 may include: a first determination module 901 , a second determination module 902 , and a judgment module 903 .

[0148] A first determination module 901 is used to determine a first target environment brightness of a first environment area of ​​a target vehicle; wherein the first environment area is an environment area observable through an interior rearview mirror of the target vehicle, and the first target environment brightness is a maximum value of a first local environment brightness of the first environment area;

[0149] A second determination module 902 is used to determine a second target environment brightness of a second environment area of ​​the target vehicle if the first target environment brightness and the overall environment brightness meet a preset brightness condition; wherein the overall environment brightness is the environment brightness collected by a preset light sensor of the target vehicle, the second environment area is an environment area that can be observed through an exterior rearview mirror of the target vehicle, and the second target environment brightness is a maximum value of a second local environment brightness of the second environment area;

[0150] The judgment module 903 is used to judge whether to turn on the anti-glare function of the exterior rearview mirror according to the first target environment brightness and the second target environment brightness.

[0151] Optionally, the first determining module 901 includes:

[0152] A first acquisition submodule is used to acquire a rear image captured by a rearview camera of the target vehicle;

[0153] The first processing submodule is used to perform brightness processing on the rear image to obtain a first target environment brightness of the first environment area.

[0154] Optionally, the first processing submodule includes:

[0155] a brightness determination unit, configured to identify a first target partial image having the largest image brightness in the rear image, and determine the image brightness of the first target partial image as the first target partial image brightness; wherein the first target partial image is within a preset inner rearview mirror area of ​​the rear image;

[0156] A brightness conversion unit is used to convert the brightness of the first target local image to obtain the first target environment brightness.

[0157] Optionally, the brightness determination unit is used to:

[0158] Dividing the rear image into grids according to a preset number of rows and a preset number of columns to obtain a plurality of first candidate partial images within the preset interior rearview mirror area;

[0159] The brightness of multiple first local images corresponding to the multiple first candidate local images is determined, and the candidate local image corresponding to the maximum brightness among the multiple first local images is determined as the first target local image.

[0160] Optionally, the brightness conversion unit is used to:

[0161] Determine a first camera parameter of the rear image, input the first camera parameter into a preset coefficient adjustment relationship, and obtain a first adjustment value corresponding to the rear image; wherein the camera parameter includes: at least one of an exposure parameter, a gain coefficient, and a gamma coefficient;

[0162] The first target local image brightness is adjusted according to the first adjustment value to obtain the first target environment brightness.

[0163] Optionally, the second determining module 902 includes:

[0164] A second acquisition submodule is used to acquire a rear side image captured by a rear side view camera of the target vehicle;

[0165] The second processing submodule is used to perform brightness processing on the rear image to obtain a second target environment brightness of the second environment area.

[0166] Optionally, the second processing submodule is used to:

[0167] Identifying a second target partial image with the largest image brightness in the rear side image, and determining the image brightness of the second target partial image as the second target partial image brightness; wherein the second target partial image is within a preset exterior rearview mirror area of ​​the rear side image;

[0168] The second target local image brightness is converted to obtain the second target environment brightness.

[0169] Optionally, the second determining module 902 is configured to:

[0170] Determine an ambient brightness difference between the first target ambient brightness and the overall ambient brightness;

[0171] If the ambient brightness difference is within a first preset difference interval, the preset brightness condition is met.

[0172] Optionally, the judging module 903 is used to:

[0173] Determine a maximum difference between the first target environment brightness and the second target environment brightness;

[0174] If the maximum value difference is within a second preset difference interval, the anti-glare function of the exterior rearview mirror is turned on.

[0175] The device for activating the anti-glare function provided in the embodiments of the present disclosure can execute the method for activating the anti-glare function provided in any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.

[0176] Fig.10 A schematic diagram of the hardware circuit structure of a device for activating an anti-glare function provided by an embodiment of the present disclosure is shown.

[0177] like Fig.10 As shown, the anti-glare function activation device 1000 may include a controller 1001 and a memory 1002 storing computer program instructions.

[0178] Specifically, the controller 1001 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0179] The memory 1002 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 1002 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 1002 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 1002 may be inside or outside the integrated gateway device. In a specific embodiment, the memory 1002 is a non-volatile solid-state memory. In a specific embodiment, the memory 1002 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically alterable ROM (EAROM) or flash memory, or a combination of two or more of these.

[0180] The controller 1001 reads and executes the computer program instructions stored in the memory 1002 to perform the steps of the method for activating the anti-glare function provided in the embodiment of the present disclosure.

[0181] In one example, the anti-glare function activation device 1000 may further include a transceiver 1003 and a bus 1004. Fig.10 As shown, the controller 1001, the memory 1002 and the transceiver 1003 are connected via a bus 1004 and communicate with each other.

[0182] The bus 1004 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 1004 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0183] The following is an embodiment of a computer-readable storage medium provided in an embodiment of the present disclosure. The computer-readable storage medium and the method for activating the anti-glare function in the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the computer-readable storage medium, reference can be made to the embodiment of the method for activating the anti-glare function in the above-mentioned embodiments.

[0184] This embodiment provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a method for activating an anti-glare function.

[0185] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided in an embodiment of the present disclosure are not limited to the above method operations, and can also execute related operations in the method for activating the anti-glare function provided in any embodiment of the present disclosure.

[0186] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present disclosure can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer cloud platform (which can be a personal computer, a server, or a network cloud platform, etc.) to execute the method for turning on the anti-glare function provided by each embodiment of the present disclosure.

[0187] The disclosed embodiment also provides a vehicle, comprising at least one of the following: the above-mentioned anti-glare function activation device; the above-mentioned electronic device; and the above-mentioned computer-readable storage medium.

[0188] Note that the above are only preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present disclosure. Therefore, although the present disclosure is described in more detail through the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present disclosure, and the scope of the present disclosure is determined by the scope of the appended claims.

Claims

1. A method for activating an anti-glare function, characterized in that: include: Determine a first target environment brightness of a first environment area of ​​a target vehicle; wherein the first environment area is an environment area observable through an interior rearview mirror of the target vehicle, and the first target environment brightness is a maximum value of a first local environment brightness of the first environment area; If the first target environment brightness and the overall environment brightness meet a preset brightness condition, then determine a second target environment brightness of a second environment area of ​​the target vehicle; wherein the overall environment brightness is the environment brightness collected by a preset light sensor of the target vehicle, the second environment area is an environment area observable through an exterior rearview mirror of the target vehicle, and the second target environment brightness is the maximum value of a second local environment brightness of the second environment area; According to the first target environment brightness and the second target environment brightness, it is determined whether to turn on the anti-glare function of the exterior rearview mirror.

2. The method according to claim 1, characterized in that The step of determining a first target environment brightness of a first environment area of ​​the target vehicle includes: Acquire a rear image captured by a rearview camera of the target vehicle; The rear image is subjected to brightness processing to obtain a first target environment brightness of the first environment area.

3. The method according to claim 2, characterized in that The performing brightness processing on the rear image to obtain a first target environment brightness of the first environment area includes: Identifying a first target partial image with the largest image brightness in the rear image, and determining the image brightness of the first target partial image as the first target partial image brightness; wherein the first target partial image is within a preset inner rearview mirror area of ​​the rear image; The first target local image brightness is converted to obtain the first target environment brightness.

4. The method according to claim 3, characterized in that The step of identifying the first target local image having the highest image brightness in the rear image comprises: Dividing the rear image into grids according to a preset number of rows and a preset number of columns to obtain a plurality of first candidate partial images within the preset interior rearview mirror area; The brightness of multiple first local images corresponding to the multiple first candidate local images is determined, and the candidate local image corresponding to the maximum brightness among the multiple first local images is determined as the first target local image.

5. The method according to claim 3, characterized in that: The converting the brightness of the first target local image to obtain the first target environment brightness includes: Determine a first camera parameter of the rear image, input the first camera parameter into a preset coefficient adjustment relationship, and obtain a first adjustment value corresponding to the rear image; wherein the camera parameter includes: at least one of an exposure parameter, a gain coefficient, and a gamma coefficient; The first target local image brightness is adjusted according to the first adjustment value to obtain the first target environment brightness.

6. The method according to claim 1, characterized in that The determining of the second target environment brightness of the second environment area of ​​the target vehicle includes: Acquire a rear side image captured by a rear side view camera of the target vehicle; Perform brightness processing on the rear image to obtain a second target environment brightness of the second environment area.

7. The method according to claim 6, characterized in that The performing brightness processing on the rear side image to obtain a second target environment brightness of the second environment area includes: Identifying a second target partial image with the largest image brightness in the rear side image, and determining the image brightness of the second target partial image as the second target partial image brightness; wherein the second target partial image is within a preset exterior rearview mirror area of ​​the rear side image; The second target local image brightness is converted to obtain the second target environment brightness.

8. The method according to claim 1, characterized in that The first target environment brightness and the overall environment brightness meet a preset brightness condition, including: Determine an ambient brightness difference between the first target ambient brightness and the overall ambient brightness; If the ambient brightness difference is within a first preset difference interval, the preset brightness condition is met.

9. The method according to claim 1, characterized in that: The determining whether to turn on the anti-glare function of the exterior rearview mirror according to the first target environment brightness and the second target environment brightness includes: Determine a maximum difference between the first target environment brightness and the second target environment brightness; If the maximum value difference is within a second preset difference interval, the anti-glare function of the exterior rearview mirror is turned on.

10. An opening device with anti-glare function, characterized in that: include: A first determination module is used to determine a first target environment brightness of a first environment area of ​​a target vehicle; wherein the first environment area is an environment area observable through an interior rearview mirror of the target vehicle, and the first target environment brightness is a maximum value of a first local environment brightness of the first environment area; a second determination module, configured to determine a second target environment brightness of a second environment area of ​​the target vehicle if the first target environment brightness and the overall environment brightness satisfy a preset brightness condition; wherein the overall environment brightness is the environment brightness collected by a preset light sensor of the target vehicle, the second environment area is an environment area observable through an exterior rearview mirror of the target vehicle, and the second target environment brightness is a maximum value of a second local environment brightness of the second environment area; A judgment module is used to judge whether to turn on the anti-glare function of the exterior rearview mirror according to the first target environment brightness and the second target environment brightness.

11. An electronic device, characterized in that: The electronic device comprises: Processor and memory; The processor is used to execute the steps of the method according to any one of claims 1 to 9 by calling the program or instruction stored in the memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 9.

13. A vehicle, characterized in that: Include at least one of the following: The opening device of the anti-glare function as claimed in claim 10; The electronic device as claimed in claim 11; The computer readable storage medium of claim 12.

Citation Information

Patent Citations

  • Method and device for preventing glare of high beam of intelligent rearview mirror

    CN107856609A

  • Vehicle and method for controlling anti-dazzling rearview mirror

    CN113459953A

  • Electronic rear view mirror mode switching method

    CN113859127A

  • Lighting to ensure the visibility at the time of the rear parking

    KR1020180029837A

  • Camera-based system for reducing reflectivity of a reflective surface

    US20180126907A1