Dispensing control system capable of intelligently converting visual template and processing track
The dispensing control system that intelligently converts visual templates and processing trajectories solves the problem of insufficient adaptability of traditional systems in complex environments by automatically identifying and dynamically adjusting processing trajectories, improves production efficiency and accuracy, and adapts to material changes and environmental changes. Production risks are reduced.
Patent Information
- Application Number
- CN202410789692.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-22
AI Technical Summary
The traditional dispensing control system has insufficient adaptability and response speed in complex or highly changing environments, resulting in reduced production efficiency and safety risks. Especially in high-demand production lines, it is difficult to cope with rapidly changing production conditions and unknown situations, leading to product quality problems. and material waste.
It adopts a dispensing control system that intelligently converts visual templates and processing trajectories, and uses DXF files, edge detection algorithms, ARIMA models and support vector machines through the automatic contour recognition module, dynamic trajectory adjustment module, visual monitoring detection module and feedback control and adjustment module. , automatically identify and adjust the processing trajectory, monitor and predict changes in the dispensing process in real time, and dynamically adjust control parameters.
Significantly improves processing accuracy and adaptability, reduces unnecessary movements during the production process, improves operating efficiency and material utilization, maintains the continuity and accuracy of the dispensing process, and enhances the detection and correction of complex product contours The ability to adapt to material distortion or deformation and anticipate and respond to environmental changes.
Smart Images

