The disclosure of the following priority application is herein incorporated by reference: Japanese patent application no. 2012-149862 filed Jul. 3, 2012.
1. Field of the Invention
The present invention relates to an in-vehicle apparatus.
2. Description of Related Art
A partition line recognizing device known in the related art, which photographs a white line on the road upon which a vehicle is traveling via a camera installed in the vehicle, determines that a partition line is recognized if a recognition rate of the photographed white line is greater than a preset threshold value and determines that the partition line is not recognized if their recognition rate is smaller than the threshold value. The device includes a stain detection unit that detects any stains adhering to the camera or the windshield of the vehicle so as to be able to adjust the threshold value when the stain detection unit detects stains on the camera or the windshield (see Japanese Laid Open Patent Publication no. 2003-44863).
In addition, there is an obstacle detecting device proposed for use in vehicular applications in the related art that excludes foreign matter adhering to the camera lens belonging to a camera installed in a vehicle and part of the subject vehicle photographed by the camera from the detection target range so as to improve the obstacle detection accuracy. It is further able to issue a warning to the driver of the vehicle based upon the ratio of foreign matter and the like excluded from the detection target range, to automatically halt the obstacle detecting operation and to report to the vehicle driver that the obstacle detection operation has been halted (see Japanese Laid Open Patent Publication no. 2012-038048).
There is an issue in the related art in that since images of matter adhering to the camera or the windshield are mixed among images of other objects, erroneous detection of adhering matter may occur. There is another issue that must be addressed in the related art in that while an immobile area in an image is extracted, the immobile area cannot be determined to correspond to the subject vehicle body or to foreign matter adhering to the camera lens, which makes it impossible to determine the shielded area to be set for the photographing device.
According to the 1st aspect of the present invention, an in-vehicle apparatus comprises: a camera with a shielded area formed within a photographing area thereof by a light shielding member, which outputs a photographic image of an area surrounding a vehicle photographed through a photographic lens; and an adhering matter detection unit that detects adhering matter settled on the photographic lens based upon images in the shielded area included in a plurality of photographic images output from the camera at different time points.
According to the 2nd aspect of the present invention, in the in-vehicle apparatus according to the 1st aspect, it is preferred that the adhering matter detection unit generates a difference image based upon the images in the shielded area included in the plurality of photographic images output from the camera at the different time points and detects an image taking on a specific shape contained in the different image, as the adhering matter.
According to the 3rd aspect of the present invention, in the in-vehicle apparatus according to the 2nd aspect, it is preferred that at the camera, the light shielding member is disposed at a position further toward a subject relative to the photographic lens.
According to the 4th aspect of the present invention, in the in-vehicle apparatus according to the 3rd aspect, it is preferred that at the camera, the light shielding member is disposed so that the camera is able to photograph a road surface outside the vehicle while light advancing from an origin other than the road surface toward the photographic lens is blocked.
According to the 5th aspect of the present invention, in the in-vehicle apparatus according to the 4th aspect, it is preferred that: the in-vehicle apparatus further comprises a warning output unit that outputs a warning, and a warning control unit that outputs a signal for the warning output unit so as to cause a warning to be output by the warning output unit when the vehicle is determined, based upon a white line on the road surface included in the photographic images, to be about to move out of a current lane; and the signal control unit restricts output of the signal from the warning control unit to the warning output unit when the adhering matter detection unit detects the adhering matter.
According to the 6th aspect of the present invention, in the in-vehicle apparatus according to any one of the 1st through 5th aspects, it is preferred that: the in-vehicle apparatus further comprises an adhering matter removing unit engaged in operation for removing adhering matter settled on the photographic lens, and a cleaning control unit that controls the operation of the adhering matter removing unit; and the signal control unit outputs a signal for the cleaning control unit so as to engage the adhering matter removing unit in operation when the adhering matter detection unit detects the adhering matter.
According to the 7th aspect of the present invention, in the in-vehicle apparatus according to any one of the 1st through 6th aspects, it is preferred that the in-vehicle apparatus further comprises a geometric computation unit that calculates the shielded area based upon a body model and a tolerance model stored in advance.
According to the 8th aspect of the present invention, in the in-vehicle apparatus according to any one of the 1st through 6th aspects, it is preferred that the in-vehicle apparatus further comprises a signal control unit that controls output signals based upon detection results provided by the adhering matter detection unit.
According to the present invention, matter adhering to a camera lens can be detected in an optimal manner.
The camera 1, installed so as to face the space to the rear of the vehicle, photographs (or captures) an image within a photographing area, which includes the surface of the road to the rear of the vehicle, after each time interval set to a specific time length. This camera 1 may be constituted with an image sensor such as a CCD image sensor or a CMOS image sensor. The photographic image obtained via the camera 1 is output from the camera 1 to the control unit 2.
The shielding plate 1a is mounted at the camera 1 so as to block part of light advancing toward the photographic lens in the camera 1.
The control unit 2, which includes a RAM 10, a ROM 11 and a CPU 12, stores photographic images originating from the camera 1 into the RAM 10, executes specific types of image processing by using the photographic images and then executes various types of control in correspondence to the processing results. Through the control executed by the control unit 2, various functions of the in-vehicle apparatus 100, such as an LDW (lane departure warning) function, a BSW (blind spot warning) function, an MOD (moving object detection) function and an IMD (image diagnosis) function, are realized. The LDW is a function that enables the in-vehicle apparatus 100 to output a warning whenever the subject vehicle is likely to move out of the lane in which it is currently traveling by detecting a white line on the road surface (e.g., a lane boundary, a road shoulder line or a centerline) in the photographic images. The BSW is a function that enables the in-vehicle apparatus 100 to issue a warning for the driver indicating the presence of a vehicle that may collide with the subject vehicle as the subject vehicle changes lanes or the like by detecting other vehicles traveling on the road in the photographic images. The MOD is a function that enables the in-vehicle apparatus 100 to inform the driver of the presence of a moving object in the vicinity of the subject vehicle when it is driven in reverse gear or the like by detecting moving objects in the photographic images. The IMD is a function that enables the in-vehicle apparatus 100 to execute diagnosis to determine whether or not the camera 1 is photographing images correctly.
The warning output unit 3 outputs a warning for the vehicle driver via a warning lamp, a warning buzzer or the like. The operation of this warning output unit 3 is controlled by the control unit 2. When the in-vehicle apparatus determines that the subject vehicle is about to move out of the current lane through the LDW function described earlier or when a vehicle that may collide with the subject vehicle is detected through the BSW function described earlier, for instance, a warning is output by the warning output unit 3 under control executed by the control unit 2.
The operating state reporting unit 4 reports the operating state of the in-vehicle apparatus 100 to the vehicle driver. For instance, if predetermined operating conditions are not satisfied and the in-vehicle apparatus 100 is in a non-operating state, a lamp constituting the operating state reporting unit 4, installed near the driver's seat in the vehicle, is lit under control executed by the control unit 2. As a result, the driver is informed that the in-vehicle apparatus 100 is currently in the non-operating state.
The cleaning control unit 5, engaged in operation under control executed by the control unit 2, controls operations of the air pump 6 and the washer pump 7. For instance, when the in-vehicle apparatus determines through the IMD function described earlier that the camera 1 is not photographing images correctly due to matter such as condensation, mud or a snow-melting agent, adhering to the camera 1, the control unit 2 outputs a control signal for the cleaning control unit 5, requesting that the photographic lens be cleaned. In response to this signal, the cleaning control unit 5 controls the operations of the air pump 6 and the washer pump 7.
The air pump 6, engaged in operation under control executed by the cleaning control unit 5, outputs compressed air to the air nozzle 8. As this compressed air is forced through the air nozzle 8 toward the camera 1, matter adhering to the photographic lens of the camera 1, such as condensation, is blown off the photographic lens.
The washer pump 7, engaged in operation under control executed by the cleaning control unit 5, outputs a washing solution supplied from a washer tank (not shown) to the washer nozzle 9. As this washing solution is sprayed via the washer nozzle 9 toward the camera 1, matter such as mud adhering to the photographic lens of the camera 1, which cannot be removed with compressed air from the air nozzle 8, is washed off the photographic lens.
The adhering matter detection unit 32 detects matter adhering to the photographic lens based upon shielded images. The adhering matter detection unit 32, which includes a change detection unit 34 and a shape decision-making unit 35, detects matter adhering to the photographic lens via these units.
The change detection unit 34 detects a change manifesting in shielded images based upon a plurality of photographic images output from the camera 1 at different time points. The change detection unit 34 generates an image, to be referred to as a difference image, based upon the plurality of photographic images as detection results.
In reference to
The photographic images A0 through A5 are each stored into the RAM 10 as it is output from the camera 1 and thus, the photographic images are accumulated in the RAM 10. It is assumed that the accumulation of the photographic images into the RAM 10 starts at the time point t0. Namely, the photographic image A0 is the oldest photographic image among the photographic images stored in the RAM 10 and the photographic image A5 is the newest photographic image, most recently stored into the RAM 10 in
When a new photographic image Ai is output from the camera 1 (e.g., at that time point t5), a reference image Bi is generated as expressed in [1] or [2] below by using an immediately preceding photographic image Ai-1 having been most recently starred into the RAM 10 (e.g., the photographic image A4) and a current reference image Bi-1 being used for reference up to the point at which the photographic image Ai is output.
B
i
=A
i-1(if i=1) [1]
B
i
=k×A
i-1+(1−k)×Bi-1(if i≧2) [2]
k in the expression above is a coefficient taking a value in the range of 0<k≦1. For instance, k=0.1.
The change detection unit 34 generates a difference image representing the difference between the newest photographic image (e.g., the photographic image A5 output from the camera 1) and a reference image corresponding to the time point at which the newest photographic image is output (e.g., the reference image B5).
It is to be noted that the change detection unit 34 may further execute subroutines, which may be referred to as a gain decision-making unit, a cloudiness decision-making unit, an ambient light source decision-making unit, a weather decision-making unit and a day/night decision-making unit, in addition to the difference image generation. The change detection unit 34 should be able to control the difference image generation and the shape decision-making unit 35 through these subroutines.
The gain decision-making unit monitors the sensitivity at the camera 1 and makes a decision as to whether or not the sensitivity has been altered (whether or not the gain has been adjusted). The sensitivity at the camera 1 is altered as the brightness of the photographic images changes drastically, e.g., as the subject vehicle enters a tunnel. If the sensitivity at the camera 1 is altered, the gain decision-making unit attributes changes in the photographic images to the alteration in the sensitivity at the camera 1 and accordingly, does not execute adhering matter detection based upon the difference image so as to prevent erroneous detection of adhering matter.
The cloudiness decision-making unit makes a decision as to whether or not the photographic lens has been rendered into a cloudy state (white turbidness) by adhering matter such as water condensation. The cloudiness decision-making unit may execute edge detection processing of the known art on photographic images output from the camera 1 and decide that the photographic lens is in a cloudy state if the edge intensity of edges detected through the edge detection processing is low. The change detection unit 34 adjusts a threshold value set in conjunction with the shape decision-making unit 35 if the cloudiness decision-making unit decides that the photographic lens is in a cloudy state.
The ambient light source decision-making unit makes a decision as to whether or not the camera 1 is illuminated by an ambient light source such as the headlights of a vehicle traveling behind the subject vehicle or a street lamp. If it is decided that the camera 1 is illuminated by an ambient light source, the change detection unit 34 executes control so as to reset the storage of photographic images, to be used for purposes of reference image generation, into the RAM 10, for instance. The decision as to whether or not the camera 1 is illuminated by an ambient light source may be made based upon a signal output from a light detection sensor installed, for instance, in the vicinity of the camera 1.
The weather decision-making unit makes a decision as to whether the weather around the subject vehicle is fair. The weather decision-making unit may make the decision as to whether or not the weather is fair by, for instance, ascertaining the operating state of the windshield wipers in the vehicle through CAN communication. If the weather decision-making unit decides that the weather around the subject vehicle is fair, it adjusts a threshold value set for the shape decision-making unit 35. It is to be noted that the decision as to whether or not the weather is fair may be made by ascertaining whether or not the sun is recognized in the photographic images.
The day/night decision-making unit makes a decision as to whether it is daytime or nighttime. The day/night decision-making unit may decide that it is nighttime if the overall brightness of the photographic images output from the camera 1 is equal to or less than a predetermined value, i.e., if the photographic images output from the camera 1 are dark. Based upon the decision-making results, the day/night decision-making unit adjusts a threshold value set for the shape decision-making unit 35.
The shape decision-making unit 35 makes a decision as to whether or not an aggregate of pixels expressing a single color, included in the difference image having been generated by the change detection unit 34, represents adhering matter by ascertaining whether or not the pixel aggregate manifests specific shape-related characteristics. A pixel aggregate taking on a single color may be detected from the difference image through, for instance, edge detection processing, labeling processing or the like of the known art. The shape decision-making unit 35 makes individual decisions in regard to the aspect ratio, the fill ratio (to be described in detail later), the area and the recession rate (to be described in detail later) of the pixel aggregate and concludes that the pixel aggregate expresses an image of adhering matter if the decisions are all affirmative.
—Shape Decision-Making Based Upon the Aspect Ratio—
In reference to
—Shape Decision-Making Based Upon the Fill Ratio—
In reference to
—Shape Decision-Making Based Upon the Area—
The shape decision-making executed based upon the area will be described next. The shape decision-making unit 35 makes an affirmative decision in the area-based decision-making if the area S of a pixel aggregate included in the difference image is equal to or greater than a predetermined threshold value Th5 and also equal to or less than the predetermined threshold value Th6. If, on the other hand, the area S is less than the predetermined threshold value Th5 or greater than the predetermined threshold value Th6, the shape decision-making unit 35 makes a negative decision in the area-based shape decision-making The threshold values Th5 and Th6 are adjusted via the change detection unit 34 and the like.
—Shape Decision-Making Executed Based Upon the Recession Rate—
In reference to
The shape decision-making unit 35 calculates the outline tangent vector direction in correspondence to each pixel making up the outline of each pixel aggregate.
The warning control unit 36 in
The signal control unit 33 outputs a control signal for the cleaning control unit 5 based upon the positions and the quantities of the pixel aggregates having been concluded to be adhering matter by the shape decision-making unit 35. For instance, if the quantity of pixel aggregates, having been concluded to be adhering matter by the shape decision-making unit 35, is equal to or greater than a predetermined value (e.g., one), the signal control unit 33 outputs a control signal for the cleaning control unit 5, requesting that the adhering matter on the photographic lens be removed by engaging the air pump 6 or the washer pump 7 in operation.
In addition, provided, for instance, that there is a pixel aggregate, having been concluded to be adhering matter, present over the left half of the shielded image area, the signal control unit 33 controls the warning control unit 36 so that it stops outputting the control signal to the warning output unit 3 if the subject vehicle is determined to be likely to move out of the current lane toward the right side (the left side in the photographic images). In contrast, provided that there is a pixel aggregate, having been concluded to be adhering matter, present over the right half of the shielded image area, the signal control unit 33 controls the warning control unit 36 so that it stops outputting the control signal to the warning output unit 3 if the subject vehicle is determined to be likely to move out of the current lane toward the left side (the right side in the photographic images). Through these measures, the control signal output from the warning control unit 36 is restricted.
In step S310, the CPU 12 alters the threshold values set for the shape decision-making unit based upon the traveling conditions at the subject vehicle. For instance, upon obtaining, through CAN communication, information indicating that the subject vehicle is currently traveling off road from a navigation apparatus or the like (not shown), the control unit 2 adjusts the various threshold values Th1 through Th8 at the shape decision-making unit 35 to off-road traveling threshold values.
In step S320, the CPU 12 clears the photographic images having been stored in the RAM 10 for a reset. The CPU 12 also resets the reference image, the difference image and the like to the initial state.
In step S330, the CPU 12 obtains, through CAN communication, information indicating the subject vehicle speed and makes a decision as to whether or not the subject vehicle speed is equal to or higher than a predetermined speed (e.g., 30 km/h). Upon making an affirmative decision in step S330, the CPU 12 proceeds to execute the processing in step S340, whereas upon making a negative decision in step S330, it proceeds to execute the processing in step S320.
In step S340, the CPU 12 executes ambient light source decision-making by controlling the change detection unit 34. More specifically, the CPU 12 controls the ambient light source decision-making unit in the change detection unit 34 and makes an affirmative decision in step S340 if it is decided that the camera 1 is being illuminated with an ambient light source such as the headlights of a vehicle traveling behind the subject vehicle or a street lamp. Upon making an affirmative decision in step S340, the CPU 12 proceeds to execute the processing in step S320. In addition, the camera 1 may have a function of automatically adjusting the sensitivity or the like in correspondence to the ambient brightness. In such a case, the CPU 12 will also make an affirmative decision in step S340 after the sensitivity is adjusted in the camera 1, and will proceed to execute the processing in step S320. If, on the other hand, an affirmative decision is not made in step S340, the CPU 12 proceeds to execute the processing in step S350.
In step S350, the CPU 12 takes a photographic image having been output from the camera 1 into the RAM 10 for storage. In step S360, the CPU 12 controls the change detection unit 34 so as to have it generate a reference image through calculation.
In step S370, the CPU 12 makes a decision as to whether or not the number of photographic images having accumulated into the RAM 10 is now equal to or greater than a predetermined value (e.g., four). Upon making an affirmative decision in step S370, the CPU 12 proceeds to execute the processing in step S400 in
In step S400 in
In step S410, the CPU 12 updates the difference image based upon the photographic image having been stored in step S350 and the reference image having been updated in step S360 by controlling the change detection unit 34.
In step S420, the CPU 12 executes shape decision-making for pixel aggregates present within the shielded image area in the difference image by controlling the shape decision-making unit 35. The CPU 12 concludes that any pixel aggregate, with its aspect ratio, fill ratio, area and recession rate each following within the range defined by the corresponding specific threshold values, to be adhering matter.
In step S430, the CPU 12 makes a decision as to whether or not a predetermined minimum number of pixel aggregates have been detected as adhering matter through step S420. Upon making an affirmative decision in step S430, the CPU 12 proceeds to execute the processing in step S440, whereas upon making a negative decision in step S430, it proceeds to execute the processing in step S330.
In step S440, the CPU 12 outputs a signal for the cleaning control unit 5 requesting that the adhering matter settled on the photographic lens at the camera 1 be removed. In step S450, the CPU 12 restricts the signal output from the warning control unit 36 to the warning output unit 3 based upon the positions at which the adhering matter has been detected in step S420. Once the processing in step S450 is completed, the CPU 12 proceeds to execute the processing in step S330 in
The following advantages are achieved through the embodiment described above. The in-vehicle apparatus 100 includes the camera 1, which outputs a photographic image of an area surrounding the vehicle, captured via the photographic lens, and a shielded area is formed within the photographing area of the camera 1 by the shielding plate 1a, as shown in
The adhering matter detection unit 32 includes a change detection unit 34, which generates a difference image based upon a plurality of shielded images and a shape decision-making unit 35, which makes a decision as to whether or not each pixel aggregate included in the difference image should be regarded as adhering matter based upon the shape of the pixel aggregate. Such use of the difference image over the shielded area for purposes of adhering matter detection ensures that adhering matter can be accurately detected regardless of how the scene outside the vehicle may change. In particular, the use of the difference image in the shielded area is particularly effective when detecting transparent adhering matter, since it will never be lost within an image of the scene (background) outside the vehicle.
As shown in
The camera 1 photographs the surface of the road to the rear of the vehicle through the photographic lens. The shielding plate 1a is disposed so as to block light fluxes advancing from origins other than the road surface toward the photographic lens. Through these measures, the LDW function and the adhering matter detection are enabled at the same time.
If adhering matter is detected by the adhering matter detection unit 32 (step S430), the signal control unit 33 outputs a control signal for the cleaning control unit 5 requesting that the photographic lens be cleaned (step S440) and also restricts the signal output from the warning control unit 36 to the warning output unit 3 (step S450). Through these measures, the reliability of a warning issued through the LDW function is assured.
The concept of “mounting tolerance” will be first explained. A screw with a diameter R [mm], for instance, cannot be mounted at a screw hole R [mm] in diameter, since the screw cannot be turned in such a screw hole. In addition, a certain extent of variance must be allowed in the screw machining accuracy. With these factors taken into consideration, the screw hole will need to be formed so as to achieve a diameter of (R+α) [mm]. Furthermore, the screw hole machining accuracy, too, is bound to manifest some variance, and thus, the diameter of the finished screw hole will fall within the range of (R+α−β) [mm] through (R+α+β) [mm]. The screw/screw hole assembly, achieved by inserting the screw with the R [mm] diameter into this screw hole, is then bound to manifest a specific range of deviation. This range of deviation is commonly referred to as mounting tolerance, which can be calculated based upon the design values. In addition, when a plurality of components are assembled together, the tolerance will be calculated as a cumulative value and is thus bound to take a large value. Such cumulative tolerance can also be calculated based upon the design values.
Assuming that the shielding plate 1a is mounted at the camera 1, as shown in
Based upon the tolerance model 38, a shielding plate position 1b, at which the shielding plate boundary appears to have risen to a maximum height on an image captured by the camera, and a shielding plate position 1c, at which the shielding plate boundary appears to have descended to a minimum height on the image captured by the camera, can be ascertained. These shielding plate boundaries appearing on the image will be referred to as an upper-limit shielding plate boundary 2b and a lower limit shielding plate boundary 2c. The shielding plate assumes a shielding plate boundary 2a under the standard mounting conditions. Since the shielding plate and the camera are set apart from each other over different distances, as indicated in the figure, the shape of the boundary line, too, changes from one shielding plate position to another.
The geometric computation unit 102 further determines a body area boundary of the subject vehicle, defined by the bumper, the finisher and the like, by using information provided via a calibration information acquisition unit 101 and the body model 37. It is to be noted that the calibration information used by the geometric computation unit 102 indicates the relation of a camera coordinate system to a body coordinate system, calculated by determining the camera coordinate system relative to a real-world coordinate system based upon the relation of the body coordinate system to the real-world coordinate system that is already known.
A processing area output unit 103 calculates an image area to be used for purposes of image recognition based upon the exact shielding plate boundary and the body area boundary having been determined by the geometric computation unit 102 and outputs the image area thus calculated. In the adhering matter detection logic adopted in this embodiment, transparent and semitransparent adhering matter is detected by designating the shielded area as the processing target so as to prevent erroneous detection attributable to ambient light and background objects. It is to be noted that when a given pixel is present astride the shielding plate area and the background area (containing the road surface, the sky, another vehicle and the like), the adverse effect of ambient light and background objects on the detection processing can be minimized by taking the particular pixel out of the processing target area. Accordingly, a raster scan is executed when calculating the image area to be used for image recognition and the processing area is created by taking any pixel present on the shielding plate boundary in the captured image out of the processing target area and including each pixel present strictly in the shielding plate area inside the shielding plate boundary in the processing target area. The processing area output unit 103 may output the image area thus calculated in the form of, for instance, a mask image.
In addition, a normalizing parameter output unit 104 outputs areal size of the processing area, output by the processing area output unit 103, to the adhering matter detection logic. The areal size of the processing area output by the processing area output unit 103 changes from one body to another, and accordingly, any variance in the sensitivity with which adhering matter is detected can be minimized by informing the adhering matter detection logic of the areal size of the processing area.
Next, in reference to
In step S501, the integrity of the shielding plate area, having been calculated through the previous processing session, is verified to ensure that the shielding plate area was not formed incorrectly. This verification is executed by first reading the shielding plate area recorded in the flash-ROM (not shown) and then determining whether or not the shielded area boundary is contained within the range defined by the maximum tolerance and the minimum tolerance or whether or not the position of the shielding plate shifted due to an impact or the like to which the camera may having been subjected. Any shift in the shielding plate position may be detected by scanning the image for edge positions in the vicinity of the boundary of the shielding plate area and ascertaining the rate at which the edge positions match the shielding plate boundary. If the integrity of the shielding plate area, having been formed through the previous processing session, is deemed acceptable (“yes” in step S501), the shielding plate area that has been read can be used for the subsequent processing and accordingly, the shielding plate area boundary calculation ends.
In the shielding plate area boundary calculation processing, an image is read from the camera in step S502 first.
Next, in step S503, a decision is made as to whether or not a shielding plate area can be formed under the current conditions. An affirmative decision should be made in this step if at least one of the following conditions is satisfied; the day/night decision-making results indicate daytime, the extent of lens cloudiness (uncleanness) is represented by a value equal to or less than a predetermined threshold value, the subject vehicle is currently traveling at a speed equal to or higher than a specific speed, no direct sunlight or headlight from a vehicle traveling behind the subject vehicle is entering the lens, and it is not raining.
Then, in step S504, edges in the image are extracted and the edge images are accumulated. The edge images are accumulated by adding the counter value for the corresponding storage array element to the coordinates of each pixel manifesting an edge intensity within a predetermined range. A shielding plate boundary can then be calculated by fitting a polynomial curve representing the shielding plate boundary calculated based upon the body model 37 at array elements indicating counter values exceeding a specific value. A special explanation of such curve approximation will not be provided, since it can be executed by adopting a technology of the known art.
In addition, in step S505, a decision is made as to whether or not the system is shutting down. This decision-making may be triggered as the engine is turned off or the power to the ECU is cut off. As a result, the interim report of the shielding plate position calculation, having been underway at the time of system shutdown, can be recorded in step S507 and the length of time required for the shielding plate position calculation executed at a subsequent startup can be reduced. As an alternative, the system may be determined to be shutting down when a predetermined number of sets of data are collected in the storage array created in step S504. In such a case, the shielding plate mask creation can be completed as soon as enough data are accumulated, which will hasten the timing with which the adhering matter detection is executed.
In step S506, a decision is made as to whether or not the subject vehicle is traveling in a straight line along one direction by monitoring the vehicle speed and the steering angle. If it is decided that the subject vehicle is traveling in a straight line, the execution of the processing in step S504 is temporarily suspended and until the traveling direction is changed, only the processing in steps S505 and step S506 is executed. In other words, when the subject vehicle is traveling in a straight line, shadows, sunlight and the like may make it difficult to extract the shielding plate area accurately. Accordingly, images and characteristic quantities are accumulated gradually while the subject vehicle travels along various directions so as to ensure that the shielding plate area is created accurately and reliably.
In step S507, the details of the edge storage array and the shielding plate boundary information obtained through the curve approximation are recorded into a recording device such as the flash-ROM (not shown).
By adopting the structure characterizing the second embodiment as described above, an advantage is achieved in that the optimal shielded area can be calculated for each vehicle by taking into consideration the tolerance. Furthermore, with the shielding plate set in the optimal area, better detection capability for adhering matter detection is assured. Moreover, even if the shielding plate becomes shifted due to an impact or the like, it can be repositioned to the optimal shielding plate area by verifying whether or not the contents of the image output from the camera are consistent with the recorded information.
The embodiments described above allow for the following variations.
(Variation 1) The shielding plate 1a may assume a shape other than that shown in
(Variation 2) As long as the shielding plate 1a is disposed further toward the subject relative to the photographic lens of the camera 1 so as to form a shielded area within the angle of view of the photographic lens in the camera 1, it may be installed by adopting a method other than that illustrated in
(Variation 3) While the camera 1 in the embodiments described above sustains a fixed photographic angle, the photographic angle at the camera 1 may be adjustable. It is desirable that the shielded area-setting unit 31 in a camera 1 with an adjustable photographic angle be able to adjust the shielded image area by altering the shape of the shielding plate 1a.
(Variation 4) While the change detection unit 34 in the embodiments described above calculates the reference image as expressed in [1] and [2], it may calculate a reference image through an alternative method. For instance, a reference image Bi may be generated by calculating average values of the values indicated in the images A0 through Ai-1. In addition, the initial values for the reference image Bi may be adjusted to the products calculated by multiplying the values in the image A0 by the coefficient k.
(Variation 5) The shape decision-making unit 35 makes a decision as to whether or not a given pixel aggregate is adhering matter in reference to four different criteria, i.e., the aspect ratio, the fill ratio, the area and the recession rate of the pixel aggregate. However, these four criteria simply represent examples and the shape decision-making unit 35 does not need to make the decision in reference to all four criteria. Furthermore, it may make the decision in reference to other criteria such as the length H measured along the vertical direction, the length W measured along the horizontal direction and the edge intensity.
The embodiments and variations thereof described above simply represent examples and as long as features characterizing the invention remain intact, the present invention is in no way limited to the particulars of these embodiments and variations. In addition, as long as the features characterizing the present invention are not compromised, the embodiments and variations thereof described above may be adopted in any combination.
Number | Date | Country | Kind |
---|---|---|---|
2012-149862 | Jul 2012 | JP | national |