A steel structure weld surface defect visual identification method

By acquiring illumination images from different directions on the surface of steel structure welds, fixing the weld toe path and candidate areas, determining the image correspondence using matching points outside the protected area, and selecting reference features and predicting response ranges in conjunction with real prototypes, the problems of reflective migration and weld toe attribution ambiguity are solved, and accurate identification of undercut and surface porosity on the weld surface is achieved.

CN123181433APending Publication Date: 2026-11-27XUZHOU DONGDA STEEL CONSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611667919.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing visual inspection methods for identifying surface defects in steel structure welds suffer from problems such as reflection migration, ambiguity in weld toe attribution, and interference from normal reference adjustments on genuine defect evidence, making it difficult to effectively distinguish between observable and unobservable image evidence.

Method used

By acquiring images of the same weld area under time-division lighting in different directions, fixing the weld toe path and candidate area, establishing candidate versions and recording the image source, determining the image correspondence using matching points outside the protected area, fixing the position error range, selecting reference features and predicting the response range in combination with the actual prototype, avoiding image adjustment for verification, and using retaken images to change the candidate version and re-verify.

Benefits of technology

It enables accurate identification of undercut and surface porosity on weld surfaces without relying on image adjustments, avoiding interference from reflections and lack of evidence, and improving the accuracy of weld surface defect identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181433A_ABST
    Figure CN123181433A_ABST
Patent Text Reader

Abstract

The application discloses a kind of steel structure weld surface defect visual identification methods, comprising: obtaining directional illumination image, fixed weld toe path and the sampling component of candidate area;With the protection area of covering sampling component and continuous weld toe corridor, the range of solving image corresponding relationship is limited;Fixed reference feature and the predicted response range of sample prototype, obtain directional response using verification image not involved in the above determination process;Combining observation state, identify undercut and surface open porosity, output defect position, no target defect is found or insufficient evidence;According to the loss of directional response or category determination conflict, combined with the difference between predicted and supplemented, when the image involved in changing candidate version is no longer used as the verification image of new candidate version for the first time.The application fixes the object to be verified and limits the use of image sources to suppress the change of real defect evidence caused by reflection migration and reference adjustment, and retains the supplementary observation path of missing evidence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image recognition and visual inspection of steel structure weld surfaces, and in particular to a method for visually recognizing defects on the surface of steel structure welds. Background Technology

[0002] After welding and before painting, the weld surfaces of steel beams, columns, and connecting plates need to be inspected. Butt welds and fillet welds typically retain welding ripples, localized oxidation, and aesthetic differences. Undercut may also appear near the weld toe, and surface porosity may be present in the weld body and transition zone. Even after removing loose weld slag, the reflective properties of the weld surface, localized obscuring, and joint geometry can still cause variations in observable conditions at different locations.

[0003] Existing visual inspection methods can identify weld areas through image segmentation and then extract anomalies based on grayscale, shape, or learned features. Multi-directional illumination can also be used to alter the surface appearance of defects. While different directional illuminations can supplement surface information, bright spots and shadows at the same physical location may migrate with the illumination direction. If the most similar bright and dark structures are re-searched in images illuminated by different directions, or if image registration is adjusted using structures within candidate regions, image responses at different physical locations may be associated with the same defect evidence.

[0004] Furthermore, unclear local boundaries at the weld toe can cause ambiguity in attribution between the base metal notch and the normal troughs within the weld body. If recurring textures in the current weld are directly used as normal references, continuous undercuts may be involved in determining the normal reference; if candidate positions or normal references are continuously adjusted based on the same image during verification, the verification result may simply be the result of parameter adjustments. Real defects may still exist within highlighted areas; directly deleting highlighted areas or treating areas without valid evidence as defect-free areas cannot solve the above problems.

[0005] Therefore, when there is uncertainty in the location of the weld area and the correspondence across illumination, it is necessary to maintain the spatial objects to be verified and the basis for comparison, distinguish between unusable observations and original image evidence that can support the judgment, and conduct supplementary observations based on the specific missing evidence in order to identify and locate visible undercuts and surface openings and pores. Summary of the Invention

[0006] Therefore, this application provides a visual identification method for surface defects in steel structure welds to solve the problems of reflection migration, ambiguity in weld toe attribution, and interference of normal reference adjustment with real defect evidence.

[0007] A method for visually identifying surface defects in steel structure welds includes: Acquire directional lighting images of the same weld area under time-division lighting in different directions, determine and fix the weld toe path and candidate area, fix the sampling components of the candidate area according to the weld toe path, establish candidate versions and record the image source; The protection zone is formed by the continuous corridor of the sampling component and all weld toe paths. The image correspondence is determined and fixed only by the matching points outside the protection zone, and the position error range is determined and fixed. The reference features are determined and fixed by the directional illumination image of the candidate area and the image area shared by each weld toe path outside the protection area. The predicted response range is selected and fixed from the pre-stored real sample prototype. During the same weld inspection, the normal reference record is not updated using the weld to be inspected, and the alignment parameters are not adjusted or the applicable real sample prototype is not selected using the verification image.

[0008] The directional illumination image that was not involved in the determination of the sampling component, weld toe path, reference feature and predicted response range is selected as the verification image. According to the image correspondence, the directional response and observation status of the sampling component are obtained within the position error range. It is compared with the reference feature and predicted response range. Combined with the weld toe path, the detection results are output for the presence of undercut or surface opening pores and their locations, and for the absence of target defects or insufficient evidence within the effective observation range. For candidate regions with insufficient evidence, lighting or exposure conditions are selected for supplementary shooting based on missing directional responses or conflicting category determinations, combined with the prediction differences of the actual prototype. The supplementary images are used to create new candidate versions when the sampling components, weld toe paths, reference features, or predicted response ranges are changed. The supplementary images are not used as verification images for the new candidate versions, but are re-verified by other verification images. If there are no other verification images, the output is "insufficient evidence".

[0009] Based on the above technical solution, the sampling components and the continuous corridor of all retained weld toe paths define the computational support for image correspondences, and the brightness shift within the candidate region does not participate in the fitting of image correspondences. The verification image provides directional response within a fixed sampling component and positional error range, and the verification image becomes supporting evidence without moving the sampling components or adjusting the reference features.

[0010] The reference features and predicted response range remain unchanged within the current candidate version. When the supplementary image changes these features, a new candidate version is formed, and the verification purpose of the supplementary image is changed. Therefore, the image used to establish the object to be verified is distinguished from the image used to verify the object to be verified, avoiding duplicate counting of the fitting results of the same image as verification evidence.

[0011] Reflections and missing evidence are recorded in the corresponding sampling component and lighting direction, rather than being used to directly delete candidate areas. Sampling components that can continue to be observed participate in identification, while sampling components that cannot obtain the required evidence trigger corresponding lighting or exposure adjustments; when a reliable judgment cannot be made, insufficient evidence is output, and the position of the candidate area and the unobserved area are retained. The above processing preserves a path for verifying the coexistence of real defects and reflections, as well as continuous edge bite. Attached Figure Description

[0012] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an undue limitation of this application.

[0013] Figure 1 This is a flowchart illustrating a method for visually recognizing surface defects in steel structure welds provided in this application.

[0014] Figure 2 This is a schematic diagram showing the relationship between the weld body, base material, weld toe path, candidate area, and protected area provided in this application.

[0015] Figure 3 This is a schematic diagram of the sampling component with bite-edge and surface opening vents provided in this application.

[0016] Figure 4 This is a schematic diagram showing the relationship between matching points outside the protected area, image correspondence, and positional error range provided in this application.

[0017] Figure 5 This is a flowchart illustrating the process of reshooting, candidate version changes, and qualification verification provided in this application. Detailed Implementation

[0018] The technical solution of this application will be further described below with reference to the accompanying drawings. The acquisition parameters, judgment thresholds, and example inputs in the following embodiments are only used to illustrate the processing relationships.

[0019] Example 1 This embodiment describes the overall process of a visual recognition method for surface defects in steel structure welds. In one possible implementation, such as... Figure 1 As shown, this method is applied to Q235 or Q355 steel beams, columns, and connecting plates that have cooled and had loose weld slag removed, focusing on butt welds and fillet welds after welding and before painting. Inspection preserves normal ripples, localized reflections, slight oxidation, and localized obscuration, without requiring an ideally smooth surface. Target defects are undercut and surface porosity; internal defects, true depth, and weld strength are not determined based on surface images.

[0020] Directional illumination images are original images of the same weld area acquired under recorded illumination directions and exposure conditions. Each directional illumination image records the workpiece identifier, complete weld identifier, acquisition area identifier, original image identifier, light source direction, exposure time, gain, trigger time, and calibration version. Derived images used for distortion correction, normalization, or display retain the original image identifier and are not counted as new observations.

[0021] The weld toe path represents the interpretation of the retained weld toe positions; multiple weld toe paths can be retained when the boundary on the same side is unclear. The candidate region is the area to be verified proposed from the original contour or light / dark structure; the candidate region is not pre-equated with a defect. The sampling component is the sampling location and range determined based on the candidate region and weld toe path. The current candidate version saves the candidate region, weld toe path, sampling component, protection region, reference features, predicted response range, image source, and processing status; this candidate version is a record of parameters and usage, not a separately established prediction model.

[0022] Step 101: Acquire directional lighting images, determine and fix the weld toe path and candidate region, fix the sampling component and record the image source.

[0023] An industrial camera and four-directional time-division illumination are used for data acquisition. The initial azimuth angle of the illumination direction can be 0 degrees, 90 degrees, 180 degrees, and 270 degrees, and the incident elevation angle can be 45 degrees. The camera uses a fixed focal length, fixed gain, and global shutter, sequentially illuminating individual light sources and recording exposure parameters. The nominal object surface sampling interval can be set to 0.03 mm per pixel, with a narrow 0.3 mm aperture as the initial verification size, and the aperture projection is checked under oblique viewing conditions to ensure that it still has at least six effective pixels.

[0024] For butt welds, the field of view covers the weld body, both weld toes, and adjacent base metal; for fillet welds, the geometric relationships are recorded separately for the two visible base metal surfaces. The invisible back side is not included in the effective observation range. The workpiece and camera remain within the calibrated range of motion during image acquisition. If the motion exceeds the coarse correspondence range allowed by the installation repeatability, the workpiece is repositioned or resampled. Bright spots within the candidate area are not used to search for large displacements.

[0025] Each directional illumination image generates a weld area and candidate areas separately, without first averaging the four images. The directional illumination image used to propose the same candidate area is recorded as the source for that candidate version. If a single image can determine the sampled part, that single image is used; if two images are required, both are recorded as sources. Candidate areas proposed by different directional illumination images are initially retained as independent sources, and duplicate positions are merged after verification, without rewriting the already fixed original contour.

[0026] Step 102: The sampling component and the continuous weld toe corridor constitute a protection area, and the image correspondence and position error range are determined outside the protection area.

[0027] like Figure 2 and Figure 4 As shown, the union of all sampled components corresponding to the retained weld toe paths and the continuous corridors extending along the weld toe paths is taken and expanded outward to form a protection region. The protection region covers the continuous weld toe segments that have not yet formed discrete candidate regions, thus not based on whether the anomaly is sparse. The protection region is not a defect mask, and points outside the protection region are not considered normal points.

[0028] Image correspondence is determined only using matching points outside the protected area that meet predetermined distribution and residual conditions. The location error range is determined using matching residuals, group prediction bias, and offline calibration error. The image correspondence and location error range are fixed during the current verification process. Verification images can utilize matching points outside their own protected area to obtain the correspondence between the image coordinates of the discovered candidate region according to a predetermined transformation form, but the matching point selection rules, transformation form, or error threshold must not be changed based on the verification response within the candidate region.

[0029] Step 103: Determine and fix the reference features and the predicted response range.

[0030] Reference features are derived from independently verified normal weld samples, including normal transition, texture direction, repeating spacing, and directional response. Supports used for alignment and radiation offset determination in the current image are the intersections of the corresponding base material regions or weld body regions outside the protected area, under all preserved weld toe paths. Alignment parameters for normal reference records are determined solely from directional illumination images that identify candidate regions; verification images are not involved in selecting favorable normal reference records or alignment positions.

[0031] The prototype preserves the sampled component responses and spatial order of real samples under different lighting directions. Categories include normal transitions, normal textures, edge defects, surface openings, pores, dirt, and non-target surface anomalies such as splashes. Applicable prototypes are selected based on contours, scale, single-image comparisons, and joint information in the directional illumination images of candidate regions. The predicted response range is determined by the response center and calibration tolerance of the prototype. Different prototypes are kept separate; the first wall response of one prototype cannot be combined with the second wall response of another prototype for the same interpretation.

[0032] Step 104: Obtain the directional response and observation status using the verification image, and output the detection result.

[0033] Verification images should not have been used in determining the sampling components, weld toe paths, reference features, or predicted response range of the current candidate version. The purpose distinction of verification images does not imply statistical independence, but rather restricts the use of the same image to first modify the object to be verified, and then provide confirmation for the modified object. Directional illumination images that identify candidate regions can serve as one end of a relative directional difference, while the other end should contain valid observations that qualify for verification of the current candidate version.

[0034] Based on the image correspondence, fixed sampling components are mapped, and the saturation, noise, blur, resolution, occlusion, and illumination direction are checked to see if they support the required response. The observation status is recorded as available, unavailable, and undetermined; if shadows, specular dominance, or true dark openings cannot be distinguished, it is recorded as undetermined. Only sampling components with an available observation status are used to obtain the corresponding directional response; missing directional responses are not filled with zeros and are not considered normal criteria. That is, missing directional responses are not used as a basis for rejection and do not affect rejections made based on other available sampling components.

[0035] The directional response is compared with the predicted response range of the reference feature and the same prototype, and the weld toe attribution and spatial order of the sampled components are verified. Detection results for the presence of a target defect include the target defect category, original image coordinates, and positional error range; detection results for no target defect are only for areas meeting the observation conditions and verified size ranges; insufficient evidence is output when necessary evidence is lacking or unresolved conflicts exist. When one defect is found but other areas are obscured, the defect location and unobserved area are output separately; the entire field of view cannot be considered a single conclusion.

[0036] Step 105: Based on the missing direction response or category determination conflict, combine the prediction difference supplementary shooting, process the candidate version changes and re-verify.

[0037] like Figure 5 As shown, before reshooting, the candidate version, the sampling components involved in the missing directional response, the branching area of ​​the weld toe path causing category determination conflict, the physical prototype that needs to be distinguished, and the proposed lighting direction and exposure level are fixed. The action is selected from the existing four directions and the calibrated exposure level. By default, the camera is not moved. Each round can acquire images of a maximum of two relevant directions, and the same physically problematic area can be captured in a maximum of two rounds. Overlapping image areas share the reshoot count. Adding a new candidate identifier or candidate version does not reset the count.

