Off-lane alarm apparatus

Abstract: An off-lane alarm apparatus is disclosed in which an image signal provided from a line camera mounted on a car roof is quantized into a corresponding binary image by an image processing device to detect a lane on a road surface whereby an alarm is generated when an off-lane state of the car from the lane is detected. After mounting a line camera on a car, markers preset at predetermined positions outside of the car are shot and preliminary stored as binary image signals and the positional information is used as car side positional information for alarm determinations.

Description: Background of the Invention Field of the Invention This invention relates to an off-lane alarm apparatus, and in particular to an off-lane alarm apparatus wherein by monitoring a road surface in front of or behind a car by means of a line camera which is also called an image sensor, an off-lane i.e. deviated state of the car from its traffic lane (white or yellow lane) is sensed, and an alarm is generated. The Prior Art In the prior art off-lane alarm apparatus known from the past for example, the Japanese Laid-Open Public. No. 6-14230, as shown in Figs. 10A and 10B, a line camera 1 is mounted at a predetermined front center of a car 20 to shoot a lane WL as an image on a road surface 30. The image is quantized into a corresponding binary image indicating position data of the lane WL. From the position data of the car 20 and the lane WL, i.e. a distance therebetween, it is determined (judged or decided) that whether or not the car 20 lies in an off-lane state from the lane WL. When the determination indicates an off-lane state, an alarm is given to a driver. For such an alarm determination or judgement, this off-lane alarm apparatus geometrically presets a positional relationship between the line camera, the car, and the road surface to settle a positional relationship between the car and the lane, at the stage of design. Therefore, if the mounted position of the line camera misses the geometric relationship preset by the design, the geometric positional relationship between the line camara, the car, and the road surface will be broken, leading to an erroneous off-lane alarm determination. Namely, if it is supposed that for the geometric positional relationship the optical axis of the line camera of the off-lane alarm apparatus coincides with the center line of the car, when the mounted position of the line camara is out of place, an area on the road surface detected by the line camera becomes asymmetric. Therefore, the detection of such an off-lane state on the left and the right car sides as a distance between the lane and the side end of the car becomes zero. This provides an earlier or delayed detection. In other words, although being not symmetric, the positions of the both side ends of the car are erroneously assumed in relation to the center of the car. Therefore, it is necessary to carefully conduct a mounting work for the line camera. In the prior art, whether or not the mounted state of the line camera is out of place after mounted was checked by repoducing the off-lane state in actual running or by connecting a particular monitoring device to the line camera. However, such a checking or pre-adjusting method has a large disadvantage in that pre-adjusting the line camera requires a considerable time and a special preparation in the mounting process. Accordingly, the inventor of the present invention has proposed, in the Japanese Laid-Open Public. No. 6-253204 a method for adjusting a mounting angle of a line camera. The line camara is positioned at a predetermined front center of a car, horizontal position data of a binary image of a marker are initially set as reference data when the marker is placed at a predetermined front point on the center line of the car. At the time of adjustments, the horizontal position data of the binary image of the marker as shot and the reference data are compared. According to the difference as a result of the comparison, an output condition of an adjusting mode lamp is changed so that the binary image and the reference data at the time of adjustment may coincide with each other. In this case, the detected area of the line camera is made symmetric. However, in the Japanese Laid-Open Public, No. 6-253204a method for adjusting a mounting angle of the line camera has been proposed so that a geometoric relation prescribed at the stage of design may be satisfied. It has a large disadvantage due to process time restriction in view of a car mounting the off-lane alarm apparatus being inspected and adjusted on the manufacturing lines. Summary of the Invention It is accordingly an object of the present invention to provide an off-lane alarm apparatus wherein an image signal provided from a line camera mounted on a car roof is quantized into a corresponding binary image by an image processing device to detect a lane on a road surface whereby an alarm is generated when an off-lane state of the car from the lane is detected and wherein a simple adjustment can be realized in a short time without using a special device even under such a circumstance as on car manufacturing lines. For the achievement of the above noted object, in the present invention, a line camera is mounted at a front end portion of a car without particular adjustments; no adjustments for the mounting angle of the line camera are required. While the line camera has a certain angular error with respect to the mounting angle as supposed at the stage of design, this angular error is not adjusted by the line camera as in the prior art but is automatically corrected in an off-lane alarm apparatus according to the present invention for an optimum alarm operation. Namely, the line camera is positioned at a predetermined front center of the car to shoot markers. The markers are positioned at a predetermined outside point corresponding to a permissible error in the pan direction of the line camera on both side ends of the car. An image processing device has a memory. This memory has been preliminarily stored with horizontal position data of binary images of the markers as car side position data. The image processing device then generates an alarm on the besis of a positional relationship between the horizontal position data of the detected car and the positional data of both side ends of the car, thereby correcting and absorbing the mounting error of the line camera. Investigations of a mounting angular error of the line camera Fig. 1 shows a state where a line camera is mounted at a front portion of a car. The line camera 1 is mounted downwardly at a front upper end portion of a cab of the car 20, and the mounting height is H, and an angle of the optical (light) axis of the camera 1 formed with the vertical line is . Also, the optical axial length of the line camera 1 which is a distance from the camera to a road surface 30 on the center line of the camera view is L. A mounting error of the line camera 1 is considered to have two elements in the tilt direction () and the pan direction (α) of the camera 1 as shown in Fig. 2. 1 ○ Effects due to a mounting angular error in the tilt direction Now considering the case where H = 2,600mm and  = 13° as specific values in the mounted state of the line camera as shown in Fig. 1, it can be obtained that L = H/cos = 2,668mm. In this case, the angular error in the tilt direction is caused by an error of the angle  which changes the optical axial length L As the optical axial length L changes the width of the horizontal view of the line camera 1 also changes at the same rate as the optical axial length L in accordance with the similarity principle since the horizontal view angle α of the line camera 1 is constant. Namely, as shown in Fig.3, the value of the horizontal distance from the optical axis center of the line camera 1 multiplied with the changing rate of the optical axial length L is a horizontal distance after the change. Assuming the mechanical positioning precision of e.g. a mounting bracket of the line camera 1 is  ± 3° , a car side setting value for an off-lane alarm determination (judgement) set at a position of about 1400mm on the left and the right sides from the optical axial center will change to 1400 × (L-ΔL)/L . The change of the car side setting value according to the change of the angle  is shown in Fig.4. 2 ○ Effects due to a mounting error in the pan direction The angular error in the pan direction means an error in the horizontal view direction of the optical axis of the line camera 1, and the optical axial length L also changes in a strict sense. If the mechanical positioning precision in the pan direction of a mounting bracket or the like of the line camera 1 is supposed to be ±3 ° , the change ΔL of the optical axial length L can be approximated to zero. The camera view can be briefly considered as moving in parell to the horizontal direction. Namely, as apparent from Fig. 5, the error in the pan direction of the line camera 1 is caused by the parallel movement towards the horizontal direction, and therefore appears as a car side setting value itself for the off-lane determination. Accordingly, the optical axial error in the pan direction can be determined by Ltan (ε) (ε = error angle) which can be approximated as an error of the car side setting value. The change of the car side setting value according to the pan directional error is shown in Fig. 6. 3 ○ Conclusion derived from the above investigations If it is assumed that the mounting precision of the line camera 1 has the precision of ±3° in the tilt direction, the effect due to the precision will appear as a change of the car side setting value for the off-lane determination of ± about 20mm in the tilt direction. Therefore, the effect on the off-lane alarm function can be neglected. However, in the case of the mounting precision in the pan direction being ±3° , it will appear as a change of the car side setting value for the off-lane determinatin of ± about 140mm. Therefore, there is a large effect on the car side setting value for the off-lane determination. Also, there occurs a variety of timings for generating an alarm for various cars. Some corrections become required after having mounted the line camera 1. Solution As described above, the error in mounting the line camera 1 should only consider the effect on the pan direction because of its largeness. For correcting and absorbing such an error, markers M1 and M2 are provided at a predetermined outside point (offset range) corresponding to a permissible error in the pan direction on the left and the right side ends of the car as shown in Fig. 7. Then, the line camera 1 shoots the markers M1 and M2 in the form of image on the left and the right sides of the car 20. The horizontal position data of the binary images of the markers M1 and M2 as shot are previously stored in a memory by an image processing device as left and right side position data of the car 20. Therefore, as shown in Fig.7, the left and the right sides of the car 20 can be substantially defined by the markers M1 and M2, which is equivalent to the expansion of the car width. A similar determination as the prior art on the basis of a relationship between the car side position data and the horizontal position data of the lane as actually sensed will be allowed by the image processing device to generate an accurate alarm in the absorbed form of the mounting error of the line camera 1. It is to be noted that the above memory may comprise an EEPROM capable of electrical erasing and writing so that upon the power off the stored data may not be volatilized. Also, a pre-adjusting operation that the horizontal position data of the binary image of the marker as shot are prel preliminarily stored in the memory may be performed on the basis of an ON/OFF state of a setting switch. In this case, the setting switch may comprise two respectively provided for the right and the left markers, with each independently performing the adjusting operation for the markers. For example, one may be adjusted at the time of shipments while the other may be made deeming the lanes as the markers during a normal running. Brief Description of the Drawings Fig. 1 is a schematic side view showing a state where a line camera is mounted in the front end of a car; Fig.2 is an oblique diagram showing angles in the tilt and pan directions of the line camera; Fig.3 is a plan view showing a change of horizontal view width of the line camera due to a change of the angle () in the tilt direction; Fig.4 is a characteristic graph showing changes of car side setting values (deviation of alarm generating position due to errors in the tilt direction) with respect to a change of the angle () in the tilt direction; Fig.5 is a plan view schematically showing a change of the view of the line camera due to a change of the mounted position in the pan direction; Fig.6 is a characteristic graph showing changes of car side setting values (deviation of alarm generating positions due to errors in the pan direction); Fig.7 is a plan view showing one example of setting markers for an off-lane alarm apparatus according to the present invention; Fig.8 is a block diagram showing one enbordiment of an off-lane alarm apparatus according to the present invention; Fig.9 is a flow chart of a control program stored in and executed by an image processing device (CPU) shown in Fig. 8; and, Figs.10A and 10B are schematic diagrams respectively showing a positional relationship between a car and a line camera. Throughout the figures, the same reference numerals indicate identical or corresponding portions. Description of the Preferred Embodiment Fig.8 shows one embodiment of an off-lane alarm apparatus according to the present invention in the form of a block diagram. This off-lane alarm apparatus comprises a line camera 1 for detecting a lane, a setting switch 2, an image processing device 3 including the line camera 1 and a CPU for processing the output signals of the setting switch 2, an alarm device 4 such as a buzzer for giving a driver an alarm at the time of off-lane state, a write control circuit 5 activated in response to the signal from the setting switch 2, a memory 6 composed of an EEPROM and the like for providing as an output data stored therein when the setting switch 2 is OFF and for storing data from the image processing device 3 when the setting switch 2 is ON, and an alarm lamp 7 turned on when no data is stored in the momory 6. It is to be noted that the setting switch 2 makes the memory 6 store the data which is obtained by sensing markers as will be described later by the line camera 1, and the write control circuit 5 applies a predetermined voltage to the memory 6 composed of the EEPROM to be stored with data. The operation of this off-lane alarm apparatus will be hereinafter described along a flowchart shown in Fig.9. (1) Case of the memory being written with setting values for an off-lane alarm determination for pre-adjustments at the shipment of the appatarus (setting switch 2 = ON): As having discribed with reference to Fig.7, the markers M1 and M2 respectively corresponding to a lane (white lane) are provided at predetermined positions within the view of the line camera 1 at the front end of the car 20. The markers M1 and M2 are positioned at predetermined outside points (offset range) of the car corresponding to a permissible error (±3° ) in the pan direction of the line camera 1. This is substantially equivalent to the expansion of the width of the car 20. It is to be noted that at the time of pre-adjustments for the shipments on car manufacuring lines, the positions of the markers M1 and M2 should be decided with jigs satifying a predetermined offset range. The length of the markers M1 and M2 should be ensured by a necessary minimum in consideration of the precision of the mounting angle in the tilt direction so that the markers may surely lie within the view of the line camera. Then, both sides of the car 20 are to be positioned as shown in the figure. The setting switch 2 is set ON for the writing of the memory. Under these conditions, the flow chart in Fig.9 being executed, the image processing device (CPU) 3 conducts an initialization at step S1 for the activation of the apparatus. Then at step S2, the left and the right markers M1 and M2 are shot by the line camera 1 the output of which is read into the image processing device 3. At step S3, the output signal (brightness signal) of the line carema 1 read at step S2 is quantized or digitized into a binary image signal whereby only the images of the markers M1 and M2 can be extracted. At step S4, horizontal position data of the binary image of the markers M1 and M2 are determined with reference to the coordinate of the camera 1 from the result of step S3. After the state of setting switch 2 being checked at step S5, the program will proceed to step S6 since the setting switch 2 is preliminarily set ON as described above. At step S6, it is checked whether or not the coordinate data obtained at step S4 may be written in the memory 6. Specifically, it is checked whether the data of the markers M1 and M2 obtained at step S4 indicate abnormal positions on the coordinate or the lane width coresponding to the markers. This is because erroneous data caused by noise portion due to e.g. dirts of a brightness confused with the markers in the image provided by the line camera must not be written in the memory 6. As a result of the check at step S6, if it has been found that the data are suitable, the coordinate data at step S4 are written in the memory 6 at step S7. If the data have been already written, the old data is once erased and then written for the renewal. Then, the program proceeds to step S12 at which the alarm device 4 is not energized and the alarm output is left OFF, and then returns to step S2. Through a series of the above discribed steps, the image shot at the marker position can be stored in the memory 6 as data determining whether or not an off-lane alarm should be generated. Although it has been discribed above that the setting switch 2 is used as a single and the markers are simultaneously positioned to write the left and the right side data of a car in the memory at the same time, it is also possible to use the arrangement in which the left and the right side data are independently written in the memory, for example by providing the setting switch separately for the left and the right markers. This arrangement enables arbitrary setting to be made in accordance with preferences of a driver by using actual white lanes etc painted on a road while a car is running on the road exept the case of pre-adjustments for the shipments. A driver only has to drive a car within a lane so that white lanes are positioned at a desired place and switch ON the corresponding switch 2. (2) Case of the apparatus being operated as a normal off-lane alarm apparatus (setting switch 2 = OFF): Firstly, the processings from steps S1 to S4 are carried out in the same manner as Case (1). At step S5, the state of the setting switch 2 is checked. Since the setting switch 2 is left OFF if it should operated for a normal off-lane alarm apparatus, the program proceeds to step S8. At step S8, the presence or absence of data stored in the memory is checked. If no data is stored in the memory 6 as described above, it is not possible to make an off-lane alarm determination so that st step S14 the alarm lamp 7 is turned on to inform a driver of the state where the apparatus is not operable. At step S12, the alarm output is left OFF and the program returns to step S2. If it has been found at step S8 that there is stored data in the memory, or the memory 6 has been already written with data, the alarm lamp 7 will be turned off at step S9. At step S10, the coordinate data of the lane positions determined at step S4 and the coordinate data of the markers M1 and M2 previously stored in the memory are compared. If it has been found as a result of the comparison at step S10 that the car does not lie within the lanes, it is then determined at step S11 that an alarm is necessary to be generated so that the alarm device 4 is energized to generate an alarm output at step S13. On the contrary, if it has been found as a result of the comparison at step S10 that the car lies within the lanes, it is then determined at step S11 that no alarm is necessary so that an alarm output is made OFF at step S12. After the executions of steps S13 and S12, the program returns to step S2 and repeats a series of the above steps. In the above, if the memory 6 employs an EEPROM, the data stored therein are not extinguished even though the power source of the apparatus is switched OFF. Therefore, if the image data of the markers are written in the memory at the stage of shipments on car manufacuturing lines, there is no need to switch ON/OFF the power source and make write operations for the memory even though the battery is detached from the car for inspections etc, one by one. As mentioned above, since an off-lane alarm apparatus according to the present invention is arranged such that after mounting a line camera on a car markers preset at predetermined positions outside of the car are shot and preliminarily stored as an image and the positional information is used as car side positional information for alarm determinations, it becomes possible to make a simple pre-adjustment in a short time without complicated and fine pre-adjustments for the mounting angle of the line camera. The present invention also makes it possible to unify the performance of products to be shipped at the time of pre-adjustments of a car having mounted thereon the off-lane alarm apparatus. After shipments to the market, setting values can be easily modified by dealers etc in accordance with preferences of a user and alarm setting values can also be modified during the actual running of a car.

