A visual servo control system for an online slag removal robot

The most suitable image acquisition parameters are generated through the online optimization module and the visual sensor system, which solves the problem of unscientific image acquisition parameter settings in the traditional slag-removing robot visual servo control system, improves the slag-removing efficiency and identification accuracy, and ensures the operation security and stability.

CN118295309BActive Publication Date: 2024-08-23SHANDONG KINGTEC STAR ELECTROMECHANICAL +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410725484.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-23
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

The traditional visual servo control system of the slag-removing robot lacks scientificity and systematicness in the setting of image acquisition parameters, leading to problems such as misidentification and inaccurate positioning, which reduces the efficiency of slag-removing and may cause the robot to collide with obstacles.

Method used

The online optimization module is used to generate the most suitable image acquisition parameter combination through evaluation functions and cross operations. It combines the visual sensor, image processing unit and dynamic adjustment module to adjust pose information and motion data in real time to ensure image acquisition quality and object recognition accuracy.

Benefits of technology

It improves the quality of image collection information and object recognition accuracy, enhances the operation accuracy and response speed of the slag-removing robot, and ensures the safety and stability of the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118295309B
    Figure CN118295309B
Patent Text Reader

Abstract

The present invention provides a visual servo control system for an online slag scooping robot, which relates to the technical field of data processing, and includes: an optimization module, which is used to set an initial population, wherein each individual in the initial population represents a set of image acquisition parameters, and the image acquisition parameters of each individual are evaluated using an evaluation function to obtain an evaluation result; the final individual is determined according to the evaluation result, and a new parameter combination is generated by combining the characteristics of the final individual through a cross operation until the final image acquisition parameter combination is determined; a visual sensor is fixedly installed at the end joint of the slag scooping robot, and is used to continuously collect image information of a target object during the movement of the robot according to the final image acquisition parameter combination. The present invention can efficiently determine the optimal image acquisition parameters, and can quickly find the image acquisition parameter combination that best suits the current environment and task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of data processing, and in particular to a visual servo control system of an online slag scooping robot. Background Art

[0002] In the traditional visual servo control system of the slag removal robot, the setting of image acquisition parameters often depends on the experience of engineers or simple experiments. Although this method is relatively easy to implement, it is often difficult to achieve the optimal image acquisition effect due to its lack of scientificity and systematicity.

[0003] For example, a steel plant introduced a slag removal robot to automate the slag removal process. In the early stage, the image acquisition parameters of the robot's visual servo control system were set based on the engineers' experience and simple field tests. However, in actual operation, it was found that the robot often had problems such as misidentification and inaccurate positioning, resulting in low slag removal efficiency, and sometimes even collisions between the robot and obstacles. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a visual servo control system for an online slag removal robot, which can efficiently determine the optimal image acquisition parameters and quickly find the image acquisition parameter combination that best suits the current environment and task, thereby improving the accuracy of image processing and object recognition.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0006] A visual servo control system for an online slag removal robot, comprising:

[0007] The optimization module is used to set an initial population, wherein each individual in the initial population represents a set of image acquisition parameters, and the image acquisition parameters of each individual are evaluated using an evaluation function to obtain an evaluation result; the final individual is determined according to the evaluation result, and a new parameter combination is generated by combining the characteristics of the final individual through a crossover operation until the final image acquisition parameter combination is determined;

[0008] The visual sensor is fixedly installed at the end joint of the slag removal robot and is used to continuously collect image information of the target object during the robot's movement according to the final image acquisition parameter combination;

[0009] An image processing unit, used for receiving image information from a visual sensor and extracting preliminary position information of an object in a rectangular coordinate space;

[0010] A dynamic adjustment module, used for receiving preliminary posture information and dynamically adjusting the posture information to obtain adjusted posture information;

[0011] The visual servo controller is used to receive the adjusted posture information and calculate the motion data of the slag removal robot in the current cycle in real time;

[0012] The robot controller is used to continuously update the instruction parameters according to the motion data to control the slag removal robot to complete the positioning and grasping of static workpieces on the workbench, as well as the identification and tracking of moving workpieces on the conveyor belt.

[0013] Furthermore, the image acquisition parameters of each individual are evaluated using an evaluation function to obtain evaluation results, including:

[0014] pass The image acquisition parameters of each individual are evaluated to obtain an evaluation result;

[0015] in, is the evaluation result, , and are the weight coefficients for image quality, contrast, and saturation scores, respectively; is the size of the image, used to normalize the score; and Respectively represent the images in horizontal and vertical gradients of the location; express The pixel gray value of the position; Represents the average gray value of the image; , and They represent the standard deviation of the red, green, and blue channels of the image respectively; i represents the row index in the image, and j represents the column index in the image; M and N represent the number of rows and columns in the image respectively, the value range of i is from 1 to M, and the value range of j is from 1 to N.

[0016] Furthermore, the final individual is determined according to the evaluation results, and a new parameter combination is generated by combining the characteristics of the final individual through a crossover operation until the final image acquisition parameter combination is determined, including:

[0017] Based on the evaluation results, the final individuals are screened;

[0018] Determine two or more individuals from the evaluation results, and cross-combine the parameters corresponding to the two or more individuals to generate a new parameter combination;