[0038] When re-taken images are used only to measure fixed sampled components, the observation status is checked and the images are added to the verification record of the current candidate version. When re-taken images are used to change sampled components, weld toe paths, reference features, or predicted response ranges, a new candidate version is saved and the purpose of creating the re-taken image is recorded. The re-taken image must not be used as the verification image for the new candidate version. The verification eligibility of other original images is re-checked according to the new candidate version; if there are no other qualified verification images, the evidence is temporarily recorded as insufficient. A new verification image is obtained if there is still a budget and an executable re-taken configuration exists; otherwise, the re-taken image is terminated and the evidence is recorded as insufficient.

[0039] Example 2 Building upon Example 1, this example further illustrates image calibration, region recognition, and offline acquisition of the prototype. The offline process is separate from the actual detection; the actual category of the sample and surface measurement data are not used as input for online recognition.

[0040] Step 201: Establish data collection and calibration records.

[0041] The system acquires responses from a fixed workstation under conditions of darkness, ambient light (when the lights are off), known exposure levels, and stable reflective samples. This yields information on the camera's linear region, dark level noise, inhomogeneity within the light source field, and the direction of the light source. The raw pixels are first subtracted for the corresponding exposure's dark level and ambient component, then divided by the exposure time, calibration gain factor, and illumination field correction factor to obtain the relative radiative response. Saturated pixels are only marked and not attempted to be recovered. Ambient light measurements are part of the workstation calibration or image group validity check, not for reshooting difficult areas.

[0042] The relative radiation response is used only within the camera's linear range. If ambient light changes exceed the calibration tolerance, lights fail to illuminate as instructed, or exposure metadata is inconsistent, the corresponding image becomes invalid. A coordinate mapping is maintained between the original directional illumination image and the distorted image to allow the identified contours to be written back to the original image. The permissible pose of the camera and workpiece, the weld reinforcement range, and interpolation errors are recorded using calibration samples and used for subsequent position error range calculations, rather than estimating the true defect depth online.

[0043] Step 202: Establish the relationship between training samples and output for region recognition.

[0044] Images of complete workpieces or complete welds are organized into groups, with different cuts, adjacent positions, and lighting conditions for the same weld all kept within the same data partition. Training labels include the weld body, two base metal surfaces, background, occlusions, and visible weld toes; when the weld toe position cannot be precisely determined, an allowable range is marked, and uncertain pixels are not rigidly labeled as a specific base metal surface. Real-world defect instances, visible hole edges and trench walls, normal irregular textures, stains, and spatter are also labeled; reflective labels and defect labels are saved separately.

[0045] Region recognition can employ a shared image encoder and three output branches: region segmentation, weld toe boundary, and occlusion. The input consists of a single normalized directional illumination image, an effective pixel mask, and illumination direction and exposure codes; the outputs are the probability of each region category, the probability of weld toe boundaries, and the probability of occlusion. The encoder extracts local edge and texture features step-by-step, and the decoding branch restores the features to the input coordinate scale.

[0046] Training objectives include the cross-entropy and overlap error of effective region pixels, weld toe boundary distance error, and occlusion classification error. The weld toe uncertainty range only constrains the boundary prediction to fall within the allowable range; it does not forcibly convert the weld toe uncertainty range into a single boundary label. Each error is normalized based on the number of effective samples, and its weights are selected and fixed on the independent validation set. During detection, only the trained parameters are used; the actual label of the workpiece to be inspected is not obtained, and the region recognition parameters are not updated online based on the current verification results.

[0047] Step 203: Establish normal reference records and physical prototypes.

[0048] Features are extracted from real samples that have been manually inspected and, where necessary, confirmed by surface microscopy or profilometry. Surface measurements are used only for offline label verification. Normal reference records are grouped by joint type, welding process, weld width, base metal surface orientation, oxidation appearance, and image scale, preserving the directional response of normal transitions, texture direction distribution, autocorrelation peak spacing, and their dispersion.

[0049] For each category of real-world samples, the component responses to illumination images from different directions are recorded according to the sampling component classification method consistent with online detection. A complete illumination configuration includes the response type, identification of all light sources involved in the calculation, and exposure levels; the differential response of a pair of lights and the projected response of two pairs of lights are classified into different response types. A prototype is formed using representative real-world samples of the same type and under the same applicable conditions, retaining multiple forms and avoiding averaging dissimilar forms into a single contour.

[0050] The predicted response range for each prototype is obtained by expanding the prediction tolerance outwards from the response center. The prediction tolerance is calculated using the prediction error quantiles of independent validation samples under the same applicable conditions, incorporating the change in features caused by positional errors. Validation samples employ the same retrieval process as in step 402, selecting prototypes only from directional illumination images of candidate regions, and then comparing the measured responses under other illumination configurations with the predicted responses of the selected prototypes to obtain the prediction error. Training samples are used to establish prototypes, while validation samples are used to determine the prediction tolerance, directional projection threshold, path preservation threshold, and structural support threshold. Sealed test samples are not used for parameter tuning. For illumination configurations, attitudes, or scales without real-world sample support, the predicted response range is not extrapolated.

[0051] Step 204: Fix the configuration version and check the scope of application.

[0052] If the number of samples is insufficient to form a stable response range, the corresponding operating condition will be recorded as uncalibrated, and no negative judgment will be given based on this. As a condition for starting data collection, twenty independent instances can be obtained for each major appearance range initially, and then additional samples will be added based on the stability of the prediction error range; this number does not indicate that statistical sufficiency has been met. Each threshold, illumination configuration, training parameter, and prototype sample is labeled with a version identifier.

[0053] When entering a new process or exceeding the existing posture and scale range, the candidate area of ​​the original image can be retained, but the lack of coverage of the reference feature or predicted response range renders the detection result as insufficient evidence. Normal reference records and prototype samples are not updated during the entire inspection of the weld seam under inspection. Even if continuous undercut occurs frequently, it cannot be included in the normal reference record.

[0054] Example 3 Based on Example 1, this example further illustrates how the correspondence between the weld toe path, sampling component, protected area, and image is obtained, such as... Figures 2 to 4 As shown.

[0055] Step 301: Retain the weld toe position interpretation and propose candidate regions.

[0056] A path cost is established along the longitudinal direction of the weld using region probability and weld toe boundary probability. The path cost includes the negative logarithm of the boundary probability, the bending cost of adjacent path positions, and the cost of weld width variation. An upper limit is set for the smoothing cost to avoid forcing the weld to bend sharply or straighten the actual width variation. The search path is constrained by the region order of base material, weld body, and base material on the other side, and paths whose path cost and the difference between the path cost and the minimum path cost do not exceed the offline verification threshold are retained.

[0057] Three different weld toe paths can be explicitly retained on each side initially. If there are still weld toe paths that meet the retention criteria, their position envelopes are saved and their assignments are marked as undecided. Reasonable weld toe paths outside the calculation budget are not silently deleted. The path envelope is expanded according to the boundary error quantiles of the verification sample. The outer search range can be initially set to the larger of one millimeter and one-quarter of the weld width. When the candidate region touches the outer search boundary or the boundary probability continues to extend beyond the range, it is expanded to the complete field of view and the observation range is recorded as not closed.

[0058] The local treatment length can be set to the greater of 10 mm and twice the estimated weld width, with adjacent local treatment areas overlapping by half. When bending causes cross-sections to intersect, the local treatment area is divided into overlapping segments. This division only limits the calculation area, does not cut off the final positioning of continuous undercut, and does not generate new reshoot budgets. The two base metal surfaces of the fillet weld obtain the area and path separately, without forcibly projecting them onto the same plane.

[0059] Undercut candidate regions are proposed from the slender or paired edges within the weld toe envelope and its peripheral range. Surface-opening porosity candidate regions are proposed from the closed or partially closed contours, dark kernels, and peripheral differences within the weld body and transition range. The dark kernel is only used to propose candidate regions and is not a porosity criterion. Candidate region generation does not depend on the already normal judgment of currently adjacent positions, thus it can be initialized when reference features are not yet available.

[0060] Step 302: Fix the sampling components of each weld toe path before verification.

[0061] For the same candidate region, all weld toe paths share the original contour from the directional illumination image of the candidate region. For each weld toe path, the transverse direction and the position and extent of the sampling component are determined separately before verification. Different weld toe paths can correspond to different auxiliary sampling bands, but these sampling bands are all determined by the directional illumination image of the candidate region and cannot be rotated or translated after viewing the verification response. When a new observation introduces a new weld toe path and changes the sampling component, a new candidate version is formed.

[0062] like Figure 3 As shown, the sampling components for the undercut are arranged in the following order along the transverse direction from the base material to the weld body: outer side of the base material, first wall, intermediate area, second wall, and outer side of the weld. The first and second walls represent the sampling locations to be verified, not the pre-defined actual trench walls. A transverse line can be set every other target width along the longitudinal direction of the candidate area; the sampling bandwidth can be the larger of one pixel and one-fifth of the narrow width of the candidate area. The outer sampling range extends outward by one to two times the width of the candidate area and is constrained by the area visibility.

[0063] The sampling components for surface-opening pores are the inner region, the observed pore edge segments, and the outer ring. The pore edge range can be divided into eight sectors to record observation gaps in each direction; unobserved sectors are only marked as pending evidence and are not supplemented into the observed closed pore edges. For non-star-shaped or irregular contours, the local outward direction of the actual contour is used, not the centroid radial direction passing through other contour segments.

[0064] Step 303: Establish a continuous protection zone and select matching points outside the zone.

[0065] For each candidate region and the sampled component corresponding to each weld toe path formed by the same direction of illumination, the union of these samples is taken, and a continuous corridor containing all weld toe paths is added. Then, a protective region is formed by expanding the protective region according to the mechanical coarse correspondence error and optical diffusion margin. The initial value of the optical diffusion margin can be two pixels. Candidate versions formed by different directions of illumination each retain their own protective regions, and the current candidate version is not refitted based on bright spots detected within the verification image.

[0066] Texture corner points, parent material markers, or fixture markers are extracted from outside the protected area. Matching is performed using directional descriptions that allow for changes in gradient sign, followed by filtering based on fixed small motion constraints and matching residuals. Two-dimensional rigid transformations are preferred; bounded affine transformations are only used when offline calibration is supported. Free optical flow or elastic deformation is not used within candidate regions. Each relevant visible surface should have at least twelve matching points distributed across at least three spatial segments.

[0067] The position of each sampling component should be within the spatial support range of the corresponding matching point, such as within the convex hull of the matching point. The matching points on both sides of the base metal surface of the fillet weld should be checked separately. The parallax caused by the weld body convexity is constrained by the calibration error within the corresponding posture and height range. A good fit on one base metal surface does not prove that the other base metal surface or the weld body corresponds correctly.

[0068] Step 304: Obtain and fix the position error range.

[0069] The selected matching points are divided into two groups based on spatial separation, and image coordinate transformations are estimated for each group. The predicted coordinates of the two transformations are compared at the boundary of the sampling component. The position error budget is calculated by taking the maximum Euclidean residual of the matching point, the maximum predicted distance between the two transformations at the boundary of the sampling component, and the sum of lens, non-planar parallax, and interpolation errors under the corresponding calibration conditions. The position error range is the calibrated engineering budget.

[0070] The initial position error threshold can be set to the smaller of one pixel and one-sixth of the narrow pixel width of the candidate region. If the threshold is exceeded, there are insufficient matching points, insufficient spatial support, or the camera displacement exceeds the calibration range, the corresponding cross-image direction response will fail; the candidate region of a single image can still be saved for verification, but the failure of a single image cannot be used to replace the corresponding failure.

[0071] During verification, based on the fixed image correspondence, features are calculated using preset translational and rotational perturbations within the positional error range. The minimum and maximum values ​​of the features under each perturbation are taken as the range of variation. The perturbation mesh is refined to check the stability of the calculation results. This positional error range only applies to calibrated translational and rotational perturbations and does not include arbitrary deformations. If the feature variation range crosses the support threshold or causes a change in category, it is marked as position-sensitive and insufficient evidence is output; the most favorable perturbation result is not selected.

[0072] Example 4 Based on Examples 1 to 3, this example further illustrates the directional response, prototype verification, and two types of defect criteria.

[0073] Step 401: Check the observed state and calculate the directional response.

[0074] For each sampled component and the illumination direction involved in the calculation, check the image correspondence, camera linear region, dark level noise, motion blur, effective number of target pixels, and the projection of the light source onto the required component direction. The low signal threshold can be taken as the dark field mean plus five times the dark field standard deviation; the initial absolute value of the projection of a single pair of lights in the transverse direction can be required to be no less than 0.5. These thresholds are determined and fixed during the verification phase and are not adjusted based on current verification results during testing.

[0075] Saturation is determined by comparing the original count with the camera's linear upper limit. Unsaturated specular dominance can be suspected based on the migration of highlights along the light direction and local responses exceeding the applicable range of the actual sample; this cannot be used to deny the existence of geometric edges that are still stable in the original image. If it is impossible to distinguish between occluded shadows, low-response reflections, and true dark openings, the relevant observation state is recorded as undetermined.

[0076] When both of a pair of opposing lighting directions are available, the directional response can be calculated using the following formula: q = (J1 J2) / (J1 + J2 + ε) Where J1 and J2 are the relative radiative responses obtained by normalization in step 201 at the same sampling location under a pair of relative illumination directions; ε is a positive noise margin obtained from dark field noise conversion, used to stabilize the denominator, and can be twice the lower bound of the relative radiative noise; q is the dimensionless directional response, used to compare with the reference characteristics and predicted response range of the same illumination configuration. If either end is saturated, mismatched, or the denominator signal is insufficient, q is not calculated and the missing data is recorded.

[0077] When both pairs of relative illumination are available, two directional components are obtained respectively. These components are mapped onto the image plane direction based on the illumination substrate determined by the calibration sample, and then projected onto the transverse direction of each weld toe path or the local outward direction of the hole edge segment. No two-dimensional directional response is generated if the mapping conditions are not met. When only one pair of lights is available, the directional response of that pair of lights, along with the individually calibrated reference features and predicted response range, are used.

[0078] The directional response is an image brightness contrast and does not represent the true surface normal, slope, or depth. The notation for bumpiness is only used within the calibrated light direction, orientation, and reflection range supported by the real sample. When specular dominance, mutual reflection, or coarse-scale references fail, the corresponding directional response cannot independently support bumpiness determination.

[0079] Step 402: Fix the reference features and maintain the joint identity of the prototype.

[0080] In one implementation, prototype samples are first screened based on joint type, complete lighting configuration, calibrated pose range, and image scale. Then, the aspect ratio, narrow width, and single-image brightness contrast of the original contour are calculated from the directional lighting images of the candidate regions. For each feature, the pre-stored center in the training samples is subtracted and divided by the pre-stored scale, and the prototype sample is retrieved using the Euclidean distance of the standardized features. Prototype samples within each category whose distance does not exceed the threshold determined in the verification phase are retained; no single nearest prototype sample is retained across different categories. The standardized center, standardized scale, and retrieval threshold are fixed before detection; verification images are not used in the retrieval. Categories without applicable prototype samples are recorded as uncovered, and the absence of a prototype sample does not mean the corresponding category does not exist.

