1. Field of the Invention
The present invention relates to an apparatus for recognizing an environment, which recognizes an environment around a vehicle equipped with the apparatus (hereinafter referred to as an apparatus-equipped vehicle) by use of image processing.
2. Description of the Related Art
Japanese Patent Application Laid-Open No. 2000-259998 describes one of conventional apparatuses for surveying an environment around an apparatus-equipped vehicle. The prior art grasps the positional relationship between the apparatus-equipped vehicle and other vehicles running behind the apparatus-equipped vehicle by use of an optical flow (velocity vector that connects corresponding points in two images with a time interval). Further, the above-mentioned prior art estimates a white line that distinguishes between a lane for the apparatus-equipped vehicle and an adjacent lane based on information about the road on which the apparatus-equipped vehicle has run, the information being obtained while driving. Moreover, the prior art determines to which of the lane for the apparatus-equipped vehicle and the adjacent lane other vehicle, which generates the optical flow, belongs.
However, the aforementioned surveying apparatus using the optical flow is structured so as to search the corresponding points of two continuous images obtained by imaging means every predetermined time and connect the corresponding points, thereby obtaining the velocity vector. At the time of detecting the corresponding points, it is required that correlation between images should be calculated or a flow should be calculated by an iterative operation using constraint condition about a concentration gradient, so that processing procedure becomes complicated. Therefore, the calculation amount massively increased, causing such a problem that a realization of a high-speed moving direction was not able to be obtained unless a high-performance and expensive CPU was used.
The present invention has been made to solve the problem of the prior art as mentioned above. It is an object of the present invention to provide an apparatus for recognizing an environment, which easily recognizes an environment around an apparatus-equipped vehicle by reducing a calculation amount.
The first aspect of the present invention provides an apparatus for recognizing an environment, comprising: an imaging unit, which is attached to a vehicle, for picking up surroundings of the vehicle so as to obtain a surrounding image; a filter processing unit for providing a filter processing to the surrounding image for each predetermined sampling interval so as to obtain a process image and an edge information; a processed information memorizing unit for memorizing the process image; an image finite differentiating unit for obtaining a difference image between the process image and a process image before an arbitrary sampling interval; a frequency accumulating unit for accumulating the number of moving pixels for each moving direction based on the edge information and the difference image, and for obtaining a cumulative value; and a determining unit for performing a determination of a surrounding environment in response to the cumulative value of the frequency accumulating unit.
Hereinafter, in order to describe the present invention more in detail, preferred embodiments of this invention will be explained with reference to the accompanied drawings below.
In
Hereafter, the operation of each structural means of
Each structural means of
In
Next, the imaging means 10 obtains an image I (t+Δt) at time (t+Δt) for each process period. The obtained image I (t+Δt) is processed by the filter processing means 20 such that a process image Ie (t+Δt) can be obtained. At this time, the filter processing means 20 extracts edge information e (x, y, type) of an edge position and an edge type in a focused direction.
The edge information e (x, y, type) includes coordinate information e (x, y) of the edge position and edge type information e (type) (to be described in detail later). In
Sequentially, the image finite differentiating means 40 calculates Ie (t+Δt)−Ie (t) using the process image Ie (t) stored in the processed information memorizing means 30, thereby obtaining a difference image Is (t, Δt). The difference image Is (t, Δt) is a difference image between images with sampling interval Δt for a control period t.
The frequency accumulating means 50 refers to a pixel p (t, Δt, x, y) in the difference image Is (t, Δt) corresponding to coordinate information e (x, y) of the edge position. The frequency accumulating means 50 determines whether or not the edge has moved based on a sign of the pixel and an edge type and detects the moving direction. The frequency accumulating means 50 increases a cumulative value of velocity v (Δt) by one in accordance with the moving direction when the focused edge position moves. The aforementioned cumulative operation is provided to all edge positions.
After that, at time t+2Δt after two process periods, an image I (t+2Δt) is obtained. The obtained image I (t+2Δt) is processed by the filter processing means 20, whereby obtaining a process image Ie (t+2Δt). At this time, the filter processing means 20 extracts edge information e (x, y, type) about the edge position and the edge type of the focused direction.
Sequentially, the image finite differentiating means 40 calculates Ie (t+2Δt)−Ie (t) using the image Ie (t) stored in the processed information memorizing means 30, so that a difference image Is (t, 2Δt) can be obtained.
The frequency accumulating means 50 refers to a pixel p (t, 2Δt, x, y) in the difference image Is (t, 2Δt) corresponding to coordinate information e (x, y) of the edge position. The frequency accumulating means 50 determines whether or not the edge has moved based on a sign of the pixel and an edge type thereof and detects the moving direction. The frequency accumulating means 50 increases a cumulative value of velocity v (2Δt) by one in accordance with the moving direction when the focused edge position moves. The aforementioned cumulative operation is provided to all edge positions.
In
The determining means 60 performs determination based on the velocity distribution obtained by the above iterative process at the end of the control period, which begins at time t. Under the determination, the determining means 60 outputs a control signal or a warning signal as required (to be described in detail later).
The apparatus of
Hereafter, the principle of movement detection will be explained based on
In
First, when original images I (t) 400, 410, 420 are subjected to filtering that has a side control effect, process images Ie (t) 401, Ie (t+Δt) 411 and Ie (t+Δt) 421 are obtained, respectively. Additionally, the side control effect is one that controls a portion excepting a necessary focused point (e.g., edge) to emphasize only the focused point. As a filter with such an effect, for example, there is a filter in which a Gaussian filter and a Laplacian filter are combined.
Second, coordinates of zero cross points 412 and 422 where the sign of pixel value changes from a positive to a negative or from a negative to a positive are obtained from the latest process images Ie (t+Δt) 411 and Ie (t+Δt) 421, respectively. The positional coordinate of the zero cross point corresponds to that of the edge. Edge type information e (type) refers to one that has a pattern where the zero cross point changes from a positive to a negative or from a negative to a positive. Namely, edge information e (x, type) is constituted by an edge position coordinate x and an index type that indicates a change type of the edge, which is determined by whether the pixel value changes from the positive to the negative or from the negative to the positive at the zero cross point. For example, at the zero cross points 412 and 422 in
As described above, the pixel position of edge is obtained using the filter with the side control effect in the filter processing, and edge information, which is constituted by the change type of the pixel value in the direction where attention is paid to the edge, is extracted. Thus, regarding an unnecessary portion, namely, a portion where substantially the fixed pixel value is provided and the change in movement cannot be detected, such a portion is excluded from processing in advance. Therefore, an unnecessary calculation amount can be reduced.
Moreover, edge information is expressed by the pixel position of edge and the change type of pixel value, thereby making it possible to simplify processing and to reduce the calculation amount.
Third, image finite differentiating process Ie (t+Δt)−Ie (t) is carried out, and then difference images Is (t, Δt) 413 and Is (t, Δt) 423 can be obtained.
Here, reference is made to pixel p (t, Δt, x) in the difference image Is (t, Δt) based on edge position information e (x) of edge information e (x, type) previously obtained. A sign of the pixel is checked. At this time, the edge type is “0.” Thus, if the sign of p (t, Δt, x) is positive, the corresponding edge moves right. If the sign of p (t, Δt, x) is negative, the corresponding edge moves left. The above-mentioned movement of edge is determined uniquely.
If the edge type is “1” and the sign of p (t, Δt, x) is positive, the corresponding edge moves left. If the sign of p (t, Δt, x) is negative, the corresponding edge moves right. The above movement of edge is determined uniquely.
As described above, it is possible to easily detect the moving direction of the focused pixel based on the sign of the difference image between the images processed by the filter with the side control effect and the edge type. Namely, by checking only the sign of the pixel value of the difference image corresponding to the focused pixel position of process image, it is possible to know which direction the focused pixel moves. Accordingly, the calculation amount of movement detection can be largely reduced.
In addition, detection, which matches the velocity, can be carried out in accordance with the image interval to be subjected to difference processing. As shown in
Generally, in the velocity distribution in the front image obtained from the vehicle in driving, there are many pixels in the direction flowing from a disappearing point (for example, a point where both side lines of the road cross each other at the front in the driving direction). Namely, regarding the left side of the image, there are many pixels that move to the left direction, and regarding the right side of the image, there are many pixels that move to the right direction. Under the aforementioned circumstances, in the case where there is a vehicle that cuts into the front of the apparatus-equipped vehicle from the right lane, the velocity distribution in the window in the right changes and the number of pixels that moves to the left increases. Then, the image is divided into the right and left (it is divided into the right and left at a central wave line of
In the cumulative frequency of the number of pixels that is classified for each moving direction of movable pixels and for each moving velocity range, the possibility of the existence of object with focused moving direction and velocity and the degree of danger to the apparatus-equipped vehicle are reflected. Hence, a calculation for specifying a focused object and a calculation for the degree of danger become unnecessary by checking only a predetermined accumulative frequency for each display. Accordingly, a load of calculations can be largely reduced.
It is possible to determine whether or not the object approaches the apparatus-equipped vehicle based on the cumulative frequency obtained by the frequency accumulating means 50. Moreover, it is also possible to decide control amounts of brake and steering and the level of warning in accordance with the velocity of the object determined as approaching. For example, concerning the warning, it is possible to adopt such a structure that issues a preliminary warning when an approaching velocity is lower than a predetermined velocity and that gives an emergency warning when the approaching velocity is higher than the predetermined velocity. Alternatively, it is possible to use such a structure that changes the level of the warning sound in accordance with the velocity. Concerning the brake, it is possible to use such a structure that changes the degree of braking in accordance with the degree of emergency corresponding to the approaching velocity of the object. Concerning the steering, it is possible to use such a structure that changes magnitude of a steering angle and a steering velocity in accordance with the degree of emergency to avoid the approaching object.
Detection window areas (right and left allocations) obtained by dividing the display in
In the case where a camera for image pickup and radar for distance detection are mounted on the vehicle, it is possible to structure the determining means 60 such that the searching range of the vehicle-mounted camera and radar and the processing range thereof are changed based on the aforementioned edge information and cumulative value. The aforementioned structure makes it possible to specify an area where a movable object with a predetermined movement vector exists in the image based on the edge information and the cumulative frequency. Accordingly, the searching range of the vehicle-mounted camera and radar and the processing range thereof can be limited efficiently.
According to the first aspect of the present invention, the number of pixels of the movement portion is sequentially accumulated based on the pixel value of the difference image for each predetermined sampling interval. Thus, it is possible to easily obtain the velocity distribution for each predetermined moving velocity range. Processing is simplified, so that an environment around the apparatus-equipped vehicle can be recognized with a small amount of calculations.
According to the second aspect of the present invention, the pixel position of edge is obtained using the filter with a side control effect in the filter processing, and edge information, which is constituted by the change type of the pixel value in the direction where attention is paid to the edge, is extracted. Hence, regarding an unnecessary portion, that is, a portion where substantially the fixed pixel value is provided and the change in movement cannot be detected, such a portion is excluded from processing in advance. Therefore, an unnecessary calculation amount can be reduced.
According to the third aspect of the present invention, edge information is expressed by the pixel position of the edge and the change type of the pixel value, thereby making it possible to simplify processing and to reduce the calculation amount.
According to the fourth aspect of the present invention, by checking only the sign of the pixel value of the difference image corresponding to the focused pixel position of process image, it is possible to know which direction the focused pixel moves. Accordingly, the calculation amount of movement detection can be largely reduced.
According to the fifth aspect of the present invention, the possibility of existence of object with focused moving direction and velocity and the degree of danger to the apparatus-equipped vehicle are reflected in the cumulative frequency of the number of pixels that is classified for each moving direction of movable pixels and for each moving velocity range. Thus, by checking only a predetermined accumulative frequency for each display, a calculation for specifying a focused object and a calculation for the degree of danger become unnecessary. Therefore, a load of calculations can be largely reduced.
According to the sixth aspect of the present invention, it is possible to specify an area where a movable object with a predetermined movement vector exists in the image based on the edge information and cumulative frequency. Accordingly, the searching range of the vehicle-mounted camera and radar and the processing range thereof can be limited efficiently.
The present disclosure relates to subject matters contained in Japanese Patent Application No. 2001-236595, filed on Aug. 3, 2001, the disclosure of which is expressly incorporated herein by reference in its entirety.
While the preferred embodiments of the present invention have been described using specific terms, such description is for illustrative purposes. It is to be understood that the invention is not limited to the preferred embodiments or constructions. To the contrary, the invention is intended to cover various modifications and equivalent arrangements. In addition, while the various elements of the preferred embodiments are shown in various combinations and configurations, which are exemplary, other combinations and configurations, including more, less or only a single element, are also within the spirit and scope of the invention as defined in the following claims.
Number | Date | Country | Kind |
---|---|---|---|
P 2001-236595 | Aug 2001 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5729216 | Sasaki et al. | Mar 1998 | A |
6141433 | Moed et al. | Oct 2000 | A |
6363161 | Laumeyer et al. | Mar 2002 | B2 |
6490519 | Lapidot et al. | Dec 2002 | B1 |
6529809 | Breed et al. | Mar 2003 | B1 |
Number | Date | Country |
---|---|---|
0 309 002 | Mar 1989 | EP |
0 973 044 | Jan 2000 | EP |
1 035 455 | Sep 2000 | EP |
06-259561 | Sep 1994 | JP |
2000-259998 | Sep 2000 | JP |
2001-008196 | Jan 2001 | JP |
Number | Date | Country | |
---|---|---|---|
20030026455 A1 | Feb 2003 | US |