Pedestrian escort equipment based on data processing and working method thereof
Technical Field
The invention relates to the field of data processing, in particular to pedestrian escort equipment based on data processing and a working method thereof.
Background
With the increase of vehicles on the road, the danger of pedestrians crossing the road is obviously increased, and more reports about the collision of pedestrians by vehicles on pedestrian crosswalks appear in the news, which also leads to the fact that the contradiction between drivers of vehicles and pedestrians is increasingly violent nowadays.
Regulations on vehicle courier pedestrian are also currently issued, but no regulations on courtesy degree exist, which results in different understandings of courtesy degree by some drivers, wherein some drivers consider that the pedestrians are courtesy but still have administrative penalties, so that contradictions between drivers and pedestrians still exist.
Disclosure of Invention
The purpose of the invention is as follows: in order to overcome the defects in the background art, the embodiment of the invention provides pedestrian protection and transportation equipment based on data processing and a working method thereof, which can effectively solve the problems related to the background art.
The technical scheme is as follows:
a pedestrian escort device based on data processing comprises a escort mechanism and a control mechanism, wherein the control mechanism comprises a processor, a driving device and a positioning device, the processor is respectively connected with the driving device and the positioning device, and the positioning device is used for acquiring position information of a pedestrian crosswalk and sending the position information to the processor;
the delivery mechanism comprises a first camera device, a second camera device, a vertical rod arranged at a port of a pedestrian crossing, an extension device and a deformation device, wherein the first camera device and the second camera device are respectively connected with the processor, the first camera device is used for acquiring a first shot image with the counting time length of a traffic light of the pedestrian crossing and sending the first shot image to the processor, the second camera device is used for acquiring a second shot image comprising a front row vehicle and sending the second shot image to the processor, a pair of vertical rods are arranged at two ports of the pedestrian crossing, the extension device is connected with the vertical rods, the deformation device is arranged between every two extension devices and is connected with the extension devices to form a continuous strip structure, and the extension devices and the deformation device are respectively connected with the driving device, the extension device is used for isolating the pedestrian crossing from the motor vehicle lane, and the deformation device is used for adjusting the extension direction of the extension device according to the position of the vehicle in the motor vehicle lane.
As a preferable mode of the present invention, the feeding protection mechanism further includes a rotating device and a cross bar, the rotating device is disposed above the vertical rod, and is connected to the driving device, for driving the cross bar to rotate up and down, the cross bar is connected to the rotating device, a plurality of sections of telescopic rods are disposed inside the cross bar, and the telescopic rods are connected to the driving device, for extending the cross bar.
As a preferable mode of the present invention, the escort mechanism further includes a distance measuring device and an alarm device, the distance measuring device and the alarm device are respectively connected to the processor, the distance measuring device is disposed on the extension device and is configured to measure a distance between a vehicle on the vehicle lane and the extension device and send the distance to the processor, and the alarm device is configured to output an alarm sound to the outside.
In a preferred embodiment of the present invention, a lifting device is disposed in the vertical rod, and the lifting device is connected to the driving device and is configured to drive the extending device connected to the vertical rod to be raised to a predetermined height.
As a preferable mode of the present invention, the escort mechanism further includes a light sensor and an illumination device, the light sensor and the illumination device are disposed on the extension device, the light sensor is connected to the processor and configured to detect a brightness value of an environment around the extension device and send the brightness value to the processor, and the illumination device is connected to the driving device and configured to illuminate the environment around the extension device.
A working method of pedestrian escort equipment based on data processing comprises the following working steps:
the method comprises the steps that a first shooting image including the countdown duration of a traffic light of a pedestrian crossing is obtained by a first shooting device and sent to a processor;
the processor judges whether the signal lamp is in a red light state or not according to the first shot image;
if so, the processor judges whether the red light countdown length of the signal lamp is less than or equal to a preset length of time;
if yes, the processor outputs an extension signal to a driving device, and the driving device drives the extension device to extend towards the center of the road;
the second camera device acquires a second shot image comprising the front-row vehicle and sends the second shot image to the processor;
the processor judges whether a vehicle stops in the range of the pedestrian crossing according to the second shot image;
if so, editing an extension route of the extension device by the processor, wherein the extension route is attached to the vehicle head and comprises a plurality of horizontal bending sections and included angles of adjacent bending sections;
when the extending route is bent, the processor outputs a deformation signal to the driving device, and the driving device drives the deformation device to rotate by a corresponding angle;
the processor judges whether the green light countdown length of the signal lamp is less than or equal to a preset length of time or not according to the first shot image;
if yes, the processor outputs a withdrawing signal to the driving device, and the driving device drives the extending device and the deforming device to restore to the original state.
As a preferred mode of the present invention, when the countdown length of the red light is less than or equal to the preset length, the processor outputs a first rotation signal to the driving device, and the driving device drives the rotating device to rotate upward by 90 degrees;
when the countdown length of the green light is less than or equal to the preset length, the processor outputs a second rotation signal to the driving device, and the driving device drives the rotating device to rotate downwards by 90 degrees.
As a preferred embodiment of the present invention, the present invention further comprises:
the distance measuring device detects the distance between the vehicle and the extending device and sends the distance to the processor;
the processor judges whether the received distance is smaller than or equal to a preset distance;
if yes, the processor outputs an alarm signal to the driving device, and the driving device drives the alarm device to start.
As a preferred mode of the present invention, after the extension device is started, the processor determines whether the vehicle is driven out/in by turning right according to the first captured image and the second captured image;
if yes, the processor judges whether pedestrians exist on the pedestrian crossing;
if not, the processor edits an extension route again, wherein part of the extension route is higher than the roof of the vehicle, and the extension route comprises a plurality of bending sections in the vertical direction and included angles of adjacent bending sections;
the processor outputs a lifting signal to the driving device, and the driving device drives the lifting device to lift by a preset height;
when the extending route is bent, the processor outputs a deformation signal to the driving device, and the driving device drives the deformation device to rotate by a corresponding angle.
As a preferred embodiment of the present invention, the present invention further comprises:
after the extension device is started, the light sensor detects the brightness value of the environment around the extension device and sends the brightness value to the processor;
the processor judges whether the brightness value is less than or equal to a preset brightness value;
if yes, the processor outputs an illumination signal to the driving device, and the driving device drives the illumination device to start.
The invention realizes the following beneficial effects:
1. through the signal lamp that first camera device real time monitoring and pedestrian's crosswalk correspond, when the signal lamp is about to switch over into green light from the red light, start extension device, the extension device of pedestrian's crosswalk both sides extends in opposite directions to finally intersect at the mid point of pedestrian's crosswalk, extension device can keep apart pedestrian's crosswalk and motor vehicle way, promotes the security that the pedestrian passed through.
2. When the vehicle stops in the crosswalk, the processor can edit the extension route, and the extension direction of the extension device is adjusted through the deformation device arranged between every two extension devices, so that the extension route can bypass the head of the crosswalk.
3. When no pedestrian exists on the pedestrian crossing, the heights of the extending devices on the two sides are raised through the lifting devices arranged in the vertical rods, and the heights of the extending devices in front of the middle vehicle are kept unchanged through the deforming devices, so that the right-turning vehicle can be driven out or into the device.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view of the operation of the escort mechanism provided by the present invention.
Fig. 2 is a schematic view of the rotation device and the cross bar according to the present invention.
Fig. 3 is a schematic structural diagram of an illumination device provided by the present invention.
FIG. 4 is a schematic diagram of a processor connection provided by the present invention.
Fig. 5 is a flow chart of a working method of the escort mechanism provided by the invention.
Fig. 6 is a first operation schematic diagram of the deformation apparatus provided by the present invention.
Fig. 7 is a second operation diagram of the deformation apparatus provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Example one
As shown in fig. 1-4, the present embodiment provides a pedestrian escort device based on data processing, which includes a escort mechanism and a control mechanism, where the control mechanism includes a processor 1, a driving device 2 and a positioning device 3, the processor 1 is connected to the driving device 2 and the positioning device 3, and the positioning device 3 is configured to obtain position information of a pedestrian crossing and send the position information to the processor 1; the conveying mechanism comprises a first camera device 4, a second camera device 5, a vertical rod 6 arranged at a port of a pedestrian crossing, an extension device 7 and a deformation device 8, wherein the first camera device 4 and the second camera device 5 are respectively connected with the processor 1, the first camera device 4 is used for acquiring a first shot image including the counting time of a traffic light of the pedestrian crossing and sending the first shot image to the processor 1, the second camera device 5 is used for acquiring a second shot image including a front row vehicle and sending the second shot image to the processor 1, a pair of vertical rods 6 are arranged at two ports of the pedestrian crossing, the extension device 7 is connected with the vertical rods 6, the deformation device 8 is arranged between every two extension devices 7, and the extension device 7 is connected to form a continuous strip-shaped structure, the extension device 7 and the deformation device 8 are respectively connected with the driving device 2, the extension device 7 is used for isolating the pedestrian crossing from the motor vehicle lane, and the deformation device 8 is used for adjusting the extension direction of the extension device 7 according to the position of the vehicle in the motor vehicle lane.
Protect and send mechanism still includes rotary device 9 and horizontal pole 10, rotary device 9 set up in the top of pole setting 6, and with drive arrangement 2 is connected, be used for the drive horizontal pole 10 rotates from top to bottom, horizontal pole 10 with rotary device 9 links to each other, the inside of horizontal pole 10 is provided with a plurality of sections telescopic links, the telescopic link with drive arrangement 2 is connected, is used for extending horizontal pole 10.
The conveying protection mechanism further comprises a distance measuring device 11 and an alarm device 12, the distance measuring device 11 and the alarm device 12 are respectively connected with the processor 1, the distance measuring device 11 is arranged on the extension device 7 and used for measuring the distance between a vehicle on a motor vehicle lane and the extension device 7 and sending the distance to the processor 1, and the alarm device 12 is used for outputting alarm sound to the outside.
The vertical rod is internally provided with a lifting device 13, and the lifting device 13 is connected with the driving device 2 and used for driving the extending device 7 connected with the vertical rod to be lifted to a preset height.
The escort mechanism further comprises a light sensor 14 and an illumination device 15, the light sensor 14 and the illumination device 15 are arranged on the extension device 7, the light sensor 14 is connected with the processor 1 and used for detecting the brightness value of the environment around the extension device 7 and sending the brightness value to the processor 1, and the illumination device 15 is connected with the driving device 2 and used for illuminating the environment around the extension device 7.
Specifically, the escort apparatus provided in this embodiment includes a processor 1, a driving device 2, a positioning device 3, a first camera 4, a second camera 5, an upright rod 6, an extending device 7, a deforming device 8, a rotating device 9, a cross rod 10, a distance measuring device 11, an alarm device 12, a light sensor 14, and an illuminating device 15, where the cross rod 10 includes a telescopic rod, and the upright rod includes a lifting device 13.
The hand-protecting and conveying mechanism comprises two symmetrical parts arranged at two ports of a pedestrian crossing, and any one of the two symmetrical parts is taken as an example for explanation.
The port department of pedestrian's crosswalk is provided with the pole setting, the pole setting embeds there is elevating gear 13, elevating gear 13's the biggest rising height is 2 meters, and the height of pole setting is 1 meter, the top of pole setting is provided with extension device 7, works as elevating gear 13 risees to when the maximum height, the extension device 7's of pole setting top height is 3 meters, is enough to let the vehicle of its below pass through.
The extension devices 7 are connected with the deformation devices 8 at intervals, each extension device 7 can independently stretch and retract, the extension length of each extension device 7 is independently edited by the processor 1, each deformation device 8 can independently rotate, and the rotation direction and the rotation angle of each deformation device 8 are independently edited by the processor 1.
When the extension devices 7 on both sides of the crosswalk extend toward the center, the extension devices 7 on both sides meet at the midpoint of the crosswalk, which is a preset extension route of the extension device 7.
The deformation device 8 comprises four rotation directions of front, back, upper and lower.
For example, when the vehicle has crossed a parking line or entered a crosswalk while parking, and at this time, if the vehicle continues to extend along the preset extension route, the extension device 7 collides with the vehicle head, and therefore, in this case, it is necessary to adjust the extension route of the extension device 7, and when the extension device 7 approaches the vehicle head, the extension direction of the extension device 7 is adjusted to be shifted to the outside of the vehicle head by the deforming device 8 connected to the extension device 7.
First camera device 4 and second camera device 5 set up respectively in the side of pole setting to respectively through first runing rest and second runing rest with the pole setting links to each other, first runing rest and second runing rest respectively with drive arrangement 2 is connected, is used for adjusting the shooting angle of first runing rest and second runing rest for first camera device 4 can focus on the signal lamp of pedestrian's crosswalk, makes second camera device 5 can focus on the vehicle on the motor vehicle lane.
Example two
As shown in fig. 1 to 5, the present embodiment provides an operating method of a pedestrian escort apparatus based on data processing, comprising the following operating steps:
s101: the first camera device 4 acquires a first shot image including the countdown duration of the traffic light of the crosswalk and sends the first shot image to the processor 1;
s102: the processor 1 judges whether the signal lamp is in a red light state or not according to the first shot image;
s103: if yes, the processor 1 judges whether the red light countdown length of the signal lamp is less than or equal to a preset length of time;
s104: if yes, the processor 1 outputs an extension signal to a driving device 2, and the driving device 2 drives the extension device 7 to extend towards the center of the road;
s105: the second camera device 5 acquires a second shot image including a front-most vehicle and sends the second shot image to the processor 1;
s106: the processor 1 judges whether a vehicle stops in the range of the pedestrian crossing according to the second shot image;
s107: if yes, the processor 1 edits an extension route of the extension device 7, wherein the extension route is attached to the vehicle head, and the extension route comprises a plurality of horizontal bending sections and included angles of adjacent bending sections;
s108: when the extending route is bent, the processor 1 outputs a deformation signal to the driving device 2, and the driving device 2 drives the deformation device 8 to rotate by a corresponding angle;
s109: the processor 1 judges whether the green light countdown length of the signal lamp is less than or equal to a preset length of time according to the first shot image;
s110: if yes, the processor 1 outputs a retraction signal to the driving device 2, and the driving device 2 drives the extending device 7 and the deforming device 8 to restore to the original state.
When the red light countdown length is less than or equal to the preset time length, the processor 1 outputs a first rotation signal to the driving device 2, and the driving device 2 drives the rotating device 9 to rotate upwards by 90 degrees;
when the green light countdown length is less than or equal to the preset time length, the processor 1 outputs a second rotation signal to the driving device 2, and the driving device 2 drives the rotating device 9 to rotate downwards by 90 degrees.
The distance measuring device 11 detects the distance of the vehicle from the extension device 7 and sends it to the processor 1;
the processor 1 judges whether the received distance is less than or equal to a preset distance;
if yes, the processor 1 outputs an alarm signal to the driving device 2, and the driving device 2 drives the alarm device 12 to start.
When the extension device 7 is started, the light sensor 14 detects the brightness value of the environment around the extension device 7 and sends the brightness value to the processor 1;
the processor 1 determines whether the brightness value is less than or equal to a preset brightness value;
if yes, the processor 1 outputs an illumination signal to the driving device 2, and the driving device 2 drives the illumination device 15 to start.
Specifically, in S101, the first imaging device 4 is constantly in an operating state, and transmits a first captured image captured in real time to the processor 1.
In S102, the processor 1 analyzes the received first captured image, extracts a signal light corresponding to the pedestrian crossing from the first captured image, identifies the color of the signal light, and determines whether the signal light is in a red light state.
In S103, if yes, processor 1 extracts the red light countdown duration on the signal lamp, processor 1 embeds has a preset duration, in this embodiment, will preset duration is set to 1 second, processor 1 determines whether the red light countdown duration is less than or equal to the preset duration.
In S104, if the red light countdown length is less than or equal to the preset length, the processor 1 controls each extending device 7 to extend toward the center of the crosswalk through the driving device 2.
Meanwhile, the processor 1 controls the rotating device 9 to rotate upwards by 90 degrees through the driving device 2, and at the moment, the cross rod 10 connected with the rotating device 9 is switched from a horizontal state to a vertical state, so that people can pass through the pedestrian crossing.
In S105, the second imaging device 5 is constantly in an operating state and transmits the captured second captured image to the processor 1 in real time.
In S106, the processor 1 analyzes the received second captured image, extracts the crosswalk from the second captured image, identifies all objects on the crosswalk, and determines whether a vehicle enters the crosswalk.
As shown in fig. 6, in S107, when a vehicle enters the crosswalk, the processor 1 edits the extension length of each extension device 7, the rotation direction and the rotation angle of each deforming device 8 to generate a new extension route, and when the deforming device 8 is activated, the extension device 7 connected to the deforming device 8 forms a horizontally curved segment.
In S108, when the extending device 7 approaches a curved section in the extending route, the processor 1 extracts the deforming device 8 located at the curved section and the rotating direction and the rotating angle thereof, and the processor 1 controls the deforming device 8 to rotate the rotating direction by the rotating angle through the driving device 2.
In S109, in the above step, the signal light corresponding to the pedestrian crossing is adjusted from red to green, and the processor 1 further determines whether the green countdown length of the signal light is less than or equal to the preset length of time.
In S110, if the green light countdown duration is less than or equal to the preset duration, the processor 1 controls the extending device 7 and the deforming device 8 to restore to the original state through the driving device 2.
Meanwhile, the processor 1 controls the rotating device 9 to rotate 90 degrees downwards through the driving device 2, the cross rod 10 is switched to be in a horizontal state from a vertical state, and people can not pass through the pedestrian crossing.
After the extension device 7 extends to the middle point of the crosswalk, if a vehicle drives to the crosswalk, the distance measurement device 11 detects the distance between the vehicle and the extension device 7 in front of the vehicle, a preset distance is built in the processor 1, in this embodiment, the preset distance is set to be 0.5 meter, the processor 1 judges whether the distance is smaller than or equal to the preset distance, and if so, the processor 1 controls the alarm device 12 to give an alarm to the vehicle through the driving device 2 to remind the vehicle to stop.
EXAMPLE III
As shown in fig. 1-4, the present embodiment provides a modification method, when the extension device 7 is activated, the processor 1 determines whether there is a right-turn vehicle to exit/enter according to the first captured image and the second captured image;
if yes, the processor 1 judges whether pedestrians exist on the pedestrian crossing;
if not, the processor 1 edits an extension route again, wherein part of the extension route is higher than the roof of the vehicle, and the extension route comprises a plurality of bending sections in the vertical direction and included angles of adjacent bending sections;
the processor 1 outputs a lifting signal to the driving device 2, and the driving device 2 drives the lifting device 13 to lift by a preset height;
when the extending route is bent, the processor 1 outputs a deformation signal to the driving device 2, and the driving device 2 drives the deformation device 8 to rotate by a corresponding angle.
Specifically, when the signal lamp corresponding to the crosswalk is in the green state, the extension device 7 blocks the vehicle in the motor vehicle lane, and the vehicle in the right-turn lane cannot go out/in.
As shown in fig. 7, the processor 1 determines whether there is a pedestrian on the pedestrian crossing by combining the first captured image and the second captured image, and if yes, does not adjust the extension device 7; if not, the processor 1 re-edits the extension length of the extension device 7, the rotation direction and the rotation angle of the deformation device 8 to generate a new extension route, and after the deformation device 8 is started, the extension device 7 connected with the deformation device 8 forms a bending section in the vertical direction.
When no pedestrian is on the pedestrian crossing and the vehicle approaches the extension device 7, the processor 1 controls the lifting device 13 to be lifted to a preset height through the driving device 2, and when the extension route is changed into a curve, the processor 1 controls the deformation device 8 at the curve to rotate by a corresponding angle through the driving device 2.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention. All equivalent changes or modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.