[0081] Alignment parameters for normal reference records are determined using image regions that are supported by all preserved weld toe paths and are outside the protected area. Base material matching points can support geometric and radiometric references, but cannot directly serve as normal weld ripple samples. Alignment uses only directional illumination images that reveal candidate regions, with allowed parameters being translation, scale, and low-order radiometric offset. Non-rigid matching is not performed within candidate regions.

[0082] When the common support region is empty, normal reference records are not applicable, or spatially separated support subsets give incompatible predictions for candidate locations, the reference feature becomes invalid. Residuals dependent on the reference feature also become invalid, and the reference feature is not set to zero by default. Original image edges and original direction responses supported by other real samples can be retained, but insufficient evidence will still be output if the necessary criteria are incomplete.

[0083] For each prototype, a response record is established across sampling components and complete lighting configurations. After obtaining a usable measured response, it is compared only with the predicted response range of the same response type and the same complete lighting configuration. If the measured response range does not overlap with the predicted response range, or if the spatial order of the sampling components does not match, the corresponding prototype is excluded. Missing directional responses are not excluded, nor are prototypes already excluded by other available directional responses restored.

[0084] One prototype should be retained, and this prototype must be able to simultaneously explain all the necessary sampled components that have been acquired and are available. The union of the predicted response ranges of each sampled component is only used for demonstration or supplementary rough screening; the results of different prototypes explaining different sampled components should not be combined into a single valid explanation. If all applicable prototypes are excluded, it indicates that there may be an off-database form or that the prototype is not applicable, resulting in insufficient output evidence, and therefore, it should not be considered normal.

[0085] Step 403: Verify the undercut based on the responses of the first and second walls and the weld toe attribution.

[0086] For the first and second walls fixed before verification, the directional response in the transverse direction is compared with the reference characteristic range of normal transition to obtain their respective residual ranges. After the direction of the base material pointing to the weld is unified, the response symbols are pre-calibrated using confirmed groove and protrusion samples. In the groove sample that meets the applicable reflection conditions, the first and second walls should exhibit a specified opposite response order.

[0087] For each cross-section, the median of the residuals is taken within the sampling range of the first and second walls. After unifying the directions of the two values ​​with the pre-labeled signs, the smaller of the two values ​​is taken as the trench support. Positional disturbances and reference intervals generate upper and lower bounds for the trench support; only when the lower bound exceeds the support threshold determined by normal transitions, normal troughs, and protruding samples is it recorded as stable structural support for that cross-section. Support values ​​crossing the threshold are recorded as undetermined.

[0088] In addition to checking the reverse response order, it is also necessary to check whether the first and second walls have original image edges falling within the fixed sampling range, whether the cross-sectional narrow bands are distinguishable, and whether the candidate area belongs to the base material side transition range of the weld toe. When the length allows, multiple adjacent cross-sections are required to form a connectable support; short defects use a length and width range calibrated by a real sample, and cannot be directly considered normal just because the number of cross-sections of long defects is not met.

[0089] When the same prototype of the undercut simultaneously interprets the valid sampled component, the structural coverage meets the conditions, all weld toe paths are retained and the attribution to the base material side is compatible, and the interpretation of normal troughs or non-target surface anomalies cannot explain the valid observations, the undercut and its location are output. If the same candidate region is located in the transition range of the base material side and inside the main body of the weld under different weld toe paths, the attribution conflict is retained and insufficient evidence is output. Subsequently, it is corrected with newly added boundary evidence. The defect score is not used to reward the weld toe to move to the candidate region, nor is the candidate region treated as normal texture because it is continuously distributed along the weld toe path or is in the same direction as the welding texture.

[0090] Step 404: Verify the surface opening pores based on the pore edge segment and circumferential response.

[0091] For the pre-fixed inner area, aperture edge segment, and outer ring, check whether the position of the aperture edge segment under different illumination directions is compatible with the image correspondence. When obtaining the two-dimensional directional response, subtract the applicable coarse-scale reference response, and then project it along the local outward direction of the true contour; when only one pair of relative illuminations is available, directly compare the directional response of the pair of illuminations with the separately calibrated reference features and predicted response range under the corresponding illumination configuration. Based on the symbols calibrated by the actual aperture and the protrusion sample, check whether a response order towards the inside of the aperture is presented.

[0092] Valid aperture fragments require that the original image edges be distinguishable, the position correspondence be valid, the directional projection be applicable, and the response not be saturated or corrupted by low signal. When using an eight-sector division, a conservative starting condition can be set at least six sectors being available and supported by two non-parallel illumination directions. Actual apertures that do not meet this condition may be considered insufficient evidence and cannot be used to determine the absence of an aperture. Roundness, darkness, and area are only auxiliary features and are not conditions for independently confirming or excluding surface-opening pores.

[0093] If the prototype of a surface-opening pore can simultaneously explain the available sampling components and meet the conditions for pore edge coverage, and the explanations for planar stains, spatter protrusions, or non-target pits are incompatible with the original drawing evidence that has the qualification to refute, then output the surface-opening pore and its location. If only surface pits can be supported, but not weld pore types, or if stains and pore openings are still indistinguishable, then output insufficient evidence and record non-target surface anomalies for review.

[0094] Step 405: Suppress normal texture interference and check the observed coverage.

[0095] Texture orientation and orientation concentration are obtained from the gradient structure tensor of the directional illumination image, and repetition spacing and dispersion are obtained from the autocorrelation along the texture orientation. Repetition spacing is used only when there are at least three resolvable periods; if the orientation is not concentrated or the period is insufficient, the corresponding feature is recorded as missing. Normal texture similarity can be obtained by using the orientation histogram distance and the autocorrelation spacing difference, and standardized according to the normal sample distribution.

[0096] Normal texture similarity only affects evidence of texture anomalies and cannot negate the support already provided by the first and second walls or hole edge segments. When the normal texture itself is irregular, the periodicity should not be forcibly searched; when defects appear continuously along the weld toe, they should not be included in the normal reference due to repetition; when the defect direction is similar to the ripple direction, it should still be verified according to the weld toe attribution and the response of the transverse or circumferential component.

[0097] An observation grid, independent of the candidate region, is established for the complete weld body, weld toe envelope, and surrounding search area. The observation grid step size is no greater than half of the target's minimum narrow-direction projection size. Resolution, exposure, noise, occlusion, available lighting direction, and image correspondence are checked according to the target defect category and the direction of all preserved weld toe paths to obtain an observation qualification map. The observation qualification map determines the imaging conditions and does not require the appearance of non-existent hole edges or trench walls at any candidate location.

[0098] When there are no candidate areas in a local area, the first qualified directional illumination image is selected as the reference directional illumination image according to the fixed order before acquisition, and its purpose is recorded. The protected area must at least contain a continuous corridor with all preserved weld toe paths. The image correspondence and positional error range are obtained according to steps 303 and 304. The alignment parameters applicable to the normal reference record are determined by the reference directional illumination image and the common support outside the protected area. When there is no qualified reference directional illumination image, matching point outside the area, or common support, the corresponding observation grid is not qualified for negative output, and no target defect is output even if the candidate area set is empty.

[0099] Observation grids without candidate regions are only qualified for no target defect detected if they meet the observation criteria, fall within the validated applicable range, and the original features are compatible with normal reference records. Observation grids with candidate regions must also be free from unresolved target defects, location sensitivity, or attribution conflicts. Unknown features cannot be presumed to be visible simply because they are detectable offline; negative results must clearly indicate the effective observation range and target size range.

