Intelligent laser cleaning path planning method, storage medium and system

By performing binary processing and path planning on the workpiece to be cleaned, dividing sub-partitions and optimizing the connection path, the problem of non-target area cleaning in laser cleaning in the existing technology is solved, and the efficiency and effect of laser cleaning are improved.

CN118243103BActive Publication Date: 2024-09-10HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410350609.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-09-10
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

In existing laser cleaning technology, path planning is non-contact, which results in the unavoidable cleaning of non-target areas during movement, reducing work efficiency and cleaning effect.

Method used

By obtaining the binary image of the workpiece to be cleaned, multiple sub-partitions are divided, and path coverage is performed for each sub-partition. The connection path between sub-partitions is established based on the preset path planning algorithm, the obstacle weight and fatigue factor are optimized, and iterative calculation is performed Path utility matrix to generate the optimal laser cleaning path.

Benefits of technology

It improves the efficiency of laser cleaning, reduces surface damage to the substrate in non-cleaning areas, optimizes the cleaning effect, and ensures full coverage and efficient cleaning of the area to be cleaned.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118243103B
    Figure CN118243103B
Patent Text Reader

Abstract

The present invention provides an intelligent laser cleaning path planning method, storage medium and system, which relate to the field of laser surface processing technology. The method comprises: obtaining a binary image of a to-be-cleaned area of ​​a workpiece to be cleaned; obtaining multiple sub-partitions of the binary image of the to-be-cleaned area according to the binary image; performing path coverage according to each sub-partition to obtain the coverage path of all sub-partitions; obtaining the connection path between the sub-partitions in the non-cleaned area of ​​the workpiece to be cleaned through a preset path planning algorithm according to the coverage path of the sub-partitions; obtaining the path planning of the workpiece to be cleaned according to the connection path of the non-cleaned area and the coverage path of all sub-partitions. The present invention shortens the path in the non-cleaned area by establishing a connection path between each sub-partition on the non-cleaned area, improves the working efficiency of laser cleaning, reduces the damage to the substrate surface in the non-cleaned area, and comprehensively optimizes the cleaning effect of laser cleaning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of laser surface processing technology, and in particular to an intelligent laser cleaning path planning method, storage medium and system. Background Art

[0002] At present, laser cleaning technology, as an important branch of laser surface processing technology, is a cleaning method that uses the interaction between laser and material to remove the attachments on the substrate surface. Among them, for the path planning of laser cleaning, intelligent planning methods such as ant colony algorithm or simulated annealing method are usually used to realize the recognition, extraction and targeted scanning path coverage of the laser cleaning target area.

[0003] In the prior art, when the path is intelligently planned, the path planning is non-contact. Due to the discontinuous island characteristics of the distribution of attachments, it is inevitable to pass through non-target areas during the movement along the planned path, resulting in the cleaning of non-target areas to a large extent during work, reducing the work efficiency of laser surface processing and the effect of laser cleaning. Summary of the invention

[0004] The problem solved by the present invention is how to optimize the cleaning effect of laser cleaning.

[0005] In order to solve the above problems, the present invention provides an intelligent laser cleaning path planning method, comprising:

[0006] Acquire a binary image of the to-be-cleaned area of ​​the workpiece to be cleaned;

[0007] According to the binary image, a plurality of sub-regions of the binary image of the area to be cleaned are obtained;

[0008] According to each of the sub-partitions, path coverage is performed to obtain coverage paths of all the sub-partitions;

[0009] According to the coverage paths of the sub-partitions, a connection path between the sub-partitions in the non-cleaning area of ​​the workpiece to be cleaned is obtained by a preset path planning algorithm;

[0010] The path planning of the workpiece to be cleaned is obtained according to the connection path of the non-cleaning area and the coverage paths of all the sub-areas.

[0011] Optionally, the step of acquiring a binary image of the area to be cleaned of the workpiece to be cleaned includes:

[0012] Performing graphic sampling and processing on the workpiece to be cleaned to obtain surface features of the area to be cleaned, wherein the surface features include edges, textures, and shapes;

[0013] Obtaining the area to be cleaned of the workpiece to be cleaned according to the surface features of the area to be cleaned;

[0014] According to a preset grayscale threshold, the area to be cleaned is binarized to generate the binarized image of the area to be cleaned.

[0015] Optionally, obtaining a plurality of sub-regions of the binary image of the area to be cleaned according to the binary image includes:

[0016] Establishing a topological coordinate system according to the binary image of the area to be cleaned;

[0017] Performing topological division on the binary image according to a preset division rule to obtain a plurality of coordinate sets of the area to be cleaned in a topological coordinate system;

[0018] According to each coordinate set, each sub-region of the binary image of the area to be cleaned is obtained.

[0019] Optionally, performing path coverage according to each of the sub-partitions to obtain coverage paths of all the sub-partitions includes:

[0020] According to the surface features of the area to be cleaned in each of the sub-areas, path coverage is performed in a preset coverage manner;

[0021] When the surface features of the area to be cleaned in the sub-partition are completely covered, a coverage path of the sub-partition is obtained.

[0022] Optionally, obtaining the connection paths between the sub-partitions in the non-cleaning area of ​​the workpiece to be cleaned by a preset path planning algorithm according to the coverage paths of the sub-partitions includes:

[0023] According to the coverage path of the sub-partition, obtain a path starting point and a path end point of the sub-partition;

[0024] According to the path starting points and the path end points of all the sub-partitions, iterating the original symmetric distance matrix between the sub-partitions by optimizing the obstacle weights and fatigue factors of the path planning algorithm;

[0025] When the iteration is completed, the original symmetric distance matrix of the last iteration is used as the path utility matrix;

[0026] According to the path utility matrix between the sub-partitions, a connection path in the non-cleaning area of ​​the workpiece to be cleaned is obtained.

[0027] Optionally, the iterating the original symmetric distance matrix between the sub-partitions according to the path starting points and the path end points of all the sub-partitions by optimizing the obstacle weights and fatigue factors of the path planning algorithm comprises:

[0028] Optimizing the initial obstacle weight of the path planning algorithm according to the refined step size factor to obtain the optimized obstacle weight of the path planning algorithm;

[0029] updating the original symmetric distance matrix according to the optimized obstacle weights and the fatigue factor of the path planning algorithm;

[0030] The original symmetric distance matrix after updating is used as the path utility matrix.

[0031] Optionally, optimizing the initial obstacle weight of the path planning algorithm according to the refined step size factor to obtain the optimized obstacle weight of the path planning algorithm includes:

[0032] According to the refined step size factor, the initial obstacle weight of the path planning algorithm is optimized by an optimization formula to obtain the optimized obstacle weight of the path planning algorithm;

[0033] The optimization formula is:

[0034]

[0035] in, is the initial obstacle weight, is the optimization barrier weight, ξ is the cell size of the sub-partition, χ is the refinement step factor, and N is the number of cells in the sub-partition.

[0036] Optionally, updating the original symmetric distance matrix according to the optimized obstacle weight and the fatigue factor of the path planning algorithm includes:

[0037] The original symmetric distance matrix is ​​updated according to the optimized obstacle weights and the fatigue factor of the path planning algorithm by updating equations;

[0038] The update equation is:

[0039]

[0040] Among them, L tau is the original symmetric distance matrix, η is the fatigue factor, L tau ′ is the path utility matrix.

[0041] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the intelligent laser cleaning path planning method described in any one of the above items is implemented.

[0042] The present invention also provides an intelligent laser cleaning path planning system, comprising a computer-readable storage medium storing a computer program and a processor, wherein when the computer program is read and executed by the processor, the intelligent laser cleaning path planning method as described in any one of the above items is implemented.

[0043] The intelligent laser cleaning path planning method, storage medium and system of the present invention obtain a binary image by binarizing the workpiece to be cleaned, obtain the to-be-cleaned area on the surface of the workpiece to be cleaned, and divide it into a plurality of sub-partitions, and perform path coverage for each sub-partition to ensure that the to-be-cleaned area in the sub-partition can be completely cleaned; on the basis that all the to-be-cleaned areas can be cleaned, a connection path on the non-cleaning area between each sub-partition is established through a preset path planning algorithm to ensure that the covered paths of all sub-partitions are connected, shortening the path in the non-cleaning area, and finally combining the paths of the to-be-cleaned area and the non-cleaning area to obtain the entire path planning of the workpiece to be cleaned, avoiding as much as possible covering too many cleaning paths in the non-cleaning area, and performing laser cleaning according to the above-planned path, which can improve the working efficiency of laser cleaning, while reducing the damage to the substrate surface in the non-cleaning area, thereby comprehensively optimizing the cleaning effect of laser cleaning. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a flow chart of an intelligent laser cleaning path planning method according to an embodiment of the present invention;

[0045] Figure 2 A binary image of a target cleaning workpiece in another embodiment of the present invention;

[0046] Figure 3 A schematic diagram of coordinates for establishing a path in an intelligent laser cleaning path planning method according to another embodiment of the present invention;

[0047] Figure 4 It is a schematic diagram of a weight optimization process in another embodiment of the present invention;

[0048] Figure 5 This is a path planning effect diagram in another embodiment of the present invention;

[0049] Figure 6 This is a comparison diagram of path coverage effects in yet another embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0051] Combination Figure 1 As shown, the present invention provides an intelligent laser cleaning path planning method, comprising:

