A method and system for detecting finger-type plate docking fault based on deep learning
Deep learning technology is used to analyze the 2D image of the finger plate and calculate the distance between the fingers and the plate, which solves the problems of low detection efficiency and high false alarm rate in the existing technology, and achieves accurate judgment and safety of finger plate faults. promote.
Patent Information
- Application Number
- CN202411074263.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-08-07
AI Technical Summary
The existing technology lacks intuitive status judgment during finger plate detection, which can easily lead to false alarms, and traditional manual detection has low efficiency, making it difficult to find subtle problems under insufficient lighting and fatigue conditions, posing potential safety hazards.
Using a method based on deep learning, digital image analysis and processing is performed on the 2D image of the finger plate to calculate the up and down distance between the fingers and the distance between the left and right plates to determine whether a fault has occurred and improve the accuracy of detection.
It achieves accurate judgment on the status of the finger plate, reduces false alarms, improves detection efficiency and safety, and can identify potential problems without relying on manual inspection.
Smart Images

Figure CN118587222B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail vehicle detection, and more specifically to a finger plate docking fault detection method and system based on deep learning. Background Art
[0002] The straddle-type monorail train is a type of urban rail transit, which has many advantages such as strong adaptability, low noise, small turning radius, strong climbing ability, etc. The finger plate is an important component connecting the track beam. The detection of the finger plate docking status is a routine operation of the daily inspection of the track beam. The purpose is to ensure that the track beams connected by the finger plate are not too close or too far away, and the upper and lower heights are flush, so as to ensure the normal operation of the train on the track.
[0003] At present, there is not much experience in the operation of straddle-type monorails in China, and maintenance work mainly relies on manpower, lacking experience in intelligent detection. Traditionally, the detection of finger plates is carried out by operators using flashlights, human observation and personal experience. Due to the scheduling of train tasks, this inspection can only be carried out in the "window period" in the early morning, and the track mileage is long, the number of finger plates is large, and the inspection workload is huge, which can easily cause visual fatigue to the staff. Minor problems are difficult to detect under insufficient light and fatigue, which may bring potential safety hazards. Therefore, it is an important task to study the automated detection of finger plates to replace manual inspections.
[0004] Existing methods, such as the Chinese patent application with publication number CN108827982B, disclose a method and system for detecting finger plate defects of straddle-type monorail track beams based on deep learning. The invention identifies the position of the finger plate nut through target detection, and then obtains information on whether the nut is missing or rotated, thereby indirectly detecting finger plate defects. However, this method does not intuitively judge the state of the finger plate, but indirectly infers the state of the finger plate through the bolts on the finger plate. There is no proof of the association between loose / missing bolts and the state of the finger plate, so the use value is not high and it is prone to false alarms. Summary of the invention
[0005] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a finger plate docking fault detection method and system based on deep learning. This detection method can calculate the upper and lower finger distances and the left and right plate spacings of the finger plate through traditional digital image analysis and processing methods and deep learning methods for 2D images, and monitor the upper and lower spacings and left and right gaps of the finger plate to determine whether a fault occurs.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A finger plate docking fault detection method based on deep learning comprises the following steps:
[0008] The finger pattern plate image acquisition step is to acquire a visual image with a part of the finger pattern plate taken after being illuminated by light, and to stitch the image together to obtain a complete finger pattern plate image;
[0009] The step of analyzing the vertical distance between fingers is to detect a finger area in the detection model using the finger pattern plate diagram, calculate the finger distance between two adjacent fingers in the finger area, compare the finger distance with a preset vertical distance threshold, and output an abnormal instruction or a normal instruction of the vertical distance between fingers according to the comparison result;
[0010] The finger-type plate image stretching and elimination step includes detecting the bolt hole area of the finger-type plate image in the detection model, segmenting and finding the center of the bolt hole in the bolt hole area, calculating the center distance between two adjacent bolt holes, calculating the stretching coefficient by the center distance and the standard distance, and stretching and eliminating the distance between the two finger-type plates in the finger-type plate image by the stretching coefficient to obtain the actual distance between the two plates;
[0011] The finger-type board left-right analysis step compares the actual distance between the two boards with a preset horizontal distance threshold, and outputs an abnormal instruction or a normal instruction for the left-right spacing between the boards according to the comparison result.
[0012] Furthermore, in the step of stretching and eliminating the finger-type plate image, the bolt hole area is segmented into any bolt hole image through a semantic segmentation model, the center of the bolt hole image is found, and the center coordinates of each bolt hole in the bolt hole area are marked, and the center vertical marking lines of the bolt holes in the same column are drawn in the finger-type plate image according to the center coordinates of each bolt hole, and the center distance is calculated according to two adjacent center vertical marking lines of the same plate, and the center vertical marking line is translated to the center point of the two plates as the midline, and the distance between the midline and the adjacent center vertical marking lines is stretched and eliminated according to the stretching coefficient to obtain the actual distance between the two plates.
[0013] Furthermore, in the step of stretching and eliminating the finger plate image, the bolt hole diagram is subjected to image processing to obtain the outline of the bolt hole diagram, and the minimum circumscribed circle of the maximum outline is fitted, and the center of the minimum circumscribed circle is obtained as the center of the bolt hole diagram.
[0014] Furthermore, in the step of stretching and eliminating the finger plate image, the long axis of the bolt hole in the bolt hole area is taken as the diameter, and the diameter is used as the correction diameter, and the bolt hole is stretched and fitted to obtain a circular bolt hole, and then the circular bolt hole is segmented through a semantic segmentation model to obtain a bolt hole map.
[0015] Furthermore, the center coordinates of the bolt holes in the same column in the finger plate diagram are obtained, and the horizontal coordinate values of the center coordinates of each bolt hole in the column are determined. If each horizontal coordinate value is within the preset pixel difference, the horizontal coordinate values of the column are averaged to obtain the horizontal coordinate mean, and a vertical line is fitted with the horizontal coordinate mean as the vertical marking line of the center of the column.
[0016] Furthermore, the finger plate image stretching elimination step also includes a stretching elimination sub-step.
[0017] In the stretch elimination sub-step, the center distance of each finger-type plate in the finger-type plate diagram is calculated with the standard distance in the corresponding finger-type plate to obtain a stretch coefficient, and then the distance between the center line of each finger-type plate and the adjacent center vertical marking line is calculated by the stretch coefficient to obtain a single-board distance, and the single-board distance of each finger-type plate is accumulated to obtain the actual distance between the two plates.
[0018] Furthermore, in the step of analyzing the upper and lower spacing between fingers, the finger area is binarized by an adaptive threshold to obtain a binary image, straight line detection is performed in the binary image according to restriction factors to obtain the lower edge straight line of each finger as a horizontal marking line, and the distance between each two adjacent horizontal marking lines is calculated as the finger distance.
[0019] Furthermore, the detection model includes a target detection model for detecting fingers and a target detection model for detecting bolt holes.
[0020] Furthermore, the finger pattern plate image acquisition step acquires a visual image with a portion of the finger pattern plate taken after light irradiation, calculates the pixel sum of the entire column in each visual image, compares the pixel sum with a preset threshold, selects pixels smaller than the preset threshold and the corresponding visual image as the target image, and selects the image with a portion of the finger pattern plate in the target image according to the predetermined pixel value for splicing to obtain the finger pattern plate image.
[0021] A finger plate docking fault detection system based on deep learning, comprising:
[0022] The finger pattern plate image acquisition module acquires the visual image with part of the finger pattern plate taken after being illuminated by light, and stitches it to obtain a complete finger pattern plate image;
[0023] A finger spacing analysis module detects a finger area in the detection model using the finger pattern plate diagram, calculates the finger distance between two adjacent fingers in the finger area, compares the finger distance with a preset vertical distance threshold, and outputs an abnormal instruction or a normal instruction of the finger spacing according to the comparison result;
[0024] A finger-type plate image stretching elimination module detects bolt hole areas in the finger-type plate image in the detection model, divides and searches for the centers of the bolt holes in the bolt hole areas, calculates the center distance between two adjacent bolt holes, calculates the stretching coefficient by the center distance and the standard distance, and uses the stretching coefficient to stretch and eliminate the distance between the two finger-type plates in the finger-type plate image to obtain the actual distance between the two plates;
[0025] The finger-type board left-right analysis module compares the actual distance between the two boards with a preset horizontal distance threshold, and outputs an abnormal instruction or a normal instruction for the left-right distance between the boards according to the comparison result.
[0026] The beneficial effects of the present invention are as follows: by processing and analyzing the 2D image of the finger plate, it is determined whether the upper and lower spacing between fingers and the left and right distance between the finger plates are within the standard range, thereby determining the abnormality of the finger plate. Compared with the traditional method of determining the abnormality by the position coordinates of the bolts in the finger plate diagram, the finger plate fault determination method of the present invention is based on 2D images, and uses image processing technology to pre-process the images. Taking a single finger plate as a unit, the upper and lower distance between fingers and the left and right plate spacing of the finger plate are calculated through traditional digital image analysis and processing methods and deep learning methods, thereby realizing the monitoring of the upper and lower spacing and left and right gaps of the finger plate, and improving the accuracy of fault determination. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is the overall flow chart of the present invention;
[0028] Figure 2 It is a flow chart of model training in the present invention;
[0029] Figure 3 It is a finger-type plate diagram with vertical marking lines in the present invention;
[0030] Figure 4 It is a finger-type plate diagram with horizontal marking lines in the present invention;
[0031] Figure 5 is a bolt hole diagram in Example 1 of the present invention;
[0032] Figure 6 is a bolt hole diagram after fitting a circle in Example 1 of the present invention;
[0033] Figure 7 is a bolt hole diagram in Example 2 of the present invention;
[0034] Figure 8 It is a schematic diagram of the system in the present invention. DETAILED DESCRIPTION
[0035] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. The same parts are represented by the same reference numerals. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "bottom surface" and "top surface", "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0036] The existing finger plate fault detection is to identify the position of the finger plate nut through target detection, and then obtain information on whether the nut is missing or rotated, thereby indirectly detecting the finger plate defect. However, this method does not intuitively judge the state of the finger plate, but indirectly infers the state of the finger plate through the bolts on the finger plate. There is no evidence of the association between the loose / missing bolts and the state of the finger plate, so the use value is not high and it is easy to have false alarms. Therefore, the present invention designs this finger plate docking fault detection method based on deep learning, such as Figure 1 As shown, the following steps are included:
[0037] The steps of acquiring the finger plate image are as follows: the finger plate is usually located between adjacent track beams. Since the gap between the track beams cannot be penetrated by light, the entire gap is closer to black than other parts of the image. A visual image with part of the finger plate taken after being illuminated by light is acquired. By calculating the sum of the pixel values of the entire column of the image and finding the part less than the preset threshold, the gap between the track beams can be found. Taking 4000 pixels forward can get the left half of the finger plate, and taking 4000 pixels backward can get the right half of the finger plate. Then the two images are rotated and spliced to obtain a complete finger plate image with a size of 8000*4096, and the beam number where the finger plate is located can be obtained.
[0038] In addition, if Figure 2 As shown, it has data preprocessing and related model pre-training parts. The inspection vehicle uses a line scan camera to shoot the finger plate on the side of the track beam under different lighting conditions. The finger plate image acquisition step is synchronized to splice the finger plate. Then the complete finger plate image is annotated, and the finger part and the circular bolt hole part are annotated. A data set is made and put into yolov8 for training to obtain a target detection network for detecting fingers and bolt holes. Therefore, the detection model includes a target detection model for detecting fingers and a target detection model for detecting bolt holes.
[0039] At the same time, the detected bolt holes are marked and put into the pp-liteseg lightweight semantic segmentation network for training to obtain a semantic segmentation network for segmenting elliptical holes.
[0040] In the step of analyzing the upper and lower spacing between fingers, the finger template image is used to detect the finger area in the target detection model of the detected finger, the finger distance between two adjacent fingers is calculated in the finger area, the finger distance is compared with the preset vertical distance threshold, and the abnormal instruction or normal instruction of the upper and lower spacing between fingers is output according to the comparison result. The purpose is to judge whether the finger template has been displaced by the distance between the fingers.
[0041] The finger-type plate image stretching and elimination step is to detect the bolt hole area of the finger-type plate image in the target detection model for detecting bolt holes, find the center of the bolt hole in the bolt hole area through semantic segmentation network segmentation, calculate the center distance between two adjacent bolt holes, calculate the stretching coefficient through the center distance and the standard distance, and use the stretching coefficient to stretch and eliminate the distance between the two finger-type plates in the finger-type plate image to obtain the actual distance between the two plates;
[0042] The left-right analysis step between the finger-type plates compares the actual distance between the two plates with the preset horizontal distance threshold, and outputs abnormal instructions or normal instructions for the left-right spacing between the plates based on the comparison result. Its purpose is to determine whether the finger-type plates are displaced by the relative horizontal distance between the two finger-type plates.
[0043] The advantage of the present invention is that compared with the traditional method of judging abnormalities by the position coordinates of the bolts in the finger plate diagram, the finger plate fault judgment method of the present invention is based on 2D pictures, and uses image processing technology to pre-process the pictures. Taking a single finger plate as a unit, the traditional digital image analysis and processing method and the deep learning method are used to calculate the upper and lower finger distances and the left and right plate spacings of the finger plate, thereby realizing the monitoring of the upper and lower spacings and the left and right gaps of the finger plate, and improving the accuracy of fault judgment.
[0044] For each large finger-type plate image to be inspected, the image is stretched in the horizontal direction due to the uncertain speed of the inspection vehicle, causing the originally circular bolt holes to appear elliptical. Therefore, a finger-type plate image stretching elimination step is set, and the bolt hole area is segmented into any bolt hole image through the semantic segmentation model, and the center of the bolt hole image is found, and the center coordinates of each bolt hole in the bolt hole area are marked. The center vertical marking line of the bolt holes in the same column is drawn in the finger-type plate image according to the center coordinates of each bolt hole. The center distance is calculated according to the two adjacent center vertical marking lines of the same plate, and the center vertical marking line is translated to the center point of the two plates as the midline. The finger-type plate image stretching elimination step also includes a stretching elimination sub-step.
[0045] In the stretch elimination sub-step, the center distance of each finger-type plate in the finger-type plate diagram is calculated with the standard distance in the corresponding finger-type plate to obtain the stretch coefficient, and then the distance between the center line of each finger-type plate and the adjacent center vertical marking line is calculated by the stretch coefficient to obtain the single-board distance, and the single-board distance of each finger-type plate is accumulated to obtain the actual distance between the two plates.
[0046] Specifically, according to the semantic segmentation results of these ellipses, fit the ellipse closest to the segmentation result, find the center point and major and minor axes of the ellipse, use the image correction method to restore it to the most approximate circle, and obtain the coordinates of the center of the circle (ai, bi);
[0047] For the detected bolt holes, the detection results show the coordinates of the upper left corner of each detection area (the area where each small circle is located) (xi, yi), where i is an integer from 1 to 12, representing the coordinates of the upper left corners of the areas where the 12 small circles on the finger-shaped plate are located. A small image containing only the circular area is generated, which is the bolt hole image. Then, the center coordinates of each bolt hole in the original image can be obtained through (xi+ai,yi+bi); according to the center coordinates of each bolt hole, the center vertical marking line of the same column of bolt holes is drawn in the finger-shaped plate image, and the center vertical marking line is translated to the center point of the two plates as the midline, such as Figure 3 As shown, it includes two center longitudinal marking lines of the left finger template, two center longitudinal marking lines of the right finger template, and one center line of the two finger templates;
[0048] Since the original image is composed of two 4000*4096 images, and the two images may have different degrees of stretching, it is necessary to eliminate the effect of stretching through calculation. For the four fitted vertical lines and the center line of the image, assume that the distance between the left first and the left second is d1, the distance between the left second and the center line is d2, the distance between the center line and the right second is d3, and the distance between the right second and the right first is d4, where d1 and d4 refer to the distance between the two columns of bolt holes on the left and right plates of the template, which is a fixed distance and is fixed after the template is made; d2+d3 can be used to represent the distance between the left and right plates (the actual distance between the two plates);
[0049] There is a beam number in the finger-type plate diagram. The beam number of the finger-type plate to be inspected is read through identification. The actual distances d1' and d4' between the bolt holes are found in the database through the beam number. The stretch coefficient α of the left picture is obtained by d1' / d1, and the stretch coefficient β of the right picture is obtained by d4' / d4. The actual distance dis between the left and right plates (the actual distance between the two plates) is obtained by (d2*α+d3*β). A threshold value (transverse distance threshold) of dis is set when the lateral spacing between the left and right plates is normal. When the obtained dis is less than the lower limit of the transverse distance threshold, it is considered that the lateral distance between the left and right plates is too close, that is, the overlap of the finger-type plate is too large; when dis is greater than the upper limit of the transverse distance threshold, it is considered that the lateral distance between the left and right plates is too far, that is, the overlap of the finger-type plate is insufficient.
[0050] In addition, since the finger-type plate diagram will be stretched, there will be deviations in the bolt holes in the same column, which will have a certain impact on the drawing of the center vertical marking line. Therefore, the center coordinates of the bolt holes in the same column in the finger-type plate diagram are obtained, and the horizontal coordinate values of the center coordinates of each bolt hole in the column are determined. If each horizontal coordinate value is within the preset pixel difference, the horizontal coordinate values of the column are averaged to obtain the horizontal coordinate mean, and the vertical line is fitted with the horizontal coordinate mean as the center vertical marking line of the column. Specifically, the horizontal coordinates of the holes in the same column differ by three pixels. The horizontal coordinates of the three holes in each column are averaged, and the vertical line closest to the center of the three holes in this column can be fitted, such as Figure 3 As shown, a total of 4 center vertical marking lines are fitted.
[0051] In the step of analyzing the upper and lower spacing between fingers, for each finger pattern board image, the finger area is enhanced, denoised using median filtering, and then binarized using an adaptive threshold to obtain a binary image. After binarization, the edge of each finger (especially the lower edge) and the gap between adjacent track beams in the image are black, and the rest are white. Hough transform is used to detect straight lines in the binary image. Straight line detection is performed based on limiting factors to obtain the lower edge straight line of each finger as the horizontal mark line. The limiting factors include the angle, length, spacing of the straight line, and the maximum spacing of the points forming the straight line. The extracted straight lines are sorted from top to bottom, such as Figure 4 As shown, the distance between each two adjacent horizontal marking lines is calculated as the finger distance;
[0052] When the fingers in the middle of the finger plate are evenly distributed, the distance between the fingers is about 8 mm, and the pixel distance is about 190-195 pixels; when two fingers of the finger plate are very close, the largest gap is 15 mm, and the pixel distance is about 221-225 pixels, that is, when the actual deviation is 7 mm, the pixel difference is 30 pixels. According to the actual calculated pixel distance difference of adjacent straight lines, if one of the two intervals of three consecutive straight lines is too large and the other is too small, or one is too small and the other is too large, it is considered that one of the fingers has a docking problem, and it is obviously too close to the lower or upper finger.
[0053] Embodiment 1:
[0054] In order to obtain the coordinates of the center of the circle in the small image, it is necessary to first segment the circular part of the image to perform the next step of circular fitting. Regarding the segmentation of the circular area, the finger template image stretching elimination step is as follows: Figure 5 As shown in FIG. 1 , the stretched bolt hole area (elliptical area) is directly segmented through the image segmentation network to obtain a bolt hole map, and the corresponding bolt hole map obtained by segmentation is binarized. The binary bolt hole map is processed through image processing to obtain the outline of the bolt hole map, as shown in FIG. Figure 6As shown, the minimum circumscribed circle of the maximum contour is fitted, the center of the minimum circumscribed circle is obtained as the center of the bolt hole diagram, and the center is mapped to the finger plate diagram as the center of the bolt hole. According to experimental comparison, the coordinate error of the center of the bolt hole diagram obtained by this method is within 2 pixels.
[0055] Embodiment 2:
[0056] On the basis of Example 1, different sequences of means are used to process the bolt holes. Specifically, the step of eliminating the image stretching of the finger plate is as follows: Figure 7 As shown in the figure, each bolt hole area is directly corrected first, the long axis of the bolt hole in the bolt hole area is taken as the diameter, and the diameter is used as the correction diameter. The elliptical bolt hole is stretched and fitted to obtain a circular bolt hole, and then the circular bolt hole is segmented by the semantic segmentation model to obtain a bolt hole map. According to experimental comparison, the center coordinate error of the bolt hole map obtained by this method is within 2 pixels.
[0057] Since the present invention designs an efficient and accurate finger plate fault detection method, the finger plate docking fault detection system based on deep learning is correspondingly designed, including
[0058] The finger pattern plate image acquisition module acquires the visual image with part of the finger pattern plate taken after being illuminated by light, and stitches it to obtain a complete finger pattern plate image;
[0059] The upper and lower distance analysis module detects the finger area in the detection model using the finger pattern plate image, calculates the finger distance between two adjacent fingers in the finger area, compares the finger distance with the preset vertical distance threshold, and outputs abnormal instructions or normal instructions for the upper and lower distance between fingers according to the comparison result;
[0060] The finger-type plate image stretching elimination module detects the bolt hole area in the finger-type plate image in the detection model, divides and finds the center of the bolt hole in the bolt hole area, calculates the center distance between two adjacent bolt holes, calculates the stretching coefficient by the center distance and the standard distance, and uses the stretching coefficient to stretch and eliminate the distance between the two finger-type plates in the finger-type plate image to obtain the actual distance between the two plates;
[0061] The finger-type board left and right analysis module compares the actual distance between the two boards with the preset horizontal distance threshold, and outputs abnormal instructions or normal instructions for the left and right spacing between the boards based on the comparison results.
[0062] The above are only preferred embodiments of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A finger-type plate docking fault detection method based on deep learning, characterized in that: The steps include: The finger pattern plate image acquisition step is to acquire a visual image with a part of the finger pattern plate taken after being illuminated by light, and to stitch the image together to obtain a complete finger pattern plate image; The step of analyzing the vertical distance between fingers is to detect a finger area in the detection model using the finger pattern plate diagram, calculate the finger distance between two adjacent fingers in the finger area, compare the finger distance with a preset vertical distance threshold, and output an abnormal instruction or a normal instruction of the vertical distance between fingers according to the comparison result; The finger-type plate image stretching and elimination step includes detecting the bolt hole area of the finger-type plate image in the detection model, segmenting and finding the center of the bolt hole in the bolt hole area, calculating the center distance between two adjacent bolt holes, calculating the stretching coefficient by the center distance and the standard distance, and stretching and eliminating the distance between the two finger-type plates in the finger-type plate image by the stretching coefficient to obtain the actual distance between the two plates; The finger-type board left-right analysis step compares the actual distance between the two boards with a preset horizontal distance threshold, and outputs an abnormal instruction or a normal instruction for the left-right spacing between the boards according to the comparison result.
2. According to claim 1, a method for detecting finger-type plate docking failure based on deep learning is characterized in that: The finger-type plate image stretching and elimination step is to segment the bolt hole area into any bolt hole image through a semantic segmentation model, find the center of the bolt hole image, and mark the center coordinates of each bolt hole in the bolt hole area, draw the center vertical marking line of the bolt holes in the same column in the finger-type plate image according to the center coordinates of each bolt hole, calculate the center distance according to two adjacent center vertical marking lines of the same plate, translate the center vertical marking line to the center point of the two plates as the midline, and stretch and eliminate the distance between the midline and the adjacent center vertical marking line according to the stretching coefficient to obtain the actual distance between the two plates.
3. According to the deep learning-based finger-type plate docking fault detection method of claim 2, it is characterized by: The finger plate image stretching elimination step obtains the outline of the bolt hole diagram through image processing, fits the minimum circumscribed circle of the maximum outline, and obtains the center of the minimum circumscribed circle as the center of the bolt hole diagram.
4. According to claim 2, a method for detecting finger-type plate docking failure based on deep learning is characterized in that: In the step of stretching and eliminating the finger plate image, the long axis of the bolt hole in the bolt hole area is taken as the diameter, and the diameter is used as the correction diameter, and the bolt hole is stretched and fitted to obtain a circular bolt hole, and then the circular bolt hole is segmented by a semantic segmentation model to obtain a bolt hole map.
5. A finger plate docking fault detection method based on deep learning according to claim 3 or 4, characterized in that: Get the center coordinates of the bolt holes in the same column in the finger plate diagram, determine the horizontal coordinate values of the center coordinates of each bolt hole in the column, and if each horizontal coordinate value is within the preset pixel difference, average the horizontal coordinate values of the column to obtain the horizontal coordinate mean, and fit a vertical line with the horizontal coordinate mean as the vertical mark line of the center of the column.
6. A finger-type plate docking fault detection method based on deep learning according to claim 3 or 4, characterized in that: The finger plate image stretching and elimination step also includes a stretching and elimination sub-step. In the stretch elimination sub-step, the center distance of each finger-type plate in the finger-type plate diagram is calculated with the standard distance in the corresponding finger-type plate to obtain a stretch coefficient, and then the distance between the center line of each finger-type plate and the adjacent center vertical marking line is calculated by the stretch coefficient to obtain a single-board distance, and the single-board distance of each finger-type plate is accumulated to obtain the actual distance between the two plates.
7. According to claim 1, a method for detecting finger-type plate docking failure based on deep learning, characterized in that: In the step of analyzing the upper and lower spacing between fingers, the finger area is binarized by an adaptive threshold to obtain a binary image, straight line detection is performed in the binary image according to a limiting factor to obtain the lower edge straight line of each finger as a horizontal marking line, and the distance between each two adjacent horizontal marking lines is calculated as the finger distance.
8. The method for detecting finger-type plate docking failure based on deep learning according to claim 7, characterized in that: The detection model includes a target detection model for detecting fingers and a target detection model for detecting bolt holes.
9. The method for detecting finger-type plate docking failure based on deep learning according to claim 1, characterized in that: The finger pattern plate image acquisition step acquires a visual image with a portion of the finger pattern plate taken after light irradiation, calculates the pixel sum of the entire column in each visual image, compares the pixel sum with a preset threshold, selects pixels less than the preset threshold and the corresponding visual image as the target image, and selects the image with a portion of the finger pattern plate in the target image according to the predetermined pixel value for splicing to obtain the finger pattern plate image.
10. A finger-type plate docking fault detection system based on deep learning, characterized in that: include The finger pattern plate image acquisition module acquires the visual image with part of the finger pattern plate taken after being illuminated by light, and stitches it to obtain a complete finger pattern plate image; A finger spacing analysis module detects a finger area in the detection model using the finger pattern plate diagram, calculates the finger distance between two adjacent fingers in the finger area, compares the finger distance with a preset vertical distance threshold, and outputs an abnormal instruction or a normal instruction of the finger spacing according to the comparison result; A finger-type plate image stretching elimination module detects bolt hole areas in the finger-type plate image in the detection model, divides and searches for the centers of the bolt holes in the bolt hole areas, calculates the center distance between two adjacent bolt holes, calculates the stretching coefficient by the center distance and the standard distance, and uses the stretching coefficient to stretch and eliminate the distance between the two finger-type plates in the finger-type plate image to obtain the actual distance between the two plates; The finger-type board left-right analysis module compares the actual distance between the two boards with a preset horizontal distance threshold, and outputs an abnormal instruction or a normal instruction for the left-right distance between the boards according to the comparison result.
