A dynamic determination method for the leveling property of a coating film
By acquiring the pulse sequence of the conveyor chain position on the coating production line, triggering the acquisition of dot matrix images and constructing the modulation index, the interference decoupling problem of existing online optical methods is solved, and the quantitative characterization and reliable measurement of the leveling properties of the coating film are realized.
Patent Information
- Application Number
- CN202611658821.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-20
AI Technical Summary
Existing online optical methods are difficult to decouple from interference such as hanger swing, chain speed fluctuation, and light source aging in the coating production line, resulting in unreliable measurement results. They cannot quantitatively characterize the wet film ripple attenuation process, and the fixed spectrum window is prone to failure when the wet film deviates from the mirror surface. Weak signals are easily drowned out by noise, and abnormal leveling and normal attenuation are mutually contaminated.
By acquiring the position pulse sequence of the conveyor chain, triggering dot matrix image acquisition, performing mirror quality judgment and spectrum transformation, constructing modulation index, subtracting noise background, extracting monotonic attenuation segments, and calculating leveling rate coefficient, dynamic measurement of coating film leveling is achieved.
It achieves decoupling from interference on the coating production line, outputs the leveling rate coefficient, improves the reliability and verifiability of the measurement results, and meets the requirements of online judgment.
Smart Images

Figure CN123135633A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of coating film quality testing, and in particular to a method for dynamic determination of coating film leveling properties. Background Technology
[0002] Coating film leveling refers to the process by which a wet film formed after coating is applied to a substrate surface spontaneously flows under the influence of surface tension and gravity, causing surface ripples to flatten. In continuous coating production lines for automobiles, home appliances, etc., the leveling stage begins immediately after wet film spraying. The ripples on the wet film surface decay exponentially under the driving force of surface tension and gravity. The decay characteristics of the ripples directly determine the orange peel grade, DOI value, and appearance pass rate of the dry film. Therefore, dynamically measuring the decay characteristics of wet film surface ripples during the leveling process is of great significance for process control of coating quality and improvement of appearance pass rate.
[0003] Current leveling tests typically rely on offline sample comparison or the wet film scraping method. Offline sample comparison requires removing the wet film sample and comparing it with a standard sample, while the wet film scraping method requires a scraper to contact the wet film surface. Both of these methods have engineering drawbacks such as contact damage, surface mark contamination, and the need to stop the line for sampling, which cannot meet the online and continuous testing requirements of continuous coating production lines.
[0004] To overcome the shortcomings of offline inspection, existing technologies have proposed online optical inspection methods such as the reflectance fringe method and phase deflection. These methods rely on a fixed spatial frequency analysis window and absolute reflection energy. In production line environments with interference such as hanger sway, chain speed fluctuations, light source aging, and gloss changes, the measurement channel is difficult to decouple from the interference mechanism. The results are insufficient to quantitatively characterize the attenuation process of the wet film surface ripples, and cannot directly support online judgment of the paint film leveling quality. Furthermore, when the wet film deviates from the specular reflection state, the fixed spectral window is prone to failure; in weak signal phases, the effective signal may be submerged by noise or even exhibit non-positive values; abnormal leveling and normal attenuation mutually contaminate each other, resulting in insufficient reliability and verifiability of the measurement results. Summary of the Invention
[0005] To address the problems of existing online optical methods that rely on fixed spectral windows and absolute reflection energy, making it difficult to decouple from production line interference such as hoist sway, chain speed fluctuations, and light source aging, the results cannot quantitatively characterize the wet film ripple attenuation process to support online leveling quality determination, and the fixed window is prone to failure when the wet film deviates from the mirror surface, weak signals are easily submerged by noise, abnormal leveling and normal attenuation are mutually contaminated, resulting in insufficient reliability and verifiability, this invention provides solutions in the following aspects.
[0006] A method for dynamically measuring the leveling properties of a coating film includes: acquiring a position pulse sequence of a conveyor chain, and triggering the acquisition of a dot matrix image sequence of the wet film surface according to the position pulse sequence at a preset position step distance to obtain a dot matrix image sequence of equal chain displacement corresponding to two adjacent frames. Perform a mirror quality assessment on each frame of the dot matrix image sequence, perform a spectral transformation on only the frames that pass the assessment to obtain the spectrum, and then perform a follow-up affine normalization of the spectrum to the nominal coordinate system based on the dot matrix carrier peak groups in the spectrum. The modulation index is constructed based on the ratio of the carrier main peak window energy to the sideband window energy in the nominal coordinate system, and the noise floor is subtracted to obtain the modulation index sequence. The equivalent horizontal distance of each effective frame is calculated based on the chain displacement corresponding to the position pulse sequence. The equivalent horizontal distance is formed by the equivalent horizontal distance axis. The monotonic attenuation segment is extracted from the modulation index sequence on the equivalent horizontal distance axis. Perform exponential regression on the modulation index within the monotonic attenuation range to obtain and output the leveling rate coefficient, thus completing the dynamic measurement of the leveling properties of the coating film.
[0007] Preferably, the mirror quality determination includes: The proportion of saturated pixels and the proportion of dark pixels in each frame of the dot matrix image sequence are statistically analyzed. If either exceeds a preset threshold, the image is determined to be abnormal and the frame is excluded. The frames that are not excluded are regarded as normal images. After performing the spectrum transformation on the normal imaging frame to obtain the spectrum, the ratio of the spectral energy within the dot matrix carrier peak group to the average energy of the outer ring in the spectrum is used as the spectral peak significance. When the spectral peak significance is lower than a preset value, it is determined that the prerequisite for specular reflection measurement is not met, and the normal imaging frame is excluded.
[0008] Preferably, the follower affine normalization includes: The peak positions of each peak in the dot matrix carrier peak group are located by weighting the amplitude centroid; the peak positions of at least three non-collinear peaks are used to construct the current frame peak group matrix, and the affine parameters are solved based on the current frame peak group matrix and the preset template peak group matrix; the spectrum is resampled to the nominal coordinate system using the affine parameters.
[0009] Preferably, the noise background subtraction includes two levels of subtraction: In the first stage, the average energy of the sampled spectra within the carrier leakage isolation ring between the main carrier peak window and the sideband window is selected as the intra-frame noise floor of the sideband window and subtracted from the energy of the sideband window. In the second stage, the ratio of the energy of the flanking sideband window to the energy of the carrier main peak window after deducting the intra-frame noise floor is further subtracted from the system noise floor offset measured on the standard template before the system is put into use, so as to eliminate the system contribution of residual artifacts in the dot matrix imaging link, optical window inhomogeneity and residual micro-textures of the standard template to the modulation index, and thus obtain the modulation index sequence.
[0010] Preferably, three times the uncertainty of the modulation index within the same frame is used as the statistical significance threshold; when the modulation index is lower than the threshold, the corresponding frame enters the noise floor saturation state and does not participate in the exponential regression; when the attenuation end enters the stable segment, the robust statistical value at the upper bound of the statistical value corresponding to the end frame in the noise floor saturation state is taken as the residual fluctuation degree.
[0011] Preferably, the equivalent horizontal horizontal distance is calculated based on the chain displacement corresponding to the position pulse sequence, including: The actual transmission time interval is calculated based on the measured chain displacement and real-time chain speed between two adjacent triggers. The actual transmission time interval or the nominal sampling period is selected as the sampling interval based on whether the deviation between the actual transmission time interval and the nominal sampling period exceeds a preset threshold. The equivalent horizontal distance is then accumulated starting from the frame that passes the mirror quality determination.
[0012] Preferably, extracting the monotonically decaying segment from the modulation index sequence includes: The modulation index sequence is differentially symbolized, and divided into three states: falling, flat, and rising, according to the differential sign. The proportion of each state is counted using a sliding window, and the window is judged based on the proportion to determine whether the monotonic decay dominance condition is met. If the monotonic decay dominance condition is met, the center frame of the window is included in the monotonic decay segment.
[0013] Preferably, before performing the exponential regression, a dispersion consistency self-check is performed on the flanking sideband window: The sideband window is divided radially into multiple subbands, and a trial exponential regression is performed on the modulation index subsequence corresponding to each subband to obtain the rate of each subband. When the dispersion between the rates of each sub-band exceeds a preset upper limit, the window center of the side wing window remains unchanged, the window width is narrowed, and the dispersion consistency self-check is repeated. When narrowing to the minimum statistical window width still does not meet the consistency requirements, multi-scale leveling marks are output, and the rate of each sub-band is used as the output result of the leveling rate coefficient.
[0014] Preferably, after obtaining the modulation index sequence and before performing the exponential regression, the method further includes azimuth difference anomaly triage: Using the non-wet film reference structure on the lifting device as a reference, a mapping from camera coordinates to the chain motion direction is established, and the gravity direction is projected onto the image plane; The sideband window is divided into multiple sectors aligned with the direction of gravity and the direction of chain motion. The ratio of the sideband energy to the carrier main peak window energy of each sector is calculated, and the sliding average of the ratio in each direction in the first few frames is used as the reference baseline. When the rise and duration of a certain azimuth ratio relative to the reference baseline exceed a preset value, the anomaly is determined as a sag anomaly, a solvent boiling anomaly, or an anomaly to be verified based on the relative distribution of each azimuth ratio. The attributed anomaly segment is then removed from the monotonically decaying segment before the exponential regression is performed.
[0015] This application has the following technical advantages: 1. This invention uses position pulse and other displacement triggering, carrier peak group follow-up affine normalization and same frame energy quotient modulation index construction to completely decouple the measurement channel from production line interference such as hanger swing, chain speed fluctuation, light source aging and reflectivity change, without the need to add online reflection reference hardware; on this basis, the leveling rate coefficient is output, which improves the wet film ripple attenuation process from qualitative observation to quantitative characterization, directly supporting the online judgment of leveling quality.
[0016] 2. This invention uses two levels of mirror quality judgment and two levels of noise subtraction, and a three-fold statistical significance threshold to block invalid frames in advance when the wet film deviates from the mirror state. In the weak signal stage of the later leveling stage, the effective signal is separated from the noise floor, avoiding non-positive values from entering the regression and rate estimation deviation. This ensures that the measurement maintains statistical consistency throughout the entire process, in which the mirror is unstable in the early stage of solvent evaporation and the weak signal coexists in the later stage.
[0017] 3. This invention separates abnormal leveling events such as sagging and solvent boiling from normal attenuation processes in three dimensions: time, wavenumber, and orientation, through monotonic attenuation segment extraction, dispersion consistency self-checking, and azimuth difference anomaly triage. Abnormal segments are only removed from the fitting window while the original data and status markers are completely preserved. The measurement results are accompanied by leveling rate coefficients, residual fluctuation degree, multi-scale markers, and anomaly attribution markers, which significantly improves the reliability and verifiability of the results and meets the quality traceability requirements under continuous production line operation. Attached Figure Description
[0018] Figure 1 This is a flowchart of steps S1-S5 in a method for dynamically determining the leveling properties of a coating film according to an embodiment of the present invention. Detailed Implementation
[0019] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0020] Reference Figure 1 A method for dynamically determining the leveling properties of a coating film includes steps S1-S5, as detailed below: S1: Obtain the position pulse sequence of the conveyor chain, and trigger the acquisition of the dot matrix image sequence of the wet film surface according to the position pulse sequence at a preset position step distance to obtain the dot matrix image sequence of the corresponding chain displacement of two adjacent frames.
[0021] First, the wet film workpiece is continuously carried through a leveling dark chamber by a conveyor chain. A light-limiting shield is installed inside the leveling dark chamber to isolate the measurement channel from external ambient light interference. A planar dot matrix projection light source is installed inside the leveling dark chamber to project a two-dimensional dot matrix pattern with a known spatial period onto the wet film surface. An image acquisition device is installed inside the leveling dark chamber, distributed on the same side of the wet film surface as the planar dot matrix projection light source within a coplanar principal section, allowing the dot matrix pattern to enter the imaging surface of the image acquisition device after being reflected by the wet film's specular surface. An automatically cleanable anti-paint fog optical window is installed at the front end of the image acquisition device to prevent optical degradation caused by paint fog and solvent condensation. A conveyor chain position encoder is installed on the conveyor chain drive wheel or driven sprocket to generate a pulse sequence proportional to the chain displacement.
[0022] Secondly, the position pulse sequence output by the conveyor chain position encoder is acquired. The position pulse trigger circuit does not use a fixed clock as the image acquisition trigger source, but rather the position pulse sequence as the trigger reference. The image processor generates an acquisition trigger signal according to the position pulse sequence at a preset position step distance, triggering the image acquisition device to acquire a dot matrix image of the wet film surface. The preset position step distance is set within the range of 1mm to 5mm; in this embodiment, it is set to 2mm. The setting is based on the following: the preset position step distance is determined by the minimum leveling feature length to be resolved and the minimum number of sampling frames within that feature length, satisfying that the preset position step distance is less than or equal to the minimum leveling feature length divided by the minimum number of sampling frames, and the number of encoder pulses between two adjacent triggers is calculated based on the chain displacement corresponding to each pulse of the conveyor chain position encoder. The step distance determines the spatial sampling interval between adjacent frames on the workpiece surface. If the step distance is set too large, the spatial sampling interval is too large, resulting in insufficient sampling points for the same wet film micro-element on the leveling time axis, and a decrease in the temporal resolution of the attenuation rate estimation. If the step distance is set too small, the trigger frame rate is too high, increasing the image data volume and computational load, potentially exceeding the online processing time budget. In this embodiment, with a chain speed of 20 m / min and a sampling position step size of 2 mm, the position trigger frame rate is approximately 166 frames / s, which meets the real-time requirements for online measurement of the leveling section. When the chain speed fluctuates, the chain displacement between two adjacent triggers remains constant, thereby ensuring that the spatial sampling interval of two adjacent frames on the workpiece surface is consistent, resulting in a dot matrix image sequence with equal chain displacements for two adjacent frames.
[0023] It should be noted that the field of view of the image acquisition device captures a wet film region with a spatial span along the chain direction. To obtain the evolution of the same physical surface region over time, the image processor uses position pulses as indices to extract and align strip windows with the same chain-direction coordinates in consecutive frames, forming a dynamic spectral sequence of the same wet film element on the equivalent leveling distance sequence. The field of view length, acquisition step size, and chain speed together determine the measurable leveling time window; the actual values are determined based on the site layout.
[0024] The position pulse triggering method differs fundamentally from the fixed frame rate plus post-processing chain speed compensation method. With a fixed frame rate, adjacent frames sampled are not equidistant in chain displacement. When correcting timestamps using chain speed data post-processing, discrete frames need to be remapped to a uniformly displaced grid. This remapping process can introduce signal reconstruction errors, and even spurious frequency components, when chain speed changes drastically, contaminating subsequent dynamic parameter extraction. Position pulse triggering ensures constant inter-frame chain displacement from the acquisition source, eliminating the need for time axis resampling and preventing resampling errors. Therefore, position pulse triggering does not simply perform mathematical compensation on the sampling timestamps of a fixed frame rate camera; rather, it irreplaceably guarantees end-to-end consistency from spatial sampling to temporal reconstruction.
[0025] S2: Perform mirror quality determination on each frame of the dot matrix image sequence, perform spectral transformation on only the frames that pass the determination to obtain the spectrum, and normalize the spectrum to the nominal coordinate system by affine transformation based on the dot matrix carrier peak group in the spectrum.
[0026] For each frame of the original light intensity image in the raster image sequence, an imaging linearity response self-test is first performed. The image processor calculates the pixel grayscale histogram for each frame and calculates the proportion of saturated pixels and the proportion of dark pixels.
[0027] When the saturated pixel ratio is lower than the first threshold (normal upper limit of saturated pixels) and the dark pixel ratio is lower than the second threshold (normal upper limit of dark pixels), the imaging system is determined to be in the linear response range, and the current frame can normally enter the subsequent spectrum analysis. The first threshold (normal upper limit of saturated pixels) is set in the range of 0.1% to 0.5%, and is set to 0.3% in this embodiment. The setting is based on engineering experience of the camera's linear response range. When the saturated pixel ratio is lower than the normal upper limit of saturated pixels, the camera is working in the linear region, and the multiplicative common-mode reduction mechanism is established. If the setting is too large, the number of overexposed pixels increases, the linear response assumption fails, the multiplicative factor cannot be completely reduced in the ratio, and the modulation index is mixed with non-physical gray-scale distortion. If the setting is too small, the image is too dark, the carrier peak signal-to-noise ratio is insufficient, the spectral peak significance determination is unstable, and normal mirror frames may be misjudged as unqualified. The second threshold (normal upper limit for dark pixels) is set within the range of 1% to 3%, and in this embodiment, it is set to 2%. The setting is based on engineering experience with carrier peak signal-to-noise ratio under underexposure conditions. When the proportion of dark pixels is lower than the normal upper limit for dark pixels, the overall image exposure is sufficient. If the setting is too high, the number of underexposed pixels increases, the carrier peak signal-to-noise ratio decreases, and the spectral peak significance becomes unstable. If the setting is too low, the risk of overexposure increases, conflicting with the constraint of the normal upper limit for saturated pixels. When the proportion of saturated pixels is between the first and third thresholds, or the proportion of dark pixels is between the second and fourth thresholds, the imaging system is determined to be in a boundary repairable range. For saturated or dark pixels, the average effective pixel value within the detection unit is used for marking and repair, and the gain-independent factor of the current frame is marked as 1, meaning that the co-mode characteristics of multiplicative interference in the same frame can still be maintained after repair. When the proportion of saturated pixels exceeds the third threshold or the proportion of dark pixels exceeds the fourth threshold, the imaging state is determined to be abnormal. The current frame is marked as pending verification or imaging failure, and it no longer enters spectral analysis. Simultaneously, an optical cleaning or exposure control request is output. The third threshold (abnormal upper limit of saturated pixel ratio) is set from 2% to 5%, and is set to 3% in this embodiment; the fourth threshold (abnormal upper limit of dark pixel ratio) is set from 4% to 8%, and is set to 5% in this embodiment.
[0028] In addition, the image processor uses linearity calibration records from two uniform fields of view to confirm that the linearity coefficient between the camera response and illuminance is within a preset tolerance. The linearity tolerance is set from 5% to 15%, and in this embodiment, it is set to 10%. The setting is based on fitting the linear relationship between the camera response grayscale and illuminance using the linearity calibration records from two uniform fields of view, and statistically analyzing the relative magnitude of the residual between the measured grayscale and the linear fitting value at each illuminance level. The linearity tolerance is taken as the upper limit of the statistical relative magnitude of this residual. In this embodiment, 10% corresponds to an illuminance range where the relative magnitude of the calibration residual does not exceed 10%. Within the tolerance range, the residual error of multiplicative common-mode reduction is acceptable. If the setting is too large, nonlinear response frames will be misjudged as linear, and the residual error of multiplicative reduction will increase. If the setting is too small, normal linear frames will be misjudged as nonlinear, and the effective frame pass rate will decrease. If the light source drive current and camera gain are adjusted within a single measurement window, the change in the multiplicative factor is recorded. Although the change in the multiplicative factor alters the absolute gray level of the image, since all energy extractions for the subsequent modulation index construction are constructed in the same frame using a ratio method, the change in the multiplicative factor can be canceled out in the ratio operation, thus not affecting the calculation of the modulation index.
[0029] There is a functional dependency between the imaging linear response self-test and the multiplicative interference suppression in the subsequent step S3. Only when the imaging linear response self-test confirms or repairs an image frame that meets the linear response conditions—namely, the proportion of saturated pixels in the current frame is below a first threshold, the proportion of dark pixels is below a second threshold, and the linear coefficient between camera response and illumination is within a preset tolerance range—can the multiplicative common-mode reduction mechanism of the energy quotient in the same frame be mathematically rigorous. If the imaging linear response self-test is not set and the energy quotient is directly calculated for a nonlinear response frame, the multiplicative factor cannot be completely reduced in the ratio, resulting in non-physical grayscale distortion components being mixed into the modulation index. Therefore, the imaging linear response self-test is a necessary prerequisite for the success of multiplicative interference suppression.
[0030] For frames that pass the imaging linear response self-test, the image processor performs a two-dimensional fast Fourier transform to obtain a complex spectrum, takes the modulus of the complex spectrum and performs center shifting to obtain the amplitude spectrum of the current frame.
[0031] The dot matrix pattern forms a two-dimensional frequency peak group in the spectrum with the nominal carrier frequency as the fundamental frequency. During system initialization, the template coordinates of the fundamental frequency peak group are recorded using the nominal image of a standard template. The nominal carrier frequency is the reference frequency on which the spectrum scale normalization is based. The dot matrix fundamental frequency peak group contains at least three non-collinear peak positions to cover the transverse fundamental frequency, the longitudinal fundamental frequency, and the first-order cross harmonic.
[0032] For the current frame, the image processor performs a peak candidate search within a search constraint window near the nominal carrier frequency. The search window radius ratio is set within the range of ±10% to ±20% of the nominal carrier frequency; in this embodiment, it is set to ±15%. The setting is based on the following: carrier frequency drift is determined by the object distance fluctuation range and the dot matrix period tolerance. The search window radius ratio is determined by the maximum carrier frequency drift rate, with the ratio of the maximum drift to the nominal carrier frequency as the lower limit and a margin reserved according to the statistical upper limit. The search window needs to cover the carrier frequency drift caused by normal production line object distance changes. If the setting is too large, noise peaks increase within the search window, false peaks are mixed into the candidate spectral element set, and the affine normalization parameter solution becomes unstable. If the setting is too small, carrier peaks may escape the search window during object distance fluctuations, peak group locking is lost, and normalization fails. The search constraint window is a frequency range centered on the nominal carrier frequency with a radius equal to a preset percentage of the nominal carrier frequency. The candidate spectral element set is defined as a continuous spectral element group within the search window whose spectral amplitude is not lower than the maximum spectral amplitude within the window multiplied by the candidate threshold. The candidate peak detection ratio is the ratio of the spectral amplitude threshold of the candidate spectral element set to the maximum spectral amplitude within the window. Its setting range is 20% to 50% of the maximum spectral amplitude within the window, and in this embodiment it is set to 35%. The setting is based on statistical experience of the ratio of carrier peak to noise peak amplitude. The candidate peak detection ratio can filter out most noise candidate peaks while retaining the real carrier peak. If the setting is too large, noise peaks will enter the candidate set, the spectral peak significance calculation will be contaminated, and the deviation of the affine parameter solution will increase. If the setting is too small, the real carrier peak may be filtered out in the weak mirror state, the number of candidate groups will be less than three, and the mirror quality gate will misjudge.
[0033] If the number of candidate groups is less than three, or the spectral peak significance of the candidate groups corresponding to the three base peaks is lower than the spectral peak significance judgment threshold, the current frame is marked as a frame with unqualified mirror quality. The spectral peak significance is calculated as follows: sum the squares of the amplitudes of each spectral element in the candidate group to obtain the spectral energy within the candidate group; average the squares of the amplitudes of each spectral element in the outer ring that is more than five normalized frequency resolution units away from the current peak to obtain the outer ring average energy; the ratio of the spectral energy within the candidate group to the outer ring average energy after adding a small amount to prevent division by zero is taken as the spectral peak significance. The threshold for determining the significance of the spectral peak is set in the range of 2.0 to 5.0, and in this embodiment it is set to 3.0. The setting is based on the following: the significance of the spectral peak is defined as the ratio of the spectral energy within the candidate group to the average energy of the outer ring plus the fractional zero. This ratio has a separable statistical distribution between normal mirror frames and unqualified mirror frames. The threshold for determining the significance of the spectral peak is taken as the high quantile boundary of this ratio distribution in normal mirror frames, corresponding to the statistical confidence that the carrier peak energy is significantly higher than the noise floor. This is consistent with the statistical logic of three times the statistical significance threshold. If the setting is too high, non-mirror frames pass through the quality gate, and subsequent spectrum analysis is performed under incorrect physical conditions. The energy quotient no longer reflects the surface ripple modulation. If the setting is too low, effective frames in the weak mirror state are mistakenly excluded, the measurable leveling time window is shortened, and there is insufficient data in the weak signal stage. The outer ring distance is set within the range of 3 to 8 normalized frequency resolution units (NRFs), and in this embodiment, it is set to 5. The setting is based on the following: the outer ring must be located outside the influence range of the carrier main lobe and the ripple modulation sideband. Its starting distance is determined according to the half-width of the carrier main lobe. It is set to no less than 5 NRFs to ensure that the average energy of the outer ring reflects the noise floor rather than carrier leakage. If the setting is too large, the outer ring will contain carrier leakage energy, the average energy of the outer ring will be overestimated, the spectral peak significance will be underestimated, and the effective frames will be mistakenly excluded. If the setting is too small, the outer ring distance may still be affected by the carrier sidelobes, and the noise floor estimate will be too high.
[0034] When the spectral peak significance is lower than the mirror quality judgment threshold, it is determined that the wet film surface cannot stably form a specular reflection dot matrix image, and the current frame is not included in subsequent energy extraction. Simultaneously, the mirror quality gate failure count is incremented by 1. When the number of consecutive failure frames exceeds the preset tolerance value, an alarm for darkroom glass cleaning and lens surface status is output, and the system switches to a low-confidence output mode, adding a 0-confidence marker to the result. The preset tolerance value is the consecutive failure tolerance value, set within the range of 0.2m to 1.0m chain displacement after conversion; in this embodiment, it is set to 0.5m. The conversion method is to convert the chain displacement into the upper limit of the consecutive failure frame count based on the current measured chain speed and the acquisition position step distance. In this embodiment, it is... The frame setting is based on the workpiece size and cleaning intervention response time on the production line. It is necessary to distinguish between instantaneous jitter and continuous failure. Continuous failure will trigger a cleaning alarm. If the setting is too large, continuous failure will not be intervened in time, the glass contamination in the darkroom will be aggravated, and the measurement results will be unreliable in the long term. If the setting is too small, instantaneous jitter will trigger unnecessary cleaning alarms and low confidence modes, affecting normal production.
[0035] The mirror quality gate blocks the entire data stream from subsequent spectral normalization, modulation index construction, and monotonic segment extraction. If the mirror quality gate is omitted, during periods when the wet film surface deviates from a mirror state due to atomized droplets, paint mist adhesion, or solvent boiling, subsequent spectral analysis will be performed under incorrect physical conditions, and the resulting energy quotient will no longer reflect surface ripple modulation. The mirror quality gate is not an auxiliary correction to the spectral analysis results, but rather ensures, from a physical measurement perspective, that each subsequent frame belongs to the defined range of a wet film surface capable of stably forming a specular reflection dot matrix image, thus giving the method a clear technical boundary.
[0036] For frames passing through the mirror quality gate, the image processor calculates peak coordinates within the candidate spectral set using amplitude centroid weighting. (The last sentence appears to be incomplete and requires further context.) Taking the first base peak as an example, the first... The horizontal coordinates of each spectral element in the candidate spectral element set of the first base peak are multiplied by their corresponding spectral amplitudes, summed, and then divided by the sum of the spectral amplitudes of all spectral elements in the candidate spectral element set to obtain the first base peak. The transverse centroid coordinates of each base peak are calculated; the longitudinal centroid coordinates are calculated similarly. Centroid weighting can compress the quantization error of the discrete grid points in the Fast Fourier Transform, enabling peak location accuracy to be better than that of a single frequency resolution unit.
[0037] The image processor constructs a peak group matrix for the current frame using the coordinates of at least three non-collinear peaks measured in the current frame, and uses the template peak group matrix recorded during system initialization as a reference matrix. The image processor solves for the affine parameter matrix based on the current frame peak group matrix and the template peak group matrix, ensuring that the affine parameter matrix, when applied to the current frame peak group matrix, equals the template peak group matrix. When more than three peaks are involved in the solution, an overdetermined system of equations is formed, which is solved using least squares. After obtaining the affine parameter matrix, the image processor applies an inverse transformation to each spectral element coordinate, resampling the current frame spectrum to a unified nominal coordinate system to obtain a normalized spectrum.
[0038] The aforementioned affine transformation can simultaneously handle object distance scaling along the optical axis, in-plane rotation, chain velocity shearing, and first-order perspective distortion. When the perspective distortion exceeds the affine representation range, a second-order distortion model is fitted with three or more peak positions, and higher-order normalization is achieved using spatially variable calibration parameters. Resampling uses complex spectral band-limited interpolation to ensure energy conservation; the bilinear interpolation reserved for the amplitude spectrum is only used for visualization preview and not for quantitative energy calculation to avoid energy non-conservation caused by amplitude interpolation.
[0039] It should be noted that existing technologies also include implementation paths that first perform feature point detection and image resampling on the reflective dot matrix image in the spatial domain, and then perform Fourier transform on the resampling image. While the aforementioned spatial domain path and the frequency domain affine normalization in this step share some similarities in mathematical objectives, their functional roles in the measurement chain differ. The frequency domain peak group centroid localization and affine normalization in this step do not rely on the absolute grayscale contrast of local feature points. Instead, they perform energy-weighted centroid calculation on the narrow-band spectral peaks of the strongly periodic dot matrix signal, with the localization information derived from the overall energy distribution of the carrier peak group's frequency band. When the wet film surface experiences localized contrast decreases, fine particle obstruction, or local specular distortion due to solvent evaporation, the spatial domain feature point detection method is prone to failure due to local feature loss, while the frequency domain centroid localization can still operate stably using the energy concentration characteristics of the periodic signal. More importantly, the normalization result in this step is directly output to the same spectrum used in the subsequent modulation index construction, eliminating the need for subsequent energy quotient calculations to transform between different coordinate systems. If spatial domain registration is performed before Fast Fourier Transform (FFT), an additional error propagation stage is introduced between the registration error and the FFT discretization error. Therefore, this step is synergistically coupled with the subsequent modulation index construction. Frequency domain normalization and the same frame's spectral energy quotient share the same coordinate grid and the same set of spectral data. This method of first normalizing the spectral domain and then directly constructing the energy quotient within the spectral domain is a key structural prerequisite for ensuring that there is no coordinate mismatch in the frame ratio.
[0040] When the relative change of the affine parameters of the current frame with respect to the statistical mean of the previous few valid frames exceeds the displacement statistical limit, it indicates that the optical path state of the current frame is experiencing severe jitter, the confidence of the main peak search is insufficient, and the current frame is marked as a frame to be verified and will not be included in the energy extraction for modulation index construction. The displacement statistical limit is set within the range of 4 to 8 times the upper limit of the standard deviation of the variance of the affine parameters of the previous few valid frames. In this embodiment, it is set to 6 times the standard deviation of the variance of the affine parameters of the previous 25 valid frames. The setting is based on the statistical distribution of the inter-frame fluctuations of the affine parameters. 6 times the standard deviation corresponds to the confidence level under the normal distribution. Exceeding the displacement statistical limit indicates severe jitter in the instantaneous optical path state, and the confidence of the main peak search is insufficient. If the setting is too large, frames with severe jitter will enter energy extraction, the affine normalized parameters will be unreliable, and the deviation of the modulation index calculation will increase. If the setting is too small, frames with normal attitude changes will be misjudged as frames to be verified, and the pass rate of valid frames will decrease. When the number of consecutive frames to be verified does not exceed the preset number (the allowable number of consecutive frames to be verified), the data link will not be interrupted. If the number of consecutive frames exceeds the preset number, a measurement interruption alarm will be output, and all original buffers will be retained. The allowable number of consecutive frames to be verified can be set from 3 to 10 frames; in this embodiment, it is set to 5 frames. The setting is based on the statistical analysis of the duration of severe jitter in the affine parameters. It is necessary to distinguish between transient jitter and measurement interruption. If the setting is too large, the measurement interruption will not be alarmed in time, and the data link will be unreliable for a long time. If the setting is too small, transient jitter will trigger an interruption alarm, affecting normal production.
[0041] In the normalized spectrum, the image processor defines three types of spectral domain observation windows.
[0042] The first type is the carrier peak window. The carrier peak window is centered on the normalized nominal carrier peak, with a radius proportional to the carrier peak frequency. It is used to capture the forward-facing energy of the coherent mirror that is not significantly modulated by ripple. The carrier peak window must not contain other higher-order harmonic peaks. The radius proportional range of the carrier peak window is set from 0.10 to 0.18 times the carrier nominal frequency; in this embodiment, it is set to 0.15 times. The setting is based on the requirement to capture the forward-facing energy of the coherent mirror that is not modulated by ripple, and it must not contain higher-order harmonic peaks. The radius proportional range of the carrier peak window satisfies the above constraints in a typical dot matrix spectrum. If the setting is too large, the window will contain ripple sideband energy or higher-order harmonics, contaminating the carrier reference energy and resulting in a low modulation index. If the setting is too small, insufficient carrier energy capture, low signal-to-noise ratio, and increased statistical fluctuations in the modulation index will occur.
[0043] The second type is the sideband extraction window. The sideband extraction window is located outside the carrier's main peak, with its center within a radial ring within a proportionate range of the sideband window's center at the carrier's nominal frequency. The ring width is a proportionate range of the sideband window's width at the carrier's nominal frequency. The upper and lower spectral domains are arranged symmetrically about the carrier's center to collect the migration energy generated by ripple modulation. The proportionate range of the sideband window's center is set to 0.30 to 0.50 times the carrier's nominal frequency; in this embodiment, it is set to the default of 0.40 times. The setting is based on the fact that the sideband energy generated by ripple modulation is concentrated within the proportionate range of the sideband window's center outside the carrier. The final value is automatically converged by the dispersion consistency self-check. If the setting is too large, the sideband energy is weak, the signal-to-noise ratio is insufficient, and the modulation index is unreliable. If the setting is too small, it approaches the carrier leakage region, the sideband window energy is contaminated by carrier leakage, and the modulation index is overestimated. The width ratio of the side window is set from 0.08 to 0.15 times the nominal carrier frequency; in this embodiment, it is set to 0.12 times. This setting is based on ensuring that the number of spectral elements within the window meets statistical reliability requirements while covering the main wavenumber range of ripple modulation. The side window width ratio balances both aspects. If the setting is too large, different attenuation rates at different wavenumbers will mix into non-exponential apparent attenuation, increasing the rate estimation deviation. If the setting is too small, the statistical degrees of freedom are insufficient, and the relative standard error of the window energy estimation will significantly deteriorate. The default initial value for the center frequency band of the sideband extraction window is the fourth ratio plus or minus the fifth ratio of the nominal carrier frequency. The fourth ratio is set to 0.40, and the fifth ratio to 0.10. The final value is automatically converged by the dispersion consistency self-check.
[0044] The third type is the carrier leakage isolation ring. The carrier leakage isolation ring is located between the outer edge of the carrier main peak window and the inner edge of the sideband extraction window. Its width is four to eight normalized frequency resolution units (NRFs) and is not less than the minimum width ratio of the isolation ring at the carrier nominal frequency. The width range of the isolation ring is set to 4 to 8 NRFs and is not less than the minimum width ratio of the isolation ring at the carrier nominal frequency. In this embodiment, the minimum width ratio of the isolation ring is 0.03, and the width range is set to 6. The setting is based on the need to suppress carrier spectrum leakage from contaminating the sideband window while providing a sufficient number of spectral elements for noise sampling. If the setting is too large, carrier leakage will penetrate into the sideband window, leading to an overestimation of the modulation index. If the setting is too small, the available wavenumber range of the sideband window will be compressed, or the insufficient number of sampled spectral elements will result in unstable noise estimation. The minimum width ratio of the isolation ring is set within the range of 0.02 to 0.05 times the nominal carrier frequency; in this embodiment, it is set to 0.03 times. This setting is based on ensuring that the isolation ring still has sufficient physical width to suppress leakage at low nominal carrier frequencies. If the setting is too large, isolation will be insufficient, and carrier leakage will contaminate the side windows. If the setting is too small, excessive spectral space will be occupied, compressing the usable range of the side windows. The carrier leakage isolation ring serves a dual function: first, to suppress the energy contamination of the side-band extraction window by carrier spectrum leakage; and second, to provide statistical sampling of the current frame noise in a direction away from the main lobe of the leakage. To ensure the statistical reliability of noise estimation, the number of spectral elements used for sampling within the carrier leakage isolation ring is no less than a preset number. If insufficient, the isolation ring is extended to the space-frequency region between the next higher-order harmonic peaks to ensure that the same sampling area does not contain any known carrier peaks or harmonic peaks. The minimum number of sampling spectral elements in the isolation ring can be set from 30 to 80, and in this embodiment it is set to 50. The setting is based on the statistical degree of freedom requirement of noise average energy estimation. The minimum number of sampling spectral elements in the isolation ring can make the relative standard error of noise average estimation meet the stability requirements of intra-frame noise subtraction. If the setting is too large, the noise estimation will fluctuate greatly, the intra-frame noise subtraction will be unstable, and the modulation exponential sequence will show abnormal fluctuations. If the setting is too small, the isolation ring needs to be extended to a larger spectral region, which may compress the side windows or include harmonic peaks.
[0045] Both the flanking sideband extraction window and the carrier main peak window are defined within a unified nominal coordinate system established by affine normalization. Since the affine normalization parameters are derived from the measured peak group of the current frame, the carrier main peak window and the flanking sideband extraction window are dynamically anchored to the actual spectral state of the current frame in each frame, without relying on fixed absolute frequency coordinates. Therefore, regardless of changes in object distance or workpiece rotation, the relative positions of the carrier main peak window and the flanking sideband extraction window within the nominal coordinate system remain stable, avoiding the problem of fixed-frequency windows mistakenly treating geometric distortion as ripple sidebands during attitude changes.
[0046] S3: Construct the modulation index based on the ratio of the carrier main peak window energy to the sideband window energy in the nominal coordinate system, and subtract the noise background to obtain the modulation index sequence.
[0047] For each frame of normalized spectrum that passes the mirror quality assessment, the image processor calculates the carrier main peak window energy and the flanking sideband extraction window energy. The carrier main peak window energy is obtained by summing the squares of the amplitudes of each spectral element within the carrier main peak window. The flanking sideband extraction window energy is obtained by summing the squares of the amplitudes of each spectral element within the lower side window of the flanking sideband extraction window, and then adding the sum of the squares of the amplitudes of each spectral element within the upper side window of the flanking sideband extraction window.
[0048] The carrier peak window energy and the flanking sideband extraction window energy come from the same frame, the same spectrum, and are located on the same nominal coordinate grid. Therefore, any multiplicative factor acting on the whole frame, including light source brightness drift, camera gain change, and overall reflectivity change, will be canceled out in the ratio of the two.
[0049] Without online reflective reference hardware, the suppression of multiplicative interference can only be achieved through the construction of relative quantities within the same frame and amplitude spectrum. While a dual-channel synchronous differential scheme with an independent reference optical path and a reference reflective surface can eliminate light source fluctuations to a first-order approximation, this scheme introduces an additional hardware reference. Furthermore, spatial position differences, optical path differences, and sensor response differences exist between the two channels. These differences themselves vary with temperature, vibration, and contamination, introducing new sources of non-common-mode error into the measurement channels. The reason this method must use the same-frame energy quotient instead of dual-channel hardware differential is that the measurement object is the lattice spectrum formed by specular reflection from the wet film surface. The carrier peak neighborhood energy and the flanking migration energy physically originate from the same reflected light field. Only the ratio within the same frame and amplitude spectrum can, in principle, guarantee the complete elimination of multiplicative common-mode interference. Any form of beam splitting, time-division, or channel-division acquisition will disrupt this common-mode relationship. This frame ratio construction is a necessary choice for this method to achieve multiplicative interference suppression without introducing the constraint of online reflection reference hardware. It cannot be equivalently replaced by adding hardware channels without changing the physical basis of the measurement.
[0050] The image processor performs two levels of noise reduction: The first stage is intra-frame noise floor subtraction. The image processor calculates the average energy of the sampled spectral elements within the carrier leakage isolation ring that do not contain known carrier harmonics, obtaining the average spectral energy of the isolation ring. This average spectral energy is then multiplied by the total number of normalized spectral elements covered by the flanking sideband extraction window to obtain the current frame noise floor estimate for the flanking sideband extraction window. The total number of normalized spectral elements refers to the number of spectral elements (normalized frequency resolution units) covered by the flanking sideband extraction window on the normalized spectrum, equal to the number of spectral elements corresponding to the area of the flanking window. Multiplying the average spectral energy of the isolation ring by this total number converts the ring noise level into a noise floor estimate within the flanking sideband extraction window. Since the carrier leakage isolation ring and the flanking sideband extraction window are in the same frame spectrum, the above noise estimate inherits the common-mode property of multiplicative interference. The image processor subtracts the current frame noise floor estimate from the flanking sideband extraction window energy to obtain the flanking sideband energy after subtracting intra-frame noise.
[0051] The second level is system-level noise floor offset subtraction. Before the measurement system is put into use, images of no less than the minimum number of frames required for noise floor calibration are collected on a flat standard sample with qualified mirror quality. The original modulation index is calculated according to the same process as described above: position pulse triggering, mirror quality judgment and spectrum normalization, and window energy summation. The average value of the original modulation index is taken as the system noise floor offset. The minimum number of frames required for noise floor calibration is set in the range of 80 to 200 frames, and in this embodiment it is set to 120 frames; the setting is based on the statistical convergence requirements of estimating the average value of the system noise floor offset. When estimating the system noise floor offset using frame statistical mean, the standard error of the mean-based estimation of the system noise floor offset is: ,Pick The frame rate can reduce the standard error to below the accuracy requirements for long-term drift monitoring. If the frame rate is too low, the noise floor offset estimation fluctuates greatly, the two-stage subtraction is unstable, and the modulation index exhibits systematic deviations. If the frame rate is too high, the calibration time is too long, affecting the system's operational efficiency. The surface arithmetic mean deviation of the standard sample should not exceed the maximum roughness of the standard sample, and there should be no periodic texture in the aforementioned frequency band. The maximum roughness of the standard sample is set within the range of Ra from 0.02 μm to 0.1 μm; in this embodiment, Ra is set to no more than 0.05 μm. The setting is based on the requirement that the standard sample has no periodic texture in the measurement frequency band and its surface is sufficiently flat to ensure that the noise floor calibration reflects the inherent artifacts of the imaging link rather than the sample texture. If the frame rate is too high, the sample texture contribution is mixed into the system noise floor, the noise floor offset is overestimated, and the modulation index is excessively subtracted. If the frame rate is too low, the sample manufacturing cost is too high, and the ultra-smooth surface is difficult to maintain in the production line environment. The system noise floor offset mainly reflects the contribution of residual artifacts from the dot matrix imaging link itself, optical window inhomogeneity, and residual micro-textures of the standard sample. The system noise floor offset does not overlap with the single-frame noise floor estimate, so the subtraction order is fixed as first subtracting the intra-frame noise term and then subtracting the system offset term, and there is no duplicate subtraction.
[0052] The image processor divides the flanking sideband energy (after subtracting intra-frame noise) by the carrier main peak window energy, and then subtracts the system noise floor offset to obtain the modulation index of the current frame. The modulation index is dimensionless. When the result after subtraction is negative, it is handled according to the statistical lower bound determination mechanism, and the logarithm of the negative value is not directly taken.
[0053] It is important to emphasize that the order of the two-stage noise subtraction cannot be reversed, nor can it be combined into a single-stage subtraction. Intra-frame noise background estimation and system noise floor offset have different physical sources and statistical characteristics: intra-frame noise background estimation comes from random noise energy incoherent with the carrier in the current frame spectrum, fluctuating with inter-frame light source and surface conditions; system noise floor offset comes from the fixed system contribution of the imaging link and the standard template, remaining relatively stable in the short term but slowly drifting over long-term operation. If the two are combined, the slow drift of the system noise floor will be confused with the rapidly changing random noise between frames, making it impossible to accurately track short-term noise changes or independently monitor long-term calibration drift. Subsequent calibration drift management requires separate monitoring of the changing trend of the system noise floor offset; therefore, the separate structure of the two-stage noise subtraction is a prerequisite for this method to achieve long-term operational stability management.
[0054] To avoid the mathematical definition flaw of negative logarithms when the signal falls into the noise floor during the later stage of leveling, this method sets a statistical significance threshold to form a statistical closed loop for non-positive value processing.
[0055] The image processor first calculates the uncertainty of the modulation index within the same frame based on error propagation. The uncertainty within the same frame is synthesized from the spectral statistical variance within the flanking sideband extraction window and the carrier main peak window, the noise background estimation variance, and the standard error of the system noise floor estimation. The image processor sets the statistical significance threshold as a multiple of the significance of the uncertainty within the same frame. The significance multiple is set in the range of 2 to 4 times the uncertainty within the same frame; in this embodiment, it is set to 3 times. The setting is based on the statistical confidence level of the normal distribution: the confidence level corresponding to 3 times the uncertainty within the same frame, i.e., when the modulation index is below the 3σ statistical significance threshold, the probability of falling into the noise floor statistical interval is less than 0.3%. The significance multiple corresponds to the standard statistical criterion for distinguishing effective signals from the noise floor. If the setting is too large, noise floor data points will be mistakenly included in the regression, the rate estimation will be contaminated by noise fluctuations, and non-positive values will appear, leading to defects in the mathematical definition of logarithmic regression. If the setting is too small, weak effective signals will be excessively eliminated, the fitable data segment will be shortened, and the accuracy of the rate estimation will decrease.
[0056] When the modulation index is below the statistical significance threshold, the following state transitions are executed: First, the current frame does not participate in subsequent exponential regression or updates to the historical sliding baseline, but retains the original data and status code noise floor saturation of the current frame. Second, if the above state persists and the sequence has entered the final stable segment, the residual fluctuation level is taken as the robust average of the last valid frames at the upper bound of the noise floor state, without setting an artificial truncation with a negative lower limit of zero, to avoid underestimating the residual ripple. Third, if the modulation index is significantly higher than the statistical significance threshold but a negative value appears, it indicates that the noise floor subtraction is excessive, automatically triggering the system noise floor offset verification flag and pausing the output of the current segment rate; if the above negative value comes from a transient anomaly in the optical path, the frame validity is reconfirmed by the mirror quality gate.
[0057] There is a direct input-output constraint between the aforementioned statistical closed loop and the subsequent exponential regression. Each frame's modulation index entering the exponential regression must be a statistically significant positive value; otherwise, the attenuation after taking the logarithm is mathematically undefined or statistically meaningless. While omitting the aforementioned closed loop and directly performing nonlinear least-squares exponential fitting on the modulation index sequence can avoid the negative logarithm problem, nonlinear least-squares requires reasonable initial values for the attenuation model parameters. Furthermore, after the signal falls into the noise floor, the fitting algorithm cannot distinguish between the actual signal still decaying exponentially and the signal being below the detection limit, easily misfitting random fluctuations in the noise floor as the actual attenuation component, leading to a systematic underestimation or overestimation of the rate coefficient. This method uses a three-fold statistical significance threshold to remove data points below the detection limit from the fitting input and explicitly marks the state as noise floor saturation, ensuring that exponential regression is only performed on statistically significant valid signals, thus guaranteeing the unbiasedness of the rate estimation from a mathematical perspective. Therefore, the aforementioned statistical closed loop is not a post-hoc remedy for the shortcomings of exponential regression, but rather a necessary component ensuring statistical consistency throughout the entire rate estimation process in the weak signal phase.
[0058] S4: The equivalent horizontal distance of each effective frame is calculated based on the chain displacement corresponding to the position pulse sequence. The equivalent horizontal distance is formed by the equivalent horizontal distance of each frame. The monotonically decaying segment is extracted from the modulation index sequence on the equivalent horizontal distance axis.
[0059] In position pulse trigger mode, the hard trigger signal received by the image acquisition device represents a fixed chain displacement. The image processor calculates the measured chain displacement based on the number of pulses output by the conveyor chain position encoder between two adjacent triggers, and calculates the actual conveying time interval between the current frame and the previous frame based on the measured chain displacement and the real-time chain speed. The real-time chain speed is estimated in real time using the average frequency of the position pulses.
[0060] The image processor determines whether the deviation between the actual transport time interval and the nominal sampling period exceeds the time deviation threshold. The time deviation threshold is set within the range of ±5% to ±12% of the nominal sampling period; in this embodiment, it is set to ±8%. The setting is based on the following: first, the chain speed fluctuation distribution on the production line is measured, and the time deviation threshold is set according to the normal chain speed fluctuation range. In this embodiment, ±8% covers approximately 95% of chain speed fluctuation conditions. It is necessary to distinguish between normal chain speed fluctuations and abnormal time deviations. If the setting is too small, normal fluctuations will frequently trigger time correction, introducing computational overhead and increasing time axis jitter. If the setting is too large, the actual time deviation will not be corrected, the equivalent horizontal distance will be inaccurate, and the attenuation rate estimation deviation will increase. When the time deviation exceeds the threshold, the time axis directly uses the actual transport time interval; when the time deviation does not exceed the threshold, the time axis uses the nominal sampling period to avoid additional noise introduced by high-frequency jitter. The image processor accumulates the sampling interval from the start position of the valid frame determined by the mirror quality to obtain the equivalent horizontal distance axis. The equivalent horizontal distance axis refers to the time axis obtained by converting the real physical time of the chain displacement at equal distances based on the real-time chain speed and accumulating it from the start position of the effective frame. Its deviation from the nominal sampling period time axis is eliminated by time distance deviation correction. It is used to ensure the accuracy of the time reference for attenuation rate estimation under chain speed fluctuation conditions.
[0061] The aforementioned timeline is directly derived from equidistant chain displacement sampling. Since the surface tension-driven leveling dynamics process uses the actual physical time after the wet film micro-element leaves the spraying station as the independent variable, the absolute magnitude of the chain speed only affects the physical time corresponding to the same chain displacement, without changing the physical meaning of the decay rate constant itself. This method binds image frames to equidistant chain displacements through position pulse triggering, and then converts the equidistant chain displacements into a sequence of equal physical time intervals using the ratio of chain displacement to chain speed. This ensures that chain speed fluctuations do not effectively amplify or compress the decay rate of the modulation index.
[0062] If a fixed frame rate camera is used and encoder data is used for post-processing chain speed compensation, then when the chain speed changes significantly within the single frame integration time, the physical time corresponding to different spatial locations within the same frame will be different, leading to confusion between intra-frame wavenumber information and temporal information. The position pulse triggering method of this approach ensures that the entire frame corresponds to a single chain displacement position at the moment of acquisition, fundamentally avoiding intra-frame temporal aliasing. Therefore, the combination of position pulse triggering and equivalent horizontal distance reconstruction constitutes a crucial guarantee for the temporal axis accuracy of this method.
[0063] The image processor performs differential symbolization on the modulation index sequence. When the modulation index of the next frame is less than the modulation index of the previous frame multiplied by a negative tolerance factor, it is recorded as a falling state; when the absolute value of the difference between the modulation index of the next frame and the modulation index of the previous frame does not exceed the modulation index of the previous frame multiplied by the inter-frame relative invariant band, it is recorded as a level state; otherwise, it is recorded as a rising state. The setting range of the inter-frame relative invariant band is 0.001 to 0.01. In this embodiment, it is set to 0.0025, and adaptive setting based on actual measured noise is allowed. The setting is based on the relative amplitude of the noise measured by the modulation index: the relative amplitude of the measured noise is estimated by the relative standard deviation of repeated measurements on a flat template. The inter-frame relative invariant band takes the upper limit of the statistical value of this amplitude. The inter-frame relative invariant band can distinguish between the actual attenuation and the measured noise fluctuation, and avoid noise fluctuation being misjudged as rising or falling. When the setting is too large, weak attenuation is misjudged as flat, the monotonic segment extraction is too strict, and the fittable data segment is shortened. When the setting is too small, the noise fluctuation trigger state switches frequently, the statistics of falling, flat, and rising states are unstable, and the monotonic segment determination is unreliable.
[0064] The image processor uses a sliding window of preset length to statistically analyze the proportions of three states: descending, leveling off, and ascending. The sliding window length for monotonic segments ranges from 41 to 101 frames (determined by the time scale corresponding to the frame rate). In this embodiment, it is set to 61 frames (approximately 0.37 seconds). The setting is based on the following: the time scale corresponding to the window should be less than the leveling decay time constant, and it needs to accommodate the statistical requirements of the maximum duration of local ascending (0.3 seconds is equivalent to approximately 50 frames at the current frame rate). The original 31 frames only amount to approximately 0.19 seconds at the frame rate of this embodiment, which cannot accommodate the 0.3-second local ascending criterion. Therefore, it is increased to 61 frames. If the setting is too large, the time scale corresponding to the window is too large, which may cross the leveling dynamic state change point, diluting the monotonic decay dominance condition. If the setting is too small, there are insufficient statistical samples within the window, resulting in large fluctuations in the estimated state proportions, and the inability to accommodate the local ascending criterion, leading to unstable monotonic segment determination. The sliding window length is determined based on the frame rate and the leveling dynamic time scale, and it is necessary to ensure that the window can accommodate the statistical requirements of the local ascending criterion. When the sliding window meets the following conditions, the center frame of the window is included in the monotonic decay segment: First, the proportion of frames in the falling state (i.e., frames in the falling state within the sliding window) to the total number of frames in the window is not less than the falling proportion threshold. The falling proportion threshold is set from 50% to 75%, and in this embodiment it is set to 65%. The setting is based on the statistical experience that the falling state should dominate in the monotonic decay process: the measured proportion of the falling state in the normal leveling decay segment is not less than 65%. The falling proportion threshold ensures that the decay trend within the window is significant, while tolerating a small amount of noise fluctuations that cause an increase or flatness. If the setting is too large, non-monotonic processes will mistakenly enter the fitting segment, and the rate estimation deviation will increase. If the setting is too small, windows with noise fluctuations in normal decay will be excluded, and the fitable data segment will be shortened. Second, the duration of a local rise should not exceed the maximum duration of a local rise, and the number of consecutive rise frames calculated based on the current frame rate should not exceed the statistically significant range of the sliding window length. The maximum duration of a local rise is set between 0.1s and 0.5s, and in this embodiment, it is set to 0.3s. The setting is based on the time scale during normal leveling decay when a local rise should not continue. The maximum duration of a local rise corresponds to the upper limit of the typical duration of noise fluctuations, and the number of consecutive rise frames calculated based on the current frame rate should not exceed the statistically significant range of the sliding window length (61 frames). If the setting is too large, abnormal rise segments are tolerated, polluting the monotonic decay segment and increasing the rate estimation deviation. If the setting is too small, noise fluctuation trigger segments are excluded, and the fitable data segment is shortened. Third, the proportion of the flat state, i.e., the proportion of the number of frames in the sliding window that are recorded as flat to the total number of frames in the window, should not exceed the flat proportion threshold.The threshold for the proportion of flatness is set from 10% to 30%, and in this embodiment it is set to 20%. The setting is based on the statistical experience that the flatness state should not dominate during the flatness attenuation process: the measured proportion of the flatness state in the normal flatness attenuation segment is no higher than 20%. The threshold for the proportion of flatness ensures that the attenuation trend is significant within the window. If the setting is too large, the stable segment at the end of the attenuation is mistakenly included in the monotonic segment, and the rate estimation is lowered by the residual fluctuations at the end. If the setting is too small, normal attenuation with slight noise is excluded, and the fitable data segment is shortened.
[0065] When the sliding window continuously fails to meet the above conditions for more than the duration of the anomaly determination, and the orientation anomaly criterion is also met, the above segment is diagnosed as an anomaly segment and will not participate in subsequent exponential regression; if the conditions are continuously failed to meet for more than the duration of the anomaly determination but the orientation anomaly criterion is not met, the segment is marked as pending review and will still not participate in subsequent exponential regression, but all original caches of the segment will be retained.
[0066] S5: Perform exponential regression on the modulation index within the monotonic attenuation range to obtain and output the leveling rate coefficient, thus completing the dynamic measurement of the leveling properties of the coating film.
[0067] The image processor divides the flanking band extraction window radially into multiple sub-bands, each with the same width and covering the entire radial range of the flanking band extraction window. The number of dispersive sub-bands is set from 2 to 5, and in this embodiment, it is set to 3. The setting is based on the resolvable granularity of wavenumber dispersion within the radial range of the flanking window, and a balance needs to be struck between statistical degrees of freedom and dispersive resolution. Each sub-band should contain no less than 8 normalized frequency resolution units to ensure the statistical reliability of the trial regression. Three sub-bands can simultaneously resolve radial wavenumber differences and maintain the statistical degrees of freedom of each sub-band. If the setting is too large, the number of spectral elements in each sub-band will be insufficient, the statistical reliability will decrease, and the sub-band rate estimation will fluctuate greatly. If the setting is too small, the dispersive resolution will be insufficient, the differences in decay rates of different wavenumbers will be averaged, and the bias of the single exponential model will increase. The image processor calculates the modulation index subsequence of each sub-band using the window energy corresponding to each sub-band according to the same process constructed by the modulation index mentioned above, and then performs a trial exponential regression on the modulation index subsequence of each sub-band to obtain the rate of each sub-band.
[0068] The image processor calculates the dispersion of each sub-band rate relative to the mean of each sub-band rate. When the dispersion does not exceed the upper limit, the ripple relaxation characteristics within the current flanking sideband extraction window are considered to be approximated by a single exponential model, allowing subsequent exponential regression to be performed on the entire flanking sideband extraction window. When the dispersion exceeds the upper limit, the image processor keeps the window center of the flanking sideband extraction window unchanged, narrows the window width, and repeats the dispersion consistency self-check. The upper limit of dispersion dispersion is set from 10% to 30%, and in this embodiment, it is set to 20%. The setting is based on the approximation error tolerance of the single exponential model in the wavenumber dimension. The difference in sub-band rates corresponding to the upper limit of dispersion dispersion is within an acceptable range. If the setting is too large, the multi-dispersion signals are forcibly fitted by a single exponential model, resulting in large rate estimation deviations and unclear physical meaning of the output results. If the setting is too small, normal dispersion fluctuations trigger unnecessary window width narrowing, and excessive narrowing of the flanking window leads to insufficient statistical degrees of freedom. The window width narrowing ratio can be set within the range of 30% to 70% of the original width each time, and is set to 50% in this embodiment. The setting is based on the balance between the iteration efficiency of the narrowing loop and the lower limit of the statistical degrees of freedom. The window width narrowing ratio can reach the minimum statistical window width within a limited number of iterations. If the setting is too large, the number of iterations will be too large and the amount of computation will be too large, which may exceed the online processing time budget. If the setting is too small, the narrowing step size will be insufficient, and the optimal window width may be skipped, requiring more iterations to achieve the consistency requirement.
[0069] Each time the aforementioned narrowing loop is executed, the window width is narrowed by a preset ratio, thus the number of iterations in the self-checking loop has a clear upper limit. The loop terminates when the narrowed window width reaches the minimum statistically acceptable window width. The minimum statistically acceptable window width is set within the range of 6 to 12 normalized frequency resolution units; in this embodiment, it is set to 8. The setting is based on the minimum statistical degrees of freedom requirement for window energy estimation. The minimum statistically acceptable window width ensures that the relative standard error of energy estimation is within an acceptable range. If the setting is too large, the window energy estimation will fluctuate greatly, the modulation index will be unstable, and the rate estimation deviation will increase. If the setting is too small, the narrowing loop will terminate prematurely, and a single exponential result will be output before the multi-dispersive signals are sufficiently separated. The minimum statistically acceptable window width is jointly determined by the frequency resolution of the Fast Fourier Transform and the minimum number of spectral elements required for energy statistics, ensuring that there are still sufficient statistical degrees of freedom within the narrowed window so that the relative standard error of the window energy estimation will not deteriorate significantly due to the insufficient number of spectral elements.
[0070] When narrowing to the minimum statistical window width still does not meet the consistency requirements, the image processor outputs multi-scale leveling marks and uses the rate of each sub-band as the output result of the leveling rate coefficient, avoiding the use of a single exponential model to forcibly fit the multi-dispersion superimposed signal.
[0071] Through the above sub-steps, the dispersion consistency self-check loop mathematically terminates in a finite number of steps: either it satisfies the dispersion consistency criterion at a certain window width, proceeding to subsequent exponential regression; or it terminates upon reaching the minimum statistically significant window width and outputs multi-scale leveling markers. The entire self-check process does not rely on repeated manual adjustments of external empirical parameters and can be automatically completed before fitting each candidate monotonic segment. The upper bound of the computational load is determined by the upper limit of the number of iterations and the complexity of each trial regression, which can be pre-estimated in engineering and meets the time budget for online processing.
[0072] The dispersion consistency self-check ensures that the working bandwidth of the sideband extraction window is no longer a fixed prior parameter, but rather adaptively converges based on the actual dispersion characteristics of the current wet film ripples. Under different paint types, film thicknesses, and solvent evaporation rates, ripple relaxation may exhibit different wavenumber dependencies; a fixed-width window integration would mix these different decay rates at different wavenumbers into a non-exponential apparent decay, leading to rate estimation bias. The dispersion consistency self-check, through self-checking and narrowing, ensures that the modulation exponential sequence ultimately participating in exponential regression satisfies the assumptions of a single exponential model, thereby guaranteeing that the output leveling rate coefficients have clear physical comparability.
[0073] Within the finally determined monotonically decaying segment, the image processor first obtains the terminal residual estimate. The terminal residual estimate is obtained in two stages: the first stage uses the positive boundary value of the statistical significance threshold corresponding to the frame at the end of the monotonically decaying segment in a low-noise saturation state as the initial value estimate; the second stage performs an exponential regression, and if the fitted residual shows a significant systematic shift in the terminal segment, that is, the residual estimate deviation exceeds the residual deviation judgment multiple of the residual estimate standard error, then the terminal residual estimate is updated with the residual correction amount and the regression is redone, the iteration does not exceed a preset number of times until the residual has no systematic trend. The residual bias judgment factor is set within the range of 2 to 4 times the residual estimation standard error; in this embodiment, it is set to 3 times. The setting is based on the statistical significance judgment of the systematic shift of the fitted residuals: when the residual estimation bias exceeds 3 times the residual estimation standard error, it is determined that there is a significant systematic shift in the terminal residuals, and the terminal residual estimation is updated with a residual correction amount. The residual bias judgment factor has a different meaning from the significance factor of the aforementioned statistical significance threshold; they are used for residual estimation self-checking and noise floor state judgment, respectively. If the setting is too large, the residual estimation is not sufficiently corrected, the terminal residual fluctuations are underestimated, and the rate estimation bias increases. If the setting is too small, excessive iteration correction may occur, potentially overfitting the terminal noise, and the residual estimation becomes unstable. The maximum number of iterations for residual estimation is set within the range of 2 to 5 times; in this embodiment, it is set to 3 times. The setting is based on the convergence characteristics of the two-stage iteration of the terminal residual estimation: iteration terminates when the residuals have no systematic trend; systematic shifts in the residuals can usually be eliminated within 3 iterations, and the benefits decrease with further iterations. If the setting is too small, the residual estimation does not converge, and the rate estimation bias increases. If the setting is too large, the computational cost increases, and overfitting the terminal noise may occur.
[0074] The image processor subtracts the terminal residual estimate from the modulation index of each frame within the monotonic decay segment to obtain the active component; then, it takes the natural logarithm of the active component to obtain the logarithmic decay. The image processor performs linear regression with the equivalent horizontal horizontal distance as the independent variable and the logarithmic decay as the dependent variable. The negative value of the linear regression slope is the horizontalization rate coefficient. The unit of the horizontalization rate coefficient is per second. The intercept of the linear regression corresponds to the logarithm of the initial amplitude.
[0075] The image processor calculates the coefficient of determination (COD) for the regression. When the COD is not lower than the COD validity threshold, it is determined to be a validly fit monotonic decay. When the COD is lower than the COD validity threshold, the above-mentioned segment is not forcibly expanded in the fitting range, and an insufficient decay fit flag is output, and a retest window is requested. The COD validity threshold is set from 0.70 to 0.95, and in this embodiment it is set to 0.85. The setting is based on engineering experience of linear regression goodness of fit: when the COD reaches 0.85 or higher, the regression model explains more than 85% of the variance of the modulation exponential sequence, and it is determined to be a validly fit monotonic decay, ensuring the statistical reliability of the rate estimation; if the setting is too small, the non-exponential process is forcibly fitted, the rate estimation deviation is large, and the physical meaning of the output result is unclear; if the setting is too large, the normal noisy decay segment is determined to be unfit, the number of output results is reduced, and the measurement coverage decreases.
[0076] The image processor divides the natural logarithm of two by the leveling rate coefficient to obtain the modulation exponential half-life. After the decay ends and enters the plateau phase, the image processor takes the robust median of the upper bound of the noise floor state and the average value of the significant signal in the last effective frame as the final residual fluctuation level.
[0077] The image processor outputs the leveling rate coefficient, modulation index half-life, residual fluctuation degree, and confidence level through the quality data interface. The fitting residual, the number of effective frames involved in the fitting, the number of frames discarded by the noise-low state, and the corresponding position markers are all output records for quality traceability and verification. The quality data interface also outputs positioning information such as the fixture number, chain displacement position, and equivalent leveling distance for the corresponding workpiece.
[0078] As a parallel implementation of exponential regression, this method also allows direct nonlinear least-squares exponential fitting of modulation index sequences that have not been logarithmically calculated. In this parallel implementation, the attenuation model represents the modulation index as the initial amplitude multiplied by the negative leveling rate coefficient of the natural exponent multiplied by the time power, plus the residual fluctuation estimate. The Levenberg-Marquardt algorithm is used for iterative solution. When the modulation index is below the statistical significance threshold, the current data point is not included in the fitting, or it is given an adaptively reduced weight based on the noise floor variance. This parallel implementation also relies on noise floor state determination to distinguish between effective signals and noise floor saturated data points; otherwise, nonlinear fitting will misfit the random fluctuations of the noise floor as the true attenuation component. Regardless of whether log-linear regression or nonlinear least-squares fitting is used, the results must pass the criterion that the coefficient of determination is not lower than the validity threshold, outputting a uniform leveling rate coefficient, half-life, and residual fluctuation degree. Log-linear regression has the advantages of not requiring initial values for iteration, computational stability, and the ability to directly obtain the slope and corresponding standard error from the least-squares closed-form solution; therefore, it is the preferred implementation method.
[0079] Thus, steps S1 to S5 constitute a complete dynamic measurement chain for the leveling properties of the coating film, outputting leveling rate coefficient, modulation index half-life, residual fluctuation degree, and anomaly attribution labels with start and end times that have clear physical meaning, thereby completing the dynamic measurement of the leveling properties of the coating film.
[0080] It should be noted that those skilled in the art can make various modifications and improvements without departing from the inventive concept, and these all fall within the scope of protection of this invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A method for dynamically determining the leveling properties of a coating film, characterized in that, The methods include: The position pulse sequence of the conveyor chain is obtained, and the dot matrix image sequence of the wet film surface is triggered according to the position pulse sequence at a preset position step distance to obtain the dot matrix image sequence of the same chain displacement corresponding to two adjacent frames. Perform a mirror quality assessment on each frame of the dot matrix image sequence, perform a spectral transformation on only the frames that pass the assessment to obtain the spectrum, and then perform a affine normalization of the spectrum to the nominal coordinate system based on the dot matrix carrier peak groups in the spectrum. The modulation index is constructed based on the ratio of the carrier main peak window energy to the sideband window energy in the nominal coordinate system, and the noise floor is subtracted to obtain the modulation index sequence. The equivalent horizontal distance of each effective frame is calculated based on the chain displacement corresponding to the position pulse sequence. The equivalent horizontal distance is formed by the equivalent horizontal distance. The monotonic attenuation segment is extracted from the modulation index sequence on the equivalent horizontal distance axis. Perform exponential regression on the modulation index within the monotonic attenuation range to obtain and output the leveling rate coefficient, thus completing the dynamic measurement of the leveling properties of the coating film.
2. The method for dynamically determining the leveling properties of a coating film according to claim 1, characterized in that, The process of performing mirror quality determination on each frame of the bitmap image sequence includes: The proportion of saturated pixels and the proportion of dark pixels in each frame of the dot matrix image sequence are statistically analyzed. If either exceeds a preset threshold, the image is determined to be abnormal and the frame is excluded. The frames that are not excluded are regarded as normal images. After performing the spectrum transformation on the normal imaging frame to obtain the spectrum, the ratio of the spectral energy within the dot matrix carrier peak group to the average energy of the outer ring in the spectrum is used as the spectral peak significance. When the spectral peak significance is lower than a preset value, it is determined that the prerequisite for specular reflection measurement is not met, and the normal imaging frame is excluded.
3. The method for dynamically determining the leveling properties of a coating film according to claim 1, characterized in that, The step of affinely normalizing the spectrum to the nominal coordinate system based on the dot matrix carrier peaks in the spectrum includes: The peak positions of each peak in the dot matrix carrier peak group are located by weighting the amplitude centroid; the peak positions of at least three non-collinear peaks are used to construct the current frame peak group matrix, and the affine parameters are solved based on the current frame peak group matrix and the preset template peak group matrix; the spectrum is resampled to the nominal coordinate system using the affine parameters.
4. The method for dynamically determining the leveling properties of a coating film according to claim 1, characterized in that, The noise background subtraction includes two levels of subtraction: In the first stage, the average energy of the sampled spectra within the carrier leakage isolation ring between the main carrier window and the sideband window is selected as the intra-frame noise background of the sideband window and subtracted from the energy of the sideband window. In the second stage, the ratio of the energy of the flanking sideband window to the energy of the carrier main peak window after deducting the intra-frame noise floor is further subtracted from the system noise floor offset measured on the standard template before the system is put into use, so as to eliminate the system contribution of residual artifacts in the dot matrix imaging link, optical window inhomogeneity and residual micro-textures of the standard template to the modulation index, and thus obtain the modulation index sequence.
5. The method for dynamically determining the leveling properties of a coating film according to claim 4, characterized in that, The statistical significance threshold is set at three times the uncertainty of the modulation index within the same frame. When the modulation index is below the threshold, the corresponding frame enters a noise floor saturation state and does not participate in the exponential regression. When the attenuation ends and enters a stable segment, the robust statistical value at the upper bound of the statistical value corresponding to the end frame in the noise floor saturation state is taken as the residual fluctuation degree.
6. The method for dynamically determining the leveling properties of a coating film according to claim 1, characterized in that, The equivalent horizontal horizontal distance is calculated based on the chain displacement corresponding to the position pulse sequence, including: The actual transmission time interval is calculated based on the measured chain displacement and real-time chain speed between two adjacent triggers. The actual transmission time interval or the nominal sampling period is selected as the sampling interval based on whether the deviation between the actual transmission time interval and the nominal sampling period exceeds a preset threshold. The equivalent horizontal distance is accumulated from the frame that passes the mirror quality determination.
7. The method for dynamically determining the leveling properties of a coating film according to claim 1, characterized in that, Extracting the monotonically decaying segment from the modulation index sequence on the equivalent horizontal horizontal distance axis includes: Differential symbolization is performed on the modulation index sequence, and the sequence is divided into three states: falling, flat, and rising, according to the differential symbol. The proportion of each state is counted using a sliding window, and the window is judged based on the proportion to determine whether the monotonic decay dominance condition is met. If the monotonic decay dominance condition is met, the center frame of the window is included in the monotonic decay segment.
8. The method for dynamically determining the leveling properties of a coating film according to claim 1, characterized in that, Before performing the exponential regression, a dispersion consistency self-check is performed on the flanking sideband window: The sideband window is divided radially into multiple subbands, and a trial exponential regression is performed on the modulation index subsequence corresponding to each subband to obtain the rate of each subband. When the dispersion between the rates of each sub-band exceeds a preset upper limit, the window center of the side wing window remains unchanged, the window width is narrowed, and the dispersion consistency self-check is repeated. When narrowing to the minimum statistical window width still does not meet the consistency requirements, multi-scale leveling marks are output, and the rate of each sub-band is used as the output result of the leveling rate coefficient.
9. The method for dynamically determining the leveling properties of a coating film according to claim 1, characterized in that, After obtaining the modulation index sequence and before performing the exponential regression, the process also includes azimuth difference anomaly triage: Using the non-wet film reference structure on the lifting device as a reference, a mapping from camera coordinates to the chain motion direction is established, and the gravity direction is projected onto the image plane; The sideband window is divided into multiple sectors aligned with the direction of gravity and the direction of chain motion. The ratio of the sideband energy to the carrier main peak window energy of each sector is calculated, and the sliding average of the ratio in each direction in the first few frames is used as the reference baseline. When the rise and duration of a certain azimuth ratio relative to the reference baseline exceed a preset value, the anomaly is determined as a sag anomaly, a solvent boiling anomaly, or an anomaly to be verified based on the relative distribution of each azimuth ratio. The attributed anomaly segment is then removed from the monotonically decaying segment before the exponential regression is performed.