[0052] A binary image of the to-be-cleaned area of ​​the workpiece to be cleaned is obtained.

[0053] Specifically, combined Figure 2 As shown, the image feature extraction of the workpiece to be cleaned is performed. First, the workpiece to be cleaned is fixed, and the image acquisition and processing module is used to perform graphic sampling and processing on the surface of the workpiece to be cleaned, and the features of the target area to be cleaned are extracted to generate a binary image of the target cleaned workpiece. Among them, in a preferred embodiment of the present invention, the fixing method can be a mechanical fixture, a precise positioning device or other stable support means to prevent movement or blurring during the image acquisition process. The image acquisition and processing module is then used to shoot the surface of the workpiece, which can be a high-resolution camera, an appropriate light source, and a possible optical magnification storage medium. During the acquisition process, the lighting conditions need to be properly controlled to reduce the interference of reflections and shadows to ensure that a clear workpiece surface image is acquired. The processed image is converted into a binary image, generally the target area is white and the background is black (or vice versa), which simplifies the image content and makes it easier to identify and segment the area to be cleaned.

[0054] According to the binary image, a plurality of sub-regions of the binary image of the area to be cleaned are obtained.

[0055] Specifically, in a preferred embodiment of the present invention, the area to be cleaned in the binary image is usually highlighted in white, while the background is black. First, a connected component labeling algorithm can be applied to identify all white connected areas, wherein each connected area represents a potential sub-area to be cleaned. The area to be cleaned is partitioned, wherein the partitioning methods include cluster partitioning, boustrophedon cell decomposition method, connected domain partitioning, etc. In the embodiment, the boustrophedon cell decomposition method is used to perform topological segmentation on the target, and the partitioning result of the binary image can be recorded in the form of a pixel coordinate set, and finally a two-dimensional space set containing all sub-partitions is obtained.

[0056] According to each of the sub-partitions, path coverage is performed to obtain coverage paths of all the sub-partitions.

[0057] Specifically, all the obtained sub-partitions are covered one by one by a path covering method using a local customized heuristic method. The covering methods include arch covering, inner spiral covering, inward step covering, etc. In a preferred embodiment of the present invention, the inner spiral covering method can be used to gradually spiral from the periphery of the sub-partition to the center point until the entire area is covered, and the coverage paths inside all sub-partitions are obtained, and the starting and ending path nodes of the coverage paths of each sub-partition are extracted. At this time, the idea of ​​composite path planning is used to regard the sub-partitions as several global path nodes for subsequent global path planning.

[0058] According to the coverage paths of the sub-partitions, a connection path between the sub-partitions in the non-cleaning area of ​​the workpiece to be cleaned is obtained by a preset path planning algorithm.

[0059] Specifically, intelligent path planning is performed on representative nodes in a global range, and the planning process is regulated by using the definition rules of non-target areas, obstacle avoidance refinement weights and fatigue factors described in the present invention. Path planning methods include simulated annealing, greedy algorithm, ant colony algorithm, particle swarm algorithm, genetic algorithm, etc.

[0060] The path planning of the workpiece to be cleaned is obtained according to the connection path of the non-cleaning area and the coverage paths of all the sub-areas.

[0061] Specifically, the coverage paths of each sub-partition obtained above are integrated into the overall plan. The coverage paths of each sub-partition already have a starting point and an end point, ensuring that the cleaning operations within each sub-partition can be fully covered. A path plan that includes all coverage paths and all connection paths is obtained. This path plan will be the action route for cleaning the storage medium.

[0062] The intelligent laser cleaning path planning method of the present invention obtains a binary image by binarizing the workpiece to be cleaned, obtains the to-be-cleaned area on the surface of the workpiece to be cleaned, and divides it into a plurality of sub-partitions, and performs path coverage for each sub-partition to ensure that the to-be-cleaned area in the sub-partition can be completely cleaned; on the basis that all the to-be-cleaned areas can be cleaned, a connection path between each sub-partition on the non-cleaning area is established through a preset path planning algorithm to ensure that the covered paths of all sub-partitions are connected, shortening the path in the non-cleaning area, and finally combining the paths of the to-be-cleaned area and the non-cleaning area to obtain the entire path planning of the workpiece to be cleaned, avoiding as much as possible covering too many cleaning paths in the non-cleaning area, and performing laser cleaning according to the above-planned path, which can improve the working efficiency of laser cleaning, while reducing the damage to the substrate surface in the non-cleaning area, thereby comprehensively optimizing the cleaning effect of laser cleaning.

[0063] In the embodiment of the present invention, the step of obtaining a binary image of the area to be cleaned of the workpiece to be cleaned includes:

