A diamond wire light spot detection method and system based on image recognition

Through the diamond line light spot detection method based on image recognition, the problem of low detection efficiency and accuracy in the traditional detection method is solved, and more efficient and accurate diamond line disconnection detection is achieved.

CN119359722BActive Publication Date: 2025-03-04BAOTOU JINHENG RARE EARTH YONGCONG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411921971.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-03-04
Estimated Expiration
2044-12-25

AI Technical Summary

Technical Problem

Traditional diamond wire disconnection detection methods are susceptible to environmental and human factors, which makes it difficult to ensure the accuracy and stability of the detection results, and require a lot of manpower, and the detection efficiency and accuracy are low.

Method used

The diamond line light spot detection method based on image recognition is adopted. By setting the optimal imaging arc trajectory, identifying the maximum spot distance, positioning shooting and light spot shooting, combined with the preset threshold segmentation algorithm and spot inspection, efficient detection of diamond line fracture is achieved.

Benefits of technology

It improves the detection efficiency and accuracy of the diamond wire disconnection detection process, reduces manpower investment, and enhances the stability and reliability of the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359722B_ABST
    Figure CN119359722B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of diamond wire production technology, a diamond wire light spot detection method and system based on image recognition, including: positioning and shooting the diamond wire area to be inspected according to the best camera angle to obtain a diamond wire position set, shooting the light spot of the diamond wire area to be inspected according to the best camera angle, the best laser beam center angle and the shooting frame rate to obtain a light spot detection map, judging whether there are light spot blocks in all the lines to be inspected, if not, summarizing the primary light spot block set, performing light spot inspection on the diamond wire area to be inspected according to the inspection laser beam center angle, the defective line to be inspected and the best camera angle to obtain a secondary light spot block set, and performing secondary inspection on the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set. The present invention can improve the detection efficiency and detection accuracy in the process of diamond wire break detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of diamond wire production, and in particular to a diamond wire light spot detection method and system based on image recognition. Background Art

[0002] In the production process of diamond wire, the surface quality and wire breakage of diamond wire directly affect the performance and life of the product. Therefore, diamond wire breakage detection is an important link in the production process of diamond wire.

[0003] Traditional methods for detecting broken diamond wires mostly rely on manual inspection or the use of contact sensors, but these methods are easily affected by environmental and human factors, making it difficult to ensure the accuracy and stability of the detection results, and requiring a lot of manpower. Therefore, there are problems of low detection efficiency and accuracy in the process of detecting broken diamond wires. Summary of the invention

[0004] The present invention provides a diamond wire light spot detection method and system based on image recognition, the main purpose of which is to improve the detection efficiency and detection accuracy in the process of diamond wire breakage detection.

[0005] To achieve the above-mentioned purpose, the present invention provides a diamond wire spot detection method based on image recognition, comprising: setting an optimal camera arc trajectory according to a preset optimal camera distance and a center detection diamond wire of a diamond wire area to be detected, wherein the center detection diamond wire refers to a diamond wire to be detected that passes through the center of the diamond wire area to be detected; selecting to-be-determined camera positions at equal intervals in sequence on the optimal camera arc trajectory, and setting a to-be-determined camera angle according to the to-be-determined camera position and the center of the area; using the center detection diamond wire to perform symmetrical assignment of positions to the to-be-determined camera position to obtain a to-be-determined laser beam center position; performing an irradiation angle sliding test on the diamond wire area to be detected according to the to-be-determined laser beam center position and the to-be-determined camera angle to obtain a visible light spot distance, Summarize the visible light spot distances of each pending camera position to obtain a visible light spot distance set; identify the maximum light spot distance in the visible light spot distance set, and identify the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance; locate and shoot the diamond wire area to be inspected according to the optimal camera angle to obtain a diamond wire position set; perform light spot shooting on the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and a preset shooting frame rate to obtain a light spot detection map; use the diamond wire position set to extract the line position set to be inspected from the light spot detection map; determine whether the line positions to be inspected in the line position set to be inspected all have preset light spot blocks according to a preset threshold segmentation algorithm; if the line positions to be inspected in the line position set to be inspected If there are preset spot blocks for all the positions to be inspected in the line position set, then return to the above step of photographing the diamond wire area to be inspected with light spots according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate; if there are not preset spot blocks for all the lines to be inspected in the line position set to be inspected, then summarize the spot blocks to obtain a primary spot block set, and identify the defective lines to be inspected in the line position set to be inspected; move the optimal laser beam center angle according to the preset inspection movement angle to obtain the inspection laser beam center angle, perform spot inspection on the diamond wire area to be inspected according to the inspection laser beam center angle, the defective lines to be inspected and the optimal camera angle, and obtain a secondary spot block set; perform spot inspection on the diamond wire area to be inspected according to the primary spot block set and the secondary spot block set. The diamond wire area is inspected for secondary inspection. Optionally, the optimal camera arc trajectory is set according to the preset optimal camera distance and the center detection diamond wire of the diamond wire area to be inspected, including: identifying the spatial plane to be inspected of the diamond wire area to be inspected; determining the vertical plane of the area passing through the center detection diamond wire and perpendicular to the spatial plane to be inspected; determining the optimal camera semicircle trajectory in the vertical plane of the area according to the center of the area and the optimal camera distance; identifying the spatial inclination angle of the spatial plane to be inspected, setting the first ray and the second ray in the vertical plane of the area according to the spatial inclination angle and the preset first angle and second angle; intercepting the optimal camera arc trajectory on the optimal camera semicircle trajectory according to the first ray and the second ray.

[0006] Optionally, setting the to-be-determined camera angle according to the to-be-determined camera position and the area center includes: connecting the to-be-determined camera position and the area center to obtain a target camera line of sight; at the to-be-determined camera position, adjusting the camera angle according to the target camera line of sight to obtain the to-be-determined camera angle.

[0007] Optionally, the method of using the center detection diamond line to symmetrically assign positions to the determined camera positions to obtain the center position of the laser beam to be determined includes: constructing a center vertical line passing through the center of the area in the vertical plane of the area; making a symmetrical laser line of sight of the target camera line of sight in the vertical plane of the area according to the center vertical line, wherein the center vertical line is the bisector of the angle between the target camera line of sight and the symmetrical laser line of sight; identifying the starting point of the laser line of sight of the symmetrical laser line of sight, and taking the starting point of the laser line of sight as the center position of the laser beam.

[0008] Optionally, the irradiation angle sliding test is performed on the diamond wire area to be inspected according to the to-be-determined laser beam center position and the to-be-determined camera angle to obtain the visible light spot distance, including: performing an emission angle sliding deflection on a pre-constructed parallel laser beam emitting device at the to-be-determined laser beam center position to obtain a dynamic laser emission beam; irradiating the diamond wire area to be inspected with the dynamic laser emission beam, and continuously photographing the diamond wire area to be inspected according to the to-be-determined camera angle to obtain a laser reflection image set; identifying a visible reflection image set in the laser reflection image set, wherein the visible reflection image set refers to an image set in which all the diamond wires to be inspected have light spot blocks; identifying a first edge reflection image and a second edge reflection image in the visible reflection image set; identifying a first light spot position of the light spot block in the first edge reflection image and a second light spot position of the second edge reflection image; and determining the visible light spot distance according to the first light spot position and the second light spot position.

[0009] Optionally, positioning and photographing the diamond wire area to be inspected according to the optimal camera angle to obtain a diamond wire position set includes: photographing the diamond wire area to be inspected according to the optimal camera angle to obtain a positioning photographed image; identifying an image pixel point set of the diamond wire to be inspected in the positioning photographed image; identifying an image pixel position set of the image pixel point set, determining the diamond wire position according to the image pixel position set, and obtaining a diamond wire position set.

[0010] Optionally, using the diamond line position set to extract the line position set to be inspected in the light spot detection image includes: extracting diamond line positions in sequence from the diamond line position set; identifying a pixel set to be inspected in the light spot detection image according to the diamond line positions; and performing pixel aggregation on the pixel set to be inspected to obtain the line position set to be inspected.

[0011] Optionally, the identifying of defective line positions to be inspected in the line position set to be inspected includes: extracting the line positions to be inspected in sequence in the line position set to be inspected; judging whether there is a light spot block in the line position to be inspected; if there is a light spot block in the line position to be inspected, returning to the above step of extracting the line positions to be inspected in sequence in the line position set to be inspected; if there is no light spot block in the line position to be inspected, confirming the line position to be inspected as a defective line position to be inspected.

[0012] Optionally, the secondary inspection of the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set includes: calculating the inspection laser beam center angle according to the inspection moving angle and the optimal laser beam center angle; calculating the moving light spot line according to the inspection laser beam center angle, the spatial plane to be inspected and the optimal camera angle using a preset laser reflection rule; identifying the moving light spot intersection set of the moving light spot line and the preset diamond wire set in the diamond wire area to be inspected; identifying the light spot pixel block set of the moving light spot intersection set according to the optimal camera angle; identifying the defective pixel blocks of the defective line position to be inspected in the light spot pixel block set; eliminating the defective pixel blocks in the light spot pixel block set to obtain the inspection pixel block set; judging Determine whether the secondary light spot block set and the inspection pixel block set meet the preset pixel position correspondence rule; if the secondary light spot block set and the inspection pixel block set do not meet the pixel position correspondence rule, then perform a position control error warning; if the secondary light spot block set and the inspection pixel block set meet the pixel position correspondence rule, then determine whether the primary light spot block set and the secondary light spot block set meet the preset diamond line position correspondence rule; if the primary light spot block set and the secondary light spot block set do not meet the diamond line position correspondence rule, then perform a multi-line position break alarm; if the primary light spot block set and the secondary light spot block set meet the diamond line position correspondence rule, then identify the diamond line position to be inspected corresponding to the defective line position to be inspected, and perform a single line position break alarm for the diamond line position to be inspected.

[0013] To achieve the above-mentioned purpose, the present invention also provides a diamond wire spot detection system based on image recognition, including: a module for assigning a center position of a to-be-determined laser beam, which is used to set an optimal imaging arc trajectory according to a preset optimal imaging distance and a center detection diamond wire of a to-be-detected diamond wire area, wherein the center detection diamond wire refers to a to-be-detected diamond wire passing through the center of the area of ​​the to-be-detected diamond wire area; selecting to-be-determined imaging positions in sequence at equal intervals on the optimal imaging arc trajectory, and setting the to-be-determined imaging angle according to the to-be-determined imaging positions and the area center; using the center detection diamond wire to symmetrically assign positions to the to-be-determined imaging positions, and obtaining to the center position of the laser beam to be determined; an irradiation angle sliding test module, used to perform an irradiation angle sliding test on the diamond wire area to be inspected according to the center position of the laser beam to be determined and the camera angle to be determined, to obtain a visible light spot distance, and to summarize the visible light spot distances of each camera position to be determined to obtain a visible light spot distance set; a light spot cycle shooting module, used to identify the maximum light spot distance in the visible light spot distance set, and identify the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance; according to the optimal camera angle, the diamond wire area to be inspected is positioned and photographed to obtain a diamond wire position set; according to the The optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate are used to shoot the light spot of the diamond wire area to be inspected to obtain a light spot detection map; the diamond wire position set is used to extract the line position set to be inspected from the light spot detection map; according to the preset threshold segmentation algorithm, it is determined whether the line positions to be inspected in the line position set to be inspected all have preset light spot blocks; if the line positions to be inspected in the line position set to be inspected all have preset light spot blocks, then the step of shooting the light spot of the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate is returned; the diamond wire area to be inspected The domain secondary inspection module is used for aggregating the light spot blocks to obtain a primary light spot block set if not all the lines to be inspected in the line position set to be inspected have preset light spot blocks, and identifying the defective lines to be inspected in the line position set to be inspected; moving the optimal laser beam center angle according to the preset inspection movement angle to obtain the inspection laser beam center angle, performing a light spot inspection on the diamond wire area to be inspected according to the inspection laser beam center angle, the defective lines to be inspected and the optimal camera angle to obtain a secondary light spot block set; performing a secondary inspection on the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set.

[0014] In order to solve the above problem, the present invention also provides an electronic device, which includes: a memory storing at least one instruction; and a processor executing the instructions stored in the memory to implement the above-mentioned diamond wire light spot detection method based on image recognition.

[0015] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned diamond wire light spot detection method based on image recognition.