[0100] When merging candidate regions generated from images illuminated from different directions, the system first determines whether they correspond to the same physical location based on their fixed original image contours and positional error ranges, without refitting image correspondences or modifying sampling components. If there are contradictory detection results for the same target category at the same physical location, both with usable evidence, the conflicting results are retained and further evidence is collected, or insufficient evidence is output. Unresolved positive evidence cannot be overridden by majority vote or the absence of target defects. If a candidate version cannot be determined solely due to missing evidence, while another candidate version meets all positive criteria and lacks valid counter-evidence, the positive location can be retained, and the missing evidence range can be recorded simultaneously.

[0101] Example 5 Based on Example 1, this example further illustrates the selection of reshoot configuration, candidate version updates, and stopping conditions, such as... Figure 5 As shown.

[0102] Step 501: Match the missing evidence to the reshoot configuration.

[0103] When the first or second wall is saturated, select a light source that projects a shadow in the transverse direction. First, try a short exposure of one-quarter of the original exposure, and verify the fixed order of the first and second walls in relative directions. The short exposure is used to restore dynamic range and cannot add new lighting directions; if it is still saturated, it is still recorded as unusable and is not considered that a single short exposure will necessarily restore it.

[0104] When a hole edge segment is missing due to shadows or low signal, priority should be given to selecting a direction that can illuminate the missing segment. Exposure should only be increased if there is actual incident light but the signal is low; physical obstruction cannot be resolved by increasing exposure. When a weld toe path causes a conflict between the weld body and the base material, lateral lighting that can show the transition at the path divergence area should be selected to obtain boundary evidence.

[0105] When image correspondence fails, first check if the workpiece and camera are stable, then obtain images in the relevant directions and recheck the matching points outside the protected area; if the matching points are still insufficient or the parallax exceeds the calibration range, terminate the cross-image verification. If the reflective mark is established but the structure has not yet been identified, first restore the availability of the obscured sampling component, then use other directional lighting to verify the fixed structure, allowing both the reflective mark and the actual defect to be established simultaneously.

[0106] Step 502: Select the reshoot configuration based on the predicted differences from the actual prototype.

[0107] Category determination conflicts include situations where different retained weld toe paths cause the same candidate region to satisfy both the target defect interpretation and the normal interpretation. For missing directional responses, the re-enhancing configuration is selected according to the sampling components involved in the missing directional response. For cases where the directional response has been obtained but weld toe attribution still conflicts, the divergence region of the two weld toe paths is fixed before re-enhancing, prioritizing the illumination configuration with the larger absolute value of the projection of the light source direction onto the normal direction of the divergence region boundary, and where the region is not saturated. The projection is obtained from the calibrated light source direction and the boundary orientation in the image. When boundary re-enhancing is used to correct weld toe paths, a new candidate version is formed according to step 503; this image must not be used simultaneously to verify the new candidate version.

[0108] First, select reshoot configurations that can supplement the necessary sampling components that would change the category determination, and that meet the orientation projection and exposure conditions. For prototypes that are still compatible with all available observations, compare the predicted response ranges of the same sampling component under each reshoot configuration. If the minimum interval between two predicted response ranges exceeds the calibration noise tolerance of the response, the corresponding prototype pair is counted as a separable prototype pair. Prioritize the reshoot configuration that can separate the most prototype pairs.

[0109] Separability is applied to prototype samples that retain their complete identity, not to unions of intervals detached from cross-component relationships. When the number of samples is equal, the minimum directional projection, observed saturation ratio, and acquisition time are compared sequentially across all unresolved weld toe paths. If recovery statistics from independently validated samples are accumulated, the confidence lower bound of the recovery success rate can be used for ranking when samples are tied; this statistic is not used when the sample size is insufficient.

[0110] Configurations with overlapping predicted response ranges cannot be claimed to eliminate category ambiguity, but can be used to recover missing observations. When no applicable predicted response range is available, a configuration with a clear observation recovery purpose is executed only once; if necessary evidence is still lacking after acquiring images, insufficient evidence is output. Predicted response ranges only participate in selection and comparison, and are not considered as details of actual defects already observed.

[0111] Step 503: Record the retake results and process the qualification verification.

[0112] After executing the lighting and exposure commands, verify the light source, exposure, and original image records. If the command execution fails or the metadata is inconsistent, the image cannot be used for verification as planned for reshooting. After successful execution, recalculate the observation state and orientation response according to the fixed sampling components, and change the detection results based on the actual image rather than the action plan.

[0113] When a re-captured image only supplements the response of a fixed sampling component, it can be used for verification of the current candidate version. When a re-captured image changes the original contour, weld toe path, sampling component, alignment parameters of the normal reference record, or the selection of the prototype, a new candidate version is created. The image records involved in these changes serve as the source for creating the new candidate version but cannot simultaneously provide verification support for the new candidate version.

[0114] The original images and records of old candidate versions are retained, but the verification pass status is not directly copied. Each old image is checked to see if it is involved in the creation of a new candidate version. Only images that are not involved and whose observation conditions are applicable are remeasured according to the new fixed sampling components. If permitted external geometric information prompts the use of another pre-calibrated corresponding transformation form, the image that participated in the selection of that form is also recorded as the creation source; simply re-initializing or logging cannot restore its verification eligibility.

[0115] Step 504: Terminate the reshoot and output traceable results.

[0116] When the condition of a target defect being present or no target defect being found within the scope limit is met, the reshooting for that area ends. If the verification result still indicates insufficient evidence, reshooting will be terminated and the evidence will remain insufficient if any of the following conditions are met: two rounds of reshooting have already been conducted; physical obstruction or insufficient resolution prevents reshooting from restoring observation; no effective sampling components were added in the previous round and there are no different executable configurations. If a valid conclusion has been obtained in the second round, the valid conclusion will not be rewritten as insufficient evidence simply because the maximum number of attempts has been reached.

[0117] The output includes the target defect category, original image outline, positional error range, corresponding original image identifier, observation qualification image, reasons for not observing, and re-shooting record. Millimeter positions are only converted when the base material surface is calibrated or the local dimensions have been verified to be applicable; pixel positioning is retained when the main dimensions of fillet welds are affected by excess height and perspective and are not covered by calibration. Manual review uses the original image and evidence positions, not the details generated by the repair.

[0118] Example 6 This embodiment illustrates the complete processing procedure when continuous undercut and reflection coexist in fillet welds.

[0119] Assuming the four-directional illumination images correspond to a fillet weld section, the directional illumination images of the candidate region identify a candidate region 18 mm long and 12 pixels narrow on the outer side of the weld toe, while preserving two weld toe paths. Sampling components are fixed according to the two weld toe paths, and candidate versions sourced from the first directional image are saved. The protected area encompasses the entire continuous weld toe corridor, rather than just covering a few dark spots.

[0120] The matching points outside the protected area meet the facet and spatial distribution conditions, and the calculated position error budget is 0.6 pixels, which is less than the one-pixel threshold used in this example. Applicable normal reference records and prototypes related to undercut, normal troughs, and reflections were all selected before verification. The first wall of the second-direction image is saturated, and the corresponding direction response is missing; the other two images can support some edges, but cannot eliminate the conflict between the base material side and the weld body's internal attribution, resulting in insufficient evidence.

[0121] The first round of reshoots used short exposures in the second direction and relative directions to restore the observations of the first and second walls. Assuming that the groove support amount of several adjacent cross-sections varies from 0.18 to 0.25, and the calibration support threshold of the configuration used is 0.12, these cross-sections are recorded as stable supports, but due to the still conflicting weld toe attribution, undercut cannot be output immediately.

