The present invention relates to detecting and classifying obstructions on the windshield of an automobile as part of a vehicle control system and more particularly the present invention detects and identifies obstructions on the windshield using a camera focused on the plane of the windshield.
Cameras are often used to acquire one or more images while viewing through a transparent window such as of glass. One such application is illustrated in
U.S. Pat. No. 6,392,218, by Kuehnle, discloses a method for analyzing optical images to detect moisture on a surface such as a windshield of an automobile using a sensor that is mounted on the windshield of the vehicle. An image such as that of the hood of the vehicle is processed and blurriness in the image is associated with moisture on the windshield. The sensor includes an optical image detector and a microprocessor with supporting control circuitry. The optical image detector acquires two-dimensional optical images from either the vehicle itself or an area surrounding the vehicle (e.g. the hood, the road ahead of the vehicle). The acquired optical images are then delivered to the microprocessor, which analyzes the image to determine whether moisture (such as rain) exists on the windshield. Upon detection of sufficient moisture on the vehicle, the microprocessor circuitry can activate the windshield wipers. U.S. Pat. No. 6,392,218 is directed towards only detection of rain or moisture on the windshield.
U.S. Pat. No. 5,923,027, by Stam et al, discloses a method of detecting moisture on a surface of a windshield using a sensor in conjunction with an infrared LED. Edges of moisture (i.e. rain) are detected by the sensor. The LED is used to check for fog on the windshield based upon the manner in which light is reflected. All objects detected by the sensor, including bugs, dirt, and headlamps from oncoming vehicles which create a bright spot in the image would initially be interpreted as moisture which then causes the windshield wipers to be activated. It is only after the wipers have been activated, if the object remains on the windshield, is the obstruction flagged as something other than rain. The spontaneous, random motion of the wipers creates an unnecessary driving distraction for the driver. Additionally, this system cannot differentiate between fog on the inside of the window and fog on the outside of the window.
U.S. Pat. No. 6,768,422, by Scofield, et al, discloses a method for determining if there is moisture on the surface of a windshield using a sensor in conjunction with a polarizing filter. The sensor determines if rain is present by using an edge detection algorithm. Fog is checked for by the polarization patterns created in the image.
All of the above previously disclosed patents are limited by not being able to differentiate between various objects which might appear on a windshield of a vehicle—including, rain, dirt, dust, frost, bugs, cracks, and bird droppings.
Additionally these systems are not able to distinguish between fog on the inside of the window and fog on the outside of the window.
None of the above prior art systems provide a solution to bright spots of oncoming vehicles, being misinterpreted as moisture.
Just as a driver of a vehicle responds differently to various obstruction on a windshield, e.g., turning on wipers, spraying the windows, enabling the defogger, etc, so to there is a need for and it would be advantageous to have a vehicular vision system capable of detecting and distinguishing between different obstructions, e.g., between moisture and dirt on the windshield of a vehicle, as well as being able to distinguish whether the obstruction is on the inside of the window, e.g., fog, smoke or dust, or on the outside of the vehicle, e.g., fog, frost, snow. And in order to minimize extraneous use of the wipers there is a need to for a vehicular vision system which is capable of differentiating between bright sots from on-coming vehicles and moisture on the window.
The term “primary camera” as used herein refers to camera 32 mounted inside a vehicle and used in systems for detecting road lane markings, other vehicles, pedestrians, and/or road signs. Typically, primary camera 32 focuses on objects that are over five meters from the primary camera.
The term “secondary camera” as used herein refers to a camera mounted inside a vehicle and used for detecting obstructions on the windshield, according to the present invention. Typically, the secondary camera focuses on objects that are less than 20 cm from the camera.
The term “edge” as used herein refers to a series of adjacent points in a digital image at which the intensity as measured at the points changes noticeably. An edge may be caused by different phenomena including: (a) discontinuities in depth, (b) discontinuities in surface orientation and (c) variations in scene illumination.
The term “gradient” as used herein refers to a two dimensional vector with the components given by the derivatives in the horizontal and vertical directions, of the image intensity function at each image point. At each image point, the gradient vector points in the direction of largest possible intensity increase, and the length or magnitude of the gradient vector corresponds to the rate of change in that direction.
The term “windshield” as used herein refers to a window either flat or curved installed on a vehicle which is at least partially transparent in a portion of the visible spectrum but not significantly translucent, opaque or hazy.
The terms “window” and “windshield” are used herein interchangeably and refers to the front window of the vehicle, the back window or a side window.
The term “windshield region” as used herein refers to the area of a windshield of a vehicle, for example the windshield, subtended by the field of view of a camera situated inside the vehicle.
The terms “classify” and “identify” are used herein interchangeably in the context of classifying or identifying obstructions on a window.
According to the teachings of the present invention there is provided a system mounted on a vehicle for detecting an obstruction on an external surface of the windshield of the vehicle. A primary camera is mounted inside the vehicle; the primary camera is configured to acquire images of the environment through the windshield. A secondary camera is focused on an external surface of the windshield, and operates to image the obstruction. A portion of the windshield, i.e. windshield region is subtended respectively by the field of view of the primary camera and the field of view of the secondary camera. A processor processes respective sequences of image data from both the primary camera and the secondary camera.
In vision systems where the image analysis is at least partially based on edge detection, such edges are represented in the images by high spatial frequencies. If the windshield is sufficiently clean, no edges or only edges with insignificant gradient will show in the images of the secondary camera.
According to the present invention there is provided a computerized system including a camera mounted on a vehicle for classifying at least one obstruction on a surface of a window of the vehicle, the system including: (a) a secondary camera mounted inside the vehicle, the secondary camera focusing on at least a portion of the surface of the window; and (b) a processor which processes a plurality of secondary images acquired by the secondary camera, and identifies the obstruction when present on the surface. The surface of the window can be selectably either the external surface of the window or the internal surface of the window.
The system further includes a primary camera mounted inside the vehicle, the primary camera configured to acquire multiple primary images of the environment through the window. A region of the window is subtended by respective fields of view of the secondary camera and the primary camera. The processor processes respectively at least one of the primary images and at least one of the secondary images.
The processor can use information extracted from the at least one primary image to selectably either enhance identifying the at least one obstruction or eliminating false identification of an obstruction.
The obstruction may cause a deterioration of the quality in the primary image. The processor is capable of determining the deterioration of image quality in the primary images.
The system may further include an activation mechanism operatively attached to the processor. The activation mechanism causes cleaning fluid to be sprayed on the window and windshield wipers to be activated when the processor identifies an obstruction, including dirt on the window while the surface is dry. When the obstruction includes dirt and moisture the processor activates the wiper.
When the processor identifies an obstruction, the processor initiates a task to remove the obstruction. The task is selected from the group of tasks consisting of: notification of the driver of the vehicle, disabling the system, activating wipers with or without cleaning fluid and activating defogging, turning on fog lights.
The secondary camera may also focus on at least a portion of the internal surface of the window and identify an obstruction when present on internal surface.
The secondary camera may perform tasks for the primary camera selected from the group of applications consisting of: ambient light sensing, gain control sensing.
The system may further include a pulsing light source, capable of illuminating a region of the window. The secondary camera is synchronized with the pulsing of the light source and images the illuminated region. According to the present invention there is provided a method for classifying at least one obstruction on a surface of a window of a vehicle, using a computerized system including a camera mounted on the vehicle for, the method including: (a) providing a secondary camera mounted inside the vehicle focusing on a surface of the window, and providing a secondary image of the surface; and (b) processing the secondary image thereby identifying an obstruction when present on the surface. The method may include edge detection to detect the obstruction.
The method may further include providing a primary camera mounted inside the vehicle, configured to acquire multiple primary images of the environment through the window. A region of the window is subtended by respective fields of view of the secondary and the primary camera. The processing of a primary image yields detecting at least one obstruction and determining deterioration of image quality in the primary image, which is caused by the obstruction.
Identifying an obstruction is also performed by processing a primary image which may selectably either enhance the identification of the obstruction or eliminating a false identification of an obstruction.
The method may use the secondary camera ambient light sensing set the mode of the system to selectably either day mode, dusk mode or night mode and optionally, when determining the level of ambient light as being of dusk mode or night mode, turning on the headlights.
The method can identify the obstruction is being one in the group consisting of: rain, dirt, mud, snow, frost, cracks, smoke, dust, condensation, smeared insects and bird droppings. Upon identifying an obstruction, the method initiates a task to remove the obstruction. The task is selected from the group of tasks consisting of: notification of the driver of the vehicle, disabling the system, activating windshield wipers, spraying fluid on windshield and activating defogging of a window.
The processing of a primary image may include at least one other vehicular vision processing application selected from the group of applications consisting of: detecting lane markings in a road, detecting pedestrians, detecting vehicles, detecting obstacles, detecting road signs, lane keeping, headway keeping and headlights control. The application may be turned off, when an obstruction is identified.
The identifying of the obstruction may include classifying the obstruction, using a Support Vector Machine (SVM) techniques or SVM with Radial Basis Function kernel techniques or any other technique know in the art.
The method may further include illuminating the window with a pulsing light source, whereas the secondary camera is operated synchronously with the pulsing light source.
These and other advantages of the present invention will become apparent upon reading the following detailed descriptions and studying the various figures of the drawings.
The present invention will become fully understood from the detailed description given herein below and the accompanying drawings, which are given by way of illustration and example only and thus not limitative of the present invention, and wherein:
The present invention is a system mounted on a vehicle for detecting an obstruction on an external surface of a windshield of the vehicle. A primary camera typically used for a driver's warning system and/or for a vehicle control system, is mounted inside the vehicle behind the windshield. The primary camera is configured to acquire images of the environment through the windshield. A secondary camera is focused on a surface of the windshield. Due to the angle of the windshield a portion of the secondary camera is focused on the external surface of the windshield, and a portion of the secondary camera is focused on the interior of the window. The secondary camera operates to image the obstruction. A portion of the windshield, i.e. windshield region is subtended respectively by the field of view of the primary camera and the field of view of the secondary camera. The primary and secondary cameras work in conjunction with each other in order to assure that there are no obstructions blocking the primary camera, and to minimize unnecessary image processing of the secondary camera (e.g., in the case whereby the primary camera recognizes bright points of tight from on-coming vehicles and notifies the secondary camera that the bright spot is indeed a light source and not moisture or some other obstruction on the windshield.)
Before explaining embodiments of the invention in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of the components set forth in the host description or illustrated in the drawings.
Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art of the invention belongs. The methods and examples provided herein are illustrative only and not intended to be limiting.
By way of introduction, the principal intentions of the present invention include detecting and classifying different obstructing substances on the windshield.
An aspect of the present invention is to distinguish between the various causes of image impairment since different causes of image impairment require a different response from the driver. In particular (a) rain drops and snow flakes prompt activation of the wipers, (b) dirt prompts the activation of the wipers with fluid and if the dirt persists, the driver is optionally prompted to manually clean the windshield, (c) smoke and dust particles collected on the inside of the windshield might require special service, (d) fog prompts lighting of fog light and (e) condensation prompts activating a defogger. Thus it is important to be able to distinguish between the different causes of image impairment. When an obstruction is detected, a low visibility signal may be generated indicating possible system unavailability due to image impairment.
It is another aspect of the present invention to integrate the detection and identification of the obstructions on the windshield with the function of the primary camera, he. a driver's warning system and/or for a vehicle control. It should be noted that all obstructions on the windshield very similar in the images acquired by the primary camera, the primary camera being typically focused on objects outside the vehicle. Obstructions as viewed by the primary camera appear as blurred images, because the windshield and the obstructions on an external and internal surface of the windshield are significantly out of focus. Thus the primary camera is preferably not used to determine the cause of the visibility impairment.
The present invention is not limited to a side-by-side embodiment or a top-down embodiment. The system may be mounted on a front or rear windshield, as well as on a side window—or behind any glass surface, for example behind the glass enclosure of the headlamps or tail lamps of the vehicle.
Often, the optical axis secondary camera 33 is not completely perpendicular to windshield 12 surface. Due to the thickness of windshield 12 and the finite depth of field of secondary camera 33, in some parts of the image, typically the lower parts of the image, the inner surface of the windshield 12 is most in focus. Typically, in the upper parts of the image, the outer surface of windshield 12 is most in focus. Having the ability to also focus secondary camera 33, in parts of the secondary image, on the inner surface of windshield 12 allows system 30 to determine, in a case of fog, condensation or smoke residue (which the camera picks up as texture) whether it is outside the vehicle 10 or on the inner surface of windshield 12. Having the ability to also focus secondary camera 33, in parts of the secondary image, on the inner surface of windshield 12 allows system 30 to also detect other obstructions on the inner surface of windshield 12, such as accumulated smoke particles, fog or dust, and to determine where the obstruction is on the inside or outside of windshield 12. One such situation where it is necessary to check the inside of windshield 12 is when there is fog on windshield 12. The driver might have turned on the defogger to clear windshield 12, and yet the region in front of the camera might still not be cleared of the fog or frost. By checking if the fog is on the inside or outside of windshield 12, the system will be able to determine the proper corrective action, e.g. whether to signal for the heater, defogger or low visibility mode.
Processor 34 detects substances 50 adhering to an external surface of windshield 12, and analyzes the image deterioration if any caused by detected light obstructing substances 50, on the images acquired by primary camera 32. The image deterioration caused by light obstructing substances 50 is considered negligible if the obstructed light has no measurable influence on the image quality from images from primary camera 32. The image deterioration when measured optionally causes system 30 to activate a low visibility mode, if the obstructed light reduces the performance of primary camera 32, but still executes part of the tasks. The image deterioration caused by light obstructing substances 50 can even cause primary camera 32 to stop function.
In vision systems, where the image analysis is at least partially based on edge detection, such edges are represented in the images by high spatial frequencies. If windshield 12 is sufficiently clean, edges with significant gradient do not show in the images acquired by secondary camera 33. If obstructions 50 are situated on a windshield region of windshield 12, then processing unit 34 determines the area on windshield 12 containing obstructions 50. The corresponding area in images acquired by primary camera 32 is also analyzed for high spatial frequencies. If the gradient of the edges detected is lower than some threshold, system 30 activates low visibility mode, having determined that obstructions 50 are present on a windshield region of windshield 12.
Referring back to
As a preliminary step, system 30 maps out false edges in the secondary image obtained in step 305, for example, a distant light source appears as a focused point of light in the primary image. It is well known from optics, that in a camera that is focused on the near distance (the secondary camera in the present invention), this point of light will appear as a disc with sharp edges. Such discs with sharp edges must be eliminated (step 306) from further analysis. The masked out secondary images are analyzed in step 310 for high frequencies representing sharp edges. If no edges were detected, images obtained in step 305 are analyzed in step 320 for blurry regions. If no blurry regions were detected in the primary image, algorithm 300 assumes windshield region 43 is clear. If low visibility mode was active, low visibility mode is turned off in step 325 and if the wipers were active the wipers are turned off in step 335. If blurry regions were detected in the primary image in step 320, fog, smoke (which is granular) or condensation situation or the like are assumed to persist; low visibility mode is activated in step 330 but if the wipers were activated, the wipers are turned off in step 335.
If in step 310 at least one edge is detected, system 30 proceeds into a classification procedure to classify 311 the detected obstruction 50. Images obtained in step 305 are further analyzed in step 312 to determined id the obstruction is a crack in windshield 12. If the obstruction is a crack, the crack edges are masked out from the secondary image, and system 30 proceeds to obtain the next image in step 305. If the classification fails in step 312, system 30 looks for objects with bright, dark, and grey spots in step 340. Objects with bright, dark and grey spots characterize rain drops. Rain may be stationary or seen as moving depending on whether the vehicle is stationary or moving. If one or more moving objects with both bright and dark spots are detected in step 340, rain is assumed and the wipers are activated in step 380.
If in step 340 no raindrops are detected, further analysis action is taken in step 350 for detecting opaque objects such as thick mud. If in step 350 no opaque objects were detected, further analysis action is taken in step 355 for detecting semi-opaque objects such as frost or dust or smoke residue. If in step 350 no semi-opaque objects were detected, algorithm 300 assumes obstruction 50 represents an unknown obstruction 50. The unknown obstruction 50 might be a temporary obstruction, or a failing sensor, etc. Primary vision system 60 may be notified in step 357 and system 30 proceeds to obtain the next image in step 305.
If in step 350 one or more opaque object was detected an attempt is made to remove the detected opaque object by activating in step 390 the mist for the wipers and in step 380 the wipers themselves. If in step 360 after a preset number of attempts to remove obstructions 50 is surpassed and obstructions 50 sustains, primary system processor 60 (
If in step 355 frost is detected an attempt is made to remove the frost by activating in step 356 the defroster. If smoke residue is detected the driver may be notified to remove the smoke residue.
The following gives the characteristics of various types of visual obstructions 50 and methods to detect them and remove them:
I
mag=√{square root over (Ix2+)}Iy2 (1)
Secondary camera 33 is not performing time critical processing and thus, secondary camera 33 can be optionally used for other tasks, to supplement primary camera 32. For example, secondary camera 33 can be used as an ambient light sensor or as a sensor for the gain control of primary camera 32.
In another embodiment of the present invention, system 30 also includes a light source, for example a LED, mounted, for example, inside secondary camera 33 mount. At dark nights, the light source flashes instantaneously, at a low frequency rate, such that the pulsing does not interfere with other operations of primary camera 32. When flashing, the light source illuminates windshield 12 and secondary camera 33, which is synchronized with the timing of the flashing, is imaging the lit windshield 12.
The invention being thus described in terms of embodiments and examples, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the following claims.
Number | Date | Country | |
---|---|---|---|
60738991 | Nov 2005 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14880566 | Oct 2015 | US |
Child | 16007448 | US | |
Parent | 14027488 | Sep 2013 | US |
Child | 14880566 | US | |
Parent | 11562998 | Nov 2006 | US |
Child | 14027488 | US |