[0064] Performing graphic sampling and processing on the workpiece to be cleaned to obtain surface features of the area to be cleaned, wherein the surface features include edges, textures, and shapes;

[0065] Obtaining the area to be cleaned of the workpiece to be cleaned according to the surface features of the area to be cleaned;

[0066] According to a preset grayscale threshold, the area to be cleaned is binarized to generate the binarized image of the area to be cleaned.

[0067] In this embodiment, the workpiece to be cleaned is firstly sampled and processed to obtain the surface features of the area to be cleaned, including edges, textures and shapes. This can be achieved through image processing technology and algorithms, such as edge detection algorithms, texture analysis algorithms and shape recognition algorithms. By extracting the surface features, the area to be cleaned can be determined more accurately, avoiding cleaning the entire workpiece, thereby improving the cleaning efficiency. Next, according to the surface features of the area to be cleaned, the area to be cleaned of the workpiece to be cleaned is obtained, and the area to be cleaned is determined by analyzing and matching the surface features. For example, the area to be cleaned can be judged according to the density of the edges, the characteristics of the texture and the complexity of the shape, so as to accurately locate the part to be cleaned. Finally, according to the preset grayscale threshold, the area to be cleaned is binarized to generate a binary image of the area to be cleaned. This step can be performed by setting the grayscale threshold to divide the image into black and white parts, so that the boundary of the cleaning area is clearer, which is convenient for subsequent cleaning operations.

[0068] The intelligent laser cleaning path planning method of the present invention realizes feature extraction and determination of the area to be cleaned through grayscale threshold and binarization processing, can accurately determine the area to be cleaned, reduce unnecessary cleaning operations, save cleaning costs and time, and improve cleaning efficiency and quality.

[0069] In the embodiment of the present invention, the step of obtaining a plurality of sub-regions of the binary image of the area to be cleaned according to the binary image includes:

[0070] Establishing a topological coordinate system according to the binary image of the area to be cleaned;

[0071] Performing topological division on the binary image according to a preset division rule to obtain a plurality of coordinate sets of the area to be cleaned in a topological coordinate system;

[0072] According to each coordinate set, each sub-region of the binary image of the area to be cleaned is obtained.

[0073] In the present embodiment, a topological coordinate system is established according to the binary image of the area to be cleaned. The topological coordinate system can be a regular grid-like structure, which is used to divide and locate the area to be cleaned. The binary image is topologically divided according to a preset division rule to obtain a plurality of coordinate sets of the area to be cleaned in the topological coordinate system. The division rule can be set according to actual conditions, and can be divided based on features such as pixel density, shape, and boundary. According to each coordinate set, each sub-region of the binary image of the area to be cleaned is obtained. By extracting the pixels corresponding to each coordinate set in the topological coordinate system, the binary images of each sub-region are obtained.

[0074] The intelligent laser cleaning path planning method of the present invention divides the area to be cleaned into fine divisions according to preset division rules, and obtains binary images of multiple sub-divisions, thereby achieving more accurate analysis and processing of the area to be cleaned, thereby improving the cleaning accuracy and efficiency.

[0075] In the embodiment of the present invention, performing path coverage according to each of the sub-partitions to obtain coverage paths of all the sub-partitions includes:

[0076] According to the surface features of the area to be cleaned in each of the sub-areas, path coverage is performed in a preset coverage manner;

[0077] When the surface features of the area to be cleaned in the sub-partition are completely covered, a coverage path of the sub-partition is obtained.

[0078] In this embodiment, the preset covering methods include arch covering, inner spiral covering, inward step covering and the like. According to the surface features of the area to be cleaned in each sub-partition, path covering is performed according to the preset covering method. For example, the inner spiral covering method adopts a step-by-step spiral entry from the periphery of the sub-partition to the center point until all the sub-partitions are covered.

[0079] The intelligent laser cleaning path planning method of the present invention adopts different covering modes to cover the path according to the surface characteristics of the area to be cleaned in each sub-division, thereby improving the cleaning efficiency and quality. During the cleaning process, each area can be covered more comprehensively and finely, effectively improving the thoroughness and accuracy of the cleaning.

[0080] In an embodiment of the present invention, obtaining the connection path between the sub-partitions in the non-cleaning area of ​​the workpiece to be cleaned by a preset path planning algorithm according to the coverage path of the sub-partitions includes:

[0081] According to the coverage path of the sub-partition, obtain a path starting point and a path end point of the sub-partition;

[0082] According to the path starting points and the path end points of all the sub-partitions, iterating the original symmetric distance matrix between the sub-partitions by optimizing the obstacle weights and fatigue factors of the path planning algorithm;

[0083] When the iteration is completed, the original symmetric distance matrix of the last iteration is used as the path utility matrix;