[0122] The second round first acquires images showing the boundary at the divergence point of the two weld toe paths. Based on this boundary evidence, inapplicable weld toe paths are excluded, forming a new candidate version. This supplementary image was used in the creation of the new candidate version and therefore cannot be used to verify it. Images from the first round that did not participate in boundary correction but still meet the corresponding conditions are re-examined and measured according to the new candidate version.

[0123] If, after remeasurement, the prototype of the same undercut is compatible with all valid sampled parts, the remaining weld toe path supports the attribution to the base material side, and normal troughs and non-target anomalies cannot explain valid observations, then the undercut and its original image location are output, while retaining reflective properties. If there are no other images that meet the verification criteria, then insufficient evidence is output after two rounds. This branch indicates that boundary correction and defect verification use images for different purposes, and short exposure recovery is not counted as a new geometric direction.

[0124] Example 7 This embodiment illustrates the treatment when it is difficult to distinguish between surface openings, pores, and oxidation stains.

[0125] Suppose that the projected diameter of the dark spot in the directional illumination image of the candidate region is 14 pixels, and five sectors of the aperture edge segment can be observed. After fixing the inner region, aperture edge segment, and outer ring according to the original contour, only four sectors in other directional illumination images meet the observation conditions. Due to the lack of required coverage, surface opening pores are not confirmed based on roundness and darkness, nor is the failure to meet the six-sector condition interpreted as the absence of pores.

[0126] Based on the direction of the missing sector, select the opposite side illumination for supplementary imaging. If the supplementary imaging restores the original fixed aperture edge segment and displays an inner wall response compatible with the actual aperture prototype, then update the observation status of that sampling component. Surface apertures and their locations are only output when the actual prototype of the same surface-opening vent simultaneously explains all necessary sampling components, the number of effective directions, and the coverage conditions are met, and the interpretation of dirt or protrusions is excluded by available observations.

[0127] If reshoots only restore planar color differences, it is still impossible to determine whether there are pore edges, and the response in the relevant direction is not qualified to rule out porosity. If surface pits can be confirmed after two rounds, but the type of pores and corrosion pits is still unclear, then the output evidence is insufficient and the pits are marked as needing verification. The shape of the pits is not directly equated with welding pores.

[0128] Example 8 This embodiment illustrates the processing of irregular normal ripples, defects whose direction is close to the texture direction, and slight image displacement.

[0129] The directional illumination image revealed elongated candidate regions near the main weld body. Two weld toe-preserving paths categorized these candidate regions into the weld body's interior and the base metal transition zone, respectively. No stable peaks were observed in the local autocorrelation. Consequently, the repeating spacing feature was missing, and irregular textures could not be directly identified as defects.

[0130] After the matching points outside the protected area support the image correspondence, measurements are only taken within the fixed sampling component. If the strongest bright spot in the verification image has moved out of the fixed sampling component, the sampling position is not moved with the bright spot; the directional response is recorded as missing or conflicting, and the candidate region is retained.

[0131] When new weld toe boundary evidence is obtained through supplementary photography, a new candidate version is generated. Supplementary images used for correction are not verified against the new candidate version. Other qualified directional lighting images, if they collectively support normal troughs within the weld body, and the observation qualification images meet the target size range and have no remaining target defects, can output "No target defect found within the effective observation range." If only the supplementary images used for correction can show the required first and second walls, or if the conclusion would still change within the positional error range, then evidence collection continues if the budget allows; otherwise, insufficient evidence is output.

[0132] Through the above implementation methods, the regularity of normal textures, the continuity of candidate regions, and the presence of highlights do not directly determine the defect category. The detection result is jointly determined by fixed spatial sampling, valid observation qualifications, compatibility with complete prototype samples, and weld toe attribution. Branches where necessary evidence cannot be obtained have clear reshooting or termination output.

Claims

1. A method for visually identifying surface defects in steel structure welds, characterized in that, include: Acquire directional lighting images of the same weld area under time-division lighting in different directions, determine and fix the weld toe path and candidate area, fix the sampling components of the candidate area according to the weld toe path, establish candidate versions and record the image source; The protection zone is formed by the continuous corridor of the sampling component and all weld toe paths. The image correspondence is determined and fixed only by the matching points outside the protection zone, and the position error range is determined and fixed. Reference features are determined and fixed by the directional illumination image of the candidate region and the image region shared by each weld toe path outside the protection area, and the predicted response range is selected and fixed from the pre-stored real prototype. The directional illumination image that was not involved in the determination of the sampling component, weld toe path, reference feature and predicted response range is selected as the verification image. According to the image correspondence, the directional response and observation status of the sampling component are obtained within the position error range. It is compared with the reference feature and predicted response range. Combined with the weld toe path, the detection results are output for the presence of undercut or surface opening pores and their locations, and for the absence of target defects or insufficient evidence within the effective observation range. For candidate regions with insufficient evidence, lighting or exposure conditions are selected for supplementary shooting based on missing directional responses or conflicting category determinations, combined with the prediction differences of the actual prototype. The supplementary images are used to create new candidate versions when the sampling components, weld toe paths, reference features, or predicted response ranges are changed. The supplementary images are not used as verification images for the new candidate versions, but are re-verified by other verification images. If there are no other verification images, the output is "insufficient evidence".

2. The method for visually identifying surface defects in steel structure welds according to claim 1, characterized in that, When determining and fixing the weld toe path and candidate region, and fixing the candidate region according to the weld toe path in the sampling component, the following are included: The probability of the weld body, the base material on both sides and the occlusion area, as well as the probability of the weld toe boundary, are obtained from the illumination images from each direction. The weld toe path is determined based on the region order, path curvature and weld width variation, and the weld toe path with the difference between the path cost and the minimum path cost does not exceed the path retention threshold is retained. Within the envelope and outer search range of the weld toe path, candidate areas for undercut are generated based on slender edges or paired edges. Within the transition range between the weld body and the base material, candidate areas for surface opening pores are generated based on the closed profile, partially closed profile, or the difference between the dark core and the surrounding area. The same original contour is preserved for the same candidate region. The cross-sectional direction and sampling range are determined according to each weld toe path. Before verification, the sampling components corresponding to each weld toe path are fixed, and the directional lighting image used to determine the sampling components is recorded.

3. The method for visually identifying surface defects in steel structure welds according to claim 2, characterized in that, A protection zone is formed by a continuous corridor of the sampling component and all weld toe paths. The image correspondence is determined and fixed only by matching points outside the protection zone, and the positional error range is determined and fixed, including: The sampling components corresponding to each weld toe path are combined with the continuous corridor of all weld toe paths, and the protected area is obtained by expanding outward according to the coarse correspondence error and optical diffusion margin. Extract matching points from outside the protected area, filter matching points according to preset spatial distribution conditions and matching residual conditions, and determine rigid transformation or affine transformation constrained by calibration range as image correspondence; The matching points are divided into two spatially separated groups, and the image coordinate transformation is calculated separately. The prediction deviation, matching residual and calibration error of the two groups of image coordinate transformations at the sampling part position are combined into the position error range. When the sampling component position exceeds the spatial support range of the matching point, or the position error range exceeds the preset position error threshold, the corresponding cross-image direction response will be marked as unavailable, and the image correspondence will not be re-determined based on the bright and dark structures within the protected area.