[0019] The new parameter combination is evaluated again by the evaluation function, and a new individual is determined according to the evaluation result, until the preset number of iterations is reached to obtain the final parameter combination, and the final parameter combination is used as the final image acquisition parameter combination.

[0020] Furthermore, based on the evaluation results, the final individuals are screened, including:

[0021] Determine the number of clusters C, and randomly determine C individuals as the initial cluster centers;

[0022] For each individual, calculate its distance from each cluster center and assign it to the corresponding cluster center;

[0023] For each cluster, calculate the average parameter value of all individuals in it, and set the average parameter value as the new cluster center, and repeat the steps until the preset number of iterations is reached;

[0024] For each cluster, the average evaluation scores of all individuals in it are calculated, and the average evaluation scores of each cluster are compared to determine the final cluster;

[0025] According to the final clustering, the final individuals are determined.

[0026] Furthermore, image information is received from the visual sensor, and preliminary pose information of the object in the rectangular coordinate space is extracted, including:

[0027] Using visual sensors to capture images of objects;

[0028] Preprocess the image of the object and extract key features from the preprocessed image;

[0029] According to the key features, identify the target object in the image and determine the position of the target object in the image;

[0030] Estimate the position and posture of the object in the three-dimensional rectangular coordinate system based on the target object and key features;

[0031] According to the intrinsic and extrinsic parameters of the camera, the object position and posture in the image coordinate system are converted to the actual three-dimensional rectangular coordinate system.

[0032] Further, according to the key features, the target object in the image is identified, and the position of the target object in the image is determined, including:

[0033] Input the key features into the trained classifier to determine whether the target object exists in the image to obtain the confidence level;

[0034] In the image where the target object is identified, a sliding window is used to traverse the entire image. At each window position, the image features in the window are extracted and input into the classifier for judgment.

[0035] When the sliding window is at a position, if the confidence level is ≥ the preset threshold, the window contains the target object, and the position of the window is used as the position of the target object in the image.

[0036] Furthermore, based on the target object and key features, the position and posture of the object in the three-dimensional rectangular coordinate system are estimated, including:

[0037] Capture multiple images from different angles and reconstruct the 3D coordinates of the target object through feature matching and triangulation;

[0038] Determine the position of the target object in the three-dimensional space according to the reconstructed three-dimensional coordinates of the target object;

[0039] Based on the key features and the position of the target object in three-dimensional space, the posture of the target object is estimated by calculating the relationship between the feature points.

[0040] Further, receiving preliminary posture information and dynamically adjusting the posture information to obtain adjusted posture information includes:

[0041] receiving object position and posture data from an image processing unit;

[0042] Comparing the object position and posture data with preset object position and posture data to obtain a comparison result;

[0043] Determine the dynamic adjustment strategy based on the comparison results;

[0044] According to the dynamic adjustment strategy, the object position and posture data are dynamically adjusted to obtain adjusted posture information.

[0045] Furthermore, the posture of the target object includes the yaw angle, pitch angle and roll angle of the target object.

[0046] Furthermore, the image acquisition parameters include exposure time, focal length, white balance and acquisition angle.

[0047] The above solution of the present invention includes at least the following beneficial effects:

[0048] By optimizing the image acquisition parameters through the optimization module, the system can determine a set of image acquisition parameters that best suit the current working environment and task. This optimization process ensures that the acquired image information is of higher quality and clearer details.

[0049] The image processing unit can efficiently process high-quality image information from the visual sensor and accurately extract the preliminary pose information of the object in the rectangular coordinate space. The dynamic adjustment module can adjust the preliminary pose information in real time according to the actual situation. This dynamic data processing mechanism enables the robot to maintain high-precision operation capabilities in the face of complex and changing working environments. Whether it is a static workpiece on the workbench or a moving workpiece on the conveyor belt, the system can achieve accurate recognition and tracking through dynamic data adjustment.

[0050] The visual servo controller calculates the motion data of the slag removal robot in the current cycle in real time based on the dynamically adjusted posture information, ensuring the accuracy and timeliness of the robot's control instructions, thereby greatly improving the robot's operating accuracy and response speed.

[0051] The robot controller quickly updates the command parameters based on real-time motion data, which not only improves the operating efficiency of the slag removal robot, but also ensures safety and stability during the operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a schematic diagram of a visual servo control system of an online slag removal robot provided in an embodiment of the present invention.

[0053] Figure 2 It is a flowchart diagram of determining the final individual according to the evaluation results provided by an embodiment of the present invention, generating a new parameter combination by combining the characteristics of the final individual through a cross operation, until the final image acquisition parameter combination is determined. DETAILED DESCRIPTION

[0054] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0055] like Figure 1 As shown, an embodiment of the present invention provides a visual servo control system for an online slag removal robot, comprising:

[0056] The optimization module is used to set an initial population, wherein each individual in the initial population represents a set of image acquisition parameters, and the image acquisition parameters of each individual are evaluated using an evaluation function to obtain an evaluation result; the final individual is determined according to the evaluation result, and a new parameter combination is generated by combining the characteristics of the final individual through a crossover operation until the final image acquisition parameter combination is determined;

[0057] The visual sensor is fixedly installed at the end joint of the slag removal robot and is used to continuously collect image information of the target object during the robot's movement according to the final image acquisition parameter combination;

[0058] An image processing unit, used for receiving image information from a visual sensor and extracting preliminary position information of an object in a rectangular coordinate space;

[0059] A dynamic adjustment module, used for receiving preliminary posture information and dynamically adjusting the posture information to obtain adjusted posture information;

[0060] The visual servo controller is used to receive the adjusted posture information and calculate the motion data of the slag removal robot in the current cycle in real time;

[0061] The robot controller is used to continuously update the instruction parameters according to the motion data to control the slag removal robot to complete the positioning and grasping of static workpieces on the workbench, as well as the identification and tracking of moving workpieces on the conveyor belt.

[0062] In the embodiment of the present invention, the image acquisition parameters are optimized by the optimization module, and the system can determine a set of image acquisition parameters that are most suitable for the current working environment and task. This optimization process ensures that the collected image information has higher quality and clearer details. The image processing unit can efficiently process high-quality image information from the visual sensor and accurately extract the preliminary posture information of the object in the rectangular coordinate space. The dynamic adjustment module can adjust the preliminary posture information in real time according to the actual situation. This dynamic data processing mechanism enables the robot to maintain high-precision operation capabilities in the face of complex and changeable working environments. Whether it is a static workpiece on the workbench or a moving workpiece on the conveyor belt, the system can achieve accurate identification and tracking through dynamic data adjustment. The visual servo controller calculates the motion data of the slag scavenging robot in the current cycle in real time based on the dynamically adjusted posture information, ensuring the accuracy and timeliness of the robot control instructions, thereby greatly improving the robot's operating accuracy and response speed. The robot controller quickly updates the instruction parameters based on the real-time motion data, which not only improves the operating efficiency of the slag scavenging robot, but also ensures safety and stability during the operation process.

[0063] In a preferred embodiment of the present invention, the image acquisition parameters include exposure time, focal length, white balance and acquisition angle; the image acquisition parameters of each individual are evaluated using an evaluation function to obtain an evaluation result, including:

[0064] By evaluating the function The image acquisition parameters of each individual are evaluated to obtain an evaluation result;

[0065] in, is the evaluation result, , and are the weight coefficients for image quality, contrast, and saturation scores, respectively; is the size of the image, used to normalize the score; and Respectively represent the images in horizontal and vertical gradients of the location; express The pixel gray value of the position; Represents the average gray value of the image; , and They represent the standard deviation of the red, green, and blue channels of the image respectively; i represents the row index in the image, and j represents the column index in the image; M and N represent the number of rows and columns in the image respectively, the value range of i is from 1 to M, and the value range of j is from 1 to N.

[0066] In the embodiment of the present invention, the evaluation function comprehensively considers multiple key quality indicators of the image, including image quality (using gradient to measure edge clarity and detail richness), contrast (using the variance of grayscale values ​​to measure the difference between light and dark areas in the image), and saturation (using the standard deviation of the red, green, and blue channels to measure the richness and vividness of colors), which can more comprehensively reflect the impact of image acquisition parameters on image quality, thereby optimizing parameters more accurately. By adjusting the weight coefficient w 1 、w 2 and w 3 , different image quality indicators can be ranked in order of importance according to the actual application scenario. For example, in some applications, the clarity of the image may be more important, while in other applications, the saturation of the color may be more important. This flexibility enables the evaluation function to adapt to a variety of different needs and scenarios. The scores of various indicators are normalized in the evaluation function, and the image size M×N is used to eliminate the influence of the image size on the score, ensuring that images of different sizes are comparable during evaluation, making the evaluation results more objective and accurate. Since the evaluation function can carefully reflect all aspects of image quality, it can guide the optimization module to more accurately adjust the image acquisition parameters, such as exposure time, focal length, white balance, and acquisition angle. This refined optimization helps to improve the performance and accuracy of the visual servo control system. The design of the evaluation function takes into account the local features (such as gradient and pixel grayscale value) and global features (such as average grayscale value and standard deviation of color channels) of the image, so that it can adapt to scenes with different lighting conditions and different colors. This adaptability enhances the robustness and practicality of the system.

[0067] In a preferred embodiment of the present invention, the final individual is determined according to the evaluation result, and a new parameter combination is generated by combining the characteristics of the final individual through a crossover operation until the final image acquisition parameter combination is determined, including:

[0068] Based on the evaluation results, the final individuals are screened;

[0069] Determine two or more individuals from the evaluation results, and cross-combine the parameters corresponding to the two or more individuals to generate a new parameter combination;

[0070] The new parameter combination is evaluated again by the evaluation function, and a new individual is determined according to the evaluation result, until the preset number of iterations is reached to obtain the final parameter combination, and the final parameter combination is used as the final image acquisition parameter combination.

[0071] In an embodiment of the present invention, one or more individuals with the best evaluation results are screened out as the "final individuals" according to the evaluation results obtained by the evaluation function; after the final individuals are determined, two or more individuals are selected as parents, and then the image acquisition parameters of these parents are cross-operated. For example, an intersection point can be randomly selected to combine the first half of the parameters of one individual with the second half of the parameters of another individual to generate a new parameter combination. This cross-operation helps to explore more possible excellent parameter combinations. The newly generated parameter combination will be evaluated again by the evaluation function. After the evaluation, these parameter combinations will be sorted according to the new evaluation results, and excellent individuals will be screened out again. Then, the above cross-operation and evaluation process are repeated until the preset number of iterations is reached. Each iteration is likely to produce a better parameter combination, thereby gradually approaching the optimal image acquisition parameters.

[0072] By screening the evaluation function and cross-combining the parameters, the image acquisition parameter space can be explored and optimized quickly and effectively, thereby improving the efficiency of finding the best parameter combination. Due to the use of cross-operation, this method can search extensively in the parameter space, avoid falling into the local optimal solution, and is more likely to find the global optimal image acquisition parameter combination. Through multiple iterations and optimizations, the system can gradually adapt to different working environments and lighting conditions, so that high-quality images can be obtained in various situations. The optimized image acquisition parameters can significantly improve the quality of the acquired images. The entire optimization process has a high degree of automation, which reduces the need for manual intervention and makes the system more intelligent and convenient.

[0073] In a preferred embodiment of the present invention, screening the final individuals according to the evaluation results includes:

[0074] Determine the number of clusters C, and randomly determine C individuals as the initial cluster centers;

[0075] For each individual, calculate its distance from each cluster center and assign it to the corresponding cluster center;

[0076] For each cluster, calculate the average parameter value of all individuals in it, and set the average parameter value as the new cluster center, and repeat the steps until the preset number of iterations is reached;

[0077] For each cluster, the average evaluation scores of all individuals in it are calculated, and the average evaluation scores of each cluster are compared to determine the final cluster;

[0078] According to the final clustering, the final individuals are determined.

[0079] In an embodiment of the present invention, for different C values ​​(starting from 1 and gradually increasing), the total sum of squared errors after clustering is calculated, and a curve graph of C value and SSE is plotted. It will be found that as K increases, the total sum of squared errors will gradually decrease. The "elbow" point in the curve graph, that is, the point where the rate of decrease of the total sum of squared errors suddenly slows down, is found. The C value corresponding to this point is generally considered to be the optimal number of clusters.

[0080] Randomly select C individuals from all individuals as the initial cluster centers. For each individual, calculate the Euclidean distance between it and each cluster center and assign it to the corresponding cluster center. Traverse all individuals and calculate the Euclidean distance between each individual and the C cluster centers. Assign each individual to the category corresponding to the cluster center closest to it. For each cluster, calculate the average parameter value of all individuals in it and set the average parameter value as the new cluster center. Repeat this step until the preset number of iterations is reached. Within each cluster, calculate the average parameter value of all individuals. This average value represents the center position of the category. Set the calculated average parameter value as the new cluster center. Repeat the above process of assigning individuals to clusters and updating cluster centers until the cluster center reaches the preset number of iterations. For each cluster, calculate the average evaluation score of all individuals within it, compare the average evaluation scores of each cluster, and select the cluster with the highest average evaluation score as the final cluster. The individuals in the final cluster are the selected excellent individuals. The calculation formula of the evaluation score is:

[0081] , where S is the average evaluation score of the cluster, C is the number of individuals in the cluster, It is the first The evaluation result of each individual is calculated by the evaluation result F formula given above. is the index.

[0082] The clustering algorithm automatically divides the data into multiple groups, reducing the complexity and subjectivity of manual classification. By selecting the cluster with the highest average evaluation score, a representative set of excellent individuals can be selected. These individuals have higher potential in image acquisition parameter optimization. The clustering algorithm is insensitive to the initialized cluster center and can converge stably after multiple iterations, enhancing the robustness of the screening process. Through cluster screening, the parameter area with excellent performance can be quickly located, which improves the efficiency of subsequent optimization steps.

[0083] In a preferred embodiment of the present invention, receiving image information from a visual sensor and extracting preliminary pose information of an object in a rectangular coordinate space includes:

[0084] Capture the image of the object using a visual sensor. For example, the visual sensor can be a regular camera, a high-resolution camera, or a camera with specific functions (such as infrared, depth perception), and the sensor parameters include exposure time, focal length, white balance, etc.

[0085] Preprocess the image of the object and extract key features from the preprocessed image, including: Use Gaussian filtering to remove noise in the image, and use the histogram equalization method to enhance the contrast of the image to make the edges of the objects in the image clearer; set a threshold to convert the image into a black and white binary image, and apply the Canny edge detection algorithm to highlight the edge information in the image; use Harris corner detection, SIFT (scale-invariant feature transform), SURF (speeded up robust features) and other methods to find the key points or corners in the image; from the edge detected image, the outline of the object can be further extracted as an important feature for identifying the object; calculate the local binary pattern (LBP) and grayscale co-occurrence matrix of the image to describe the texture information of the image, and extract the color histogram and color moment of the image as the color features of the object;

[0086] According to the key features, identify the target object in the image and determine the position of the target object in the image;

[0087] Estimate the position and posture of the object in the three-dimensional rectangular coordinate system based on the target object and key features;

[0088] According to the intrinsic and extrinsic parameters of the camera, the position and posture of the object in the image coordinate system are converted to the actual three-dimensional rectangular coordinate system. For example, the upper left corner of the image is taken as the origin, the right is the u axis, and the downward is the v axis. The coordinate (u, v) represents the position of the pixel in the image; the optical center of the camera is taken as the origin, the Z axis coincides with the optical axis of the camera, and the X axis and Y axis are parallel to the u axis and v axis of the image respectively; the world coordinate system is a fixed three-dimensional coordinate system used to describe the position of objects in the real world; the camera intrinsic parameters include focal length, principal point coordinates, distortion coefficient, etc. These parameters are determined when the camera is calibrated. Using the intrinsic parameters, the three-dimensional points in the camera coordinate system can be projected onto the image coordinate system to form a two-dimensional image. This process involves the pinhole camera model, that is, the points in the three-dimensional space are mapped onto the two-dimensional plane through perspective projection; the camera extrinsic parameters describe the position and posture of the camera in the world coordinate system, including the rotation matrix R and the translation vector T. Through rotation and translation transformations, the points in the world coordinate system can be converted to the camera coordinate system. Specifically, for a point P in the world coordinate system w (X w , Y w , Z w ), whose coordinates in the camera coordinate system are P c (X c , Yc , Z c ) can be calculated by the following formula:

[0089] ;

[0090] Where R is a 3×3 rotation matrix and T is a 3×1 translation vector. The inverse process from image coordinates to 3D coordinates is:

[0091] Given the image coordinates and intrinsic parameters, we can infer a ray in the camera coordinate system. Combined with the extrinsic parameters, we can transform this ray into the world coordinate system to obtain the possible position of the object in three-dimensional space.

[0092] In an embodiment of the present invention, the image of the object is captured by a visual sensor, and after preprocessing and feature extraction, the position of the target object in the image can be more accurately identified. Further combined with the internal and external parameters of the camera, the two-dimensional image coordinates can be converted into coordinates in a three-dimensional rectangular coordinate system, thereby achieving high-precision positioning and posture estimation of the object in the actual space. The visual sensor can capture the image of the object in real time, and through efficient image processing and feature extraction algorithms, the system can quickly respond and update the position and posture information of the object. The use of visual sensors to extract the position and posture information of the object does not require direct contact with the object, thereby avoiding possible damage or interference to the object. At the same time, it also reduces the requirements for the operating environment and improves the applicability and flexibility of the system. The entire process can be highly automated, reducing human intervention and improving work efficiency.

[0093] In a preferred embodiment of the present invention, identifying a target object in an image and determining a position of the target object in the image according to key features includes:

[0094] Input the key features into the trained classifier to determine whether the target object exists in the image to obtain the confidence level;

[0095] In the image where the target object is identified, a sliding window is used to traverse the entire image. At each window position, the image features in the window are extracted and input into the classifier for judgment.

[0096] When the sliding window is at a position, if the confidence level is ≥ the preset threshold, the window contains the target object, and the position of the window is used as the position of the target object in the image.

[0097] In an embodiment of the present invention, a data set for training is collected and organized, and the data set contains multiple samples, each of which has corresponding features and labels; the data set is divided into a training set and a test set. Usually, 70%-80% of the data is used as a training set, and the remaining data is used as a test set; the features are normalized to scale each feature between 0 and 1; in Python, the SVC class in the scikit-learn library can be used to train the SVM model, and this class provides a wealth of parameters to adjust the behavior of the SVM; according to the SVM type and kernel function, the corresponding parameters are set; the SVM model is fitted using the data and labels of the training set, which can be achieved by calling the fit method in scikit-learn; the trained SVM model is used to predict the test set, and the performance indicators of the model, such as accuracy, recall, F1 score, etc., are calculated based on the prediction results and the true labels of the test set; the parameters of the SVM, such as L and γ, are adjusted according to the evaluation results to optimize the model performance, which is achieved through cross-validation and grid search.

[0098] The key features extracted from the image are input into the trained classifier. The classifier determines whether there is a target object in the image based on the input features and outputs a confidence value. This confidence value indicates the confidence of the classifier in its judgment. The higher the value, the more certain the classifier is that there is a target object in the image. After determining that there may be a target object in the image, a sliding window is used to traverse the entire image. The size and step size of the sliding window can be adjusted according to the size of the target object and the image resolution; at each window position, the system extracts the image features in the window; the extracted image features in each window are input into the classifier for judgment, and the classifier outputs a confidence value for each window. This process is repeated until the sliding window traverses the entire image. When the sliding window is at a certain position, if the confidence output by the classifier reaches or exceeds a preset threshold (such as 0.9 or higher), the system believes that the window contains the target object. At this time, the system records the position of the sliding window and uses it as the position of the target object in the image.

[0099] In the embodiment of the present invention, by combining the trained classifier with the sliding window, the target object in the image can be more accurately identified and its position can be determined, reducing the possibility of false detection and missed detection. Since the sliding window can traverse the entire image, no matter where the target object appears in the image, it is likely to be accurately identified, which increases the flexibility and applicability of the system.

[0100] In a preferred embodiment of the present invention, the position and posture of the object in a three-dimensional rectangular coordinate system are estimated according to the target object and the key features, including:

[0101] Capture multiple images from different angles and reconstruct the 3D coordinates of the target object through feature matching and triangulation;

