Windscreen wiper automatic control method, device, equipment, medium and product

By obtaining the windshield image and calculating the variance to adjust the wiper wiper wiper level, the problem of sensor detection error and high maintenance costs is solved, and the automatic control and user experience of the wiper is improved.

CN120363870APending Publication Date: 2025-07-25HUIZHOU DESAY SV AUTOMOTIVE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510818678.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-18
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The existing wiper control technology is based on sensors to detect rainfall with large errors, high maintenance costs and difficult to meet the driver's vision needs, especially in heavy rain or above levels, which cannot accurately adjust the gear.

Method used

By acquiring the windshield image, the image variance is calculated using the Laplace operator, and the wiper scraping level of the wiper is adjusted in combination with the preset standard variance and the definition requirement coefficient, so as to achieve automatic control of the wiper.

Benefits of technology

It avoids errors caused by sensor detection results, reduces maintenance costs, adjusts scratch levels according to user needs, improves user experience, and meets the visual needs under different rainfall conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120363870A_ABST
    Figure CN120363870A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a windscreen wiper automatic control method and device, equipment, a medium and a product. The method comprises the steps that a windscreen image is obtained; the scraping grade of the windscreen wiper is adjusted on the basis of a target ratio and the definition demand coefficient, and the target ratio is determined on the basis of a preset standard variance and the variance of the windscreen image. According to the technical scheme, the scraping grade of the windscreen wiper is adjusted by using the variance of the windscreen image, the preset standard variance and the definition demand coefficient, so that automatic control over the windscreen wiper is achieved, errors caused by adjusting the gear of the windscreen wiper based on the rainfall detection result of the sensor are avoided, the maintenance cost of an automobile is reduced, and the service life of the automobile is prolonged. And the scraping level is adjusted according to user requirements, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of automotive technologies, and in particular, to a method, device, equipment, medium, and product for automatically controlling a windshield wiper. Background Art

[0002] In the prior art, the principle of controlling a windshield wiper through rain detection is mainly based on optical sensors and capacitive sensors. The optical sensor includes a light-emitting component (such as an infrared LED) and a receiving component (a photosensitive element). In the absence of rain, most of the light (usually infrared) emitted by the light-emitting component passes through the windshield and is then reflected back and captured by the receiving component. When it rains, the rainwater falling on the windshield changes the reflection and scattering patterns of the light. Some of the light is scattered by the water droplets and no longer returns to the receiver along the original path, resulting in a decrease in the light intensity received by the receiver or a change in the pattern. The electronic circuit inside the optical sensor analyzes the received light changes, determines the amount of rainfall, and sends a signal to the windshield wiper control system accordingly. According to the judged rainfall, the system automatically adjusts the working speed of the windshield wiper, from slow intermittent swinging to fast continuous swinging, to adapt to different rain intensities. The disadvantage of this detection method is that it is difficult to distinguish the impact of different rain intensities on the driver's line of sight during heavy rain and downpours. The windshield wiper often can only be turned on at a specific gear for operation, resulting in both insufficient or excessive scraping frequencies.

[0003] The capacitive sensor senses rainwater by measuring the capacitance change on the surface of the windshield. Since the dielectric constant of water is much higher than that of air, when the glass surface is wet, its capacitance value will increase. The sensor determines the amount of rainfall based on the capacitance change and then sends a corresponding control signal to the windshield wiper system. However, this method requires a conductive coating to be applied on the outer layer of the glass. Long-term use will cause wear and affect the detection effect, resulting in incorrect windshield wiper frequencies, and the coating requires additional costs. Moreover, existing detection technologies are difficult to distinguish rain intensities above heavy rain and can only use a single gear for scraping uniformly. In actual use, the vehicle owner often has to manually adjust the gear to meet their line of sight requirements; existing detection technologies are prone to irreversibly affecting the detection accuracy after long-term use, and the supporting and maintenance costs in the early and later stages are high. And existing detection technologies indirectly determine the impact on the driver's line of sight based on the sensor's discrimination of the amount of rainfall, and the accuracy is often not high, which does not meet the driving needs of the driver. Summary of the Invention

[0004] Embodiments of the present disclosure provide a method, device, equipment, medium, and product for automatically controlling a windshield wiper, which realizes the automatic control of the windshield wiper, avoids the errors caused by adjusting the gear of the windshield wiper based on the rain detection results of the sensor, and improves the user experience.

[0005] In a first aspect, a method for automatically controlling a windshield wiper is provided, including:

[0006] Obtain an image of the windshield;

[0007] Adjust the scraping level of the windshield wiper based on a target ratio and a clarity requirement coefficient, where the target ratio is determined based on a preset standard deviation and the variance of the windshield image.

[0008] In a second aspect, a device for automatically controlling a windshield wiper is provided, including:

[0009] An image acquisition module for obtaining an image of the windshield;

[0010] A level adjustment module for adjusting the scraping level of the windshield wiper based on a target ratio and a clarity requirement coefficient, where the target ratio is determined based on a preset standard deviation and the variance of the windshield image.

[0011] In a third aspect, an electronic device is provided, including:

[0012] At least one processor; and,

[0013] A memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the method for automatically controlling a windshield wiper as described in the first aspect above.

[0015] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for automatically controlling a windshield wiper as described in the first aspect above is implemented.

[0016] In a fifth aspect, a computer program product is provided, the computer program product includes a computer program, and when the computer program is executed by a processor, the method for automatically controlling a windshield wiper as described in the first aspect above is implemented.

[0017] An embodiment of the present disclosure discloses a method, device, equipment, medium and product for automatic control of a windshield wiper. The method includes: obtaining an image of the windshield; adjusting the scraping level of the windshield wiper based on a target ratio and a clarity requirement coefficient, where the target ratio is determined based on a preset standard deviation and the variance of the windshield image. This technical solution adjusts the scraping level of the windshield wiper by using the variance of the windshield image, the preset standard deviation, and the clarity requirement coefficient, thereby realizing the automatic control of the windshield wiper, avoiding the error caused by adjusting the gear of the windshield wiper based on the rain detection result of the sensor, reducing the maintenance cost of the vehicle, realizing the adjustment of the scraping level according to the user's needs, and improving the user's experience.

[0018] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the embodiments of the present disclosure. Other features of the embodiments of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0020] Figure 1 is a flowchart of a method for automatic control of a windshield wiper provided in Embodiment 1 of the present disclosure;

[0021] Figure 2 is a schematic diagram of an image of an interested region segmentation provided in Embodiment 1 of the present disclosure;

[0022] Figure 3 is a schematic diagram of the execution process of the method for automatic control of a windshield wiper provided in Embodiment 1 of the present disclosure;

[0023] Figure 4 is a schematic structural diagram of a device for automatic control of a windshield wiper provided in Embodiment 2 of the present disclosure;

[0024] Figure 5 is a schematic structural diagram of an electronic device provided in Embodiment 3 of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0025] To enable those skilled in the art to better understand the solutions of the embodiments of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without creative efforts shall fall within the scope of protection of the embodiments of the present disclosure.

[0026] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1 It is a flowchart of an automatic control method for a windshield wiper provided in Embodiment 1 of the present disclosure. This embodiment is applicable to the situation of automatically controlling a windshield wiper. This method can be executed by an automatic windshield wiper control device, which can be implemented in the form of hardware and / or software. The automatic windshield wiper control device can be configured in an electronic device, and the electronic device includes, but is not limited to, devices with data processing capabilities such as a computer, a computer, a terminal, and a server. As Figure 1 shown, the method includes:

[0029] S110. Obtain an image of the windshield.

[0030] In this embodiment, an image acquisition device can be used to obtain an image of the windshield. Among them, the image of the windshield can be a captured image that has been grayscale processed. Exemplarily, the image acquisition device can be a digital video recorder (DVR). It can communicate with an AisServer through an AisClient to obtain the RGB image data of the DVR from the DVR. Among them, the AisClient and the AisServer are communication components in a Qualcomm in-vehicle camera system, mainly used to implement data interaction between the client and the server to obtain the image data of the digital video recorder (DVR).

[0031] S120 adjusts the scraping level of the windshield wiper based on the target ratio and the clarity requirement coefficient, where the target ratio is determined based on a preset standard deviation and the variance of the windshield image.

[0032] Specifically, after obtaining the windshield image, the variance of the windshield image can be determined. The variance of the windshield image is determined based on the Laplacian operation. After obtaining the windshield image, the Laplacian operation can be performed on the windshield image and the variance can be calculated. This method is commonly used in image clarity evaluation (such as autofocus algorithms) or edge strength quantification.

[0033] Continuing with the above description, after obtaining the variance of the windshield image, the target ratio can be determined based on the preset standard deviation and the variance of the windshield image. The target ratio can be the ratio of the variance of the windshield image to the preset standard deviation. Among them, the preset standard deviation can be the variance of the image when the windshield is clean and clear at the factory. In the obtained windshield image, the front hood has a single edge for the background. When there is a large amount of rain residue on the windshield, the edge is blurred, and the calculated variance value of the obtained windshield image is small, and the ratio (target ratio) to the variance of the image when the windshield is clean and clear at the factory (preset standard deviation) is smaller. The scraping level of the windshield wiper can be adjusted through the target ratio and the clarity requirement coefficient. Among them, the clarity requirement coefficient can be the user's required value for the clarity of the windshield. The clarity requirement coefficient can be set by the developer or input by the user. Exemplarily, the user can input the clarity requirement coefficient through the WiperCharge app in the in-vehicle system, and the WiperCharge app can also adjust the control mode of the windshield wiper to automatic control or manual control. Adjusting the scraping level of the windshield wiper can be adjusting the gear or speed of the windshield wiper.

[0034] Exemplarily, the key code for calculating the variance of the windshield image using the Laplacian can be expressed as: / / Apply Laplacian

[0035] cv::Mat laplacianImage;

[0036] cv::Laplacian(DetectgrayImage, laplacianImage, CV_16S); / / Use 16-bit signed integers to store the result (may contain negative values)

[0037] / / Calculate variance

[0038] cv::Scalar mean, stddev;

[0039] cv::meanStdDev(laplacianImage, mean, stddev);

[0040] double variance = stddev.val[0] * stddev.val[0]; / / Variance

[0041] Among them, cv::Mat laplacianImage can be represented as a matrix (image) named laplacianImage, which is used to store the result after Laplace transform. At this time, the matrix is not initialized and the content is empty. cv::Laplacian(...) can represent applying the Laplace operator to the input image DetectgrayImage (the image after grayscale processing), and calculating the second derivative of the image (i.e., edge intensity). Among them, DetectgrayImage can represent the input grayscale image. laplacianImage can represent the matrix where the output result is stored. CV_16S can represent that the data type of the output image is 16-bit signed integer (range: -32768 to 32767).

[0042] Following the above description, cv::Scalar mean, stddev can be used to represent two variables mean and stddev of cv::Scalar type, which are respectively used to store the mean (mean) and standard deviation (stddev) of the Laplace image. cv::meanStdDev(...) can represent calculating the mean and standard deviation of laplacianImage. double variance = stddev.val[0] * stddev.val[0] can represent that the variance is the square of the standard deviation, which is used to quantify the clarity or edge intensity of the image. When there is a large amount of residual rain on the windshield, the edge is blurred, and the calculated variance value is small, and the ratio to the variance of the image of the windshield when it is clean and clear at the factory is even smaller. The wiper gear or speed is adjusted through this ratio. It should be noted that the Laplace operator may produce negative values (for example, the signs of the pixel differences on both sides of the edge are opposite), so a signed type needs to be used for storage.

[0043] This embodiment provides a method for automatically controlling a windshield wiper, including: obtaining an image of the windshield; adjusting the scraping level of the windshield wiper based on a target ratio and a clarity requirement coefficient, where the target ratio is determined based on a preset standard deviation and the variance of the windshield image, thereby realizing the automatic control of the windshield wiper. Based on the visual detection method, it is closer to the user's intuitive feeling of the rainfall amount. Compared with the existing methods for detecting and adjusting humidity and rainfall amount, this technical solution can achieve the automatic windshield wiper control effect that meets the user's needs both in light rain and heavy rain, avoiding the errors brought by adjusting the wiper gear based on the rainfall detection result of the sensor, reducing the maintenance cost of the vehicle, and at the same time adjusting the scraping level according to the user's needs, which also improves the user's experience.

[0044] As an alternative implementation of this embodiment, the automatic wiper control method provided in this embodiment further includes:

[0045] Updating the image sampling frequency of the image acquisition device based on the adjusted scraping level of the wiper.

[0046] In this embodiment, after the scraping level of the wiper is adjusted (after the wiper gear or speed is adjusted), the frequency at which the image acquisition device obtains a clear image just wiped by the wiper will also change accordingly. Therefore, the image sampling frequency of the image acquisition device can be updated based on the adjusted scraping level. Exemplarily, based on VehicleHal, the working frequency of the wiper can be obtained through the Microcontroller Unit (MCU) of the wiper. When updating the image sampling frequency of the image acquisition device based on the adjusted scraping level of the wiper, a gear adjustment signal or a direct speed adjustment signal can be transmitted from the QNX real-time operating system to the MCU based on VehicleHal. Among them, VehicleHal is responsible for standardizing the control interfaces of in-vehicle hardware (such as wipers, headlights, sensors, etc.), enabling upper-layer applications (such as in-vehicle system interfaces) to communicate with the underlying hardware through a unified interface. It shields hardware differences and simplifies the development process. The MCU is the core chip of the embedded system and is responsible for executing the control logic. In the wiper system, the MCU can calculate the working frequency of the wiper in real time and drive the wiper motor to perform corresponding actions.

[0047] As an alternative implementation of this embodiment, updating the image sampling frequency of the image acquisition device based on the adjusted scraping level of the wiper includes:

[0048] 1) Determining the scraping frequency of the wiper based on the adjusted scraping level of the wiper.

[0049] Specifically, the scraping frequency of the wiper can be determined based on the adjusted scraping level of the wiper. Exemplarily, different scraping levels can correspond to different scraping frequencies. For example, the scraping level can be a gear, and different gears of the wiper (such as intermittent, low speed, high speed) usually correspond to preset fixed scraping frequencies. For example: intermittent gear: the frequency f is the lowest (such as 0.5 times per second), low speed gear: the frequency is medium (such as 1 time per second), high speed gear: the frequency is the highest (such as 2 times per second). After the scraping gear is adjusted, the corresponding scraping frequency can be directly matched through the preset calibration data.

[0050] 2) Updating the image sampling frequency of the image acquisition device based on the scraping frequency and the number of samplings.

[0051] It can be known that the number of sampling times can be the number of times the driving recorder performs image sampling within the time when the windshield wiper completes a complete wiping action (a wiping cycle). After the wiping frequency is determined, the image sampling frequency of the image acquisition device can be updated based on the product of the wiping frequency and the number of sampling times.

[0052] Exemplarily, the wiping frequency can be represented as f, the number of sampling times can be represented as k, and the updated image sampling frequency of the image acquisition device can be represented as P. Then, P = k × f.

[0053] As an optional implementation manner of this embodiment, the obtaining of the windshield image includes:

[0054] 1) Use an image acquisition device to obtain an initial windshield image.

[0055] In this embodiment, the image acquisition device can be a device for acquiring images. Exemplarily, the image acquisition device can be a driving recorder. Specifically, the image of the driving recorder can be used to replace the intuitive feeling of the line of sight in front of a person, and frame extraction processing can be performed on the image transmitted from the driving recorder to the vehicle-mounted system to obtain an initial windshield image.

[0056] 2) Cut the initial windshield image based on the region parameters of the region of interest to obtain the windshield image corresponding to the region of interest.

[0057] Specifically, after the initial windshield image is obtained, the region parameters of the region of interest (Region of Interest, ROI) can be obtained. The region parameters can be set by the user or randomly generated by a computing device, and the computing device can be a vehicle-mounted system. It should be noted that after the region parameters of the region of interest are obtained, it can be checked whether the region parameters of the region of interest are abnormal or out of bounds (legal).

[0058] According to the above description, the opencv library can be called to cut the initial windshield image based on the region parameters of the region of interest to obtain the windshield image corresponding to the region of interest.

[0059] Figure 2 A schematic diagram of an image for segmenting the region of interest provided in this embodiment is shown in Figure 2 As shown, the region parameters of the region of interest can include (x, y, h, w), where x and y can be the coordinate positions of the upper left corner of the region of interest in the coordinate system with the upper left corner of the initial windshield image as the coordinate origin, h can be the width of the region of interest, and w can be the length of the region of interest. Among them, the windshield image corresponding to the region of interest can include the image of the front part of the vehicle head and a small part of the background image above the dividing line between the vehicle head and the external background (to prevent the noise of too much external background from affecting).

[0060] Exemplarily, the key code for cutting the initial windshield image based on the region parameters of the region of interest to obtain the windshield image corresponding to the region of interest can be:

[0061] / / Define the region parameters of the ROI

[0062] int x = 100, y = 200, w = 300, h = 400;

[0063] / / Check if the values of the ROI are abnormal or out of bounds

[0064] if (x < 0 || y < 0 || w <= 0 || h <= 0 || (x + w) > rgbImage.cols || (y + h) > rgbImage.rows) {

[0065] ALOGE("ROI area is unreasonable!");

[0066] return -1;

[0067] }

[0068] / / Extract the ROI image

[0069] cv::Mat roiImage = rgbImage(cv::Rect(x, y, w, h));

[0070] / / DeepCopy to independent memory

[0071] cv::Mat rgbImage = roiImage.clone();

[0072] Among them, x < 0 || y < 0 can indicate that the upper left corner coordinates of the ROI cannot be negative; w <= 0 || h <= 0 can indicate that the width and height of the ROI must be positive; (x + w) > rgbImage.cols can indicate that the right boundary of the ROI cannot exceed the image width; (y + h) > rgbImage.rows can indicate that the lower boundary of the ROI cannot exceed the image height. When any condition is met, the error log "ROI area is unreasonable!" can be output through ALOGE, and the error code -1 is returned to indicate that the parameter verification fails. cv::Rect(x, y, w, h): Defines a rectangular area with the upper left corner coordinates (x, y), width w, and height h.

[0073] Continuing from the above description, rgbImage(cv::Rect(...)) can represent extracting a specified rectangular area from the initial windshield image rgbImage to generate a windshield image corresponding to the region of interest. roiImage.clone() can represent creating a complete copy of roiImage and copying the image pixel data to a new memory space.

[0074] 3) Perform grayscale processing on the windshield image corresponding to the region of interest.

[0075] Specifically, after obtaining the windshield image corresponding to the region of interest, grayscale processing can be performed on the windshield image corresponding to the region of interest to obtain the grayscale processed windshield image.

[0076] Exemplarily, the code for grayscale processing can be expressed as:

[0077] / / Convert the image to grayscale

[0078] cv::Mat DetectgrayImage;

[0079] cv::cvtColor(rgbImage, DetectgrayImage, cv::COLOR_RGB2GRAY);

[0080] Among them, cv::Mat DetectgrayImage can represent creating an empty cv::Mat object DetectgrayImage for storing the converted grayscale image, and cv::cvtColor(...) represents converting the input image from one color space to another. Among them, rgbImage can represent the input color image (assumed to be in RGB format); DetectgrayImage can represent the output grayscale image; cv::COLOR_RGB2GRAY can represent the conversion type, indicating converting the RGB color image to a grayscale image.

[0081] As an alternative implementation manner of this embodiment, adjusting the scraping level of the windshield wiper based on the target ratio and the preset clarity requirement coefficient includes:

[0082] 1) When the target ratio is less than the clarity requirement coefficient and the difference between the clarity requirement coefficient and the target ratio is greater than the preset difference, adjust the windshield wiper from the current scraping level to the first scraping level, and the scraping speed of the windshield wiper corresponding to the first scraping level is higher than the scraping speed of the windshield wiper corresponding to the current scraping.

[0083] Specifically, if the target ratio is less than the clarity requirement coefficient, and the difference between the clarity requirement coefficient and the target ratio is greater than the preset difference, it can be considered that the clarity of the windshield does not meet the user's requirement for the clarity of the windshield. In this case, the wiper can be adjusted from the current scraping level to the first scraping level, where the scraping speed of the wiper corresponding to the first scraping level is higher than the scraping speed of the wiper corresponding to the current scraping. That is, it can be understood that when the clarity requirement of the windshield does not meet the user's requirement for the clarity of the windshield, the scraping speed of the wiper is increased.

[0084] 2) If the target ratio is greater than or equal to the clarity requirement coefficient, it is determined that the wiper remains at the current scraping level unchanged.

[0085] It can be known that if the target ratio is greater than or equal to the clarity requirement coefficient, it can be considered that the clarity of the windshield meets the user's requirement for the clarity of the windshield at this time, and then the current scraping level of the wiper can be kept unchanged.

