Disclosure of Invention
The invention provides a safety boundary building device for electric power hoisting operation based on visual processing, which can solve the problem that a safety boundary is difficult to define in the existing electric power construction process.
The safety boundary building device for electric power hoisting operation based on visual processing comprises a support, wherein the support comprises a mounting rack which is rotatably arranged on a horizontal plane, the mounting rack is provided with a bottom mounting disc positioned at the lower part and a top mounting disc positioned at the upper part, and the bottom mounting disc and the top mounting disc are relatively fixedly arranged;
the top layer mounting disc is provided with a horizontally arranged top layer mounting surface, an image acquisition mechanism and a distance measurement mechanism are arranged at the top layer mounting surface, and the distance measurement direction of the distance measurement mechanism is parallel to the optical axis direction of the image acquisition mechanism; the image acquisition mechanism is used for acquiring an environment image, and the distance measurement mechanism is used for acquiring the distance between the environment image and an object in the distance measurement direction of the distance measurement mechanism to measure;
the bottom layer mounting plate is provided with a light source mounting frame which can rotate on a vertical surface, the light source mounting frame is provided with a light source mounting surface parallel to the rotation axis of the light source mounting frame, a first linear light source and a second linear light source are arranged on the light source mounting surface, and an included angle is formed between the first linear light source and the second linear light source; the first linear light source and the second linear light source are used for forming a projection light spot on the ground.
Through the scheme, the support can be preferably used as a measuring point, the identification of the adjacent charged bodies and the measurement of the distance between the adjacent charged bodies and the measuring point are realized, the distance between the measuring point and the connecting line of the adjacent charged bodies can be preferably acquired based on the parameter, and then 2 projection light spots can be formed on the ground by preferably adjusting the angles of the first linear light source and the second linear light source based on the vertical distance, and the connecting line of the projection light spots can be preferably used as a safety boundary line.
Preferably, a processor is arranged at the mounting rack, and the processor is provided with a recognition unit, a calculation unit and a control unit;
the identification unit is used for identifying a charged body in the environment image acquired by the image acquisition mechanism, and the ranging mechanism is provided with a measurement reference point and is used for acquiring the distance between the charged body and the measurement reference point when the charged body is identified by the identification unit;
the calculating unit is used for calculating the rotating angles of the first linear light source and the second linear light source on the horizontal plane and the vertical plane according to the corresponding rotating angles and the corresponding distances of the image acquisition mechanisms at the identified first electrified body and the second electrified body;
and the control unit is used for controlling the operation of the image acquisition mechanism, the identification unit, the distance measurement mechanism, the first linear light source, the second linear light source and the calculation unit.
Automatic processing of the relevant data can be preferably achieved.
Preferably, the axis of rotation of the light source mounting bracket is on the same vertical plane as the measurement reference point. The measurement error can be preferably reduced.
Preferably, the first linear light source is used for generating a first light ray, the second linear light source is used for generating a second light ray, the first light ray and the distance measuring direction of the distance measuring mechanism are on the same vertical plane, and an included angle is formed between the first light ray and the second light ray. The alignment of the angular reference can be preferably achieved.
Preferably, the mounting rack is rotatably matched with a support frame, a first driving mechanism is fixedly arranged at the support frame, and the first driving mechanism is used for driving the mounting rack to rotate. The rotatable arrangement of the mounting bracket can be preferably realized.
Preferably, the supporting frame is provided with a heightening rod and a supporting frame mounting part arranged at the upper part of the heightening rod, and the supporting frame mounting part is provided with a mounting part bottom plate matched with the heightening rod and a mounting part top plate matched with the mounting frame; a first driving mechanism mounting cavity used for setting a first driving mechanism is formed between the mounting portion bottom plate and the mounting portion top plate, a matching through hole is formed in the middle of the mounting portion top plate, and a connecting portion used for being in power connection with the first driving mechanism is formed at the position, corresponding to the matching through hole, of the bottom mounting plate. The mounting of the first drive mechanism can be preferably achieved.
Preferably, the periphery of the matching through hole forms a positioning circular groove, and a positioning circular ring which is in clearance fit with the positioning circular groove is formed at the position of the bottom layer mounting disc corresponding to the positioning circular groove. Therefore, the positioning circular groove and the positioning circular ring can form better matching.
Preferably, the first driving mechanism adopts a stepping motor, and an angle sensor is arranged at the first driving mechanism. The acquisition of the angle data can be preferably realized.
Preferably, the bottom installation plate is provided with a hinge frame, the light source installation frame is provided with a hinge shaft for rotatably matching with the hinge frame, and the central axis of the hinge shaft forms the rotation axis of the light source installation frame. The rotatable connection of the underlying mounting plate can be preferably formed.
Preferably, the bottom installation plate is provided with a notch corresponding to the hinge bracket. Therefore, the first linear light source and the second linear light source arranged at the light source mounting frame can be better shielded.
Detailed Description
For a further understanding of the invention, reference should be made to the following detailed description taken in conjunction with the accompanying drawings and examples. It is to be understood that the examples are illustrative of the invention and not limiting.
Example 1
With reference to fig. 1, the present embodiment provides a safety boundary setting system for electric power hoisting operation based on visual processing, which includes:
the image acquisition mechanism can rotate on a horizontal plane and is used for continuously acquiring an environmental image;
the identification unit is used for identifying the charged body in the environment image acquired by the image acquisition mechanism;
the distance measuring mechanism is provided with a measuring reference point, the distance measuring direction of the distance measuring mechanism is always parallel to the optical axis direction of the image collecting mechanism, and the distance measuring mechanism is used for collecting the distance between the charged body and the measuring reference point when the charged body is identified by the identification unit;
the distance measuring device comprises a first linear light source and a second linear light source, wherein the first linear light source is used for generating a first light ray, the second linear light source is used for generating a second light ray, the first linear light source and the second linear light source can synchronously rotate on a vertical surface, the first light ray and the distance measuring direction of the distance measuring mechanism are on the same vertical surface, an included angle is formed between the first light ray and the second light ray, and the plane formed by the first light ray and the second light ray is parallel to the rotating axis of the first linear light source and the rotating axis of the second linear light source;
a calculating unit for calculating the rotation angles of the first and second linear light sources on the horizontal plane and the vertical plane according to the corresponding rotation angles and the corresponding distances of the image capturing mechanisms at the identified first and second charged bodies; and
and the control unit is used for controlling the operation of the image acquisition mechanism, the identification unit, the distance measurement mechanism, the first linear light source, the second linear light source and the calculation unit.
Through the system, two adjacent charged bodies can be identified based on the image acquisition mechanism and the identification unit, the corresponding rotation angles and the corresponding distances of the image acquisition mechanisms at the first and second identified charged bodies can be obtained, the rotation angles of the first linear light source and the second linear light source on the horizontal plane and the vertical plane can be better calculated through the calculation unit, then two light spots can be better formed at the ground by controlling the first linear light source and the second linear light source to operate, the connection line of the two light spots can be better used as a safety boundary line, and therefore the construction of the safety boundary can be better realized.
The distance measuring direction of the first light ray and the distance measuring mechanism is controlled to be on the same vertical plane, so that calculation can be preferably carried out on the vertical plane where the first light ray is located, and the control of the safety distance can be preferably realized; by controlling the plane of the first and second light rays to be parallel to the rotational axis of the first and second linear light sources, the establishment of the desired safety margin line can be preferably achieved.
In this embodiment, range finding mechanism can include laser range finder, and first linear light source and second linear light source can include laser generator, and image acquisition mechanism can include the camera, and the control unit and the computational unit can be based on the singlechip realization.
In this embodiment, the rotation axes of the first and second linear light sources and the measurement reference point are on the same vertical plane. The calculation error can be preferably reduced.
In this embodiment, the image capturing mechanism, the distance measuring mechanism, the first linear light source and the second linear light source are relatively fixed and are all driven to rotate synchronously on the horizontal plane through a first driving mechanism. So that it can have the same initial angle, and thus can simplify the calculation preferably.
Wherein, first actuating mechanism can adopt step motor, so can realize the accurate control of angle better.
In this embodiment, an angle sensor is disposed at the first driving mechanism, and the angle sensor is configured to collect a rotation angle of the first driving mechanism. The acquisition of the angle data can be preferably realized.
In this embodiment, the first linear light source and the second linear light source are relatively fixedly arranged and synchronously driven to rotate on the vertical surface through a second driving mechanism. It is possible to preferably maintain the synchronous operation of the first and second linear light sources.
Wherein, second actuating mechanism can adopt step motor, so can realize the accurate control of angle better.
In this embodiment, the identification unit identifies the charged body in the environmental image based on an image identification algorithm. The processing of the relevant data can be preferably realized.
The system in this embodiment is provided at a stand 10. The integration of the system can be preferably achieved.
With reference to fig. 2, based on the system in the present embodiment, the present embodiment further provides a method for building a safety boundary for electric power hoisting operation based on visual processing, which includes the following steps:
s1, controlling the image acquisition mechanism to rotate and continuously acquiring the environmental image;
step S2, recognizing, by a recognition unit, charged bodies appearing in the environmental image, where the first and second charged bodies recognized by the recognition unit are respectively marked as a first charged body and a second charged body;
step S3, when the first electrified body and the second electrified body are identified, collecting the current rotation angles and recording the current rotation angles as first deflection angles respectively
And a second deflection angle
And acquiring a corresponding first distance by a distance measuring mechanism
And a second pitch
;
Step S4, controlling the image acquisition mechanism to rotate to
At the position of the angle, the angle of the angle is equal to the angle of the angle,
step S5, controlling the first linear light source and the second linear light source to rotate
At the position of the angle, the angle of the angle is equal to the angle of the angle,
wherein the content of the first and second substances,
in order to set the safety distance between the two parts,
the distance between the rotating axes of the first linear light source and the second linear light source and the ground;
and step S6, controlling the first linear light source and the second linear light source to work, and taking a connecting line of projection light spots of the first linear light source and the second linear light source on the ground as a safety boundary line.
Through the steps S1-S6, the vertical distance between the detection point (i.e. the position of the whole system) and the two adjacent charged bodies can be preferably calculated automatically, so that manual measurement is not needed, and the measurement accuracy can be preferably ensured; based on the vertical distance, the safety distance can be preferably introduced, two light spots are formed on the ground through the first linear light source and the second linear light source, and a connecting line of the two light spots can be preferably used as a safety boundary line, so that the establishment of the safety boundary can be preferably realized.
As shown in connection with fig. 3:
in step S1, at the beginning of the measurement, the whole set of system (actually the whole set of system is installed at a device, so it can be installed anywhere better) can be installed at the construction area, and the image capturing mechanism, the first linear light source and the second linear light source can have an initial and same initial angle on the horizontal plane;
then, the image acquisition mechanism can be controlled to rotate by taking the initial angle as 0 degree, and the environmental image can be continuously acquired in the rotating process; specifically, the corresponding environment image can be shot every time the environment image is rotated by an angle;
in step S2, in the process of acquiring the environment image, after each time the environment image is captured, the recognition unit recognizes whether a charged body exists in the center of the image, and thus recognizes the first charged body and the second charged body; and obtaining a first deflection angle corresponding to the first and second charged bodies
And a second deflection angle
And a first pitch
And a second pitch
;
In FIG. 3, the first deflection angle
Is < BAC and a second deflection angle
Is < BAD, first spacing
Is the length of line segment AC, the second pitch
Is the length of the line segment AD;
in step S3, the calculation unit calculates and acquires the angle of rotation required by the first and second linear light sources in the horizontal plane
And the angle of rotation required in the vertical plane
;
In FIG. 3, angle
Is angle BAE, angle
Namely < EAF;
in step S4, with reference to fig. 4, the calculating unit can calculate on the horizontal plane to obtain the angle of < ACD, and then can preferably obtain the angle
Wherein, in the step (A),
meanwhile, the vertical distance L between the measuring point and the connecting line of the first charged body and the second charged body and the length of the line segment AE can be obtained;
in step S5, as shown in connection with fig. 5, the calculation unit can be angled on the vertical plane through the line segment AE
Calculating;
in fig. 5, the safety distance d is the length of the line segment FG, the length of the line segment OG is equal to L, and the length of the line segment OM is the distance h between the rotation axes of the first and second linear light sources and the ground;
in step S6, the first linear light source and the second linear light source are preferably controlled to operate, so as to form a light spot F and a light spot H on the ground, where the connection line between the light spot F and the light spot H is the safety boundary line.
In the process, the image acquisition mechanism, the distance measurement mechanism, the first linear light source and the second linear light source are relatively fixedly arranged and are synchronously driven to rotate on the horizontal plane through the first driving mechanism, so that the image acquisition mechanism, the distance measurement mechanism, the first linear light source and the second linear light source can have the same initial angle, and calculation can be better simplified.
In the process, the first light ray and the distance measuring direction of the distance measuring mechanism are controlled to be on the same vertical plane, so that the angle of ^ BAE can be better taken as the angle
And thus can preferably facilitate the calculation.
Referring to fig. 5, point a is a position of a measurement reference point of the distance measuring mechanism, point M is a position of a rotation axis of the first linear light source and the second linear light source, and point K is a position of a rotation axis of the first linear light source and the second linear light source.
In the above process, by ensuring that the plane formed by the first light ray and the second light ray is parallel to the rotation axes of the first linear light source and the second linear light source, it can be better ensured that the connecting line of the two light spots can be kept parallel to the connecting line of the two charged bodies.
In the present embodiment, the set safety interval d can be set to 6m, for example.
In step S1 of this embodiment, a first driving mechanism drives the image capturing mechanism to rotate; in step S3, the acquisition of the rotation angle of the first driving mechanism is realized by an angle sensor provided at the first driving mechanism. The acquisition of the relevant angle data can be preferably achieved.
In step S2 of the present embodiment, the recognition unit recognizes the charged object based on the image recognition algorithm. The identification of the charged object can be realized preferably by means of existing identification algorithms.
Specifically, the image recognition algorithm in the present embodiment can adopt a YOLO-based target detection algorithm.
Example 2
With reference to fig. 6 to 10, the present embodiment provides a safety boundary building device for electric power hoisting operation based on visual processing, which includes a support 10, and the system in embodiment 1 is arranged at the support 10.
The bracket 10 in this embodiment includes a mounting bracket 11 rotatably disposed on a horizontal plane, the mounting bracket 11 has a bottom mounting plate 11a located at a lower portion and a top mounting plate 11b located at an upper portion, and the bottom mounting plate 11a and the top mounting plate 11b are relatively fixedly disposed;
the top mounting disc 11b is provided with a horizontally arranged top mounting surface 11b1, an image acquisition mechanism 1 and a distance measuring mechanism 2 are arranged at the position of the top mounting surface 11b1, and the distance measuring direction of the distance measuring mechanism 2 is parallel to the optical axis direction of the image acquisition mechanism; the image acquisition mechanism 1 is used for acquiring an environment image, and the distance measurement mechanism 2 is used for acquiring the distance between the environment image and an object in the distance measurement direction to measure;
the bottom layer mounting plate 11a is provided with a light source mounting frame 11c which can rotate on a vertical surface, the light source mounting frame 11c is provided with a light source mounting surface 11c1 which is parallel to the rotation axis of the light source mounting frame, a first linear light source 3 and a second linear light source 4 are arranged on the light source mounting surface 11c1, and an included angle is formed between the first linear light source 3 and the second linear light source 4; the first linear light source 3 and the second linear light source 4 are used to form a projected light spot on the ground.
Through the scheme, the support 10 can be preferably used as a measuring point, the identification of the adjacent charged bodies and the measurement of the distance between the adjacent charged bodies and the measuring point are realized, the distance between the measuring point and the connecting line of the adjacent charged bodies can be preferably acquired based on the parameter, and then 2 projection light spots can be formed on the ground by preferably adjusting the angles of the first linear light source 3 and the second linear light source 4 based on the vertical distance, and the connecting line of the 2 projection light spots can be preferably used as a safety boundary line.
The safety boundary line drawn based on the method can be better parallel to the connecting line of the corresponding adjacent charged bodies, and the safety distance can be better ensured.
A processor 5 is arranged at the mounting rack 11, and the processor 5 is provided with an identification unit, a calculation unit and a control unit;
the identification unit is used for identifying a charged body in the environment image acquired by the image acquisition mechanism, and the ranging mechanism is provided with a measurement reference point and is used for acquiring the distance between the charged body and the measurement reference point when the charged body is identified by the identification unit;
the calculating unit is used for calculating the rotating angles of the first linear light source and the second linear light source on the horizontal plane and the vertical plane according to the corresponding rotating angles and the corresponding distances of the image acquisition mechanisms at the identified first electrified body and the second electrified body;
and the control unit is used for controlling the operation of the image acquisition mechanism, the identification unit, the distance measurement mechanism, the first linear light source, the second linear light source and the calculation unit.
Automatic processing of the relevant data can be preferably achieved.
The rotation axis of the light source mounting bracket 11c is on the same vertical plane as the measurement reference point. The measurement error can be preferably reduced.
The first linear light source 3 is used for generating a first light ray, the second linear light source 4 is used for generating a second light ray, the first light ray and the distance measuring direction of the distance measuring mechanism 2 are on the same vertical plane, and an included angle is formed between the first light ray and the second light ray. The alignment of the angular reference can be preferably achieved.
The mounting frame 11 is rotatably matched with a support frame 12, a first driving mechanism 6 is fixedly arranged at the support frame 12, and the first driving mechanism 6 is used for driving the mounting frame 11 to rotate. The rotatable arrangement of the mounting bracket 11 can be preferably achieved.
The support frame 12 is provided with a heightening rod 12a and a support frame mounting part 12b arranged at the upper part of the heightening rod 12a, and the support frame mounting part 12b is provided with a mounting part bottom plate 12b1 matched with the heightening rod 12a and a mounting part top plate 12b2 matched with the mounting frame 11; a first driving mechanism mounting cavity 12b3 for arranging the first driving mechanism 6 is formed between the mounting part bottom plate 12b1 and the mounting part top plate 12b2, a matching through hole 12b4 is formed in the middle of the mounting part top plate 12b2, and a coupling part 11a1 for power coupling with the first driving mechanism 6 is formed at the position of the bottom mounting plate 11a corresponding to the matching through hole 12b 4. The mounting of the first drive mechanism 6 can be preferably achieved.
The outer periphery of the matching through hole 12b4 forms a positioning circular groove 12b5, and a positioning circular ring 11a2 which is used for being in clearance fit with the positioning circular groove 12b5 is formed at the position, corresponding to the positioning circular groove 12b5, of the bottom layer mounting plate 11 a. Therefore, the positioning circular groove 12b5 and the positioning circular ring 11a2 can form better matching.
The first driving mechanism 6 adopts a stepping motor, and an angle sensor is arranged at the first driving mechanism 6. The acquisition of the angle data can be preferably realized.
The bottom mounting plate 11a is formed with a hinge bracket 11a3, the light source mounting bracket 11c is formed with a hinge shaft 11c1 for rotatably engaging with the hinge bracket 11a3, and a central axis of the hinge shaft 11c1 constitutes a rotation axis of the light source mounting bracket 11 c. The rotatable connection of the sub-mount tray 11a can be preferably formed.
The bottom installation plate 11a is formed with a notch 11a4 corresponding to the hinge bracket 11a 3. Therefore, the first linear light source 3 and the second linear light source 4 disposed at the light source mounting bracket 11c can be preferably not shielded.
The hinge shaft 11c1 is power-coupled to a second driving mechanism 7, and the second driving mechanism 7 employs a stepping motor. It is possible to preferably realize the rotation control of the floor mounting tray 11 a.
The lower part of the supporting frame 12 is provided with a supporting leg 13. So that the deployment is facilitated.
In this embodiment, range finding mechanism can include laser range finder, and first linear light source and second linear light source can include laser generator, and image acquisition mechanism can include the camera, and the treater can be based on the singlechip realization.
The present invention and its embodiments have been described above schematically, without limitation, and what is shown in the drawings is only one of the embodiments of the present invention, and the actual structure is not limited thereto. Therefore, if the person skilled in the art receives the teaching, without departing from the spirit of the invention, the person skilled in the art shall not inventively design the similar structural modes and embodiments to the technical solution, but shall fall within the scope of the invention.