[go: up one dir, main page]

CN119359722B - Diamond line light spot detection method and system based on image recognition - Google Patents

Diamond line light spot detection method and system based on image recognition Download PDF

Info

Publication number
CN119359722B
CN119359722B CN202411921971.XA CN202411921971A CN119359722B CN 119359722 B CN119359722 B CN 119359722B CN 202411921971 A CN202411921971 A CN 202411921971A CN 119359722 B CN119359722 B CN 119359722B
Authority
CN
China
Prior art keywords
detected
line
diamond
light spot
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411921971.XA
Other languages
Chinese (zh)
Other versions
CN119359722A (en
Inventor
何安庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baotou Jinheng Rare Earth Permanent Magnet Co ltd
Original Assignee
Baotou Jinheng Rare Earth Permanent Magnet Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baotou Jinheng Rare Earth Permanent Magnet Co ltd filed Critical Baotou Jinheng Rare Earth Permanent Magnet Co ltd
Priority to CN202411921971.XA priority Critical patent/CN119359722B/en
Publication of CN119359722A publication Critical patent/CN119359722A/en
Application granted granted Critical
Publication of CN119359722B publication Critical patent/CN119359722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

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.

Description

Diamond line light spot detection method and system based on image recognition
Technical Field
The invention relates to the technical field of diamond wire production, in particular to a diamond wire light spot detection method and system based on image recognition.
Background
In the production process of the diamond wire, the surface quality and the wire breakage condition of the diamond wire directly influence the service performance and the service life of the product, so that the wire breakage detection of the diamond wire is an important link in the production process of the diamond wire.
The traditional diamond wire breakage detection method mostly depends on manual inspection or a contact sensor, but the methods are easily influenced by environment and human factors, so that the accuracy and stability of a detection result are difficult to ensure, and more manpower is required, so that the problems of low detection efficiency and low detection accuracy exist in the diamond wire breakage detection process.
Disclosure of Invention
The invention provides a diamond wire light spot detection method and system based on image recognition, and mainly aims to improve detection efficiency and detection accuracy in a diamond wire breakage detection process.
The invention provides an image recognition-based diamond wire spot detection method, which comprises the steps of setting an optimal shooting arc track according to a preset optimal shooting distance and a center detection diamond wire of a diamond wire region to be detected, wherein the center detection diamond wire refers to the diamond wire to be detected passing through the region center of the diamond wire region to be detected; sequentially selecting undetermined shooting sites on the optimal shooting arc track at equal intervals, and setting undetermined shooting positioning angles according to the undetermined shooting sites and the regional center; performing locus symmetry assignment on a to-be-detected camera shooting locus by using a center detection diamond wire to obtain a to-be-detected laser beam center locus, performing irradiation angle sliding test on a to-be-detected diamond wire region according to the to-be-detected laser beam center locus and the to-be-detected camera shooting locus, obtaining visible light spot distances, summarizing the visible light spot distances of all to-be-detected camera shooting loci to obtain a visible light spot distance set, identifying the maximum light spot distance in the visible light spot distance set, identifying the optimal camera shooting locus and the optimal laser beam center locus corresponding to the maximum light spot distance, performing positioning shooting on the to-be-detected diamond wire region according to the optimal camera shooting locus, performing light spot shooting on the to-be-detected diamond wire region according to the optimal camera shooting locus, the optimal laser beam center locus and a preset shooting frame rate, obtaining a light spot detection map, extracting the to-be-detected wire locus set from the light spot detection map by using the diamond wire locus, judging whether the to-be-detected wire locus in the to-be-detected locus has a light spot block according to a preset threshold segmentation algorithm, and returning the optimal camera shooting locus to the preset block according to the preset camera shooting locus, the method comprises the steps of carrying out spot point shooting on a diamond line region to be detected according to an optimal laser beam central position angle and a preset shooting frame rate, collecting spot blocks to obtain a primary spot block set if preset spot blocks do not exist in all the diamond line positions in the diamond line position set to be detected, identifying the defect line position to be detected in the diamond line position set to be detected, moving the optimal laser beam central position angle according to a preset detection movement angle to obtain an optimal laser beam central position angle, carrying out spot detection on the diamond line region to be detected according to the laser beam central position angle to be detected, the defect line position to be detected and the optimal shooting position angle to obtain a secondary spot block set, carrying out secondary detection on the diamond line region to be detected according to the primary spot block set and the secondary spot block set, optionally setting an optimal shooting arc track according to a preset optimal shooting distance and a center detection diamond line of the diamond line region to be detected, determining a region which is subjected to the central detection of the diamond line region to be detected and is perpendicular to the space to be detected, determining a region which is subjected to the center detection diamond line and is perpendicular to the space to be detected according to a preset detection movement angle, and determining a first semi-circle track and a second semi-circle track which is set in the first semi-circle track and the optimal plane to be detected according to the preset optimal shooting distance and the first semi-circle track and the optimal radiation line region.
Optionally, setting a to-be-positioned camera positioning angle according to the to-be-positioned camera position and the area center comprises connecting the to-be-positioned camera position and the area center to obtain a target camera view, and adjusting the camera positioning angle at the to-be-positioned camera position according to the target camera view to obtain the to-be-positioned camera positioning angle.
Optionally, the method for carrying out locus symmetry assignment on the to-be-positioned shooting locus by using a center detection diamond wire to obtain a to-be-positioned laser beam center locus comprises the steps of constructing a center vertical line passing through the center of the area in the area vertical plane, carrying out symmetry laser sight of the target shooting sight in the area vertical plane according to the center vertical line, wherein the center vertical line is an angular bisector of the target shooting sight and the symmetry laser sight, identifying a laser sight starting point of the symmetry laser sight, and taking the laser sight starting point as the laser beam center locus.
The method comprises the steps of carrying out irradiation angle sliding test on a diamond line area to be detected according to a laser beam center point to be determined and a camera shooting angle to be determined, obtaining a visible light spot distance, carrying out emission angle sliding deflection on a pre-built parallel laser beam emission device at the laser beam center point to be determined, obtaining a dynamic laser emission beam, carrying out irradiation on the diamond line area to be detected by using the dynamic laser emission beam, carrying out continuous shooting on the diamond line area to be detected according to the camera shooting angle to be determined, obtaining 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 diamond lines to be detected exist in a light spot block, 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.
Optionally, the diamond wire region to be detected is subjected to positioning shooting according to the optimal shooting azimuth to obtain a diamond wire position set, wherein the diamond wire position set comprises the steps of shooting the diamond wire region to be detected according to the optimal shooting azimuth to obtain a positioning shooting image, identifying an image pixel point set of the diamond wire to be detected in the positioning shooting image, identifying an image pixel position set of the image pixel point set, and determining diamond wire positions according to the image pixel position set to obtain the diamond wire position set.
Optionally, the step of extracting the line position set to be detected from the light spot detection graph by using the diamond line position set comprises the steps of sequentially extracting diamond line positions from the diamond line position set, identifying the pixel set to be detected from the light spot detection graph according to the diamond line positions, and carrying out pixel collection on the pixel set to be detected to obtain the line position set to be detected.
The method comprises the steps of selecting a line position to be detected, judging whether a spot block exists in the line position to be detected, returning to the step of extracting the line position to be detected in a concentrated mode if the spot block exists in the line position to be detected, and judging the line position to be detected as the line position to be detected if the spot block does not exist in the line position to be detected.
Optionally, the secondary inspection of the diamond line region to be inspected according to the primary light spot block set and the secondary light spot block set comprises calculating a central position angle of an inspection laser beam according to the inspection movement angle and the central position angle of the best laser beam, calculating a moving light spot line according to the central position angle of the inspection laser beam, a space to-be-inspected plane and the best shooting position angle by using a preset laser reflection rule, identifying a moving light spot intersection point set of the moving light spot line and a diamond line set preset in the diamond line region to be inspected, identifying a light spot pixel block set of the moving light spot intersection point set according to the best shooting position angle, identifying a defective pixel block of a defect line to be inspected in the light spot pixel block set, eliminating the defective pixel block in the light spot pixel block set, judging whether the secondary light spot block set meets a preset pixel site corresponding rule or not, if the secondary light spot block set does not meet the pixel site corresponding rule, performing position error early warning, and if the secondary light spot block set meets the preset pixel site corresponding rule, and the diamond line corresponding to the diamond line to be inspected, and the diamond line to-be-inspected, and judging whether the secondary light spot block set meets the diamond line to-be-inspected has the defect line corresponding rule or not met, and if the secondary light spot block corresponds to the diamond line corresponding rule and the diamond line to the defect line.
In order to achieve the above purpose, the invention also provides an image recognition-based diamond line light spot detection system, which comprises a to-be-determined laser beam center point assignment module, a laser beam center point assignment module and a laser beam center point detection module, wherein the to-be-determined laser beam center point assignment module is used for setting an optimal shooting arc track according to a preset optimal shooting distance and a center detection diamond line of a to-be-detected diamond line area, and the center detection diamond line refers to the to-be-detected diamond line passing through the area center of the to-be-detected diamond line area; the method comprises the steps of sequentially selecting to-be-positioned shooting sites at equal intervals on the optimal shooting arc track, setting to-be-positioned shooting angles according to the to-be-positioned shooting sites and the regional center, carrying out site symmetry assignment on the to-be-positioned shooting sites by utilizing a center detection diamond wire to obtain to-be-positioned laser beam center sites, carrying out irradiation angle sliding test on to-be-detected diamond wire regions according to the to-be-positioned laser beam center sites and the to-be-positioned shooting angles to obtain visual light spot distances, summarizing the visual light spot distances of each to-be-positioned shooting site to obtain a visual light spot distance set, identifying the maximum light spot distance in the visual light spot distance set, identifying the optimal shooting angles and the optimal laser beam center angles corresponding to the maximum light spot distances, carrying out positioning shooting on to-be-detected diamond wire regions according to the optimal shooting angles, the optimal laser beam center angles and preset shooting frame rates to obtain the diamond wire position set, the method comprises the steps of obtaining a light spot detection graph, extracting a line position set to be detected from the light spot detection graph by utilizing the diamond line position set, judging whether all line positions to be detected in the line position set to be detected have preset light spot blocks according to a preset threshold segmentation algorithm, returning to the step of carrying out light spot shooting on the diamond line region to be detected according to the optimal camera shooting position angle, the optimal laser beam center position angle and the preset shooting frame rate if all the line positions to be detected in the line position set to be detected have preset light spot blocks, collecting the light spot blocks to obtain a primary light spot block set, identifying the defect line positions to be detected in the line position set to be detected according to a preset detection movement angle, obtaining a detection laser beam center position angle, carrying out light spot detection on the diamond line region to be detected according to the detection laser beam center position angle, the defect line positions to be detected and the optimal camera shooting frame rate, and carrying out light spot secondary detection on the light spot region to be detected according to the primary light spot block and the secondary light spot block to be detected.
In order to solve the problems, the invention also provides electronic equipment which comprises a memory and a processor, wherein the memory stores at least one instruction, and the processor executes the instruction stored in the memory to realize the diamond-wire light spot detection method based on image recognition.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one instruction that is executed by a processor in an electronic device to implement the above-mentioned diamond-wire light spot detection method based on image recognition.
The invention aims to solve the problems in the background technology, firstly, a to-be-positioned laser beam central locus is required to be determined, when the to-be-positioned laser beam central locus is determined, an optimal photographing arc track is required to be set according to an optimal photographing distance and a center detection diamond line of a to-be-detected diamond line area, then the to-be-positioned photographing locus is sequentially selected at equal intervals on the optimal photographing arc track, so that a to-be-positioned photographing angle can be set according to the to-be-positioned photographing locus and the area center, at this time, the to-be-positioned laser beam central locus can be obtained by carrying out locus symmetry assignment on the to-be-positioned photographing locus by utilizing the center detection diamond line, and as the larger the visible light spot distance is, the laser spot moving range shot by a camera is larger, before the optimal photographing position angle and the optimal laser beam central position angle are determined, the irradiation angle sliding test is required to be carried out on the to-be-detected diamond line area according to the optimal photographing laser beam central locus and the to-be-detected diamond line area to obtain the visible light spot distance, and the visible light spot distance is collected to obtain a visible light spot distance set, at this time, the maximum light spot distance can be intensively recognized at the visible light spot position, and the optimal position angle is concentrated at the optimal position area, and the optimal position area is required to be-located, and the laser beam focal position is required to be photographed by carrying out on the laser beam focal position block, and the to be-position to be-detected, and the optimal position area, and the laser beam focal position is required to be located at the optimal position and located, and finally, directly extracting a line position set to be detected from the light spot detection diagram by utilizing the diamond line position set, judging whether all the line positions to be detected in the line position set to be detected have preset light spot blocks according to a preset threshold segmentation algorithm, if all the line positions to be detected in the line position set to be detected have preset light spot blocks, indicating that no diamond line fracture exists, directly returning to perform light spot point shooting on the diamond line region to be detected, if all the line positions to be detected in the line position set to be detected do not have preset light spot blocks, indicating that the diamond line fracture exists, and therefore, collecting the light spot blocks to obtain a primary light spot block set, identifying the line position to be detected in the line position set to be detected, and for performing secondary confirmation on the line position to be detected, moving the optimal laser beam central position angle according to a detection movement angle to obtain a detection laser beam central position angle, and performing light spot shooting on the diamond line region to be detected according to the detection laser beam central position and the optimal position angle, so as to obtain a secondary block, namely performing secondary light spot shooting on the secondary light spot region to be detected according to the primary detection laser beam central position and the secondary light spot block set. Therefore, the invention can improve the detection efficiency and the detection accuracy in the diamond wire breakage detection process.
Drawings
Fig. 1 is a schematic flow chart of an image recognition-based diamond wire spot detection method according to an embodiment of the present invention, fig. 2 is a top view of a diamond wire region to be detected according to an embodiment of the present invention, fig. 3 is a side view of a diamond wire region to be detected according to an embodiment of the present invention, fig. 4 is a functional block diagram of an image recognition-based diamond wire spot detection system according to an embodiment of the present invention, and fig. 5 is a schematic structural diagram of an electronic device for implementing the image recognition-based diamond wire spot detection method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a diamond wire light spot detection method based on image recognition. The main execution body of the diamond-wire light spot detection method based on image recognition comprises, but is not limited to, at least one of a server, a terminal and the like which can be configured to execute the method provided by the embodiment of the application. In other words, the diamond-wire light spot detection method based on image recognition may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server side comprises, but is not limited to, a single server, a server cluster, a cloud server or a cloud server cluster and the like.
Referring to fig. 1, a flow chart of a method for detecting a diamond-wire light spot based on image recognition according to an embodiment of the invention is shown. In the embodiment, the diamond wire light spot detection method based on image recognition comprises the following steps of S1, setting an optimal shooting arc track according to a preset optimal shooting distance and a center detection diamond wire of a diamond wire area to be detected.
The optimal imaging distance refers to the optimal distance of the camera to capture the diamond wire, and can be set by a user, for example, can be 1m. The diamond wire region to be detected refers to a space plane region formed by diamond wires to be detected, and can be shown in fig. 2, and 11 diamond wires to be detected in total form the diamond wire region to be detected in fig. 2. The optimal shooting arc track refers to an arc track formed by optimal shooting points of a camera. In the diamond wire production line, the detection of the breakage of the diamond wire is a procedure, and the 11 diamond wires to be detected in fig. 2 are driven by the roller to perform winding operation on the roller, and the camera is used for shooting the moving diamond wire while winding.
In detail, the center detecting diamond wire refers to a diamond wire to be detected passing through the region center of the diamond wire region to be detected. The center of the region refers to the center of the region of the diamond wire to be detected, namely the 6 th diamond wire from left to right in fig. 2. Fig. 2 is a top view of a diamond wire region to be measured.
The method comprises the steps of identifying a space to-be-detected plane of a to-be-detected diamond line area, determining an area vertical plane which passes through the center to-be-detected diamond line and is perpendicular to the space to-be-detected plane, determining an optimal photographing semicircular track in the area vertical plane according to the area center and the optimal photographing distance, identifying a space inclination angle of the space to-be-detected plane, setting a first ray and a second ray in the area vertical plane according to the space inclination angle and a preset first included angle and a preset second included angle, and intercepting the optimal photographing arc track on the optimal photographing semicircular track according to the first ray and the second ray.
The space to-be-detected plane is a space plane where the diamond wire region to be detected is located. The optimal photographing semicircular track is a semicircular track determined in the vertical plane of the area (on the positive side of the diamond line to be detected) by taking the center of the area as the center of a circle and the optimal photographing distance as the radius. The space inclination angle refers to the inclination angle of the space to-be-detected plane in space, the first included angle refers to the included angle between a first ray intercepting an optimal arc track and the space to-be-detected plane, the second included angle refers to the included angle between a second ray intercepting the optimal arc track and the space to-be-detected plane, the first ray intercepts the first ray intercepting the optimal arc track, and the second ray intercepts the second ray intercepting the optimal arc track. For example, the included angle between the space to-be-detected plane and the horizontal plane is 45 degrees, the first included angle is 15 degrees, the second included angle is 30 degrees, the included angle between the first ray and the horizontal plane is 60 degrees, and the included angle between the second ray and the horizontal plane is 135-30 degrees.
S2, selecting undetermined shooting sites on the optimal shooting arc track at equal intervals in sequence, and setting undetermined shooting angles according to the undetermined shooting sites and the regional center.
The undetermined imaging site is an interpretable imaging site of a camera to be selected. The imaging position angle to be positioned refers to an imaging position point to be selected and an imaging azimuth angle.
In the embodiment of the invention, setting the to-be-positioned camera positioning angle according to the to-be-positioned camera position and the area center comprises the steps of connecting the to-be-positioned camera position and the area center to obtain a target camera view line, and adjusting the camera positioning angle at the to-be-positioned camera position according to the target camera view line.
The target camera view line is a directional line segment connecting the to-be-positioned camera position point and the center of the area, and the direction of the target camera view line is the direction of the to-be-positioned camera position point to the center of the area. And the shooting direction corresponding to the shooting angle to be positioned is in the same direction with the target shooting sight line.
And S3, carrying out locus symmetry assignment on the to-be-positioned shooting locus by using a center detection diamond wire to obtain a to-be-positioned laser beam center locus.
The laser beam center position to be determined is explained as a laser beam center position symmetrical to the imaging position to be determined. The laser beam light sources (parallel light sources) are arranged in a line segment, and can emit laser surfaces with certain widths.
In the embodiment of the invention, the method for carrying out locus symmetry assignment on the to-be-positioned shooting locus by utilizing the center detection diamond wire to obtain the to-be-positioned laser beam center locus comprises the steps of constructing a center vertical line passing through the center of the area in the vertical plane of the area, carrying out symmetrical laser sight of the target shooting sight in the vertical plane of the area according to the center vertical line, wherein the center vertical line is an angular bisector of the target shooting sight and the symmetrical laser sight, identifying a laser sight starting point of the symmetrical laser sight, and taking the laser sight starting point as the laser beam center locus.
It is understood that the symmetrical laser line of sight refers to a laser line (an intermediate light source emission line of a laser beam light source) symmetrical to the object photographing line of sight about a center perpendicular. The laser sight line starting point refers to an emission site of the symmetrical laser sight line, namely a middle point of the laser beam light source.
S4, carrying out irradiation angle sliding test on the diamond wire area to be detected according to the laser beam center point to be determined and the imaging position angle to be determined to obtain visible light spot distances, and summarizing the visible light spot distances of all the imaging positions to obtain a visible light spot distance set.
The visible light spot distance can be explained as the distance of the light spot block moving on the diamond line to be detected in the irradiation angle sliding test process.
The method comprises the steps of conducting irradiation angle sliding test on a diamond line area to be detected according to a laser beam center point to be determined and a camera shooting angle to be determined, obtaining visible light spot distance, conducting emission angle sliding deflection on a pre-built parallel laser beam emitting device at the laser beam center point to be determined, obtaining dynamic laser emitting beams, conducting irradiation on the diamond line area to be detected by means of the dynamic laser emitting beams, conducting continuous shooting on the diamond line area to be detected according to the camera shooting angle to be determined, obtaining 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 of light spot blocks existing in all diamond lines to be detected, 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.
It should be understood that the emission angle sliding deflection means that the laser angle emitted by the parallel laser beam emitting device is subjected to sliding deflection, and the dynamic laser emission beam means that the laser emission beam is obtained in the process of performing the emission angle sliding deflection. Since the camera cannot capture the complete laser reflected image due to the excessive deflection angle in the process of sliding deflection of the emission angle, the visible reflected image set needs to be identified.
Further, the first edge reflection image refers to a first visual reflection image in the visual reflection image set, the second edge reflection image refers to a last visual reflection image in the visual reflection image set, the first light spot position refers to a light spot position on a center detection diamond line in the first edge reflection image, and the second light spot position refers to a light spot position on a center detection diamond line in the second edge reflection image.
S5, identifying the maximum light spot distance in the visible light spot distance set, and identifying the optimal shooting azimuth angle and the optimal laser beam central azimuth angle corresponding to the maximum light spot distance.
It can be understood that the optimal camera position angle refers to the to-be-positioned camera position angle corresponding to the maximum light spot distance, and the optimal laser beam center position angle refers to the to-be-positioned laser beam center point and the laser emission azimuth angle corresponding to the maximum light spot distance.
And S6, carrying out positioning shooting on the diamond wire region to be detected according to the optimal shooting azimuth angle to obtain a diamond wire position set.
It can be understood that the diamond wire position set refers to a plurality of groups of pixel point sets of the diamond wire to be detected in the image shot by the camera in the diamond wire area to be detected, and each group of pixel point sets corresponds to one diamond wire to be detected.
The method comprises the steps of shooting a diamond wire region to be detected according to the optimal shooting position angle to obtain a diamond wire position set, identifying an image pixel point set of the diamond wire to be detected in the positioning shooting image, identifying an image pixel position set of the image pixel point set, and determining the diamond wire position according to the image pixel position set to obtain the diamond wire position set.
It can be understood that the positioning shooting image refers to an image obtained after the optimal shooting azimuth is fixed and the diamond wire area to be detected is shot.
And S7, carrying out spot point shooting on the diamond line area to be detected according to the optimal shooting azimuth angle, the optimal laser beam central azimuth angle and a preset shooting frame rate to obtain a spot detection diagram.
The light spot detection image is an image with gray scales obtained by shooting the diamond line area to be detected according to the shooting frame rate by fixing the optimal shooting azimuth angle and the optimal laser beam central azimuth angle. The laser emitted under the optimum laser beam central potential angle is shown as the first incident parallel laser in fig. 3, and the corresponding reflected laser is shown as the first reflected parallel laser in fig. 3. Fig. 3 is a side view of the diamond wire region to be inspected.
S8, extracting a line bit set to be detected from the light spot detection diagram by utilizing the diamond line bit set.
Further, the line bit set to be detected refers to a set of line bits to be detected, and the line bits to be detected refer to a set of pixel values of pixel points located at diamond line bits in the light spot detection diagram.
The method for extracting the line position set to be detected from the light spot detection graph by utilizing the diamond line position set comprises the steps of sequentially extracting diamond line positions from the diamond line position set, identifying the pixel set to be detected from the light spot detection graph according to the diamond line positions, and collecting pixels of the pixel set to be detected to obtain the line position set to be detected.
Further, the pixel set to be detected refers to a pixel set at the same diamond line position in the light spot detection diagram. And the pixel converging means converging the pixel points belonging to the same diamond line position, and each line position to be detected corresponds to one diamond line position.
And S9, judging whether all the line positions to be detected in the line position set to be detected have preset facula blocks according to a preset threshold segmentation algorithm.
The threshold segmentation algorithm refers to dividing the pixel points into two types according to a determined gray threshold, and the threshold segmentation algorithm may be an OTSU algorithm, for example, the gray threshold may be 200, and then the pixel points with gray values greater than 200 belong to the spot block, and the pixel points with gray values less than or equal to 200 do not belong to the spot block. The spot block refers to a pixel area with gray values larger than a gray threshold value and a block size not exceeding a preset area. The preset area can be determined according to the area of the light spot on the diamond wire, for example, 0.1
And if the line positions to be detected in the line position set to be detected all have preset light spot blocks, returning to the step of carrying out light spot shooting on the diamond line region to be detected according to the optimal shooting position angle, the optimal laser beam central position angle and the preset shooting frame rate.
And if the line positions to be detected in the line position set to be detected do not all have the preset light spot blocks, executing S10, summarizing the light spot blocks to obtain a primary light spot block set, and identifying the defect line positions to be detected in the line position set to be detected.
Further, when the to-be-detected line positions in the to-be-detected line position set do not have the light spot blocks, the presence of the to-be-detected line positions is indicated to have no light spot blocks, and at the moment, the diamond line corresponding to the to-be-detected line positions without the light spot blocks may have a fracture phenomenon. The primary light spot block set refers to a light spot block set in a light spot detection diagram. The defect line bit to be detected refers to the line bit to be detected without the facula block.
The method comprises the steps of intensively and orderly extracting line positions to be detected in the line positions to be detected, judging whether spot blocks exist in the line positions to be detected, returning to the step of intensively and orderly extracting the line positions to be detected in the line positions to be detected if the spot blocks exist in the line positions to be detected, and confirming the line positions to be detected as the line positions to be detected to be defective if the spot blocks do not exist in the line positions to be detected.
S11, moving the optimal laser beam central position angle according to a preset inspection movement angle to obtain an inspection laser beam central position angle, and carrying out spot inspection on the diamond line area to be inspected according to the inspection laser beam central position angle, the line position of the defect to be inspected and the optimal camera shooting position angle to obtain a secondary spot block set.
The second light spot block set is to shoot the diamond line region to be detected according to the central azimuth of the inspection laser beam, the line position of the defect to be detected and the optimal shooting azimuth, and then to perform light spot detection to obtain the light spot block set. The optimum laser beam center angle needs to be moved in the area vertical plane. The laser emitted under the central azimuth of the inspection laser beam is shown as a second incident parallel laser in fig. 3, and the reflected laser is shown as a second reflected parallel laser in fig. 3.
And S12, performing secondary inspection on the diamond wire region to be inspected according to the primary light spot block set and the secondary light spot block set, and finishing the diamond wire light spot detection based on image identification.
In the embodiment of the invention, the secondary inspection is carried out on the diamond line area to be inspected according to the primary light spot block set and the secondary light spot block set, the secondary inspection comprises the steps of calculating the central position angle of an inspection laser beam according to the inspection movement angle and the central position angle of the best laser beam, calculating a moving light spot line according to the central position angle of the inspection laser beam, a space to-be-inspected plane and the best shooting position angle by utilizing a preset laser reflection rule, identifying a moving light spot intersection point set of the moving light spot line and a preset diamond line set in the diamond line area to be inspected, identifying a light spot pixel block set of the moving light spot intersection point set according to the best shooting position angle, identifying a defective pixel block of a to-be-inspected defective line in the light spot pixel block set, eliminating the defective pixel block in the light spot pixel block set, judging whether the secondary light spot block set and the inspection pixel block set meet a preset pixel site correspondence rule, carrying out position error warning if the secondary light spot block set and the pixel block set do not meet the pixel site correspondence rule, and if the secondary light spot block set and the diamond line set do not meet the preset pixel site correspondence rule, and if the secondary light spot block set and the diamond line set corresponds to the diamond line to be inspected has a fault line correspondence rule, and the primary light spot block is judged that the diamond line set and the diamond line is not meets the primary line correspondence rule.
The inspection laser beam central position angle means the laser beam central position angle obtained after the optimal laser beam central position angle is moved according to the inspection movement angle. The moving light spot line refers to the laser reflection line observed at the optimal shooting position angle after the laser surface emitted under the central position angle of the checking laser beam is reflected on the diamond line to be checked. The moving light spot intersection point set refers to an intersection block set of a diamond line set formed by moving light spot lines and diamond lines to be detected. After the optimal camera shooting azimuth angle is determined, the pixel point positions of the moving light spot intersection point set in the image shot by the light spot inspection are also determined, so that the light spot pixel block set can be determined according to the optimal camera shooting azimuth angle. The facula pixel block set refers to a pixel block set corresponding to the moving facula intersection set in the shot image. The defect pixel block refers to a facula pixel block corresponding to the defect line to be detected. The pixel site correspondence rule refers to a rule that the secondary light spot blocks in the secondary light spot block set and the detection pixel blocks in the detection pixel block set have pixel positions in one-to-one correspondence. When the secondary light spot block set and the inspection pixel block set do not meet the pixel site corresponding rule, it indicates that the secondary light spot block set cannot correspond to the inspection pixel block set due to the possible position regulation error (for example, error in the process of regulating the central azimuth angle of the optimal laser beam).
Further, the diamond line position correspondence rule means that only spot blocks or no spot blocks can be simultaneously generated on the same diamond line position, when only one diamond line is broken, no spot block is simultaneously generated on the corresponding diamond line position, and when the diamond line is broken continuously in the process of moving the optimal laser beam central position angle, the situation that the diamond line position correspondence rule is not met occurs.
In detail, when the primary light spot block set and the secondary light spot block set meet the diamond wire position corresponding rule, the diamond wire breakage only occurs at the position of the defect wire to be detected, and therefore, only single-wire breakage alarm is needed for the diamond wire position to be detected.
The invention aims to solve the problems in the background technology, firstly, a to-be-positioned laser beam central locus is required to be determined, when the to-be-positioned laser beam central locus is determined, an optimal photographing arc track is required to be set according to an optimal photographing distance and a center detection diamond line of a to-be-detected diamond line area, then the to-be-positioned photographing locus is sequentially selected at equal intervals on the optimal photographing arc track, so that a to-be-positioned photographing angle can be set according to the to-be-positioned photographing locus and the area center, at this time, the to-be-positioned laser beam central locus can be obtained by carrying out locus symmetry assignment on the to-be-positioned photographing locus by utilizing the center detection diamond line, and as the larger the visible light spot distance is, the laser spot moving range shot by a camera is larger, before the optimal photographing position angle and the optimal laser beam central position angle are determined, the irradiation angle sliding test is required to be carried out on the to-be-detected diamond line area according to the optimal photographing laser beam central locus and the to-be-detected diamond line area to obtain the visible light spot distance, and the visible light spot distance is collected to obtain a visible light spot distance set, at this time, the maximum light spot distance can be intensively recognized at the visible light spot position, and the optimal position angle is concentrated at the optimal position area, and the optimal position area is required to be-located, and the laser beam focal position is required to be photographed by carrying out on the laser beam focal position block, and the to be-position to be-detected, and the optimal position area, and the laser beam focal position is required to be located at the optimal position and located, and finally, directly extracting a line position set to be detected from the light spot detection diagram by utilizing the diamond line position set, judging whether all the line positions to be detected in the line position set to be detected have preset light spot blocks according to a preset threshold segmentation algorithm, if all the line positions to be detected in the line position set to be detected have preset light spot blocks, indicating that no diamond line fracture exists, directly returning to perform light spot point shooting on the diamond line region to be detected, if all the line positions to be detected in the line position set to be detected do not have preset light spot blocks, indicating that the diamond line fracture exists, and therefore, collecting the light spot blocks to obtain a primary light spot block set, identifying the line position to be detected in the line position set to be detected, and for performing secondary confirmation on the line position to be detected, moving the optimal laser beam central position angle according to a detection movement angle to obtain a detection laser beam central position angle, and performing light spot shooting on the diamond line region to be detected according to the detection laser beam central position and the optimal position angle, so as to obtain a secondary block, namely performing secondary light spot shooting on the secondary light spot region to be detected according to the primary detection laser beam central position and the secondary light spot block set. Therefore, the invention can improve the detection efficiency and the detection accuracy in the diamond wire breakage detection process.
Fig. 4 is a functional block diagram of a diamond-wire light spot detection system based on image recognition according to an embodiment of the present invention.
The diamond wire light spot detection system 100 based on image recognition according to the present invention may be installed in an electronic device. According to the functions implemented, the diamond wire light spot detection system 100 based on image recognition may include a to-be-determined laser beam central point assignment module 101, an irradiation angle sliding test module 102, a spot point circulation shooting module 103, and a to-be-detected diamond wire region secondary inspection module 104. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
The laser beam center locus assignment module 101 is used for setting an optimal shooting arc locus according to a preset optimal shooting distance and a center detection diamond line of a diamond line area to be detected, wherein the center detection diamond line refers to a diamond line to be detected passing through the area center of the diamond line area to be detected, the laser beam center locus assignment module 103 is used for sequentially selecting the diamond line to be detected on the optimal shooting arc locus at equal intervals, setting a positioning angle to be located according to the position of the diamond line to be detected and the area center, carrying out locus symmetry assignment on the diamond line to be detected by utilizing the center detection diamond line to obtain a laser beam center locus, the irradiation angle sliding test module 102 is used for carrying out irradiation angle sliding test on the diamond line area to be detected according to the position of the laser beam center locus to be detected and the positioning angle to obtain a visible light spot distance, summarizing the visible light spot distance of each diamond line to be detected, the light spot point circulation shooting module 103 is used for identifying the maximum light spot distance in the visible light spot distance set, identifying the optimal positioning angle and the optimal laser beam center angle corresponding to the maximum light spot distance, carrying out locus assignment on the diamond line to be detected according to the preset positioning angle, carrying out irradiation angle sliding test on the diamond line to obtain the diamond line to be detected according to the preset positioning area, and the preset positioning threshold value, and obtaining whether the laser beam center region to be detected has the focal point to be detected and the focal point is located in the diamond line area to be detected, and the focal point area to be detected, and if the focal point is located in the diamond line area is located according to the preset positioning algorithm, and the preset positioning point region to the preset positioning point graph is obtained and the optimal The method comprises the steps of carrying out spot point shooting on a diamond line region to be detected according to an optimal laser beam central position angle and a preset shooting frame rate, carrying out spot point shooting on the diamond line region to be detected according to a preset shooting frame rate, carrying out secondary spot block set on the diamond line region to be detected according to the laser beam central position angle to be detected, and carrying out secondary detection on the diamond line region to be detected according to the primary spot block set and the secondary spot block set if the line positions to be detected in the line position set to be detected do not all have preset spot blocks, obtaining a primary spot block set, identifying the defect line position to be detected in the line position set to be detected, moving the optimal laser beam central position angle according to a preset detection movement angle to obtain a detection laser beam central position angle.
In detail, the modules in the image recognition-based diamond-wire light spot detection system 100 in the embodiment of the present invention use the same technical means as the image recognition-based diamond-wire light spot detection method described in fig. 1, and can produce the same technical effects, which are not described herein.
Fig. 5 is a schematic structural diagram of an electronic device for implementing the method for detecting a diamond-wire light spot based on image recognition according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus 12, and may further comprise 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.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments 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 (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 1. Further, the memory 11 further comprises an internal storage unit of the electronic device 1, and also comprises an external storage device. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of a diamond wire spot detection method program based on image recognition, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective parts of the entire electronic device using various interfaces and lines, executes or executes programs or modules (for example, a diamond-wire light spot detection method program based on image recognition, etc.) stored in the memory 11, and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process the data.
The bus 12 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus 12 may be divided into an address bus, a data bus, a control bus, etc. The bus 12 is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 5 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
The image recognition-based diamond wire light spot detection method program stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, the method can be realized that an optimal shooting arc track is set according to a preset optimal shooting distance and a center detection diamond wire of a diamond wire region to be detected, wherein the center detection diamond wire refers to the diamond wire to be detected passing through the region center of the diamond wire region to be detected; sequentially selecting to-be-positioned shooting sites at equal intervals on the optimal shooting arc track, setting to-be-positioned shooting angles according to the to-be-positioned shooting sites and the regional center, carrying out site symmetry assignment on the to-be-positioned shooting sites by utilizing a center detection diamond wire to obtain to-be-positioned laser beam center sites, carrying out irradiation angle sliding test on the to-be-detected diamond wire region according to the to-be-positioned laser beam center sites and the to-be-positioned shooting angles to obtain visible light spot distances, summarizing the visible light spot distances of each to-be-positioned shooting site to obtain a visible light spot distance set, identifying the maximum light spot distance in the visible light spot distance set, identifying the optimal shooting position angle corresponding to the maximum light spot distance and the optimal laser beam center position angle, carrying out positioning shooting on the to-be-detected diamond wire region according to the optimal shooting position angle, the optimal laser beam center position angle and the preset shooting frame rate, obtaining a light spot detection map, extracting the to-be-detected diamond wire position set from the light spot detection map, judging whether the to-be-detected diamond wire has the preset position blocks in the preset to-be-detected diamond wire position blocks according to preset threshold value division algorithms, and if the line positions to be detected in the line position set to be detected do not all have preset light spot blocks, collecting the light spot blocks to obtain a primary light spot block set, identifying the line position to be detected with defects in the line position set to be detected, moving the optimal laser beam central position angle according to a preset detection movement angle to obtain a detection laser beam central position angle, carrying out light spot detection on the diamond line region to be detected according to the detection laser beam central position angle, the line position to be detected with defects and the optimal shooting frame rate to obtain a secondary light spot block set, and carrying out secondary detection on the diamond line region to be detected according to the primary light spot block set and the secondary light spot block set to complete the diamond line light spot detection based on image identification.
Specifically, the specific implementation method of the above instruction by the processor 10 may refer to descriptions of related steps in the corresponding embodiments of fig. 1 to 4, which are not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can realize that an optimal shooting arc track is set according to a preset optimal shooting distance and a center detection diamond wire of a diamond wire region to be detected, wherein the center detection diamond wire refers to the diamond wire to be detected at the center of the region of the diamond wire region to be detected; sequentially selecting to-be-positioned shooting sites at equal intervals on the optimal shooting arc track, setting to-be-positioned shooting angles according to the to-be-positioned shooting sites and the regional center, carrying out site symmetry assignment on the to-be-positioned shooting sites by utilizing a center detection diamond wire to obtain to-be-positioned laser beam center sites, carrying out irradiation angle sliding test on the to-be-detected diamond wire region according to the to-be-positioned laser beam center sites and the to-be-positioned shooting angles to obtain visible light spot distances, summarizing the visible light spot distances of each to-be-positioned shooting site to obtain a visible light spot distance set, identifying the maximum light spot distance in the visible light spot distance set, identifying the optimal shooting position angle corresponding to the maximum light spot distance and the optimal laser beam center position angle, carrying out positioning shooting on the to-be-detected diamond wire region according to the optimal shooting position angle, the optimal laser beam center position angle and the preset shooting frame rate, obtaining a light spot detection map, extracting the to-be-detected diamond wire position set from the light spot detection map, judging whether the to-be-detected diamond wire has the preset position blocks in the preset to-be-detected diamond wire position blocks according to preset threshold value division algorithms, and if the line positions to be detected in the line position set to be detected do not all have preset light spot blocks, collecting the light spot blocks to obtain a primary light spot block set, identifying the line position to be detected with defects in the line position set to be detected, moving the optimal laser beam central position angle according to a preset detection movement angle to obtain a detection laser beam central position angle, carrying out light spot detection on the diamond line region to be detected according to the detection laser beam central position angle, the line position to be detected with defects and the optimal shooting frame rate to obtain a secondary light spot block set, and carrying out secondary detection on the diamond line region to be detected according to the primary light spot block set and the secondary light spot block set to complete the diamond line light spot detection based on image identification.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, system and method may be implemented in other manners. For example, the system embodiments described above are merely illustrative, and there may be additional divisions of a practical implementation.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over 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.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A diamond line light spot detection method based on image recognition is characterized by comprising the steps of setting an optimal shooting arc track according to a preset optimal shooting distance and a center detection diamond line of a diamond line area to be detected, wherein the center detection diamond line refers to a diamond line to be detected passing through the area center of the diamond line area to be detected, sequentially selecting the diamond line to be detected at equal intervals on the optimal shooting arc track, setting a positioning angle according to the position to be detected and the area center, carrying out locus symmetry assignment on the diamond line to be detected by utilizing the center detection diamond line to obtain a laser beam central locus, carrying out irradiation angle sliding test on the diamond line area to be detected according to the position to be detected and the positioning angle to obtain visual spot distances, summarizing the visual spot distances of all the diamond line to be detected to obtain visual spot distance sets, identifying the optimal shooting angle and the optimal laser beam central position angle corresponding to the maximum spot distance in the visual spot distance set, carrying out positioning on the diamond line area to be detected according to the optimal shooting angle, carrying out locus symmetric assignment on the diamond line to be detected according to the preset positioning angle, carrying out position to the laser spot position to the preset focal point, and the diamond line to be detected focal point to obtain the focal point to be detected, and the focal point to be detected in the area to be detected, and the focal point to be detected is obtained, and if the focal point is located in the area to be detected and the focal point is located in the area to be detected according to the preset focal point position The method comprises the steps of carrying out spot point shooting on a diamond line region to be detected according to an optimal laser beam central position angle and a preset shooting frame rate, collecting spot blocks to obtain a primary spot block set if preset spot blocks do not exist in all the line positions to be detected in the line positions to be detected, identifying the defect line positions to be detected in the line positions to be detected, moving the optimal laser beam central position angle according to a preset detection moving angle to obtain a detection laser beam central position angle, carrying out spot detection on the diamond line region to be detected according to the detection laser beam central position angle, the defect line positions to be detected and the optimal shooting position angle to obtain a secondary spot block set, and carrying out secondary detection on the diamond line region to be detected according to the primary spot block set and the secondary spot block set to finish diamond line spot detection based on image identification.
2. The method for detecting the diamond wire light spots based on image recognition according to claim 1 is characterized in that the setting of the optimal shooting arc track according to a preset optimal shooting distance and a center detection diamond wire of a diamond wire area to be detected comprises the steps of identifying a space to be detected plane of the diamond wire area to be detected, determining an area vertical plane passing through the center detection diamond wire and perpendicular to the space to be detected plane, determining an optimal shooting semicircular track in the area vertical plane according to the area center and the optimal shooting distance, identifying a space inclination angle of the space to be detected plane, setting a first ray and a second ray in the area vertical plane according to the space inclination angle and a preset first included angle and a preset second included angle, and cutting the optimal shooting arc track on the optimal shooting semicircular track according to the first ray and the second ray.
3. The method for detecting the diamond-wire light spots based on image recognition according to claim 2, wherein the step of setting the to-be-positioned camera angles according to the to-be-positioned camera points and the area center comprises the steps of connecting the to-be-positioned camera points and the area center to obtain target camera vision lines, and adjusting the camera angles according to the target camera vision lines at the to-be-positioned camera points to obtain the to-be-positioned camera angles.
4. The diamond line light spot detection method based on image recognition according to claim 3, wherein the step of carrying out locus symmetry assignment on a to-be-determined shooting locus by using a center detection diamond line to obtain a to-be-determined laser beam center locus comprises the steps of constructing a center vertical line passing through the center of the area in a vertical plane of the area, carrying out symmetry laser sight of the target shooting sight in the vertical plane of the area according to the center vertical line, wherein the center vertical line is an angular bisector of the target shooting sight and the symmetry laser sight, and identifying a laser sight starting point of the symmetry laser sight, wherein the laser sight starting point is used as the laser beam center locus.
5. The method for detecting diamond wire light spots based on image recognition according to claim 4 is characterized in that the method comprises the steps of conducting irradiation angle sliding test on a diamond wire region to be detected according to the center point of a laser beam to be determined and the position angle of the laser beam to be determined, obtaining visible light spot distances, conducting emission angle sliding deflection on a pre-built parallel laser beam emitting device at the center point of the laser beam to be determined, obtaining dynamic laser emitting beams, conducting irradiation on the diamond wire region to be detected by utilizing the dynamic laser emitting beams, conducting continuous shooting on the diamond wire region to be detected according to the position angle of the laser beam to be determined, obtaining laser reflection image sets, identifying visible reflection image sets in the laser reflection image sets, wherein the visible reflection image sets refer to image sets in which all diamond wires to be detected exist in light spot blocks, identifying first edge reflection images and second edge reflection images in the visible reflection image sets, identifying first light spot positions of the light spot blocks in the first edge reflection images and second edge reflection images, and determining the visible light spot distances according to the first positions and the second positions.
6. The method for detecting the diamond wire light spots based on image recognition according to claim 5 is characterized in that the diamond wire region to be detected is subjected to positioning shooting according to the optimal camera position angle to obtain a diamond wire position set, the diamond wire region to be detected is shot according to the optimal camera position angle to obtain a positioning shooting image, an image pixel point set of the diamond wire to be detected is identified in the positioning shooting image, an image pixel position set of the image pixel point set is identified, and diamond wire positions are determined according to the image pixel position set to obtain the diamond wire position set.
7. The method for detecting the diamond line light spots based on image recognition according to claim 6 is characterized in that the step of extracting the to-be-detected line bit set from the light spot detection graph by using the diamond line bit set comprises the steps of sequentially extracting diamond line bits from the diamond line bit set, recognizing the to-be-detected pixel set from the light spot detection graph according to the diamond line bits, and carrying out pixel collection on the to-be-detected pixel set to obtain the to-be-detected line bit set.
8. The method for detecting diamond wire light spots based on image recognition according to claim 7, wherein the step of intensively recognizing the line position to be detected as the defect line position includes the steps of intensively extracting the line position to be detected in sequence, judging whether a spot block exists in the line position to be detected, returning to the step of intensively extracting the line position to be detected in sequence if the spot block exists in the line position to be detected, and confirming the line position to be detected as the defect line position to be detected if the spot block does not exist in the line position to be detected.
9. The method for detecting diamond line light spots based on image recognition as set forth in claim 8, wherein the performing secondary inspection on the diamond line region to be inspected according to the primary light spot block set and the secondary light spot block set comprises calculating a central angle of an inspection laser beam according to the inspection movement angle and the central angle of an optimal laser beam, calculating a moving light spot line according to the central angle of the inspection laser beam, a space plane to be inspected and the optimal camera angle by using a preset laser reflection rule, identifying a moving light spot intersection point set of the moving light spot line and a preset diamond line set in the diamond line region to be inspected, identifying a light spot pixel block set of the moving light spot intersection point set according to the optimal camera angle, identifying a defective pixel block of the defect line to be inspected in the light spot pixel block set, removing the defective pixel block in the light spot pixel block set, obtaining a inspected pixel block set, judging whether the secondary light spot block set and the inspected pixel block set meet a pixel site correspondence rule, calculating a moving light spot line by using a preset laser reflection rule, identifying a moving light spot intersection point set of the moving light spot line and the preset diamond line set in the diamond line region to be inspected, performing warning if the secondary light spot block set and the diamond line set meet a multi-line correspondence rule, and performing warning on the diamond line to be inspected, and performing warning on the defective pixel block set and the defective pixel block set if the defect block is not met by the two light spot block set in the light spot block set, and carrying out single-line fracture alarm on the diamond wire position to be detected.
10. A diamond line light spot detection system based on image recognition is characterized by comprising a to-be-positioned laser beam center point assignment module, an irradiation angle sliding test module, a spot point circulation shooting module, a laser spot point shooting module and a laser spot point shooting module, wherein the to-be-positioned laser beam center point assignment module is used for setting an optimal shooting arc track according to a preset optimal shooting distance and a center detection diamond line of a to-be-detected diamond line area, the center detection diamond line is a to-be-detected diamond line passing through the area center of the to-be-detected diamond line area, the to-be-positioned shooting points are sequentially selected equidistantly on the optimal shooting arc track, the to-be-positioned laser beam center point is obtained by carrying out point symmetry assignment on the to-be-positioned laser beam center point according to the to-be-positioned shooting point and the area center point, the irradiation angle sliding test module is used for carrying out irradiation angle sliding test on the to-be-detected diamond line area according to the to-be-positioned laser beam center point and the to-be-detected diamond line area, the visible spot distance is collected to obtain a visible spot distance set, the spot point circulation shooting module is used for intensively identifying the maximum spot distance on the visible spot distance at the visible spot point, the optimal position point position corresponding to the maximum spot angle, and the optimal center point setting the laser beam to be-positioned diamond line to be-located according to the optimal laser beam center point and the to be-positioned diamond line to be-detected camera position, and the optimal camera position detection area, the method comprises the steps of obtaining a light spot detection graph, extracting a line position set to be detected from the light spot detection graph by utilizing the diamond line position set, judging whether all line positions to be detected in the line position set to be detected have preset light spot blocks according to a preset threshold segmentation algorithm, returning to the step of carrying out light spot shooting on the diamond line region to be detected according to the optimal camera shooting position angle, the optimal laser beam center position angle and the preset shooting frame rate if all the line positions to be detected in the line position set to be detected have preset light spot blocks, collecting the light spot blocks to obtain a primary light spot block set, identifying the defect line positions to be detected in the line position set to be detected according to a preset detection movement angle, obtaining a detection laser beam center position angle, carrying out light spot detection on the diamond line region to be detected according to the detection laser beam center position angle, the defect line positions to be detected and the optimal camera shooting frame rate, and carrying out light spot secondary detection on the light spot region to be detected according to the primary light spot block and the secondary light spot block to be detected.
CN202411921971.XA 2024-12-25 2024-12-25 Diamond line light spot detection method and system based on image recognition Active CN119359722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411921971.XA CN119359722B (en) 2024-12-25 2024-12-25 Diamond line light spot detection method and system based on image recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411921971.XA CN119359722B (en) 2024-12-25 2024-12-25 Diamond line light spot detection method and system based on image recognition

Publications (2)

Publication Number Publication Date
CN119359722A CN119359722A (en) 2025-01-24
CN119359722B true CN119359722B (en) 2025-03-04

Family

ID=94309226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411921971.XA Active CN119359722B (en) 2024-12-25 2024-12-25 Diamond line light spot detection method and system based on image recognition

Country Status (1)

Country Link
CN (1) CN119359722B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114372931A (en) * 2021-12-31 2022-04-19 北京旷视科技有限公司 A target object blurring method, device, storage medium and electronic device
CN114526680A (en) * 2022-01-27 2022-05-24 太原理工大学 Thin ice thickness measuring device and method based on reflected light spot image recognition

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11263458B1 (en) * 2020-08-30 2022-03-01 Jonathan Vidal System and apparatus for augmented reality fishing and fish-watching
CN115965653B (en) * 2022-12-14 2023-11-07 北京字跳网络技术有限公司 Light spot tracking method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114372931A (en) * 2021-12-31 2022-04-19 北京旷视科技有限公司 A target object blurring method, device, storage medium and electronic device
CN114526680A (en) * 2022-01-27 2022-05-24 太原理工大学 Thin ice thickness measuring device and method based on reflected light spot image recognition

Also Published As

Publication number Publication date
CN119359722A (en) 2025-01-24

Similar Documents

Publication Publication Date Title
CN108683907B (en) Optical module pixel defect detection method, device and equipment
US20190011542A1 (en) Method and apparatus for measuring angular resolution of multi-beam lidar
CN113252700A (en) Structural crack detection method, equipment and system
CN111612757B (en) Screen crack detection method, device, equipment and storage medium
US20240394916A1 (en) Method and apparatus for testing stability of vision system
CN105335963A (en) Edge defect detection method and apparatus
CN112991459A (en) Camera calibration method, device, equipment and storage medium
CN113884011A (en) Non-contact concrete surface crack measuring equipment and method
CN115861307B (en) Fascia gun power supply driving plate welding fault detection method based on artificial intelligence
WO2020133488A1 (en) Vehicle detection method and device
CN119359722B (en) Diamond line light spot detection method and system based on image recognition
CN113630594B (en) Bad point detection system of display panel
CN119125169A (en) Aerospace-grade master alloy morphology detection method and system based on visual recognition
CN112017065B (en) Method, device and computer readable storage medium for vehicle damage assessment and claim
CN117496443B (en) Highway power line fault detection method, device, electronic equipment and medium
CN118552493A (en) Circuit board surface defect detection method based on combination of industrial Internet and machine vision
CN114581890B (en) Method and device for determining lane line, electronic equipment and storage medium
WO2023245984A1 (en) Cable inspection robot-based overhead line testing method and system
CN115035481A (en) Image object distance fusion method, device, equipment and storage medium
JP7338788B2 (en) DETECTION DEVICE, DETERMINATION METHOD, AND PROGRAM
CN115047008B (en) Road crack detection system based on Faster R-CNN
CN113256714B (en) Tunnel surface image processing method and system
JPH03108638A (en) Method of identifying particle aggregation pattern
CN112730427B (en) Product surface defect detection method and system based on machine vision
CN115632704B (en) Method, device, equipment and medium for testing energy distribution of line laser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant