CN111008942A - Image processing method based on light change - Google Patents

Image processing method based on light change Download PDF

Info

Publication number
CN111008942A
CN111008942A CN201911295719.1A CN201911295719A CN111008942A CN 111008942 A CN111008942 A CN 111008942A CN 201911295719 A CN201911295719 A CN 201911295719A CN 111008942 A CN111008942 A CN 111008942A
Authority
CN
China
Prior art keywords
light
reference object
pixel value
under
chromaticity
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
CN201911295719.1A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201911295719.1A priority Critical patent/CN111008942A/en
Publication of CN111008942A publication Critical patent/CN111008942A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses an image processing method based on light change, which belongs to the field of video image processing and comprises the steps of selecting a reference chromaticity reference object; acquiring a reference chromaticity reference object image under standard light, and setting a pixel value of the reference chromaticity reference object image as a reference pixel value for storage; storing the position or the shape of a reference chromaticity reference object in a shooting area; shooting at any time except for standard light, and collecting an initial scene image containing a reference object with reference chromaticity under the current light; finding a reference chromaticity reference object according to the position or the specific shape, and calculating the pixel value of the reference chromaticity reference object under the current light; comparing the pixel value of the reference chromaticity reference object under the current light with the stored reference pixel value to obtain a pixel deviation value; and adding each pixel value of the scene initial image and the pixel deviation value, writing the pixel values into each pixel, and restoring the color of the scene at the current moment under the standard light. The method can restore the image color quickly and efficiently.

Description

Image processing method based on light change
Technical Field
The invention relates to the field of image processing, in particular to an image processing method based on light ray change.
Background
In life, a CAMERA (CAMERA or WEBCAM), also called a computer CAMERA, a computer eye, an electronic eye, etc., is often used, is a video input device, and is widely applied to video conferences, telemedicine, real-time monitoring, etc. The working principle of the camera is roughly as follows: the scene is projected on the surface of an image sensor through an optical image generated by a LENS (LENS), then converted into an electric signal, converted into a digital image signal through A/D (analog-to-digital conversion), sent to a digital signal processing chip DSP for processing, transmitted to a computer through an interface, processed by software, stored and viewed through a display.
In post-processing of images, a problem often arises in that the light source from which the scene is captured is constantly changing. Such as 24 hours per day, for example, several periods of time, early, middle, and late. In the several time periods, the shot scenery can change along with the illumination, and the scenery image collected by the camera can have color change. Taking a monitoring picture as an example, a camera is fixed, and the color of the collected scene picture is changed in the morning, the middle and the evening: dark in the morning, best at noon, dark at night.
When the color change is applied to face recognition, industrial robot recognition and picture monitoring, the color change under the light change is recorded. When the light changes in the morning and in the evening, the shot scenery cannot show the scenery color under sufficient light in the middle of the day. For example, a pure red bear, under sufficient light at noon, is monitored to take a red picture, and under light at morning and evening, is monitored to take a dark red picture.
The invention aims to apply an image processing method in image post-processing to enable a monitoring picture shot under early and late lights to achieve or approach the color effect of a picture shot by noon lights.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides an image processing method based on light ray change.
An image processing method based on light change comprises the following steps:
step 1: selecting a reference chromaticity reference object;
the reference chromaticity reference object comprises a first reference chromaticity reference object and a second reference chromaticity reference object;
the first standard chromaticity reference object has three primary colors of red, blue and green standard, each color is not less than one pixel unit, and the first standard chromaticity reference object can be a physical entity manufactured by printing, hand drawing, carving and other processing modes;
the second reference chromaticity reference object is a plurality of area blocks with colors selected from a scene image under standard light; the standard light is sufficient light predetermined by a user;
step 2: acquiring a reference chromaticity reference object image under standard light, calculating a pixel value of the reference chromaticity reference object under the standard light based on the image color, and setting the value as a reference pixel value for storage;
and step 3: recording and storing the position or the shape of a reference chromaticity reference object in a shooting area;
and 4, step 4: shooting at any time except for standard light, and acquiring an initial scene image containing a reference chromaticity reference object under the current time light;
and 5: finding a reference chromaticity reference object according to the stored position or specific shape of the reference chromaticity reference object, and calculating the pixel value of the reference chromaticity reference object under the current moment light based on the image color of the reference chromaticity reference object under the current moment light;
step 6: comparing the pixel value of the reference chromaticity reference object under the current moment light with the stored reference pixel value to obtain a pixel deviation value;
and 7: calculating the pixel value of the initial image color of the scenery under the current moment light to obtain the pixel value of the initial image color of the scenery under the current moment light;
and 8: and adding each pixel value of the scene initial image under the current moment light and the pixel deviation value, replacing each pixel value of the scene initial image by the obtained added value, writing the pixel value into each pixel to obtain a scene optimized image, and restoring the color of the scene under the standard light at the current moment, namely the standard color.
Has the advantages that: by adopting the image processing method based on light change, when the light changes, the image color under sufficient sunlight can be quickly and efficiently restored in the later processing, and the scene color under the environment with sufficient light can be obtained in the display, namely when the light is dark, the image color under bright light is still displayed.
Drawings
FIG. 1 is a flowchart of an image processing method based on light variation according to the present invention;
FIG. 2 is a flowchart of an image processing method based on light variation according to a first embodiment of the present invention;
FIG. 3 is a flowchart of an image processing method based on light variation according to a second embodiment of the present invention;
FIG. 4 is a flowchart of an image processing method based on light variation according to a third embodiment of the present invention;
fig. 5 is a flowchart of an image processing method based on light change according to a fourth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The image processing method based on the light change, as shown in fig. 1, includes the following steps:
step 1: selecting a reference chromaticity reference object;
the reference chromaticity reference object comprises a first reference chromaticity reference object and a second reference chromaticity reference object;
the first standard chromaticity reference object has three primary colors of red, blue and green standard, each color is not less than one pixel unit, and the first standard chromaticity reference object can be a physical entity manufactured by printing, hand drawing, carving and other processing modes; the second reference chromaticity reference object is a plurality of area blocks with colors selected from a scene image under standard light;
the standard light is sufficient light predetermined by a user, and the following standard light is used for this purpose and is not described in detail.
Step 2: acquiring a reference chromaticity reference object image under standard light, calculating a pixel value of the reference chromaticity reference object under the standard light based on the image color, and determining the value as a reference pixel value for storage;
and step 3: recording and storing the position or the shape of a reference chromaticity reference object in a shooting area;
and 4, step 4: shooting at any time except for standard light, and acquiring an initial scene image containing a reference chromaticity reference object under the current time light;
and 5: finding a reference chromaticity reference object according to the stored position or shape of the reference chromaticity reference object, and calculating the pixel value of the reference chromaticity reference object under the current moment light based on the image color of the reference chromaticity reference object under the current moment light;
step 6: comparing the pixel value of the reference chromaticity reference object under the current moment light with the stored reference pixel value to obtain a pixel deviation value;
and 7: calculating the pixel value of the initial image color of the scenery under the current moment light to obtain the pixel value of the initial image color of the scenery under the current moment light;
and 8: and adding each pixel value of the scene initial image under the current moment light and the pixel deviation value, replacing each pixel value of the scene initial image by the obtained added value, writing the pixel value into each pixel to obtain a scene optimized image, and restoring the color of the scene under the standard light at the current moment, namely the standard color.
The specific implementation of the invention can be implemented as follows:
embodiment 1:
an image processing method based on light variation, as shown in fig. 1, includes the following steps:
step 1: making a standard chromaticity reference object with unlimited shape;
the standard chromaticity reference object has three primary colors of red, blue and green, each color is not less than one pixel unit, and the standard chromaticity reference object can be a physical entity manufactured by printing, hand drawing, carving and other processing modes; the following reference chromaticity references are used herein and will not be described in detail.
Step 2: acquiring a reference chromaticity reference object image under standard light, calculating a pixel value of the reference chromaticity reference object under the standard light based on the image color, and determining the value as a reference pixel value for storage;
and step 3: fixedly placing a reference chromaticity reference object at any position of a shooting area, and recording and storing the position information;
the reference chromaticity reference object may be placed at any position such as four corners or the center of the imaging area, but is required to be fixed in position.
And 4, step 4: shooting at any time except for standard light, and acquiring a scene image containing a reference chromaticity reference object under the current time light;
and 5: finding a reference chromaticity reference object according to the stored reference chromaticity reference object position, and calculating the pixel value of the reference chromaticity reference object under the current moment light based on the image color of the reference chromaticity reference object under the current moment light;
step 6: comparing the pixel value of the reference chromaticity reference object under the current moment light with the stored reference pixel value to obtain a pixel deviation value;
and 7: calculating the pixel value of the scenery image color under the current moment light to obtain the initial scenery image color pixel value under the current moment light;
and 8: and adding each pixel value of the scene initial image under the current moment light and the pixel deviation value, replacing each pixel value of the scene initial image by the obtained added value, writing the pixel value into each pixel to obtain a scene optimized image, and restoring the color of the scene under the standard light at the current moment, namely the standard color.
Embodiment 2:
an image processing method based on light variation, as shown in fig. 2, includes the following steps:
step 1: making a recognizable standard chromaticity reference object with a specific shape;
the specific shape is any shape which can be identified by a user according to shooting requirements, such as a circle, a square, a trapezoid and the like, and the reference chromaticity reference object is designed into a required arbitrary shape.
Step 2: under standard light, acquiring the color of a reference chromaticity reference object image, calculating the pixel value of the reference chromaticity reference object under the standard light based on the color, and determining the value as the reference pixel value for storage;
and step 3: placing a reference chromaticity reference object in the shooting area;
and 4, step 4: shooting at any time except for standard light, and acquiring a scene image containing a reference chromaticity reference object under the current time light;
and 5: finding a reference chromaticity reference object according to the shape of the stored reference chromaticity reference object, and calculating the pixel value of the reference chromaticity reference object under the current moment light based on the image color of the reference chromaticity reference object under the current moment light;
step 6: comparing the pixel value of the reference chromaticity reference object under the current moment light with the stored reference pixel value to obtain a pixel deviation value;
and 7: calculating the pixel value of the scenery image color under the current moment light to obtain the initial scenery image color pixel value under the current moment light;
and 8: and adding each pixel value of the scene initial image under the current moment light and the pixel deviation value, replacing each pixel value of the scene initial image by the obtained added value, writing the pixel value into each pixel to obtain a scene optimized image, and restoring the color of the scene under the standard light at the current moment, namely the standard color.
Embodiment 3:
an image processing method based on light variation, as shown in fig. 3, includes the following steps:
step 1: under standard light, collecting a scene image;
step 2: selecting a plurality of colored region blocks in the scenery image, calculating the pixel value of each region block based on the image color in each region block under standard light, regarding the pixel value as a reference pixel value, and storing the position of each region block and the reference pixel value;
and step 3: shooting at any time except for standard light, and acquiring an initial image of a scene under the light at the current time;
and 4, step 4: calculating the pixel value of the scenery image under the current moment light based on the scenery image color under the current moment light to obtain the color pixel value of the scenery image under the current moment light;
and 5: respectively finding each region block according to the position of each region block, and comparing the pixel value of each region block under the current moment light with the stored reference pixel value to obtain a pixel deviation value;
step 6: and adding each pixel value of the scene image under the current moment light with the pixel deviation value, replacing each pixel value of the scene image under the current moment light with the obtained added value, writing the pixel value into each pixel to obtain a scene optimized image, and restoring the color of the scene under the standard light at the current moment, namely the standard color.
Embodiment 4:
an image processing method based on light variation, as shown in fig. 4, includes the following steps:
step 1: under standard light, collecting a scene image;
step 2: selecting a plurality of colored region blocks in the scenery image according to different identifiable shapes, calculating the pixel value of each region block based on the image color in each region block under standard light, identifying the pixel value as a reference pixel value, and storing the shape and the reference pixel value of each region block;
and step 3: shooting at any time except for standard light, and acquiring a scene image under the current light;
and 4, step 4: calculating the pixel value of the scenery image under the current moment light based on the scenery image color under the current moment light to obtain the color pixel value of the scenery image under the current moment light;
and 5: finding out each region block according to the shape of each region block, and comparing the pixel value of each region block under the current moment light with the stored reference pixel value to obtain a pixel deviation value;
step 6: and adding each pixel value of the scene image under the current moment light with the pixel deviation value, replacing each pixel value of the scene image under the current moment light with the obtained added value, writing the pixel value into each pixel to obtain a scene optimized image, and restoring the color of the scene under the standard light at the current moment, namely the standard color.
The image processing method based on the light change has the advantages of small calculated amount and quick and convenient processing process. The image processing method based on light change can reduce the difficulty of digital processing in the middle and later period of application such as facial vision recognition acquisition, industrial robot vision acquisition, environment video acquisition and the like, reduce the resource consumption of a processor system, improve the processing speed and the like.

Claims (1)

1. An image processing method based on light change is characterized in that: the method comprises the following steps:
step 1: selecting a reference chromaticity reference object;
the reference chromaticity reference object comprises a first reference chromaticity reference object and a second reference chromaticity reference object;
the first standard chromaticity reference object has three primary colors of red, blue and green standard, each color is not less than one pixel unit, and the first standard chromaticity reference object can be a physical entity manufactured by printing, hand drawing, carving and other processing modes;
the second reference chromaticity reference object is a plurality of area blocks with colors selected from a scene image under standard light; the standard light is sufficient light predetermined by a user;
step 2: acquiring a reference chromaticity reference object image under standard light, calculating a pixel value of the reference chromaticity reference object under the standard light based on the image color, and storing the value as a reference pixel value;
and step 3: recording and storing the position or the shape of a reference chromaticity reference object in a shooting area;
and 4, step 4: shooting at any time except for standard light, and acquiring an initial scene image containing a reference chromaticity reference object under the current time light;
and 5: finding a reference chromaticity reference object according to the stored position or shape of the reference chromaticity reference object, and calculating the pixel value of the reference chromaticity reference object under the current moment light based on the image color of the reference chromaticity reference object under the current moment light;
step 6: comparing the pixel value of the reference chromaticity reference object under the current moment light with the stored reference pixel value to obtain a pixel deviation value;
and 7: calculating the pixel value of the initial image color of the scenery under the current moment light to obtain the pixel value of the initial image color of the scenery under the current moment light;
and 8: and adding each pixel value of the scene initial image under the current moment light and the pixel deviation value, replacing each pixel value of the scene initial image by the obtained added value, writing the pixel value into each pixel to obtain a scene optimized image, and restoring the color of the scene under the standard light at the current moment, namely the standard color.
CN201911295719.1A 2019-12-16 2019-12-16 Image processing method based on light change Pending CN111008942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911295719.1A CN111008942A (en) 2019-12-16 2019-12-16 Image processing method based on light change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911295719.1A CN111008942A (en) 2019-12-16 2019-12-16 Image processing method based on light change

Publications (1)

Publication Number Publication Date
CN111008942A true CN111008942A (en) 2020-04-14

Family

ID=70114901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911295719.1A Pending CN111008942A (en) 2019-12-16 2019-12-16 Image processing method based on light change

Country Status (1)

Country Link
CN (1) CN111008942A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137272A (en) * 2011-03-21 2011-07-27 西安理工大学 Method for calibrating colors of multiple cameras in open environment
CN103780851A (en) * 2012-10-23 2014-05-07 奥林巴斯映像株式会社 Image pickup apparatus
US20150172513A1 (en) * 2013-12-18 2015-06-18 Nokia Corporation Methods And Apparatus For Color Balance Correction
CN104994361A (en) * 2015-07-20 2015-10-21 福州鑫图光电有限公司 Color imaging system for collecting standard color information of object and using method thereof
CN107040770A (en) * 2016-02-04 2017-08-11 冠捷投资有限公司 The scene color temperature dynamic adjusting method and device of display device
CN107197225A (en) * 2017-06-13 2017-09-22 浙江大学 Color digital camera white balance correcting based on chromatic adaptation model
CN107360418A (en) * 2017-09-21 2017-11-17 长沙全度影像科技有限公司 A kind of panorama camera colour consistency evaluation system and method
CN108712639A (en) * 2018-05-29 2018-10-26 凌云光技术集团有限责任公司 Image color correction method, apparatus and system
CN108810397A (en) * 2018-04-23 2018-11-13 深圳和而泰数据资源与云技术有限公司 A kind of image color misregistration correction method and terminal device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137272A (en) * 2011-03-21 2011-07-27 西安理工大学 Method for calibrating colors of multiple cameras in open environment
CN103780851A (en) * 2012-10-23 2014-05-07 奥林巴斯映像株式会社 Image pickup apparatus
US20150172513A1 (en) * 2013-12-18 2015-06-18 Nokia Corporation Methods And Apparatus For Color Balance Correction
CN104994361A (en) * 2015-07-20 2015-10-21 福州鑫图光电有限公司 Color imaging system for collecting standard color information of object and using method thereof
CN107040770A (en) * 2016-02-04 2017-08-11 冠捷投资有限公司 The scene color temperature dynamic adjusting method and device of display device
CN107197225A (en) * 2017-06-13 2017-09-22 浙江大学 Color digital camera white balance correcting based on chromatic adaptation model
CN107360418A (en) * 2017-09-21 2017-11-17 长沙全度影像科技有限公司 A kind of panorama camera colour consistency evaluation system and method
CN108810397A (en) * 2018-04-23 2018-11-13 深圳和而泰数据资源与云技术有限公司 A kind of image color misregistration correction method and terminal device
CN108712639A (en) * 2018-05-29 2018-10-26 凌云光技术集团有限责任公司 Image color correction method, apparatus and system

Similar Documents

Publication Publication Date Title
CN101621628B (en) Photographic apparatus, setting method of photography conditions, and recording medium
CN110290289B (en) Image noise reduction method and device, electronic equipment and storage medium
JP6141587B2 (en) Lens shading correction factor calculation method and lens shading correction method and apparatus using the same
CN108712608B (en) Terminal equipment shooting method and device
US10194074B2 (en) Imaging system, warning generation device and method, imaging device and method, and program
CN108055452A (en) Image processing method, device and equipment
CN106063249A (en) Photographing apparatus, method of controlling the same, and computer-readable recording medium
JP2004343519A (en) Imaging apparatus and image processing apparatus
US20130120608A1 (en) Light source estimation device, light source estimation method, light source estimation program, and imaging apparatus
CN103563350A (en) Image processing device, image processing method, and digital camera
WO2010073619A1 (en) Image capture device
CN104639923A (en) Method and device for processing image data, and terminal
CN109035193A (en) A kind of image processing method and imaging processing system based on binocular solid camera
WO2019225880A1 (en) Semi-dense depth estimation from a dynamic vision sensor (dvs) stereo pair and a pulsed speckle pattern projector
US20130093847A1 (en) Stereoscopic image capture device and control method of the same
US7428012B2 (en) Image processing method including generating face region information and a digital camera including face region identification unit
US20170126966A1 (en) Photography method using gaze detection
CN112668636A (en) Camera shielding detection method and system, electronic equipment and storage medium
JP2007188126A (en) Image brightness calculation device, method, and program
US20170061646A1 (en) Image processing apparatus and image processing method
US20140098258A1 (en) Color distortion correction method and device for imaging systems and image output systems
JP4752935B2 (en) Image processing apparatus and image processing program
CN111008942A (en) Image processing method based on light change
CN110930440B (en) Image alignment method, device, storage medium and electronic equipment
CN110930340B (en) Image processing method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200414