[0086] Figure 3 This is a schematic diagram of the execution process of an automatic wiper control method provided in this embodiment. As Figure 3 shown, the image of the driving recorder is used to replace the intuitive feeling of the line of sight in front of the person. The image transmitted from the driving recorder to the vehicle-mounted system is frame-extracted, and the region of interest is set to obtain the windshield image corresponding to the region of interest. The opencv library integrated in the vehicle-mounted system is used to convert the extracted windshield image (RGB image) into a grayscale image, and the variance of the grayscale windshield image is calculated using Laplace. This variance value is compared with the variance threshold (preset standard variance) obtained by the same processing when the vehicle leaves the factory to obtain the target ratio, and the gear or speed of the wiper is adjusted through the target ratio and the clarity requirement coefficient. Further, on the basis of adjusting the wiper frequency, the sampling frequency of the image is adjusted to obtain a more realistic line-of-sight effect after scraping for the next sampling recognition adjustment.

[0087] The above technical solution uses the Laplace operator to process the image, which can highlight the areas with rapid gradient changes in the grayscale image. These rapidly changing areas are generally the edges of objects in the image. Therefore, if the variance obtained by Laplace transform of the acquired image is high, it indicates that there are relatively clear edges in the image, that is, a relatively clear image. However, if the variance is very low, it means that there are few or unclear edges in the image, that is, a relatively blurred image. Therefore, by obtaining the variance after Laplace transform through the visual detection of the hood edge, the intuitive feeling of whether the hood edge is blurred by the human eye can be directly quantified and simulated, so as to adjust the gear or speed of the windshield wiper. This avoids the errors caused by indirectly inferring the visual feeling of people through methods such as sensor rain detection to adjust the windshield wiper gear, as well as the high maintenance cost of capacitive sensors and the errors caused by long-term use and wear. Moreover, this technical solution can be integrated and transformed on the basis of existing common vehicle control and cockpit systems, with low additional cost and strong practicability.

[0088] Embodiment 2

[0089] Figure 4 It is a schematic structural diagram of a windshield wiper automatic control device provided by Embodiment 2 of the present disclosure; as Figure 4 shown, the device includes: an image acquisition module 210 and a level adjustment module 220.

[0090] Among them, the image acquisition module 210 is used to acquire the windshield image;

[0091] The level adjustment module 220 is used to adjust the scraping level of the windshield wiper based on the target ratio and the clarity requirement coefficient, where the target ratio is determined based on a preset standard variance and the variance of the windshield image.

[0092] Embodiment 2 of the present disclosure provides a windshield wiper automatic control device, which realizes the automatic control of the windshield wiper, avoids the errors caused by adjusting the windshield wiper gear through rain detection, reduces the maintenance cost of the vehicle, adjusts the scraping level according to user needs, and improves the user experience.

[0093] Furthermore, the level adjustment module 220 is further used for:

[0094] In the case where the target ratio is less than the clarity requirement coefficient and the difference between the clarity requirement coefficient and the target ratio is greater than a preset difference, adjusting the windshield wiper from the current scraping level to a first scraping level, and the scraping speed of the windshield wiper corresponding to the first scraping level is higher than the scraping speed of the windshield wiper corresponding to the current scraping;

[0095] If the target ratio is greater than or equal to the clarity requirement coefficient, it is determined that the windshield wiper remains at the current scraping level unchanged.

[0096] Further, the image acquisition module 210 is further configured to:

[0097] Obtain an initial windshield image by using an image acquisition device;

[0098] Cut the initial windshield image based on the region parameters of the region of interest to obtain a windshield image corresponding to the region of interest;

[0099] Perform grayscale processing on the windshield image corresponding to the region of interest.

[0100] Further, the device further includes:

[0101] A sampling frequency update module, configured to update the image sampling frequency of the image acquisition device based on the scratching level after the wiper is adjusted.

[0102] Further, the sampling frequency update module is further configured to:

[0103] Determine the scratching frequency of the wiper based on the scratching level after the wiper is adjusted;

[0104] Update the image sampling frequency of the image acquisition device based on the scratching frequency and the number of samplings.

[0105] Further, the variance of the windshield image is determined based on the Laplacian operation.

[0106] The wiper automatic control device provided by the embodiments of the present disclosure can execute the wiper automatic control method provided by any embodiment of the embodiments of the present disclosure, and has corresponding function modules and beneficial effects for executing the method.