[0102] Determine the position of the target object in the three-dimensional space according to the reconstructed three-dimensional coordinates of the target object;

[0103] According to the key features and the position of the target object in three-dimensional space, the posture of the target object is estimated by calculating the relationship between the feature points. The posture of the target object includes the yaw angle, pitch angle and roll angle of the target object.

[0104] In an embodiment of the present invention, capturing multiple images of a target object from different angles can be achieved by moving the camera or rotating the target object to ensure that each viewing angle can capture the key features of the target object. The captured images are preprocessed, such as denoising, enhancement, etc., to improve the accuracy of subsequent feature extraction and matching. Key feature points are extracted from each image using a feature extraction algorithm (such as the SIFT algorithm, etc.), and corresponding feature points between different images are found using a feature matching algorithm (such as the FLANN algorithm, etc.). Triangulation is applied to solve the camera posture and position, and to minimize the reprojection error through an optimization algorithm, and the three-dimensional coordinates of the target object are reconstructed using the matched feature points, which may specifically include:

[0105] Capture multiple images of the target object from different angles, and perform feature extraction on each image, such as SIFT and SURF algorithms to detect and describe key points in the image. Use feature matching algorithms (such as FLANN, etc.) to find corresponding feature points between different images; before triangulation, the camera needs to be calibrated to determine the camera's intrinsic parameters (such as focal length, principal point coordinates, etc.) and extrinsic parameters (camera position and posture). Through the camera calibration process, the camera matrix (including the intrinsic parameter matrix and the extrinsic parameter matrix) can be obtained. These matrices describe how to map three-dimensional world coordinates to two-dimensional image coordinates; for each image, the camera's posture (position and orientation) is estimated by solving the basic matrix or essential matrix, and then the camera's rotation and translation matrix is ​​restored; with the matching feature points and camera posture information Finally, the triangulation method can be used to reconstruct the coordinates of these feature points in the three-dimensional space; the basic principle of triangulation is to use the two-dimensional image coordinates under two or more perspectives, combined with the internal and external parameters of the camera, to restore the three-dimensional coordinates of the corresponding points through geometric relationships; in specific implementation, a linear method (such as the DLT algorithm) can be used to solve it. By minimizing the reprojection error (that is, the difference between the observed two-dimensional image coordinates and the two-dimensional coordinates predicted by the camera model and the three-dimensional point coordinates), the accuracy of three-dimensional reconstruction can be significantly improved. After optimization, a set of point clouds in three-dimensional space are obtained, which represent the surface shape of the target object.

[0106] According to the reconstructed three-dimensional coordinate point cloud, the center position of the target object is determined by calculating the centroid of the point cloud. This position is the spatial coordinate of the target object in the three-dimensional rectangular coordinate system. Specific feature points (such as corner points, edge points, etc.) on the target object are selected. The positions of these feature points in three-dimensional space can be obtained through the previous steps. The relationship between these feature points (such as distance, angle, etc.) and their coordinates in three-dimensional space are used to estimate the posture of the target object. By calculating the angles between the vectors formed by these feature points, the yaw angle (Yaw), pitch angle (Pitch) and roll angle (Roll) of the target object can be estimated. These three angles together describe the posture of the target object in three-dimensional space.

[0107] Through multi-view geometry and feature matching technology, the 3D shape and position of the target object can be reconstructed more accurately, thereby improving the accuracy of posture estimation. This method is robust to external factors such as lighting conditions and partial occlusion, because it relies on image information from multiple perspectives and the geometric relationship of 3D space. The whole process can be highly automated, reducing manual intervention and improving processing efficiency.

[0108] In a preferred embodiment of the present invention, receiving preliminary posture information and dynamically adjusting the posture information to obtain adjusted posture information includes:

[0109] receiving object position and posture data from an image processing unit;

[0110] Comparing the object position and posture data with preset object position and posture data to obtain a comparison result;

[0111] Determine the dynamic adjustment strategy based on the comparison results;

[0112] According to the dynamic adjustment strategy, the object position and posture data are dynamically adjusted to obtain adjusted posture information.

[0113] In an embodiment of the present invention, after completing the processing and analysis of the image, the image processing unit will generate the position and posture data of the object. These data are transmitted to the dynamic adjustment module through the internal communication protocol. After receiving these data, the dynamic adjustment module will perform subsequent comparison and adjustment operations, and can obtain the latest object position and posture information in real time.

[0114] In the dynamic adjustment module, the position and posture data of the object in an ideal state are first pre-set and stored. These data may include the object's three-dimensional coordinates, rotation angle and other information, which are usually obtained through precise measurement or design drawings. When the object appears in the working environment, the image processing unit will detect and analyze the object in real time, and then send the object's actual position and posture data to the dynamic adjustment module. These data reflect the real state of the object in the current environment. After receiving the actual data, the dynamic adjustment module will immediately compare it with the preset data. The comparison content includes various aspects such as the object's position coordinates and posture angle. Through comparison, the module will calculate the difference between the actual data and the preset data. This difference may be manifested as an offset in position, a deviation in posture angle, etc. After calculating the difference, the dynamic adjustment module will further analyze the causes of these differences. Possible causes include mechanical errors, environmental factors (such as vibration, temperature changes, etc.), sensor noise, etc. By deeply understanding the causes of the differences, the module can formulate adjustment strategies more accurately; according to the size and cause of the difference, the dynamic adjustment module will formulate corresponding adjustment strategies. For example, if the object position deviation is large, the module may decide to align the object by moving the robot's end joint; if the object's posture angle deviation is large, it may adopt a strategy of rotating the object or adjusting the robot's posture.

[0115] According to the formulated adjustment strategy, the dynamic adjustment module will send instructions to the robot controller to control the robot to perform corresponding actions to adjust the position and posture of the object. During the adjustment process, the dynamic adjustment module will continue to receive real-time data from the image processing unit to adjust the strategy or confirm the adjustment effect in time. Through dynamic adjustment, it can ensure that the object always maintains the ideal position and posture in actual operation, thereby improving the accuracy and stability of the robot operation.

[0116] In another preferred embodiment of the present invention, receiving the adjusted posture information and calculating the motion data of the slag removal robot in the current cycle in real time may include:

[0117] After completing the posture adjustment, the dynamic adjustment module will send the adjusted posture information (including position coordinates, posture angle, etc.) to the motion calculation module through the internal communication protocol, ensuring that the posture information used for the calculation is the latest and dynamically adjusted, thereby improving the accuracy and real-time performance of the data.

[0118] The motion calculation module first preprocesses the received posture information, including data cleaning, format conversion, etc., to ensure the consistency and availability of the data; based on the timestamp of the received posture information, the start and end time of the current calculation cycle is determined, and the distance moved by the robot in the cycle is calculated by comparing the position coordinates at the start and end of the cycle, which can be achieved by calculating the straight-line distance between two points; if the robot rotates in the cycle, the total angle of rotation can be calculated by comparing the posture angles at the start and end of the cycle, and the average speed and acceleration of the robot in the cycle can be estimated according to the moving distance and the rotation angle, combined with the time length of the cycle. For example, the speed can be calculated by dividing the moving distance by the time, and the acceleration can be estimated by the rate of change of the speed. The calculated motion data (moving distance, rotation angle, speed, acceleration, etc.) is stored in the memory of the system. The present invention calculates the motion data of the slag dredger robot in the current cycle in real time, which helps to more accurately grasp the motion state and performance of the robot. Through the analysis and monitoring of the motion data, the abnormal situation or performance degradation of the robot can be discovered in time, so that corresponding maintenance measures can be taken to improve the service life and operation efficiency of the robot.

[0119] In another preferred embodiment of the present invention, the instruction parameters are continuously updated according to the movement data to control the slag removal robot to complete the positioning and grasping of the static workpiece on the workbench, and the identification and tracking of the moving workpiece on the conveyor belt, which may include:

[0120] The system continuously receives and analyzes the motion data of the slag removal robot, including moving distance, rotation angle, speed and acceleration, etc. Based on the motion data, the system calculates the optimal command parameters required for the robot's next movement. For example, if the robot moves too fast, the grasping accuracy may be reduced, so the speed parameters need to be adjusted; if the robot deviates during the positioning process, the position parameters may need to be adjusted; the system sends new control instructions to the slag removal robot based on the adjusted command parameters. By analyzing the motion data in real time and adjusting the command parameters, the movement of the slag removal robot can be ensured to be more accurate and efficient, and the accuracy and efficiency of the robot's positioning, grasping, identification and tracking of workpieces on the workbench and conveyor belt can be improved.

[0121] The slag removal robot moves to the approximate position of the workpiece on the workbench according to the updated instruction parameters. The robot uses sensors (such as cameras, infrared sensors, etc.) to accurately locate the workpiece, and then performs the grasping action, which improves the positioning accuracy and grasping success rate of static workpieces on the workbench, and reduces the grasping failure or workpiece damage caused by inaccurate positioning.

[0122] The slag removal robot uses image recognition technology to detect moving workpieces on the conveyor belt in real time and identify their shape, size and position. Based on the recognition results, the robot adjusts its own position and posture to track the workpieces on the conveyor belt and performs grabbing actions at the appropriate time. It realizes real-time recognition and tracking of moving workpieces on the conveyor belt, improves the automation level of the production line, ensures timely grabbing and processing of workpieces on the conveyor belt, and improves production efficiency.

[0123] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A visual servo control system for an online slag removal robot. It is characterized in that include: The optimization module is used to set an initial population, wherein each individual in the initial population represents a set of image acquisition parameters, and the image acquisition parameters of each individual are evaluated using an evaluation function to obtain an evaluation result; the final individual is determined according to the evaluation result, and a new parameter combination is generated by combining the characteristics of the final individual through a crossover operation until the final image acquisition parameter combination is determined; The visual sensor is fixedly installed at the end joint of the slag removal robot and is used to continuously collect image information of the target object during the robot's movement according to the final image acquisition parameter combination; An image processing unit, used for receiving image information from a visual sensor and extracting preliminary position information of an object in a rectangular coordinate space; A dynamic adjustment module, used for receiving preliminary posture information and dynamically adjusting the posture information to obtain adjusted posture information; The visual servo controller is used to receive the adjusted posture information and calculate the motion data of the slag removal robot in the current cycle in real time; The robot controller is used to continuously update the instruction parameters according to the movement data to control the slag removal robot to complete the positioning and grasping of static workpieces on the workbench, as well as the identification and tracking of moving workpieces on the conveyor belt; The image acquisition parameters of each individual are evaluated using the evaluation function to obtain the evaluation results, including: The image acquisition parameters of each individual are evaluated to obtain an evaluation result; in, is the evaluation result, are the weight coefficients for image quality, contrast, and saturation scores, respectively; is the size of the image, used to normalize the score; Respectively represent the images in horizontal and vertical gradients of the location; The pixel gray value of the position; Represents the average gray value of the image; Respectively represent the standard deviation of the red, green, and blue channels of the image; represents the row index in the image, Represents the column index in the image; Represent the number of rows and columns of the image respectively. The value range of i is from 1 to M, and the value range of j is from 1 to N. The final individual is determined based on the evaluation results, and a new parameter combination is generated by combining the characteristics of the final individual through crossover operations until the final image acquisition parameter combination is determined, including: Based on the evaluation results, the final individuals are screened; Determine two or more individuals from the evaluation results, and cross-combine the parameters corresponding to the two or more individuals to generate a new parameter combination; The new parameter combination is evaluated again by the evaluation function, and a new individual is determined according to the evaluation result, until a preset number of iterations is reached to obtain a final parameter combination, and the final parameter combination is used as the final image acquisition parameter combination; Based on the evaluation results, the final individuals are screened, including: Determine the number of clusters C, and randomly determine C individuals as the initial cluster centers; For each individual, calculate its distance from each cluster center and assign it to the corresponding cluster center; For each cluster, calculate the average parameter value of all individuals in it, and set the average parameter value as the new cluster center, and repeat the steps until the preset number of iterations is reached; For each cluster, the average evaluation scores of all individuals in it are calculated, and the average evaluation scores of each cluster are compared to determine the final cluster; According to the final clustering, determine the final individuals; Receive image information from the visual sensor and extract preliminary pose information of the object in the rectangular coordinate space, including: Using visual sensors to capture images of objects; Preprocess the image of the object and extract key features from the preprocessed image; According to the key features, identify the target object in the image and determine the position of the target object in the image; Estimate the position and posture of the object in the three-dimensional rectangular coordinate system based on the target object and key features; According to the intrinsic and extrinsic parameters of the camera, the position and posture of the object in the image coordinate system are converted to the actual three-dimensional rectangular coordinate system, specifically including: taking the upper left corner of the image as the origin, the u axis to the right, and the v axis to the bottom, the coordinate (u, v) represents the position of the pixel in the image; taking the optical center of the camera as the origin, the Z axis coincides with the optical axis of the camera, and the X axis and Y axis are parallel to the u axis and v axis of the image respectively; the world coordinate system is a fixed three-dimensional coordinate system used to describe the position of objects in the real world; the camera intrinsic parameters include focal length, principal point coordinates, and distortion coefficient. The parameters are determined during camera calibration. Using the intrinsic parameters, the three-dimensional points in the camera coordinate system are projected onto the image coordinate system to form a two-dimensional image, that is, the points in the three-dimensional space are mapped to the two-dimensional plane through perspective projection; the camera extrinsic parameters describe the position and posture of the camera in the world coordinate system, including the rotation matrix R and the translation vector T. The points in the world coordinate system are converted to the camera coordinate system through rotation and translation transformations; for a point in the world coordinate system , whose coordinates in the camera coordinate system are Calculated by the following formula: ; Among them, R is a 3×3 rotation matrix, T is a 3×1 translation vector, and the inverse process from image coordinates to three-dimensional coordinates is: Given the image coordinates and intrinsic parameters, a ray in the camera coordinate system is inferred, and combined with the extrinsic parameters, the ray is transformed into the world coordinate system to obtain the position of the object in three-dimensional space; Identify the target object in the image based on key features and determine the location of the target object in the image, including: Input the key features into the trained classifier to determine whether the target object exists in the image to obtain the confidence level; In the image where the target object is identified, a sliding window is used to traverse the entire image. At each window position, the image features in the window are extracted and input into the classifier for judgment. When the sliding window is at a position, if the confidence level is greater than or equal to the preset threshold, the window contains the target object, and the position of the window is used as the position of the target object in the image; Based on the target object and key features, estimate the position and posture of the object in the 3D rectangular coordinate system, including: Capture multiple images from different angles and reconstruct the 3D coordinates of the target object through feature matching and triangulation; Determine the position of the target object in the three-dimensional space according to the reconstructed three-dimensional coordinates of the target object; According to the key features and the position of the target object in three-dimensional space, the posture of the target object is estimated by calculating the relationship between the feature points; Receive preliminary pose information and dynamically adjust the pose information to obtain adjusted pose information, including: receiving object position and posture data from an image processing unit; Comparing the object position and posture data with preset object position and posture data to obtain a comparison result; Determine the dynamic adjustment strategy based on the comparison results; According to the dynamic adjustment strategy, the position and posture data of the object are dynamically adjusted to obtain the adjusted posture information; The attitude of the target object includes the yaw angle, pitch angle and roll angle of the target object; The image acquisition parameters include exposure time, focal length, white balance and acquisition angle.