Figure CN118808079A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual recognition technology, and in particular to a dispensing control system for intelligently converting visual templates and processing trajectories. Background Art
[0002] The field of visual recognition technology covers a series of methods and algorithms for processing and analyzing visual information. This technology relies on machine learning, image processing, computer vision and pattern recognition technologies. Its main functions include object recognition, image segmentation, feature detection and scene reconstruction. It is widely used in automation equipment, quality inspection, security systems, interactive interfaces and augmented reality. With the development of deep learning technology, the accuracy and speed of visual recognition have been significantly improved, enabling machines to perform more accurate visual interpretation in complex environments.
[0003] Among them, the dispensing control system that intelligently converts visual templates and processing trajectories involves a system that uses visual recognition technology to guide the dispensing machinery. The system automatically adjusts the movement trajectory of the robotic arm to adapt to different processing requirements by intelligently analyzing the images in the visual template. It mainly includes the dispensing of precision components in the electronic manufacturing process, such as smartphone screens or circuit boards. Under the guidance of the visual system, the dispensing machine can accurately dispense adhesives or other materials along a predetermined trajectory, thereby improving production efficiency and product quality.
[0004] The adaptability and response speed of traditional dispensing control systems in complex or highly changeable environments are still limited, especially on high-demand production lines. Traditional vision systems are insufficient in their ability to handle non-standard conditions and are insensitive to environmental changes, which can easily lead to reduced production efficiency and safety risks. Performance bottlenecks are mainly reflected in the slow response to rapidly changing production conditions and the lack of flexibility in the face of new or unknown production. In a production environment with a very high degree of automation and strict precision requirements, this defect leads to product quality problems, increased material waste and production costs. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a dispensing control system for intelligently converting visual templates and processing trajectories.
[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: a dispensing control system for intelligently converting visual templates and processing trajectories, the system comprising:
[0007] The automatic contour recognition module converts the imported dxf file into a visual template, determines the red lines or outer lines as key contour lines, extracts and stores contour data, applies edge detection algorithms, recognizes and corrects distorted or deformed contours, and generates contour calibration information;
[0008] The dynamic trajectory adjustment module calculates the contour features and point information based on the contour calibration information, determines the processing trajectory through the line thickness and needle parameters, and sorts the trajectory data according to the optimal path, optimizes the repeated movement, and obtains the trajectory data adjustment details;
[0009] The visual monitoring detection module is based on the defined machine operation area, stored as a reference image, and continuously analyzes the difference between the current image and the reference image to identify new objects and abnormal conditions. If there are new objects or abnormalities, an alarm is issued and the operation is suspended. Otherwise, the operation continues to obtain a monitoring safety state;
[0010] The feedback control and adjustment module adjusts the details and monitors the safety status based on the trajectory data, adopts the ARIMA model and support vector machine to predict the future state changes in the dispensing process, and dynamically adjusts the dispensing machine trajectory control parameters in combination with the real-time monitored working conditions to obtain the dispensing trajectory optimization results.
[0011] The present invention is improved in that the step of determining the key contour line is specifically as follows:
[0012] Based on the imported dxf file, it is converted into a dispensing machine visual template, the line data is read, and the color of the line is identified using the color threshold method. The formula is:
[0013]
[0014] Get the color recognition value C rec , where RGB i Represents the RGB component of the i-th line color, α i is the weight coefficient of the corresponding color component, β and γ are adjustment parameters, and n is the number of color channels;
[0015] Based on the color recognition value, red lines are identified and the thickness of each line is analyzed using the formula:
[0016]
[0017] Get the line thickness detection result D thick , where d is the line thickness, μ and σ are the mean and standard deviation of the thickness data, and ∈ is a positive number to avoid the denominator being zero;
[0018] Based on the line thickness detection results and the color recognition value, the formula is applied:
[0019] L=max(0,1-λ·(1-C rec )·(1-D thick ))
[0020] Determine the red or outer contour line and get the key contour line, where L is the output result, indicating whether the line is selected as the key contour line, λ is the adjustment factor used to identify the sensitivity, C rec is the color identification value, D thick It is the line thickness detection result.
[0021] The present invention is improved in that the steps of identifying and correcting the distorted or deformed contour are specifically as follows:
[0022] The key contour line is subjected to edge detection using a gradient-based edge detection formula:
[0023]
[0024] Get the edge detection result, where G is the image edge strength, I is the image intensity, and are the intensity derivatives of the image in the x and y directions, respectively;
[0025] Analyze the edge detection results to identify distorted or deformed areas using the formula:
[0026]
[0027] Get the distortion or deformation recognition result Δ, where G i is the edge strength of the i-th detection point, G avg is the average edge strength;
[0028] Applying geometric correction techniques to adjust and correct the identified distortions or deformations uses the formula:
[0029] R = G + k (sigmoid (Δ) - 0.5)
[0030] The corrected contour line R is obtained, where sigmoid (Δ) is the response function of distortion or deformation, k is the adjustment coefficient to control the correction strength, G is the image edge strength, and Δ is the distortion or deformation recognition result.
[0031] The present invention is improved in that the calculation steps of the contour features and point information are specifically as follows:
[0032] Based on the profile calibration information, key geometric features including vertices, edges and curvatures are extracted, and the profile shape is analyzed using the formula:
[0033]
[0034] Generate geometric feature data V, where x i and i are vertex coordinates, n is the total number of vertices;
[0035] The extracted geometric feature data is analyzed to calculate the connectivity and geometric symmetry between vertices using the formula:
[0036]
[0037] Get the spatial position information S between vertices, where d ij is the distance between vertices i and j, θ ij is the angle between vertices i and j, q is the angle adjustment coefficient, and m represents the total number of pairwise comparisons between vertices;
[0038] Based on the geometric feature data and spatial position information, the contour features and the point information of each vertex are calculated using the formula:
[0039]
[0040] Get the contour features and point information P, where V k is the geometric feature of vertex k, S k is the spatial information of vertex k, and p is the number of vertices involved in the calculation.
[0041] The present invention is improved in that the step of sorting the trajectory data according to the optimal path is specifically as follows:
[0042] Integrate the contour features and point information, and use the formula to process the trajectory data:
[0043]
[0044] Get the trajectory data set T composed of point information initial ,in, is the coordinate of the i-th point, n is the number of points;
[0045] Dijkstra algorithm is applied to analyze and sort the trajectory data set, and the formula is:
[0046]
[0047] Get the optimized trajectory data O optimized , where w i,i+1 is the weight from point i to point i+1, which is used to adjust the path selection priority. is the distance function between points, is the position vector from point i to point i+1, are the coordinates of each point;
[0048] According to the optimized trajectory data, the trajectory data is converted into an instruction set recognizable by the dispensing machine using the formula:
[0049] Rfinal =convert(O optimized )
[0050] Get the trajectory instruction set R required by the dispensing machine final , where O optimized is the optimized trajectory data, and convert() is the function that converts the trajectory data into machine instructions.
[0051] The present invention is improved in that the step of acquiring the monitoring safety status is specifically as follows:
[0052] Based on the defined machine operating area, converted into digital image format and stored as reference image, the formula is used:
[0053] R ref =encode(A defined ,s x ,s y ,fmt)
[0054] Get the stored reference image R ref , where A defined Indicates the machine operating area, s x and y They are the width and height of the image respectively, fmt represents the image storage format, and the encode() function is responsible for encoding the operation area into the image format;
[0055] The difference between the current operating area image and the stored reference image is analyzed in real time to identify new objects or abnormal situations. If the image difference exceeds the threshold, it is considered a security risk. The formula is:
[0056] ΔI=compare(I current ,R ref ,α p ,β p )
[0057] and
[0058] Alert=(ΔI>θ s )
[0059] Among them, ΔI is the difference between images, I current is the current image, θ s is the difference threshold, α p and β p is a parameter used to adjust the image comparison sensitivity, R ref is the stored reference image;
[0060] If an abnormality is detected and Alert=true, an alarm will be automatically issued and the operation will be suspended to avoid potential danger. Otherwise, the operation will continue using the formula:
[0061] S = response (Alert, γ l )
[0062] Get the equipment safety status S, where γ l is a parameter used to determine the sensitivity of the response.
[0063] The present invention is improved in that the step of predicting the future state change is specifically:
[0064] Adjust details and monitor safety status based on the trajectory data, collect historical trajectory data, including dispensing volume, speed and environmental conditions, and use the formula:
[0065] D historical =collect(t,v,e)
[0066] Get the collected historical data set D historical , where t represents the dispensing amount, v is the dispensing speed, and e is the environmental condition;
[0067] The ARIMA model is applied to perform time series analysis on the collected historical data set to predict future state changes using the formula:
[0068] F predicted =ARIMA(D historical ,p g ,d g ,q g )
[0069] Get the prediction result F predicted , where p g ,d g and q g are the autoregressive term, difference order and moving average term of the model, D historical It is a collected historical data set;
[0070] Analyze the reliability and accuracy of the prediction results, adjust the model parameters and optimize the prediction effect. The formula is:
[0071] R optimized =optimize(F predicted ,λ g )
[0072] Get the optimized prediction result R optimized , where optimize() is an optimization function used to adjust the output of the prediction model, λ g is the coefficient that affects the degree of optimization, F predicted is the prediction result.
[0073] The present invention is improved in that the adjustment steps of the trajectory control parameters are specifically as follows:
[0074] Based on the real-time monitored working conditions, the current operating environment and real-time dispensing status data are collected, including dispensing speed, pressure and temperature, using the formula:
[0075]
[0076] Get current environment data E env , where v, p and T represent the real-time measurement values of dispensing speed, pressure and temperature respectively, α v , β v and γ v is the weight coefficient corresponding to dispensing speed, pressure and temperature;
[0077] The support vector machine is used to analyze the relationship between the current environmental data and the historical data, and the optimal control parameters are predicted using the formula:
[0078]
[0079] Get the optimal parameter prediction result C pred , where D hist is the influencing factor extracted from historical data, E env is the weighted composite value of the current environmental data, ω 1 and ω 2 It is a weight coefficient used to balance the impact of current environmental data and historical data;
[0080] Based on the optimal parameter prediction results and current environmental data, the control parameters of the dispensing machine are dynamically adjusted and the trajectory is optimized using the formula:
[0081]
[0082] Get the optimized dispensing trajectory control parameter P opt , where δ and η are adjustment coefficients used to adjust the control parameters of the dispensing machine according to current and predicted data, C pred is the optimal parameter prediction result, E env The current environment data.
[0083] Compared with the prior art, the advantages and positive effects of the present invention are:
[0084] In the present invention, the visual template and automatic edge detection technology directly generated from the DXF file are used to improve the detection and correction capabilities of complex product contours. The material distortion or deformation is dealt with by automatically identifying and adjusting the processing trajectory, which significantly improves the processing accuracy and adaptability. The dynamic trajectory adjustment reduces unnecessary movements in the production process by optimizing the trajectory path in real time, thereby improving the overall operating efficiency and material utilization. The ARIMA model and support vector machine are used to predict and adapt to upcoming changes, adjust parameters to match real-time working conditions, and thus maintain the continuity and accuracy of the dispensing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 is a system flow chart of the present invention;
[0086] Figure 2 It is a flow chart for determining the key contour line in the present invention;
[0087] Figure 3 A flowchart of identifying and correcting a distorted or deformed profile in the present invention;
[0088] Figure 4 It is a flow chart for calculating contour features and point information in the present invention;
[0089] Figure 5 A flowchart of sorting trajectory data according to the optimal path in the present invention;
[0090] Figure 6 A flowchart for obtaining a monitoring safety status in the present invention;
[0091] Figure 7 A flowchart for predicting future state changes in the present invention;
[0092] Figure 8 This is a flow chart for adjusting the trajectory control parameters in the present invention. DETAILED DESCRIPTION
[0093] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0094] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating positions or positional relationships, are based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0095] Example
[0096] See also Figure 1 The present invention provides a technical solution: a dispensing control system for intelligently converting visual templates and processing trajectories includes:
[0097] The automatic contour recognition module converts the imported dxf file into a visual template, determines the red lines or outer lines as the key contour lines, extracts and stores the contour data, applies the edge detection algorithm, recognizes and corrects the distorted or deformed contours, and generates contour calibration information; for multi-contour structures, the inner and outer contours are automatically recognized.
[0098] The dynamic trajectory adjustment module calculates the contour features and point information based on the contour calibration information, determines the processing trajectory through the line thickness and needle parameters, and sorts the trajectory data according to the optimal path, optimizes repeated movements, and obtains the trajectory data adjustment details;
[0099] The visual monitoring detection module is based on the defined machine operation area, stored as a reference image, and continuously analyzes the difference between the current image and the reference image to identify new objects and abnormal conditions. If a new object or abnormality is found, an alarm is issued and the operation is suspended. Otherwise, the operation continues to obtain a monitoring safety state.
[0100] The feedback control and adjustment module adjusts the details and monitors the safety status based on the trajectory data. It uses the ARIMA model and support vector machine to predict future state changes in the dispensing process. Combined with the real-time monitored working conditions, it dynamically adjusts the dispensing machine trajectory control parameters to obtain the dispensing trajectory optimization results.
[0101] Contour calibration information includes edge smoothness, corner point accuracy, and alignment deviation information. Trajectory data adjustment details include path length optimization results, duplicate path elimination results, and key point insertion information. Monitoring safety status includes object recognition accuracy, response time, and exception handling results.
[0102] See also Figure 2 , the steps for determining the key contour are as follows:
[0103] Based on the imported dxf file, it is converted into a dispensing machine visual template, the line data is read, and the color of the line is identified using the color threshold method. The formula is:
[0104]
[0105] Get the color recognition value C rec , where RGB i Represents the RGB component of the i-th line color, α i is the weight coefficient of the corresponding color component, β and γ are adjustment parameters to prevent division by zero errors and improve the flexibility and accuracy of the operation, and n is the number of color channels;
[0106] Based on the color recognition value, identify the red lines and analyze the thickness of each line using the formula:
[0107]
[0108] Get the line thickness detection result D thick , where d is the line thickness, μ and σ are the mean and standard deviation of the thickness data, and ∈ is a positive number to avoid the denominator being zero;
[0109] Based on the line thickness detection results and color recognition values, apply the formula:
[0110] L=max(0,1-λ·(1-C rec )·(1-D thick ))
[0111] Determine the red or outer contour line and obtain the key contour line, where L is the output result, indicating whether the line is selected as the key contour line, λ is the adjustment factor used to identify the sensitivity, ensuring that the line is determined as the key contour line only when the color and thickness meet the conditions at the same time, C rec is the color identification value, D thick It is the line thickness detection result.
[0112] Assume the following data:
[0113] RGB i There are three components: red (R), green (G), and blue (B);
[0114] Let α R =0.8,α G =0.1,α B =0.1;
[0115] Assume β=1, γ=0.5.
[0116] Assuming that the RGB value of an image is R=200, G=100, B=50, the calculation process is as follows:
[0117]
[0118] Values close to 1 indicate that the red component is dominant and the line is suspected to be a key contour.
[0119] Assume that the mean value of line thickness is 3px and the standard deviation is 1px;
[0120] ∈ is set to 0.01.
[0121] Assuming the thickness of a line is 5px, the calculation process is as follows:
[0122]
[0123] A larger value indicates that the line is significantly thicker than the average thickness and is suspected to be the outer contour line.
[0124] λ is set to 1, combining the above two results:
[0125] L=max(0,1-1·(1-0.994)·(1-1.99))
[0126] L=max(0,1-0.006·-0.99)=1
[0127] An L value of 1 indicates that the line is identified as a key contour.
[0128] See also Figure 3 , the specific steps for identifying and correcting distorted or deformed contours are:
[0129] Perform edge detection on key contour lines using the gradient-based edge detection formula:
[0130]
[0131] Get the edge detection result, where G is the image edge strength, I is the image intensity, and are the intensity derivatives of the image in the x and y directions, respectively;
[0132] Analyze the edge detection results and identify the distorted or deformed areas using the formula:
[0133]
[0134] Get the distortion or deformation recognition result Δ, where G i is the edge strength of the i-th detection point, G avg is the average edge strength;
[0135] Apply geometric correction techniques to adjust and correct the identified distortions or deformations using the formula:
[0136] R = G + k (sigmoid (Δ) - 0.5)
[0137] The corrected contour line R is obtained, where sigmoid (Δ) is the response function of distortion or deformation, k is the adjustment coefficient to control the correction strength, G is the image edge strength, and Δ is the distortion or deformation recognition result.
[0138] Assume that at a certain point, the rate of change of the image brightness in the x direction is The rate of change of brightness in the y direction
[0139] Then the edge strength G is calculated as follows:
[0140]
[0141] The value G=25 means that at this point, the edge intensity of the image is high, and it is an obvious edge point.
[0142] Assume there are 3 edge strength values G 1 =25, G 2 =30, G 3 =20, the average edge strength is:
[0143]
[0144] The twist Δ is calculated as follows:
[0145] Δ=|25-25|+|30-25|+|20-25|=0+5+5=10
[0146] A value of Δ=10 indicates that there is a certain degree of distortion or deformation in the detection area.
[0147] Assuming G = 25, k = 1, and the distortion Δ calculated in the previous step = 10, the sigmoid function is calculated as follows:
[0148]
[0149] The corrected edge strength R is calculated as follows:
[0150] R=25+1·(1-0.5)=25+0.5=25.5
[0151] The value R=25.5 indicates that the edge strength after correction is slightly higher than the original value, indicating that the edge is slightly optimized by the geometric correction method.
[0152] See also Figure 4 , the calculation steps of contour features and point information are as follows:
[0153] Based on the contour calibration information, key geometric features including vertices, edges and curvature are extracted, and the contour shape is analyzed using the formula:
[0154]
[0155] Generate geometric feature data V, expressed as the accumulation of the Euclidean distance from the point to the origin, where x i and i are vertex coordinates, n is the total number of vertices;
[0156] Analyze the extracted geometric feature data and calculate the connectivity and geometric symmetry between vertices using the formula:
[0157]
[0158] Get the spatial position information S between vertices, where d ij is the distance between vertices i and j, θ ij is the angle between vertices i and j, q is the angle adjustment coefficient, which is used to adjust the impact of the angle on the evaluation, and m represents the total number of pairwise comparisons between vertices;
[0159] Based on the geometric feature data and spatial position information, calculate the contour features and the point information of each vertex using the formula:
[0160]
[0161] Get the contour features and point information P, where V k is the geometric feature of vertex k, S k is the spatial information of vertex k, and p is the number of vertices involved in the calculation.
[0162] Assume there are three vertices with coordinates (3, 4), (1, 1), and (2, 2):
[0163] Contribution of the first vertex:
[0164]
[0165] Contribution of the second vertex:
[0166]
[0167] Contribution of the third vertex:
[0168]
[0169] sum:
[0170] V = 5 + 1.41 + 2.83 = 9.24
[0171] Assume that the distances between the three vertices are 2, 3, and 4, respectively, and the corresponding angles are 45°, 30°, and 60° (approximately 0.785, 0.524, and 1.047 in radians, respectively), and assume that q = 1:
[0172] d 12 =2,θ 12 =0.785
[0173] d 23 =3,θ 23 =0.524
[0174] d 31 =4,θ 31 =1.047
[0175] Compute the first combination:
[0176]
[0177] Compute the second combination:
[0178]
[0179] Calculate the third combination:
[0180]
[0181] sum:
[0182] S = 0.133 + 0.206 + 0.369 = 0.708
[0183] Assuming V and S have been calculated from above:
[0184] V = 9.24;
[0185] S=0.708.
[0186] Calculate P:
[0187]
[0188] It shows how to start from the basic vertex position information, through the combined analysis of geometry and spatial relationships, and finally obtain a value that reflects the contour characteristics and point information. The value P is 4.974.
[0189] See also Figure 5 , the steps to sort the trajectory data according to the optimal path are as follows:
[0190] Integrate contour features and point information, and use the formula to process trajectory data:
[0191]
[0192] Get the trajectory data set T composed of point information initial ,in, is the coordinate of the i-th point, n is the number of points;
[0193] Dijkstra algorithm is applied to analyze and sort trajectory data sets, the formula is:
[0194]
[0195] Get the optimized trajectory data O optimized , where w i,i+1 is the weight from point i to point i+1, which is used to adjust the path selection priority. is the distance function between points, is the position vector from point i to point i+1, is the coordinate of each point, dist is the distance calculation function;
[0196] According to the optimized trajectory data, the trajectory data is converted into an instruction set that can be recognized by the dispensing machine using the formula:
[0197] R final =convert(O optimized )
[0198] Get the trajectory instruction set R required by the dispensing machine final , where O optimized is the optimized trajectory data, and convert() is the function that converts the trajectory data into machine instructions.
[0199] Assume there are three coordinates of processing points:
[0200]
[0201] Calculation process:
[0202] T initial =(1,2)+(3,4)+(5,6)=(9,12
[0203] T initial =(9,12), which represents the cumulative sum of the positions of the points in 2D space.
[0204] Use the points above, and set the weights to 1;
[0205] The distance function is Euclidean distance, and the calculation process is as follows:
[0206]
[0207] Total path distance: 2.83+2.83=5.66, O optimized It is 5.66, which indicates the total distance of the optimized path.
[0208] Assume that the optimization path is point-by-point The conversion function converts the path sequence into a machine-readable format. final A path command expressed as "from point 1 to point 3, then to point 2".
[0209] See also Figure 6 , the specific steps for obtaining the monitoring security status are:
[0210] Based on the defined machine operating area, converted into digital image format and stored as reference image, the formula is used:
[0211] R ref =encode(A defined ,s x ,s y ,fmt)
[0212] Get the stored reference image R ref , where A defined Indicates the machine operating area, s x and y They are the width and height of the image respectively, fmt represents the image storage format, and the encode() function is responsible for encoding the operation area into the image format;
[0213] Analyze the difference between the current operating area image and the stored reference image in real time to identify new objects or abnormal situations. If the image difference exceeds the threshold, it is considered a security risk. The formula is:
[0214] ΔI=compare(I current ,R ref ,α p ,β p )
[0215] and
[0216] Alert=(ΔI>θ s )
[0217] Among them, ΔI is the difference between images, I current is the current image, θ s is the difference threshold, α p and β p is a parameter used to adjust the image comparison sensitivity, R ref is the stored reference image, and compare() is an image comparison function used to monitor and analyze differences in real time;
[0218] If an abnormality is detected and Alert=true, an alarm will be automatically issued and the operation will be suspended to avoid potential danger. Otherwise, the operation will continue using the formula:
[0219] S = response (Alert, γ l )
[0220] Get the equipment safety status S, where γ l It is a parameter used to determine the sensitivity of the response, allowing the system to respond appropriately to different levels of alarm conditions. The response() function decides whether to suspend the operation or continue based on the alarm status.
[0221] Assume the following data:
[0222] A defined For example, the working range of a specific workbench or robotic arm;
[0223] For example x =1920 pixels, s y =1080 pixels;
[0224] fmt, such as "JPEG" or "PNG", is used to define the encoding format of the image;
[0225] R ref The reference image is stored after encoding and is used for subsequent comparison with the real-time image.
[0226] Assume that the defined operating area is a 200x100cm rectangular area, the selected resolution is 1920x1080, and the storage format is PNG:
[0227] A defined = "200cmx100cm";
[0228] s x =1920;
[0229] s y =1080;
[0230] fmt="PNG".
[0231] Calculation process:
[0232] R ref =encode("200cm x 100cm", 1920, 1080, "PNG")
[0233] Get R ref It is a 1920x1080 resolution PNG image representing the machine operating area.
[0234] Assuming that the current image has a slight change with the stored reference image, α p =1.5 and β p = 0.5, used to adjust the comparison sensitivity, the difference threshold θs Set to 0.3;
[0235] I current and R ref The difference between them is calculated, for example, the difference is 0.35.
[0236] Calculation process:
[0237] ΔI=compare(I current , R ref , 1.5, 0.5) = 0.35
[0238] result:
[0239] Alert=(0.35>0.3)=true
[0240] Assume that the response threshold γ l Set to 0.2, and the alarm has been triggered in the previous step (Alert = true).
[0241] Calculation process:
[0242] S = response (true, 0.2)
[0243] If γ l If it is lower, the system will sound an alarm and suspend operation.
[0244] See also Figure 7 , the prediction steps for future state changes are as follows:
[0245] Adjust details and monitor safety status based on trajectory data, collect historical trajectory data, including dispensing volume, speed and environmental conditions, and use the formula:
[0246] D historical =collect(t,v,e)
[0247] Get the collected historical data set D historical , where t represents the dispensing volume, v is the dispensing speed, and e is the environmental condition. The collect() function is used to capture related data from the database or record log;
[0248] Apply the ARIMA model to perform time series analysis on the collected historical data sets and predict future state changes using the formula:
[0249] F predicted =ARIMA(D historical ,p g ,d g ,q g )
[0250] Get the prediction result Fpredicted , where p g ,d g and q g are the autoregressive term, difference order and moving average term of the model, which are used to adjust the model to adapt to the characteristics of the data. historical It is a collected historical data set;
[0251] Analyze the reliability and accuracy of the prediction results, adjust the model parameters and optimize the prediction effect. The formula is:
[0252] R optimized =optimize(F predicted ,λ g )
[0253] Get the optimized prediction result R optimized , where optimize() is an optimization function used to adjust the output of the prediction model, λ g is the coefficient that affects the degree of optimization, F predicted is the prediction result.
[0254] Assume the following data:
[0255] t is the dispensing volume, in milliliters (ml), reflecting the total amount of glue released by the dispensing machine during a specific operation;
[0256] v is the dispensing speed, in milliliters per second (ml / s), which indicates the flow rate of the dispensing machine during operation;
[0257] e is the environmental conditions, including temperature, humidity, etc., which are used to consider the impact of external factors on the dispensing process.
[0258] Assume that in the past 30 days, the daily dispensing volume and speed records are as follows:
[0259] t=[10,12,11,13,9,…]ml
[0260] v=[0.5, 0.6, 0.5, 0.7, 0.4,…]ml / s
[0261] The ambient temperature (as part of the environmental conditions) averaged 22°C.
[0262] Calculation process:
[0263] Collect data and store it in D historical middle;
[0264] D historical Contains 30 days of dispensing data and associated environmental conditions.
[0265] Assume the following data:
[0266] p is the number of autoregressive terms, reflecting how many past values will be used to predict future values;
[0267] d is the difference order, and the data needs to be differentiated several times before it becomes stable;
[0268] q is the number of moving average terms, the number of error terms considered in the forecast.
[0269] Assume from historical data that:
[0270] p g =2,d g =1,q g =2
[0271] Using historical data historical Run the ARIMA model with the above parameters:
[0272] Run Model F predicted =ARIMA([10,12,11,13,9,12,11,12],2,1,2).
[0273] Differential processing (d g =1):
[0274] The differenced series is used to make the data stationary and is calculated by subtracting the previous data point from each data point.
[0275] Difference results:
[0276] ΔY=[12-10, 11-12, 13-11, 9-13, 12-9, 11-12, 12-11]
[0277] ΔY=[2,-1,2,-4,3,-1,1]
[0278] Autoregressive (AR) model (p g =2):
[0279] The autoregressive part considers the data points of the previous two moments to predict the current moment, assuming that the autoregressive coefficient is β 1 = 0.5 and β 2 =0.3.
[0280] Moving Average (MA) Model (q g =2):
[0281] The moving average part considers the error terms of the first two moments, assuming that the moving average coefficient is θ 1 = 0.4 and θ 2 =0.2.
[0282] calculate:
[0283] The latest Y t =12, the first two Y t-1 =11,Y t-2 =12, assuming the error term is approximately ∈ t =-0.5,∈ t-1 =0.2,∈ t-2 =-0.1.
[0284] Calculation formula:
[0285] Y t =μ+β 1 Y t-1 +β 2 Y t-2 +∈ t +θ 1 ∈ t-1 +θ 2 ∈ t-2
[0286] Substituting the values into the formula:
[0287] Y t =0+0.5×11+0.3×12-0.5+0.4×0.2-0.2×0.1≈11.5
[0288] The model predicts that the dispensing volume for the next day will be 11.5 ml, a value based on the combined effects of autoregression and moving average.
[0289] Assumption F predicted =11.5ml,λ g = 0.05 is used to fine-tune the sensitivity of the prediction results.
[0290] Calculation process:
[0291] Run the optimization function R optimized =optimize(11.5, 0.05), the optimized prediction result is slightly adjusted. Assume that the adjusted prediction value is 11.45ml, which reflects the fine-tuning of the original prediction under a specific production environment.
[0292] See also Figure 8 , the specific steps for adjusting the trajectory control parameters are:
[0293] Based on the real-time monitored working conditions, the current operating environment and real-time dispensing status data are collected, including dispensing speed, pressure and temperature, using the formula:
[0294]
[0295] Get current environment data E env , where v, p and T represent the real-time measurement values of dispensing speed, pressure and temperature respectively, αv , β v and γ v is the weight coefficient corresponding to dispensing speed, pressure and temperature;
[0296] Use support vector machine to analyze the relationship between current environmental data and historical data and predict the optimal control parameters using the formula:
[0297]
[0298] Get the optimal parameter prediction result C pred , where D hist is the influencing factor extracted from historical data, E env is the weighted composite value of the current environmental data, ω 1 and ω 2 It is a weight coefficient used to balance the impact of current environmental data and historical data;
[0299] Based on the optimal parameter prediction results and current environmental data, dynamically adjust the control parameters of the dispensing machine and optimize the trajectory, using the formula:
[0300]
[0301] Get the optimized dispensing trajectory control parameter P opt , where δ and η are adjustment coefficients used to adjust the control parameters of the dispensing machine according to current and predicted data, C pred is the optimal parameter prediction result, E env The current environment data.
[0302] Assume the real-time measurements are as follows:
[0303] v = 10 cm / s;
[0304] p = 50 Pascal;
[0305] T = 25 degrees Celsius;
[0306] The weight coefficient is set to α v =0.5,β v =0.3,γ v =0.2.
[0307] Calculate E env :
[0308]
[0309] E env =0.5×100+0.3×7.07+0.2×3.258
[0310] E env =50+2.121+0.652
[0311] E env =52.773
[0312] Income E env =52.773 represents the operating environment score of the dispensing machine under the current environmental conditions.
[0313] Assumption D hist =0.5 and weight coefficient ω 1 =2,ω 2 =1.
[0314]
[0315] C pred =2×2784.87+1×0.667
[0316] C pred =5569.74+0.667
[0317] C pred =5570.407
[0318] Income C pred =5570.407 represents the predicted optimal control parameter value.
[0319] Assume that the adjustment coefficient δ=0.1, η=0.05.
[0320]
[0321] P opt =0.1×103.585+0.05×0.137
[0322] P opt =10.359+0.007
[0323] P opt ≈10.37
[0324] The obtained P opt ≈10.37 represents the final adjusted dispensing trajectory control parameter value.
[0325] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A dispensing control system for intelligently converting visual templates and processing trajectories, characterized in that: The system comprises: The contour automatic recognition module converts the imported dxf file into a visual template, determines the red lines or outer lines as key contour lines, extracts and stores contour data, applies edge detection algorithms, recognizes and corrects distorted or deformed contours, and generates contour calibration information; The dynamic trajectory adjustment module calculates the contour features and point information based on the contour calibration information, determines the processing trajectory through line thickness and needle parameters, and sorts the trajectory data according to the optimal path, optimizes repeated movements, and obtains the trajectory data adjustment details; The visual monitoring detection module is based on the defined machine operation area, stored as a reference image, and continuously analyzes the difference between the current image and the reference image to identify new objects and abnormal conditions. If there are new objects or abnormalities, an alarm is issued and the operation is suspended. Otherwise, the operation continues to obtain a monitoring safety state; The feedback control and adjustment module adjusts the details and monitors the safety status based on the trajectory data, adopts the ARIMA model and support vector machine to predict the future state changes in the dispensing process, and dynamically adjusts the dispensing machine trajectory control parameters in combination with the real-time monitored working conditions to obtain the dispensing trajectory optimization results.
2. The dispensing control system for intelligently converting visual templates and processing trajectories according to claim 1 is characterized in that: The steps for determining the key contour line are specifically as follows: Based on the imported dxf file, it is converted into a dispensing machine visual template, the line data is read, and the color of the line is identified using the color threshold method. The formula is: Get the color recognition value C rec , where RGB i Represents the RGB component of the i-th line color, α i is the weight coefficient of the corresponding color component, β and γ are adjustment parameters, and n is the number of color channels; Based on the color recognition value, red lines are identified and the thickness of each line is analyzed using the formula: Get the line thickness detection result D thick , where d is the line thickness, μ and σ are the mean and standard deviation of the thickness data, and ∈ is a positive number to avoid the denominator being zero; Based on the line thickness detection results and the color recognition value, the formula is applied: L=max(0.1-λ·(1-C rec )·(1-D thick )) Determine the red or outer contour line and get the key contour line, where L is the output result, indicating whether the line is selected as the key contour line, λ is the adjustment factor used to identify the sensitivity, C rec is the color identification value, D thick It is the line thickness detection result.
3. The dispensing control system for intelligently converting visual templates and processing trajectories according to claim 1 is characterized in that: The steps of identifying and correcting the distorted or deformed contour are specifically as follows: The key contour line is subjected to edge detection using a gradient-based edge detection formula: Get the edge detection result, where G is the image edge strength, I is the image intensity, and are the intensity derivatives of the image in the x and y directions, respectively; Analyze the edge detection results to identify distorted or deformed areas using the formula: Get the distortion or deformation recognition result Δ, where G i is the edge strength of the i-th detection point, G avg is the average edge strength; Applying geometric correction techniques to adjust and correct the identified distortions or deformations uses the formula: R = G + k (sigmoid (Δ) - 0.5) The corrected contour line R is obtained, where sigmoid (Δ) is the response function of distortion or deformation, k is the adjustment coefficient to control the correction strength, G is the image edge strength, and Δ is the distortion or deformation recognition result.
4. The dispensing control system for intelligently converting visual templates and processing trajectories according to claim 1 is characterized in that: The calculation steps of the contour features and point information are specifically as follows: Based on the profile calibration information, key geometric features including vertices, edges and curvatures are extracted, and the profile shape is analyzed using the formula: Generate geometric feature data V, where x i and i are vertex coordinates, n is the total number of vertices; The extracted geometric feature data is analyzed to calculate the connectivity and geometric symmetry between vertices using the formula: Get the spatial position information S between vertices, where d ij is the distance between vertices i and j, θ ij is the angle between vertices i and j, q is the angle adjustment coefficient, and m represents the total number of pairwise comparisons between vertices; Based on the geometric feature data and spatial position information, the contour features and the point information of each vertex are calculated using the formula: Get the contour features and point information P, where V k is the geometric feature of vertex k, S k is the spatial information of vertex k, and p is the number of vertices involved in the calculation.
5. The dispensing control system for intelligently converting visual templates and processing trajectories according to claim 1 is characterized in that: The step of sorting the trajectory data according to the optimal path is specifically as follows: Integrate the contour features and point information, and use the formula to process the trajectory data: Get the trajectory data set T composed of point information initial ,in, is the coordinate of the i-th point, n is the number of points; Dijkstra algorithm is applied to analyze and sort the trajectory data set, and the formula is: Get the optimized trajectory data O optimized , where w i,i+1 is the weight from point i to point i+1, which is used to adjust the path selection priority. is the distance function between points, is the position vector from point i to point i+1, are the coordinates of each point; According to the optimized trajectory data, the trajectory data is converted into an instruction set recognizable by the dispensing machine using the formula: R final =convert(O optimized ) Get the trajectory instruction set R required by the dispensing machine final , where O optimized is the optimized trajectory data, and convert() is the function that converts the trajectory data into machine instructions.
6. The dispensing control system for intelligently converting visual templates and processing trajectories according to claim 1 is characterized in that: The steps for obtaining the monitoring security status are specifically as follows: Based on the defined machine operation area, it is converted into a digital image format and stored as a reference image using the formula: R ref =encode(A defined ,s x ,s y ,fmt) Get the stored reference image R ref , where A defined Indicates the machine operating area, s x and y They are the width and height of the image respectively, fmt indicates the image storage format, and the encode() function is responsible for encoding the operation area into the image format; The difference between the current operating area image and the stored reference image is analyzed in real time to identify new objects or abnormal situations. If the image difference exceeds the threshold, it is considered a security risk. The formula is: ΔI=compare(I current ,R ref ,a p ,b p ) and Alert=(ΔI>θ s ) Among them, ΔI is the difference between images, I current is the current image, θ s is the difference threshold, α p and β p is a parameter used to adjust the image comparison sensitivity, R ref is the stored reference image; If an abnormality is detected and Alert=true, an alarm will be automatically issued and the operation will be suspended to avoid potential danger. Otherwise, the operation will continue using the formula: S=response(Alert,γ l ) Get the equipment safety status S, where γ l is a parameter used to determine the sensitivity of the response.
7. The dispensing control system for intelligently converting visual templates and processing trajectories according to claim 1 is characterized in that: The prediction steps of the future state change are specifically as follows: Adjust details and monitor safety status based on the trajectory data, collect historical trajectory data, including dispensing volume, speed and environmental conditions, and use the formula: D historical =collect(t,v,e) Get the collected historical data set D historical , where t represents the dispensing amount, v is the dispensing speed, and e is the environmental condition; The ARIMA model is applied to perform time series analysis on the collected historical data set to predict future state changes using the formula: F predicted =ARIMA(D historical ,p g ,d g ,q g ) Get the prediction result F predicted , where p g d g and q g are the autoregressive term, difference order and moving average term of the model, D historical It is a collected historical data set; Analyze the reliability and accuracy of the prediction results, adjust the model parameters and optimize the prediction effect. The formula is: R optimized =optimize(F predicted ,l g ) Get the optimized prediction result R optimized , where optimize() is an optimization function used to adjust the output of the prediction model, λ g is the coefficient that affects the degree of optimization, F predicted is the prediction result.
8. The dispensing control system for intelligently converting visual templates and processing trajectories according to claim 1 is characterized in that: The adjustment steps of the trajectory control parameters are specifically as follows: Based on the real-time monitored working conditions, the current operating environment and real-time dispensing status data are collected, including dispensing speed, pressure and temperature, using the formula: Get current environment data E env , where v, p and T represent the real-time measurement values of dispensing speed, pressure and temperature respectively, α v , β v and γ v is the weight coefficient corresponding to dispensing speed, pressure and temperature; The support vector machine is used to analyze the relationship between the current environmental data and the historical data, and the optimal control parameters are predicted using the formula: Get the optimal parameter prediction result C pred , where D hist is the influencing factor extracted from historical data, E env is the weighted composite value of the current environmental data, ω1 and ω2 are weight coefficients used to balance the impact of the current environmental data and historical data; Based on the optimal parameter prediction results and current environmental data, the control parameters of the dispensing machine are dynamically adjusted and the trajectory is optimized using the formula: Get the optimized dispensing trajectory control parameter P opt , where δ and η are adjustment coefficients used to adjust the control parameters of the dispensing machine according to current and predicted data, C pred is the optimal parameter prediction result, E env The current environment data.
Citation Information
Patent Citations
Component dispensing trajectory extraction method and automatic control robot system
CN110152938A
Image contour extraction method based on visual model
CN110378920A
Visual guidance-based rapid processing path generation method
CN115138527A
Special-shaped lens gluing track automatic generation device and method
CN116174253A
Intelligent factory production online monitoring and analysis system based on machine vision
CN116841262A
Cited By
Pressure relief alarm method and system for perfluorohexanone fire extinguishing equipment
CN119215371A
Edge sealing adhesive breakpoint dispensing technology
CN119747158A
Optical adhesive coating parameter design optimization method, system and equipment
CN120103806A
Glue dispensing and overflowing real-time monitoring method and system based on intelligent vision
CN121811327A