Claims: An off-lane alarm apparatus wherein an image signal provided from a line camera (1) mounted on a car roof is quantized into a corresponding binary image by an image processing device to detect a lane on a road surface whereby an alarm is generated when an off-lane state of said car from said lane is detected, characterized in that; said apparatus comprises a memory (6); said image processing device has preliminarily stored, in said memory (6), horizontal position data as car side position data of binary images of markers positioned at a predetermined outside point corresponding to a permissible error in the pan direction of said line camera (1) on both side ends of said car and shot as said image signal by said line camera (1) positioned at a predetermined front center of said car (20); and said image processing device generates said alarm on the basis of a relationship between the horizontal position data of the detected lane and the position data of both side ends of said car (20). An off-lane alarm apparatus wherein an image signal provided from a line camera (1) mounted on a car roof is quantized into a corresponding binary image by an image processing device to detect a lane on a road surface whereby an alarm is generated when an off-lane state of said car from said lane is detected, characterized in that; said apparatus comprises a memory (6); said image processing device has preliminarily stored, in said memory (6), horizontal position data as car side position data of binary images of desired actual lanes as reference markers, along which said car (20) is running, shot as said image signal by said line camera (1) positioned at a predetermined front center of said car (20); and said image processing device generates said alarm on the basis of a relationship between the horizontal position data of the detected lane and the position data of both side ends of said car (20). An off-lane alarm apparatus as claimed in claim 1 or2, characterized in that said memory (6) comprises an EEPROM with electrically erasing and writing functions. An off-lane alarm apparatus as claimed in any one of claims 1 to 3, characterized in that said apparatus further comprises a setting switch means (2), and said image processing device has preliminarily stored, in said memory (6), the horizontal position data of said markers, on the basis of an ON/OFF state of said setting switch means (2). An off-lane alarm apparatus as claimed in claim 4, characterized in that said setting switch means (2) comprises two switches respectively provided for the right and the left markers, with each independently providing as an output its ON/OFF state for said image processing device.

Inventors: KOSHIZAWA TOSHIFUMI, KOSHIZAWA, TOSHIFUMI, Koshizawa, Toshifumi, c/o Isuzu Central Res. Co.
Applicants: ISUZU MOTORS LTD, ISUZU MOTORS LIMITED
Application year: 1996
Main classification: G05D1
IPC codes: G05D1, G08B21, B60W30, H04N5, G08G1, B60R21