[0084] According to the path utility matrix between the sub-partitions, a connection path in the non-cleaning area of ​​the workpiece to be cleaned is obtained.

[0085] In this embodiment, the path starting point and path end point of each sub-partition are obtained according to the coverage path of each sub-partition. These starting points and end points can be determined during the processing to plan the connection path. According to the path starting points and path end points of all sub-partitions, the original symmetric distance matrix between the sub-partitions is iterated by the fatigue factor of the path planning algorithm. The path planning algorithm usually takes into account factors such as path length, curvature, feasibility, etc., so as to obtain a symmetric distance matrix after iterative optimization. When the iteration is completed, the original symmetric distance matrix of the last iteration is used as the path utility matrix. The path utility matrix reflects the advantages and disadvantages of the paths between each sub-partition and can be used as the basis for connection path planning. According to the path utility matrix between the sub-partitions, the connection path in the non-cleaning area of ​​the workpiece to be cleaned is obtained. The planning of the connection path can be optimized by the shortest path algorithm, the minimum spanning tree algorithm, the genetic algorithm, etc., to obtain the connection path of the non-cleaning area that meets the actual situation.

[0086] The intelligent laser cleaning path planning method of the present invention obtains the connection path in the non-cleaning area of ​​the workpiece to be cleaned according to the coverage path of the sub-partition and the path planning algorithm, thereby ensuring the continuity and efficiency of the cleaning work, reducing the redundancy and repetition of the cleaning path, and improving the cleaning efficiency. At the same time, it also reduces the loopholes in the cleaning work and ensures the integrity and comprehensiveness of the cleaning.

[0087] In the embodiment of the present invention, the iterating of the original symmetric distance matrix between the sub-partitions according to the path starting points and the path end points of all the sub-partitions by optimizing the obstacle weights and fatigue factors of the path planning algorithm includes:

[0088] Optimizing the initial obstacle weight of the path planning algorithm according to the refined step size factor to obtain the optimized obstacle weight of the path planning algorithm;

[0089] updating the original symmetric distance matrix according to the optimized obstacle weights and the fatigue factor of the path planning algorithm;

[0090] The original symmetric distance matrix after updating is used as the path utility matrix.

[0091] In this embodiment, the initial obstacle weight of the path planning algorithm is optimized according to the refinement step size factor, and the original symmetric distance matrix is ​​updated to obtain the path utility matrix. This shows that the algorithm adjusts the obstacle weight and the fatigue factor of the path planning algorithm to obtain a more accurate and practical path utility matrix. The refinement step size factor can be used to adjust the obstacle weight of the path planning algorithm. This means that when considering the impact of obstacles on path planning, the degree of impact of obstacles on path selection can be adjusted according to actual conditions. By optimizing the obstacle weight, the impact of obstacles in the actual environment on path selection can be more accurately reflected, thereby improving the accuracy and applicability of path planning. Once the optimized obstacle weight is calculated, the original symmetric distance matrix can be updated according to this weight and the fatigue factor of the path planning algorithm. This means that the path planning algorithm will recalculate the path utility matrix between sub-partitions based on these updated parameters. This updated path utility matrix can better reflect the advantages and disadvantages and applicability of each path.

[0092] In an embodiment of the present invention, a geometric method is used to establish a definition benchmark for the path passing through the non-target area. Through the description of points and lines, and the process of calculating its parameters, data information containing a matrix of non-target areas is obtained, which is adjusted as a heuristic factor and fed back to the intelligent path optimization algorithm to enable the optimization algorithm to make the correct avoidance behavior or tendency. The adjustment process fits the analysis of the actual application scenario of this article, that is, a specific obstacle avoidance method is established according to its characteristics. As described in the technical background, the coverage path problem involved in the present invention includes disconnection in a geometric sense, that is, there are non-target areas that cannot be avoided during the path establishment process, but this does not have a substantial blocking effect on the scanning process of the laser spot, and the continuity of the scan should be maintained as much as possible during the actual cleaning process. First, define the benchmark for the existence of obstacle information on the access path under the planar yx coordinates of the laser cleaning scene. The definition method is as follows: Figure 3 As shown in the figure, taking the rectangular spot coverage unit as an example, let the cell size of the path node be δ. If the overlap during the spot coverage process is not considered at this time, the center point (y0, x0) of the cell where the current path node is located is connected to the center point (y0, x0) of an accessible cell. ω ,x ω )

[0093] x=k*y+b;

[0094] Among them, k is the slope, and b is the intersection of the x-axis and the connecting line. The current path node performs a pseudo (pseudo) visit from the cell where it is located to the accessible cell, combined with Figure 3As shown in the figure, the middle part between the two dotted lines is the access channel of the path node, and the vertical width of the channel is marked as L width , the upper and lower boundaries of the (y, x) channel are expressed as:

