The invention relates to a method for detecting raindrops on a windscreen of a vehicle, in which an image of at least an area of the windscreen is captured by a camera. At least one object is extracted from the captured image, and ambient light conditions are determined. Moreover, the invention relates to a camera assembly for detecting raindrops on a windscreen of a vehicle.
For motor vehicles, several driving assistance systems are known, which use images captured by a single or by several cameras. The images obtained can be processed to allow a display on screens, for example at the dashboard, or they may be projected on the windscreen, in particular to alert the driver in case of danger or simply to improve his visibility. The images can also be utilized to detect raindrops or fog on the windscreen of the vehicle. Such raindrop or fog detection can participate in the automatic triggering of a functional units of the vehicle. For example the driver can be alerted, a braking assistance system can be activated, windscreen wipers can be turned on and/or headlights can be switched on, if rain is detected.
U.S. Pat. No. 6,806,485 B2 describes an optical moisture detector which is able to determine an absolute value corresponding to ambient light conditions. The detector includes an optical moisture sensor which senses the presence of moisture on a moisture collecting surface.
EP 1 025 702 B1 describes a rain sensor system including an illumination detector such as a CMOS imaging array or a CCD imaging array. Depending on the level of ambient light a control unit switches on an illumination source, when the ambient light on the windscreen is too low to illuminate rain drops which are present on the windscreen.
Methods and camera assemblies known from the state of the art have encountered difficulties in reliably detecting raindrops on a windscreen.
It is therefore the object of the present invention to create a particularly reliable method and camera assembly for detecting raindrops on a windscreen.
This object is met by a method with the features of claim 1 and by a camera assembly with the features of claim 9. Advantageous embodiments with convenient further developments of the invention are indicated in the dependent claims.
According to the invention, in a method for detecting raindrops on a windscreen an image of at least an area of the windscreen is captured by a camera. At least one object is extracted from the captured image and ambient light conditions are determined, wherein at least one of at least two ways of object extraction is performed in dependence on the ambient light conditions. This is based on the finding, that a raindrop on the windscreen can have several appearances depending on lighting conditions. Consequently, a rain detection algorithm which considers the ambient light conditions is chosen to utilize—among different ways of object extraction—the at least one way which is particularly adapted to the determined lighting conditions. This makes the method particularly reliable and also provides for fast and efficient raindrop detection.
In an advantageous embodiment of the invention at nocturnal or tunnel ambient light conditions objects are extracted from the captured image by detecting objects of which a grey level is lower than a predetermined threshold value. At dark night conditions or in a dark tunnel a raindrop on the windscreen appears darker in the captured image of the area of the windscreen than the already dark background of the image. In order to determine whether such dark night lighting conditions are present a number and/or a brightness of light sources can be evaluated, for example by determining whether the number and/or the brightness of light sources is below a predetermined threshold value. If in such dark night lighting conditions only objects with a low grey level are extracted from the image, the raindrop detection can be performed fast, reliably and efficiently.
In a further advantageous embodiment of the invention at nocturnal or tunnel ambient light conditions with a number and/or a brightness of light sources above a predetermined threshold value, objects are extracted from the captured image by detecting objects of which a grey level is higher than a predetermined threshold value. This is based on the finding that by night a raindrop in the captured image appears brighter than the relatively dark surroundings of the raindrop, if there are near and powerful light sources. Therefore, by clear night or bright tunnel lighting conditions it is sufficient for the detection of objects which may be raindrops to look for objects with a relatively high grey level. The way of object extraction is therefore adapted to such clear night lighting conditions for a reliable and fast raindrop detection.
It has further turned out to be advantageous, when at daylight ambient light conditions objects are extracted from the captured image by detecting an object's dark part and an object's bright part, wherein the dark part and the bright part of the object are merged. The dark part can be detected by comparing its grey level with a predetermined threshold value and the bright part by comparing its grey level with a with another, higher predetermined threshold value. By clear day a raindrop on the windscreen appears in the captured image as an object with a luminous part and a dark part. Therefore, the extraction of the object potentially representing a raindrop in the captured image can be performed by bright and dark object extraction and subsequent merging of contrasted zones. In this fusion of zones photometric and geometric constraints are considered. By merging the dark and bright parts of objects, the particular appearance of raindrops on the windscreen as present in the captured image at daylight conditions is appropriately considered.
In a further preferred embodiment of the invention the ambient light conditions are determined by means of the camera. Thus, no other sensor capable of estimating the ambient light conditions needs to be provided. The information on the ambient light conditions is rather obtained by processing the captured image. The detection of raindrops on the windscreen can thus be performed by a very compact camera assembly.
A very accurate estimation of ambient light conditions can be obtained, if the latter are determined quantitatively. This also allows for a very precise differentiation between different lighting conditions. On the other hand the ambient light conditions can be determined qualitatively. This makes it possible to use a relatively simple camera. Alternatively an electronic device such as a comparator and can be utilized in order to indicate whether there are daylight, nocturnal or twilight ambient light conditions. This simplifies the determination of the lighting conditions to be taken into account for the choice of the appropriate way of object extraction.
In still a further advantageous embodiment of the invention the objects are extracted using a segmentation of the captured image by region and/or segmentation of the captured image by edges. Segmentation by region can be based on morphological operations, or level set methods can be used as well as the growing up of regions or segments. For edge detection an active contour model, that is so-called snakes, can be utilized. These methods for object extraction are very efficient in analyzing the captured image.
Finally, it has turned out to be advantageous to classify the extracted objects in order to detect raindrops. A score or confidence level can be assigned to each extracted object in order to determine whether the extracted object is a raindrop or not. Thus an appropriate action can be taken, which takes into account the detected raindrops.
The camera assembly according to the invention, which is configured to detect raindrops on a windscreen of a vehicle comprises a camera for capturing an image of at least an area of the windscreen, processing means configured to extract at least one object from the captured image and means for determining ambient light conditions. The processing means are configured to perform at least one of at least two ways of object extraction in dependence on the ambient light conditions. This allows the processing means to reliably detect raindrops on the windscreen, as the way of object extraction is chosen appropriately with respect to the ambient light conditions.
The camera preferably is sensitive in the spectral range of wavelengths for which the human eye is sensitive as well.
The preferred embodiments presented with respect to the method for detecting raindrops and the advantages thereof correspondingly apply to the camera assembly according to the invention and vice versa.
All of the features and feature combinations mentioned in the description above as well the features and feature combinations mentioned below in the description of the figures and/or shown in the figures alone are usable not only in the respectively specified combination, but also in other combinations or else alone without departing from the scope of the invention.
Further advantages, features and details of the invention are apparent from the claims, the following description of preferred embodiments as well as from the drawings. Therein show:
A camera assembly 10 (see
For the detection of raindrops on the windscreen ambient light conditions are taken into consideration in order to chose the appropriate way of object extraction. In
In an image pre-processing step S10 the image captured by the camera 12 is prepared. For example the region of interest is defined and noise filters are utilized. In a next step S12 ambient light conditions are determined. Depending on the ambient light conditions, different ways of object extraction are performed when the captured image is processed.
A first arrow 14 indicates that upon determination of ambient light conditions which correspond to a clear night in a step S14 objects with a high grey level are extracted. An exemplary image 16 which shows such clear night conditions is represented in
If in step S12 it is determined that the ambient light conditions correspond to a dark night another way of object extraction is applied to the image captured by the camera 12. As indicated by an arrow 22 in
If the ambient light determination in step S12 yields that an image 26 (see
This object classification undertaken in step S16 can be based on a number of descriptors that may describe an object's shape, intensity, texture and/or context. Shape descriptors can consider a ratio of height and width of the object, the object perimeter, object area, the circularity of the object, and the like. Intensity descriptors may classify the object according to its maximum intensity, its minimum intensity, or a mean intensity. Also, the mean intensity of red components within the object can be taken into consideration for the object's classification. Texture descriptors can be used to classify the object according to moment, uniformity, rugosity, cumulated gradient, and the like. Also, a histogram of oriented gradients can be established in order to classify the objects.
In the object classification (see step S16 in
Qualitative lighting condition determination may distinguish between daylight, twilight, night without light source, and night with light source. The night without light source will lead to performing the object extraction according to the arrow 22 in
In the object classification a score or confidence level value is assigned to each extracted object. In elaborating the score or the confidence level, the descriptors and context of each object are taken into consideration. The object classification can be performed by a supervised learning machine, for example a support vector machine.
As the raindrop detection software obtains information on the ambient light conditions, the extraction function to be utilized with the specific appearance of drops in the captured images 16, 24, 26 can be adapted to these lighting conditions, for example daylight, tunnel, night with light sources, or night without any additional light sources. In this way the extraction of objects potentially corresponding to raindrops 20 on the windshield performed by the camera 12 is directly correlated to the ambient light conditions.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP2011/004505 | 9/7/2011 | WO | 00 | 9/11/2014 |