Optical-mechanical projection brightness and contrast self-adaptive method based on visual intelligence
By constructing an adaptive method for brightness and contrast in optical engine projection using visual intelligence technology, and by utilizing a visual evaluation network and a Kalman recursive mechanism, the stability and adaptability issues in the adaptive brightness and contrast of optical engine projection are solved, achieving strong brightness stability, good contrast consistency, and smooth response.
Patent Information
- Application Number
- CN202611471792.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-27
AI Technical Summary
Existing optical engine projection brightness and contrast adaptive methods have limited adaptability to complex content, are prone to overexposure in bright areas, loss of detail in dark areas or abrupt contrast changes, and lack the ability to characterize risk boundaries, resulting in response lag or over-adjustment and insufficient long-term operational stability.
By employing visual intelligence technology, a brightness and contrast adaptive adjustment process is constructed through a visual evaluation network, gated temporal recursion, radial basis function interpolation, and multi-constraint optimization, combined with the Kalman recursion mechanism. The process utilizes brightness features, anchor points, and risk boundaries for joint modeling and performs feedback-driven state updates.
It achieves strong brightness stability, good contrast consistency, smooth response, and high resistance to environmental and content disturbances, significantly reducing brightness fluctuations and flicker, and improving the stability and adaptability of optical engine projection.
Smart Images

Figure CN123185329A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of visual intelligence technology, and in particular to a method for adaptive brightness and contrast of optomechanical projection based on visual intelligence. Background Technology
[0002] With the increasing prevalence of optical engine projection in home theaters, educational presentations, and conference demonstrations, the stability of brightness and contrast of the projected image under different ambient light conditions, screen reflection conditions, and content structures has become a key factor affecting viewing experience and display consistency. Existing systems typically require dynamic adjustment of output parameters during video playback.
[0003] In existing adaptive brightness and contrast schemes, common approaches include global gain adjustment based on simple statistics such as frame-level brightness mean, variance, and histogram, or local contrast enhancement using gradient information extracted from edge operators. While these methods have a low implementation threshold, their adaptability to complex content is limited, and they are prone to problems such as overexposure in bright areas, loss of detail in dark areas, or abrupt contrast changes.
[0004] To improve stability, some solutions introduce time smoothing, sliding window averaging, or simple threshold strategies to suppress parameter jitter. However, these smoothing methods often lack characterization of risk boundaries and cannot effectively distinguish between sudden changes in image content and noise disturbances. This results in lag when rapid response is needed and over-adjustment when fluctuation suppression is required. In addition, traditional threshold strategies rely heavily on fixed empirical parameters, which are insufficient for generalization to different video types and brightness distribution patterns.
[0005] On the other hand, existing solutions often use piecewise linear or simple interpolation to generate control point sequences when constructing adaptive control curves. They lack systematic processing of the continuity, monotonicity, and feasible region constraints of the control curves, which can easily lead to situations where control points do not meet boundary constraints or the rate of change of adjacent control points is too large, resulting in abrupt changes in the brightness and contrast adjustment strategy on the execution side.
[0006] In addition, some solutions lack a feedback-based state update mechanism after execution, making it difficult to use the execution results to recursively correct the anchor points and boundaries of subsequent frames. This leads to the adaptive strategy gradually becoming inaccurate when the environment and content continue to drift, resulting in insufficient long-term operational stability.
[0007] Therefore, how to provide a method for adaptive brightness and contrast of optomechanical projection based on visual intelligence is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0008] One objective of this invention is to propose an adaptive method for the brightness and contrast of optomechanical projection based on visual intelligence. This invention fully utilizes techniques such as visual evaluation networks, gated temporal recursion, radial basis function interpolation, and multi-constraint optimization to jointly model the brightness characteristics, brightness anchor points, and risk boundaries of video content. During execution, the adjustment state is continuously updated through a feedback-driven Kalman recursion mechanism. The invention details the intelligent adaptive adjustment process for the brightness and contrast of optomechanical projection, which has the advantages of strong brightness stability, good contrast consistency, smooth response, and high resistance to environmental and content disturbances.
[0009] An adaptive method for optical-mechanical projection brightness and contrast based on visual intelligence according to an embodiment of the present invention includes the following steps: S1. Obtain the video stream to be projected and preprocess it to obtain a standard frame sequence; S2. Construct a luminance evaluation space on the current frame of the standard frame sequence, perform luminance distribution statistics on the luminance components of the current frame, and obtain the edge amplitude based on the global luminance variance and the Sobel operator to form a luminance feature vector. S3. Based on standard frame sequences and luminance feature vectors, a visual evaluation network is constructed using temporal convolution operators and residual mapping, and frame-level evaluation is performed. Key luminance samples are selected based on the evaluation results, and quantile truncation and Huber estimation are performed to extract luminance anchor sequence and risk boundary sequence. S4. Through the gated time-series recursion mechanism, the brightness anchor point sequence and risk boundary sequence within the sliding window are updated in a time-series recursion, and the radial basis function interpolation algorithm is used to fit the recursion results to form an adaptive scheme. S5. Construct a feasible region constraint set based on the risk boundary sequence, use the ADMM algorithm to solve the constraint projection of the adaptive scheme, and use the PAVA algorithm to verify the monotonicity of the solution results. S6. Collect feedback data from the implementation of the adaptive scheme, and update the state of the brightness anchor point and risk boundary corresponding to the current frame through a Kalman filter recursive mechanism.
[0010] Optionally, the preprocessing specifically includes parsing and reordering the frame timestamps of the video stream, and performing resolution normalization and aspect ratio alignment on the reordered frame sequence to obtain a uniform-sized frame sequence. Pixel value domain normalization is performed on the uniform size frame sequence, and a consistency index is calculated based on the inter-frame difference energy of adjacent frames. Temporal smoothing correction is performed on abnormal frames based on the consistency index. The temporal smoothing correction includes correction methods such as sliding window mean filtering, median filtering or interpolation based on adjacent frames for abnormal frames, to generate a time-continuous standard frame sequence. A sliding window buffer is established for the standard frame sequence. The current frame and historical frames are written according to the window index, and the state cache item corresponding to the window index is initialized. The state cache item includes at least the initial value of the brightness anchor point sequence, the initial value of the risk boundary sequence, and the initial value of the brightness mapping adaptive scheme.
[0011] Optionally, S2 specifically includes: S21. Extract the luminance components from the current frame of the standard frame sequence, organize the luminance components into a luminance matrix according to the pixel position, and construct a luminance evaluation space based on the luminance matrix. The luminance evaluation space is a luminance value domain with the pixel index of the luminance matrix as the coordinate system. The luminance value corresponding to each pixel index is used as an evaluation unit, and the set of pixels composed of all evaluation units in the luminance matrix is determined as the set of evaluation objects in the luminance evaluation space. S22. Perform brightness distribution statistics on the brightness matrix in the brightness evaluation space to generate brightness distribution statistics results. The brightness distribution statistics results include at least the quantile brightness values corresponding to the preset quantiles, the set of brightness distribution peak positions, and the peak width. S23. Calculate the global luminance variance based on the luminance matrix, and simultaneously calculate the global luminance mean of the luminance matrix. Assemble the global luminance variance and the global luminance mean in a preset order to form a global discrete feature. S24. Extracting edge magnitudes and generating brightness feature vectors based on the Sobel operator within the brightness evaluation space, specifically including: Perform horizontal and vertical Sobel convolutions on the brightness matrix to obtain the horizontal and vertical gradient matrices. The edge magnitude matrix is obtained by combining the magnitudes of the horizontal and vertical gradient matrices. The edge amplitude mean, the preset high quantile values of edge amplitude, and the proportion of edge pixels are calculated based on the edge amplitude matrix to form the edge amplitude statistical results. The edge amplitude statistics, brightness distribution statistics, and global discrete features are assembled in a preset feature order to obtain the brightness feature vector.
[0012] Optionally, S22 specifically includes: S221. Determine the brightness values in the brightness evaluation space as a set of statistical objects, obtain the minimum brightness value and the maximum brightness value in the set of statistical objects, divide multiple gray-scale bin intervals at equal intervals between the minimum brightness value and the maximum brightness value according to the preset number of bins, and count the brightness values in each gray-scale bin interval to obtain the bin frequency vector. S222. Based on the bin frequency vector, the cumulative distribution sequence is obtained by accumulating the bin indexes in order. The cumulative value at the end of the cumulative distribution sequence is determined as the total frequency. The target cumulative frequency is calculated for each preset quantile. The target bin index that satisfies the condition that the cumulative value is not less than the target cumulative frequency is located in the cumulative distribution sequence. S223. Read the lower boundary and upper boundary of the target bin corresponding to the target bin index, read the cumulative value of the previous bin and the cumulative value of the target bin index as the interpolation endpoints, and perform linear interpolation between the lower boundary and the upper boundary of the target bin according to the ratio of the target cumulative frequency to the interpolation endpoints to obtain the quantile brightness value. S224. Perform first-order difference between adjacent bins on the bin frequency vector to obtain the distribution change vector. Locate the sign reversal position from positive to negative in the distribution change vector to obtain the distribution peak position set. Read the corresponding peak frequency for each peak position in the distribution peak position set. S225. For each peak position in the distribution peak position set, multiply the peak frequency by a preset ratio to obtain the threshold frequency. Then, search for the bin index on the bin frequency vector from the peak position to both sides where the frequency is first less than the threshold frequency as the left and right boundaries. Determine the peak width based on the bin index spacing of the left and right boundaries. Assemble the quantile brightness value, the distribution peak position set and the peak width to obtain the brightness distribution statistics.
[0013] Optionally, S3 specifically includes: S31. Stack the luminance feature vectors corresponding to multiple consecutive frames in the standard frame sequence according to the time index to form a luminance feature sequence, and construct a visual evaluation network. The visual evaluation network includes a temporal convolutional coding unit, a residual mapping calibration unit and a multi-head evaluation unit, and perform frame-level evaluation on the luminance feature sequence to output a luminance quality score sequence and a luminance risk score sequence. S32. Based on the brightness quality score sequence and the brightness risk score sequence, perform constraint sorting on the frames within the sliding window, apply penalty weights to the frames whose brightness risk scores exceed the preset threshold and then rearrange them, and truncate the key frames in the rearranged results according to the cumulative proportion of brightness quality scores, and construct the key brightness sample sequence according to the key frame time index. S33. Perform quantile truncation and Huber-weighted robust statistics on the key brightness sample sequences to obtain the brightness anchor sequence and risk boundary sequence.
[0014] Optionally, the temporal convolutional coding unit performs multi-layer one-dimensional dilated convolutional coding on the brightness feature sequence according to the time dimension, the dilation rate is configured to increase in layers and the maximum temporal receptive field covers the sliding window length, and the convolutional kernel size is configured according to a preset fixed value. Between adjacent convolutional layers, the output of the previous convolutional layer is processed by the Sigmoid function to generate gate weights, and the gate weights are multiplied element-wise with the output of the next convolutional layer to suppress burst noise components. After each convolutional output, a linear projection is performed on the channel dimension to complete channel mixing and obtain temporal coding features. The residual mapping calibration unit performs dimension alignment on the time-series coding features and the luminance feature sequence. The dimension alignment is achieved by performing linear projection on the channel dimension of the luminance feature sequence to obtain the channel dimension consistent with the time-series coding features. The dimension-aligned luminance feature sequence is then used as the input of the residual direct connection branch and is superimposed element-wise with the time-series coding features to obtain the residual time-series sequence. The multi-head evaluation unit constructs a quality evaluation head and a risk evaluation head on the residual time sequence, respectively. The quality evaluation head performs temporal dimension smoothing aggregation on the residual time sequence and generates a brightness quality score sequence through multi-layer perceptual mapping. The risk evaluation head performs temporal dimension differential encoding on the residual time sequence and generates a brightness risk score sequence through multi-layer perceptual mapping. The adjacent time index change rate constraint is applied to the brightness quality score sequence and the brightness risk score sequence to form a set of frame-level brightness evaluation results.
[0015] Optionally, S4 specifically includes: S41. Establish an association mapping of the same time index between the brightness anchor point sequence and the risk boundary sequence within the sliding window. For each time index, construct a state observation item consisting of the brightness anchor point value and the risk boundary value, and initialize the recursive state with the state observation item corresponding to the first frame of the sliding window. S42. Perform gated time-series recursive update on each time index within the sliding window, calculate the anchor point residual and risk boundary width, obtain the gate coefficient through Sigmoid mapping, and then perform upper and lower limit pruning. Based on the gate coefficient, perform exponential weighted moving average update on the recursive anchor point value and risk boundary value to form the recursive anchor point sequence and recursive risk boundary sequence. S43. Use the time index within the sliding window as the interpolation input and the recursive anchor point value as the interpolation output. Select a preset number of time indices as the interpolation center and determine the scale parameter. Calculate the kernel value of the time index and each interpolation center based on the Gaussian radial basis function to form a kernel matrix. Use ridge regression with Tikhonov regularization to solve the interpolation weights and obtain the continuous fitting function of the recursive anchor point. S44. Generate a control point sequence on the continuous fitting function according to the preset sampling step size, perform Savitzky-Golay smoothing filtering on the control point sequence, and perform interval pruning according to the risk boundary width value of the recursive risk boundary sequence. Then, assemble the control point sequence and the recursive risk boundary sequence to form an adaptive scheme.
[0016] Optionally, S43 specifically includes: S431. Obtain the time index set corresponding to the recursive anchor point sequence within the sliding window, and perform equal-interval sampling on the time index set according to the time index order to determine the interpolation center set, wherein the number of elements in the interpolation center set is a preset number. S432. Calculate the time interval set based on the time interval between adjacent interpolation centers in the interpolation center set, take the median of the time interval set as the initial value of the scale parameter, and perform upper and lower limit clipping on the initial value of the scale parameter to obtain the radial basis function scale parameter. S433. The kernel value between each time index and each interpolation center within the sliding window is calculated using the Gaussian radial basis function. The kernel matrix is assembled according to the correspondence between the time index and the interpolation center. The recursive anchor point values corresponding to the interpolation center set are read from the recursive anchor point sequence to form the target vector. S434. Introduce Tikhonov regularization terms into the kernel matrix and the target vector to form a ridge regression problem. Use Cholesky decomposition to solve the interpolation weights, and then weight and accumulate the interpolation weights with the Gaussian radial basis function kernel value according to the interpolation center to obtain a continuous fitting function for the recursive anchor point.
[0017] Optionally, S5 specifically includes: S51. Construct a feasible region constraint set based on the risk boundary sequence, convert the risk boundary width value of the risk boundary sequence into the control point value interval constraint corresponding to each time index, and use Hampel filtering to calculate the robust threshold for the adjacent difference increment of the control point sequence to form the adjacent control point change rate constraint, thus obtaining the feasible region constraint set. S52. The ADMM algorithm is used to solve the constraint projection problem of the control point sequence, specifically including: Set the control point sequence as the original variable and introduce the projected variable. Take the difference between the original variable and the control point sequence corresponding to the adaptive scheme, and the consistency term between the original variable and the projected variable as the target for updating the original variable. Perform a closed update on the original variable in each iteration to obtain the current original variable. Perform constraint projection update on the projected variable, and sequentially perform value interval pruning and adjacent difference limiting on the current original variable under the feasible domain constraint set to obtain the current projected variable, and simultaneously update the dual variable, and record the consistency deviation between the original variable and the projected variable; The iteration terminates when both the consistency deviation and the projection residual simultaneously meet the preset stopping condition, and the current projection variable is output as a sequence of feasible control points for constraints. S53. Perform monotonicity checks on the feasible control points to detect the monotonicity violation positions of the control point sequence on the time index. At the violation positions, use the PAVA algorithm to perform segmentation, merging, and mean backfilling to obtain the final control point sequence that satisfies the monotonicity constraints.
[0018] Optionally, S6 specifically includes: S61. Collect the execution feedback data of the adaptive scheme in the current frame, and extract the brightness feedback value and risk boundary width feedback value corresponding to the current frame from the feedback data. Assemble the brightness feedback value and risk boundary width feedback value into an observation vector. S62. Using the previous frame's filtered state as a priori, perform linear state propagation to obtain the current frame's predicted state. Calculate the observation residual between the observation vector and the predicted state, and calculate the Mahalanobis distance accordingly. Adaptively scale the observation noise covariance based on Mahalanobis distance gating, and calculate the Kalman gain to complete the correction update and obtain the current frame's updated state. S63. Read the updated brightness anchor point value and the updated risk boundary width value from the current frame update state, and replace the brightness anchor point value and risk boundary width value corresponding to the current frame as the input for subsequent sliding window recursion.
[0019] The beneficial effects of this invention are: First, this invention uses the brightness evaluation space of standard frame sequences as a basis, combines grayscale distribution statistics and edge amplitude features to form a brightness feature vector, and outputs a brightness quality score and a brightness risk score through a visual evaluation network composed of temporal convolution and residual calibration. Then, it selects key brightness samples from the temporal dimension and extracts brightness anchor point sequences and risk boundary sequences.
[0020] Secondly, this invention uses gated temporal recursion to recursively update anchor points and boundaries within a sliding window, and uses Gaussian radial basis function interpolation to continuously fit the recursive anchor points. Then, it uses smoothing filtering and risk boundary width constraints to prune the control point sequence, forming a continuous and constrained adaptive scheme.
[0021] Finally, this invention uses ADMM to solve the projection under multiple constraints and PAVA for monotonicity verification. At the same time, it uses execution feedback to construct the observation vector and updates the anchor point and boundary state through Kalman recursion with Mahalanobis distance gating. Attached Figure Description
[0022] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is an overall flowchart of a visual intelligence-based method for adaptive brightness and contrast in optomechanical projection proposed in this invention. Figure 2 This is a schematic diagram of the brightness evaluation space construction and brightness feature vector generation of a visual intelligence-based optical-mechanical projection brightness and contrast adaptive method proposed in this invention. Figure 3This is a schematic diagram illustrating the generation of the brightness anchor point sequence and risk boundary sequence in a visual intelligence-based optomechanical projection brightness and contrast adaptive method proposed in this invention. Detailed Implementation
[0023] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0024] refer to Figure 1-3 A method for adaptive brightness and contrast of optomechanical projection based on visual intelligence includes the following steps: S1. Obtain the video stream to be projected and preprocess it to obtain a standard frame sequence; S2. Construct a luminance evaluation space on the current frame of the standard frame sequence, perform luminance distribution statistics on the luminance components of the current frame, and obtain the edge amplitude based on the global luminance variance and the Sobel operator to form a luminance feature vector. S3. Based on standard frame sequences and luminance feature vectors, a visual evaluation network is constructed using temporal convolution operators and residual mapping, and frame-level evaluation is performed. Key luminance samples are selected based on the evaluation results, and quantile truncation and Huber estimation are performed to extract luminance anchor sequence and risk boundary sequence. S4. Through the gated time-series recursion mechanism, the brightness anchor point sequence and risk boundary sequence within the sliding window are updated in a time-series recursion, and the radial basis function interpolation algorithm is used to fit the recursion results to form an adaptive scheme. S5. Construct a feasible region constraint set based on the risk boundary sequence, use the ADMM algorithm to solve the constraint projection of the adaptive scheme, and use the PAVA algorithm to verify the monotonicity of the solution results. S6. Collect feedback data from the implementation of the adaptive scheme, and update the state of the brightness anchor point and risk boundary corresponding to the current frame through a Kalman filter recursive mechanism.
[0025] In this embodiment, the preprocessing specifically includes parsing and reordering the frame timestamps of the video stream, and performing resolution normalization and aspect ratio alignment on the reordered frame sequence to obtain a uniform size frame sequence. Pixel value domain normalization is performed on the uniform size frame sequence, and a consistency index is calculated based on the inter-frame difference energy of adjacent frames. Temporal smoothing correction is performed on abnormal frames based on the consistency index. The temporal smoothing correction includes correction methods such as sliding window mean filtering, median filtering or interpolation based on adjacent frames for abnormal frames, to generate a time-continuous standard frame sequence. A sliding window buffer is established for the standard frame sequence. The current frame and historical frames are written according to the window index, and the state cache item corresponding to the window index is initialized. The state cache item includes at least the initial value of the brightness anchor point sequence, the initial value of the risk boundary sequence, and the initial value of the brightness mapping adaptive scheme.
[0026] In this embodiment, S2 specifically includes: S21. Extract the luminance components from the current frame of the standard frame sequence, organize the luminance components into a luminance matrix according to the pixel position, and construct a luminance evaluation space based on the luminance matrix. The luminance evaluation space is a luminance value domain with the pixel index of the luminance matrix as the coordinate system. The luminance value corresponding to each pixel index is used as an evaluation unit, and the set of pixels composed of all evaluation units in the luminance matrix is determined as the set of evaluation objects in the luminance evaluation space. S22. Perform brightness distribution statistics on the brightness matrix in the brightness evaluation space to generate brightness distribution statistics results. The brightness distribution statistics results include at least the quantile brightness values corresponding to the preset quantiles, the set of brightness distribution peak positions, and the peak width. S23. Calculate the global luminance variance based on the luminance matrix, and simultaneously calculate the global luminance mean of the luminance matrix. Assemble the global luminance variance and the global luminance mean in a preset order to form a global discrete feature. S24. Extracting edge magnitudes and generating brightness feature vectors based on the Sobel operator within the brightness evaluation space, specifically including: Perform horizontal and vertical Sobel convolutions on the brightness matrix to obtain the horizontal and vertical gradient matrices. The edge magnitude matrix is obtained by combining the magnitudes of the horizontal and vertical gradient matrices. The edge amplitude mean, the preset high quantile values of edge amplitude, and the proportion of edge pixels are calculated based on the edge amplitude matrix to form the edge amplitude statistical results. The edge amplitude statistics, brightness distribution statistics, and global discrete features are assembled in a preset feature order to obtain the brightness feature vector.
[0027] In this embodiment, S22 specifically includes: S221. Determine the brightness values in the brightness evaluation space as a set of statistical objects, obtain the minimum brightness value and the maximum brightness value in the set of statistical objects, divide multiple gray-scale bin intervals at equal intervals between the minimum brightness value and the maximum brightness value according to the preset number of bins, and count the brightness values in each gray-scale bin interval to obtain the bin frequency vector. S222. Based on the bin frequency vector, the cumulative distribution sequence is obtained by accumulating the bin indexes in order. The cumulative value at the end of the cumulative distribution sequence is determined as the total frequency. The target cumulative frequency is calculated for each preset quantile. The target bin index that satisfies the condition that the cumulative value is not less than the target cumulative frequency is located in the cumulative distribution sequence. S223. Read the lower boundary and upper boundary of the target bin corresponding to the target bin index, read the cumulative value of the previous bin and the cumulative value of the target bin index as the interpolation endpoints, and perform linear interpolation between the lower boundary and the upper boundary of the target bin according to the ratio of the target cumulative frequency to the interpolation endpoints to obtain the quantile brightness value. S224. Perform first-order difference between adjacent bins on the bin frequency vector to obtain the distribution change vector. Locate the sign reversal position from positive to negative in the distribution change vector to obtain the distribution peak position set. Read the corresponding peak frequency for each peak position in the distribution peak position set. S225. For each peak position in the distribution peak position set, multiply the peak frequency by a preset ratio to obtain the threshold frequency. Then, search for the bin index on the bin frequency vector from the peak position to both sides where the frequency is first less than the threshold frequency as the left and right boundaries. Determine the peak width based on the bin index spacing of the left and right boundaries. Assemble the quantile brightness value, the distribution peak position set and the peak width to obtain the brightness distribution statistics.
[0028] In this embodiment, S3 specifically includes: S31. Stack the luminance feature vectors corresponding to multiple consecutive frames in the standard frame sequence according to the time index to form a luminance feature sequence, and construct a visual evaluation network. The visual evaluation network includes a temporal convolutional coding unit, a residual mapping calibration unit and a multi-head evaluation unit, and perform frame-level evaluation on the luminance feature sequence to output a luminance quality score sequence and a luminance risk score sequence. S32. Based on the brightness quality score sequence and the brightness risk score sequence, perform constraint sorting on the frames within the sliding window, apply penalty weights to the frames whose brightness risk scores exceed the preset threshold and then rearrange them, and truncate the key frames in the rearranged results according to the cumulative proportion of brightness quality scores, and construct the key brightness sample sequence according to the key frame time index. S33. Perform quantile truncation and Huber-weighted robust statistics on the key brightness sample sequences to obtain the brightness anchor sequence and risk boundary sequence, specifically including: The key brightness sample sequences are sorted and statistically analyzed according to feature dimensions. Sample values corresponding to the upper and lower preset quantiles are taken in each feature dimension to determine the upper and lower quantile truncation thresholds. Based on the upper and lower quantile truncation thresholds, the sample components in the key brightness sample sequence that exceed the threshold range are truncated and replaced to form a truncated sample sequence; Using the median value of each feature dimension as the central benchmark on the truncated sample sequence, the residuals of the sample components relative to the central benchmark are calculated, and the weights are calculated using the Huber weight function based on the absolute value of the residuals. After normalizing the weights, the truncated sample sequence is weighted and aggregated to obtain robust central statistics. The robust central statistics are then organized into a brightness anchor sequence according to the time index. Based on the weights, a weighted discrete calculation is performed on the residuals to obtain robust discrete statistics. Then, based on the robust discrete statistics, the brightness anchor sequence is shifted upward and downward to generate upper and lower boundary sequences, forming a risk boundary sequence.
[0029] In this embodiment, the temporal convolutional coding unit performs multi-layer one-dimensional dilated convolutional coding on the brightness feature sequence according to the time dimension. The dilation rate is configured to increase in layers and make the maximum temporal receptive field cover the sliding window length. The convolutional kernel size is configured according to a preset fixed value. Between adjacent convolutional layers, the output of the previous convolutional layer is processed by the Sigmoid function to generate gate weights, and the gate weights are multiplied element-wise with the output of the next convolutional layer to suppress burst noise components. After each convolutional output, a linear projection is performed on the channel dimension to complete channel mixing and obtain temporal coding features. The residual mapping calibration unit performs dimension alignment on the time-series coding features and the luminance feature sequence. The dimension alignment is achieved by performing linear projection on the channel dimension of the luminance feature sequence to obtain the channel dimension consistent with the time-series coding features. The dimension-aligned luminance feature sequence is then used as the input of the residual direct connection branch and is superimposed element-wise with the time-series coding features to obtain the residual time-series sequence. The multi-head evaluation unit constructs a quality evaluation head and a risk evaluation head on the residual time sequence, respectively. The quality evaluation head performs temporal dimension smoothing aggregation on the residual time sequence and generates a brightness quality score sequence through multi-layer perceptual mapping. The risk evaluation head performs temporal dimension differential encoding on the residual time sequence and generates a brightness risk score sequence through multi-layer perceptual mapping. The adjacent time index change rate constraint is applied to the brightness quality score sequence and the brightness risk score sequence to form a set of frame-level brightness evaluation results.
[0030] In this embodiment, S4 specifically includes: S41. Establish an association mapping of the same time index between the brightness anchor point sequence and the risk boundary sequence within the sliding window. For each time index, construct a state observation item consisting of the brightness anchor point value and the risk boundary value, and initialize the recursive state with the state observation item corresponding to the first frame of the sliding window. S42. For each time index within the sliding window, perform gated time-series recursive updates sequentially. Calculate the anchor point residual and risk boundary width, obtain the gating coefficients through Sigmoid mapping, and then perform upper and lower limit pruning. Based on the gating coefficients, perform exponentially weighted moving average updates on the recursive anchor point values and risk boundary values to form a recursive anchor point sequence and a recursive risk boundary sequence. Specifically, this includes: Calculate the anchor point residual between the brightness anchor point value corresponding to the current time index and the recursive anchor point value of the previous time index, and calculate the risk boundary width corresponding to the current time index. Based on the anchor point residual and the risk boundary width, the gating coefficient is obtained by mapping through the Sigmoid function, and the upper and lower limits of the gating coefficient are pruned at the same time. Using the gating coefficient as the update weight, the recursive anchor point value and the risk boundary value are updated by exponential weighted moving average to obtain the recursive anchor point value and the recursive risk boundary value of the current time index. The recursive anchor point values corresponding to each time index are used to form a recursive anchor point sequence, and the recursive risk boundary values corresponding to each time index are used to form a recursive risk boundary sequence. S43. Use the time index within the sliding window as the interpolation input and the recursive anchor point value as the interpolation output. Select a preset number of time indices as the interpolation center and determine the scale parameter. Calculate the kernel value of the time index and each interpolation center based on the Gaussian radial basis function to form a kernel matrix. Use ridge regression with Tikhonov regularization to solve the interpolation weights and obtain the continuous fitting function of the recursive anchor point. S44. Generate a control point sequence on the continuous fitting function according to the preset sampling step size, perform Savitzky-Golay smoothing filtering on the control point sequence, and perform interval pruning according to the risk boundary width value of the recursive risk boundary sequence. Then, assemble the control point sequence and the recursive risk boundary sequence to form an adaptive scheme.
[0031] In this embodiment, S43 specifically includes: S431. Obtain the time index set corresponding to the recursive anchor point sequence within the sliding window, and perform equal-interval sampling on the time index set according to the time index order to determine the interpolation center set, wherein the number of elements in the interpolation center set is a preset number. S432. Calculate the time interval set based on the time interval between adjacent interpolation centers in the interpolation center set, take the median of the time interval set as the initial value of the scale parameter, and perform upper and lower limit clipping on the initial value of the scale parameter to obtain the radial basis function scale parameter. S433. The kernel value between each time index and each interpolation center within the sliding window is calculated using the Gaussian radial basis function. The kernel matrix is assembled according to the correspondence between the time index and the interpolation center. The recursive anchor point values corresponding to the interpolation center set are read from the recursive anchor point sequence to form the target vector. S434. Introduce Tikhonov regularization terms into the kernel matrix and the target vector to form a ridge regression problem. Use Cholesky decomposition to solve the interpolation weights, and then weight and accumulate the interpolation weights with the Gaussian radial basis function kernel value according to the interpolation center to obtain a continuous fitting function for the recursive anchor point.
[0032] In this embodiment, S5 specifically includes: S51. Construct a feasible region constraint set based on the risk boundary sequence, convert the risk boundary width value of the risk boundary sequence into the control point value interval constraint corresponding to each time index, and use Hampel filtering to calculate the robust threshold for the adjacent difference increment of the control point sequence to form the adjacent control point change rate constraint, thus obtaining the feasible region constraint set. S52. The ADMM algorithm is used to solve the constraint projection problem of the control point sequence, specifically including: Set the control point sequence as the original variable and introduce the projected variable. Take the difference between the original variable and the control point sequence corresponding to the adaptive scheme, and the consistency term between the original variable and the projected variable as the target for updating the original variable. Perform a closed update on the original variable in each iteration to obtain the current original variable. Perform constraint projection update on the projected variable, and sequentially perform value interval pruning and adjacent difference limiting on the current original variable under the feasible domain constraint set to obtain the current projected variable, and simultaneously update the dual variable, and record the consistency deviation between the original variable and the projected variable; The iteration terminates when both the consistency deviation and the projection residual simultaneously meet the preset stopping condition, and the current projection variable is output as a sequence of feasible control points for constraints. S53. Perform monotonicity checks on the feasible control points to detect the monotonicity violation positions of the control point sequence on the time index. At the violation positions, use the PAVA algorithm to perform segmentation, merging, and mean backfilling to obtain the final control point sequence that satisfies the monotonicity constraints.
[0033] In this embodiment, S6 specifically includes: S61. Collect the execution feedback data of the adaptive scheme in the current frame, and extract the brightness feedback value and risk boundary width feedback value corresponding to the current frame from the feedback data. Assemble the brightness feedback value and risk boundary width feedback value into an observation vector. S62. Using the previous frame's filtered state as a priori, perform linear state propagation to obtain the current frame's predicted state. Calculate the observation residual between the observation vector and the predicted state, and calculate the Mahalanobis distance accordingly. Adaptively scale the observation noise covariance based on Mahalanobis distance gating, and calculate the Kalman gain to complete the correction update and obtain the current frame's updated state. S63. Read the updated brightness anchor point value and the updated risk boundary width value from the current frame update state, and replace the brightness anchor point value and risk boundary width value corresponding to the current frame as the input for subsequent sliding window recursion.
[0034] Example 1: To verify the feasibility of this invention in practice, it was applied to a projection playback scenario involving an optical engine. The video content included rapidly changing scenes of light and dark, high-contrast edge scenes, and large areas of dark scene details, accompanied by overall brightness drift caused by slow changes in ambient light and differences in screen reflection. Existing methods typically rely on global averaging or histogram threshold adjustment, which is prone to brightness jumps, contrast overshoot, and visible flickering during transitions. Dark scene details are difficult to recover after compression, and the parameters gradually deviate during continuous operation, causing the image to fluctuate in brightness.
[0035] In this scenario, after forming a standard frame sequence from the video stream, the present invention calculates luminance distribution statistics and edge amplitude statistics within the current frame's luminance evaluation space and assembles them into a luminance feature vector. Subsequently, a visual evaluation network outputs a luminance quality score and a luminance risk score. Key luminance samples are selected within a sliding window, and a robust estimation is performed to obtain a luminance anchor point sequence and a risk boundary sequence. The anchor points and boundaries are then subjected to a gated temporal recursion to obtain a smooth and followable recursive result. Gaussian radial basis function interpolation is then performed on the recursive anchor points to obtain a continuous fitting curve, and a control point sequence is generated as the core representation of the adaptive scheme.
[0036] After the adaptive scheme enters the feasible region constraint set, constraint projection is completed through ADMM and monotonicity verification is performed through PAVA to avoid abrupt changes and inconsistencies in control points. During execution, feedback data is collected, and the brightness feedback value and the risk boundary width feedback value are used to form an observation vector. Kalman calculus with Mahalanobis distance gating is used to update the anchor point and boundary of the current frame, so that the initial values of subsequent windows are adaptively corrected according to the execution results.
[0037] In actual comparisons, traditional thresholding methods exhibit multiple visible flickering and overshooting events during content abrupt changes, with numerous boundary violations in the control point sequence and a longer recovery time to a stable state. While the moving average method reduces flicker, it suffers from slow recovery of dark-field details and insufficient stability. This invention compresses brightness fluctuations into a smaller range in most switching segments, resulting in smoother contrast fluctuations, significantly reduced flickering events, near-zero boundary violations, and suppressed parameter drift during continuous operation.
[0038] Table 1. Comparison of Brightness and Contrast Adaptive Effects
[0039] Table 1 presents the statistical comparison results of the three methods. It can be seen that the present invention is more stable in terms of fluctuation control, flicker suppression, boundary consistency and recovery speed.
[0040] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for adaptive brightness and contrast in optomechanical projection based on visual intelligence, characterized in that, Includes the following steps: S1. Obtain the video stream to be projected and preprocess it to obtain a standard frame sequence; S2. Construct a luminance evaluation space on the current frame of the standard frame sequence, perform luminance distribution statistics on the luminance components of the current frame, and obtain the edge amplitude based on the global luminance variance and the Sobel operator to form a luminance feature vector. S3. Based on standard frame sequences and luminance feature vectors, a visual evaluation network is constructed using temporal convolution operators and residual mapping, and frame-level evaluation is performed. Key luminance samples are selected based on the evaluation results, and quantile truncation and Huber estimation are performed to extract luminance anchor sequence and risk boundary sequence. S4. Through the gated time-series recursion mechanism, the brightness anchor point sequence and risk boundary sequence within the sliding window are updated in a time-series recursion, and the radial basis function interpolation algorithm is used to fit the recursion results to form an adaptive scheme. S5. Construct a feasible region constraint set based on the risk boundary sequence, use the ADMM algorithm to solve the constraint projection of the adaptive scheme, and use the PAVA algorithm to verify the monotonicity of the solution results. S6. Collect feedback data from the implementation of the adaptive scheme, and update the state of the brightness anchor point and risk boundary corresponding to the current frame through a Kalman filter recursive mechanism.
2. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 1, characterized in that, The preprocessing specifically includes parsing and reordering the frame timestamps of the video stream, and performing resolution normalization and aspect ratio alignment on the reordered frame sequence to obtain a uniform-sized frame sequence. Pixel value domain normalization is performed on the uniform size frame sequence, and a consistency index is calculated based on the inter-frame difference energy of adjacent frames. Temporal smoothing correction is performed on abnormal frames based on the consistency index. The temporal smoothing correction includes correction methods such as sliding window mean filtering, median filtering or interpolation based on adjacent frames for abnormal frames, to generate a time-continuous standard frame sequence. A sliding window buffer is established for the standard frame sequence. The current frame and historical frames are written according to the window index, and the state cache item corresponding to the window index is initialized. The state cache item includes at least the initial value of the brightness anchor point sequence, the initial value of the risk boundary sequence, and the initial value of the brightness mapping adaptive scheme.
3. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 1, characterized in that, S2 specifically includes: S21. Extract the luminance components from the current frame of the standard frame sequence, organize the luminance components into a luminance matrix according to the pixel position, and construct a luminance evaluation space based on the luminance matrix. The luminance evaluation space is a luminance value domain with the pixel index of the luminance matrix as the coordinate system. The luminance value corresponding to each pixel index is used as an evaluation unit, and the set of pixels composed of all evaluation units in the luminance matrix is determined as the set of evaluation objects in the luminance evaluation space. S22. Perform brightness distribution statistics on the brightness matrix in the brightness evaluation space to generate brightness distribution statistics results. The brightness distribution statistics results include at least the quantile brightness values corresponding to the preset quantiles, the set of brightness distribution peak positions, and the peak width. S23. Calculate the global luminance variance based on the luminance matrix, and simultaneously calculate the global luminance mean of the luminance matrix. Assemble the global luminance variance and the global luminance mean in a preset order to form a global discrete feature. S24. Extracting edge magnitudes and generating brightness feature vectors based on the Sobel operator within the brightness evaluation space, specifically including: Perform horizontal and vertical Sobel convolutions on the brightness matrix to obtain the horizontal and vertical gradient matrices. The edge magnitude matrix is obtained by combining the magnitudes of the horizontal and vertical gradient matrices. The edge amplitude mean, the preset high quantile values of edge amplitude, and the proportion of edge pixels are calculated based on the edge amplitude matrix to form the edge amplitude statistical results. The edge amplitude statistics, brightness distribution statistics, and global discrete features are assembled in a preset feature order to obtain the brightness feature vector.
4. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 3, characterized in that, S22 specifically includes: S221. Determine the brightness values in the brightness evaluation space as a set of statistical objects, obtain the minimum brightness value and the maximum brightness value in the set of statistical objects, divide multiple gray-scale bin intervals at equal intervals between the minimum brightness value and the maximum brightness value according to the preset number of bins, and count the brightness values in each gray-scale bin interval to obtain the bin frequency vector. S222. Based on the bin frequency vector, the cumulative distribution sequence is obtained by accumulating the bin indexes in order. The cumulative value at the end of the cumulative distribution sequence is determined as the total frequency. The target cumulative frequency is calculated for each preset quantile. The target bin index that satisfies the condition that the cumulative value is not less than the target cumulative frequency is located in the cumulative distribution sequence. S223. Read the lower boundary and upper boundary of the target bin corresponding to the target bin index, read the cumulative value of the previous bin and the cumulative value of the target bin index as the interpolation endpoints, and perform linear interpolation between the lower boundary and the upper boundary of the target bin according to the ratio of the target cumulative frequency to the interpolation endpoints to obtain the quantile brightness value. S224. Perform first-order difference between adjacent bins on the bin frequency vector to obtain the distribution change vector. Locate the sign reversal position from positive to negative in the distribution change vector to obtain the distribution peak position set. Read the corresponding peak frequency for each peak position in the distribution peak position set. S225. For each peak position in the distribution peak position set, multiply the peak frequency by a preset ratio to obtain the threshold frequency. Then, search for the bin index on the bin frequency vector from the peak position to both sides where the frequency is first less than the threshold frequency as the left and right boundaries. Determine the peak width based on the bin index spacing of the left and right boundaries. Assemble the quantile brightness value, the distribution peak position set and the peak width to obtain the brightness distribution statistics.
5. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 1, characterized in that, S3 specifically includes: S31. Stack the luminance feature vectors corresponding to multiple consecutive frames in the standard frame sequence according to the time index to form a luminance feature sequence, and construct a visual evaluation network. The visual evaluation network includes a temporal convolutional coding unit, a residual mapping calibration unit and a multi-head evaluation unit, and perform frame-level evaluation on the luminance feature sequence to output a luminance quality score sequence and a luminance risk score sequence. S32. Based on the brightness quality score sequence and the brightness risk score sequence, perform constraint sorting on the frames within the sliding window, apply penalty weights to the frames whose brightness risk scores exceed the preset threshold and then rearrange them, and truncate the key frames in the rearranged results according to the cumulative proportion of brightness quality scores, and construct the key brightness sample sequence according to the key frame time index. S33. Perform quantile truncation and Huber-weighted robust statistics on the key brightness sample sequences to obtain the brightness anchor sequence and risk boundary sequence.
6. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 5, characterized in that, The temporal convolutional coding unit performs multi-layer one-dimensional dilated convolutional coding on the brightness feature sequence according to the time dimension. The dilation rate is configured to increase in layers and make the maximum temporal receptive field cover the sliding window length. The convolutional kernel size is configured according to a preset fixed value. Between adjacent convolutional layers, the output of the previous convolutional layer is processed by the Sigmoid function to generate gate weights, and the gate weights are multiplied element-wise with the output of the next convolutional layer to suppress burst noise components. After each convolutional output, a linear projection is performed on the channel dimension to complete channel mixing and obtain temporal coding features. The residual mapping calibration unit performs dimension alignment on the time-series coding features and the luminance feature sequence. The dimension alignment is achieved by performing linear projection on the channel dimension of the luminance feature sequence to obtain the channel dimension consistent with the time-series coding features. The dimension-aligned luminance feature sequence is then used as the input of the residual direct connection branch and is superimposed element-wise with the time-series coding features to obtain the residual time-series sequence. The multi-head evaluation unit constructs a quality evaluation head and a risk evaluation head on the residual time sequence, respectively. The quality evaluation head performs temporal dimension smoothing aggregation on the residual time sequence and generates a brightness quality score sequence through multi-layer perceptual mapping. The risk evaluation head performs temporal dimension differential encoding on the residual time sequence and generates a brightness risk score sequence through multi-layer perceptual mapping. The adjacent time index change rate constraint is applied to the brightness quality score sequence and the brightness risk score sequence to form a set of frame-level brightness evaluation results.
7. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 1, characterized in that, S4 specifically includes: S41. Establish an association mapping of the same time index between the brightness anchor point sequence and the risk boundary sequence within the sliding window. For each time index, construct a state observation item consisting of the brightness anchor point value and the risk boundary value, and initialize the recursive state with the state observation item corresponding to the first frame of the sliding window. S42. Perform gated time-series recursive update on each time index within the sliding window, calculate the anchor point residual and risk boundary width, obtain the gate coefficient through Sigmoid mapping, and then perform upper and lower limit pruning. Based on the gate coefficient, perform exponential weighted moving average update on the recursive anchor point value and risk boundary value to form the recursive anchor point sequence and recursive risk boundary sequence. S43. Use the time index within the sliding window as the interpolation input and the recursive anchor point value as the interpolation output. Select a preset number of time indices as the interpolation center and determine the scale parameter. Calculate the kernel value of the time index and each interpolation center based on the Gaussian radial basis function to form a kernel matrix. Use ridge regression with Tikhonov regularization to solve the interpolation weights and obtain the continuous fitting function of the recursive anchor point. S44. Generate a control point sequence on the continuous fitting function according to the preset sampling step size, perform Savitzky-Golay smoothing filtering on the control point sequence, and perform interval pruning according to the risk boundary width value of the recursive risk boundary sequence. Then, assemble the control point sequence and the recursive risk boundary sequence to form an adaptive scheme.
8. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 7, characterized in that, Specifically, S43 includes: S431. Obtain the time index set corresponding to the recursive anchor point sequence within the sliding window, and perform equal-interval sampling on the time index set according to the time index order to determine the interpolation center set, wherein the number of elements in the interpolation center set is a preset number. S432. Calculate the time interval set based on the time interval between adjacent interpolation centers in the interpolation center set, take the median of the time interval set as the initial value of the scale parameter, and perform upper and lower limit clipping on the initial value of the scale parameter to obtain the radial basis function scale parameter. S433. The kernel value between each time index and each interpolation center within the sliding window is calculated using the Gaussian radial basis function. The kernel matrix is assembled according to the correspondence between the time index and the interpolation center. The recursive anchor point values corresponding to the interpolation center set are read from the recursive anchor point sequence to form the target vector. S434. Introduce Tikhonov regularization terms into the kernel matrix and the target vector to form a ridge regression problem. Use Cholesky decomposition to solve the interpolation weights, and then weight and accumulate the interpolation weights with the Gaussian radial basis function kernel value according to the interpolation center to obtain a continuous fitting function for the recursive anchor point.
9. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 1, characterized in that, S5 specifically includes: S51. Construct a feasible region constraint set based on the risk boundary sequence, convert the risk boundary width value of the risk boundary sequence into the control point value interval constraint corresponding to each time index, and use Hampel filtering to calculate the robust threshold for the adjacent difference increment of the control point sequence to form the adjacent control point change rate constraint, thus obtaining the feasible region constraint set. S52. The ADMM algorithm is used to solve the constraint projection problem of the control point sequence, specifically including: Set the control point sequence as the original variable and introduce the projected variable. Take the difference between the original variable and the control point sequence corresponding to the adaptive scheme, and the consistency term between the original variable and the projected variable as the target for updating the original variable. Perform a closed update on the original variable in each iteration to obtain the current original variable. Perform constraint projection update on the projected variable, and sequentially perform value interval pruning and adjacent difference limiting on the current original variable under the feasible domain constraint set to obtain the current projected variable, and simultaneously update the dual variable, and record the consistency deviation between the original variable and the projected variable; The iteration terminates when both the consistency deviation and the projection residual simultaneously meet the preset stopping condition, and the current projection variable is output as a sequence of feasible control points for constraints. S53. Perform monotonicity checks on the feasible control points to detect the monotonicity violation positions of the control point sequence on the time index. At the violation positions, use the PAVA algorithm to perform segmentation, merging, and mean backfilling to obtain the final control point sequence that satisfies the monotonicity constraints.
10. The method for adaptive brightness and contrast of optomechanical projection based on visual intelligence according to claim 1, characterized in that, S6 specifically includes: S61. Collect the execution feedback data of the adaptive scheme in the current frame, and extract the brightness feedback value and risk boundary width feedback value corresponding to the current frame from the feedback data. Assemble the brightness feedback value and risk boundary width feedback value into an observation vector. S62. Using the previous frame's filtered state as a priori, perform linear state propagation to obtain the current frame's predicted state. Calculate the observation residual between the observation vector and the predicted state, and calculate the Mahalanobis distance accordingly. Adaptively scale the observation noise covariance based on Mahalanobis distance gating, and calculate the Kalman gain to complete the correction update and obtain the current frame's updated state. S63. Read the updated brightness anchor point value and the updated risk boundary width value from the current frame update state, and replace the brightness anchor point value and risk boundary width value corresponding to the current frame as the input for subsequent sliding window recursion.