[0016] In order to solve the problem described in the background technology, the present invention first needs to determine the center position of the laser beam to be determined. When determining the center position of the laser beam to be determined, it is necessary to first set the best imaging arc trajectory according to the best imaging distance and the center detection diamond wire of the diamond wire area to be detected, and then select the imaging positions to be determined in sequence at equal intervals on the best imaging arc trajectory, so that the imaging position angle to be determined can be set according to the imaging position to be determined and the center of the area. At this time, the center detection diamond wire can be used to perform symmetrical assignment of positions to the imaging positions to obtain the center position of the laser beam to be determined. Since the larger the visible light spot distance, the larger the moving range of the light spot captured by the camera, therefore, when determining the best imaging angle and the best Before determining the optimal laser beam center angle, it is necessary to first perform an irradiation angle sliding test on the diamond wire area to be inspected according to the pending laser beam center position and the pending camera angle to obtain a visible light spot distance, and then summarize the visible light spot distances of each pending camera position to obtain a visible light spot distance set. At this time, the maximum light spot distance can be identified in the visible light spot distance set, and the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance can be identified. After determining the optimal camera angle and the optimal laser beam center angle, since the diamond wire position set can determine the pixel position of the light spot block, the recognition range of the light spot block is greatly reduced. Therefore, it is necessary to first determine the maximum light spot distance according to the optimal camera angle. The diamond wire area to be inspected is positioned and photographed to obtain a diamond wire position set, and then the diamond wire area to be inspected is photographed with light spots according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate to obtain a light spot detection map. Finally, the diamond wire position set can be used to directly extract the line position set to be inspected from the light spot detection map. At this time, it is only necessary to determine whether the line positions to be inspected in the line position set to be inspected all have preset light spot blocks according to the preset threshold segmentation algorithm. If the line positions to be inspected in the line position set to be inspected all have preset light spot blocks, it means that there is no diamond wire breakage, and directly return to photograph the diamond wire area to be inspected with light spots. If the line positions to be inspected If the preset spot blocks do not exist in all the lines to be inspected in the position set, it indicates that the diamond wire is broken, so it is necessary to summarize the spot blocks to obtain a primary spot block set, and then identify the defective lines to be inspected in the line set to be inspected. In order to conduct a secondary confirmation of the defective lines to be inspected, the optimal laser beam center angle can be moved according to the inspection movement angle to obtain the inspection laser beam center angle, and then the diamond wire area to be inspected can be inspected according to the inspection laser beam center angle, the defective line to be inspected and the optimal camera angle to obtain a secondary spot block set. At this time, the diamond wire area to be inspected can be inspected for a second time according to the primary spot block set and the secondary spot block set. Therefore, the present invention can improve the detection efficiency and detection accuracy in the process of diamond wire break detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of a flow chart of a diamond wire light spot detection method based on image recognition provided by an embodiment of the present invention; Figure 2 A top view of a diamond wire region to be tested provided by an embodiment of the present invention; Figure 3 A side view of a diamond wire area to be inspected provided by an embodiment of the present invention; Figure 4 A functional module diagram of a diamond wire light spot detection system based on image recognition provided by one embodiment of the present invention; Figure 5 A schematic structural diagram of an electronic device for implementing the diamond wire light spot detection method based on image recognition provided by an embodiment of the present invention.

[0018] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0019] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0020] The embodiment of the present application provides a diamond wire light spot detection method based on image recognition. The execution subject of the diamond wire light spot detection method based on image recognition includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the diamond wire light spot detection method based on image recognition can be executed by software or hardware installed in a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0021] Reference Figure 1 FIG. 2 is a flow chart of a diamond wire light spot detection method based on image recognition provided by an embodiment of the present invention. In this embodiment, the diamond wire light spot detection method based on image recognition includes: S1, setting an optimal camera arc trajectory for the diamond wire according to a preset optimal camera distance and the center of the diamond wire area to be detected.

[0022] It can be explained that the optimal camera distance refers to the optimal distance for the camera to shoot the diamond wire, which can be set by the user, for example, it can be 1m. The diamond wire area to be detected refers to the spatial plane area composed of the diamond wires to be detected, which can be referred to Figure 2 As shown, Figure 2 There are 11 diamond wires to be inspected that form the diamond wire area to be inspected. The optimal camera arc trajectory refers to the arc trajectory formed by the best camera points of the camera. In the diamond wire production line, the fracture detection of the diamond wire is a process. Figure 2 The 11 diamond wires to be inspected will be wound around the drum under the drive of the drum. While winding, the moving diamond wires will be photographed by a camera.

[0023] In detail, the center detection diamond wire refers to the diamond wire to be detected that passes through the center of the area of ​​the diamond wire to be detected. The area center refers to the center of the area of ​​the diamond wire to be detected, that is, Figure 2 The sixth diamond line from left to right in the middle. Figure 2 It is a top view of the diamond wire area to be tested.

[0024] In an embodiment of the present invention, the optimal camera arc trajectory is set according to a preset optimal camera distance and a center detection diamond wire of a diamond wire area to be inspected, comprising: identifying a spatial plane to be inspected of the diamond wire area to be inspected; determining a vertical plane of the area passing through the center detection diamond wire and perpendicular to the spatial plane to be inspected; determining an optimal camera semicircle trajectory within the vertical plane of the area according to the center of the area and the optimal camera distance; identifying a spatial inclination angle of the spatial plane to be inspected, and setting a first ray and a second ray within the vertical plane of the area according to the spatial inclination angle and preset first and second angles; and intercepting an optimal camera arc trajectory on the optimal camera semicircle trajectory according to the first ray and the second ray.

[0025] It can be explained that the spatial plane to be inspected refers to the spatial plane where the diamond wire area to be inspected is located. The optimal camera semicircular trajectory refers to a semicircular trajectory determined in the vertical plane of the area (on the positive side of the diamond wire to be inspected) with the center of the area as the center and the optimal camera distance as the radius. The spatial inclination angle refers to the inclination angle of the spatial plane to be inspected in space, the first angle refers to the angle between the first ray intercepting the optimal arc trajectory and the spatial plane to be inspected, the second angle refers to the angle between the second ray intercepting the optimal arc trajectory and the spatial plane to be inspected, the first ray refers to the first ray intercepting the optimal arc trajectory, and the second ray refers to the second ray intercepting the optimal arc trajectory. For example: the angle between the spatial plane to be inspected and the horizontal plane is 45 degrees, the first angle is 15 degrees, and the second angle is 30 degrees, then the angle between the first ray and the horizontal plane is 60 degrees, and the angle between the second ray and the horizontal plane is 135-30 degrees.

[0026] S2. Selecting the to-be-determined imaging positions in sequence and at equal intervals on the optimal imaging arc trajectory, and setting the to-be-determined imaging angles according to the to-be-determined imaging positions and the center of the region.

[0027] It can be explained that the to-be-determined camera position refers to the camera shooting position to be selected. The to-be-determined camera angle refers to the camera position and camera azimuth angle to be selected.

[0028] In an embodiment of the present invention, setting a pending camera angle according to the pending camera position and the area center includes: connecting the pending camera position and the area center to obtain a target camera line of sight; at the pending camera position, adjusting the camera angle according to the target camera line of sight to obtain a pending camera angle.

[0029] It can be explained that the target camera sight line is a directed line segment connecting the pending camera position and the center of the region, and the direction is that the pending camera position points to the center of the region. The camera direction corresponding to the pending camera angle is in the same direction as the target camera sight line.

[0030] S3. Use the center detection diamond wire to perform symmetrical assignment of the position of the camera to be determined, and obtain the center position of the laser beam to be determined.

[0031] It can be explained that the to-be-determined laser beam center position refers to the laser beam center position symmetrical to the to-be-determined camera position. The laser beam light source (parallel light source) is arranged in a line segment and can emit a laser surface of a certain width.

[0032] In an embodiment of the present invention, the use of the center detection diamond line to perform symmetrical position assignment on the pending camera position to obtain the pending laser beam center position includes: constructing a center vertical line passing through the center of the area in the vertical plane of the area; making a symmetrical laser line of sight of the target camera line of sight in the vertical plane of the area according to the center vertical line, wherein the center vertical line is the bisector of the angle between the target camera line of sight and the symmetrical laser line of sight; identifying the laser line of sight starting point of the symmetrical laser line of sight, and using the laser line of sight starting point as the laser beam center position.

[0033] It can be understood that the symmetrical laser sight line refers to a laser line that is symmetrical to the target camera sight line about the central vertical line (being the middle light source emission line of the laser beam light source). The starting point of the laser sight line refers to the emission position of the symmetrical laser sight line, that is, the middle point of the laser beam light source.

[0034] S4. Perform an irradiation angle sliding test on the diamond wire area to be inspected according to the to-be-determined laser beam center position and the to-be-determined camera angle to obtain a visible light spot distance, and summarize the visible light spot distances of each to-be-determined camera position to obtain a visible light spot distance set.

[0035] It can be explained that the visible light spot distance refers to the distance that the light spot block on the diamond wire to be tested moves during the illumination angle sliding test.

[0036] In an embodiment of the present invention, the irradiation angle sliding test is performed on the diamond wire area to be inspected according to the to-be-determined laser beam center position and the to-be-determined camera angle to obtain the visible light spot distance, including: performing an emission angle sliding deflection on a pre-constructed parallel laser beam emitting device at the to-be-determined laser beam center position to obtain a dynamic laser emission beam; irradiating the diamond wire area to be inspected with the dynamic laser emission beam, and continuously photographing the diamond wire area to be inspected according to the to-be-determined camera angle to obtain a laser reflection image set; identifying a visible reflection image set in the laser reflection image set, wherein the visible reflection image set refers to an image set in which all the diamond wires to be inspected have light spot blocks; identifying a first edge reflection image and a second edge reflection image in the visible reflection image set; identifying a first light spot position of the light spot block in the first edge reflection image and a second light spot position of the second edge reflection image; and determining the visible light spot distance according to the first light spot position and the second light spot position.

[0037] It should be understood that the emission angle sliding deflection refers to sliding deflection of the laser angle emitted by the parallel laser beam emitting device, and the dynamic laser emission line beam refers to the laser emission line beam obtained during the emission angle sliding deflection process. During the emission angle sliding deflection process, the camera may not be able to capture a complete laser reflection image due to excessive deflection angle, so it is necessary to identify the visible reflection image set.

[0038] Furthermore, the first edge reflection image refers to the first visible reflection image in the visible reflection image set, the second edge reflection image refers to the last visible reflection image in the visible reflection image set, the first light spot position refers to the light spot position on the center detection diamond line in the first edge reflection image, and the second light spot position refers to the light spot position on the center detection diamond line in the second edge reflection image.

[0039] S5, identifying a maximum spot distance in the visible spot distance set, and identifying an optimal camera angle and an optimal laser beam center angle corresponding to the maximum spot distance.

[0040] It can be understood that the optimal camera angle refers to the camera angle to be determined corresponding to the maximum spot distance, and the optimal laser beam center angle refers to the laser beam center position and laser emission azimuth angle to be determined corresponding to the maximum spot distance.

[0041] S6. Position and shoot the diamond wire area to be inspected according to the optimal camera angle to obtain a diamond wire position set.

[0042] It can be understood that the diamond wire bit set refers to a plurality of sets of pixel points of the diamond wires to be inspected in the diamond wire area to be inspected in the image captured by the camera, and each set of pixel points corresponds to a diamond wire to be inspected.

[0043] In an embodiment of the present invention, positioning and photographing the diamond wire area to be inspected according to the optimal camera angle to obtain a diamond wire position set includes: photographing the diamond wire area to be inspected according to the optimal camera angle to obtain a positioning photographed image; identifying an image pixel point set of the diamond wire to be inspected in the positioning photographed image; identifying an image pixel position set of the image pixel point set, determining the diamond wire position according to the image pixel position set, and obtaining a diamond wire position set.

[0044] It can be understood that the positioned captured image refers to an image obtained after the diamond wire area to be inspected is captured by fixing the optimal camera angle.

[0045] S7, photographing the light spots of the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate to obtain a light spot detection image.

[0046] It can be explained that the light spot detection image refers to a grayscale image obtained by fixing the optimal camera angle and the optimal laser beam center angle and photographing the diamond wire area to be inspected at the shooting frame rate. Figure 3 The first incident parallel laser is shown in the figure, and the corresponding reflected laser is shown in the figure Figure 3 The first reflected parallel laser is shown in FIG. Figure 3 It is a side view of the diamond wire area to be inspected.

[0047] S8. Using the diamond line position set, extract a line position set to be detected from the light spot detection image.

[0048] Furthermore, the line position set to be inspected refers to a set of line positions to be inspected, and the line position to be inspected refers to a set of pixel values ​​of pixel points in the diamond line position in the spot detection image.

[0049] In an embodiment of the present invention, the use of the diamond line position set to extract the line position set to be inspected in the light spot detection image includes: extracting diamond line positions in sequence from the diamond line position set; identifying a pixel set to be inspected in the light spot detection image according to the diamond line positions; and performing pixel aggregation on the pixel set to be inspected to obtain the line position set to be inspected.

[0050] Furthermore, the pixel set to be inspected refers to a set of pixels at the same diamond line position in the spot detection image. The pixel aggregation refers to merging the pixel points at the same diamond line position, and each line position to be inspected corresponds to a diamond line position.

[0051] S9. Determine whether all the line positions to be inspected in the line position set to be inspected have preset light spot blocks according to a preset threshold segmentation algorithm.

[0052] It can be explained that the threshold segmentation algorithm refers to dividing the pixels into two categories according to a certain grayscale threshold. The threshold segmentation algorithm can be the OTSU algorithm. For example, the grayscale threshold can be 200, then the pixels with grayscale values ​​greater than 200 belong to the light spot block, and the pixels with grayscale values ​​less than or equal to 200 do not belong to the light spot block. The spot block refers to the pixel area whose grayscale values ​​are all greater than the grayscale threshold and the block size does not exceed the preset area. The preset area can be determined based on the light spot area on the diamond wire, for example: 0.1 .

[0053] If all the line positions to be inspected in the line position set to be inspected have preset light spot blocks, then return to the above step of photographing the light spots of the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate.

[0054] If not all the lines to be inspected in the line position set to be inspected have preset light spot blocks, S10 is executed to aggregate the light spot blocks to obtain a primary light spot block set, and to identify defective lines to be inspected in the line position set to be inspected.

[0055] Furthermore, when not all the lines to be inspected in the line position set to be inspected have spot blocks, it indicates that there are lines to be inspected but no spot blocks. At this time, the diamond wire corresponding to the line position to be inspected without the spot block may be broken. The primary spot block set refers to the set of spot blocks in the spot detection image. The defective line position to be inspected refers to the line position to be inspected without the spot block.

[0056] In an embodiment of the present invention, the step of identifying defective line positions to be inspected in the line position set to be inspected includes: extracting the line positions to be inspected in sequence in the line position set to be inspected; judging whether there is a light spot block in the line position to be inspected; if there is a light spot block in the line position to be inspected, returning to the above-mentioned step of extracting the line positions to be inspected in sequence in the line position set to be inspected; if there is no light spot block in the line position to be inspected, confirming the line position to be inspected as a defective line position to be inspected.

[0057] S11. Move the optimal laser beam center angle according to a preset inspection moving angle to obtain the inspection laser beam center angle, perform a spot inspection on the diamond wire area to be inspected according to the inspection laser beam center angle, the defect line position to be inspected and the optimal camera angle to obtain a secondary spot block set.

[0058] It can be explained that the secondary spot block set refers to the spot block set obtained after shooting the diamond wire area to be inspected and performing spot detection according to the inspection laser beam center angle, the defect line position to be inspected and the optimal camera angle. The optimal laser beam center angle needs to move in the vertical plane of the area. The laser emitted at the inspection laser beam center angle is as follows: Figure 3 As shown in the second incident parallel laser, the reflected laser is as follows Figure 3 The second reflected parallel laser is shown in FIG.

[0059] S12, performing a secondary inspection on the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set, and completing the diamond wire light spot detection based on image recognition.

[0060] In an embodiment of the present invention, the secondary inspection of the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set includes: calculating the inspection laser beam center angle according to the inspection moving angle and the optimal laser beam center angle; calculating the moving light spot line according to the inspection laser beam center angle, the spatial plane to be inspected and the optimal camera angle using a preset laser reflection rule; identifying the moving light spot intersection set of the moving light spot line and the preset diamond wire set in the diamond wire area to be inspected; identifying the light spot pixel block set of the moving light spot intersection set according to the optimal camera angle; identifying the defective pixel blocks of the defective line position to be inspected in the light spot pixel block set; eliminating the defective pixel blocks in the light spot pixel block set to obtain the inspection pixel block set. ; Determine whether the secondary light spot block set and the inspection pixel block set satisfy the preset pixel position correspondence rule; if the secondary light spot block set and the inspection pixel block set do not satisfy the pixel position correspondence rule, perform a position control error warning; if the secondary light spot block set and the inspection pixel block set satisfy the pixel position correspondence rule, determine whether the primary light spot block set and the secondary light spot block set satisfy the preset diamond line position correspondence rule; if the primary light spot block set and the secondary light spot block set do not satisfy the diamond line position correspondence rule, perform a multi-line position break alarm; if the primary light spot block set and the secondary light spot block set satisfy the diamond line position correspondence rule, identify the diamond line position to be inspected corresponding to the defective line position to be inspected, and perform a single line position break alarm for the diamond line position to be inspected.

[0061] It can be explained that the inspection laser beam center angle refers to the laser beam center angle obtained after the optimal laser beam center angle moves according to the inspection moving angle. The moving light spot line refers to the laser reflection line observed at the optimal camera angle after the laser surface emitted at the inspection laser beam center angle reflects the laser on the diamond wire to be inspected. The moving light spot intersection set refers to the intersection block set of the diamond wire set composed of the moving light spot line and the diamond wire to be inspected. Since the pixel position of the moving light spot intersection set in the image captured by the light spot inspection will also be determined after the optimal camera angle is determined, the light spot pixel block set can be determined according to the optimal camera angle. The light spot pixel block set refers to the pixel block set corresponding to the moving light spot intersection set in the captured image. The defective pixel block refers to the light spot pixel block corresponding to the defective line position to be inspected. The pixel position correspondence rule refers to the rule that there is a one-to-one correspondence between the secondary light spot blocks in the secondary light spot block set and the inspection pixel blocks in the inspection pixel block set. When the secondary light spot block set and the inspection pixel block set do not satisfy the pixel position correspondence rule, it means that there may be a position control error (for example, an error in the optimal laser beam center angle control process) causing the secondary light spot block set to be unable to correspond to the inspection pixel block set.

[0062] Furthermore, the diamond wire position corresponding rule means that only light spot blocks can appear on the same diamond wire position at the same time or no light spot blocks can appear at the same time. When only one diamond wire is broken, no light spot blocks will appear on the corresponding diamond wire position at the same time. When the diamond wire continues to break during the process of moving the optimal laser beam center angle, a situation that does not comply with the diamond wire position corresponding rule will occur.

[0063] In detail, when the primary light spot block set and the secondary light spot block set meet the diamond line position corresponding rule, it indicates that the diamond wire is broken only at the defective line position to be inspected. Therefore, it is only necessary to perform a single line position break alarm for the diamond line position to be inspected.

[0064] In order to solve the problem described in the background technology, the present invention first needs to determine the center position of the laser beam to be determined. When determining the center position of the laser beam to be determined, it is necessary to first set the best imaging arc trajectory according to the best imaging distance and the center detection diamond wire of the diamond wire area to be detected, and then select the imaging positions to be determined in sequence at equal intervals on the best imaging arc trajectory, so that the imaging position angle to be determined can be set according to the imaging position to be determined and the center of the area. At this time, the center detection diamond wire can be used to perform symmetrical assignment of positions to the imaging positions to obtain the center position of the laser beam to be determined. Since the larger the visible light spot distance, the larger the moving range of the light spot captured by the camera, therefore, when determining the best imaging angle and the best Before determining the optimal laser beam center angle, it is necessary to first perform an irradiation angle sliding test on the diamond wire area to be inspected according to the pending laser beam center position and the pending camera angle to obtain a visible light spot distance, and then summarize the visible light spot distances of each pending camera position to obtain a visible light spot distance set. At this time, the maximum light spot distance can be identified in the visible light spot distance set, and the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance can be identified. After determining the optimal camera angle and the optimal laser beam center angle, since the diamond wire position set can determine the pixel position of the light spot block, the recognition range of the light spot block is greatly reduced. Therefore, it is necessary to first determine the maximum light spot distance according to the optimal camera angle. The diamond wire area to be inspected is positioned and photographed to obtain a diamond wire position set, and then the diamond wire area to be inspected is photographed with light spots according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate to obtain a light spot detection map. Finally, the diamond wire position set can be used to directly extract the line position set to be inspected from the light spot detection map. At this time, it is only necessary to determine whether the line positions to be inspected in the line position set to be inspected all have preset light spot blocks according to the preset threshold segmentation algorithm. If the line positions to be inspected in the line position set to be inspected all have preset light spot blocks, it means that there is no diamond wire breakage, and directly return to photograph the diamond wire area to be inspected with light spots. If the line positions to be inspected If the preset spot blocks do not exist in all the lines to be inspected in the position set, it indicates that the diamond wire is broken, so it is necessary to summarize the spot blocks to obtain a primary spot block set, and then identify the defective lines to be inspected in the line set to be inspected. In order to conduct a secondary confirmation of the defective lines to be inspected, the optimal laser beam center angle can be moved according to the inspection movement angle to obtain the inspection laser beam center angle, and then the diamond wire area to be inspected can be inspected according to the inspection laser beam center angle, the defective line to be inspected and the optimal camera angle to obtain a secondary spot block set. At this time, the diamond wire area to be inspected can be inspected for a second time according to the primary spot block set and the secondary spot block set. Therefore, the present invention can improve the detection efficiency and detection accuracy in the process of diamond wire break detection.