[0095]

[0096]

[0097] in, θ=arctan(k),Ω lower is the lower boundary, Ω upper is the upper boundary;

[0098] If in [Ω lower ,Ω upper ] interval, if the path node transfers through a cell in a non-target area, it is considered that there is "obstacle" information in the quasi-(pseudo) access channel of the current path node.

[0099] The intelligent laser cleaning path planning method of the present invention improves the quality and applicability of the path utility matrix by adjusting and optimizing the obstacle weights of the path planning algorithm, can better reflect the actual situation, adapt to different cleaning environments and workpiece characteristics, make the obtained connection path more reasonable and reliable, and improve the quality and efficiency of the cleaning work.

[0100] In the embodiment of the present invention, the initial obstacle weight of the path planning algorithm is optimized according to the refined step size factor to obtain the optimized obstacle weight of the path planning algorithm, including:

[0101] According to the refined step size factor, the initial obstacle weight of the path planning algorithm is optimized by an optimization formula to obtain the optimized obstacle weight of the path planning algorithm;

[0102] The optimization formula is:

[0103]

[0104] in, is the initial obstacle weight, is the optimization barrier weight, ξ is the cell size of the sub-partition, χ is the refinement step factor, and N is the number of cells in the sub-partition.

[0105] In this embodiment, according to the refinement step factor, the initial obstacle weight of the path planning algorithm is optimized through the optimization formula to obtain the optimized obstacle weight of the path planning algorithm. In order to more clearly transform this "obstacle" information into a certain control parameter in the actual path intelligent optimization and integrate it with the path planning algorithm, the "obstacle" information of any two access path points in the full set C is traversed and optimized at the same time, that is, an obstacle accumulation rule is established, combined with Figure 4 As shown, when moving from (y0,x0) to (y ω ,x ω ), the trigger condition of the accumulator ξ is only satisfied when the path node moves along the access channel. There are obstacle weights under different optimization objectives, and the optimization formula is:

[0106]

[0107] in, is the initial obstacle weight, is the optimization barrier weight, ξ is the cell size of the sub-partition, χ is the refinement step factor, and N is the number of cells in the sub-partition.

[0108] The intelligent laser cleaning path planning method of the present invention uses a refined step size factor and an optimization formula to reasonably adjust and optimize the obstacle weights in the path planning algorithm according to specific environments and conditions, so as to better reflect the impact of obstacles on path selection under actual conditions, making it more suitable for path planning tasks in different environments and situations.

[0109] In the embodiment of the present invention, the updating of the original symmetric distance matrix according to the optimized obstacle weight and the fatigue factor of the path planning algorithm includes:

[0110] The original symmetric distance matrix is ​​updated according to the optimized obstacle weights and the fatigue factor of the path planning algorithm by updating equations;

[0111] The update equation is:

[0112]

[0113] Among them, L tau is the original symmetric distance matrix, η is the fatigue factor, L tau ′ is the path utility matrix.

[0114] In this embodiment, in addition, the present invention introduces a fatigue operator into the control process, emphasizing the attenuation of the heuristic gain in the moving direction of the path node, so that the path optimization can make a more favorable trade-off judgment in the global environment to avoid non-target areas. This fatigue operator is combined with the refined obstacle weights and substituted into the distance utility matrix. Under the control effect, the distance utility matrix causes the path heuristic process corresponding to the intelligent path planning algorithm to produce relevant index changes, and the distance utility matrix with integrated obstacle avoidance information is

[0115]

[0116] Among them, L tau is the original symmetric distance matrix between access path points, η is the fatigue factor, L tau ′ is the path utility matrix. The distance utility matrix is ​​combined with the iterative update inspired by the intelligent path to determine the optimized access order of the continuous path. It should be noted that for the universality of this method, the distance utility matrix obtained by this method is a heuristic factor matrix in the process of path node transfer, which evades and regulates the probability transfer of path nodes, but does not participate in or affect the calculation of the actual path distance. Therefore, the present invention is suitable for the optimization and regulation of various intelligent algorithms such as ant colony algorithm and simulated annealing algorithm.

[0117] Therefore, in combination with the above content, in a preferred embodiment of the present invention, a composite ant colony algorithm is used to implement global path planning, wherein the avoidance method for non-target areas is as follows: variables such as initial obstacle avoidance parameters, refinement step size, and fatigue factor are configured respectively, and integrated into the pheromone increment update matrix of the ant colony algorithm. In the embodiment, a variant model of Ant-Cycle is used to update the overall pheromone increment, and the update formula is:

[0118]

