A method for solving the problem of large-magnification single-color color cast in variable-magnification movement

By shooting images and judging the background type, the gain value is obtained for color restoration, which solves the problem of unrealistic color restoration in monochrome scenes in the existing technology and achieves a more accurate color restoration effect.

CN112600991BActive Publication Date: 2024-09-06SHENZHEN FOCUS DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011428873.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-09
Publication Date
2024-09-06
Estimated Expiration
2040-12-09

AI Technical Summary

Technical Problem

The existing technology cannot effectively perform white balance in large-area monochrome scenes, resulting in unrealistic color reproduction.

Method used

By taking images, determine whether the background is non-pure color, obtain the gain value of the RGB channel as a reference, repeat shooting until the non-pure color background is captured, and then use the gain value to restore the color of the solid color background to ensure the authenticity of the color.

Benefits of technology

This achieves more realistic color restoration in monochrome scenes and solves the problem of inaccurate color restoration in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112600991B
    Figure CN112600991B
Patent Text Reader

Abstract

The present invention discloses a method for solving the large-magnification monochrome color cast of a variable-magnification movement, comprising the following steps: S1, shooting a screen image; S2, judging whether the screen image is a non-pure color background; S3, if so, setting the white balance to automatic and obtaining the gain value of each channel of the current screen image RGB, taking this gain value as a reference value; if not, repeating steps S1 and S2 until the screen image is a non-pure color background, and obtaining the gain value as a reference value; S4, after obtaining the gain value of step S3, repeating steps S1 and S2, when encountering a pure color background, taking the gain value in step S3 as a fixed value, as the RGB gain value required for the current screen image, and performing color restoration of the screen image. The present invention makes the color restoration of the monochrome scene more realistic by finding the gain values ​​of the three channels of the screen image RGB as reference values, and substituting the gain values ​​as reference into the color restoration of the screen image of the pure color background.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of image color adjustment inventions, and in particular to a method for solving the problem of large-magnification single-color cast in a variable-magnification movement. Background Art

[0002] In the prior art, the basic principle of the automatic white balance algorithm of the variable magnification movement scheme currently used in the market is: according to the color information of the gray object in the scene, the gains of the three color channels of R, G, and B are calculated. After multiplying the gains, the three channels of RGB are balanced so that the white object can be restored to normal under different color temperatures. When there is no color information of gray objects in the scene and a large area of ​​monochrome scene, the current automatic white balance algorithm alone cannot restore the true color.

[0003] Therefore, the prior art has defects and needs to be improved. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for solving the large-magnification single-color cast of a variable-magnification movement, so as to solve the above-mentioned problem.

[0005] The technical solution of the present invention is as follows: A method for solving the large-magnification single-color cast problem of a variable-magnification movement comprises the following steps:

[0006] S1, shooting screen image;

[0007] S2, judging whether the screen image has a non-pure color background;

[0008] S3, if yes, then set the white balance to automatic state, and obtain and record the gain value of each RGB channel of the current screen image, and use this gain value as a reference value;

[0009] If not, repeat steps S1 and S2 until the screen image is a non-pure color background, and obtain a gain value as a reference value;

[0010] S4. After obtaining the gain value of step S3, steps S1 and S2 are repeated. When encountering a pure color background, the gain value in step S3 is used as a fixed value as the RGB gain value required for the current pure color background screen image, and the color of the pure color background screen image is restored.

[0011] Preferably, in step S1, when the lens is initialized by driving the motor, it stays at the widest angle position to capture the screen image.

[0012] Preferably, in step S2, the steps of determining the non-pure color background are as follows:

[0013] S21, obtaining a captured screen image, and dividing the screen image into several blocks;

[0014] S22, calculating the overall mean of the RGB three channels in each block;

[0015] S23, comparing and judging whether the overall mean values ​​of all blocks in step S22 are significantly different, if the difference is large, the screen image is a non-pure color background, if the difference is small, the screen image is a pure color background.

[0016] Preferably, in step S21, the screen image is divided into 64 blocks.

[0017] Preferably, each of the 64 blocks has the same size and is divided into 8*8 blocks.

[0018] By adopting the above-mentioned technical solutions, the present invention makes the color restoration of monochrome scenes more realistic by finding the gain values ​​of the three RGB channels of the picture image as reference values ​​and substituting the gain values ​​as reference into the color restoration of the picture image of the pure color background. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of the overall process of the present invention;

[0020] Figure 2 It is a detailed schematic diagram of step S2 of the present invention. DETAILED DESCRIPTION

[0021] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0022] like Figure 1 This embodiment provides a method for solving the large-magnification single-color cast problem of a variable-magnification movement, comprising the following steps:

[0023] S1. Shooting screen images.

[0024] S2. Determine whether the screen image has a non-pure color background.

[0025] S3. If yes, the white balance is set to automatic state, and the gain value of each RGB channel of the current screen image is obtained and recorded, and this gain value is used as a reference value.

[0026] If not, repeat steps S1 and S2 until the screen image is a non-pure color background, and obtain a gain value as a reference value.

[0027] S4. After obtaining the gain value of step S3, steps S1 and S2 are repeated. When encountering a pure color background, the gain value in step S3 is used as a fixed value as the RGB gain value required for the current pure color background screen image, and the color of the pure color background screen image is restored.

[0028] In step S1, when the lens is initialized by driving the motor, it stays at the widest angle to capture the image. The image captured in this state has the largest field of view. The image with the largest field of view has rich gray spots (rich white spots) because the image is rich. If it is not at the widest angle, a monochrome scene is likely to appear, resulting in no white spots in the image.

[0029] like Figure 2 In step S2, the steps for determining the non-pure color background are as follows:

[0030] S21, obtaining a captured screen image, and dividing the screen image into several blocks;

[0031] S22, calculating the overall mean of the RGB three channels in each block;

[0032] S23, comparing and judging whether the overall mean values ​​of all blocks in step S22 are significantly different, if the difference is large, the screen image is a non-pure color background, if the difference is small, the screen image is a pure color background.

[0033] In step S21, the screen image is divided into 64 blocks, and each block is the same size and arranged in 8*8. Of course, it can also be other numbers, and 64 blocks are selected as the best value, because if the screen image is divided into too few, it is impossible to distinguish whether it is a solid color background, and if it is divided into too many, the amount of calculation will increase. At the same time, it is necessary to divide each block into the same size, so as to ensure that the difference comparison between the blocks is in an average comparison state, and no extreme comparison will occur.

[0034] By adopting the above-mentioned technical solutions, the present invention makes the color restoration of monochrome scenes more realistic by finding the gain values ​​of the three RGB channels of the picture image as reference values ​​and substituting the gain values ​​as reference into the color restoration of the picture image of the pure color background.

[0035] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for solving the problem of large-magnification single-color cast in a variable-magnification movement, characterized in that: The method comprises the following steps: S1, shooting a screen image; S2, judging whether the screen image has a non-pure color background; S3, if yes, then set the white balance to automatic state, and obtain and record the gain value of each RGB channel of the current screen image, and use this gain value as a reference value; If not, repeat steps S1 and S2 until the screen image is a non-pure color background, and obtain a gain value as a reference value; S4, after obtaining the gain value of step S3, repeat steps S1 and S2, when encountering a pure color background, the gain value in step S3 is used as a fixed value as the RGB gain value required for the current pure color background screen image, and the color of the pure color background screen image is restored; In step S1, when the lens is initialized by driving the motor, it stays at the widest angle position to capture the screen image; In step S2, the steps of determining the non-pure color background are as follows: S21, obtaining the captured screen image, and dividing the screen image into several blocks; S22, calculating the overall mean of the RGB three channels in each block; S23, comparing and judging the difference of the overall mean values ​​of all blocks in step S22, and judging whether the screen image is a non-pure color background or a pure color background according to the difference; In step S21, the screen image is divided into 64 blocks; each of the 64 blocks is the same size and is divided into 8*8 blocks.