[0065] like Figure 4 , is a functional module diagram of a diamond wire light spot detection system based on image recognition provided by an embodiment of the present invention.

[0066] The diamond wire light spot detection system 100 based on image recognition of the present invention can be installed in an electronic device. According to the functions to be implemented, the diamond wire light spot detection system 100 based on image recognition can include a to-be-determined laser beam center position assignment module 101, an irradiation angle sliding test module 102, a light spot cycle shooting module 103 and a to-be-tested diamond wire area secondary inspection module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0067] The module 101 for assigning the center position of the laser beam to be determined is used to set the best imaging arc trajectory according to the preset best imaging distance and the center detection diamond wire of the diamond wire area to be detected, wherein the center detection diamond wire refers to the diamond wire to be detected that passes through the center of the diamond wire area to be detected; the imaging positions to be determined are selected in sequence at equal intervals on the best imaging arc trajectory, and the imaging angles to be determined are set according to the imaging positions to be determined and the center of the area; the center detection diamond wire is used to perform symmetrical assignment of the imaging positions to the imaging positions to obtain the center position of the laser beam to be determined; the irradiation angle sliding test module 102, The invention is used to perform an irradiation angle sliding test on the diamond wire area to be inspected according to the to-be-determined laser beam center position and the to-be-determined camera angle, obtain a visible light spot distance, summarize the visible light spot distances of each to-be-determined camera position, and obtain a visible light spot distance set; the light spot cycle shooting module 103 is used to identify the maximum light spot distance in the visible light spot distance set, identify the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance; locate and shoot the diamond wire area to be inspected according to the optimal camera angle, and obtain a diamond wire position set; The diamond wire area to be inspected is photographed with light spots according to the optimal camera position, the optimal laser beam center angle and the preset shooting frame rate to obtain a light spot detection map; the diamond wire position set is used to extract the line position set to be inspected from the light spot detection map; according to the preset threshold segmentation algorithm, it is determined whether the line positions to be inspected in the line position set to be inspected all have preset light spot blocks; if the line positions to be inspected in the line position set to be inspected all have preset light spot blocks, then return to the above-mentioned step of photographing the diamond wire area to be inspected according to the optimal camera position, the optimal laser beam center angle and the preset shooting frame rate; the secondary inspection module of the diamond wire area to be inspected 104, is used for aggregating the light spot blocks to obtain a primary light spot block set if not all the line positions to be inspected in the line position set to be inspected have preset light spot blocks, and identifying the defective line positions to be inspected in the line position set to be inspected; moving the optimal laser beam center angle according to a preset inspection moving angle to obtain the inspection laser beam center angle, performing a light spot inspection on the diamond wire area to be inspected according to the inspection laser beam center angle, the defective line positions to be inspected and the optimal camera angle to obtain a secondary light spot block set; performing a secondary inspection on the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set.

[0068] In detail, each module in the diamond wire light spot detection system 100 based on image recognition in the embodiment of the present invention is used in the same manner as described above. Figure 1 The diamond wire light spot detection method based on image recognition has the same technical means as described in the text and can produce the same technical effects, which will not be repeated here.

[0069] like Figure 5, is a schematic diagram of the structure of an electronic device for implementing a diamond wire light spot detection method based on image recognition provided by an embodiment of the present invention.

[0070] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a diamond wire light spot detection method program based on image recognition.

[0071] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 also includes an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the diamond wire light spot detection method program based on image recognition, but also can be used to temporarily store data that has been output or is to be output.

[0072] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as a diamond wire light spot detection method program based on image recognition, etc.) stored in the memory 11, and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.

[0073] The bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 may be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0074] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0075] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0076] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0077] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0078] The program of the diamond wire spot detection method based on image recognition stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve: setting the optimal camera arc trajectory according to the preset optimal camera distance and the central detection diamond wire of the diamond wire area to be detected, wherein the central detection diamond wire refers to the diamond wire to be detected passing through the center of the area of ​​the diamond wire area to be detected; selecting the camera positions to be determined in sequence at equal intervals on the optimal camera arc trajectory, and setting the camera angle to be determined according to the camera positions to be determined and the area center; using the central detection diamond wire to detect the diamond wire area to be detected; A fixed camera position is assigned symmetrically to obtain a center position of a laser beam to be determined; an irradiation angle sliding test is performed on the diamond wire area to be inspected according to the center position of the laser beam to be determined and the camera angle to be determined to obtain a visible light spot distance, and the visible light spot distances of each camera position to be determined are summarized to obtain a visible light spot distance set; the maximum light spot distance is identified in the visible light spot distance set, and the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance are identified; the diamond wire area to be inspected is positioned and photographed according to the optimal camera angle to obtain a diamond wire position set; according to the optimal camera angle, The optimal laser beam center angle and the preset shooting frame rate are used to shoot the light spot of the diamond wire area to be inspected to obtain a light spot detection map; the diamond wire position set is used to extract the line position set to be inspected from the light spot detection map; according to the preset threshold segmentation algorithm, it is determined whether the line positions to be inspected in the line position set to be inspected all have preset light spot blocks; if the line positions to be inspected in the line position set to be inspected all have preset light spot blocks, then return to the above step of shooting the light spot of the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate; if the line position set to be inspected If there are not all preset light spot blocks at the line positions to be inspected, the light spot blocks are summarized to obtain a primary light spot block set, and the defective line positions to be inspected are identified in the line position set; the optimal laser beam center angle is moved according to the preset inspection movement angle to obtain the inspection laser beam center angle, and the diamond wire area to be inspected is subjected to light spot inspection according to the inspection laser beam center angle, the defective line positions to be inspected and the optimal camera angle to obtain a secondary light spot block set; the diamond wire area to be inspected is subjected to secondary inspection according to the primary light spot block set and the secondary light spot block set to complete the diamond wire light spot detection based on image recognition.

[0079] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 4 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0080] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0081] The present invention also provides a computer-readable storage medium, wherein the computer program is stored in the computer program. When the computer program is executed by the processor of the electronic device, the computer program can achieve: setting an optimal camera arc trajectory according to a preset optimal camera distance and a central detection diamond line of a diamond line area to be detected, wherein the central detection diamond line refers to a diamond line to be detected passing through the center of the diamond line area to be detected; selecting a camera position to be determined on the optimal camera arc trajectory in equidistant order, and setting a camera angle to be determined according to the camera position to be determined and the center of the area; using the central detection diamond line to determine the camera angle; The image positions are symmetrically assigned to obtain the center position of the laser beam to be determined; according to the center position of the laser beam to be determined and the camera angle to be determined, the diamond wire area to be inspected is subjected to an irradiation angle sliding test to obtain a visible light spot distance, and the visible light spot distances of each camera position to be determined are summarized to obtain a visible light spot distance set; the maximum light spot distance is identified in the visible light spot distance set, and the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance are identified; according to the optimal camera angle, the diamond wire area to be inspected is positioned and photographed to obtain a diamond wire position set; according to the optimal camera angle, the optimal The laser beam center angle and the preset shooting frame rate are used to shoot the light spot of the diamond wire area to be inspected to obtain a light spot detection map; the diamond wire position set is used to extract the line position set to be inspected from the light spot detection map; according to the preset threshold segmentation algorithm, it is determined whether the line positions to be inspected in the line position set to be inspected all have the preset light spot blocks; if the line positions to be inspected in the line position set to be inspected all have the preset light spot blocks, then the step of shooting the light spot of the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate is returned; if the line positions to be inspected in the line position set to be inspected all have the preset light spot blocks, then the step of shooting the light spot of the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate is returned; if the line positions to be inspected in the line position set to be inspected If there are no preset light spot blocks for all the inspected line positions, the light spot blocks are summarized to obtain a primary light spot block set, and the defective line to be inspected is identified in the inspected line position set; the optimal laser beam center angle is moved according to the preset inspection movement angle to obtain the inspection laser beam center angle, and the diamond wire area to be inspected is subjected to light spot inspection according to the inspection laser beam center angle, the defective line to be inspected and the optimal camera angle to obtain a secondary light spot block set; the diamond wire area to be inspected is subjected to secondary inspection according to the primary light spot block set and the secondary light spot block set, and the diamond wire light spot detection based on image recognition is completed.

[0082] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, and actual implementation may have other division methods.

[0083] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0084] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0085] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A diamond wire light spot detection method based on image recognition, characterized in that: The method comprises: setting an optimal camera arc trajectory according to a preset optimal camera distance and a central detection diamond line of a diamond line region to be detected, wherein the central detection diamond line refers to a diamond line to be detected passing through the center of the diamond line region to be detected; selecting camera positions to be determined in sequence and at equal intervals on the optimal camera arc trajectory, and setting a camera angle to be determined according to the camera positions to be determined and the center of the region; using the central detection diamond line to symmetrically assign values ​​to the camera positions to be determined, and obtaining a central position of a laser beam to be determined; and selecting a camera angle to be determined according to the central position of the laser beam to be determined and the center of the camera to be determined. The image angle is used to perform an illumination angle sliding test on the diamond wire area to be inspected to obtain a visible light spot distance, and the visible light spot distances of each to-be-determined imaging position are summarized to obtain a visible light spot distance set; the maximum light spot distance is identified in the visible light spot distance set, and the optimal imaging angle and the optimal laser beam center angle corresponding to the maximum light spot distance are identified; the diamond wire area to be inspected is positioned and photographed according to the optimal imaging angle to obtain a diamond wire position set; the diamond wire area to be inspected is positioned and photographed according to the optimal imaging angle, the optimal laser beam center angle and the preset shooting frame rate. The light spot is photographed to obtain a light spot detection map; the line position set to be inspected is extracted from the light spot detection map using the diamond line position set; according to the preset threshold segmentation algorithm, it is determined whether all the line positions to be inspected in the line position set to be inspected have preset light spot blocks; if all the line positions to be inspected in the line position set to be inspected have preset light spot blocks, then the step of photographing the light spot of the diamond line area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate is returned to; if all the line positions to be inspected in the line position set to be inspected do not have preset light spot blocks, , then the spot blocks are summarized to obtain a primary spot block set, and the defective line to be inspected is identified in the line set to be inspected; the optimal laser beam center angle is moved according to the preset inspection movement angle to obtain the inspection laser beam center angle, and the diamond wire area to be inspected is subjected to spot inspection according to the inspection laser beam center angle, the defective line to be inspected and the optimal camera angle to obtain a secondary spot block set; the diamond wire area to be inspected is subjected to secondary inspection according to the primary spot block set and the secondary spot block set, and the diamond wire spot detection based on image recognition is completed.

2. The diamond wire light spot detection method based on image recognition as claimed in claim 1, characterized in that: The method of setting the optimal camera arc trajectory according to the preset optimal camera distance and the center detection diamond wire of the diamond wire area to be inspected includes: identifying the spatial plane to be inspected of the diamond wire area to be inspected; determining the vertical plane of the area passing through the center detection diamond wire and perpendicular to the spatial plane to be inspected; determining the optimal camera semicircle trajectory in the vertical plane of the area according to the center of the area and the optimal camera distance; identifying the spatial inclination angle of the spatial plane to be inspected, setting the first ray and the second ray in the vertical plane of the area according to the spatial inclination angle and the preset first angle and second angle; and intercepting the optimal camera arc trajectory on the optimal camera semicircle trajectory according to the first ray and the second ray.

3. The diamond wire light spot detection method based on image recognition as claimed in claim 2, characterized in that: The method of setting a pending camera angle according to the pending camera position and the area center includes: connecting the pending camera position and the area center to obtain a target camera sight line; and adjusting the camera angle according to the target camera sight line at the pending camera position to obtain a pending camera angle.

4. The diamond wire light spot detection method based on image recognition as claimed in claim 3, characterized in that: The method of using the center detection diamond line to symmetrically assign positions to the predetermined camera positions to obtain the center position of the laser beam to be determined includes: constructing a center vertical line passing through the center of the region in the vertical plane of the region; making a symmetrical laser line of sight of the target camera line of sight in the vertical plane of the region according to the center vertical line, wherein the center vertical line is the bisector of the angle between the target camera line of sight and the symmetrical laser line of sight; identifying the laser line of sight starting point of the symmetrical laser line of sight, and using the laser line of sight starting point as the center position of the laser beam.

5. The diamond wire light spot detection method based on image recognition as claimed in claim 4, characterized in that: The method comprises: performing an irradiation angle sliding test on the diamond wire area to be inspected according to the to-be-determined laser beam center position and the to-be-determined camera angle to obtain a visible light spot distance, including: performing an emission angle sliding deflection on a pre-constructed parallel laser beam emitting device at the to-be-determined laser beam center position to obtain a dynamic laser emission beam; irradiating the diamond wire area to be inspected with the dynamic laser emission beam, and continuously photographing the diamond wire area to be inspected according to the to-be-determined camera angle to obtain a laser reflection image set; identifying a visible reflection image set in the laser reflection image set, wherein the visible reflection image set refers to an image set in which all the diamond wires to be inspected have light spot blocks; identifying a first edge reflection image and a second edge reflection image in the visible reflection image set; identifying a first light spot position of the light spot block in the first edge reflection image and a second light spot position of the second edge reflection image; and determining the visible light spot distance according to the first light spot position and the second light spot position.

6. The diamond wire light spot detection method based on image recognition as claimed in claim 5, characterized in that: The method of positioning and photographing the diamond wire area to be inspected according to the optimal camera angle to obtain a diamond wire position set includes: photographing the diamond wire area to be inspected according to the optimal camera angle to obtain a positioning photographed image; identifying an image pixel point set of the diamond wire to be inspected in the positioning photographed image; identifying an image pixel position set of the image pixel point set, determining the diamond wire position according to the image pixel position set, and obtaining a diamond wire position set.

7. The diamond wire light spot detection method based on image recognition as claimed in claim 6, characterized in that: The method of extracting a line position set to be inspected from the light spot detection image by using the diamond line position set includes: extracting diamond line positions in sequence from the diamond line position set; identifying a pixel set to be inspected in the light spot detection image according to the diamond line positions; and performing pixel aggregation on the pixel set to be inspected to obtain the line position set to be inspected.

8. The diamond wire light spot detection method based on image recognition as claimed in claim 7, characterized in that: The method of identifying defective line positions to be inspected in the line position set to be inspected includes: extracting the line positions to be inspected in sequence from the line position set to be inspected; judging whether there is a light spot block in the line position to be inspected; if there is a light spot block in the line position to be inspected, returning to the above step of extracting the line positions to be inspected in sequence from the line position set to be inspected; if there is no light spot block in the line position to be inspected, confirming the line position to be inspected as a defective line position to be inspected.

9. The diamond wire light spot detection method based on image recognition as claimed in claim 8, characterized in that: The method of performing secondary inspection on the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set comprises: calculating the inspection laser beam center angle according to the inspection moving angle and the optimal laser beam center angle; calculating the moving light spot line according to the inspection laser beam center angle, the spatial plane to be inspected and the optimal camera angle using a preset laser reflection rule; identifying the moving light spot intersection set of the moving light spot line and the preset diamond wire set in the diamond wire area to be inspected; identifying the light spot pixel block set of the moving light spot intersection set according to the optimal camera angle; identifying the defective pixel blocks of the defective line position to be inspected in the light spot pixel block set; eliminating the defective pixel blocks in the light spot pixel block set to obtain the inspection pixel block set; judging the Whether the secondary light spot block set and the inspection pixel block set meet the preset pixel position correspondence rule; if the secondary light spot block set and the inspection pixel block set do not meet the pixel position correspondence rule, a position control error warning is performed; if the secondary light spot block set and the inspection pixel block set meet the pixel position correspondence rule, it is determined whether the primary light spot block set and the secondary light spot block set meet the preset diamond line position correspondence rule; if the primary light spot block set and the secondary light spot block set do not meet the diamond line position correspondence rule, a multi-line position break alarm is performed; if the primary light spot block set and the secondary light spot block set meet the diamond line position correspondence rule, the diamond line position to be inspected corresponding to the defective line position to be inspected is identified, and a single line position break alarm is performed on the diamond line position to be inspected.

10. A diamond wire light spot detection system based on image recognition, characterized in that: The system comprises: a module for assigning a center position of a laser beam to be determined, which is used to set an optimal imaging arc trajectory according to a preset optimal imaging distance and a center detection diamond wire of a diamond wire region to be detected, wherein the center detection diamond wire refers to a diamond wire to be detected that passes through the center of the diamond wire region to be detected; selecting imaging positions to be determined in sequence at equal intervals on the optimal imaging arc trajectory, and setting an imaging angle to be determined according to the imaging positions to be determined and the center of the region; using the center detection diamond wire to symmetrically assign positions to the imaging positions to obtain the center position of the laser beam to be determined; and an illumination angle sliding test module, The invention is used to perform an irradiation angle sliding test on the diamond wire area to be inspected according to the to-be-determined laser beam center position and the to-be-determined camera angle, obtain a visible light spot distance, summarize the visible light spot distances of each to-be-determined camera position, and obtain a visible light spot distance set; a light spot cycle shooting module is used to identify the maximum light spot distance in the visible light spot distance set, identify the optimal camera angle and the optimal laser beam center angle corresponding to the maximum light spot distance; locate and shoot the diamond wire area to be inspected according to the optimal camera angle, and obtain a diamond wire position set; locate and shoot the diamond wire area to be inspected according to the optimal camera angle and the optimal laser beam center angle, and obtain a diamond wire position set; The diamond wire area to be inspected is photographed with light spots according to the optimal camera angle and the preset shooting frame rate to obtain a light spot detection map; the diamond wire position set is used to extract the line position set to be inspected from the light spot detection map; according to the preset threshold segmentation algorithm, it is determined whether the line positions to be inspected in the line position set to be inspected all have preset light spot blocks; if the line positions to be inspected in the line position set to be inspected all have preset light spot blocks, then the step of photographing the diamond wire area to be inspected according to the optimal camera angle, the optimal laser beam center angle and the preset shooting frame rate is returned; a secondary inspection module for the diamond wire area to be inspected , which is used for aggregating the light spot blocks to obtain a primary light spot block set if not all the lines to be inspected in the line position set to be inspected have preset light spot blocks, and identifying the defective lines to be inspected in the line position set to be inspected; moving the optimal laser beam center angle according to a preset inspection moving angle to obtain the inspection laser beam center angle, performing a light spot inspection on the diamond wire area to be inspected according to the inspection laser beam center angle, the defective lines to be inspected and the optimal camera angle to obtain a secondary light spot block set; performing a secondary inspection on the diamond wire area to be inspected according to the primary light spot block set and the secondary light spot block set.

Citation Information

Patent Citations

  • Target object blurring method and device, storage medium and electronic equipment

    CN114372931A

  • Thin ice thickness measuring device and measuring method based on reflection light spot image recognition

    CN114526680A