[0119] in, It is expressed as the pheromone increment of the μth ant left between the nodes of the access path (i, j) at time t+n, Q is the ant pheromone intensity factor, L μ is the path distance utility matrix obtained by the control method of the present invention when the μth ant crosses the path node in this cycle. At this time, the pheromone iteration process of the ant colony algorithm includes the avoidance control of non-target areas, so the ants have a corresponding obstacle avoidance tendency in the path finding process. The avoidance control parameters are set as follows: the initial obstacle avoidance weight is 4.5, the refinement step size factor is 1.5, and the fatigue factor is 2. Combined with the above planning method, the path planning effect is as follows: Figure 5 As shown in Figure 2, the global ant path finding distance after avoidance regulation is 7683, and the total distance of the composite path is 207573. Figure 6As shown in the figure, the coverage effect pattern after the introduction of the intelligent laser cleaning path planning method is given, and the enlarged comparison is explained. Among them, A1, B1, and C1 are schematic diagrams of the locally enlarged coverage effect before the introduction of the intelligent laser cleaning path planning method, and A2, B2, and C2 are schematic diagrams of the locally enlarged coverage effect after the introduction of the intelligent laser cleaning path planning method. It can be seen from the comparison that when the intelligent laser cleaning path planning method is not introduced for process adjustment, the ants only use the path distance as the environmental inspiration for process constraints in the global scope. When the ant path passes through the areas shown in Figures A1, B1, and C1, it does not have the tendency to avoid non-target areas. After the introduction of the intelligent laser cleaning path planning method for process adjustment, the ants are subject to the joint constraints of distance and obstacle avoidance tendency in the path-finding process, which reduces the randomness of the global ant search, but the advantage is that the trade-off convergence result of compatible distance optimization and avoidance effect is obtained through iteration. Figures A2, B2, and C2 show that the ants can achieve the avoidance effect of path-finding around the obstacle boundary near the obstacle interval, and almost only the path across the isolated partitions cannot be avoided. At the same time, when the intelligent laser cleaning path planning method is not introduced and when the intelligent laser cleaning path planning method is introduced, the path planning data comparison is shown in Table 1. The global ant path optimization length with the introduction of the intelligent laser cleaning path planning method is greater than the global ant path optimization length without the introduction of the intelligent laser cleaning path planning method, indicating that the ant colony still retains the path optimization process in the global scope. In summary, it shows that the control method established by the present invention has an obvious adjustment effect and combines the overall optimization of the path distance.

[0120] Table 1

[0121]

[0122] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the intelligent laser cleaning path planning method described in any one of the above items is implemented.

[0123] The computer-readable storage medium of the present invention obtains a binary image by binarizing the workpiece to be cleaned, obtains the to-be-cleaned area on the surface of the workpiece to be cleaned, and divides it into a plurality of sub-partitions, and performs path coverage for each sub-partition to ensure that the to-be-cleaned area in the sub-partition can be completely cleaned; on the basis that all the to-be-cleaned areas can be cleaned, a connection path between each sub-partition on the non-cleaned area is established through a preset path planning algorithm to ensure that the covered paths of all sub-partitions are connected, shorten the path in the non-cleaned area, and finally combine the paths of the to-be-cleaned area and the non-cleaned area to obtain the entire path planning of the workpiece to be cleaned, avoid covering too many cleaning paths in the non-cleaned area as much as possible, and perform laser cleaning according to the above-planned path, which can improve the working efficiency of laser cleaning, while reducing the damage to the substrate surface of the non-cleaned area, thereby comprehensively optimizing the cleaning effect of laser cleaning.

[0124] The present invention also provides an intelligent laser cleaning path planning system, comprising a computer-readable storage medium storing a computer program and a processor, wherein when the computer program is read and executed by the processor, the intelligent laser cleaning path planning method as described in any one of the above items is implemented.

[0125] The intelligent laser cleaning path planning system of the present invention obtains a binary image by binarizing the workpiece to be cleaned, obtains the to-be-cleaned area on the surface of the workpiece to be cleaned, and divides it into a plurality of sub-partitions, and performs path coverage for each sub-partition to ensure that the to-be-cleaned area in the sub-partition can be completely cleaned; on the basis that all the to-be-cleaned areas can be cleaned, a connection path between each sub-partition on the non-cleaning area is established through a preset path planning algorithm to ensure that the covered paths of all sub-partitions are connected, shortening the path in the non-cleaning area, and finally combining the paths of the to-be-cleaned area and the non-cleaning area to obtain the entire path planning of the workpiece to be cleaned, avoiding as much as possible covering too many cleaning paths in the non-cleaning area, and performing laser cleaning according to the above-planned path, which can improve the working efficiency of laser cleaning, while reducing the damage to the substrate surface in the non-cleaning area, thereby comprehensively optimizing the cleaning effect of laser cleaning.

