Intelligent seam beautifying robot and method based on visual guidance
Through vision-guided intelligent sewing robot technology, the shortcomings of existing robots in complex gaps and environmental conditions are solved, efficient and flexible gap filling is achieved, the precision and efficiency of sewing are improved, and the scope of application is enhanced.
Patent Information
- Application Number
- CN202410610760.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-27
AI Technical Summary
The existing intelligent ceramic tile seaming robot has low robustness in the case of complex gaps and cannot adjust the material discharging according to the gap size. The environmental conditions are high, which affects the flexibility and scope of application. Moreover, the chassis drive system has poor motion stability in uneven environments. Accuracy is limited.
An intelligent sewing robot based on visual guidance is used to capture the gap through the image acquisition module, generate a forward trajectory, measure the seam width and control the discharging speed. It uses the drive chassis and sewing gun adjustment frame to realize tracking and sewing, combining visual processing algorithms and hardware. Structural design improves sewing accuracy and efficiency.
On the premise of ensuring the accuracy of sewing, it improves the efficiency of sewing, avoids material waste and insufficient material, enhances the scope and flexibility of the robot, adapts to different environmental conditions, and improves the uniformity and durability of gap filling.
Smart Images

Figure CN118547859A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial robots, and in particular to an intelligent seaming robot and method based on vision guidance. Background Art
[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.
[0003] Laying tiles is an almost necessary step in the decoration industry. Considering thermal expansion and contraction, some gaps need to be left between tiles. Beautifying technology refers to the use of caulking agent to fill the gaps between tiles after laying tiles. On the one hand, it can make the visual effect of the space more beautiful, and on the other hand, it can reduce the dead corners of the gaps and prevent bacteria from breeding, making the home environment healthier. Beautifying technology usually includes preparation, caulking, and cleaning. Among them, the preparation work is to ensure that the surface of the tiles is clean and tidy after the tiles are laid, and there is no dust and debris in the gaps between the tiles to ensure that the caulking agent can fully fill the gaps and avoid falling off. Caulking squeezes the caulking agent into the gaps between the tiles, and uses a special caulking agent scraper or scraper to fill the gaps with the caulking agent to ensure that the caulking is full and there are no voids. Cleaning Use a wet rag or sponge with water to wipe the excess caulking agent on the surface of the tile to make the caulking agent and the tile surface flat.
[0004] The inventors have found that most of the current seam beautification operations are performed manually. Manual seam beautification is a method of manual caulking. Although it can achieve a certain aesthetic effect, it also has some disadvantages, including:
[0005] (1) It is difficult to maintain consistency in artificial grouting. Manual grouting is easily affected by the experience and skill level of the technical operator, and it is difficult to maintain consistent filling effect and aesthetics of each gap; (2) The grouting speed of artificial grouting is slow, and it takes a long time to complete. Especially for large-area tile paving projects, grouting work may become a bottleneck in the progress of the project, which is time-consuming and labor-intensive; (3) Artificial grouting is not easy to maintain durability. Manual grouting cannot guarantee the uniformity and durability of the grouting. The quality of grouting may be affected by factors such as the choice of grouting agent and the filling method, and it is easy to have problems such as cracking and falling off; (4) Artificial grouting is prone to waste of materials because the manual application force is uneven and it is easy for a large amount of material to overflow on the tile surface, which not only causes waste of materials but also causes trouble for subsequent cleaning work. There are many processes, it takes a long time, the cost is high, and there is a lot of waste.
[0006] Therefore, although artificial grouting can beautify the tile laying effect to a certain extent, it also has some shortcomings. In actual construction, you can consider using mechanical grouting equipment or other automated grouting technologies to improve the efficiency and quality of grouting.
[0007] Existing caulking robots usually include a motion chassis mechanism, an extrusion mechanism, a tracking control mechanism and other parts. The robot is controlled to reach a designated location through the tracking control mechanism and the motion chassis mechanism, and then the caulking agent is extruded through the extrusion mechanism to complete the caulking operation. However, the existing robots have low robustness to complex tile gaps. At the same time, for gaps of different widths, the amount of material discharged cannot be adjusted according to the actual gap size, which easily causes problems such as insufficient gap filling or waste of materials, and cannot meet the use requirements well. The working performance of existing intelligent tile caulking robots is greatly affected by environmental conditions. For example, the camera information acquisition module has high requirements for light and environment, and can only work normally under sufficient light and a clean environment. However, there are often dust, insufficient light and other factors at the construction site, which limits the flexibility and scope of application of the robot. In addition, although the Mecanum wheel used in the chassis drive system of the existing unsealed robot has the characteristics of omnidirectional movement, it may be restricted in an uneven or messy working environment, affecting the robot's motion stability and accuracy. Summary of the invention
[0008] In order to address the deficiencies in the prior art, the present invention provides an intelligent caulking robot and method based on vision guidance, which captures tile gaps and generates a forward trajectory through an image acquisition module, measures the width of the floor seams and calculates the corresponding discharge speed, and simultaneously controls the movement of a driving chassis to aim a caulking gun at the tile seams. The robot is guided in real time to perform tracking caulking work according to the images captured by the image acquisition module, thereby improving the caulking efficiency while ensuring the caulking accuracy.
[0009] In order to achieve the above object, the present invention adopts the following technical solution:
[0010] In a first aspect, the present invention provides an intelligent seaming robot based on vision guidance.
[0011] An intelligent seaming robot based on vision guidance, comprising:
[0012] A seaming gun adjustment frame, a driving chassis and a control terminal. The seaming gun adjustment frame is used to place the seaming gun. A first driving motor is arranged on the seaming gun adjustment frame. The output of the first driving motor is connected to a lead screw through a gear. The lead screw is threadedly connected to a back seat. A push rod for pushing the seaming gun is connected to the back seat.
[0013] The seaming gun adjustment frame is fixed on the driving chassis, a travel wheel driven by a second driving motor is arranged at the bottom of the driving chassis, and an image acquisition module is arranged on the seaming gun adjustment frame;
[0014] The control terminal is respectively connected to the image acquisition module, the first drive motor and the second drive motor for communication, and is used for controlling the speed of the first drive motor and the second drive motor according to the acquired image.
[0015] As a further limitation of the first aspect of the present invention, a leveling structure is connected to the rear of the discharge port of the seaming gun.
[0016] As a further limitation of the first aspect of the present invention, the driving wheel is a track wheel, and the second driving motor is used to drive the track to rotate and thereby generate motion thrust.
[0017] As a further limitation of the first aspect of the present invention, the caulking gun adjustment frame includes a clamping mechanism, which is used to clamp the caulking gun. A plurality of guide rods are connected to the rear seat, which are arranged parallel to the lead screw, and each guide rod is inserted into the clamping mechanism for push rod guidance.
[0018] In a second aspect, the present invention provides an intelligent seam beautification method based on visual guidance.
[0019] A vision-guided intelligent seaming method, using the vision-guided intelligent seaming robot described in the first aspect of the present invention, includes the following process:
[0020] Acquire the seam image to be beautified and perform preprocessing;
[0021] The width of the gap is obtained according to the preprocessed gap image;
[0022] According to the width of the gap, the rotation of the first driving motor is controlled to control the extrusion speed of the seam beautifying agent, and the rotation of the second driving motor is controlled to control the travel speed of the driving chassis.
[0023] As a further limitation of the second aspect of the present invention, the preprocessing includes: contrast enhancement of the acquired image, corrosion of the contrast enhanced image to remove interference on the tiles, and then separation of the gap image using Otsu's method.
[0024] As a further limitation of the second aspect of the present invention, steering judgment, angle calculation and distance calculation are performed through the deviation between the robot center line and the navigation line and the deflection angle of the navigation line, and the robot path correction data is obtained according to the steering judgment result, angle calculation result and distance calculation result.
[0025] As a further limitation of the second aspect of the present invention, based on the preprocessed image, the Hough transform function is called to obtain the straight lines in the image, which are screened according to a set angle range, and a navigation line is generated based on the obtained straight line angle and the average distance of the straight line from the center of the screen.
[0026] As a further limitation of the second aspect of the present invention, the gap image is processed by bilateral filtering, grayscale stretching, Otsu method binarization and closing operation;
[0027] Boundary extraction of the gap image after processing based on the eight-neighborhood algorithm, inflection point detection based on the maximum angle of the vector according to the boundary extraction structure, and the coordinates and angles of each inflection point are obtained;
[0028] For any inflection point, the contour of the gap between two intersecting floor tiles is divided into eight boundary segments through the inflection point, four straight lines are fitted according to the least square method to obtain expressions of the four straight lines, and the distance between the parallel straight lines is calculated according to the expressions;
[0029] Coordinate transformation is performed according to the obtained distance to obtain the actual distance, and the actual distance is used as the width of the gap.
[0030] As a further limitation of the second aspect of the present invention, when the slope of the two fitted parallel straight lines is greater than a set threshold, the distance between the two parallel straight lines is solved according to the inverse function of the expression of the two parallel straight lines.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] 1. The present invention captures the gap between tiles and generates a forward trajectory through an image acquisition module, measures the width of the floor seam and calculates the corresponding discharge speed, and at the same time controls the movement of the driving chassis to aim the caulking gun at the tile seam. The robot is guided in real time to perform tracking caulking work based on the image collected by the image acquisition module, thereby improving the caulking efficiency while ensuring the caulking accuracy and avoiding material waste or insufficient caulking materials.
[0033] 2. The present invention innovatively proposes an intelligent seaming robot and method based on vision guidance, which pre-processes the collected images, effectively avoids the influence of factors such as dust and insufficient light, and improves the application scope and flexibility of the robot.
[0034] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0036] Figure 1 A schematic diagram of the intelligent seaming robot based on vision guidance provided by the present invention;
[0037] Figure 2 A schematic diagram of the contrast enhancement provided by the present invention before and after;
[0038] Figure 3 A schematic diagram of a circuit provided by the present invention that contains more pattern interference;
[0039] Figure 4 The image after 3*3 corrosion processing provided by the present invention;
[0040] Figure 5 The effect diagram before and after the bilateral filtering provided by the present invention;
[0041] Figure 6 A schematic diagram of the grayscale stretching principle provided by the present invention;
[0042] Figure 7 The effect diagram before and after the grayscale stretching provided by the present invention;
[0043] Figure 8 The effect diagram before and after the binarization of the Otsu method provided by the present invention;
[0044] Fig. 9 A schematic diagram of the closing operation provided by the present invention;
[0045] Fig.10 The before and after effect diagrams provided by the present invention;
[0046] Fig.11 A schematic diagram of the eight-neighborhood boundary tracking provided by the present invention;
[0047] Fig.12 The structure definition provided by the present invention is shown in FIG. Figure 1 ;
[0048] Fig.13 The effect diagram before and after the eight-neighborhood boundary extraction provided by the present invention;
[0049] Fig.14 The structure definition provided by the present invention is shown in FIG. Figure 2 ;
[0050] Fig.15 Schematic diagram of non-inflection point (left side) and inflection point (right side) provided by the present invention;
[0051] Fig.16 This is the inflection point detection effect diagram provided by the present invention;
[0052] Fig.17 A schematic diagram of dividing a boundary line using an inflection point provided by the present invention;
[0053] Fig.18 The straight line fitting effect diagram provided by the present invention;
[0054] Fig.19 The calibration plate provided by the present invention has a checkerboard side length of 6 mm;
[0055] Fig. 20This is a rendering of the precise identification of gaps in the case of interference between dark tiles and line patterns provided by the present invention;
[0056] Fig.21 A schematic diagram of identifying gaps in wooden floors provided by the present invention;
[0057] Fig. 22 A schematic diagram of identifying gaps in old tiles provided by the present invention;
[0058] Fig.23 A schematic diagram of identifying gaps in different-colored plastic floors provided by the present invention;
[0059] Fig.24 The measurement result 1 provided by the present invention;
[0060] Fig.25 The second measurement result provided by the present invention;
[0061] Fig.26 The third measurement result provided by the present invention;
[0062] Among them, 1-beautifying seam gun adjustment frame; 2-driving chassis; 3-gear; 4-screw; 5-traveling wheel; 6-guide rod; 7-push rod; 8-back seat. DETAILED DESCRIPTION
[0063] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0064] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0065] As described in the background technology, the working performance of the existing intelligent tile seam robot is greatly affected by environmental conditions. For example, the camera information acquisition module has high requirements for light and environment, and needs to work normally under sufficient light and clean environment. However, there are often factors such as dust and insufficient light at the construction site, which limits the flexibility and scope of application of the robot. In addition, although the Mecanum wheel used in the chassis drive system has the characteristics of omnidirectional movement, it may be restricted in an uneven or messy working environment, affecting the robot's motion stability and precision. Therefore, the high requirements for environmental conditions limit the scope of application and flexibility of this intelligent tile seam robot, which is another major disadvantage; there is another problem with the existing intelligent tile seam robot, that is, it does not consider the influence of the tile seam width on the discharge amount. If the discharge amount is certain, the tile gap is too small, which will lead to waste of materials, and the tile gap is too large, which will cause the seam beautifier to be unable to fill the tile seam, so the coordination of the discharge amount and the ground seam width is also particularly important.
[0066] In view of this, this implementation proposes an intelligent seaming robot based on vision guidance, which solves the above problems through the design of visual processing algorithm and hardware structure.
[0067] like Figure 1 and Figure 2 As shown, the seaming robot provided by the present implementation includes: a seaming gun adjustment frame 1, a driving chassis 2 and a control terminal, the seaming gun adjustment frame 1 is used to place the seaming gun, a first driving motor is arranged on the seaming gun adjustment frame 1, the output of the first driving motor is connected to the lead screw 4 through a gear 3, the lead screw 4 is threadedly connected to the back seat 8, a push rod 7 for pushing the seaming gun is connected to the back seat 8, and a guide rod 6 is used for guiding the push rod 7;
[0068] The seaming gun adjustment frame 1 is fixed on the driving chassis 2, and a running wheel 5 driven by a second driving motor is arranged at the bottom of the driving chassis 2, and an image acquisition module is arranged on the seaming gun adjustment frame 1;
[0069] The control terminal is respectively connected to the image acquisition module, the first drive motor and the second drive motor for communication, and is used for controlling the speed of the first drive motor and the second drive motor according to the acquired image.
[0070] The electronic control part of the driving chassis 2 adopts STM32 (i.e., the control terminal) to control and drive the second drive motor, which drives the track to rotate and generate forward thrust. To ensure the accuracy of forward movement and steering, each second drive motor uses an encoder closed-loop operation to feed back data such as the track speed to STM32 (i.e., the control terminal). The hardware of the driving chassis 2 adopts a suspended crawler structure. During the simulation, the car uses an ordinary four-wheel motor. However, in the actual debugging process, it is found that if relatively smooth plastic wheels are used for the four wheels, although the function of rotating in situ can be realized through the differential of the four wheels, the horizontal friction of the tires of the car is small during the seaming process because the work site is also smooth tiles, and it is easy to deviate from the patrol line, causing greater interference to the patrol line; if rubber wheels with friction are used for the four wheels, although it can be rotated in situ on the tile floor and the interference to the patrol line is low, it is found in actual tests that rubber wheels are easily contaminated with seaming agents and are difficult to clean, which will gradually accumulate negative effects on the long-term operation of the machine; so the present invention finally uses track wheels, and the moving chassis of the track wheels can realize in situ rotation on any plane, and because the gravity is evenly distributed on the surface of the track, even if the track is contaminated with seaming agents, the chassis movement will still be relatively stable. The present invention adopts a suspended crawler structure in actual use. Compared with the traditional crawler structure, the suspended crawler structure can flexibly control the pressure between the nozzle and the gap to prevent the unevenness of the gap from causing the nozzle to be lifted up and causing the crawler to be suspended.
[0071] In this implementation, the visual and display parts are mainly composed of OpenMv and screen. After the visual data during the operation of the robot is processed by OpenMv, part of it is displayed on the screen or sent to stm32 (i.e., the control terminal).
[0072] In this implementation, the caulking gun adjustment frame 1 is mainly composed of a clamping structure and an extrusion structure (i.e., including a back seat, a lead screw, a push rod and a guide rod). The clamping structure adopts a resin-printed shell, and clamps the raw material through a raw material box and a booster tube. It is suitable for most caulking agents on the market and is easy and convenient to disassemble. The extrusion structure is powered by the first drive motor (i.e., the servo stepper motor). Compared with a typical DC motor, the servo stepper motor can control the position of the motor more accurately. When using caulking materials of different viscosities, the servo stepper motor will reach the same extrusion position, thereby reducing the influence of different material viscosities and the amount of residual material on the material extrusion speed. During the extrusion process, the servo stepper motor increases the torque through gear transmission and controls the rotation of the lead screw (the lead screw is threadedly connected to the back seat), and transmits the thrust of the push rod to the caulking agent through the back seat to extrude the caulking agent. The stm32 (i.e., the control terminal) controls the extrusion speed of the caulking agent by controlling the rotation speed of the servo stepper motor to adapt to gaps of different widths. A detachable and washable steel ball smoothing structure is provided at the front end of the discharge port, which can smooth the caulking agent immediately after applying the caulking agent to avoid the caulking agent from drying during the caulking process and reduce manpower consumption.
[0073] The working method of the above-mentioned seam-beautifying robot described in this implementation includes:
[0074] Step 1: Start the robot, collect the surrounding environment information through the camera on board, and output the horizontal coordinates of the tile gap in the environment where the mobile robot is currently located;
[0075] Step 2: Process the image acquired by the camera, enhance the contrast through ConvertTo processing with α=1.5, β=10, and use a 3*3 convolution kernel to corrode the image to remove the interference of patterns on the tiles on gap recognition; using Otsu's method, the optimal threshold can be automatically calculated to maximize the inter-class variance of the image, which can effectively binarize the image after edge detection and divide the image into two categories, separating the gap and other parts, so as to provide a clear image for subsequent straight line detection. Otsu's method can adaptively select the threshold, so it can better adapt to the lighting and contrast changes of different images, which improves the robustness of the system in various environments and ensures that the robot can accurately identify the gaps between tiles and complete the seam beautification work.
[0076] Step 3: Through the deviation between the robot center line and the identified navigation line and the deflection angle of the navigation line, steering judgment, angle calculation and distance calculation are performed. By comprehensively analyzing the results of the three parts, the data for the robot to correct the path is obtained, and the relevant instructions are sent to the underlying control system to enable the robot to track the movement.
[0077] Step 4: Process the tile gap image through bilateral filtering, grayscale stretching, Otsu method binarization and other operations, and use the boundary extraction based on the eight-neighborhood algorithm to obtain the pixel distance of the gap width, that is, the number of pixels in width; to convert the pixel distance to the actual distance, the camera needs to be calibrated; the present invention uses a chessboard with a known square side length for calibration, and by calculating how many pixels are contained in the side length of a small square, the conversion relationship between the pixel and the actual distance can be obtained; the present invention uses the method of scanning 100 rows of pixels and taking the average value, which can obtain a more accurate ratio, that is, one pixel corresponds to the actual 0.01433mm, so that the tile gap width and depth of the gap can be obtained.
[0078] Step 5: Convert the width and depth information of the tile gap obtained in step 4 into motor parameters, and control the motor to rotate at different angles according to the width and depth of the tile gap, so as to squeeze out an appropriate amount of caulking agent to avoid the situation where too little caulking agent is squeezed out to fill the gap or too much caulking agent overflows.
[0079] Step 6: The steel ball at the front end of the caulking agent tube keeps rolling to smooth the caulking agent and fill it into the gaps between the tiles.
[0080] Step 7: Repeat the above process continuously, obtain ground information through the camera, continuously process the image and provide information feedback, so that the robot can complete the tracking and seaming.
[0081] In step 2 of this implementation, contrast enhancement includes:
[0082] Contrast enhancement is a technology in digital image processing that aims to improve the visual effect of an image, making the brightness difference between different areas of the image more significant. Enhancing contrast can make the details in the image more prominent, improving the clarity and visual quality of the image. The goal of contrast enhancement is to adjust the grayscale distribution of the image to make the brightness difference in the image more obvious, thereby improving the quality of the image. This can be achieved by adjusting the grayscale mapping of the image or applying different image processing methods. Contrast enhancement is often used to improve image visualization, image analysis, and computer vision applications.
[0083] By using the ConvertTo function to perform contrast enhancement on the image, the contrast and brightness are controlled by setting the scaling factor alpha and the offset beta, respectively. If alpha>1, the contrast will be increased; if alpha<1, the contrast will be reduced; if beta>0, the brightness will be increased; if beta<0, the brightness will be reduced.
[0084] In addition, by artificially adjusting the parameters, it is found that when the alpha and beta values are too large, the bright part of the image will be overexposed, which is not conducive to the recognition of the gap. Figure 2 This implementation method finally selects parameters alpha = 1.5, beta = 10, which can achieve better processing results without causing obvious overexposure of the image and affecting gap recognition.
[0085] In step 2 of this implementation, removing tile pattern interference includes:
[0086] In the process of image processing, corrosion operation is a commonly used morphological method, which can effectively remove noise, small spots or fine structures in the image. The goal of the present invention is to remove pattern interference in the input image through corrosion operation, so as to improve the quality and readability of the image. Corrosion is one of the basic operations of morphological image processing. Its principle is to change the shape of the image by sliding a defined structural element on the image and taking the minimum value of the pixels below it. This operation causes the darker area to expand, while the brighter fine structures are eliminated. That is, the pattern interference on the tile is eliminated and the recognition of the gap is not affected as much as possible. In this implementation, a rectangular structural element with a size of 3×3 is selected.
[0087] Observe the actual effect of the corrosion operation on the image, preliminarily analyze whether the pattern interference in the image has been effectively removed and whether other undesirable effects have occurred, and consider the overall effect of image processing rather than just the removal of patterns by comparing the image clarity and detail retention.
[0088] After many tests, it is found that the selection of a 3*3 rectangular structural element is helpful for performing a moderate and local erosion operation on the image. Its small size enables it to remove smaller noise, weak edges or subtle details in the image without excessively affecting the overall image features. This selection can effectively process local details in the image and avoid introducing unnecessary morphological changes on the whole, which is in line with the goal of the erosion operation, such as Figure 3 and Figure 4 shown.
[0089] In step 2 of this implementation, gap identification is performed, including:
[0090] After comparing multiple algorithms, Otsu's binarization method was selected and implemented by ˋCv2.Threshold(edges, edges, 0, 255, ThresholdTypes.Otsu)ˋ. This is because Otsu's method has the characteristic of automatically calculating the threshold, which is optimized to maximize the inter-class variance and effectively divide the image into two categories. In the present invention, the purpose of this step is to binarize the image after edge detection, separate the gap and other parts, and provide a clear image for subsequent straight line detection. By adaptively selecting the threshold, Otsu's method can better adapt to the changes in illumination and contrast of different images, improve the robustness of the system in various environments, and ensure that the robot accurately identifies the gaps between tiles and completes the seam beautification work.
[0091] In addition, in the present invention, the parameter of the ˋCv2.HoughLinesPˋ function is set to ˋlines=Cv2.HoughLinesP(edges, 1, Math.PI / 180, 20, 20, 15)ˋ. Among them, the selection of ˋrhoˋ and ˋthetaˋ reflects the appropriate resolution of the polar coordinate space of the image, ensuring the accuracy of line detection. By setting appropriate threshold parameters, such as 20, 20 and 15, the present invention successfully filters the output of Hough Transform, retaining only straight lines with a length of more than 20 pixels, a minimum line segment interval of 20 pixels, and a maximum interval of 15 pixels. Such parameter settings have been debugged and optimized in actual projects, aiming to improve the accuracy of line detection, enable the robot to reliably locate and perform caulking work along the gaps between tiles, and enhance the robustness and performance of the system.
[0092] In this implementation, it is also considered that the strip wood grain of the wooden floor may affect the gap recognition of HoughLinesP. Therefore, through the parameter setting of HoughLinesP, considering that the spacing of the wood grain is small and different from the length and regularity of the gap, the accumulator threshold, the minimum segment length and the maximum allowed interval between segments are adjusted to eliminate the interference of the wood grain, and good results are achieved.
[0093] In step 3 of this implementation, the robot tracking motion includes:
[0094] The deviation between the robot's center line and the identified navigation line and the deflection angle of the navigation line are used to make steering judgments, angle calculations, and distance calculations. By comprehensively analyzing the calculation results of the three parts, the data for the robot's path correction is obtained, and relevant instructions are sent to the underlying control system.
[0095] In the captured image, the Hough transform algorithm is used to detect straight lines in the image. After preprocessing the image, the Hough transform function is called to obtain the straight lines in the image; then the straight lines are screened according to the set angle range (0-179), and the detected straight lines are drawn on the image; finally, the detected straight line angle and the average distance of the straight line from the center of the screen are sent to the chassis master control stm32 (i.e., the control terminal) through the serial port for line patrol; some parameters in the code can be adjusted, such as thresholds and merging margins, to adapt to different image environments; in the speed coordination part, the speed of the drive motor is measured by the encoder and fed back to the microcontroller, the current speed is fitted, and mapped to the servo motor through a specific function, so as to achieve the coordination of vehicle speed and extrusion speed at the program level.
[0096] In step 4 of this implementation, bilateral filtering includes:
[0097] Bilateral Filter is a nonlinear filtering method. It is a compromise between the spatial proximity and pixel value similarity of an image. It considers both spatial information and grayscale similarity to achieve edge-preserving denoising. It is simple, non-iterative and local.
[0098] The advantage of the bilateral filter is that it can preserve edges (Edge Preserving). Generally, using Gaussian filtering to reduce noise will obviously blur the edges, and the effect of protecting high-frequency details is not obvious. As the name implies, the bilateral filter has an additional Gaussian variance sigma_d compared to the Gaussian filter. It is a Gaussian filter function based on spatial distribution. Therefore, near the edge, the pixels that are farther away will not affect the pixel values on the edge too much, thus ensuring the preservation of the pixel values near the edge. However, since too much high-frequency information is stored, the bilateral filter cannot cleanly filter out the high-frequency noise in the color image, and can only filter the low-frequency information well; since this system is used to detect ground seams, the main feature is edge information. If other filtering algorithms such as Gaussian filtering are used for noise reduction, the edges will be obviously blurred, and the effect of protecting high-frequency details is not obvious. Bilateral filtering can avoid edge blurring caused by filtering, so bilateral filtering is used as the main filtering method for this system, such as Figure 5 shown.
[0099] In step 4 of this implementation, grayscale stretching includes:
[0100] When the image is underexposed or overexposed, or due to factors such as the nonlinearity of the imaging device and the narrow dynamic range of the image recording device, the contrast is insufficient, making it difficult to distinguish the details in the image. In this case, the grayscale range can be linearly expanded. This implementation method is to extract the information of the gaps between dark floor tiles, but is not interested in the information of other light-colored areas. In order to highlight the gaps between floor tiles, the grayscale range of the original image is transformed into a piecewise linear grayscale (i.e., grayscale stretching), highlighting the interesting information of the gaps between dark floor tiles and relatively suppressing the uninteresting light-colored areas, such as Figure 6 and Figure 7 shown.
[0101] In step 4 of this implementation, Otsu's method is used for binarization, including:
[0102] Binarization is the process of converting a grayscale image into a binary image containing only black and white. It can simplify image information, highlight target features, reduce the amount of calculation, and effectively remove noise. These effects make binarization one of the basic steps to achieve accurate image analysis and recognition. It has a wide range of applications and important roles. The OTSU algorithm (also known as the Otsu method) is an efficient algorithm for binarization of images. It uses a threshold to divide the original image into two images, the foreground and the background. Figure 8 shown.
[0103] In step 4 of this implementation, the closing operation includes:
[0104] Closing operation is a morphological operation in mathematical morphology, which is often used in image processing to remove noise, fill holes, connect disconnected areas, etc. Closing operation is achieved by dilating the image and then performing erosion operation, such as Fig. 9 and Fig.10 As shown, the steps of the closing operation are as follows:
[0105] First, the image to be processed is dilated with a structural element (also called a kernel), which is a template of a specific shape and size used to scan pixels in the image and operate on them;
[0106] Then, the dilated result is eroded, using the same structural element. The erosion operation moves the pixel values in the image toward the inside of the image, thereby shrinking it.
[0107] Finally, the result is the output image of the closing operation.
[0108] The effect of the closing operation is to connect adjacent areas and fill the holes in small areas, which is very useful for removing noise from images, bridging disconnected parts and extracting continuous areas. The closing operation has a wide range of applications in image segmentation, edge detection, shape analysis, target extraction and other fields.
[0109] Through the above image preprocessing operation, a clearer floor tile gap image is obtained. To measure the width of the floor tile gap, the extracted features need to be quantified. The edges of the floor tile gap are roughly two parallel straight lines (this is actually the case and the same is true for the pictures after shooting and processing), so the equation of the straight line can be extracted and calculated, and then the pixel width of the floor gap can be calculated using the distance formula between parallel lines. Finally, the checkerboard calibration board is used for calibration to realize the conversion between pixels and distances, and the quantization of the extracted features can be completed.
[0110] In step 4 of this implementation, the boundary extraction based on the eight-neighborhood algorithm includes:
[0111] After image preprocessing, the boundaries of the floor tile gaps are continuous, but at the junction of four floor tiles, two floor tile gaps will intersect, so the two gaps need to be segmented. In order to accurately obtain the continuous boundary coordinates and conveniently calculate the inflection point caused by the intersection for segmenting the two floor gaps, this implementation method adopts the eight-neighborhood boundary extraction algorithm to extract the four boundaries generated by the intersecting floor tile gaps. In addition, the eight-neighborhood algorithm is a linear algorithm with very low time complexity, which can improve the real-time performance of the system.
[0112] The eight-neighborhood algorithm is also called the eight-neighborhood edge tracking algorithm. It selects the starting growth point, searches for jumps in a certain direction in eight neighborhoods, moves to the new boundary point after finding it, and gradually loops to track the boundary, thereby extracting a continuous boundary, such as Fig.11 shown.
[0113] The continuous boundary information extracted by the eight-neighborhood algorithm is stored in a structure array. Each structure contains the horizontal and vertical coordinates of the pixel point. The structure definition is as follows: Fig.12 As shown, row is the horizontal coordinate and col is the vertical coordinate. This structure is defined as an array. Two adjacent elements of the structure are continuous boundaries. By traversing the entire structure array, the entire boundary can be traversed in the order of growth. The extraction effect is as follows: Fig.13 shown.
[0114] In step 4 of this implementation, the inflection point detection based on finding the maximum angle of the vector includes:
[0115] The boundary information obtained by the eight-neighborhood algorithm not only contains the coordinate information of each point on the boundary, but also contains the position order information of the boundary points, that is, the coordinates of several boundary points before or after the current boundary point can be quickly obtained. Traverse the entire boundary in order, assuming that the current point is O, the 50th point before the point is recorded as A, and the 50th point after the point is recorded as B. By calculating the angle of vector AOB, the curvature of the boundary at the point can be determined. The maximum value of the vector angle of each point on a continuous boundary is the inflection point with the most obvious characteristics of the continuous boundary.
[0116] The inflection point information extracted by the inflection point detection based on finding the maximum angle of the vector is stored in a structure. Each structure contains the inflection point flag, the coordinates of the inflection point, and the angle of the inflection point. In addition, the position of the inflection point in the eight-neighborhood boundary array is also stored to facilitate the subsequent boundary segmentation. The structure definition is as follows Fig.14 As shown, Fig.15 and Fig.16 The results of inflection point detection are shown in FIG.
[0117] In step 4 of this implementation, the inflection point detection based on finding the maximum angle of the vector includes:
[0118] After extracting the inflection point, the contours of the two intersecting floor tile gaps are divided into 8 boundaries through the inflection point, where 1, 2, 3, 4, 5, 6, 7, and 8 are the points on the four boundaries respectively. Fig.17 shown.
[0119] In order to convert the boundary information into a calculable quantity, the present invention uses the least square method to fit the four straight lines to obtain the expressions of the four straight lines. Because the two contour lines of the same floor tile gap are nearly parallel, the distance formula between two parallel lines is used to calculate the distance between the two straight lines, such as Fig.18 As shown. However, in the test, it was found that after the pictures were taken and processed, the fitted straight lines were not parallel, but had a very small deviation angle. The result calculated directly using the distance formula between parallel lines had errors. Especially for the vertical gap, the fitted slope k value is very large, and a very small angle difference will result in a large slope difference. The formula assumes that the slopes of the two straight lines are equal, and the computer performs approximate calculations when operating on large numbers, so the calculation of the width of the vertical gap is very inaccurate. Therefore, when it is found that the slope of the fitted straight line is very large, this implementation solves the distance according to the inverse function of the equation, that is, the x and y of the straight line are interchanged. After the interchange, the k value will be reduced to a very small value, so that the error is within an acceptable range.
[0120] In step S4 of this implementation, the camera is calibrated, including:
[0121] Through the previous image preprocessing and calculation, the pixel distance of the gap width is obtained, that is, the width is how many pixels. To convert the pixel distance to the actual distance, the camera needs to be calibrated. The present invention uses a chessboard with a known square side length for calibration (such as Fig.19 As shown), by calculating how many pixels are included in the side length of a small square, the conversion relationship between pixels and actual distance can be obtained. The present invention uses the method of scanning 100 rows of pixels and taking the average value to obtain a more accurate ratio, that is, one pixel corresponds to the actual 0.01433mm.
[0122] In addition, the present invention performs image acquisition verification in multiple locations, covering floors of different years, different materials, and different colors, to verify the image processing effect. The specific results are as follows: Fig.21 , Fig. 22 and Fig.23 As shown, after the above verification, it can be seen that gap recognition can achieve good results in many cases.
[0123] By integrating the above functions into a GUI interface and running it, you can get the effect diagram of binarization and fitting straight line, and display the measured floor tile gap width value (unit: mm), such as Fig.24 , invest 25 and Fig.26 shown.
[0124] By observing the effects of image processing and straight line fitting, it can be found that the information of the floor tile gaps is extracted well and a straight line with good fit is fitted. The measured gap width is about 2.2 mm, which is basically consistent with the actual situation.
[0125] Optionally, in some other implementations, an image acquisition device may also be provided at the tail of the robot to detect the gaps between floor tiles after the caulking is completed and leveled. The control terminal determines the caulking effect based on the acquired detection image. When the gap is unevenly leveled or insufficiently filled, the discharge amount and discharge speed of the caulking robot are controlled by parameters. If the result of re-detection after feedback control still shows uneven leveling or insufficient filling, an alarm message is generated to enable manual inspection to determine whether there is any abnormality in the caulking agent or whether the action of the extrusion mechanism is abnormal.
[0126] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent seaming robot based on vision guidance, It is characterized in that include: A seaming gun adjustment frame, a driving chassis and a control terminal. The seaming gun adjustment frame is used to place the seaming gun. A first driving motor is arranged on the seaming gun adjustment frame. The output of the first driving motor is connected to a lead screw through a gear. The lead screw is threadedly connected to a back seat. A push rod for pushing the seaming gun is connected to the back seat. The seaming gun adjustment frame is fixed on the driving chassis, a travel wheel driven by a second driving motor is arranged at the bottom of the driving chassis, and an image acquisition module is arranged on the seaming gun adjustment frame; The control terminal is respectively connected to the image acquisition module, the first drive motor and the second drive motor for communication, and is used for controlling the speed of the first drive motor and the second drive motor according to the acquired image.
2. The vision-guided intelligent seaming robot according to claim 1, It is characterized in that The rear part of the discharge port of the seaming gun is connected with a leveling structure.
3. The vision-guided intelligent seaming robot according to claim 1, It is characterized in that The driving wheel is a track wheel, and the second driving motor is used to drive the track to rotate and generate motion thrust.
4. The vision-guided intelligent seaming robot according to claim 1, It is characterized in that The seaming gun adjustment frame includes a clamping mechanism, which is used to clamp the seaming gun. A plurality of guide rods are connected to the rear seat, which are arranged in parallel with the lead screw, and each guide rod is inserted into the clamping mechanism for push rod guidance.
5. An intelligent seam-beautifying method based on visual guidance, It is characterized in that Using the vision-guided intelligent seaming robot according to any one of claims 1 to 4, The process includes: Acquire the seam image to be beautified and perform preprocessing; The width of the gap is obtained according to the preprocessed gap image; According to the width of the gap, the rotation of the first driving motor is controlled to control the extrusion speed of the seam beautifying agent, and the rotation of the second driving motor is controlled to control the travel speed of the driving chassis.
6. The intelligent seam-beautifying method based on visual guidance as claimed in claim 5, It is characterized in that The preprocessing includes: contrast enhancement of the acquired image, corrosion of the contrast enhanced image to remove interference on the tiles, and then separation of the gap image using the Otsu's method.
7. The intelligent seam-beautifying method based on visual guidance as claimed in claim 5, It is characterized in that The deviation between the robot center line and the navigation line and the deflection angle of the navigation line are used to perform steering judgment, angle calculation and distance calculation. The robot path correction data is obtained based on the steering judgment results, angle calculation results and distance calculation results.
8. The intelligent seam-beautifying method based on visual guidance as claimed in claim 7, It is characterized in that According to the preprocessed image, the Hough transform function is called to obtain the straight lines in the image, which are screened according to the set angle range, and the navigation line is generated according to the obtained straight line angle and the average distance of the straight line from the center of the screen.
9. The intelligent seam-beautifying method based on visual guidance as claimed in claim 6, It is characterized in that The gap image is processed by bilateral filtering, grayscale stretching, Otsu method binarization and closing operation; Boundary extraction of the gap image after processing based on the eight-neighborhood algorithm, inflection point detection based on the boundary extraction structure and the maximum angle of the vector, to obtain the coordinates and angles of each inflection point; For any inflection point, the contour of the gap between two intersecting floor tiles is divided into eight boundary segments through the inflection point, four straight lines are fitted according to the least square method to obtain expressions of the four straight lines, and the distance between the parallel straight lines is calculated according to the expressions; Coordinate transformation is performed according to the obtained distance to obtain the actual distance, and the actual distance is used as the width of the gap.
10. The intelligent seam-beautifying method based on visual guidance as claimed in claim 9, It is characterized in that When the slope of the two fitted parallel straight lines is greater than the set threshold, the distance between the two parallel straight lines is solved according to the inverse function of the expression of the two parallel straight lines.