[0107] Embodiment III

[0108] Figure 5 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of the present disclosure described and / or claimed herein.

[0109] As Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0110] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0111] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microprocessor, etc. The processor 11 executes the various methods and processes described above, such as the automatic wiper control method.

[0112] In some embodiments, the automatic wiper control method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the automatic wiper control method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the automatic wiper control method by any other appropriate means (e.g., by means of firmware).

[0113] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0114] The computer programs for implementing the methods of the embodiments of the present disclosure can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.

[0115] In the context of the embodiments of the present disclosure, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0116] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0117] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0118] The computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0119] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the embodiments of the present disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of the embodiments of the present disclosure can be achieved, and no limitation is imposed herein.

[0120] The above specific embodiments do not constitute a limitation on the protection scope of the embodiments of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the embodiments of the present disclosure shall be included within the protection scope of the embodiments of the present disclosure.

[0121] The embodiments of the present disclosure also provide a computer program product, including a computer program and / or instructions, and the computer program, when executed by a processor, implements the windshield wiper automatic control method provided in any embodiment of the present application.

[0122] In the process of implementing the computer program product, computer program code for performing the operations of the embodiments of the present disclosure can be written in one or more programming languages or combinations thereof. The programming languages include object - oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN)—or, it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

[0123] Note that the above is only the preferred embodiment of the embodiments of the present disclosure and the applied technical principles. Those skilled in the art will understand that the embodiments of the present disclosure are not limited to the specific embodiments here. Various obvious changes, re - adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present disclosure. Therefore, although the embodiments of the present disclosure have been described in more detail through the above embodiments, the embodiments of the present disclosure are not limited to the above embodiments. Without departing from the concept of the embodiments of the present disclosure, more other equivalent embodiments can be included, and the scope of the embodiments of the present disclosure is determined by the scope of the appended claims.

Claims

1. An automatic control method for a windshield wiper, characterized in that, The method includes: Obtaining a windshield image; Adjusting the scraping level of the windshield wiper based on a target ratio and a clarity requirement coefficient, where the target ratio is determined based on a preset standard deviation and the variance of the windshield image.

2. The method according to claim 1, characterized in that, The adjusting the scraping level of the windshield wiper based on the target ratio and the preset clarity requirement coefficient includes: When the target ratio is less than the clarity requirement coefficient and the difference between the clarity requirement coefficient and the target ratio is greater than a preset difference, adjusting the windshield wiper from the current scraping level to a first scraping level, where the scraping speed of the windshield wiper corresponding to the first scraping level is higher than the scraping speed of the windshield wiper corresponding to the current scraping; If the target ratio is greater than or equal to the clarity requirement coefficient, it is determined that the windshield wiper remains at the current scraping level unchanged.

3. The method according to claim 1, wherein The obtaining the windshield image includes: Using an image acquisition device to obtain an initial windshield image; Cutting the initial windshield image based on the region parameters of the region of interest to obtain the windshield image corresponding to the region of interest; Performing grayscale processing on the windshield image corresponding to the region of interest.

4. The method according to claim 3, characterized in that The method further includes: Updating the image sampling frequency of the image acquisition device based on the adjusted scraping level of the windshield wiper.

5. The method according to claim 4, characterized in that The updating the image sampling frequency of the image acquisition device based on the adjusted scraping level of the windshield wiper includes: Determining the scraping frequency of the windshield wiper based on the adjusted scraping level of the windshield wiper; Updating the image sampling frequency of the image acquisition device based on the scraping frequency and the number of samplings.

6. The method according to claim 1, wherein The variance of the windshield image is determined based on Laplace operation.

7. An automatic control device for a windshield wiper, characterized in that, It includes: An image acquisition module for obtaining a windshield image; A level adjustment module for adjusting the scraping level of the windshield wiper based on a target ratio and a clarity requirement coefficient, where the target ratio is determined based on a preset standard deviation and the variance of the windshield image.

8. An electronic device, characterized in that, It includes: At least one processor; And, A memory communicatively connected to the at least one processor; where The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the windshield wiper automatic control method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the windshield wiper automatic control method as described in any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a computer program, and when the computer program is executed by the processor, it implements the windshield wiper automatic control method as described in any one of claims 1-6.