4. The method for visually identifying surface defects in steel structure welds according to claim 3, characterized in that, According to the image correspondence, within the positional error range, the directional response and observation status of the sampling component are obtained, including: Radiometric normalization of the directional illumination image is performed based on exposure time, gain, dark level, ambient light, and illumination field calibration data, preserving the original pixels and saturation markers; For each sampling component, check the image correspondence, saturation, noise, blur, effective pixel width, and illumination direction projection, and record the observation status as available, unavailable, or uncertain. When both observations for a pair of opposite illumination directions are available, the directional response is calculated with the difference in radiative response as the numerator and the sum of the radiative responses and the noise margin as the denominator; when there are no paired valid observations, the directional response is recorded as missing. The sampling position is disturbed within the position error range to obtain the range of change in directional response; when the range of change in directional response leads to a change in the verification conclusion, the corresponding candidate area is marked as insufficient evidence; each sampling component involved in reflection is marked separately, and candidate areas are not deleted due to reflection marking.

5. The method for visually identifying surface defects in steel structure welds according to claim 1, characterized in that, When determining and fixing reference features from the directional illumination image of the candidate region and the image region shared by each weld toe path outside the protection region, and selecting and fixing the predicted response range from the pre-stored prototype, the following is included: Obtain the responses of normal transition, texture direction, repeating spacing and different lighting directions from independently annotated normal weld samples, and establish normal reference records according to joint type, welding process, weld width, surface posture and image scale; Take the image regions outside the protected area that belong to the corresponding base material region or weld body region under all weld toe paths. Determine the alignment parameters of the normal reference record based on the directional lighting image of the candidate region to obtain the reference features. Based on the contour, scale, single-image comparison and joint information in the directional illumination images of the candidate regions, suitable prototypes are selected from the prototypes that have been labeled with normal state, edge bite, surface opening pores and non-target surface anomalies. The predicted response range is determined by the measured response of the suitable prototype and the pre-calibrated prediction error.

6. The method for visually identifying surface defects in steel structure welds according to claim 5, characterized in that, Compared with reference features and predicted response range, including: According to the sampling component, response type, and all lighting directions and exposure conditions that constitute the directional response, the range of variation of the measured response and the predicted response range of each prototype are recorded respectively. Only the measured response and the predicted response range with the same response type and lighting configuration are compared. For the same prototype, for each sampling component that is available in the observation state and meets the preset resolution and illumination direction conditions, check whether the range of variation of the measured response intersects with the range of the predicted response, and whether the spatial order of the sampling components meets the spatial order of the same prototype. For sampling components that are available in the observation state, if the range of variation of the measured response does not intersect with the range of the predicted response, or if the spatial order is not satisfied, the corresponding real sample prototype is discarded. When all applicable real-world prototypes are rejected, the output result indicates insufficient evidence.

7. The method for visually identifying surface defects in steel structure welds according to claim 6, characterized in that, When combining the weld toe path output with detection results showing undercut or surface opening porosity and their location, and where no target defect or insufficient evidence is found within the effective observation range, candidate regions for undercut include: The sampling components fixed before verification include the base material side exterior, first wall, intermediate area, second wall and weld side exterior, which are arranged sequentially along the transverse direction corresponding to the weld toe path. The directional responses of the first and second walls are compared with the reference features of the normal transition to check whether the first and second walls show the opposite response order as calibrated by the groove sample, and to check whether the original edges of the first and second walls fall within the fixed sampling component. When the opposite response order, edge position and preset effective cross-section coverage conditions are met, all retained weld toe paths will assign the candidate area to the base material side transition range, the actual prototype of the same undercut is compatible with the directional response and spatial order of all available sampling components, and there is no normal or non-target surface anomaly interpretation compatible with effective observation, the undercut and its position will be output. When retaining the weld toe path and classifying the candidate area into the transition range of the base material side and the interior of the weld body respectively, the classification conflict is retained and insufficient evidence is output.

8. The method for visually identifying surface defects in steel structure welds according to claim 6, characterized in that, When combining the weld toe path output with the presence of undercut or surface porosity and their location, and when no target defect or insufficient evidence is found within the effective observation range, candidate regions for surface porosity include: Before verification, the sampling components fixed according to the original contour of the candidate area include the inner region, the aperture edge segment, and the outer ring. The sampling range of the aperture edge segment is divided along the local outward direction of the aperture edge segment. The positional correspondence and inner-outer boundary of the aperture edge segment were examined under different lighting directions, and the directional response of the aperture edge segment was compared with the response order of the prototype towards the hole. When the effective coverage of the aperture segment and the number of non-parallel illumination directions meet the preset conditions, and the prototype of the same surface-opening vent simultaneously satisfies the response and spatial order of the effective sampling component, the interpretation of the surface-opening vent is retained. If there are still planar stains, bumps, or non-target pits that are compatible with valid observations, output insufficient evidence; if the surface opening pore interpretation is retained, and the planar stains, bumps, or non-target pit interpretations are excluded by original image evidence that the observation is available, output the surface opening pores and their locations.

9. The method for visually identifying surface defects in steel structure welds according to claim 1, characterized in that, When combining the weld toe path output with the presence and location of undercut or surface opening porosity, and the detection results showing no target defect or insufficient evidence within the effective observation range, it also includes: An observation grid independent of the candidate region is established within the envelope of the weld body, the weld toe path, and the outer search area. The step size of the observation grid is set according to the minimum detection size of the target defect. According to the target defect category and the direction corresponding to the preserved weld toe path, check the resolution, saturation, noise, occlusion, available lighting direction and image correspondence of the observation grid to form an observation qualification map; Normal reference records are pre-established from independently labeled normal weld samples; for observation grids without candidate regions, the output is "No target defect found within the effective observation range" only when the observation qualification map meets the preset observation conditions and the original image features are compatible with the applicable normal reference records. For observation grids with candidate regions, if there is no unresolved target defect to support it, no attribution conflict, and a valid normal interpretation, output that no target defect was found within the valid observation range; for observation grids that do not output a target defect and do not meet the condition of no target defect found, output that the evidence is insufficient, and record the corresponding reasons and the unobserved range.

10. A method for visually identifying surface defects in steel structure welds according to claim 9, characterized in that, For candidate regions with insufficient evidence, based on missing directional responses or conflicting category determinations, and considering the predicted differences from the actual prototype, lighting or exposure conditions are selected for reshooting, including: Save candidate versions for each candidate region, including the sampled component, weld toe path, reference features, predicted response range, and image source. For each prototype, if all the acquired and usable directional responses are compatible with the predicted response range of the same prototype, the same prototype is retained. For sampling components with missing directional responses, a reshoot configuration that meets the preset directional projection conditions and exposure conditions is selected. The predicted response range of the retained prototypes for the same sampling component under the reshoot configuration is compared. Prototype pairs whose predicted response range interval is greater than the corresponding response noise tolerance are counted as separable prototype pairs. The reshoot configuration is selected according to the number of separable prototype pairs. When the directional response has been obtained, but different weld toe paths cause the same candidate area to meet the target defect interpretation and normal interpretation respectively, fix the divergence area of ​​the weld toe path before reshooting, and select the lighting configuration that can display the boundary of the divergence area. When the re-captured image only supplements the response of a fixed sampled part, the re-captured image is added to the verification image of the current candidate version; when the re-captured image is used to change the sampled part, weld toe path, reference feature, or predicted response range, a new candidate version is created, the modeling purpose of the re-captured image is recorded, and the verification eligibility of other directional lighting images for the new candidate version is re-examined. The number of retakes is shared for the same physically problematic area and overlapping image areas covering the same physically problematic area, with no more than two rounds of retakes; if the detection result after verification is still insufficient evidence, and if two rounds of retakes have been taken or there is no executable retake configuration to obtain qualified verification images, then the retakes will be stopped and the detection result of insufficient evidence will be maintained.