A ceramic tile shape and size integrated detection method, system and device

By using a synchronous acquisition module and sub-pixel-level edge extraction, the straightness and size of the tile edges are directly calculated, solving the problems of low efficiency and large errors in existing technologies. This achieves integrated detection of tile shape, position and size, meeting the continuous production needs of ceramic factories.

CN123175129APending Publication Date: 2026-11-27FOSHAN KASHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611426500.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for measuring tile dimensions are inefficient and inaccurate, making it difficult to meet the needs of modern ceramic factories for 24-hour continuous production. Furthermore, edge straightness measurement relies on image stitching, which introduces stitching errors and serial coupling issues.

Method used

By employing a synchronous acquisition module and setting up image acquisition devices in groups, local images of the tile edges are independently acquired. Through sub-pixel level edge extraction and fitting, edge straightness and size information are directly calculated, avoiding image stitching and serial measurement, thus achieving integrated detection.

Benefits of technology

It achieves integrated detection of tile shape, position and size, meets the requirements of 24-hour continuous production in ceramic factories, eliminates splicing errors, and improves system robustness and maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175129A_ABST
    Figure CN123175129A_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of machine vision online measurement, and provides a ceramic tile edge straightness and size integrated detection method, which comprises the following steps: based on a synchronous acquisition module, acquiring multiple ceramic tile edge local images of each ceramic tile edge in each ceramic tile; preprocessing each ceramic tile edge local image and performing edge extraction to obtain a plurality of pixel-level edge coordinates; for each ceramic tile edge, fitting and waveform analysis are performed based on the plurality of pixel-level edge coordinates to obtain edge straightness information and size information; based on the unit direction vectors of adjacent edges, obtaining right angle information; and comprehensively obtaining a comprehensive detection report based on the edge straightness information, the right angle information and the size information. In the application, the acquisition fields of the image acquisition devices are independent and do not overlap with each other, and there is no image splicing link in the whole process, so that the splicing error source is eliminated in principle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of machine vision online measurement technology, and in particular relates to a method, system and equipment for integrated detection of the shape, position and size of ceramic tiles. Background Technology

[0002] On tile production lines, dimensional accuracy (length, width) and geometrical accuracy (edge ​​straightness, right angle) are key indicators for measuring product quality. Traditional dimensional measurement often relies on manual caliper sampling, which is inefficient and inaccurate, making it difficult to meet the demands of modern ceramic factories' 24-hour continuous production. In recent years, machine vision technology has been widely applied to online tile dimensional inspection.

[0003] To calculate the size and edge straightness of tiles, existing technologies typically employ linear CCD cameras with linear light sources. Linear scanning imaging is triggered by encoder pulses, and images from multiple line scan cameras are stitched together to form a complete tile image. The edge straightness is then obtained by fitting vertex edge lines onto the stitched image and calculating the distance from the edge point to the vertex. However, these existing technologies, using linear scanning imaging, rely on the uniform movement of the conveyor belt and precise encoder triggering. Furthermore, multiple images must be stitched together, and stitching errors directly affect the accuracy of edge straightness measurement. Secondly, edge straightness measurement is based on pixel-level edge fitting in the stitched image, which is an indirect measurement. The cameras are concentrated on the machine's crossbeam, resulting in a complex hardware structure. Moreover, edge straightness calculation depends on the results of image stitching and vertex fitting, with each edge measurement being serially coupled and unable to be processed independently in parallel.

[0004] In summary, there is an urgent need for a method that can overcome the defects of splicing errors and serial coupling in the existing technologies, and integrate the detection of tile shape, position and size. Summary of the Invention

[0005] This application provides a method, system, and device for integrated detection of the shape, position, and size of ceramic tiles, which can solve one of the problems of the prior art mentioned above.

[0006] In a first aspect, embodiments of this application provide a method for integrated detection of the straightness and dimensions of a ceramic tile edge, including: Based on the synchronous acquisition module, multiple partial images of each tile edge are acquired for each tile edge; Each of the local images of the tile edge is preprocessed and edge extraction is performed to obtain several pixel-level edge coordinates; For each tile edge, fitting and waveform analysis are performed based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and dimension information; Based on the unit direction vectors of adjacent sides, obtain the right angle information; A comprehensive inspection report is obtained by combining the edge straightness information, the right angle information, and the size information.

[0007] Furthermore, the synchronous acquisition module includes an image acquisition device, a photoelectric sensor, a light source module, and a synchronous triggering circuit; The multiple image acquisition devices are divided into four groups, each group corresponding to a tile edge, to acquire partial images of the tile edge in the left section, middle section and right section, and the acquisition angles of each image acquisition device are independent of each other and do not overlap. The photoelectric sensor is installed at a predetermined position upstream of the detection station and is used to send a trigger signal to the synchronous trigger circuit when the leading edge of the tile reaches the predetermined position. The synchronous triggering circuit receives the trigger signal and drives the image acquisition device and the light source module to execute synchronously. The light source module includes at least four sets of light sources, each corresponding to one of the four tile edges; The four corners of the testing station are each equipped with an online self-calibration marker, and the truth value of each online self-calibration marker is recorded as a reference.

[0008] Furthermore, before acquiring multiple partial images of each tile edge in each tile, the process includes: Local images of the corresponding online self-calibration markers are acquired by each of the image acquisition devices, and the sub-pixel coordinates of the markers are extracted. Based on the specification parameter package of the tile to be detected, the sub-pixel coordinates of the marker points are converted into world marker point coordinates; The coordinates of the world landmarks are compared with the true benchmark, the deviation vector is calculated, and the image acquisition devices are calibrated based on the deviation vector results.

[0009] Furthermore, obtaining several pixel-level edge coordinates includes: The preprocessed local image of the tile edge is input into a pre-trained edge extraction model to obtain an edge probability map. The edge probability map is subjected to threshold segmentation and non-maximum suppression to obtain a set of candidate edge pixels; Based on the candidate edge pixel set, single-segment multi-sampling point extraction is performed to obtain several sub-pixel sampling points and their sub-pixel edge point coordinates; Based on the tile specification parameter package, the subpixel-level edge point coordinates are converted into pixel-level edge coordinates.

[0010] Furthermore, the step of extracting multiple sampling points in a single segment based on the candidate edge pixel set to obtain several sub-pixel sampling points and their sub-pixel edge point coordinates includes: Principal component analysis is performed on the candidate edge pixel set to obtain the image-level strip search region; Along the edge direction of the candidate edge pixel set, combined with the image-level strip search region, the sampling positions are divided equally to obtain multiple sampling positions and determine the initial pixel position of each sampling position; For each sampling location, a subpixel thinning algorithm is used to determine the subpixel sampling point and its subpixel-level edge point coordinates by combining its initial pixel position.

[0011] Furthermore, the sub-pixel thinning algorithm is a grayscale centroid method, wherein the determination of the sub-pixel level edge point coordinates includes: Using the initial pixel position as the origin, the preprocessed local image of the tile edge is rotated to obtain a rotated local image of the tile edge. Centered on the origin, extract the edge probability sub-image under the preset local window of the local image of the rotating tile edge; Based on the edge probability subgraph, the background intensity under the local window is calculated, and based on the background intensity, the background subtraction weight is calculated; Based on the local image of the rotated tile edge, combined with the background subtraction weight, the subpixel coordinates are calculated using the gray-scale centroid method; The subpixel coordinates are rotated inversely to calculate the coordinates under the local image of the tile edge, and the subpixel-level edge point coordinates are obtained by combining the initial pixel position.

[0012] Furthermore, the step of fitting and waveform analysis based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and size information includes: A baseline straight line is obtained by performing global straight line fitting based on the pixel-level edge coordinates of all tiles. Calculate the perpendicular distance between each pixel-level edge coordinate and the reference line, and calculate the overall edge straightness and the tile edge length; For each tile edge, a local coordinate system is established for curve fitting to obtain the fitted curve; Based on the fitted curve, the bow shape and fluctuation index are calculated, and the waveform of the tile edge is determined.

[0013] Furthermore, obtaining the right angle information based on the unit direction vectors of adjacent sides includes: Arrange the four tile edges in a counter-clockwise order to form four adjacent pairs, and each adjacent pair determines a corner point; For each tile edge, a preset number of sub-pixel sampling points are taken to form a corner point set; For each tile edge, perform least-squares line fitting on the set of corner points to obtain the local edge equation of the tile edge at the corner point; Based on the equations of two adjacent local edges, the corner point is obtained by solving the equations and the unit direction vectors of its two adjacent sides are determined. The corner angle and the right angle deviation are calculated. The right angle of the tile is determined based on the aforementioned right angle deviation.

[0014] Secondly, embodiments of this application provide an integrated detection system for the straightness and dimensions of ceramic tile edges, including: First processing module: used to acquire multiple local images of each tile edge in each tile based on the synchronous acquisition module; The second processing module is used to preprocess each local image of the tile edge and extract the edge to obtain several pixel-level edge coordinates. The third processing module is used to perform fitting and waveform analysis on each tile edge based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and size information. The fourth processing module is used to obtain the right angle information based on the unit direction vectors of adjacent sides. The fifth processing module is used to integrate the edge straightness information, the right angle information, and the size information to obtain a comprehensive inspection report.

[0015] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-described method for integrated detection of the straightness and size of the tile edge.

[0016] The beneficial effects of the embodiments in this application compared with the prior art are: This application discloses an integrated detection method for the straightness and dimensions of ceramic tile edges. By setting up image acquisition devices covering the left, middle, and right sections of each tile edge, and extracting N×3 sub-pixel sampling points on each edge, the actual shape of the middle area of ​​each tile edge can be directly observed. Its dimensions, straightness, curvature, and waveform index can all be calculated online, achieving integrated detection of tile shape and dimensions, meeting the requirements of 24-hour continuous production in ceramic factories for full inspection cycle time. Furthermore, in this application, the acquisition fields of each image acquisition device are independent and do not overlap. Edge points are independently extracted from the local images of each tile edge and directly converted to a unified world coordinate system using pre-calibrated specification parameter packages. There is no image stitching step throughout the process, eliminating the source of stitching error in principle. The world coordinates of each sub-pixel sampling point are obtained by mapping the intrinsic and global extrinsic coefficients of the image acquisition device itself in one step, representing a direct "point-to-point" measurement, rather than an indirect measurement at the pixel level of stitched images. This results in a short measurement link and fewer error propagation stages. Furthermore, in this application, the straightness information and right angle information of the four tile edges are collected, extracted, and calculated separately by four sets of image acquisition devices. The detection and calculation of the four tile edges are completely decoupled and can be executed in parallel. Moreover, any data abnormality on any side only affects the determination of that side and does not propagate to other sides. The system's robustness and maintainability are significantly better than the serial splicing scheme. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating an integrated detection method for the straightness and dimensions of a ceramic tile edge according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of an integrated detection system for the straightness and dimensions of a ceramic tile edge provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0019] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0020] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0021] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0022] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0023] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0024] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0025] Please see Figure 1 As shown, this invention provides an integrated method for detecting the straightness and dimensions of ceramic tile edges, comprising the following steps: S100: Based on the synchronous acquisition module, acquire multiple partial images of each tile edge in each tile; This application utilizes image acquisition devices covering the left, middle, and right sections of each tile edge, extracting N×3 sub-pixel sampling points on each side. This allows direct observation of the actual shape of the middle area of ​​each tile edge, with its dimensions, straightness, curvature, and waveform index all calculated online. This achieves integrated detection of tile shape and size, meeting the 24-hour continuous production requirements of ceramic factories for full inspection. Furthermore, the acquisition fields of each image acquisition device are independent and non-overlapping. Edge points are extracted independently from the local images of each tile edge, and each is directly converted to a unified world coordinate system using pre-calibrated parameter packages. There is no image stitching involved, fundamentally eliminating the source of stitching errors.

[0026] In some embodiments, the synchronous acquisition module includes an image acquisition device, a photoelectric sensor, a light source module, and a synchronous triggering circuit; The multiple image acquisition devices are divided into four groups, each group corresponding to a tile edge, to acquire partial images of the tile edge in the left section, middle section and right section, and the acquisition angles of each image acquisition device are independent of each other and do not overlap. The photoelectric sensor is installed at a predetermined position upstream of the detection station and is used to send a trigger signal to the synchronous trigger circuit when the leading edge of the tile reaches the predetermined position. The synchronous triggering circuit receives the trigger signal and drives the image acquisition device and the light source module to execute synchronously. The light source module includes at least four sets of light sources, each corresponding to one of the four tile edges.

[0027] In this embodiment, a synchronous acquisition module is constructed, which is equipped with at least 12 image acquisition devices. The three image acquisition devices are divided into four groups, corresponding to the four edges of the tile. The three image acquisition devices in each group are installed directly above the left, middle and right sections of the corresponding tile edge, respectively, to acquire partial images of the left, middle and right edges of the tile edge. Through the acquisition by the four groups of image acquisition devices, at least 12 partial images of the tile edge are obtained.

[0028] In one optional embodiment, the image acquisition device is specifically an area array industrial camera, which uses area scanning to capture and output a complete two-dimensional image of the entire field of view at once through global exposure or rolling shutter exposure, preferably a global shutter CMOS camera.

[0029] In a preferred embodiment, the optical axis of each area array industrial camera is perpendicular to the tile, i.e. parallel to the Z-axis and pointing in the -Z direction. The field of view of a single camera only covers the corresponding local segment, and its field of view width is 1 / 3 + 10 mm of the length of the corresponding tile edge. The length direction of the field of view covers an area of ​​about 80 mm from the edge of the tile to the inside. The fields of view of each camera are independent of each other and do not overlap. The obtained local images of the tile edge are not stitched together.

[0030] In the actual production line, an installation frame is set above the inspection station. The installation frame spans above the conveying mechanism, and the above-mentioned 12 image acquisition devices, namely 12 area array industrial cameras, are grouped and correspondingly installed on the installation frame. The optical axis of each area array industrial camera is perpendicular to the bearing plane of the conveying mechanism. During the conveying process, each tile is placed flat on the bearing plane of the conveying mechanism in sequence and moves at a uniform speed with the conveying direction of the conveying mechanism. The conveying mechanism is a belt conveyor or a roller conveyor. At the same time, the bearing plane of the conveying mechanism serves as the reference plane of the world coordinate system of this application.

[0031] Furthermore, online self-calibration markers are set at the four corners of the bearing plane of the conveying mechanism. These four online self-calibration markers are located within the combined coverage area of ​​several image acquisition devices at the inspection station. Specifically, each corner marker must be located near the field of view boundary of the adjacent two end image acquisition devices, ensuring that each end image acquisition device observes at least one online self-calibration marker. Thus, the four markers provide eight sets of "camera-marker" observation pairs. Each marker is verified by two adjacent cameras; cameras in the middle section do not participate in the verification of the online self-calibration markers. It is worth noting that these four online self-calibration markers serve as the truth benchmark for subsequent online calibration verification.

[0032] In some embodiments, online self-calibration markers are installed on the frame of the conveyor mechanism and must remain stationary with respect to each image acquisition device to reflect extrinsic drift. Specifically, for belt conveyors, online self-calibration markers are mounted on a frame platform outside the belt sides, with the top surface of the markers being at the same height as the belt bearing surface and adjusted by shims. For roller conveyors, markers are mounted on crossbeams in the gap between adjacent rollers, with the top surface of the markers being at the same height as the roller bearing surface.

[0033] More specifically, the synchronous acquisition module also includes a photoelectric sensor, a light source module, and a synchronous triggering circuit. The photoelectric sensor is installed at a predetermined position upstream of the detection station, preferably 200-400mm away from the detection station, specifically above the side of the conveying plane, so that the beam of the photoelectric sensor obliquely covers the path of the tile. When the leading edge of the tile reaches the predetermined position, the photoelectric sensor outputs a trigger signal, which is processed by the synchronous triggering circuit to generate a trigger pulse signal, which simultaneously drives the 12 image acquisition devices to expose synchronously and the light source module to light up synchronously, ensuring that the local image of each tile edge corresponds to the tile posture at the same moment.

[0034] More specifically, the light source module includes four sets of strip LED light sources, which are installed at corresponding positions on the four edges of the tile to highlight the edge contour of the tile and reduce surface texture interference. Each set of light sources is linked and controlled with three image acquisition devices corresponding to that tile edge, and pulse lighting is achieved through linkage between the light source controller and the synchronous trigger circuit, that is, the pulse width is synchronized with the camera exposure time.

[0035] In some embodiments, prior to acquiring multiple partial images of each tile edge in each tile, the process includes: Local images of the corresponding online self-calibration markers are acquired by each of the image acquisition devices, and the sub-pixel coordinates of the markers are extracted. Based on the specification parameter package of the tile to be detected, the sub-pixel coordinates of the marker points are converted into world marker point coordinates; The coordinates of the world landmarks are compared with the true benchmark, the deviation vector is calculated, and the image acquisition devices are calibrated based on the deviation vector results.

[0036] In this embodiment, before acquiring images of the tiles, calibrating the 12 image acquisition devices is required to ensure the accuracy of image acquisition. This process includes two stages: offline pre-calibration of multi-specification parameter packages and online self-calibration verification.

[0037] Specifically, offline multi-specification parameter package pre-calibration includes offline single-camera intrinsic parameter calibration, offline global extrinsic parameter calibration, and multi-specification parameter package pre-calibration.

[0038] In one embodiment, offline single-camera intrinsic parameter calibration employs the Zhang Zhengyou calibration method for each image acquisition device. This involves placing a checkerboard calibration plate within the field of view of the image acquisition device and acquiring images at different poses. Preferably, 15-20 images with different pitch, roll, and position settings are acquired. The Zhang Zhengyou calibration method is then used to solve for the intrinsic parameter coefficients of each image acquisition device, specifically the intrinsic parameter matrix K and distortion coefficients. K is a 3×3 matrix, and the distortion coefficients include radial distortion coefficients (k1, k2) and tangential distortion coefficients (p1, p2). If the reprojection error of multiple images is <0.1 pixels, the intrinsic parameter calibration is considered successful, and the intrinsic parameter coefficients, calibration time, calibration plate serial number, and reprojection error are written into the parameter record of the image acquisition device. Otherwise, the images are re-acquired or the calibration plate is replaced. Furthermore, the preferred specifications for the checkerboard calibration plate are a 9×6 checkerboard with a square side length of 10 mm and a flatness of <0.02.

[0039] Furthermore, offline global extrinsic calibration is used to solve the global extrinsic coefficients [R | t] of each image acquisition device relative to a unified world coordinate system. In this application, the world coordinate system is based on the bearing plane as the Z = 0 plane; the X-axis is along the conveying direction, the Y-axis is along the horizontal direction perpendicular to the conveying direction, and the origin O is the intersection of the upstream boundary of the detection station and the center line of the bearing plane.

[0040] During offline global extrinsic parameter calibration, the checkerboard calibration board is placed flat on the support plane, ensuring that the world coordinates Z = 0 for all corner points of the checkerboard calibration board. It is worth noting that the size of the checkerboard calibration board should cover the field of view of a single image acquisition device. Then, images of the calibration board are captured, and pixel coordinates are extracted. Based on the correspondence between world coordinates and pixel coordinates, the extrinsic parameter coefficients of each image acquisition device are obtained by solving the PnP problem or minimizing the reprojection error. Specifically, these are a 3×3 rotation matrix R and a 3×1 translation vector t. This establishes a mapping relationship from pixel coordinates in each image acquisition device to a unified world coordinate system.

[0041] Understandably, in this application, the global extrinsic parameter coefficients can be obtained by independently solving for each of the 12 area array industrial cameras. If the deviation between the feature point position after reprojection to world coordinates and the known world coordinates is less than 0.05 mm, the global extrinsic parameter calibration is considered qualified.

[0042] Furthermore, for each type of tile to be inspected, such as 600 mm × 600 mm, 800 mm × 800 mm, 900 mm × 1800 mm, 1200 mm × 2400 mm, etc., a multi-specification parameter package pre-calibration is performed. That is, each tile specification is subjected to the above-mentioned offline single-camera intrinsic parameter calibration and offline global extrinsic parameter calibration to obtain the corresponding intrinsic parameter coefficients and global extrinsic parameter coefficients, forming a specification parameter package. A specification identifier is generated with "camera identifier + specification parameter identifier" to mark the specification parameter package for naming, registration and storage.

[0043] For online self-calibration verification, during the idle period of the production line, the synchronous trigger module sends out a "calibration verification pulse" to drive the end image acquisition device of the 12 image acquisition devices, which can acquire 4 online self-calibration markers, to acquire local images of the 4 online self-calibration markers. That is, each online self-calibration marker falls into the field of view of the corresponding end image acquisition device at the same time.

[0044] Specifically, during the online self-calibration verification stage, the sub-pixel coordinates of marker points are independently extracted from the local images extracted by each image acquisition device. Then, based on the intrinsic and extrinsic coefficients of the corresponding image acquisition device's specification parameter package, these coordinates are converted to the world coordinate system and denoted as r̂_i, where i = 1, 2, 3, 4, corresponding to four marker points. The obtained world marker point coordinates r̂_i are compared with the factory true reference r_i, and the deviation vector Δr_i = r̂_i - r_i is calculated. It is worth noting that this factory true reference is the world coordinates r_i of the center of each marker point, measured by a coordinate measuring machine or laser tracker when the four online self-calibration marker points are installed on the conveyor mechanism. If all max(|Δr_i, x|, |Δr_i, y|, |Δr_i,z|) ≤ 0.1 mm, the deviation will be recorded in the system error compensation item and added to all subsequent measurement results; if any deviation exceeds the limit, the corresponding image acquisition device will be marked, the backup parameter package of the same model camera will be automatically loaded to continue operation, and a "suggested shutdown for re-inspection" signal will be sent to the production line PLC; if the limit is exceeded in 3 consecutive verifications, an emergency shutdown signal will be triggered.

[0045] S200. Preprocess each of the local images of the tile edge and perform edge extraction to obtain several pixel-level edge coordinates; In this embodiment, when the tile moves to the detection station with the conveying mechanism, the photoelectric sensor detects the leading edge of the tile. After the trigger signal is processed by the synchronous trigger circuit, the synchronous trigger module sends a trigger pulse when the tile is fully in the detection station. At this time, 12 image acquisition devices are exposed simultaneously, and respectively acquire local images of the corresponding areas of the four edges of the tile. Specifically, the three image acquisition devices of each tile edge acquire the left-end local image, the middle local image, and the right-end local image, and the local images do not overlap or are stitched together.

[0046] It is worth noting that each image acquisition device obtains the corresponding specification parameter package based on the specification parameter identifier of the tile to be detected and its camera identifier, which is used for subsequent coordinate conversion. Furthermore, local images of each tile edge are acquired at the same time, avoiding image blurring and spatial position deviation caused by tile movement. In addition, each camera has an independent field of view, avoiding field of view overlap and stitching errors.

[0047] Furthermore, each captured local image of the tile edge needs to be preprocessed, including denoising using Gaussian filtering and adaptive contrast enhancement to reduce image noise and highlight edge features.

[0048] In some embodiments, obtaining several pixel-level edge coordinates includes: The preprocessed local image of the tile edge is input into a pre-trained edge extraction model to obtain an edge probability map. The edge probability map is subjected to threshold segmentation and non-maximum suppression to obtain a set of candidate edge pixels; Based on the candidate edge pixel set, single-segment multi-sampling point extraction is performed to obtain several sub-pixel sampling points and their sub-pixel edge point coordinates; Based on the tile specification parameter package, the subpixel-level edge point coordinates are converted into pixel-level edge coordinates.

[0049] In this embodiment, the edge extraction model preferably adopts a convolutional neural network with an encoder-decoder structure, such as U-Net, HED, or DeepLab. In a preferred embodiment, U-Net is used for training, which includes an encoder and a decoder. The encoder downsamples the input image through four sampling layers, each containing two 3×3 convolutions (ReLU activation) and a 2×2 max pooling. The decoder upsamples the input image through four layers, each containing two 3×3 convolutions and a 2×2 transposed convolution. The corresponding features of the encoder and decoder layers are concatenated through skip connections to obtain a single-channel edge probability map with the same resolution as the input image. The value range is 0~1. Then, threshold segmentation and non-maximum suppression are performed on the edge probability map to extract candidate edge pixel regions.

[0050] During the training phase of the edge extraction model, tile edge image samples with different patterns, colors, and lighting conditions are collected in batches and divided into training set, validation set, and test set in an 8:1:1 ratio. Then, technicians manually classify and label the edge positions and directions in the samples to construct a labeled training dataset. During training, a combination of weighted cross-entropy loss function and Dice coefficient loss function is used for optimization to handle the class imbalance problem between edge pixels and non-edge pixels.

[0051] In some embodiments, the step of extracting multiple sampling points in a single segment based on the candidate edge pixel set to obtain several sub-pixel sampling points and their sub-pixel edge point coordinates includes: Principal component analysis is performed on the candidate edge pixel set to obtain the image-level strip search region; Along the edge direction of the candidate edge pixel set, combined with the image-level strip search region, the sampling positions are divided equally to obtain multiple sampling positions and determine the initial pixel position of each sampling position; For each sampling location, a subpixel thinning algorithm is used to determine the subpixel sampling point and its subpixel-level edge point coordinates by combining its initial pixel position.

[0052] To further improve positioning accuracy, it is also necessary to extract multiple sampling points in a single segment for the candidate edge pixel region of each tile edge. That is, N equally distributed sub-pixel sampling points are collected sequentially along the edge contour direction of the tile edge. Among them, sub-pixel thinning algorithms such as gray-scale centroid method, quadratic curve fitting or Gaussian fitting are used to obtain the sub-pixel level edge point coordinates of each sub-pixel sampling point.

[0053] In a preferred embodiment, the number of subpixel sampling points N is 7. For each local image acquired by the image acquisition device, principal component analysis is performed based on its corresponding edge probability map. The image is then divided into 7 equal parts along the tile edge direction to obtain 7 sampling positions. A subpixel thinning algorithm is executed at each of the 7 sampling positions to obtain the subpixel-level edge point coordinates of the 7 subpixel sampling points. The intrinsic parameter matrix and global extrinsic parameters are obtained using the specification parameter package adopted by the image acquisition device during image acquisition. The subpixel-level edge point coordinates are then converted to world coordinates, and these world coordinates are used as the pixel-level edge coordinates of the corresponding sampling points on the tile edge. Specifically… ,in, Here, s represents the pixel-level edge coordinates, and s is the depth factor. Specifically, for the tile edge points on the bearing plane Z=0, s can be directly solved from the extrinsic parameters. R and t are the camera extrinsic parameter matrices, where R is a 3×3 rotation matrix and t is a 3×1 translation vector.

[0054] Therefore, the world coordinates of each sub-pixel sampling point are obtained by mapping the intrinsic coefficients and global extrinsic coefficients of the image acquisition device at one time. This is a direct "point-to-point" measurement, rather than an indirect measurement at the pixel level of the stitched image. The measurement link is short and there are fewer error transmission links.

[0055] Specifically, the preprocessed local image of the tile edge is input into the edge extraction model, which outputs a single-channel edge probability map P_s(u,v). This edge probability map P_s(u,v) is binarized with a threshold of 0.5, and then non-maximum suppression is performed along the image edge direction to retain the maximum response along the edge normal direction, thus obtaining the candidate edge pixel set. Furthermore, each pixel in the candidate edge set pixel set passes NMS.

[0056] Furthermore, in the aforementioned set of candidate edge pixels Perform principal component analysis, specifically, take a 2×2 covariance matrix. , where μ is The mean pixel coordinates of each pixel are calculated; then, the covariance matrix M is decomposed into eigenvalues ​​to solve the characteristic equation Me = λe. During the solution process, since M is a 2×2 real symmetric matrix, there exist two real eigenvalues ​​λ1 and λ2 and corresponding orthogonal unit eigenvectors. λ1 and λ2 are arranged in descending order of eigenvalue size: λ1 ≥ λ2 ≥ 0. The corresponding unit eigenvectors are denoted as ê_ξ and ê_η, satisfying: Mê_ξ = λ1ê_ξ; Mê_η = λ2ê_η, and also satisfying the orthogonal normalization condition. In the solved unit eigenvectors ê_ξ and ê_η, ê_ξ represents the edge direction, while ê_η represents the normal direction. Therefore, the image-level strip search region is: Where u0 is The projection of the average pixel coordinates onto the u-axis is the final output (ê_ξ, ê_η, R_band), which serves as the geometric anchor point for subsequent equal-division localization and point-by-point search.

[0057] Furthermore, let's assume Given the starting and ending coordinates of ξ_min and ξ_max in the edge direction (i.e., the ê_ξ direction), the coordinates of ξ for the N equally divided sampling positions are: ξ_k = ξ_min + (2k−1)·(ξ_max−ξ_min) / (2N), k = 1, 2, ..., N. For each ξ_k, search along the normal direction (i.e., the ê_η direction) for whether there exists a candidate pixel with P_s(u, v) ≥ 0.5 within R_band, and obtain the initial pixel position. If there are no candidate pixels satisfying P_s≥0.5 along the ê_η direction within R_band, then the k-sampling position is marked as "sampling failed" and no further sub-pixel thinning is performed; otherwise, the initial pixel position is retained. Perform sub-pixel refinement at each acquisition location.

[0058] In some embodiments, the sub-pixel thinning algorithm is a grayscale centroid method, wherein determining the coordinates of the sub-pixel level edge points includes: Using the initial pixel position as the origin, the preprocessed local image of the tile edge is rotated to obtain a rotated local image of the tile edge. Centered on the origin, extract the edge probability sub-image under the preset local window of the local image of the rotating tile edge; Based on the edge probability subgraph, the background intensity under the local window is calculated, and based on the background intensity, the background subtraction weight is calculated; Based on the local image of the rotated tile edge, combined with the background subtraction weight, the subpixel coordinates are calculated using the gray-scale centroid method; The subpixel coordinates are rotated inversely to calculate the coordinates under the local image of the tile edge, and the subpixel-level edge point coordinates are obtained by combining the initial pixel position.

[0059] In a preferred embodiment, the sub-pixel level edge point coordinates of each sub-pixel sampling point are calculated using the gray-scale centroid method. Then, for each sampling position that satisfies the requirement of retaining the initial pixel position, the initial pixel position is used as the reference. Using the origin as the starting point, the preprocessed local image of the tile edge is used. Rotate the tile so that ê_ξ is aligned with the new coordinate axis u′, and obtain the rotated local image of the tile edge. Centered on the origin Extract the corresponding edge probability submap from a local window of 11×7 pixels. With image subgraph The outermost two rows along the v′ direction within the local window are used for background intensity estimation. The specific calculation formula is p_bg=(P_top+P_bottom) / 2. This yields the weights used for grayscale centroid calculation. These weights are the background subtraction weights obtained after removing the background bias. Specifically, the background subtraction weights... The grayscale centroid method calculates the sub-pixel v′ coordinates on the weighted probability map: Similarly, the sub-pixel u′ coordinates are as follows: The obtained sub-pixel coordinates (u_sub′, v_sub′) in (u′, v′) are rotated back to the local image of the tile edge. The image coordinate system is then used to obtain the final sub-pixel level edge point coordinates (u_sub, v_sub) by adding the initial pixel position to the coordinate system.

[0060] In some embodiments, the obtained subpixel-level edge point coordinates (u_sub, v_sub) need to be subjected to at least three quality checks. If any one of them fails, the subpixel sampling point at that acquisition location is marked as "extraction failed", and the subpixel sampling point is resampled. In addition, the N subpixel sampling points of each candidate edge pixel region in a tile edge are allowed to have a maximum of 1 acquisition location "acquisition failed" or "extraction failed". If the cumulative number of "acquisition failed" or "extraction failed" in the N×3 subpixel sampling points on a single tile edge is ≤2, then it can proceed to subsequent fitting, bow shape and other judgments. If there are >2 missing sampling locations, the entire tile edge is marked as "edge extraction failed", and the corresponding tile enters the "awaiting manual re-inspection" queue, and subsequent edge straightness and other detections are not performed.

[0061] Specifically, quality verification includes weighted sum verification, single-peak verification, and deviation limit verification. Among them, weighted sum verification represents the sum of background subtraction weights for each sub-pixel sampling point in the gray-level centroid method. The threshold must be greater than a preset threshold to ensure that the local window is sufficiently effective. This preset threshold is obtained by multiplying the local window length by the minimum number of resolvable rows in the edge band by the minimum average effective weight within the band. In the aforementioned 11×7 pixel local window, this preset threshold is 25. The unimodality check indicates that the probability distribution after rotation has only one maximum value in the v′ direction, avoiding the centroid shift caused by double peaks. The offset limit check indicates that in the final subpixel-level edge point coordinates, |v_sub−v_k^init|≤2 pixels, ensuring that the centroid result does not significantly deviate from the NMS candidate.

[0062] Furthermore, the supplementary sampling includes at least three methods: downgraded algorithm sampling, neighborhood resampling, and cross-segment point borrowing. These three methods are executed sequentially according to priority until a usable point is obtained or failure is confirmed. Specifically, downgraded algorithm sampling involves replacing the grayscale centroid method with other sub-pixel thinning algorithms, such as quadratic curve fitting algorithms, and re-locating sub-pixels within the same 11×7 local window. If the downgraded algorithm sampling still fails, the sampling position is re-determined within the range of ξ_k±5mm. After relaxing the equal division step size in an image acquisition device, the sub-pixel sampling point is re-determined. If the neighborhood resampling still fails, cross-segment point borrowing is performed. This supplementary sampling method requires the sampling point to be supplemented to be located at the beginning or end of a segment, i.e., k=1 or k=N. Then, the sampling point of the corresponding position in the adjacent segment is used as a substitute after the consistency of the specification parameter package of its image acquisition device is checked. If the cross-segment point borrowing still fails, the sampling point to be supplemented is marked as "extraction failed".

[0063] In practical applications, within the candidate edge pixel region obtained by each image acquisition device, multiple sub-pixel sampling points can be sampled. The sampling points of the candidate edge pixel region of the left local image are labeled as: {L_i^(L) |i = 1, 2, ..., N_L}, the sampling points of the candidate edge pixel region of the middle local image are labeled as: {L_i^(M) | i= 1, 2, ..., N_M}, and the sampling points of the candidate edge pixel region of the right local image are labeled as: {L_i^(R) | i =1, 2, ..., N_R}. Thus, the total number of sampling points for each tile edge is K = N_L + N_M + N_R. Each sampling point comes from an independent image acquisition device and an independent calibration conversion to maintain no coupling relationship between the points.

[0064] Furthermore, since each sub-pixel sampling point is acquired independently, inter-segment continuity verification is also required. Specifically, let the last point of the left-end local image of a tile edge be L_{N_L}^(L), and the first point of the middle local image be L_1^(M). Calculate d_con =||L_{N_L}^(L)−L_1^(M)||_2. If d_con> 0.3mm, it indicates that the calibration or working status of the corresponding image acquisition device is abnormal, thus triggering the online self-calibration verification process of the image acquisition device.

[0065] S300. For each tile edge, perform fitting and waveform analysis based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and size information; In some embodiments, the step of fitting and waveform analysis based on the plurality of pixel-level edge coordinates to obtain edge straightness information and size information includes: A baseline straight line is obtained by performing global straight line fitting based on the pixel-level edge coordinates of all tiles. Calculate the perpendicular distance between each pixel-level edge coordinate and the reference line, and calculate the overall edge straightness and the tile edge length; For each tile edge, a local coordinate system is established for curve fitting to obtain the fitted curve; Based on the fitted curve, the bow shape and fluctuation index are calculated, and the waveform of the tile edge is determined.

[0066] In this embodiment, for each tile edge, the sub-pixel sampling points obtained after the above step S200 are fitted to calculate its edge straightness information, specifically including overall edge straightness, bow shape and waveform index.

[0067] For the overall edge straightness, based on the pixel-level edge coordinates obtained by the three image acquisition devices for each tile edge in step S200, a global straight line fitting is performed, and the overall edge straightness is calculated accordingly. Specifically, for a tile edge, the first point L_1^(L) at the left end is taken as P1(x1,y1), and the last point L_{N_R}^(R) at the right end is taken as P3(x3,y3). Then the equation of the reference straight line L13 of the tile edge is: (y3 − y1) · x − (x3 − x1) · y + (x3 · y1 − x1 · y3)= 0; then the vertical distance d_i from each sub-pixel sampling point of the tile edge to the reference straight line L13 is calculated by the following formula: Furthermore, the formula for calculating the overall edge straightness is as follows: S_global = D_max / L_edge × 100%, where D_max = max(|d_i|) is the maximum deviation, and L_edge = √[(x3 − x1)² + (y3 − y1)²] is the edge length, which is the length of the tile edge.

[0068] In this embodiment, by performing global straight line fitting on the four edges of the tile, the overall straightness and length of the four edges can be obtained. Based on the length of each edge, the size information of the tile can be further determined.

[0069] For the bow shape, a local coordinate system is established for each tile edge. The least-squares straight line direction of the N×3 sub-pixel sampling points of that tile edge is taken as the ξ axis, and the η axis is perpendicular to the ξ axis. Then, the world coordinate sampling points (x_i, y_i) are transformed into local coordinates (ξ_i, η_i), where i = N×3 and ξ is monotonically increasing. Then, the bow shape and fluctuation index are calculated in this local coordinate system (ξ, η) to avoid the ill-conditioned polynomial fitting when the edge direction is close to vertical in the world coordinate system, that is, the y-x polynomial fails at the vertical edge.

[0070] Furthermore, the N×3 sub-pixel sampling points of each tile edge are fitted to a 2nd to 3rd degree polynomial using the least squares method, where the quadratic model is: Cubic model: During curve fitting, a cubic model is fitted first. A t-significance test is performed on the cubic term coefficient a_3. If a_3 is significant, the cubic model is used; otherwise, the model is reverted to a quadratic model. The goodness of fit R² is recorded during this process. If R² ≥ 0.998, it indicates that the edge morphology can be well described by a low-order curve and is considered to be basically straight. At this time, the bow shape is calculated. If R² is significantly lower than 1.0 or a significant quadratic / cubic curvature is fitted, it indicates that the edge is arc-shaped rather than straight and is recorded as a bow-shaped defect.

[0071] Specifically, the bow degree is measured by the curvature index of the fitted curve. If the fitted curve is set as η=f(ξ), then the bow degree represents the maximum bending degree of the tile edge within the sampling range. If κ_max>0.05 / m, it indicates that the curvature exceeds the limit.

[0072] Furthermore, the residual sequence from each sub-pixel sampling point to the fitted curve is calculated: r_i=η_i−f(ξ). Then, FFT analysis is performed on the residual sequence r_i (i = 1, 2, ..., N×3) to obtain a spectrogram, and the frequency band energy and fluctuation index are calculated, where the waveform index , where, is the total spectrum energy, K is the number of sub-pixel sampling points of the tile edge, and d_i is the vertical distance from each sub-pixel sampling point to the reference straight line L13. W→0 indicates that all deviations are smooth bow shapes; W→1 indicates that the deviations are dominated by short-wave residuals.

[0073] Furthermore, in the spectrogram, the low-frequency band energy and high-frequency band energy are divided, where the low-frequency band energy E_LF represents the macroscopic bulge / warpage component with a wavelength ≥ L / 2, and the high-frequency band energy E_HF represents the medium and short wave component with a wavelength < L / 2, where L is the edge direction distance from the 1st point to the Kth point. When performing periodic defect identification, if E_LF > 0.6×E_total, it indicates that the deviation energy is concentrated in 1~2 long waves, and it is determined to be a macroscopic bending defect, such as bulge / warpage; if one or more frequency points in k∈{3,…,10} satisfy E(k)>0.09×E_total, the one with the largest E(k) is taken as k*, and it is determined that there is a periodic wave defect on the tile edge, with a periodic wavelength λ*=L / k*; if W>0.15, it indicates that the overall waveform of the tile edge is unqualified.

[0074] S400: Obtain the squareness information based on the unit direction vector of adjacent edges; In some of these embodiments, the above step S400 includes: Pair the four tile edges into four adjacent pairs in counterclockwise order, and each adjacent pair determines a corner point; For each tile edge, take a preset number of sub-pixel sampling points to form an angular domain point set; Perform least-squares straight line fitting on the angular domain point set of each tile edge to obtain the local edge line equation of the tile edge at the corner point; Based on the two local edge line equations of the adjacent pair, solve to obtain the corner point and determine the unit direction vectors of its two adjacent edges, calculate the corner point angle and the squareness deviation; Perform squareness judgment on the tile based on the squareness deviation.

[0075] Since the four edges of the tile are independently imaged by 12 image acquisition devices in 4 groups, the fields of view of adjacent edge image acquisition devices do not overlap or stitch together near the corner point. Therefore, no single image acquisition device can simultaneously see both edges of the complete corner area in its local image of the tile edge. Consequently, in this embodiment, when calculating right angle information, the corner point cannot be directly extracted from the local image of the tile edge. Instead, it is obtained by finding the intersection of the mathematical representations of two adjacent edges. In this case, the corner point is a computational quantity, not an observation quantity.

[0076] Specifically, the edges of the four tiles are represented by two levels after global straight line fitting and polynomial fitting in step S300: the baseline straight line L13 for global straight line representation and the fitted curve η for local curve representation. The fitted curve η retains the bending shape information. Since the corner point is essentially the intersection of the extension of two edges in the corner domain, the far end shape of the arc-shaped edge does not affect the tangent direction at the corner point. Therefore, this application calculates the corner point in the corner domain.

[0077] Specifically, the four edges are paired into four adjacent pairs in a counter-clockwise order: (e1, e2), (e2, e3), (e3, e4), and (e4, e1). Each pair of adjacent edges determines a corner point. For each tile edge e, N×3 sub-pixel sampling points are used, and n_c points are taken from the end closest to the corner point. These points are usually sampling points from the left or right local image of the tile edge, preferably n_c=4, forming a corner point set.

[0078] Furthermore, by performing a least-squares line fit on the set of corner points for each tile edge, the local edge equation of that tile edge at that corner point is obtained: Then, by solving the equations of the local edges of the two adjacent sides e and e′ simultaneously, the intersection point is obtained. ,Right now , Thus, the four corner points C_i of the tile are obtained, namely C1 (bottom left corner), C2 (bottom right corner), C3 (top right corner), and C4 (top left corner).

[0079] Furthermore, for each corner point C_i, take the unit direction vectors of its two adjacent edges that are away from the corner point, determined by the local edge equations, with the orientation being away from the corner point. Further, let... Let C_i be the unit direction vector along edge e, pointing from C_i to the other end of the edge. =The unit direction vector along edge e′, pointing from C_i to the other end of the edge, then the angle of corner point C_i: .

[0080] Furthermore, the right-angle deviation is calculated as follows: δ_i = θ_i − 90°. The average right-angle deviation of the entire tile is then: δ_avg = (1 / 4)Σ|δ_i|. According to GB / T 4100 or the company's internal control standards, the tile is considered qualified when δ_avg ≤ 4′ (angle minutes); if any corner point |δ_i| > max_δ (max_δ = 6′ is recommended), the tile is considered unqualified.

[0081] It is worth noting that in this application, the four tile edges are acquired, extracted, and calculated separately by four sets of image acquisition devices. The detection and calculation of the four tile edges are completely decoupled and can be executed in parallel. Moreover, any data abnormality on any side only affects the determination of that side and does not propagate to other sides. The system's robustness and maintainability are significantly better than the serial splicing scheme.

[0082] S500. By combining the edge straightness information, the right angle information, and the size information, a comprehensive inspection report is obtained.

[0083] In this embodiment, the results of sampling and testing of each tile in steps S100-S400 are packaged into a comprehensive test report. This comprehensive test report records the whole-edge right angle S_global, tile edge length L_edge, arcuateness κ_max, spectrum, fluctuation index W, baseline line L13, fitted curve η, and local edge equation at the corner points of the four tile edges. The data includes N×3 sub-pixel sampling points and their pixel-level edge coordinates, detection timestamps, bow-shaped detection results, waveform detection results, right-angle detection results, and the specification parameter package of each image acquisition device combined with the tile specifications, as well as the four corner points and their coordinates during the detection process.

[0084] Please see Figure 2 As shown, the present invention also provides an integrated detection system for the straightness and dimensions of ceramic tile edges, the system comprising: First processing module 201: used to acquire multiple local images of each tile edge in each tile based on the synchronous acquisition module; The second processing module 202 is used to preprocess each local image of the tile edge and extract the edge to obtain several pixel-level edge coordinates. The third processing module 203 is used to perform fitting and waveform analysis on each tile edge based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and size information. Fourth processing module 204: used to obtain right angle information based on the unit direction vector of adjacent sides; The fifth processing module 205 is used to integrate the edge straightness information, the right angle information, and the size information to obtain a comprehensive inspection report.

[0085] It is understandable that, such as Figure 1 The content of the integrated tile edge straightness and dimension detection method embodiment shown is applicable to the integrated tile edge straightness and dimension detection system embodiment. The specific functions implemented by the integrated tile edge straightness and dimension detection system embodiment are as follows: Figure 1 The embodiment of the integrated inspection method for the straightness and dimensions of tile edges shown is the same, and the beneficial effects achieved are the same as those described above. Figure 1 The beneficial effects achieved by the integrated detection method for the straightness and dimensions of the tile edge shown in the embodiment are the same.

[0086] It should be noted that the information interaction and execution process between the above systems are based on the same concept as the method embodiments of the present invention. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.

[0087] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0088] Please see Figure 3 As shown, this embodiment of the invention also provides a computer device 3, including: a memory 302 and a processor 301, and a computer program 303 stored in the memory 302. When the computer program 303 is executed on the processor 301, it implements the integrated detection method for the straightness and size of the tile edge as described in any of the above methods.

[0089] The computer device 3 may be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will understand that... Figure 3The computer device 3 is merely an example and does not constitute a limitation on the computer device 3. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0090] The processor 301 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0091] In some embodiments, the memory 302 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 302 may be an external storage device of the computer device 3, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 3. Furthermore, the memory 302 may include both internal and external storage units of the computer device 3. The memory 302 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 302 can also be used to temporarily store data that has been output or will be output.

[0092] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the integrated detection method for the straightness and dimensions of tile edges as described in any of the above methods.

[0093] In this embodiment, if the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / computer device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0094] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for integrating the straightness and dimensions of ceramic tile edges, characterized in that, include: Based on the synchronous acquisition module, multiple partial images of each tile edge are acquired for each tile edge; Each of the local images of the tile edge is preprocessed and edge extraction is performed to obtain several pixel-level edge coordinates; For each tile edge, fitting and waveform analysis are performed based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and dimension information; Based on the unit direction vectors of adjacent sides, obtain the right angle information; A comprehensive inspection report is obtained by combining the edge straightness information, the right angle information, and the size information.

2. The method as described in claim 1, characterized in that, The synchronous acquisition module includes an image acquisition device, a photoelectric sensor, a light source module, and a synchronous triggering circuit; The multiple image acquisition devices are divided into four groups, each group corresponding to a tile edge, to acquire partial images of the tile edge in the left section, middle section and right section, and the acquisition angles of each image acquisition device are independent of each other and do not overlap. The photoelectric sensor is installed at a predetermined position upstream of the detection station and is used to send a trigger signal to the synchronous trigger circuit when the leading edge of the tile reaches the predetermined position. The synchronous triggering circuit receives the trigger signal and drives the image acquisition device and the light source module to execute synchronously. The light source module includes at least four sets of light sources, each corresponding to one of the four tile edges; The four corners of the testing station are each equipped with an online self-calibration marker, and the truth value of each online self-calibration marker is recorded as a reference.

3. The method as described in claim 2, characterized in that, Before acquiring multiple partial images of each tile edge in each tile, the process includes: Local images of the corresponding online self-calibration markers are acquired by each of the image acquisition devices, and the sub-pixel coordinates of the markers are extracted. Based on the specification parameter package of the tile to be detected, the sub-pixel coordinates of the marker points are converted into world marker point coordinates; The coordinates of the world landmarks are compared with the true benchmark, the deviation vector is calculated, and the image acquisition devices are calibrated based on the deviation vector results.

4. The method as described in claim 1, characterized in that, The process of obtaining several pixel-level edge coordinates includes: The preprocessed local image of the tile edge is input into a pre-trained edge extraction model to obtain an edge probability map. The edge probability map is subjected to threshold segmentation and non-maximum suppression to obtain a set of candidate edge pixels; Based on the candidate edge pixel set, single-segment multi-sampling point extraction is performed to obtain several sub-pixel sampling points and their sub-pixel edge point coordinates; Based on the tile specification parameter package, the subpixel-level edge point coordinates are converted into pixel-level edge coordinates.

5. The method as described in claim 4, characterized in that, The step of extracting multiple sampling points in a single segment based on the candidate edge pixel set to obtain several sub-pixel sampling points and their sub-pixel edge point coordinates includes: Principal component analysis is performed on the candidate edge pixel set to obtain the image-level strip search region; Along the edge direction of the candidate edge pixel set, combined with the image-level strip search region, the sampling positions are divided equally to obtain multiple sampling positions and determine the initial pixel position of each sampling position; For each sampling location, a subpixel thinning algorithm is used to determine the subpixel sampling point and its subpixel-level edge point coordinates by combining its initial pixel position.

6. The method as described in claim 5, characterized in that, The sub-pixel thinning algorithm is a grayscale centroid method, wherein the determination of the sub-pixel level edge point coordinates includes: Using the initial pixel position as the origin, the preprocessed local image of the tile edge is rotated to obtain a rotated local image of the tile edge. Centered on the origin, extract the edge probability sub-image under the preset local window of the local image of the rotating tile edge; Based on the edge probability subgraph, the background intensity under the local window is calculated, and based on the background intensity, the background subtraction weight is calculated; Based on the local image of the rotated tile edge, combined with the background subtraction weight, the subpixel coordinates are calculated using the gray-scale centroid method; The subpixel coordinates are rotated inversely to calculate the coordinates under the local image of the tile edge, and the subpixel-level edge point coordinates are obtained by combining the initial pixel position.

7. The method as described in claim 1, characterized in that, The process of fitting and waveform analysis based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and size information includes: A baseline straight line is obtained by performing global straight line fitting based on the pixel-level edge coordinates of all tiles. Calculate the perpendicular distance between each pixel-level edge coordinate and the reference line, and calculate the overall edge straightness and the tile edge length; For each tile edge, a local coordinate system is established for curve fitting to obtain the fitted curve; Based on the fitted curve, the bow shape and fluctuation index are calculated, and the waveform of the tile edge is determined.

8. The method as described in claim 1, characterized in that, The method of obtaining right angle information based on the unit direction vector of adjacent sides includes: Arrange the four tile edges in a counter-clockwise order to form four adjacent pairs, and each adjacent pair determines a corner point; For each tile edge, a preset number of sub-pixel sampling points are taken to form a corner point set; For each tile edge, perform least-squares line fitting on the set of corner points to obtain the local edge equation of the tile edge at the corner point; Based on the equations of two adjacent local edges, the corner point is obtained by solving the equations and the unit direction vectors of its two adjacent sides are determined. The corner angle and the right angle deviation are calculated. The right angle of the tile is determined based on the aforementioned right angle deviation.

9. A ceramic tile edge straightness and dimension integrated detection system, characterized in that, include: First processing module: used to acquire multiple local images of each tile edge in each tile based on the synchronous acquisition module; The second processing module is used to preprocess each local image of the tile edge and extract the edge to obtain several pixel-level edge coordinates. The third processing module is used to perform fitting and waveform analysis on each tile edge based on the aforementioned pixel-level edge coordinates to obtain edge straightness information and size information. The fourth processing module is used to obtain the right angle information based on the unit direction vectors of adjacent sides. The fifth processing module is used to integrate the edge straightness information, the right angle information, and the size information to obtain a comprehensive inspection report.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 8.