A method and system for automatic laying of tiles
By identifying and adjusting the position and angle of ceramic tiles, it solves the problems of low efficiency and insufficient accuracy of traditional ceramic tile paving, and achieves high-efficiency and high-quality automation of ceramic tile paving.
Patent Information
- Application Number
- CN202410247551.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-03-05
AI Technical Summary
Traditional ceramic tile laying methods are inefficient and prone to quality problems. Existing ceramic tile laying equipment has shortcomings in the accuracy of the laying position.
By obtaining paving tasks, collecting paving images and preprocessing, identifying straight lines and intersections, determining tile data, adjusting tile positions and angles, and realizing automatic tile paving.
It improves the efficiency and accuracy of ceramic tile paving, and improves the quality and level of ceramic tile paving.
Smart Images

Figure CN118135518B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic identification and positioning of ceramic tiles, and more particularly to an automatic ceramic tile laying method and system. Background Art
[0002] In recent years, with the rapid development of the real estate industry, tile laying is indispensable. However, the traditional tile laying method mainly relies on manual labor, which is not only inefficient but also prone to quality problems. With the popularization of computer technology, in the field of architectural design, more and more work is implemented through smart devices, and tile laying is no exception. However, existing tile laying equipment, such as the tile laying robot disclosed in the invention patent with application number 201910898553.6, uses a glue discharge device to discharge the viscous tile glue evenly and stably to apply tile glue to the tiles to be laid, and uses the tile laying device to knock the tiles coated with tile glue and moved to the work surface, thereby realizing the automation of tile laying and improving the overall laying efficiency. However, during the laying process, the laying position of the tiles is only determined by the gap between the two tiles through the camera, and the result obtained is not very accurate. Therefore, how to ensure the accuracy of the tile position during the laying process is a problem that technicians in this field urgently need to solve. Summary of the invention
[0003] In view of this, the present invention provides a method and system for automatic tile laying, which overcomes the above-mentioned defects.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] A method for automatically laying tiles, the specific steps are:
[0006] Get paving tasks;
[0007] Collecting paving images, preprocessing the paving images, and performing straight line recognition based on the preprocessed paving images;
[0008] Determine tile data based on the identified straight lines and the intersection points of the straight lines;
[0009] Perform paving tasks according to tile data.
[0010] Optionally, the task includes the number of paving task rows, the number of paving task columns, the number of tile slots, and the paving direction.
[0011] Optionally, the specific steps of preprocessing are:
[0012] Step 211, grayscale processing is performed on the paving image to obtain a grayscale image;
[0013] Step 212: Apply blur processing to remove noise and interference from the grayscale image;
[0014] Step 213: Perform histogram equalization processing on the grayscale image with noise and interference removed to perform edge enhancement.
[0015] Optionally, the specific steps of straight line recognition are:
[0016] Step 221, calculating the image gradient of each pixel point and the line segment direction angle of the area where it is located;
[0017] Step 222: merging the regions where the multiple pixels are located according to the preset tolerance and the calculated line segment direction angle to form a line segment support region r;
[0018] Step 223, determining a straight rectangle according to the line segment support area r;
[0019] Step 224, using the Sobel algorithm, detecting the edge of the image in the straight rectangle and identifying the tile edge straight line;
[0020] Step 225: determine whether any two edge lines are similar. If they are similar, merge them and extend the merged lines.
[0021] Step 226: extract the intersection points formed by the extended straight lines, filter the extracted intersection points, obtain the segmentation intersection points, and construct an intersection point list;
[0022] Step 227, using the segmentation intersection to complete tile segmentation and straight line segmentation;
[0023] Step 228: Screen the segmented straight lines according to the degree of overlap between the segmented straight lines and the tile edge straight lines.
[0024] Optionally, the specific steps of tile segmentation are:
[0025] Step 2271, create an empty image matrix of the same size as the tiled image;
[0026] Step 2272, traverse the intersection list and extract four intersections adjacent to any intersection;
[0027] Step 2273: construct a quadrilateral based on the four adjacent intersection points, and fill the area where the quadrilateral is located with a unique label value in the empty image matrix;
[0028] Step 2274: Repeat steps 2271 to 2273 until all intersection points in the intersection point list are processed, and an image matrix containing multiple label values is obtained, where each label value corresponds to an area of a tile.
[0029] Optionally, the calculation formula for the image gradient at any pixel is:
[0030]
[0031] In the formula, g x (x,y) is the image gradient on the x-axis; g y (x,y) is the image gradient on the y-axis.
[0032] Optionally, the horizontal line angle calculation formula is:
[0033]
[0034] In the formula, g x (x,y) is the image gradient on the x-axis; g y (x,y) is the image gradient on the y-axis.
[0035] Optionally, the specific steps for obtaining tile data are:
[0036] Step 31, grouping the detected straight lines according to horizontal lines and vertical lines;
[0037] Step 32, traverse and intersect the grouped straight lines to obtain the intersection points of the straight lines; and determine the angle of the tile based on the intersection points of the straight lines;
[0038] Step 33, determining the type of the tile angle according to the angle of the tile, and judging the target tile and the current tile;
[0039] Step 34: extract the tile data of the current tile and compare it with the tile data of the target tile, and determine the tile data of the current tile based on the comparison result.
[0040] Optionally, the specific steps for performing the paving task according to the tile data are:
[0041] Step 41, obtaining the angle and position data between the current tile and the reference tile, where the reference tile is an adjacent tile that has been laid;
[0042] Step 42, calculating the offset, offset direction and offset angle of the current tile according to the angle and position data between the current tile and the reference tile;
[0043] Step 43: adjusting the angle and position data of the current tile according to the offset amount, offset direction and offset angle, and paving the current tile according to the adjusted angle and position data;
[0044] Step 44: Use the current tile as a reference tile and repeat steps 41 to 43 until the paving task is completed.
[0045] An automatic tile laying system, comprising:
[0046] Task generation module: used to obtain or generate paving tasks;
[0047] A preprocessing module, used for collecting paving images and preprocessing the paving images;
[0048] A straight line recognition module, used for performing straight line recognition based on the preprocessed paving image;
[0049] A tile data recognition module, used to determine tile data according to the recognized straight lines and the intersections of the straight lines;
[0050] The laying module is used to perform laying tasks according to tile data.
[0051] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a method and system for automatic tile laying, which improves the efficiency and accuracy of tile laying, and enhances the quality and level of tile laying. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0053] Figure 1 A schematic diagram of the method provided by the present invention;
[0054] Figure 2 The image gradient and line segment graph provided by the present invention;
[0055] Figure 3 The line segment support area tolerance map provided by the present invention;
[0056] Figure 4 The tile edge recognition map provided by the present invention;
[0057] Figure 5 A straight-line filtration extension diagram provided by the present invention;
[0058] Figure 6 A straight line segmentation diagram provided by the present invention;
[0059] Figure 7 The straight line recognition overlapping diagram provided by the present invention;
[0060] Figure 8 The edge line grouping diagram provided by the present invention;
[0061] Fig. 9 The tile edge line segment diagram provided by the present invention;
[0062] Fig.10Tile corner diagram provided by the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] The embodiment of the present invention discloses a method for automatically laying tiles. Figure 1 As shown, the specific steps are:
[0065] Step 1: Get the paving task;
[0066] Step 2: Collect paving images and pre-process the paving images; perform straight line recognition based on the pre-processed paving images;
[0067] Step 3, identifying tile data according to each identified straight line and the intersection of any two straight lines;
[0068] Step 4: Execute the paving task according to the identified tile data.
[0069] The steps for obtaining the paving task in step 1 are: first, create a task as needed, receive the returned creation status code, determine the task status according to the creation status code, and obtain the paving task.
[0070] Among them, task creation includes the following parameters: the number of tiling task rows (Column), and the tiling direction (TilingDirection, 0 means left, 1 means right).
[0071] The creation status codes include: 0-the task already exists and creation failed; 1-the task was successfully created; 2-the task is being executed and a new task cannot be created; 3-other reasons for the task creation failure.
[0072] In step 2, the paving image is acquired through a monocular camera.
[0073] In step 2, the specific steps of preprocessing are:
[0074] Step 211, grayscale processing is performed on the tiled image to obtain a grayscale image, specifically: the brightness of the overexposed part is reduced to obtain the average brightness; for example, the cv2.cvtColor function is used to convert the color image into a grayscale image to reduce the amount of calculation and color interference.
[0075] Step 212: Apply blur processing to remove noise and interference from the grayscale image; for example, use cv2.fastNlMeansDenoising function to perform non-local mean denoising on the grayscale image to eliminate noise and blur in the image.
[0076] Step 213: Perform histogram equalization on the grayscale image from which noise and interference are removed, and perform edge enhancement to highlight the edge; for example, use the cv2.equalizeHist function to perform histogram equalization on the grayscale image to enhance the contrast and brightness of the image and highlight the edge.
[0077] In step 2, the specific steps of straight line recognition are:
[0078] Step 221, calculate the image gradient of each pixel point and the line segment direction angle of the area where it is located, specifically: Figure 2 As shown, the direction of grayscale change is the gradient direction, and the direction perpendicular to the gradient direction is the line segment direction; by calculating the line segment direction angle near each pixel point, a unit vector field can be generated.
[0079] In this embodiment, the image gradient is calculated at each pixel using the axa mask, specifically:
[0080]
[0081] In the formula, g x (x,y) is the image gradient on the x-axis; g y (x,y) is the image gradient on the y-axis.
[0082] Among them, when i(x, y) is the image grayscale value at pixel (x, y), the image gradient expression on the x-axis is:
[0083]
[0084] The image gradient expression on the y-axis is:
[0085]
[0086] Where a is the mask area.
[0087] The horizontal angle is calculated as:
[0088]
[0089] Step 222: merge the regions where the multiple pixels are located according to the preset tolerance and the calculated line segment direction angle to form a line segment support region r; specifically: the merge angle is within a certain tolerance (where the tolerance is Figure 3 The area of β in the middle forms the line segment support area r.
[0090] Step 223, determine the straight rectangle based on the line segment support area, specifically: for each line segment support area before verification, it is necessary to perform a rectangular approximation to construct a rectangle that contains all the points in the area. The principle of construction is as follows: first, treat the entire area as an entity, and the gradient size of each pixel point in the area is the mass F(j) of the point, so that the entire entity has a center of mass, and the center of mass is used as the center point of the rectangle. Assume that the coordinates of the points in the area are (x(j), y(j)). In each line segment support area r formed, the principal inertia axis of the line segment support area r is used as the main rectangle direction. The pixels in the rectangle whose horizontal line angle corresponds to the rectangular angle (within the tolerance β) are called alignment points, such as Figure 3 As shown. The obtained rectangle is used as an alternative for line segmentation. The rectangle (f x , f y ) is set to:
[0091] Then, based on the angle and orientation of the rectangle, the angle of the main rectangle is set to the angle of the eigenvector associated with the smallest eigenvalue of the matrix;
[0092]
[0093] where n xx , n yy , n xy The values are
[0094]
[0095]
[0096]
[0097] Among them, n xx 、n yy 、n xy 、n yx These are all ways to calculate the values of the eigenvector N matrix;
[0098] After determining the center and orientation of the rectangle, the smallest rectangle that contains all points in the area is the approximated rectangle.
[0099] Step 224, using the Sobel algorithm, detect the edge of the image in the straight rectangle and identify the tile edge straight line. The recognition result is as follows: Figure 4 As shown in FIG. 1 , the specific steps are as follows: first, the edge image is contour extracted to obtain the boundary information of the edge, then the edge image is contour drawn to display the position and shape of the edge on the original image, and finally the Sobel operator is used to extract the edge image with two horizontal gradients (G x ) and vertical gradient (Gy ) to process the image. When the pixel gray value of the image changes, the horizontal gradient and vertical gradient will change.
[0100] The horizontal gradient template and vertical gradient template are 3x3 convolution kernels, which use each pixel in the image as the center and convolve the image horizontally and vertically respectively. The horizontal and vertical gradient values at each pixel are combined and calculated.
[0101] The sobel operator contains two sets of 3x3 matrices, which are horizontal and vertical templates. By performing a planar convolution with the image, the horizontal and vertical brightness difference approximations can be obtained respectively:
[0102]
[0103]
[0104] In the above formula, the calculation result from white to black is a positive number, and the calculation result from black to white is a negative number, and negative numbers are represented by 0.
[0105] Edge detection helps determine the outer contour of the tile, providing critical information for subsequent processing.
[0106] Step 225: determine whether any two edge lines are similar. If they are similar, merge them and extend the merged lines. Specifically:
[0107] First, similar lines among the identified lines are merged, short lines are filtered, and the remaining lines are extended to both sides. Figure 5 As shown, the merged edges will be used to determine the position and angle of the tiles.
[0108] Step 226, extract the intersections formed by the extended straight lines, filter the extracted intersections, obtain the segmentation intersections, and construct an intersection list; specifically: these extended straight lines will form intersections with other extended straight lines, filter the intersections that exceed the screen, obtain the intersections used to segment the straight lines, and filter out the intersections outside the image to improve accuracy.
[0109] Step 227, using the segmentation intersection points to complete tile segmentation and line segmentation, wherein tile segmentation is: according to the coordinates of the segmentation intersection points, the main tiles in the image are segmented into separate tiles, and the specific steps are as follows:
[0110] Step 2271, create an empty image matrix, which has the same size as the original image, for storing the segmentation results;
[0111] Step 2272, traverse the intersection list, and for each intersection, find the four adjacent intersections, that is, the nearest intersections in the four directions of left, right, top, and bottom;
[0112] Step 2273, using the found adjacent intersection points, construct a quadrilateral, which is the area of a tile, and fill the area with a unique label value in the empty image matrix to indicate that the area belongs to a tile;
[0113] Step 2274, repeat steps 2271 to 2273 until all intersections are processed, and an image matrix containing multiple label values is obtained, each label value corresponds to the area of a tile, and the tile segmentation is completed.
[0114] Line segmentation is: use the intersection points to segment the lines in the image to obtain the line segments to be confirmed, such as Figure 6 As shown, each line segment has an attribute used to indicate the degree of overlap between this line segment and the line segment identified before processing; traverse the line segments identified before processing, and calculate the overlap between these line segments and the line segments to be confirmed, such as Figure 7 As shown, the green part is the overlapping part and the red part is the non-overlapping part.
[0115] Step 228, the segmented straight lines are screened according to the degree of overlap between the segmented straight lines and the tile edge straight lines, specifically: those unconfirmed line segments without green overlapping parts are removed, and the line segments with green overlapping parts and meeting a certain ratio requirement are the edge line segments of the tile, such as Fig. 9 shown.
[0116] In addition, the segmented tiles are filtered, specifically: tiles without edges are removed, or tiles whose edge ratio is less than a threshold are removed.
[0117] The specific steps for identifying tile data in step 3 are:
[0118] Step 31, grouping the detected straight lines according to horizontal lines and vertical lines, specifically: according to the direction of the camera screen, the detected straight lines are divided into two groups: horizontal lines and vertical lines, and a straight line list is constructed;
[0119] Step 32: traverse and intersect the grouped straight lines to obtain the intersection points of the straight lines; and determine the angle of the tile based on the intersection points of the straight lines, specifically:
[0120] Traverse and intersect the list of lines to find the intersection points of the tile edges. You can use some mathematical or algebraic methods, such as line equations, matrix operations, etc. to get a list containing the coordinates of the intersection points. Each intersection point is represented by a Cartesian coordinate, that is, (x, y).
[0121] According to the direction of the camera screen, the detected straight lines are divided into two groups: horizontal lines and vertical lines. The angle parameter θ of the straight line can be used to judge. If θ is close to 0° or 180°, it is a horizontal line. If θ is close to 90° or 270°, it is a vertical line. The tolerance range of ±5° can be set.
[0122] Select a group with more lines to traverse to find the closest line that can form the set tile angle, so as to form a tile angle. The intersection coordinates and angle parameters of the straight lines can be used to judge. If the intersection of two straight lines is within the valid range of the image and the angle difference between the two straight lines is close to the set tile angle, it is considered that the two straight lines can form a tile angle, such as Fig. 9 shown.
[0123] Step 33: Classify the tile angles and determine the current tile and the target tile. Specifically, at each judgment, the previous parameter needs to be considered to guide tile recognition. According to the expected number of tiles, classify the tile angles and find the current tile and the target tile. Specifically:
[0124] Each tile angle classification needs to be combined with the parameters of the previous judgment to determine how many tiles should be in the current situation.
[0125] Before identifying the tile corners, you need to set the horizontal and vertical directions of the camera image. The identified tile edge segments will be grouped according to the set horizontal and vertical directions to obtain vertical segments and horizontal segments, such as Figure 8 The resulting horizontal lines are segments 1 and 4, and the vertical lines are segments 2 and 3.
[0126] Traverse the line segment groups with fewer numbers (if they are the same, the vertical group takes priority). For example, when processing 2 line segments, the angles with horizontal line segments 1 and 4 are calculated in turn. At the same time, scores are given according to the distance between the starting positions of each line segment and the approximate position of the tile corner set in advance. The more qualified the horizontal and vertical line groups are, the higher the scores are, and they are set as pending tile corners. The line segments of the pending tile corners will not participate in the identification of the next tile corner.
[0127] After all the line segment groups are traversed, multiple pending tile corners will be obtained, such as Figure 8 The two tile corners obtained by the four straight lines in are composed of line segments 1, 2 and line segments 3, 4 respectively, thereby identifying the two tile corner positions in the picture, such as Fig.10 shown.
[0128] Step 34: According to the type of each tile corner, determine the type of tile currently being laid; and according to the target tile type, identify and locate the tile, specifically: according to the type of each tile corner, determine the type of tile currently being laid, and compare it with the target tile type to determine whether the tile is correctly identified and located, and after denoising and enhancing the image, test the size of the four sides of the tile, compare the tested length and width data with the target data respectively, and identify the located tile within a certain error. This information is used to guide the robot to perform accurate paving operations.
[0129] The specific steps of tile identification are:
[0130] Tile size detection: By analyzing the straight lines, the size of each tile, including width and length, is determined.
[0131] Tile type classification: Tiles are classified according to the detected tile sizes so that tiles of different sizes can be identified and laid.
[0132] Automatic identification of target tiles: Using known tile type information, the system can automatically identify the target tiles that should be used in the paving task.
[0133] In step 4, the paving task is performed according to the identified tile data and the target tile, that is, a reference tile, that is, a tile that has been correctly laid, is determined as a comparison basis. The position of the reference tile can be represented by the coordinates of its lower left corner, such as (x0, y0), and the angle of the reference tile can be represented by its angle with the horizontal direction, such as θ0.
[0134] Secondly, it is necessary to measure the position and angle of the currently laid tile. The same method can be used, using the coordinates of its lower left corner, such as (x1, y1), and the angle between it and the horizontal direction, such as θ1.
[0135] It is necessary to calculate the offset and rotation angle of the currently laid tile relative to the reference tile, which can be calculated using the following formula:
[0136] Offset:
[0137]
[0138] Offset direction:
[0139]
[0140] Rotation angle = θ1-θ0
[0141] Finally, the position and angle of the currently laid tile need to be adjusted according to the calculated offset and rotation angle to make it consistent or close to the reference tile:
[0142] If the offset is greater than half the side length of the tile, or the offset direction is not parallel to the edge of the reference tile, you need to re-lay the current tile to align it with the edge of the reference tile.
[0143] If the rotation angle is greater than 5°, the current tile needs to be rotated to make it consistent or close to the angle of the reference tile.
[0144] Keep track of the number of tiles remaining in the tile slots after each tile is laid to ensure no tiles are missed or overlaid.
[0145] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0146] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for automatic tile laying, characterized in that: The specific steps are: Get paving tasks; Collecting paving images, preprocessing the paving images, and performing straight line recognition based on the preprocessed paving images; Determine tile data based on the identified straight lines and the intersection points of the straight lines; Perform paving tasks according to tile data; The specific steps for obtaining tile data are: Step 31, grouping the detected straight lines according to horizontal lines and vertical lines; Step 32, traverse and intersect the grouped straight lines to obtain the intersection points of the straight lines; and determine the angle of the tile based on the intersection of the lines; Step 33, determining the type of the tile angle according to the angle of the tile, and judging the target tile and the current tile; Step 34, extracting the tile data of the current tile and comparing it with the tile data of the target tile, and determining the tile data of the current tile according to the comparison result; The specific steps to perform paving tasks according to tile data are: Step 41, obtaining the angle and position data between the current tile and the reference tile, where the reference tile is an adjacent tile that has been laid; Step 42, calculating the offset, offset direction and offset angle of the current tile according to the angle and position data between the current tile and the reference tile; Step 43: adjusting the angle and position data of the current tile according to the offset amount, offset direction and offset angle, and paving the current tile according to the adjusted angle and position data; Step 44: Use the current tile as a reference tile and repeat steps 41 to 43 until the paving task is completed.
2. The automatic tile laying method according to claim 1, characterized in that: The paving tasks include the number of paving task rows, the number of paving task columns, the number of tile slots, and the paving direction.
3. The automatic tile laying method according to claim 1, characterized in that: The specific steps of preprocessing are: Step 211, grayscale processing is performed on the paving image to obtain a grayscale image; Step 212: Apply blur processing to remove noise and interference from the grayscale image; Step 213: Perform histogram equalization processing on the grayscale image with noise and interference removed to perform edge enhancement.
4. The automatic tile laying method according to claim 1, characterized in that: The specific steps of straight line recognition are: Step 221, calculating the image gradient of each pixel point and the line segment direction angle of the area where it is located; Step 222: merging the regions where the multiple pixels are located according to the preset tolerance and the calculated line segment direction angle to form a line segment support region r; Step 223, determining a straight rectangle according to the line segment support area r; Step 224, using the Sobel algorithm, detecting the edge of the image in the straight rectangle and identifying the tile edge straight line; Step 225: determine whether any two edge lines are similar. If they are similar, merge them and extend the merged lines. Step 226: extract the intersection points formed by the extended straight lines, filter the extracted intersection points, obtain the segmentation intersection points, and construct an intersection point list; Step 227, using the segmentation intersection to complete tile segmentation and straight line segmentation; Step 228: Screen the segmented straight lines according to the degree of overlap between the segmented straight lines and the tile edge straight lines.
5. The automatic tile laying method according to claim 4 is characterized in that: The specific steps of tile segmentation are: Step 2271, create an empty image matrix of the same size as the tiled image; Step 2272, traverse the intersection list and extract four intersections adjacent to any intersection; Step 2273: construct a quadrilateral based on the four adjacent intersection points, and fill the area where the quadrilateral is located with a unique label value in the empty image matrix; Step 2274: Repeat steps 2271 to 2273 until all intersection points in the intersection point list are processed, and an image matrix containing multiple label values is obtained, where each label value corresponds to an area of a tile.
6. The automatic tile laying method according to claim 4, characterized in that: The calculation formula of the image gradient at any pixel is: In the formula, g x (x,y) is the image gradient on the x-axis; g y (x,y) is the image gradient on the y-axis.
7. The automatic tile laying method according to claim 4, characterized in that: The formula for calculating the horizontal angle is: In the formula, g x (x,y) is the image gradient on the x-axis; g y (x,y) is the image gradient on the y-axis.
8. An automatic tile laying system, characterized in that: include: Task generation module: used to obtain or generate paving tasks; A preprocessing module, used for collecting paving images and preprocessing the paving images; A straight line recognition module, used for performing straight line recognition based on the preprocessed paving image; A tile data recognition module, used to determine tile data according to the recognized straight lines and the intersections of the straight lines; A laying module is used to perform laying tasks according to tile data; The tile data recognition module specifically includes: Group the detected lines into horizontal and vertical lines; Traverse and intersect the grouped straight lines to obtain the intersection points of the straight lines; and determine the angle of the tile based on the intersection points of the straight lines; Determine the type of tile angle according to the angle of the tile, and judge the target tile and the current tile; Extracting tile data of the current tile and comparing it with tile data of the target tile, and determining the tile data of the current tile according to the comparison result; The laying module specifically includes: Get the angle and position data between the current tile and the reference tile, where the reference tile is the adjacent tile that has been laid; Calculate the offset, offset direction and offset angle of the current tile according to the angle and position data between the current tile and the reference tile; Adjust the angle and position data of the current tile according to the offset amount, offset direction and offset angle, and lay the current tile according to the adjusted angle and position data; Use the current tile as the reference tile and repeat the above steps until the paving task is completed.
