Disclosure of Invention
The invention provides a method for detecting peripheral obstacles of a vehicle, which converts image information into an electric signal for processing through the cooperation of detection of a photoelectric collector and a controller, greatly reduces the workload of analyzing and processing the image through software, and effectively solves the problems of high price of detection equipment, large processing workload or slow processing speed.
A first embodiment of the present invention provides a vehicle peripheral obstacle detection method, including:
acquiring a plurality of image signals of a plurality of detection points which are acquired by a plurality of photoelectric collectors arranged on a vehicle and are arranged on a road in advance;
converting the image signal into an electrical signal;
judging whether the corresponding groups of electric signals are respectively the same;
if yes, judging that no barrier exists on the current road;
if not, judging that the obstacle exists on the current road.
Preferably, the detection points include a vehicle front detection point, a left front side detection point, a right front side detection point, a left side detection point and a right side detection point;
preferably, the plurality of photo-collectors includes a first photo-collector and a second photo-collector;
the first photoelectric collector is arranged on the upper left side of the windshield, and the second photoelectric collector is arranged on the upper right side of the windshield.
Preferably, the plurality of photo-collectors further comprises: a third photoelectric collector, a fourth photoelectric collector, a fifth photoelectric collector and a sixth photoelectric collector;
the third photoelectric collector is arranged at the rear-view mirror at the left side of the vehicle, and the fourth photoelectric collector is arranged at the rear-view mirror at the right side of the vehicle; the fifth photoelectric collector is arranged on the upper portion of the left side vehicle body of the vehicle, and the sixth photoelectric collector is arranged on the upper portion of the right side vehicle body of the vehicle.
Preferably, the first photoelectric collector and the second photoelectric collector are used for acquiring electrical signals of a detection point at the front of the vehicle, the first photoelectric collector and the third photoelectric collector are used for acquiring electrical signals of a detection point at the left front side of the vehicle, the third photoelectric collector and the fifth photoelectric collector are used for acquiring electrical signals of a detection point at the left side of the vehicle, the second photoelectric collector and the fourth photoelectric collector are used for acquiring electrical signals of a detection point at the right front side of the vehicle, and the fourth photoelectric collector and the sixth photoelectric collector are used for acquiring electrical signals of a detection point at the right front side of the vehicle.
Preferably, the longitudinal distance between the detection points is 0.2-30m, the transverse distance between the detection points is 5-20cm, the longitudinal direction is the automobile advancing direction, and the transverse direction is perpendicular to the automobile advancing direction.
The second embodiment of the invention provides a vehicle, which comprises a controller and a plurality of photoelectric collectors arranged on a vehicle body, wherein the controller comprises a memory and a processor, the memory and the photoelectric collectors are connected with the processor, executable codes are stored in the memory, and the executable codes can be executed by the processor, so as to realize the vehicle peripheral obstacle detection method.
Preferably, the method further comprises the following steps: an alarm device;
the alarm device is connected with the output end of the controller, and when the controller judges that the electric signals from the same detection point of different photoelectric collectors are different, an alarm signal is sent out.
Preferably, the method further comprises the following steps: a relay;
the output end of the controller is connected with a coil of the relay, and a normally open contact of the relay is used for being connected with a double-flash indicator lamp in the vehicle.
The invention provides a vehicle peripheral obstacle detection method, which converts image information into an electric signal for processing through the cooperation of photoelectric collector detection and a controller, judges whether different photoelectric collectors at the same detection point detect the same signal to judge whether an obstacle exists in the front or not through the controller, judges whether the obstacle exists or not if the signals are the same, judges that no obstacle exists if the signals are the same, and judges that an obstacle exists if the obstacles do not exist, and outputs the electric signal to an alarm device through the output end of the controller to remind a driver.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The following detailed description of specific embodiments of the invention refers to the accompanying drawings.
Referring to fig. 1, the present invention provides a method for detecting obstacles around a vehicle, which converts image information into electrical signals for processing through the cooperation of a photoelectric collector and a controller, thereby greatly reducing the workload of analyzing and processing images through software, and effectively solving the problems of high price of detection equipment, large processing workload or slow processing speed.
A first embodiment of the present invention provides a vehicle peripheral obstacle detection method, including:
s101, acquiring a plurality of image signals of a plurality of detection points which are acquired by a plurality of photoelectric collectors arranged on a vehicle and are arranged on a road in advance;
referring to fig. 2 to 3, the plurality of photoelectric collectors include a first photoelectric collector 01 and a second photoelectric collector 02;
first photoelectric collector 01 sets up in windshield upper left side, second photoelectric collector 02 sets up in windshield upper right side.
Preferably, the plurality of photo-collectors further comprises: a third photoelectric collector 03, a fourth photoelectric collector 04, a fifth photoelectric collector 05 and a sixth photoelectric collector 06;
the third photoelectric collector 03 is arranged at the rear-view mirror at the left side of the vehicle, and the fourth photoelectric collector 04 is arranged at the rear-view mirror at the right side of the vehicle; the fifth photoelectric collector 05 is arranged on the upper portion of the left side of the vehicle body, and the sixth photoelectric collector 06 is arranged on the upper portion of the right side of the vehicle body.
Preferably, the detection points include a vehicle front detection point, a left front side detection point, a right front side detection point, a left side detection point and a right side detection point;
preferably, the first and second photoelectric collectors 01 and 02 are used for acquiring electrical signals of a detection point at the front of a vehicle, the first and third photoelectric collectors 01 and 02 are used for acquiring electrical signals of a detection point at the left front side of the vehicle, the third and fifth photoelectric collectors 03 and 05 are used for acquiring electrical signals of a detection point at the left side of the vehicle, the second and fourth photoelectric collectors 02 and 04 are used for acquiring electrical signals of a detection point at the right front side of the vehicle, and the fourth and sixth photoelectric collectors 04 and 06 are used for acquiring electrical signals of a detection point at the right front side of the vehicle.
S102, converting the image signal into an electric signal;
s103, judging whether the corresponding groups of electric signals are respectively the same;
s104, if yes, judging that no barrier exists on the current road;
and S105, if not, judging that the obstacle exists on the current road.
Preferably, the longitudinal distance between the detection points is 0.2-30m, and the transverse distance between the detection points is 5-20 cm. The longitudinal direction is the automobile advancing direction, and the transverse direction is perpendicular to the automobile advancing direction.
The front-side detection points are arranged on the front side of the vehicle, wherein the longitudinal distance between the detection points is 0.2-30m, the transverse distance between the detection points is 5-20cm, when the first photoelectric collector 01 and the second photoelectric collector 02 obtain different electric signals of the same detection point, it is judged that a certain photoelectric collector blocks the acquisition of a signal of the certain detection point by an obstacle, for example, the height of the obstacle on a road surface exceeds a preset value (such as 0.2m) and blocks the acquisition of the signal of the certain photoelectric collector, and the controller outputs an electric signal to the alarm device to remind a driver of paying attention.
The left side detection point and the right side detection point are arranged on the left side and the right side of the vehicle, wherein the longitudinal distance between the detection points is 0.2-30m, the transverse distance between the detection points is 5-20cm, when the electric signals of the same detection point acquired by the third photoelectric collector 03 and the fifth photoelectric collector 05 are different, or when the electric signals of the same detection point acquired by the fourth photoelectric collector 04 and the sixth photoelectric collector 06 are different, the left side and the right side of the vehicle are judged to have obstacles, and the controller outputs an electric signal to the alarm device to remind a driver of paying attention.
The left front side and the right front side of the vehicle are arranged at the left front side detection point and the right front side detection point, wherein the longitudinal distance between the detection points is 0.2-30m, the transverse distance between the detection points is 5-20cm, when the electric signals acquired by the first photoelectric collector 01 and the third photoelectric collector 03 are different, or when the electric signals acquired by the second photoelectric collector 02 and the fourth photoelectric collector 04 are different, the left side or the right side of the vehicle is judged to have an obstacle, and the controller outputs an electric signal to the alarm device to remind a driver of paying attention.
The second embodiment of the invention provides a vehicle, which comprises a controller and a plurality of photoelectric collectors arranged on a vehicle body, wherein the controller comprises a memory and a processor, the memory and the photoelectric collectors are connected with the processor, executable codes are stored in the memory, and the executable codes can be executed by the processor, so as to realize the vehicle peripheral obstacle detection method.
Preferably, the method further comprises the following steps: an alarm device;
the alarm device is connected with the output end of the controller, and when the controller judges that the electric signals from the same detection point of different photoelectric collectors are different, an alarm signal is sent out.
Preferably, the method further comprises the following steps: a relay;
the output end of the controller is connected with a coil of the relay, and a normally open contact of the relay is used for being connected with a double-flash indicator lamp in the vehicle.
When the vehicle is in the driving process, under the condition that the obstacle is judged to be in contact with the vehicle, the controller outputs an electric signal to the coil of the relay, so that the normally open contact is closed, the double-flashing indicating lamp in the vehicle is switched on, the double-flashing indicating lamp jumps at a certain frequency to remind a driver, and part of the drivers dislike the alarm device with sound.
The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above-mentioned embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention.