Image recognition based method for measuring butt joint width of PCCPDE pipeline
By setting flexible coded reference bands on both sides of the PCCPDE pipe joint, a piecewise mapping from the image to the pipe circumferential unfolded coordinate domain is established. Edge pairs are extracted and verified, solving the accuracy problem of joint width measurement under curved surface conditions and realizing continuous joint width distribution and reliable observation basis.
Patent Information
- Application Number
- CN202611574154.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-12
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technology cannot accurately measure the width of the PCCPDE pipe joint under conditions of curved perspective changes and surface interference, making it difficult to connect the local readings into a continuous circumferential distribution.
Flexible coded reference bands extending circumferentially are set on both sides of the joint. By identifying the coded points, a segmented mapping from the image to the circumferentially unfolded coordinate domain of the pipeline is established. Edge pairs are extracted and edge relationships are verified. The actual distance is calculated, and circumferential joint width data is generated.
It enables accurate measurement of seam width under curved surface conditions, avoids the direct application of a single scale ratio, ensures verifiable boundary identity, forms a continuous seam width distribution, and provides image evidence for verification.
Smart Images

Figure CN123160635A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of pipe joint size detection and digital image processing, specifically a PCCPDE pipe joint width measurement method based on image recognition. Background Technology
[0002] After the prestressed steel cylinder concrete pipe is spliced, it is necessary to check whether the circumferential gap of the joint meets the installation control requirements. The closest on-site measurement method to this project is to select several locations near the top, side, and accessible bottom of the pipe, remove mud, sand, and residual sealing material from the joint, and then insert the measuring end of a feeler gauge, wedge gauge, or caliper into the gap. The width of the gap at that location is taken as the reading when the measuring tool can be stably inserted. The operator records the readings one by one according to the circumferential measuring points, and judges whether the joint needs adjustment by using the maximum, minimum, or average values. When it is inconvenient to insert the measuring tool, it is usually observed using a lighting lamp and inspection mirror, or a partial photograph is taken and the outline of both sides of the joint is selected on the image. When using photo-assisted measurement, a ruler of known length can be placed near the joint. A uniform conversion ratio is established based on the pixel length of the ruler, and then grayscale enhancement, threshold segmentation, or edge detection is used to obtain the position of brightness and darkness changes. The pixel distance between the two edges at the selected position is calculated and converted into the actual length. The entire process is based on discrete measuring points and local planar scales, with measurement records corresponding to each measuring instrument operation or each local photograph.
[0003] The outer wall of the pipe is curved, and the shooting direction, shooting distance, and the position of the joint in the image will change with the circumferential operation. The uniform pixel ratio given by a single planar scale cannot stably express the local scale of various parts of the joint. Shadows, mud spots, wet reflections, and residual sealing material near the joint will form light and dark contours similar to the real boundary, making it difficult to select boundaries in different photos with a common location identity and a basis for repeated observation. The main technical problem arising from this is that existing discrete sampling or single-scaled image measurement cannot establish consistent and verifiable joint width data for the same circumferential location under the conditions of curved surface perspective changes and surface interference. This makes it difficult to connect the local readings into a continuous circumferential distribution. This problem cannot be eliminated by increasing the number of shots, because images without uniform curved surface coordinate correction cannot be directly stitched together, and the same dirt edge may be repeatedly identified in adjacent fields of view; nor can it be solved by simply increasing the edge detection sensitivity, because local light and dark features cannot prove that the candidate contours belong to the real physical termination boundaries of adjacent pipe sections. Summary of the Invention
[0004] The purpose of this invention is to provide a PCCPDE pipe joint width measurement method based on image recognition, which can solve the problems in the background art mentioned above.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0006] A PCCPDE pipe butt joint width measurement method based on image recognition includes: setting flexible coded reference bands extending in the circumferential direction on the outer wall of the pipe section on both sides of the butt joint, and acquiring image sequences covering the butt joint and having overlapping areas in adjacent fields of view;
[0007] Identify the coding points in the two flexible coding reference bands, and establish a piecewise mapping from each image to the pipeline circumferential expansion coordinate domain based on the paired coding points;
[0008] Extract the edges on both sides of the butt joint from the unfolded image, form edge pairs along the axial measurement lines determined by the paired coding points, and verify the edge pairs by the repeating edges of the overlapping area and the edge continuity relationship of adjacent circumferential positions;
[0009] The actual distance between verified edge pairs is calculated based on the segmented mapping, and circumferential seam width data associated with the coded point identity and the source image is generated.
[0010] Preferably, both flexible coding reference bands include coding units arranged sequentially along the length of the band, and each coding unit includes a main coding graphic expressing the identity of the circumferential segment and scale corner points located on both sides of the main coding graphic;
[0011] The main coding graphics located on both sides of the joint and corresponding to the circumferential position have a pairable identity relationship, and the line connecting the scale corner points of the paired main coding graphics defines the axial direction of the pipe.
[0012] The known band distances between adjacent coding units, the known distances between scale corner points within the same coding unit, and the pairing relationships between two flexible coding reference bands are written into the coding reference table for use in the identification of coding points in the image and for local size conversion.
[0013] Preferably, establishing the segment mapping includes: according to the circumferential segment identity of the main coding pattern, forming a local quadrilateral on the image side by adjacent pairs of coding points in the two flexible coding reference bands, and constructing a rectangular grid corresponding to the local quadrilateral in the circumferential expansion coordinate domain of the pipeline.
[0014] Based on the correspondence between the vertices of the local quadrilaterals and the vertices of the rectangular mesh, a local mapping is obtained, and the pixels falling into the common boundary of adjacent local quadrilaterals are mapped to the expanded coordinate domain respectively.
[0015] Apply the same-name coding point coincidence constraint to the mapping coordinates on both sides of the common boundary, and form a piecewise mapping set covering the candidate area of the docking seam with the constrained local mapping.
[0016] Preferably, extracting and verifying the edge pairs includes: forming the nodal seam candidate region in the unfolded image based on the strip region between the two flexible coding reference bands, identifying the brightness gradient direction and texture continuity direction of the candidate region, and obtaining a first edge candidate set and a second edge candidate set respectively facing the pipe section entity region;
[0017] Along each axial measurement line, candidate points with opposite gradient directions and compatible gray-scale transition order are selected from two edge candidate sets to form an edge pair to be verified;
[0018] The edge pairs to be verified are projected onto the same coded segment of adjacent images, and only the positions of the measurement lines with corresponding edge pairs in the overlapping area are registered.
[0019] Preferably, the encoding point identity resolution includes: identifying the visible encoding segments and scale corner points of the main encoding graphic respectively, and generating a candidate identity sequence according to the arrangement order of the main encoding graphic on the same flexible encoding reference band;
[0020] Align the candidate identity sequence on one side of the seam with the candidate identity sequence on the other side according to the pre-stored pairing relationship, and limit the candidate identity of the occluded main coding graphic by the identity order of the adjacent identified main coding graphics.
[0021] When the visible coded segment of the main coded graphic is consistent with the defined candidate identity, and the geometric order of the corresponding scale corner points does not intersect, the identity and scale corner point coordinates of the main coded graphic are registered; otherwise, the corresponding image region is marked as a region without a coded reference.
[0022] Preferably, the segmented mapping set comprises: calculating a forward mapping from image coordinates to unfolded coordinates and a reverse mapping from the unfolded coordinates back to the image coordinates for each local quadrilateral, and matching the re-projection position of the encoded point after the forward mapping and the reverse mapping with the original encoded point position;
[0023] On the common boundary of adjacent local quadrilaterals, boundary sampling positions determined by corner points of the same scale are set, and matching is performed according to the circumferential coordinate order after the two sides of the common boundary are mapped to the unfolded coordinates;
[0024] Only local mappings that maintain the correspondence between encoding points at the re-projection positions and have the same sampling position order at the common boundary are added to the segmented mapping set, and the encoding segments covered by each local mapping are recorded.
[0025] Preferably, verifying the edge pairs in the overlapping area includes: aligning the same circumferential segments from different images according to the identity of the master encoded graphic, and extracting the intersection points of the axial measurement line with the first edge candidate set and the second edge candidate set in the unfolded coordinates of each image;
[0026] The first intersection points of the corresponding measurement lines in different images are grouped into a first intersection point group, and the second intersection points are grouped into a second intersection point group. The discrete relationship of the intersection points in each group along the axial direction is calculated.
[0027] When the first intersection group and the second intersection group maintain the same bilateral order, and the edge intervals formed by the two intersection groups have a common range, the edge intervals within the common range are registered as repeated observation results of the circumferential segment.
[0028] Preferably, verifying the edge missing area includes: dividing the axial measurement line that is continuously missing the first side intersection point or the second side intersection point into a missing area, and reading the edge pairs that have been verified by overlapping at both ends of the missing area and their corresponding coded segments;
[0029] The first and second prediction boundaries are constructed according to the extension direction of the edges on the same side at both ends in the unfolded coordinates, and the edge candidate points mapped to the missing area in the adjacent images are projected onto the corresponding prediction boundaries.
[0030] Only when the candidate points are arranged in the same order along the circumference as the predicted boundary, the two predicted boundaries do not intersect, and the predicted boundaries are connected to the endpoints on the same side, will the edge pair formed by the candidate points be registered as a supplementary observation result, and the supplementary observation source identifier be retained.
[0031] Preferably, forming the repeated observation results includes: for the case where there are multiple common ranges within the same coding segment, reading the coordinate deviation of the coding points in each source image after being reverse-projected through segmentation mapping, and obtaining the axial discrete relationship of the corresponding first intersection group and second intersection group;
[0032] Multiple common ranges are sorted according to the combined order of the coordinate deviation and the axial discrete relationship, and the common range in the middle of the sort is used as the candidate seam width interval.
[0033] Each edge interval falling into the candidate seam width range is arranged according to the circumferential coordinates of the corresponding axial measurement line, and the seam width record of the coded segment is determined by the common coverage of adjacent edge intervals, while the source image identifiers involved in the determination are associated.
[0034] Preferably, registering the supplementary observation results includes: defining the supplementary interval by the identity span between the corresponding coding units at both ends of the missing region, and extending the first prediction boundary and the second prediction boundary to the same-name circumferential coordinates within the supplementary interval;
[0035] For each circumferential coordinate, calculate the distance between the two predicted boundaries and establish the intersection with the distance of the candidate edge pairs mapped to that circumferential coordinate. Form a supplementary seam width sequence according to the continuous order of the intersection boundaries of adjacent circumferential coordinates.
[0036] When there is no distance intersection at any circumferential coordinate, the encoded identities on both sides cannot be continuously connected, or the predicted boundary intersects, the supplementary seam width sequence is terminated at that circumferential coordinate, and the remaining interval after termination is registered as the interval to be retested.
[0037] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0038] 1. By setting flexible coded reference bands extending circumferentially and with matching identities on both sides of the joint, each field image simultaneously acquires reference information for the corresponding circumferential segment, local dimensions, and pipe axial direction. The local area enclosed by adjacent paired coded points is mapped to a unified pipe circumferential unfolded coordinate domain, allowing joint pixels in different shooting directions and different image positions to be converted according to the geometric relationship of their respective regions, avoiding the direct application of a single scale ratio to the entire curved surface image. Candidate edges on both sides in the unfolded coordinate form edge pairs along the axial measurement lines. Only edge pairs that can repeatedly correspond to the same coded identity within the overlapping area of adjacent images, and maintain the common range of the order of the two sides and the edge interval, are registered. Flexible coded reference, piecewise curved surface correction, and repeated edge verification thus form a continuous causal chain: the coded reference provides cross-image co-location identification and local scale, piecewise mapping provides comparable unified coordinates, and overlapping verification further eliminates smudges or shadow contours that do not conform to the bilateral pairing relationship, so that the same circumferential position obtains a joint width value with consistent scale and observational basis for boundary identity, and can connect discrete local images into a circumferential joint width distribution.
[0039] 2. The arrangement order and bilateral pairing relationship of the main coded graphics in the flexible coding reference band allow candidate segments to be defined based on adjacent identities even when local coded graphics are occluded. Positional identities are restored when the geometric order of visible coded segments and scale corner points is consistent. Regions that cannot satisfy the correspondence are retained as non-reference areas, preventing data without scale basis from being mixed into the measurement results. For segments with locally missing seam edges, the processing reads the edges on the same side that have been repeatedly verified at both ends of the missing area, constructs predicted boundaries connecting the two ends, and requires candidate points in adjacent images to fall on the corresponding predicted boundaries in a circumferential order, with the two predicted boundaries not intersecting. Therefore, the supplementary results are simultaneously constrained by endpoints, image evidence, and bilateral spatial relationships. If the distance between the candidate edge and the distance between the predicted boundaries do not intersect, or the coded identities cannot be continuously connected, the supplementary sequence terminates at the corresponding position, leaving an area to be retested. This processing method allows for the preservation of uncertain areas while permitting evidence-based local connections. Combined with the correlation record of seam width value with coded identity, source image and observation source, it can trace the scale conversion, edge selection and supplementation process according to the circumferential position, providing image evidence corresponding to each measurement value for on-site verification. Attached Figure Description
[0040] Figure 1 For local segmented circumferential mapping;
[0041] Figure 2 For repeated observation weighted fusion plot;
[0042] Figure 3 This is a flowchart for measuring the width of a circumferential joint. Detailed Implementation
[0043] In one embodiment, the PCCPDE pipe joint width measurement method based on image recognition is implemented when the pipe section is completed and the exposed area of the interface is suitable for imaging. The operator cleans up loose attachments that will not change the physical boundary, and lays flexible coded reference strips extending in the circumferential direction on the outer wall of the pipe section on both sides of the joint. The two strips are located on adjacent pipe sections and maintain an imageable interval with the joint. The acquisition device moves along the circumference of the interface to acquire an image sequence covering the joint. Adjacent shooting fields retain common coded segments. The processing end identifies the coded points in the two strips and establishes a segmented mapping from the image to the circumferential unfolded coordinate domain of the pipe. The physical termination edges on both sides of the joint are extracted in the unfolded image and edge pairs are formed along the pipe axis. The edge identity is verified based on repeated observations of overlapping fields and the continuous relationship of adjacent circumferential positions. The unfolded coordinate distance of the verified edge pairs is then converted into the actual joint width, and the result is associated with the coded identity, image source, and processing status and saved.
[0044] Specifically, the flexible coding reference band adopts a strip-shaped carrier that can conform to the outer wall of the cylindrical pipe. After the band is attached, it does not use its own straight shape as the pipe axis, but uses the line connecting the paired coding points of two bands in the same circumferential section as the local axial reference. The coding content on the band still retains the identifiable discrete corner points and identity segments when it is bent. During the application process, the corresponding coding units of the two bands are located in close circumferential positions on both sides of the joint. At the same time, the initial identity of the band is associated with the top of the pipe or the construction measurement reference. This allows the subsequent image to recover its segment position in the whole circumference even if it does not contain the complete interface circumference, based on the visible coding. When there are local minor undulations between the band and the pipe wall, the segmented areas enclosed by adjacent coding points are respectively responsible for the scale conversion, avoiding the assumption that the entire band is on the same plane.
[0045] Preferably, each coding unit includes a main coding pattern expressing the identity of a circumferential segment and scale corner points located on both sides of the main coding pattern. The main coding pattern is composed of directional boundaries and internal identity segments, so that the positive order along the length of the band can still be determined after the image is rotated. The actual distance between scale corner points and the band distance between adjacent coding units are pre-written into the coding reference table. The main coding patterns of the same circumferential segment on the two bands store a queryable pairing relationship. After obtaining any main coding identity, the recognition end can simultaneously query its adjacent identities, opposite identities, actual intervals of scale corner points and the circumferential segment to which it belongs. Therefore, it is not necessary to guess the side of the pipe section based on the left and right positions of the image. When the main coding pattern is partially occluded, the directional boundaries and the remaining identity segments can also be used to form candidate identities.
[0046] In a preferred embodiment, an independent version of the encoding reference table is established with each measurement task. The table stores the unique identity of each master coded graphic, the adjacent identities on the same band, the paired identities on another band, the actual distance between scale corner points, and the circumferential distance accumulated from the starting reference. The image record stores the acquisition order and the original pixel data, but does not replace the encoding identity with the acquisition order. After the processing terminal performs a table entry query on the identified encoding points, it generates an image segment record. The image segment record includes the source image identifier, the set of visible master codes, the coordinates of scale corner points, the band side, and the circumferential coverage. Adjacent images can establish an overlap candidate relationship as long as they share at least one master coded identity. Images that do not share identities are kept as different segments to prevent incorrect splicing based solely on the appearance of similar seam textures.
[0047] In this embodiment, the image acquisition covers the pipe wall, two flexible coding reference bands, and the seam between the two bands. The acquisition device is allowed to change the viewing angle with the surrounding space during movement, but the two bands in the same image must retain enough paired coding points to form local segments. The processing end performs brightness channel normalization, local contrast expansion, and isolated noise suppression on the image. The normalization process uses the stable bright and dark areas inside the coded graphic as a reference without modifying the edge position. Then, the outer boundary of the main coding is located by the contour closure relationship, and the scale corner points are located by the relationship between the corner point response and the main coding direction. Each corner point is saved as sub-pixel coordinates. If multiple corner point candidates appear in the same area, candidate combinations that cannot form a complete coding unit are screened out according to the main coding direction, the order of corner point arrangement, and the topological relationship in the coding reference table.
[0048] Furthermore, the master code identity resolution first generates a finite candidate set from the visible identity segments, then reads the sequential identity constraint candidate order of adjacent confirmed master codes in the same band, and then reads the paired identities of master codes in the same circumferential position in another band for cross-constraint. Confirmation is completed only when the three types of relationships—visible identity segments, intra-band order, and inter-band pairing—point to the same identity. If the visible segment can only determine multiple identities, the candidate set is retained and the same segment in the adjacent image is waited for supplementary segments. If there is a conflict between intra-band order and inter-band pairing, the conflicting coding unit and its enclosed region are marked as a non-coding reference region, and the region is not used to establish scale mapping. The confirmation result also records the source of the relationship used for confirmation so that if the final seam width value is abnormal, it can be checked back whether the coded identity depends on occlusion recovery.
[0049] For a coding unit whose identity has been confirmed, the processing end forms an axial pairing based on the scale corner points corresponding to the circumferential positions on the two bands, and forms a circumferential adjacency based on the scale corner points of adjacent coding units on the same band. The two-sided corner points of the adjacent circumferential positions enclose a local quadrilateral on the image side. The expanded coordinate domain takes the starting reference of the band as the circumferential origin, the known band distance accumulated along the circumferential direction as the horizontal coordinate, and the local axial direction between the two bands as the vertical coordinate. Each local quadrilateral on the image side corresponds to a rectangular grid defined by the actual scale in the expanded coordinate domain. The horizontal boundary of the rectangular grid comes from the accumulated circumferential distance of the adjacent coding identities, and the vertical boundary comes from the positional relationship of the two-sided scale corner points relative to their respective band baselines. The seam candidate region is located between the two grid vertical boundaries.
[0050] When establishing a local mapping, the sampling position within the local quadrilateral is represented by image pixel coordinates x and y, and the coordinates are expanded. The circumferential coordinates represent the corresponding positions within the i-th local patch. The mapping coefficients are obtained from the correspondence between the four scale corner points of the local quadrilateral and the four vertices of the rectangular grid. The circumferential unfolded coordinates are calculated using the following formula. The longitudinal unfolded coordinates use the same denominator and another set of numerator coefficients obtained from the correspondence between the four vertices, so that the perspective contraction in the local view of the curved surface is converted into actual size coordinates within their respective patches.
[0051] ;
[0052] in, and Let be the circumferential mapping coefficient of the i-th local patch, and x and y be the image side sampling positions. When the sampling position is taken as the left scale corner point of the local quadrilateral... Take the cumulative circumferential distance of the coding unit. When the sampling position is the right-side scale corner point, The cumulative circumferential distance of a coding unit is taken, and the seam pixels between two corner points obtain continuous coordinates according to the fractional mapping. For example, when the unfolded horizontal boundaries of adjacent coding units are 0 mm and 20 mm respectively, the circumferential coordinates of the intermediate sampling position can be obtained by coefficient calculation. Thus, pixels near the edge and near the center in the same image no longer share a fixed pixel ratio, but obey the corner point constraints of their respective segments.
[0053] Please refer to Figure 1 , Figure 1 The upper-middle coordinate system uses the image sampling position as the horizontal axis, with a sampling range of 20 to 170 pixels. The vertical axis represents the circumferentially expanded coordinates obtained through local patch mapping, with units in millimeters. The lower auxiliary coordinate system also uses the image sampling position as the horizontal axis, and the vertical axis represents the magnitude of local scale variation with pixel position on the same sampling line. The black solid line dotted curve corresponds to the formula symbols. The mapping output, the gray dashed square curve corresponds to... Local scale changes resulting from the combined effects. Figure 1 After fixing the sampling position in the y-direction, The increase from approximately -6.03 mm to approximately 58.47 mm, with a slight upward curve, indicates that this local patch was not linearly converted according to a fixed pixel ratio, but rather affected by the denominator. The perspective shrinkage effect is represented. The lower curve increases from about 0.374 mm / pixel to about 0.495 mm / pixel, indicating that pixels near different coded corners within the same image do not contribute equally to the actual circumferential distance. Therefore, the seam edge points must first be assigned to the i-th local segment, and then their unfolded coordinates must be calculated using the corresponding coefficients to avoid circumferential position deviations caused by the viewing angle of the pipe wall surface and the shooting tilt.
[0054] Furthermore, each local segment simultaneously stores the forward mapping from image coordinates to unfolded coordinates and the reverse mapping from unfolded coordinates back to image coordinates. The processing end sends the coded corner points involved in the solution to the reverse mapping after forward mapping, compares the correspondence between the re-projected position and the original corner point position, and selects the boundary sampling position determined by the corner points of the same scale at the common boundary of adjacent local segments. The circumferential coordinate order after mapping on both sides of the common boundary is calculated respectively. If the corner point after re-projection cannot return to the original coding unit, or the sampling position on both sides of the common boundary is reversed, the corresponding segment will not enter the segment mapping set. The retained segments are arranged according to the coding segment and share the common boundary coordinates, so that when the seam edge crosses the segment, there will be no duplicate or jump position due to the two sets of local mappings.
[0055] In a preferred embodiment, when a local quadrilateral is missing a scale corner due to occlusion, the mapping coefficients of neighboring segments are not directly used to replace it. Instead, the complete corner point groups of the same coding unit in adjacent images are read, and the corner points of adjacent images are aligned to the current segment through the shared master coding identity. Then, the arrangement direction between the visible corner points of the current image and the corresponding corner points of the adjacent images is checked. When the arrangement direction is consistent, the current image area can be covered by the complete segments of the adjacent images. When the arrangement direction is inconsistent, the no-mapping state is maintained. The processing end thus binds the scale source to the image that actually contains the complete coded geometry, avoiding extrapolation of a single segment at the point of change in cylinder curvature. When multiple adjacent images contain complete segments, their mapping results are retained for subsequent repeated observation and verification.
[0056] After unfolding, the processing end forms a candidate band for the joint based on the longitudinal boundaries of the two flexible coding reference bands in the unfolded coordinate domain. The candidate band only covers the area where there may be a solid termination edge between the ends of adjacent pipe sections. The texture of the pipe wall outside the band is not included in the recognition range. The image recognition process calculates the direction of brightness change along the local axis and the continuous direction of texture along the local circumferential direction within the candidate band. Candidate points that transition from the pipe wall solid to the dark area of the joint are assigned to the first edge set, and candidate points that transition from the dark area of the joint to another pipe wall solid are assigned to the second edge set. The closed contour formed inside the mud spot is retained as an unpaired candidate because its transition direction and circumferential extension relationship on both sides do not conform to the order of the solid termination boundary, and the width record is not directly generated.
[0057] Specifically, the local axial measurement line is determined by connecting the paired scale corner points of two strips within the same circumferential segment, and is represented as a longitudinal line with fixed circumferential coordinates in the unfolded coordinate domain. The processing end reads edge candidates along each measurement line in the direction from the first pipe section to the second pipe section, and selects two candidate points with opposite gradient directions and grayscale transition order corresponding to the entity to the gap and the gap to the entity, respectively, to form the edge pair to be verified. If multiple combinations appear on a measurement line, the combination that can form two non-intersecting boundaries is retained according to the continuation direction of the candidate edge on the adjacent circumferential measurement line. Any combination that causes the first edge to cross the second edge or causes the boundary to suddenly exchange sides at adjacent positions will not enter the set to be verified. Individual dark lines will not generate measurement values because they lack the opposite entity termination boundary.
[0058] Preferably, the processing end maps adjacent images sharing the main coding identity to the same circumferential segment, generates corresponding measurement lines in their respective unfolded coordinates with the same circumferential coordinates, and obtains the first side intersection point and the second side intersection point respectively. The first side intersection points from different source images are grouped into a first intersection point group, and the second side intersection points are grouped into a second intersection point group. The intersection points within the group are saved according to the source image and the local segmentation identifier. The verification process requires that the two groups of intersection points maintain the axial order of the first side in front and the second side behind in each source image, and calculates the edge interval formed by the two intersection points in each source image. Only when multiple intervals have a common coverage area are repeated observation results formed. When only one image is visible or the common area is empty, the corresponding position is retained as the position to be verified.
[0059] In this embodiment, repeated observations are not performed by directly averaging pixel distances. Instead, the actual coordinate intervals are compared after each source image has been independently segmented and mapped. Let the circumferential measurement position be... The number of source images used for location verification is The axial unfolded coordinates of the first and second side edges in the k-th image are respectively The observation weight of this image is The weights are formed by the order of corner point re-projection, continuous states at common boundaries, and repeated states of edge pairs, and the verified seam width. Calculate using the following formula.
[0060] ;
[0061] in, The actual slit width at position j in the circumferential direction is calculated by summing the product of the edge spacing of each image and its corresponding weight in the numerator, and summing the weights at the same position in the denominator. For example, if the edge spacings of two overlapping images are 12 mm and 14 mm respectively, and both have the same weight, then... Taking 13 mm, when the coded corner point re-projection relationship of one of the images is weak and a smaller value is obtained. When the calculation result is close to the observation with complete coded geometry and double-edge evidence, the seam width at that position is not calculated if there is no registerable weight in the denominator.
[0062] Please refer to Figure 2 , Figure 2 The middle part is used to illustrate the relationship between repeated observations and fusion. The correspondence between them. Figure 2 The horizontal axis of the upper-middle coordinate system represents the circumferential measurement line number, and the vertical axis represents the edge interval formed by the termination edges of the two entities, in millimeters; the gray hollow circle represents the basic edge interval obtained within a single source image, i.e. The difference between them, where the black dotted solid line represents the weighted fusion width of the same measurement line formed under multiple image evidences. .Depend on Figure 2It is evident that the single observation points are distributed around the fusion curve, and the fusion curve does not simply take the arithmetic mean of all points, but rather suppresses local deviations according to different observation weights. Within the range of measurement line 0 to approximately 30, the fusion width is mainly between 13.5 and 14.1 mm; after measurement line 40, the fusion width gradually increases and approaches 15.3 mm near 50 to 60, reflecting the increased distance between the termination boundaries of the entities on both sides of this circumferential section.
[0063] Figure 2 The lower-middle coordinate system uses the same measurement line number as the horizontal axis and the observation weight as the vertical axis. The triangular dots represent the weight of a single observation, and the dashed dots represent the average weight of observations along the same measurement line. The weights are mainly distributed around levels 2.1 and 2.8, indicating that the observations entering the fusion process have passed verification of coded identity, continuity of common boundaries, and double-edge order; however, the strength of geometric evidence from different source images still varies. When a measurement line simultaneously contains both high-weight and medium-weight observations, The edge spacing should be closer to that provided by the high-weighted image; when all observations have low weight or the denominator has no effective weight, this location should not be published as a direct slit width value. Figure 2 Therefore, it not only shows the change in slit width along the circumferential position, but also presents the edge spacing contribution in the weighted numerator and the weight scale in the denominator separately, making it easier for reviewers to judge whether the results are supported by stable repeated observations or may be affected by reflection, occlusion or edge candidate discrepancies in a single image.
[0064] Furthermore, the observation weight is not determined by a single gray intensity. The processing end performs discrete level coding on the re-projection position of the coding point, the order of the common boundary of adjacent segments, the discrete state of the first intersection group, the discrete state of the second intersection group, and the order of the two side edges. Only observations with confirmed coding identity and valid edge order on both sides obtain non-zero weight. Observations with continuous common boundaries and corresponding edge pairs in the overlapping field of view obtain higher weight. When there are multiple common ranges of edge intervals in the same coding segment, the common ranges are first arranged according to the joint order of the re-projection position deviation and the axial discrete relationship of the two intersection groups. The common range in the middle of the sort is selected as the candidate interval. Then, weighted operation is applied only to the edge intervals that fall into the candidate interval, so that the single-image deviation caused by local strong reflection cannot enter the result solely based on high contrast.
[0065] Forming multiple consecutive sections in the same circumferential segment Afterwards, the processing end sorts the measurement positions according to the main encoding identity and the expanded circumferential coordinates, compares the first side boundary coordinate sequence and the second side boundary coordinate sequence of adjacent positions. If the two sequences remain continuous but the seam width changes, the change is retained as part of the interface geometry. If the two sides of a certain position jump to another texture contour at the same time and there is no identical jump in adjacent images, the registration of that position is cancelled and restored to the pending verification state. The beginning and end segments of the whole circle establish a closed relationship through the starting encoding identity. The beginning and end boundaries are only connected after verification in the shared encoding field of view to avoid treating the tube top starting position as two unrelated endpoints.
[0066] For cases where there is local mud occlusion on the flexible coding band, the processing end reads the confirmed master coding identities before and after the occluded area, generates a finite identity sequence according to the intra-band adjacency order in the coding reference table, and then reads the confirmed paired identities within the same circumferential range on another band to reduce the candidate set. Subsequently, it searches for visible segments that match the candidate identities in the current image and adjacent images. The master coding identity is restored only when the segment direction, intra-band order, and opposite pairing relationship are consistent. The geometric order of the scale corner points must also be kept non-intersecting along the band direction. The restored identity record indicates the use of the preceding and following adjacency relationship or the opposite pairing relationship, which is used for subsequent piece mapping to determine its data source.
[0067] When the coded identity is restored but the scale corner is still not visible, the corresponding area cannot be directly mapped locally. The processing end searches for neighboring source images that share the same identity. If the neighboring source image contains the complete master code and scale corner, the source image is used to establish the corresponding piece and cover the same circumferential segment. The current image is only used as an auxiliary observation for the seam edge candidate. If all source images lack the complete scale corner, the segment is marked as a non-coded reference area and no actual length value is output. The circumferential start and end positions of the non-coded reference area are defined by the confirmed master code identities at both ends and written into the retest record. After subsequent image re-acquisition, a new complete piece can be inserted according to the same identity without modifying other confirmed circumferential segments.
[0068] When the coding reference is complete but the seam edge is missing due to sealing material, partial occlusion, or brightness saturation, the processing end checks the first edge set and the second edge set along the circumferential coordinates. The measurement lines that are missing the intersection point on either side are formed into a missing area. The missing area is only processed when there are edge pairs verified by overlapping views at both ends. The processing end reads the coordinates of the first side edge, the coordinates of the second side edge, the corresponding coding identity, and the source image identifier of the left and right ends respectively. If the two ends belong to discontinuous coding segments or either end contains only a single unverified observation, the missing state is maintained. When the endpoint conditions are met, the first prediction boundary and the second prediction boundary are constructed according to the extension direction of the edge on the same side in the endpoint neighborhood.
[0069] In a preferred embodiment, let t be the position selected in circumferential order within the missing region, and let its normalized position between the left and right ends be t. The coordinates of the left-side boundary are The coordinates of the right-side boundary are Predict boundary coordinates Calculated using endpoint constraints, the first and second prediction boundaries are respectively used... Two candidate boundaries, defined by endpoints, are obtained at the same circumferential location.
[0070] ;
[0071] Where position t is at the left end When position t is at the right end Take 0 and ,when When taken as 0.5 Located between the coordinates of the same side boundary at both ends, the value taking process only forms the predicted position limited by the verified endpoints. The predicted position must be cross-verified with the actual candidate edges in the adjacent images before it can be registered.
[0072] Furthermore, the processing unit maps adjacent images with shared missing region encoding identities to the expanded coordinate domain, projects the first side candidate points onto the first prediction boundary, and projects the second side candidate points onto the second prediction boundary. After projection, the candidate point arrangement order is checked according to the circumferential coordinates. Candidate points only form supplementary edge pairs if they maintain the same side order when moving along the circumferential direction, the two prediction boundaries do not intersect, and they are respectively connected to the corresponding side endpoints. Each supplementary edge pair saves the corresponding position of the candidate point and the prediction boundary as well as the source image identifier. Positions obtained solely from the endpoint formula but without image candidate point support do not generate supplementary observations. When image candidate points fall on the opposite side prediction boundary, the sides are not exchanged.
[0073] For each circumferential position that can form a supplementary edge pair, the processing end calculates the predicted distance between the first and second predicted boundaries and obtains the actual candidate distance from the adjacent image candidate points. The allowable coordinate ranges of the two are intersected. When there is an intersection, a supplementary seam width sequence is formed according to the continuous order of the intersection boundaries of adjacent circumferential coordinates. When there is no distance intersection at any position, the encoded identity cannot be continuously connected with the previous position, the first predicted boundary crosses the second predicted boundary, or the candidate point arrangement is reversed, the supplementary sequence terminates at that position. The remaining missing area after the termination position remains in the state of waiting for retesting. The already formed supplementary sequence is marked as a supplementary observation and is not confused with the direct repeated observation.
[0074] In this embodiment, the data structure of the measurement results uses the circumferential coding position as the main index. Each index item includes the expanded circumferential coordinates, the coordinates of the first side edge, the coordinates of the second side edge, the actual seam width, the observation type, the source image involved, the local segment identity, and the verification status. The direct repeated observation item also saves the edge intervals and weight levels involved in the weighting. The supplementary observation item saves the two end boundaries, the predicted position, and the source of the candidate edge. The uncoded reference area and the area to be retested only save the start and end coding identities and the reason for not being registered. When outputting the circumferential curve, it is identified by the direct observation, supplementary observation, and the status to be retested respectively. When calculating the maximum and minimum values, the area to be retested is not included as a numerical value to avoid replacing the true seam width with missing values.
[0075] Specifically, after a week of image acquisition is completed on-site, the processing end establishes a cyclic coverage table according to the coded identity. The coverage table displays the number of source images, the number of complete segments, and the double-edge observation status of each coded segment. If there is a segment with only a single image, it can be supplemented according to the coded identity. When a new image enters the processing end, it only needs to identify its main code and match it with the coverage table. The matched segment re-executes the segment mapping and edge verification. Other registered segments maintain the original source images and calculation records. The first and last images of the whole week complete the overlap verification through the pre-stored closure relationship of the starting coded unit and the adjacent coded unit at the end, forming a cyclic data sequence that starts from the top reference and returns to the same reference.
[0076] When continuous mud marks are present on the pipe wall surface, the edges of the mud marks within the candidate band may have strong brightness gradients in local areas. The processing end does not determine the joint based solely on the gradient amplitude. Instead, it checks whether the mud mark contour can form a double edge order towards the two pipe section physical regions on adjacent circumferential measurement lines. It also checks whether the same coded segment appears in the overlapping source image with corresponding first and second intersection point groups. The contour displacement of the mud mark caused by the observation angle usually cannot simultaneously maintain the common range of the coded position, the order of both sides, and the edge interval. Candidate points that cannot satisfy the three relationships are retained in the unpaired set. The true joint edge is entered into the verification result based on the repeated correspondence of the pipe section physical termination position in different fields of view.
[0077] When the pipe wall is wet and specular reflection occurs, brightness normalization uses a stable region inside the coded pattern to establish a local reference, avoiding the bright and dark order of the main coded identity segment from being changed by the full-image highlights. Edge recognition cannot use a mask to mark the brightness saturated area, and gradient points are not added inside the mask. If the reflection only affects one image, other overlapping images of the same coded segment can still provide complete edge pairs. If the reflection covers all source images, the corresponding position enters the edge missing area and only forms a supplementary result when the two ends are repeatedly observed completely, the predicted boundary does not intersect, and there are candidate points in adjacent images. Otherwise, the interval to be retested is output so that brightness anomalies are not mistakenly written as zero width or maximum width.
[0078] When there is local ellipticity on the outer wall of the pipe section or slight axial deflection after installation, two flexible coding reference strips are respectively attached to the surface of their respective pipe sections. The local axial measurement line is determined by the pair of coding points in the same circumferential direction, and the segment mapping is also obtained independently by each local quadrilateral. Therefore, the processing does not require the entire circumference to share an ideal cylinder radius or a fixed axial direction. The cumulative circumferential distance comes from the coding reference of the strip body rather than the arc fitting in the image. Local deflection only changes the mapping coefficient of the corresponding segment. After verification of the common boundary order and corner point re-projection relationship, it can still enter the unfolded coordinate domain. If the local geometric deformation causes the quadrilateral corner point order to intersect, the segment is rejected and enters the non-coding reference area.
[0079] Preferably, before the formal measurement, a self-check of the processing chain is completed using a test piece with known interval boundaries. The test piece is also equipped with double-sided flexible coding reference bands and multiple images with overlapping areas are collected. The processing end sequentially checks the main coding identity, scale corner coordinates, local mapping back projection relationship, common boundary continuity, double edge order and repeated observation slot width. The known interval is only used to check whether the data transmission from the coding scale to the output distance is complete and is not written into the mapping coefficient of the field pipeline. After the field task starts, a new image segment record and circumferential coverage table are established to prevent the edge coordinates or observation weights of the test piece from being brought into the pipeline interface measurement.
[0080] In a preferred embodiment, the processing end saves a replayable record of each seam width calculation. During playback, the source image and its coded segment involved in the calculation can be retrieved from the circumferential position. The original scale corner points, local quadrilaterals, first side candidate points, and second side candidate points are displayed on the source image, and the positions of these points in the unfolded coordinate domain are displayed simultaneously. The direct observation values can be viewed item by item. The correspondence can be viewed for supplementary observations. In relation to candidate edge projection, the playback process reads the saved data without changing the edge identity. If the reviewer determines that the source image is occluded, the corresponding observation can be withdrawn to the pending verification state and supplemented with an image of the same coded segment.
[0081] Furthermore, after sorting the circumferential joint width data by coded identity and unfolded coordinates, a circumferential distribution record of the pipe section interface can be generated. Each value in the record has the coordinates of both sides of the edge and the scale mapping source. The position that exceeds the engineering control range can be located to the corresponding main coded segment and the source image can be retrieved. Multiple consecutive over-limit positions are merged into a segment to be dealt with according to the circumferential adjacency relationship. Isolated over-limit positions retain their repeated observation number and common range for verification. When measuring again after the pipe section is adjusted, the same strip body identity can be used to align the circumferential position before and after the adjustment. However, the images, segment mapping and edge observations of the two tasks are saved separately to avoid directly replacing the measurement results of the new task with the coordinates of the old task.
[0082] In this embodiment, the complete processing chain uses a dual-sided encoded identity to run through image acquisition, surface unfolding, edge recognition, overlap verification, missing data processing, and result tracing. Any seam width value must have a resolvable circumferential identity, a local scale mapping through back projection and common boundary checks, dual edges that maintain the order from entity to seam and back to entity, and an observation source that meets the registration conditions. If any of these data is missing, only the state of the corresponding segment is recorded and no actual width is generated. The circumferential continuity relationship is used to limit edge identity and supplement intervals but does not replace local image evidence. The final integer data consists of direct repeated observations, supplementary observations constrained by endpoints and candidate points, and clearly defined intervals to be retested.
[0083] Please refer to Figure 3 In one embodiment, the image segment record also stores the imaging direction identifier. The imaging direction is determined by the direction boundary of the main coded pattern and the line connecting the paired corner points on both sides. When the acquisition device moves around the pipe and causes the image to rotate, the processing end first unifies the identity order of the same strip body to the circumferential positive direction according to the main coded direction, and then unifies the direction from the first pipe section to the second pipe section to the axial positive direction according to the paired corner points on both sides. Only after the direction is unified can the image enter the local quadrilateral structure. If the main coded direction and the paired direction on both sides form a mirror order, the image is marked as having a direction conflict and is prohibited from participating in edge verification. This ensures that the images from the top, side and bottom of the pipe use the same side and circumferential order in the unfolded coordinates.
[0084] Preferably, the main coding corner point localization adopts a hierarchical relationship from the outside to the inside. The processing end first identifies the closed outer boundary of the main coding graphic and determines the directional boundary. Then, it parses the identity fragment within the area defined by the outer boundary. Subsequently, it searches for scale corner points at predetermined topological positions on both sides of the outer boundary. The scale corner point candidates must form a non-intersecting arrangement with the main coding center and maintain the same directional order as the corner points of adjacent coding units. When the identity fragment is visible but the outer boundary is damaged, only an unconfirmed identity is generated. When the outer boundary is complete but the scale corner point is missing, the circumferential segment can be confirmed without generating a size segment. The three types of recognition states are written into the segment record respectively, so that the coded identity recovery and scale mapping establishment adopt different evidence thresholds.
[0085] Specifically, brightness classification establishes grayscale references for each local segment. The reference areas are taken from predefined bright and dark areas in the coding band. The processing end corrects the brightness span within the segment based on the sorting relationship of the two types of references and retains the original gradient direction in the seam candidate band. If the order of bright and dark areas is reversed due to reflection, the brightness evidence of the corresponding segment is marked as unusable, but geometric coding can still be used for coordinate mapping. Edge recognition then reads other source images of the same coding segment. After geometric mapping and brightness recognition are registered separately, local lighting anomalies will not rewrite the coding scale, and local coding contamination will not allow the brightness features of the dark seam line to impersonate an identity segment.
[0086] In a preferred embodiment, the first edge set and the second edge set are generated by combining the symbol order of the axial grayscale profile with the continuation of the circumferential texture. The processing end reads the grayscale change position within the candidate band on each axial measurement line. The change from the solid area of the first tube section to the low-brightness seam area is recorded as the first type of transition, and the change from the low-brightness seam area to the solid area of the second tube section is recorded as the second type of transition. Then, candidate points with close positions and the same transition type in adjacent measurement lines are connected as edge segments. Only when the first type of edge segment and the second type of edge segment extend relative to each other within the common circumferential range are edge pair candidates formed. Short closed textures are retained as isolated segments because they cannot cross the common circumferential range.
[0087] Furthermore, when the sealing material is visible inside the joint and forms an additional bright edge, the processing end may read multiple transitions along the axial direction from the solid to the dark area, from the dark area to the sealing material, from the sealing material to the dark area, and from the dark area to the solid. At this time, the first edge is defined as the outermost termination position away from the first pipe section solid, and the second edge is defined as the outermost starting position entering the second pipe section solid. The intermediate transition is only saved as the internal texture of the joint and does not participate in the width calculation. This definition also needs to maintain the same encoding position and the order of both sides in the overlapping image. If a bright edge moves with the reflection of the sealing material surface at different viewpoints, it cannot replace the stable termination boundary of the solid on both sides.
[0088] In this embodiment, the overlapping relationship can be represented as an image association graph with the source image as the node and the shared master coding identity as the connection. Each connection records the shared coding set and the circumferential range that can be jointly mapped. The processing end starts from the image containing the starting circumferential reference and extends along the shared identity. Only when both ends of the connection pass the common boundary order check is the new image added to the current circumferential coverage chain. When two different connection paths reach the same image, the coding identity order and the expanded coordinate range given by the two paths are compared. If they are consistent, a closed mutual verification is formed. If they conflict, the conflicting connection is isolated and the path that can return to the starting reference is retained to prevent a single misidentified code from misaligning multiple subsequent fields of view as a whole.
[0089] When there are more than three source images at the same circumferential location, the processing end first forms an observation set based on the coded corner re-projection status and double-edge integrity status of each image. Then, it calculates the central candidate range based on the arrangement order of the edge intervals. Individual intervals located on both sides of the candidate range and not sharing common coverage with other observations are not included in the weight calculation, and the observations are retained. It only expresses the geometric and marginal evidence level, not whether the on-site seam width is acceptable, and the calculated value is... All retained and excluded observation identifiers are written into the playback record, which can distinguish between three states during review: numerical fusion, candidate exclusion, and missing source image.
[0090] In a preferred embodiment, when the flexible coding reference band experiences local warping due to insufficient bonding, the scale corner points of the warped area exhibit image displacement relative to adjacent corner points that cannot be explained by the continuity of the common boundary. The reprojection positions of the forward and reverse mappings also cannot maintain the correspondence of the same corner points. Based on this, the processing end rejects the local segments enclosed by the warped corner points and checks whether adjacent source images completely present the same coding segment from another viewing direction. If all source images show the same warped geometry, the segment is registered as a reference band bonding abnormality and re-bonding is required. Scale extrapolation cannot be performed across this segment using adjacent normal segments.
[0091] Specifically, the seam width is taken as the difference in the unfolded coordinates of the measurement lines along the local axis of the two physical termination boundaries. The local axis is determined by the paired coded corner points on the opposite side, not by the horizontal axis of the image. Therefore, when the camera image is tilted, the distance is still calculated along the pipe section docking direction. If the direction of the line connecting the double-sided coded points at the same circumferential position changes continuously with the line connecting the adjacent positions, then each measurement line follows its local direction. When generating the circumferential curve, the processing end only compares the actual distances obtained at each position and does not force the measurement lines to be parallel to each other. If the line connecting the paired corner points changes abruptly and causes the measurement lines to cross, then the corresponding segment cannot pass the common boundary order check and enters the no-reference state.
[0092] Furthermore, the on-site location of the interval to be retested is determined by the primary coded identities at both ends of the interval. The output record can display the circumferential range from the left-end coded unit to the right-end coded unit and the reason for the missing information. When re-shooting, the acquisition device only needs to simultaneously capture at least one of the identities at both ends and the coded units in the missing area. After identity resolution, the new image is automatically aligned with the original coverage table. If the re-shot image provides full-scale corner points and double edges, the corresponding interval will switch from the retesting state to the direct repeat observation process. The supplementary observations that originally relied on predicted boundaries are recalculated and version associations are retained after obtaining direct evidence from both fields of view, avoiding the new evidence from being listed alongside the old supplementary results as duplicate values.
[0093] In this embodiment, a circumferential integrity check is performed before the results are published. The processing end verifies the starting code identity and closing position, the common boundary of each local segment, the order of the edges on both sides of each circumferential position, the number of direct observation sources, the relationship of supplementary observation endpoints, and the boundary of the interval to be remeasured. The check records and measurement data use the same coded master index. If there is no source seam width, inverted edge side, supplementary interval crosses the uncoded reference area, or the first and last identities cannot be closed, the generation of complete circumferential curves is stopped, but the verified segments and erroneous positioning information are retained. Only after the status in the coverage table corresponds to each segment in the result table is a seam width distribution record for construction verification generated.
[0094] Preferably, the construction verification record includes pipe section interface identification, coding benchmark table version, image acquisition batch, circumferential position, actual joint width, observation type, and re-measurement status. The interface identification is used to distinguish the connection positions of different pipe sections, the coding benchmark table version is used to explain the identity and actual distance, and the image acquisition batch is used to distinguish the measurement before and after adjustment. No field replaces the source image and local patch evidence. When the record is exported, it is arranged continuously according to the circumferential position, and the uncoded benchmark area and the area to be re-measured are inserted into the corresponding position in the interval state, so that the reader will not mistake the curve breakpoint for the absence of a joint, nor will the supplementary observation be mistaken for a direct repeated measurement with two complete images.
[0095] In one embodiment, after measurement, the reference relationship between the original image, the encoding recognition result, the segment mapping coefficient, the edge candidate set, the verification result, and the publication record is retained. The original image is not covered by the unfolding process. The unfolded image is used as derived data to save its source image identifier and local segment identity. The edge candidate points save the correspondence between the original pixel coordinates and the unfolded coordinates. The seam width record saves the edge pairs involved in the calculation and the values of the formula variables. If a primary encoding identity is found to be parsed incorrectly during subsequent checks, the affected segments and circumferential results can be located along the reference relationship and the verification process can be re-entered without reinterpreting the unaffected integer segments as unknown.
[0096] In this embodiment, the generation density of circumferential measurement lines is determined by the effective segment range in the unfolded coordinate domain. The processing end establishes a set of measurement lines in each segment according to continuous circumferential coordinates, and retains only one measurement position with the same name at the common boundary of adjacent segments. The shape of the measurement line in the original image is obtained through reverse mapping, so it can pass through the seam candidate band along the local pipe axis. If the reverse-mapped measurement line goes beyond the local quadrilateral, passes through the uncoded reference mask, or cannot reach the two side entity regions at the same time, the corresponding circumferential coordinates will not enter the edge extraction. The range of usable measurement lines in the segment along with the coded identity is written into the coverage table to avoid forming false narrow seams with incomplete candidate bands at the image edge.
[0097] Furthermore, the edge candidate set stores the transition type, circumferential texture fragment, source image, local patch, and axial measurement line of the candidate point. When forming an edge pair to be verified, it only connects the relative transitions of the same source image and the same measurement line. After entering the overlap verification, it compares the corresponding edges of different source images based on the shared coding identity. The processing end does not directly combine the first-side candidate and the second-side candidate from two images into an edge pair, ensuring that each basic interval has complete two-sided entity evidence in a single image. The cross-image relationship only undertakes identity confirmation and scale result mutual verification. When the source image is missing any edge on either side, it remains a one-sided observation and waits for the missing area to be processed.
[0098] In a preferred embodiment, when the two measurements before and after interface adjustment use the same set of flexible coding identities, the processing end establishes task identifiers and keeps the segment mapping independent. When comparing, the position correspondence is established based on the main coding identity and the circumferential unfolding coordinates. The positions that are directly repeated observations in both tasks are formed into a comparable set. The change amount is not calculated for any position that belongs to the state to be remeasured or without coding reference. Supplementary observations are only displayed side by side in an independent state. The adjustment record can thus be traced back to the source image, edge coordinates and scale mapping of each task. The previous segment coefficient or observation weight will not be copied to the next image because the coding position is the same.
[0099] Specifically, before the record is written, a consistency check is performed on the formula variables. In the mapping calculation, i must correspond to the local patch identity covering the pixel; in the fusion calculation, j must correspond to the unique circumferential measurement position; k must be able to be retrieved from the source image that participated in the verification; and in the missing area calculation, t must be within the range limited by the coded identities at both ends. If any variable index cannot be parsed to the actual record, the corresponding value is stopped from being published. The formula calculation result retains both the input coordinates and the actual distance after the calculation, so that the value is not a separate field that is detached from the relationship between the image and the code. During subsequent data migration, the integrity of the record can also be verified based on the index relationship.
[0100] Preferably, the processing end generates a state transition record for each circumferential segment. The segment enters the identified and coded state from the uncollected state, and then enters the mappable or non-referenced state according to the integrity of the scale corner points. The mappable segment enters the pending verification, direct repeated observation, or edge missing state according to the integrity of the double edges. The edge missing state only enters the supplementary observation state when the three conditions of double endpoints, predicted boundary, and adjacent image candidates are met. If the conditions are interrupted, it enters the pending retest state. The trigger basis and time sequence of the state transition are saved. Finally, the circumferential distribution can only read the values in the direct repeated observation and supplementary observation. Other states are output with interval identifiers.
Claims
1. A method for measuring butt joint width of PCCPDE pipe based on image recognition, characterized in that, include: Flexible coded reference bands extending circumferentially are set on the outer walls of pipe sections on both sides of the docking seam, and image sequences covering the docking seam with overlapping areas in adjacent fields of view are collected. Identify the coding points in the two flexible coding reference bands, and establish a piecewise mapping from each image to the pipeline circumferential expansion coordinate domain based on the paired coding points; Extract the edges on both sides of the butt joint from the unfolded image, form edge pairs along the axial measurement lines determined by the paired coding points, and verify the edge pairs by the repeating edges of the overlapping area and the edge continuity relationship of adjacent circumferential positions; The actual distance between verified edge pairs is calculated based on the segmented mapping, and circumferential seam width data associated with the coded point identity and the source image is generated.
2. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 1, characterized in that, Both flexible coding reference bands include coding units arranged sequentially along the length of the band. Each coding unit includes a main coding graphic that expresses the identity of the circumferential segment and scale corner points located on both sides of the main coding graphic. The main coding graphics located on both sides of the joint and corresponding to the circumferential position have a pairable identity relationship, and the line connecting the scale corner points of the paired main coding graphics defines the axial direction of the pipe. The known band distances between adjacent coding units, the known distances between scale corner points within the same coding unit, and the pairing relationships between two flexible coding reference bands are written into the coding reference table for use in the identification of coding points in the image and for local size conversion.
3. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 1, characterized in that, Establishing the segmented mapping includes: according to the circumferential segment identity of the main coding pattern, forming a local quadrilateral on the image side by adjacent pairs of coding points in the two flexible coding reference bands, and constructing a rectangular grid corresponding to the local quadrilateral in the circumferential expansion coordinate domain of the pipeline. Based on the correspondence between the vertices of the local quadrilaterals and the vertices of the rectangular mesh, a local mapping is obtained, and the pixels falling into the common boundary of adjacent local quadrilaterals are mapped to the expanded coordinate domain respectively. Apply the same-name coding point coincidence constraint to the mapping coordinates on both sides of the common boundary, and form a piecewise mapping set covering the candidate area of the docking seam with the constrained local mapping.
4. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 3, characterized in that, Extracting and verifying the edge pairs includes: forming the nodal seam candidate region in the unfolded image based on the strip region between the two flexible coding reference bands, identifying the brightness gradient direction and texture continuity direction of the candidate region, and obtaining a first edge candidate set and a second edge candidate set that are respectively oriented toward the pipe section entity region; Along each axial measurement line, candidate points with opposite gradient directions and compatible grayscale transition order are selected from two edge candidate sets to form an edge pair to be verified; The edge pairs to be verified are projected onto the same coded segment of adjacent images, and only the positions of the measurement lines with corresponding edge pairs in the overlapping area are registered.
5. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 2, characterized in that, The identity resolution of the encoded points includes: identifying the visible encoded segments and scale corner points of the main encoded graphic respectively, and generating a candidate identity sequence according to the arrangement order of the main encoded graphic on the same flexible encoding reference band; Align the candidate identity sequence on one side of the seam with the candidate identity sequence on the other side according to the pre-stored pairing relationship, and limit the candidate identity of the occluded main coding graphic by the identity order of the adjacent identified main coding graphics. When the visible coded segment of the main coded graphic is consistent with the defined candidate identity, and the geometric order of the corresponding scale corner points does not intersect, the identity and scale corner point coordinates of the main coded graphic are registered; otherwise, the corresponding image region is marked as a region without a coded reference.
6. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 3, characterized in that, The set of segmented mappings includes: calculating a forward mapping from image coordinates to unfolded coordinates and a reverse mapping from the unfolded coordinates back to the image coordinates for each local quadrilateral, and matching the re-projection position of the encoded point after the forward mapping and the reverse mapping with the original encoded point position; On the common boundary of adjacent local quadrilaterals, boundary sampling positions determined by corner points of the same scale are set, and matching is performed according to the circumferential coordinate order after the two sides of the common boundary are mapped to the unfolded coordinates; Only local mappings that maintain the correspondence between encoding points at the re-projection positions and have the same sampling position order at the common boundary are added to the segmented mapping set, and the encoding segments covered by each local mapping are recorded.
7. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 4, characterized in that, Verifying the edge pairs in the overlapping region includes: aligning the same circumferential segment from different images according to the identity of the master encoded graphic, and extracting the intersection of the axial measurement line with the first edge candidate set and the second edge candidate set in the unfolded coordinates of each image; The first intersection points of the corresponding measurement lines in different images are grouped into a first intersection point group, and the second intersection points are grouped into a second intersection point group. The discrete relationship of the intersection points in each group along the axial direction is calculated. When the first intersection group and the second intersection group maintain the same bilateral order, and the edge intervals formed by the two intersection groups have a common range, the edge intervals within the common range are registered as repeated observation results of the circumferential segment.
8. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 7, characterized in that, Verification of edge missing areas includes: dividing the axial measurement line that is continuously missing the first side intersection point or the second side intersection point into missing areas, and reading the edge pairs that have been verified by overlapping at both ends of the missing areas and their corresponding coded segments; The first and second prediction boundaries are constructed according to the extension direction of the edges on the same side at both ends in the unfolded coordinates, and the edge candidate points mapped to the missing area in the adjacent images are projected onto the corresponding prediction boundaries. Only when the candidate points are arranged in the same order along the circumference as the predicted boundary, the two predicted boundaries do not intersect, and the predicted boundaries are connected to the endpoints on the same side, will the edge pair formed by the candidate points be registered as a supplementary observation result, and the supplementary observation source identifier be retained.
9. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 7, characterized in that, The formation of the repeated observation results includes: for the case where there are multiple common ranges within the same coding segment, reading the coordinate deviation of the coding points in each source image after being back-projected after being mapped by segmentation, and obtaining the axial discrete relationship of the corresponding first intersection group and second intersection group; Multiple common ranges are sorted according to the combined order of the coordinate deviation and the axial discrete relationship, and the common range in the middle of the sort is taken as the candidate seam width interval. Each edge interval falling into the candidate seam width range is arranged according to the circumferential coordinates of the corresponding axial measurement line, and the seam width record of the coded segment is determined by the common coverage of adjacent edge intervals, while the source image identifiers involved in the determination are associated.
10. The method for measuring the width of a PCCPDE pipe butt joint based on image recognition according to claim 8, characterized in that, The registration of the supplementary observation results includes: defining the supplementary interval by the identity span between the corresponding coding units at both ends of the missing region, and extending the first prediction boundary and the second prediction boundary to the same-name circumferential coordinates within the supplementary interval; For each circumferential coordinate, calculate the distance between the two predicted boundaries and establish the intersection with the distance of the candidate edge pairs mapped to that circumferential coordinate. Form a supplementary seam width sequence according to the continuous order of the intersection boundaries of adjacent circumferential coordinates. When there is no distance intersection at any circumferential coordinate, the encoded identities on both sides cannot be continuously connected, or the predicted boundary intersects, the supplementary seam width sequence is terminated at that circumferential coordinate, and the remaining interval after termination is registered as the interval to be retested.