[0126] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0127] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or storage medium including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or storage medium. In the absence of further restrictions, the elements defined by the sentence "comprise a..." do not exclude the existence of other identical elements in the process, method, article or storage medium including the elements.

[0128] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. An intelligent laser cleaning path planning method, characterized in that: include: Acquire a binary image of the to-be-cleaned area of ​​the workpiece to be cleaned; According to the binary image, a plurality of sub-regions of the binary image of the area to be cleaned are obtained; According to each of the sub-partitions, path coverage is performed to obtain coverage paths of all the sub-partitions; According to the coverage paths of the sub-partitions, a connection path between the sub-partitions in the non-cleaning area of ​​the workpiece to be cleaned is obtained by a preset path planning algorithm; Obtaining a path plan for the workpiece to be cleaned according to the connection path of the non-cleaning area and the coverage paths of all the sub-partitions; Among them, the method of obtaining the connection path between the sub-partitions in the non-cleaning area of ​​the workpiece to be cleaned according to the coverage path of the sub-partitions through a preset path planning algorithm specifically includes: obtaining the path starting point and the path end point of the sub-partition according to the coverage path of the sub-partitions; iterating the original symmetric distance matrix between the sub-partitions according to the path starting point and the path end point of all the sub-partitions through the optimized obstacle weight and fatigue factor of the path planning algorithm; when the iteration is completed, taking the original symmetric distance matrix of the last iteration as the path utility matrix; obtaining the connection path in the non-cleaning area of ​​the workpiece to be cleaned according to the path utility matrix between the sub-partitions; The iterating of the original symmetric distance matrix between the sub-partitions according to the path starting points and the path ending points of all the sub-partitions through the optimized obstacle weights and fatigue factors of the path planning algorithm specifically includes: optimizing the initial obstacle weights of the path planning algorithm according to the refinement step factor to obtain the optimized obstacle weights of the path planning algorithm; updating the original symmetric distance matrix according to the optimized obstacle weights and the fatigue factor of the path planning algorithm; and using the updated original symmetric distance matrix as the path utility matrix; The step of optimizing the initial obstacle weight of the path planning algorithm according to the refined step size factor to obtain the optimized obstacle weight of the path planning algorithm specifically includes: optimizing the initial obstacle weight of the path planning algorithm according to the refined step size factor by an optimization formula to obtain the optimized obstacle weight of the path planning algorithm; the optimization formula is: in, is the initial obstacle weight, is the optimization barrier weight, ξ is the cell size of the sub-partition, χ is the refinement step factor, and N is the number of cells in the sub-partition; The updating of the original symmetric distance matrix according to the optimized obstacle weight and the fatigue factor of the path planning algorithm specifically includes: updating the original symmetric distance matrix according to the optimized obstacle weight and the fatigue factor of the path planning algorithm through an updating equation; the updating equation is: Among them, L tau is the original symmetric distance matrix, η is the fatigue factor, L tau ′ is the path utility matrix.

2. The intelligent laser cleaning path planning method according to claim 1, characterized in that: The step of obtaining a binary image of the area to be cleaned of the workpiece to be cleaned comprises: Performing graphic sampling and processing on the workpiece to be cleaned to obtain surface features of the area to be cleaned, wherein the surface features include edges, textures, and shapes; Obtaining the area to be cleaned of the workpiece to be cleaned according to the surface features of the area to be cleaned; According to a preset grayscale threshold, the area to be cleaned is binarized to generate the binarized image of the area to be cleaned.

3. The intelligent laser cleaning path planning method according to claim 1, characterized in that: The step of obtaining a plurality of sub-regions of the binary image of the area to be cleaned according to the binary image comprises: Establishing a topological coordinate system according to the binary image of the area to be cleaned; Performing topological division on the binary image according to a preset division rule to obtain a plurality of coordinate sets of the area to be cleaned in the topological coordinate system; According to each of the coordinate sets, each of the sub-regions of the binary image of the area to be cleaned is obtained.

4. The intelligent laser cleaning path planning method according to claim 2, characterized in that: The performing path coverage according to each of the sub-partitions to obtain coverage paths of all the sub-partitions includes: According to the surface features of the area to be cleaned in each of the sub-areas, path coverage is performed in a preset coverage manner; When the surface features of the area to be cleaned in the sub-partition are completely covered, a coverage path of the sub-partition is obtained.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the intelligent laser cleaning path planning method according to any one of claims 1 to 4 is implemented.

6. An intelligent laser cleaning path planning system, characterized in that: It comprises a computer-readable storage medium storing a computer program and a processor, and when the computer program is read and executed by the processor, the intelligent laser cleaning path planning method as claimed in any one of claims 1 to 4 is implemented.