Anti-dazzling function starting method, device and equipment, storage medium and vehicle
The image is collected through the rear camera and brightness processing is performed to judge the ambient brightness to automatically turn on the anti-glare function, which solves the problem of inaccurate activation of the anti-glare function in the prior art and improves driving safety.
Patent Information
- Application Number
- CN202311370208.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2025-04-22
AI Technical Summary
The prior art is difficult to accurately turn on the anti-glare function based on actual environment when using existing equipment of the vehicle, resulting in limited driving safety.
The target image is collected by the rear camera, and the brightness process is performed to determine the first target ambient brightness and the overall ambient brightness, and to determine whether the anti-glare function of the target rearview mirror is turned on.
Based on the existing equipment of the vehicle, the anti-glare function is accurately automated based on the actual environment, which improves the user's driving safety.
Smart Images

Figure CN119858503A_ABST
Abstract
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] Acquire a target image captured by a rear camera of a target vehicle; wherein the rear camera corresponds to a target rearview mirror of the target vehicle;
[0007] Performing brightness processing on the target image to obtain a first target environment brightness of a first environment area observable through the target rearview mirror; wherein the first target environment brightness is a maximum value of a first local environment brightness of the first environment area;
[0008] According to the first target environment brightness and the overall environment brightness, it is determined whether to turn on the anti-glare function of the target rearview mirror; wherein the overall environment brightness is the environment brightness collected by a preset light sensor of the target vehicle.
[0009] In a second aspect, the present disclosure provides an opening device with an anti-glare function, the device comprising:
[0010] A target image acquisition module, used to acquire a target image captured by a rear camera of a target vehicle; wherein the rear camera corresponds to a target rearview mirror of the target vehicle;
[0011] A first image processing module, configured to perform brightness processing on the target image to obtain a first target environment brightness of a first environment area observable through the target rearview mirror; wherein the first target environment brightness is a maximum value of a first local environment brightness of the first environment area;
[0012] The first function activation module is used to determine whether to activate the anti-glare function of the target rearview mirror according to the first target environment brightness and the overall environment brightness; wherein the overall environment brightness is the environment brightness collected by the preset light sensor of the target vehicle.
[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] The technical solution provided by the embodiment of the present disclosure has the following advantages over the prior art: the method, device, equipment and storage medium for opening the anti-glare function of the embodiment of the present disclosure obtains a target image captured by the rear camera of the target vehicle; wherein the rear camera corresponds to the target rearview mirror of the target vehicle; the target image is subjected to brightness processing to obtain a first target environment brightness of a first environment area that can be observed through the target rearview mirror; wherein the first target environment brightness is the maximum value of the first local environment brightness of the first environment area; according to the first target environment brightness and the overall environment brightness, it is determined whether to open the anti-glare function of the target rearview mirror; wherein the overall environment brightness is the environment brightness collected by the preset light sensor of the target vehicle. With the above technical solution, the rear camera captures the target image, and based on the target image, the maximum value of the local environment brightness of the actual environment that can be observed through the target rearview mirror is determined, and the overall environment brightness of the actual environment collected by the preset light sensor of the target vehicle is determined, and then the maximum value of the overall environment brightness and the local environment brightness can be used to characterize whether a light source that is too bright relative to the overall actual environment is observed from the rearview mirror, and it is determined whether to open the anti-glare function. Thus, the anti-glare function can be accurately and automatically activated based on the actual environmental conditions on the basis of the existing equipment of the vehicle, 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 diagram of a rear camera framing area provided in an embodiment of the present disclosure;
[0024] Figure 3 A schematic flow chart of another method for activating the anti-glare function provided in an embodiment of the present disclosure;
[0025] Figure 4 A schematic diagram of a preset image area corresponding to a rear-view camera provided in an embodiment of the present disclosure;
[0026] Figure 5A schematic diagram of a preset image area corresponding to a left rear side view camera provided in an embodiment of the present disclosure;
[0027] Figure 6 A schematic diagram of a preset image area corresponding to a right rear side view camera provided in an embodiment of the present disclosure;
[0028] Figure 7 A schematic flow chart of another method for activating the anti-glare function provided in an embodiment of the present disclosure;
[0029] Figure 8 A schematic diagram of a domain controller of a target vehicle provided in 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, it is necessary to install an additional light sensor on the rearview mirror, and use the electrical signal generated by the light sensor when receiving light 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 mirrors outside the car and a central interior 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. In addition, it is necessary to avoid obstruction of the light path of the photosensitive sensor by devices in the vehicle. This limits the shape of multiple parts of the vehicle, such as the front window and rear window, as well as the arrangement of devices inside the vehicle.
[0037] Therefore, how to automatically determine the timing of turning on the anti-glare function, improve the user's driving safety, and avoid 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, obtaining a target image captured by a rear camera of a target vehicle; wherein the rear camera corresponds to a target rearview mirror of the target vehicle.
[0041] The target vehicle may be a moving vehicle, and optionally, the target vehicle may be a vehicle in a forward gear, that is, the target vehicle is in a 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 may be pure electric power or hybrid power, etc. This embodiment does not limit the type of the target vehicle, for example, the type of the target vehicle may be a sport utility vehicle (SUV) or a sedan, etc.
[0042] The rear camera may be a camera for capturing images of the rear of the target vehicle. Optionally, the rear camera may include a rear-view camera and / or a rear side-view camera. 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. This 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 exterior of the target vehicle, or the rear-view camera may be arranged inside the target vehicle.
[0043] The rear side view camera is also called a side rear view camera, and the rear side view camera may be a camera whose viewing area includes the side and rear of the target vehicle. The rear side view camera may be a camera facing the side and 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 may be arranged on the exterior rearview mirror of the target vehicle, or the rear side view camera may be arranged on the body of the target vehicle on the side. For example, the rear side view camera may include a right rear side view camera arranged on the right side of the target vehicle and facing the right rear, and a left rear side view camera arranged on the left side of the target vehicle and facing the left rear.
[0044] In an optional implementation, the rear-view camera may be a camera for capturing target images in an image system, and the rear side-view camera may be a camera for capturing side target images in an image system. For example, the rear-view camera may be a camera facing the rear of the vehicle in an Around View Monitor (AVM) system, and the rear side-view camera may be a camera facing the side and rear of the vehicle in the Around View Monitor (AVM) system; or, the rear-view camera may be a camera facing the rear of the vehicle in an Advanced Driver Assistance System (ADAS) system, and the rear side-view camera may be a camera facing the side and rear of the vehicle in the ADAS system. It is understandable that, since the observation distance of the camera in the ADAS 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.
[0045] The target image may be an image captured by the rear camera. This embodiment does not limit the format of the target image. For example, the format of the target image may be a raw image file (RAW).
[0046] In an optional implementation, the rear camera may correspond to the target rearview mirror one by one. If the rear camera is the rearview camera of the target vehicle, the target rearview mirror is the interior rearview mirror; if the rear camera is the left rear side view camera of the target vehicle, the target rearview mirror is the left exterior rearview mirror; if the rear camera is the right rear side view camera of the target vehicle, the target rearview mirror is the right exterior rearview mirror.
[0047] The left rear side view camera may be a camera facing the left rear side of the target vehicle, and the right rear side view camera may be a camera facing the right rear side of the target vehicle. The interior rearview mirror may be a rearview mirror located inside the cab of the target vehicle. The left exterior rearview mirror may be a rearview mirror located on the left side outside the cab of the target vehicle. The right exterior rearview mirror may be a rearview mirror located on the right side outside the cab of the target vehicle.
[0048] In this embodiment, the target image corresponding to the inner rearview mirror is collected by the rearview camera, the target image corresponding to the left exterior rearview mirror is collected by the left rear side camera, and the target image corresponding to the right exterior rearview mirror is collected by the right rear side camera. Figure 2 A schematic diagram of a rear camera framing area provided in an embodiment of the present disclosure, such as Figure 2 As shown, the viewing area of the rear view camera includes the area directly behind the target vehicle, the viewing area of the left rear side view camera includes the area on the left rear side of the target vehicle, and the viewing area of the right rear side view camera includes the area on the right rear side of the target vehicle.
[0049] In the disclosed embodiment, during the driving process of the target vehicle, the rear camera collects the target image in real time, and the device for activating the anti-glare function obtains the target image.
[0050] Step 102, performing brightness processing on the target image to obtain a first target environment brightness of a first environment area observable through a target rearview mirror; wherein the first target environment brightness is a maximum value of a first local environment brightness of the first environment area.
[0051] The brightness processing may include one or more of the maximum image brightness recognition processing and the brightness conversion processing between the image brightness and the ambient brightness. The first environmental area may be an area that the user can observe through the target rearview mirror in the main driver's seat. The ambient brightness may be the brightness of the environment, and the ambient brightness may be the brightness obtained based on the image brightness conversion. The ambient brightness may be illumination, and the present embodiment does not limit the unit of the ambient brightness, for example, the unit of the ambient brightness may be lux. The first target ambient brightness may be the maximum value of the local area ambient brightness within the first environmental area.
[0052] In the disclosed embodiment, after obtaining the target image, the target image can be cropped according to the preset image area corresponding to the target rearview mirror, and the cropped target image can be subjected to brightness processing such as maximum image brightness recognition and brightness conversion to obtain the first target environment brightness. The first target environment brightness records the maximum value of the first local environment brightness in the first environment area that can be observed by the target rearview mirror.
[0053] Step 103, judging whether to turn on the anti-glare function of the target rearview mirror according to the first target environment brightness and the overall environment brightness; wherein the overall environment brightness is the environment brightness collected by the preset light sensor of the target vehicle.
[0054] The overall environment brightness may be the environment brightness that characterizes the overall environment in which the target vehicle is located. The anti-glare function may be a function that prevents the light reflected by the rearview mirror from being too strong to avoid glare to the user. The preset light sensor may be a sensor that measures the light intensity in front of the vehicle. The preset light sensor may be a sensor that is 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 in 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 windshield wiper system.
[0055] In the embodiment of the present disclosure, after the preset light sensor collects the overall ambient brightness, it sends the overall ambient brightness to the device for activating the anti-glare function, and the device for activating the anti-glare function receives the overall ambient brightness. It should be noted that the collection time of the overall ambient brightness and the shooting time of the target image can be the same or the time difference is less than the time difference threshold.
[0056] The overall environment brightness represents the overall environment brightness of the vehicle, and the first target environment brightness represents the maximum value of the local environment brightness of the first environment area that can be observed by the target rearview mirror. According to the overall environment brightness and the first target environment brightness, it can be determined whether a local light source with an environment brightness higher than the overall environment can be seen through the target rearview mirror. Furthermore, it is determined whether to turn on the anti-glare function of the target rearview mirror of the target vehicle.
[0057] It can be understood that if the rear camera is a rearview camera, it is determined whether the anti-glare function of the inner rearview mirror is turned on; if the rear camera is a left rear side view camera, it is determined whether the anti-glare function of the left outer rearview mirror is turned on; if the rear camera is a right rear side view camera, it is determined whether the anti-glare function of the right outer rearview mirror is turned on.
[0058] In some embodiments of the present disclosure, judging whether to turn on the anti-glare function of the target rearview mirror according to the first target environment brightness and the overall environment brightness includes:
[0059] If the overall ambient brightness is within the preset ambient brightness range, it is determined whether to turn on the anti-glare function of the target rearview mirror according to the first target ambient brightness and the overall ambient brightness.
[0060] Among them, the preset ambient brightness range can be a pre-set range of ambient brightness for judging whether to turn on the anti-glare function. The preset ambient brightness range can be set according to user needs, application scenarios, etc., and this embodiment does not limit it.
[0061] In this embodiment, after determining the overall ambient brightness, it is determined whether the overall ambient brightness is within a preset ambient brightness range. If so, it is necessary to determine whether to turn on the anti-glare function based on the overall ambient brightness. If the overall ambient brightness is not within the preset ambient brightness range, it is necessary to determine whether to turn on the anti-glare function based on the overall ambient brightness.
[0062] In the above scheme, a preset ambient brightness range is set to avoid the situation where the anti-glare function is frequently activated due to a large difference between the overall ambient brightness and the first target ambient brightness caused by the target vehicle being in an overly dark environment and low overall ambient brightness. This allows users to observe normally through the rearview mirror in a dark environment.
[0063] In some embodiments of the present disclosure, whether to turn on the anti-glare function of the target rearview mirror is determined based on the first target environment brightness and the overall environment brightness, including: determining a second environment brightness difference between the first target environment brightness and the overall environment brightness; if the second environment brightness difference is within a second preset difference range, turning on the anti-glare function of the target rearview mirror.
[0064] The second preset difference interval may be a preset range of second ambient brightness difference for turning on the anti-glare function. The second preset reset interval may be set according to user needs, application scenarios, etc., and is not limited in this embodiment.
[0065] In this embodiment, the device for activating the anti-glare function can calculate the difference between the first target environment brightness and the overall environment brightness to obtain a second environment brightness difference. Further, it is determined whether the second environment brightness difference is within a second preset difference interval. If so, it means that a light source with a large difference in brightness relative to the overall background environment can be observed through the target rearview mirror, and the anti-glare function of the target rearview mirror is activated. Otherwise, the anti-glare function of the target rearview mirror is kept in an off state.
[0066] The method for turning on the anti-glare function provided by the embodiment of the present disclosure is to obtain a target image captured by a rear camera of a target vehicle; wherein the rear camera corresponds to a target rearview mirror of the target vehicle; perform brightness processing on the target image to obtain a first target environment brightness of a first environment area that can be observed through the target rearview mirror; wherein the first target environment brightness is the maximum value of the first local environment brightness of the first environment area; and determine whether to turn on the anti-glare function of the target rearview mirror according to the first target environment brightness and the overall environment brightness; wherein the overall environment brightness is the environment brightness collected by the preset light sensor of the target vehicle. In the embodiment of the present disclosure, the rear camera captures the target image, and based on the target image, the maximum value of the local environment brightness of the actual environment that can be observed through the target rearview mirror is determined, and the overall environment brightness of the actual environment collected by the preset light sensor of the target vehicle is determined, and then the maximum value of the overall environment brightness and the local environment brightness can be used to characterize whether a light source that is too bright relative to the overall actual environment is observed from the rearview mirror, and determine whether to turn on the anti-glare function. Thus, the accurate and automatic turning on of the anti-glare function based on the actual environment conditions is achieved on the basis of the existing equipment of the vehicle, thereby improving the driving safety of the user.
[0067] In addition, the rearview camera is an existing camera of the vehicle, and the preset light sensor is an existing sensor of the vehicle. Since the setting of an additional photosensor for the anti-glare function is avoided, there is no need to avoid blocking the light path of the photosensor, thereby removing the restrictions on the device layout, styling design, etc. of the vehicle.
[0068] Figure 3 A flow chart of another method for activating the anti-glare function provided in an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, in some embodiments of the present disclosure, brightness processing is performed on the target image to obtain a first target environment brightness of a first environment area that can be observed through a target rearview mirror, including:
[0069] Step 301 , identifying a target local image with the maximum image brightness in a target image, and determining the image brightness of the target local image as the target local image brightness; wherein the target local image is within a preset image area of the target image.
[0070] The target local image may be a local image with the largest image brightness among a plurality of local images divided from the target image. Alternatively, the target local image may be a local image determined by identifying the maximum image brightness of the target image. The image brightness may be the brightness of the image, and the image brightness may be the brightness presented by the image. The target local image brightness may be the image brightness of the target local image, and the target local image brightness may be understood as the maximum value of the image brightness in the local area of the target image.
[0071] The preset image area may be an area in the target image that can be observed through the target rearview mirror. The preset image area may correspond to the rear camera. For example, Figure 4 A schematic diagram of a preset image area corresponding to a rear view camera provided in an embodiment of the present disclosure, such as Figure 4 As shown, area 401 in the target image 400 captured by the rearview camera is a preset image area, and the area 401 is located in the middle of the target image 400 . Figure 5 A schematic diagram of a preset image area corresponding to a left rear side view camera provided in an embodiment of the present disclosure, such as Figure 5 As shown, area 501 in the target image 500 captured by the left rear side view camera is a preset image area, and the area 501 is located in the left part of the target image 500 . Figure 6 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 6 As shown, area 601 in the target image 600 captured by the right rear side view camera is a preset image area, and the area 601 is located in the right part of the target image 600 .
[0072] 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:
[0073] In an optional implementation, the target partial image in the target image may be determined based on a grid division method.
[0074] Specifically, identifying a target local image with the largest image brightness in the target image includes:
[0075] Step a1, gridding the target image according to a preset number of rows and a preset number of columns to obtain a plurality of candidate local images within a preset image area.
[0076] The preset number of rows may be a preset number of rows obtained after the target 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 target 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 candidate partial image may be a partial image located in the rearview mirror area among the multiple partial images obtained by dividing the target image.
[0077] In this embodiment, the device for activating the anti-glare function may include an image signal processing (ISP) unit, through which the overall target image can be grid-divided according to a preset number of rows and a preset number of columns to obtain multiple local images. Further, the local images located in the preset image area are determined as multiple candidate local images.
[0078] Alternatively, the device for activating the anti-glare function may first capture the target image according to the rearview mirror area to obtain a captured image, and then divide the captured image into grids according to a preset number of rows and a preset number of columns through an image signal processing unit to obtain a candidate local image.
[0079] Step a2, determining the brightness of multiple candidate local images corresponding to the multiple candidate local images, and determining the candidate local image corresponding to the maximum brightness among the multiple candidate local images as the target local image.
[0080] The local image brightness may be the image brightness of the local image.
[0081] In this embodiment, the device for activating the anti-glare function can use each candidate partial image as a calculation area, calculate the image brightness of each candidate partial image, and obtain multiple candidate partial image brightnesses, and determine the maximum value among the multiple candidate partial image brightnesses, and determine the candidate partial image corresponding to the maximum value as the target partial image.
[0082] In the above scheme, based on the grid division of the target image, the location of the local image can be determined while determining the local image, which provides a basis for the subsequent determination of candidate local images in the preset image area. In addition, the scheme has a small demand for computing power and can determine the target local image quickly.
[0083] In another optional implementation, the target partial image in the target image may be determined based on an image processing method. Specifically, identifying the target partial image with the highest image brightness in the target image includes:
[0084] Step b1, performing grayscale processing and Gaussian processing on the target image to obtain a processed image.
[0085] 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 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 processed image can be an image obtained by performing image processing on the target image.
[0086] In this embodiment, the device for turning on the anti-glare function can perform grayscale processing and Gaussian processing on the target image to obtain a processed image that has completed grayscale processing and noise reduction.
[0087] Step b2, determining a portion of the processed image within a preset image area as an intermediate image, and determining target pixel points in the intermediate image whose image brightness is greater than a preset image brightness threshold.
[0088] 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.
[0089] In this embodiment, after determining the processed image, the processed image is clipped according to the preset image area, and the clipped portion of the image is determined as the intermediate image. For each pixel in the intermediate image, the image brightness of the pixel is determined, and it is judged whether the image brightness is greater than the preset image brightness threshold. If so, the pixel is determined as the target pixel.
[0090] Step b3 determines the sampling position of the preset sampling frame in the target image according to the position of the target pixel point, and samples the target image using the preset sampling frame according to the sampling position to obtain a target partial image.
[0091] The preset sampling frame may be a frame that is preset to sample the target 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 target image.
[0092] In this embodiment, after determining the target pixel point, the device for enabling the anti-glare function determines the position of each target pixel point, performs clustering processing on the position of the target pixel point, and determines the center point of the clustering result as the sampling position of the preset sampling frame. The preset sampling frame is sampled at the sampling position of the target image to obtain a target partial image.
[0093] 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.
[0094] Step 302: convert the target local image brightness to obtain a first target environment brightness.
[0095] The first target environment brightness may be an environment brightness corresponding to the target local image brightness, and the first target environment brightness may be a local maximum environment brightness representing the first environment area.
[0096] In this embodiment, after determining the target local image brightness, the overall image brightness target local image brightness is converted into the first target environment brightness. There are many methods for converting the target local image brightness into the first target environment brightness, which are not limited in this embodiment, and examples are described as follows:
[0097] In an optional implementation, the shooting process of the target image can be determined according to the camera parameters of the target image, and the shooting process can be reversed to obtain an inverse shooting process of the shooting process, and the brightness of the target local image can be restored to the first target environment brightness based on the inverse shooting process.
[0098] In another optional implementation, converting the target local image brightness to obtain the first target environment brightness includes:
[0099] Determine the camera parameters of the target image, input the camera parameters into a preset coefficient adjustment relationship, and obtain an adjustment value corresponding to the target image; wherein the camera parameters include: at least one of an exposure parameter, a gain coefficient, and a gamma coefficient; adjust the brightness of the target local image according to the adjustment value to obtain a first target environment brightness.
[0100] The camera parameters may be parameters of the rear camera when shooting the target image. The exposure parameters include but are not limited to: any one of the exposure coefficient and the exposure mode. The exposure coefficient may be a quantity representing the exposure amount. The exposure mode may be a quantity representing the exposure type, 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.
[0101] The preset coefficient adjustment relationship may be a correspondence relationship between a pre-calibrated camera parameter and an adjustment value. The adjustment value may be a conversion value for adjusting the image brightness to the ambient brightness.
[0102] 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 target image, the preset coefficient adjustment relationship is queried according to the camera parameters of the target image to obtain the adjustment value corresponding to the target image. The adjustment value is multiplied by the target local image brightness to obtain the first target ambient brightness.
[0103] 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 rear camera corresponds to the target rearview mirror, and the target image captured by the rear camera is more consistent with the environmental area that can be observed through the target rearview mirror. The preset image area accounts for a large proportion of the overall target image, and it is possible to more accurately determine whether to turn on the anti-glare function of the target rearview mirror, thereby improving driving safety.
[0104] Figure 7 A flowchart of another method for activating the anti-glare function provided in an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, in some embodiments of the present disclosure, the rear camera is a rearview camera, and the target rearview mirror is an interior rearview mirror. Therefore, based on the above method, it is determined whether the anti-glare function of the interior rearview mirror is turned on. The method for turning on the anti-glare function also includes:
[0105] Step 701: If it is determined to turn on the anti-glare function of the interior rearview mirror of the target vehicle, a rear side image captured by a rear side view camera of the target vehicle is obtained.
[0106] The rear side view camera includes a left rear side view camera and / or a right rear side view camera.
[0107] In the disclosed embodiment, after determining to turn on the anti-glare function of the interior rearview mirror of the target vehicle, the device for turning on the anti-glare function further determines whether to turn on the anti-glare function of the exterior rearview mirror. Specifically, the rear side view camera collects images of the rear side of the target vehicle in real time to generate a rear side image, and the device for turning on the anti-glare function can obtain the rear side image collected by the rear side view camera.
[0108] Step 702 , performing brightness processing on the rear side image to obtain a second target environment brightness of a second environment area observable through an exterior rearview mirror of the target vehicle; wherein the second target environment brightness is a maximum value of a second local environment brightness of the second environment area.
[0109] The second environment area may be an area that can be observed by the user through the exterior rearview mirror in the main driver's seat. The second target environment brightness may be the maximum value of the local area environment brightness in the second environment area.
[0110] In the disclosed embodiment, after obtaining the rear image, the rear image can be cropped according to the preset image area corresponding to the exterior rearview mirror, and the cropped rear image can be 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 exterior rearview mirror. The method for obtaining the second target environment brightness can be of the same type as the method for obtaining the first target environment brightness in the above embodiment. For example, the rear image can be used as the target image, and the first target environment brightness corresponding to the target image can be determined, and the first target environment brightness is the second target environment brightness corresponding to the rear image.
[0111] Step 703: If the first target environment brightness and the second target environment brightness meet the preset function activation condition, the anti-glare function of the exterior rearview mirror corresponding to the rear side view camera is activated.
[0112] The preset function activation condition may be a pre-set condition for activating the anti-glare function of the exterior rearview mirror, and the preset function activation condition may indicate that the brightness of two environments is close. The preset function activation condition may be set according to user needs, application scenarios, etc., and is not limited in this embodiment. The exterior rearview mirror corresponding to the rear side view camera may be an exterior rearview mirror located on the same side of the target vehicle as the rear side view camera.
[0113] In this embodiment, after determining the first target environment brightness and the second target environment brightness, the device for activating the anti-glare function can determine whether the first target environment brightness and the second target environment brightness meet the preset function activation condition. If so, it means that the maximum value of the local environment brightness in the first environment area that can be seen through the interior rearview mirror is close to the maximum value of the local environment brightness in the second environment area that can be seen through the exterior rearview mirror. The exterior rearview mirror also has a reflection for a stronger light source, so the anti-glare function of the exterior rearview mirror is activated. If the first target environment brightness and the second target environment brightness do not meet the preset function activation condition, it means that the maximum value of the local environment brightness in the second environment area that can be seen through the exterior rearview mirror is smaller, and the exterior rearview mirror does not have a reflection for a stronger light source, so the anti-glare function of the exterior rearview mirror is kept in an off state.
[0114] In some embodiments of the present disclosure, the first target environment brightness and the second target environment brightness meet the preset function activation condition, including: determining the first environment brightness difference between the first target environment brightness and the second target environment brightness; if the first environment brightness difference is within the first preset difference range, the preset function activation condition is met.
[0115] Among them, the first preset difference interval can be a pre-set range of the first ambient brightness difference for turning on the anti-glare function of the exterior rearview mirror, and the second preset reset interval can be set according to user needs, application scenarios, etc., and this embodiment does not impose any restrictions.
[0116] In this embodiment, the device for activating the anti-glare function can calculate the difference between the first target environment brightness and the second target environment brightness to obtain the first environment brightness difference. Further, it is determined whether the first environment brightness difference is within a first preset difference interval. 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 in an off state.
[0117] For example, if the second target environment brightness and the first target environment brightness corresponding to the left exterior rearview mirror meet the preset function activation condition, and the second target environment brightness and the first target environment brightness corresponding to the right exterior rearview mirror do not meet the preset function activation condition, the anti-glare function of the left exterior rearview mirror is turned on, and the anti-glare function of the right exterior rearview mirror is kept in the off state. If the second target environment brightness and the first target environment brightness corresponding to the right exterior rearview mirror meet the preset function activation condition, and the second target environment brightness and the first target environment brightness corresponding to the left exterior rearview mirror do not meet the preset function activation condition, the anti-glare function of the right exterior rearview mirror is turned on, and the anti-glare function of the left exterior rearview mirror is kept in the off state. If the second target environment brightness and the first target environment brightness corresponding to the left exterior rearview mirror meet the preset function activation condition, and the second target environment brightness and the first target environment brightness corresponding to the right exterior rearview mirror also meet the preset function activation condition, the anti-glare function of the left exterior rearview mirror and the right exterior rearview mirror are turned on.
[0118] In the above scheme, based on the first target environment brightness of the interior rearview mirror with the anti-glare function turned on and the second target environment brightness of the exterior rearview mirror, it can be quickly determined whether to turn on the anti-glare function of the exterior rearview mirror.
[0119] Next, the method for activating the anti-glare function in the embodiment of the present disclosure is further explained through a specific example.
[0120] In this embodiment, the method for enabling the anti-glare function can be implemented based on three domain controllers. Figure 8 A schematic diagram of a domain controller of a target vehicle provided in an embodiment of the present disclosure, such as Figure 8 As shown, the domain controller of the target vehicle includes: an intelligent driving domain controller, a cockpit domain controller, and a vehicle control domain controller. The device for turning on the anti-glare function provided in the embodiment of the present disclosure may include the above three domain controllers.
[0121] In this embodiment, the intelligent driving domain controller obtains the target image captured by the rear camera, and the intelligent driving domain controller grids the target image through image signal processing to obtain multiple local images. And determine the candidate local images in the preset image area among the multiple local images, determine the local image brightness of each candidate local image, and determine the maximum value of the local image brightness to obtain the target local image brightness, and convert the target local image brightness into the first target environment brightness. The intelligent driving domain controller sends the first target environment brightness to the cockpit domain controller, and the cockpit domain controller forwards the first target environment brightness to the vehicle control domain controller, and sends the gear position identification and overall environment brightness of the vehicle to the vehicle control domain controller.
[0122] The vehicle domain controller determines whether the overall environment brightness is within the preset environment brightness range. If so, the vehicle control domain controller further determines whether the gear position mark is a forward gear mark, and whether the second environment brightness difference between the first target environment brightness and the overall environment brightness is within the second preset difference range. If the gear position mark is a forward gear mark and the second environment brightness difference is within the preset difference range, it is determined to turn on the anti-glare function of the target rearview mirror.
[0123] In the above solution, the anti-glare function of the target rearview mirror is automatically turned on based on the architecture of three domain controllers, without introducing other additional photosensors, and without limiting the shape of the vehicle parts such as the tailgate and rear window to avoid affecting the light path of the photosensors. The anti-glare function is avoided when the ambient brightness is low, which improves the safety of users driving vehicles.
[0124] 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.
[0125] 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.
[0126] like Fig. 9 As shown, the anti-glare function activation device 900 may include: a target image acquisition module 901 , a first image processing module 902 , and a first function activation module 903 .
[0127] The target image acquisition module 901 is used to acquire a target image captured by a rear camera of a target vehicle; wherein the rear camera corresponds to a target rearview mirror of the target vehicle;
[0128] A first image processing module 902 is used to perform brightness processing on the target image to obtain a first target environment brightness of a first environment area that can be observed through the target rearview mirror; wherein the first target environment brightness is a maximum value of a first local environment brightness of the first environment area;
[0129] The first function activation module 903 is used to determine whether to activate the anti-glare function of the target rearview mirror according to the first target environment brightness and the overall environment brightness; wherein the overall environment brightness is the environment brightness collected by the preset light sensor of the target vehicle.
[0130] Optionally, if the rear camera is the rearview camera of the target vehicle, the target rearview mirror is the interior rearview mirror; if the rear camera is the left rear side view camera of the target vehicle, the target rearview mirror is the left exterior rearview mirror; if the rear camera is the right rear side view camera of the target vehicle, the target rearview mirror is the right exterior rearview mirror.
[0131] Optionally, the first image processing module 902 includes:
[0132] an identification unit, configured to identify a target local image having the largest image brightness in the target image, and determine the image brightness of the target local image as the target local image brightness; wherein the target local image is within a preset image area of the target image;
[0133] A conversion unit is used to convert the target local image brightness to obtain the first target environment brightness.
[0134] Optionally, the identification unit is used to:
[0135] Dividing the target image into grids according to a preset number of rows and a preset number of columns to obtain a plurality of candidate local images within the preset image area;
[0136] The brightness of multiple candidate local images corresponding to the multiple candidate local images is determined, and the candidate local image corresponding to the maximum brightness among the multiple candidate local images is determined as the target local image.
[0137] Optionally, the identification unit is used to:
[0138] Performing grayscale processing and Gaussian processing on the target image to obtain a processed image;
[0139] Determine a portion of the processed image located within the preset image area as an intermediate image, and determine a target pixel point in the intermediate image whose image brightness is greater than a preset image brightness threshold;
[0140] The sampling position of a preset sampling frame in the target image is determined according to the position of the target pixel point, and the target image is sampled using the preset sampling frame according to the sampling position to obtain the target partial image.
[0141] Optionally, the conversion unit is used to:
[0142] Determine the camera parameters of the target image, input the camera parameters into a preset coefficient adjustment relationship, and obtain an adjustment value corresponding to the target image; wherein the camera parameters include: at least one of an exposure parameter, a gain coefficient, and a gamma coefficient;
[0143] The target local image brightness is adjusted according to the adjustment value to obtain the first target environment brightness.
[0144] Optionally, the rear camera is a rearview camera, the target rearview mirror is an interior rearview mirror, and the device further includes:
[0145] A rear side image acquisition module, for acquiring a rear side image captured by a rear side view camera of the target vehicle if it is determined that the anti-glare function of the interior rearview mirror of the target vehicle is turned on;
[0146] A second image processing module is used to perform brightness processing on the rear side image to obtain a second target environment brightness of a second environment area that can be observed through the exterior rearview mirror of the target vehicle; wherein the second target environment brightness is a maximum value of a second local environment brightness of the second environment area;
[0147] The second function activation module is used to activate the anti-glare function of the exterior rearview mirror corresponding to the rear side view camera if the first target environment brightness and the second target environment brightness meet the preset function activation condition.
[0148] Optionally, the first target environment brightness and the second target environment brightness meet the preset function activation condition, including: determining a first environment brightness difference between the first target environment brightness and the second target environment brightness; if the first environment brightness difference is within a first preset difference range, the preset function activation condition is met.
[0149] 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.
[0150] 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.
[0151] like Fig.10As shown, the anti-glare function activation device 1000 may include a controller 1001 and a memory 1002 storing computer program instructions.
[0152] 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.
[0153] 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.
[0154] 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.
[0155] 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.
[0156] 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.
[0157] 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.
[0158] 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.
[0159] 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.
[0160] 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.
[0161] 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.
[0162] 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: Acquire a target image captured by a rear camera of a target vehicle; wherein the rear camera corresponds to a target rearview mirror of the target vehicle; Performing brightness processing on the target image to obtain a first target environment brightness of a first environment area observable through the target rearview mirror; wherein the first target environment brightness is a maximum value of a first local environment brightness of the first environment area; According to the first target environment brightness and the overall environment brightness, it is determined whether to turn on the anti-glare function of the target rearview mirror; wherein the overall environment brightness is the environment brightness collected by a preset light sensor of the target vehicle.
2. The method according to claim 1, characterized in that If the rear camera is the rearview camera of the target vehicle, the target rearview mirror is the interior rearview mirror; if the rear camera is the left rear side view camera of the target vehicle, the target rearview mirror is the left exterior rearview mirror; if the rear camera is the right rear side view camera of the target vehicle, the target rearview mirror is the right exterior rearview mirror.
3. The method according to claim 1, characterized in that The performing brightness processing on the target image to obtain a first target environment brightness of a first environment area observable through the target rearview mirror includes: Identifying a target local image with the largest image brightness in the target image, and determining the image brightness of the target local image as the target local image brightness; wherein the target local image is within a preset image area of the target image; The 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 target local image with the largest image brightness in the target image comprises: Dividing the target image into grids according to a preset number of rows and a preset number of columns to obtain a plurality of candidate local images within the preset image area; The brightness of multiple candidate local images corresponding to the multiple candidate local images is determined, and the candidate local image corresponding to the maximum brightness among the multiple candidate local images is determined as the target local image.
5. The method according to claim 3, characterized in that: The step of identifying the target local image with the largest image brightness in the target image comprises: Performing grayscale processing and Gaussian processing on the target image to obtain a processed image; Determine a portion of the processed image located within the preset image area as an intermediate image, and determine a target pixel point in the intermediate image whose image brightness is greater than a preset image brightness threshold; The sampling position of a preset sampling frame in the target image is determined according to the position of the target pixel point, and the target image is sampled using the preset sampling frame according to the sampling position to obtain the target partial image.
6. The method according to claim 3, characterized in that The converting the target local image brightness to obtain the first target environment brightness includes: Determine the camera parameters of the target image, input the camera parameters into a preset coefficient adjustment relationship, and obtain an adjustment value corresponding to the target image; wherein the camera parameters include: at least one of an exposure parameter, a gain coefficient, and a gamma coefficient; The target local image brightness is adjusted according to the adjustment value to obtain the first target environment brightness.
7. The method according to claim 1, characterized in that The rear camera is a rearview camera, the target rearview mirror is an interior rearview mirror, and the method further includes: If it is determined to turn on the anti-glare function of the interior rearview mirror of the target vehicle, then obtaining a rear side image captured by a rear side view camera of the target vehicle; Performing brightness processing on the rear side image to obtain a second target environment brightness of a second environment area observable through an exterior rearview mirror of the target vehicle; wherein the second target environment brightness is a maximum value of a second local environment brightness of the second environment area; If the first target environment brightness and the second target environment brightness meet the preset function activation condition, the anti-glare function of the exterior rearview mirror corresponding to the rear side view camera is activated.
8. The method according to claim 7, characterized in that The first target environment brightness and the second target environment brightness meet a preset function activation condition, including: Determine a first ambient brightness difference between the first target ambient brightness and the second target ambient brightness; If the first ambient brightness difference is within a first preset difference interval, the preset function activation condition is met.
9. An opening device with anti-glare function, characterized in that: include: A target image acquisition module, used to acquire a target image captured by a rear camera of a target vehicle; wherein the rear camera corresponds to a target rearview mirror of the target vehicle; A first image processing module, configured to perform brightness processing on the target image to obtain a first target environment brightness of a first environment area observable through the target rearview mirror; wherein the first target environment brightness is a maximum value of a first local environment brightness of the first environment area; The first function activation module is used to determine whether to activate the anti-glare function of the target rearview mirror according to the first target environment brightness and the overall environment brightness; wherein the overall environment brightness is the environment brightness collected by the preset light sensor of the target vehicle.
10. 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 8 by calling the program or instruction stored in the memory.
11. 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 8.
12. A vehicle, characterized in that: Include at least one of the following: The opening device of the anti-glare function as described in claim 9; The electronic device as claimed in claim 10; The computer readable storage medium of claim 11.