CN112600991A - Method for solving high-magnification monochromatic color cast of variable-magnification movement - Google Patents

Method for solving high-magnification monochromatic color cast of variable-magnification movement Download PDF

Info

Publication number
CN112600991A
CN112600991A CN202011428873.4A CN202011428873A CN112600991A CN 112600991 A CN112600991 A CN 112600991A CN 202011428873 A CN202011428873 A CN 202011428873A CN 112600991 A CN112600991 A CN 112600991A
Authority
CN
China
Prior art keywords
picture image
magnification
gain value
pure
background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011428873.4A
Other languages
Chinese (zh)
Inventor
刘祥涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Focus Digital Technology Co ltd
Original Assignee
Shenzhen Focus Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Focus Digital Technology Co ltd filed Critical Shenzhen Focus Digital Technology Co ltd
Priority to CN202011428873.4A priority Critical patent/CN112600991A/en
Publication of CN112600991A publication Critical patent/CN112600991A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/2224Studio circuitry; Studio devices; Studio equipment related to virtual studio applications
    • H04N5/2226Determination of depth image, e.g. for foreground/background separation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention discloses a method for solving the problem of high-magnification monochromatic color cast of a variable-magnification machine core, which comprises the following steps of: s1, shooting a picture image; s2, judging whether the picture image is a non-pure background; s3, if yes, setting the white balance as automatic and obtaining the gain value of each channel of the current picture image RGB, and using the gain value as a reference value; if not, repeating the steps S1 and S2 until the picture image is a non-pure background and obtaining a gain value as a reference value; s4, after obtaining the gain value of the step S3, repeating the steps S1 and S2, when the pure color background is touched, taking the gain value in the step S3 as a fixed value as the required RGB gain value of the current picture image, and performing the color restoration of the picture image. The invention makes the color restoration of the monochromatic scene more real by searching the gain value of the RGB three channels of the picture image as the reference value and substituting the gain value as the reference into the color restoration of the picture image with the pure color background.

Description

Method for solving high-magnification monochromatic color cast of variable-magnification movement
Technical Field
The invention relates to the field of image color adjustment, in particular to a method for solving the problem of high-magnification monochromatic color cast of a variable-magnification movement.
Background
In the prior art, the basic principle of the automatic white balance algorithm of the current available core-doubling scheme is as follows: according to the color information of the gray objects in the scene, the gains of the three color channels are calculated R, G, B, and after the gains are multiplied, the three channels of RGB are balanced, so that the white objects can be restored to be normal under different color temperatures. When the color information of a gray object is lacked in a scene and a large-area monochromatic scene is obtained, the real color cannot be restored only by the current automatic white balance algorithm.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for solving the problem of large-magnification monochromatic color cast of the variable-magnification movement is provided to solve the problem.
The technical scheme of the invention is as follows: a method for solving the problem of large-magnification monochromatic color cast of a variable-magnification movement comprises the following steps:
s1, shooting a picture image;
s2, judging whether the picture image is a non-pure background;
s3, if yes, setting the white balance to be automatic, and obtaining and recording the gain value of each channel of the RGB of the current picture image, and taking the gain value as a reference value;
if not, repeating the steps S1 and S2 until the picture image is a non-pure background and gain value is obtained as a reference value;
s4, after obtaining the gain value of the step S3, repeating the steps S1 and S2, and when the pure color background is touched, taking the gain value in the step S3 as a fixed value to be used as the RGB gain value required by the picture image of the current pure color background, and performing picture image color restoration of the pure color background.
Preferably, in step S1, when the lens is initialized by driving the motor, the screen image is captured while staying at the position of the widest angle.
Preferably, in step S2, the determination of the non-solid background is performed as follows:
s21, acquiring the shot picture image, and dividing the picture image into a plurality of blocks;
s22, calculating the integral average value of RGB three channels in each block;
and S23, comparing and judging whether the overall mean values of all the blocks in the step S22 are different greatly, if so, the picture image is a non-pure background, and if not, the picture image is a pure background.
Preferably, in step S21, the picture image is divided into 64 blocks.
Preferably, each of the 64 blocks is the same size and is divided in an 8 by 8 arrangement.
By adopting the technical schemes, the invention enables the color restoration of a monochromatic scene to be more real by searching the gain value of the RGB three channels of the picture image as the reference value and substituting the gain value as the reference into the color restoration of the picture image with the pure color background.
Drawings
FIG. 1 is a schematic overall flow diagram of the present invention;
fig. 2 is a detailed flowchart of step S2 according to the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
As shown in fig. 1, this embodiment provides a method for solving the problem of large-magnification monochrome color cast of a variable-magnification movement, which includes the following steps:
and S1, shooting the picture image.
And S2, judging whether the picture image is a non-pure background.
And S3, if yes, setting the white balance to be in an automatic state, and acquiring and recording the gain value of each channel of the RGB of the current picture image, and taking the gain value as a reference value.
If not, the steps S1 and S2 are repeated until the picture image is a non-solid background and the gain value is obtained as the reference value.
S4, after obtaining the gain value of the step S3, repeating the steps S1 and S2, and when the pure color background is touched, taking the gain value in the step S3 as a fixed value to be used as the RGB gain value required by the picture image of the current pure color background, and performing picture image color restoration of the pure color background.
In step S1, when the lens is initialized by the driving motor, the screen image is captured while staying at the position of the widest angle. In this state, the captured image has the largest field of view, and the image with the largest field of view has rich frames and rich gray points (white points), and if the image is not at the position of the largest angle, a monochrome scene easily appears, so that white points do not exist in the frames.
As shown in fig. 2, in step S2, the determination of the non-solid background is as follows:
s21, acquiring the shot picture image, and dividing the picture image into a plurality of blocks;
s22, calculating the integral average value of RGB three channels in each block;
and S23, comparing and judging whether the overall mean values of all the blocks in the step S22 are different greatly, if so, the picture image is a non-pure background, and if not, the picture image is a pure background.
In step S21, the picture image is divided into 64 blocks, each block having the same size, and divided in an 8 × 8 arrangement. Of course, other numbers are possible, and selecting 64 blocks is an optimal value because dividing the picture image too little can not distinguish whether it is a solid background, and if it is too much, the amount of calculation is increased. Meanwhile, the sizes of the blocks are required to be the same, so that the difference comparison between the blocks is ensured to be in an average comparison state, and an extreme comparison condition is avoided.
By adopting the technical schemes, the invention enables the color restoration of a monochromatic scene to be more real by searching the gain value of the RGB three channels of the picture image as the reference value and substituting the gain value as the reference into the color restoration of the picture image with the pure color background.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. A method for solving the problem of large-magnification monochromatic color cast of a variable-magnification movement is characterized by comprising the following steps:
s1, shooting a picture image;
s2, judging whether the picture image is a non-pure background;
s3, if yes, setting the white balance to be automatic, and obtaining and recording the gain value of each channel of the RGB of the current picture image, and taking the gain value as a reference value;
if not, repeating the steps S1 and S2 until the picture image is a non-pure background and gain value is obtained as a reference value;
s4, after obtaining the gain value of the step S3, repeating the steps S1 and S2, and when the pure color background is touched, taking the gain value in the step S3 as a fixed value to be used as the RGB gain value required by the picture image of the current pure color background, and performing picture image color restoration of the pure color background.
2. The method for solving the problem of large-magnification monochrome color cast of the zoom lens mechanism according to claim 1, wherein in step S1, the lens is initialized by the driving motor, and the image is captured while staying at the widest angle position.
3. The method for solving the problem of large-magnification monochromatic color cast of the variable-magnification movement according to claim 2, wherein in step S2, the non-pure background is judged as follows:
s21, acquiring the shot picture image, and dividing the picture image into a plurality of blocks;
s22, calculating the integral average value of RGB three channels in each block;
and S23, comparing and judging whether the overall mean values of all the blocks in the step S22 are different greatly, if so, the picture image is a non-pure background, and if not, the picture image is a pure background.
4. The method for solving the problem of large-magnification monochrome color cast of the variable-magnification movement according to claim 3, wherein in step S21, the picture image is divided into 64 blocks.
5. The method for solving the problem of large-magnification monochrome color cast of the variable-magnification cassette mechanism according to claim 4, wherein each of the 64 blocks has the same size and is divided in an 8 x 8 arrangement.
CN202011428873.4A 2020-12-09 2020-12-09 Method for solving high-magnification monochromatic color cast of variable-magnification movement Pending CN112600991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011428873.4A CN112600991A (en) 2020-12-09 2020-12-09 Method for solving high-magnification monochromatic color cast of variable-magnification movement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011428873.4A CN112600991A (en) 2020-12-09 2020-12-09 Method for solving high-magnification monochromatic color cast of variable-magnification movement

Publications (1)

Publication Number Publication Date
CN112600991A true CN112600991A (en) 2021-04-02

Family

ID=75191411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011428873.4A Pending CN112600991A (en) 2020-12-09 2020-12-09 Method for solving high-magnification monochromatic color cast of variable-magnification movement

Country Status (1)

Country Link
CN (1) CN112600991A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402102A (en) * 2013-07-17 2013-11-20 广东欧珀移动通信有限公司 Double-camera picture pick-up system and white balance adjustment method and device thereof
CN108616691A (en) * 2018-04-28 2018-10-02 北京小米移动软件有限公司 Photographic method, device, server based on automatic white balance and storage medium
CN108769634A (en) * 2018-07-06 2018-11-06 Oppo(重庆)智能科技有限公司 A kind of image processing method, image processing apparatus and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402102A (en) * 2013-07-17 2013-11-20 广东欧珀移动通信有限公司 Double-camera picture pick-up system and white balance adjustment method and device thereof
CN108616691A (en) * 2018-04-28 2018-10-02 北京小米移动软件有限公司 Photographic method, device, server based on automatic white balance and storage medium
CN108769634A (en) * 2018-07-06 2018-11-06 Oppo(重庆)智能科技有限公司 A kind of image processing method, image processing apparatus and terminal device

Similar Documents

Publication Publication Date Title
EP2387229B1 (en) Image capturing apparatus and camera shake correction method, and computer-readable medium
JP4329125B2 (en) White balance control method, white balance control device, and imaging device
US8643768B2 (en) Multiple lens imaging apparatuses, and methods and programs for setting exposure of multiple lens imaging apparatuses
US7973827B2 (en) Image data generating apparatus, method and program for generating an image having high spatial and high temporal resolution
JP2004328461A (en) Automatic white balance adjustment method
JP2008124625A (en) Imaging apparatus
US20130120608A1 (en) Light source estimation device, light source estimation method, light source estimation program, and imaging apparatus
KR100986203B1 (en) Imaging apparatus and defective pixel correction method used therefor
US20210067689A1 (en) Image processing apparatus, image processing method, and program
JP4796007B2 (en) Imaging device
JP4067033B2 (en) Image processing apparatus and method
US9922410B2 (en) Image processing apparatus and image processing method
CN112600991A (en) Method for solving high-magnification monochromatic color cast of variable-magnification movement
JP6673333B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP4885698B2 (en) Motion vector calculation device, method and program, moving image compression recording device, and imaging device
JP4026516B2 (en) Image processing apparatus and method
JP4718113B2 (en) White balance adjustment method and image processing apparatus
JP4960597B2 (en) White balance correction apparatus and method, and imaging apparatus
WO2004066637A1 (en) Imaging system and image processing program
US20110050949A1 (en) Color Adjusting Apparatus
JP7387411B2 (en) Image processing device, image processing method, and imaging device
JP4277315B2 (en) White balance correction apparatus and method
JP4378629B2 (en) Auto white balance adjustment method
US9554108B2 (en) Image processing device and storage medium storing image processing program
JP5610860B2 (en) Imaging apparatus and information processing apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination