Method for establishing surface morphology of cable through laser line scanning
Technical Field
The invention relates to the field of cable detection, in particular to a method for establishing the surface morphology of a cable through laser line scanning.
Background
At present, the detection method of apparent damage of the cable is roughly divided into a manual detection method, a laser scanning method, a machine learning neural network detection method and a machine vision defect detection method, wherein the manual detection method is to detect the surface of the cable through human eyes, is time-consuming and labor-consuming, has potential safety hazards, is subjective to cable damage, is easy to miss detection or false detection, and is not high in efficiency.
The laser scanning method is an automatic detection method for the surface defects of the cable, the collection principle is that the laser beam is emitted, the reflected laser is received, the time and the distance in the laser are measured, the defects are not detected visually, the time for processing and analyzing the three-dimensional space is long, the system has larger constitution volume, the equipment is expensive, and the popularization and the application are difficult.
The machine learning neural network detection method mainly comprises a BP neural network, an SCG neural network and an RBF neural network, wherein a finite element analysis model is established mainly through numerical simulation, and the position where damage occurs is estimated by inputting specific parameters and load working conditions of a cable and applying a neural network algorithm; under the condition of damage of different degrees, the identification precision is different, and the stability is weaker; when data is processed, the number of iterations is large, the workload is large, and the existing algorithm is not mature.
The above methods have the limitations of low efficiency, high cost, insufficient intelligence degree, etc.
Disclosure of Invention
In order to overcome the defects in the prior art, the method for establishing the surface morphology of the cable through laser line scanning provided by the invention solves the problem of low efficiency of the existing detection method.
In order to achieve the purpose of the invention, the invention adopts the technical scheme that:
a method for establishing the surface morphology of a cable by laser line scanning is provided, comprising the steps of:
s1, constructing a scanning robot: the laser line emitters are respectively arranged on four sides of the inner side of the cable climbing vehicle, so that all the laser line emitters are on the same plane and are vertical to a target cable; installing a camera on each of four sides of the inner side of the cable climbing vehicle, so that all the cameras are on the same plane and are parallel to the plane where the laser emitter is located; the included angles between the sight lines of all the cameras and the target cable are equal;
s2, emitting laser lines to the target cable through the laser line emitter, and acquiring the projection of the laser lines on the surface of the target cable through the camera to obtain four groups of projection drawings;
s3, acquiring the entity coordinates of the target cable where the projection drawing is located through the positions of the cameras to obtain four sets of section coordinates;
s4, splicing the projection drawings based on the four sets of section coordinates to obtain an outer surface projection model of the target cable;
and S5, obtaining coordinates and sizes of the poles and the catastrophes in the external surface projection model of the target cable, and completing the detection of the cable surface.
Further, in step S1, the distance between two adjacent laser line emitters is equal, and the area of the laser line projected on the target cable by each laser line emitter is one-fourth of the length of the target cable cross-section circle.
Further, the specific method of step S3 is:
a space coordinate system is established by taking the axis direction in the scanning robot as the z axis and the direction of the laser ray emitter as the x axis, and the z-axis coordinate z of the target cable where the projection drawing is located is obtained according to the position of the camera*(ii) a According to the formula:
acquiring the physical coordinate (x) of a target cable where any target point of the projection drawing is positioned*,y*) Further obtain the physical coordinates (x) of the target cable where any target point of the projection drawing is located*,y*,z*) (ii) a Where cot represents the cotangent function; alpha is an included angle between a connecting line of the target point and the optical center of the camera and a central axis of the visual field of the camera; csc represents a cosecant function; theta represents the included angle between the central axis of the visual field of the camera and the laser plane; (u, v) are coordinates of the target point in the image coordinate system; l is from the optical center of the camera to the laser planeDistance of the faces; cos is a cosine function; f is the focal length of the camera when aimed at the target point.
The invention has the beneficial effects that: the method comprises the steps of emitting a laser line to a cable, collecting the projection of the laser line on the cable appearance, converting the coordinates of a camera system negative film to obtain the coordinates of the cable appearance entity, and further establishing a three-dimensional model or a point cloud model.
Drawings
FIG. 1 is a schematic flow diagram of the process;
FIG. 2 is a schematic view of the relative position of the scanning robot and the cable;
FIG. 3 is a schematic diagram of coordinate system transformation;
FIG. 4 is a perspective view of the cable without breakage;
FIG. 5 is a perspective view of a cable with a break;
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
As shown in fig. 1 and 2, the method for establishing the surface morphology of the cable by laser line scanning comprises the following steps:
s1, constructing a scanning robot: the laser line emitters are respectively arranged on four sides of the inner side of the cable climbing vehicle, so that all the laser line emitters are on the same plane and are vertical to a target cable (the cable also is a pull cable); installing a camera on each of four sides of the inner side of the cable climbing vehicle, so that all the cameras are on the same plane and are parallel to the plane where the laser emitter is located; the included angles between the sight lines of all the cameras and the target cable are equal;
s2, emitting laser lines to the target cable through the laser line emitter, and acquiring the projection of the laser lines on the surface of the target cable through the camera to obtain four groups of projection drawings;
s3, acquiring the entity coordinates of the target cable where the projection drawing is located through the positions of the cameras to obtain four sets of section coordinates;
s4, splicing the projection drawings based on the four sets of section coordinates to obtain an outer surface projection model of the target cable;
and S5, obtaining coordinates and sizes of the poles and the catastrophes in the external surface projection model of the target cable, and completing the detection of the cable surface.
In step S1, the distance between two adjacent laser line emitters is equal, and the area of the laser line projected on the target cable by each laser line emitter is a quarter of the length of the target cable cross-section circle.
The specific method of step S3 is: as shown in fig. 3, a space coordinate system is established by taking the axial direction in the scanning robot as the z-axis and the direction of the laser ray emitter as the x-axis, and the z-axis coordinate z of the target cable where the projection drawing is located is obtained according to the position of the camera*(ii) a According to the formula:
acquiring the physical coordinate (x) of a target cable where any target point of the projection drawing is positioned*,y*) Further obtain the physical coordinates (x) of the target cable where any target point of the projection drawing is located*,y*,z*) (ii) a Where cot represents the cotangent function; alpha is an included angle between a connecting line of the target point and the optical center of the camera and a central axis of the visual field of the camera; csc represents a cosecant function; theta represents the included angle between the central axis of the visual field of the camera and the laser plane; (u, v) are coordinates of the target point in the image coordinate system; l is camera lightThe distance from the center to the laser plane; cos is a cosine function; f is the focal length of the camera when aimed at the target point.
In one embodiment of the invention, the laser line emitter and the camera form a camera system, and the camera system replaces the actual defect situation at the periphery of the cable section by the apparent projection of the laser line on the cable, so that each layer of the cable section is a layer of laser line in the camera system, and the scanning result is a cable outside graph consisting of a plurality of laser curve sections in succession; and (3) performing coordinate processing on the imaged image after scanning by using a mathematical method, and constructing each section acquired by the camera system into an actual appearance model of the cable through coordinate conversion. The moving scanning path of the camera system is the axis of the cable, namely a smooth curve. The cross sections scanned by the camera system are required to be connected in series according to the line shape (axis, which can be directly extracted by photographing) of the cable, the center line of the cable or the centroid position of each cross section is found, the coordinate system is changed all the time as the camera system moves all the time, and the whole three-dimensional model can be obtained through coordinate conversion and fusion.
In summary, the invention emits laser lines to the cable, collects the projection of the laser lines on the cable appearance, and converts the coordinates by calculating the negative coordinates of the camera system to obtain the coordinates of the cable appearance entity, and further establishes a three-dimensional model or a point cloud model, as shown in fig. 4, if the cable appearance is not damaged, the projection of the laser lines on the cable should be a smooth and continuous curve, as shown in fig. 5, if the cable is defective, a corner defect exists at a certain point of the cable, the projection of the laser lines has a pole or a mutation point, the damaged position of the cable surface can be known by the coordinates of the pole and the mutation point in the three-dimensional model or the point cloud model, and the size of the damaged area can be calculated by the coordinates of the damaged position, thereby realizing the rapid detection of the cable.