CN109361907A - Method, apparatus, terminal and the storage medium of camera shooting night scene sky color - Google Patents

Method, apparatus, terminal and the storage medium of camera shooting night scene sky color Download PDF

Info

Publication number
CN109361907A
CN109361907A CN201811369488.XA CN201811369488A CN109361907A CN 109361907 A CN109361907 A CN 109361907A CN 201811369488 A CN201811369488 A CN 201811369488A CN 109361907 A CN109361907 A CN 109361907A
Authority
CN
China
Prior art keywords
night scene
dead zone
camera shooting
sky
image
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
CN201811369488.XA
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 Quchuang Technology Co Ltd
Original Assignee
Shenzhen Quchuang 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 Quchuang Technology Co Ltd filed Critical Shenzhen Quchuang Technology Co Ltd
Priority to CN201811369488.XA priority Critical patent/CN109361907A/en
Publication of CN109361907A publication Critical patent/CN109361907A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

The present invention relates to the methods of camera shooting night scene sky color, its implementation is as follows, obtain the night scene image for having sky, night scene image is divided into flat region and texture area, according to grey and the color contrast judgement flat region dead zone Zhong Tian, B gain adjustment only is carried out to day dead zone, it is individually handled for night scene sky portion, first image is split, pass through the judgement to sky again, partially blue processing is carried out just for sky portion, this can improve the inclined reddish yellow of existing disposed of in its entirety bring entirety photo or partially blue problem.There is the Scenery Imaging effect that will not influence other parts while good behaviour on high.

Description

Method, apparatus, terminal and the storage medium of camera shooting night scene sky color
Technical field
The present invention relates to technical field of image processing, more specifically to a kind of camera shooting night scene sky color Method, apparatus, terminal and storage medium.
Background technique
In the prior art, camera processing of color when shooting photo is first to carry out AWB (AutoWhite Balance color matrices correction) is carried out again, determines final color representation eventually by the R gain and B gain of AWB;
AWB passes through the R/G for demarcating each light source, and B/G parameter determines corresponding gray area range, eventually by natural environment The range of each light source is fallen on to determine corresponding lighting environment, and passes through a series of ISP (Image Signal such as colour correction Process) parameter processing is finally reached the purpose of color balance using final R gain and B gain.But this processing side Formula is for night scene, if perhaps B gain can bring image whole partially red yellow or whole partially blue feelings for whole increase R gain Condition.Disposed of in its entirety cannot bring ideal effect to the sky effect portion of night scene.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of camera shooting night The method of red-spotted stonecrop sky color;
Additionally provide device, a kind of terminal and a kind of storage medium of a kind of camera shooting night scene sky color;
Additionally provide method, apparatus, terminal and the storage medium of a kind of camera shooting night scene sky color.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of method for constructing camera shooting night scene sky color, its implementation are as follows:
Step 1: obtaining the night scene image for having sky;
Step 2: night scene image is divided into flat region and texture area;
Step 3: according to grey and the color contrast judgement flat region dead zone Zhong Tian;
Step 4: only carrying out B gain adjustment to day dead zone.
The method of camera shooting night scene sky color of the present invention, wherein further include method in the first step, obtain Before taking the night scene image, environment is judged whether to night, if extending the exposure of camera shooting to night according to environment light Between light time, and increase camera gain.
The method of camera shooting night scene sky color of the present invention, wherein in the third step, the day dead zone is not Comprising limbus, pixel variation is relatively gentle, and dark pixel is more.
The method of camera shooting night scene sky color of the present invention, wherein further include method in the 4th step: Tone after carrying out B gain adjustment to day dead zone carries out judging whether to meet the requirements, and B gain is then re-started when undesirable Adjustment.
The method of camera shooting night scene sky color of the present invention, wherein in the 4th step, judge whether to meet The mode of standard is: the day dead zone B gain is adjusted, so that day dead zone histogram dynamic range adjusts, and according to histogram icon Quasi- deviation judges image hierarchy.
A kind of device of camera shooting night scene sky color, according to the method for above-mentioned camera shooting night scene sky color, Wherein, including image collection module and image processing module;
Described image obtains module, for obtaining the night scene image for having sky;
Described image processing module, for night scene image to be divided into flat region and texture area, according to grey and color ratio To the flat region dead zone Zhong Tian is judged, B gain adjustment only is carried out to day dead zone.
The device of camera shooting night scene sky color of the present invention, wherein described image processing module judges flat Day dead zone standard in area is: not including limbus, pixel variation is relatively gentle, and dark pixel is more.
The device of camera shooting night scene sky color of the present invention, wherein described image processing module is to day dead zone After carrying out a B gain adjustment, tone adjusted is carried out judging whether to meet the requirements, then be carried out again when not being inconsistent standardization B gain adjustment is to meeting the requirements.
A kind of terminal, including memory, processor and storage can transport in the memory and on the processor Capable computer program, wherein the processor is realized when executing the computer program such as the step of the above method
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, wherein institute It states and realizes when computer program is executed by processor such as the step of the above method.
The beneficial effects of the present invention are: obtain have sky night scene image, by night scene image be divided into flat region and Texture area only carries out B gain adjustment to day dead zone, for night scene according to grey and the color contrast judgement flat region dead zone Zhong Tian Sky portion is individually handled, and is first split to image, then by the judgement to sky, is carried out just for sky portion inclined Indigo plant processing, this can improve the inclined reddish yellow of existing disposed of in its entirety bring entirety photo or partially blue problem.Have on high good It will not influence the Scenery Imaging effect of other parts while performance.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below in conjunction with attached drawing and reality Applying example, the invention will be further described, and the accompanying drawings in the following description is only section Example of the invention, for this field For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other accompanying drawings:
Fig. 1 is the method flow diagram of the camera shooting night scene sky color of present pre-ferred embodiments;
Fig. 2 is the device principle block diagram of the camera shooting night scene sky color of present pre-ferred embodiments.
Specific embodiment
In order to keep the purposes, technical schemes and advantages of the embodiment of the present invention clearer, implement below in conjunction with the present invention Technical solution in example carries out clear, complete description, it is clear that and described embodiment is section Example of the invention, and It is not all of embodiment.Based on the embodiment of the present invention, those of ordinary skill in the art are not before making the creative labor Every other embodiment obtained is put, protection scope of the present invention is belonged to.
The night scene sky image processing method of present pre-ferred embodiments, as shown in Figure 1, its implementation is as follows:
S01: the night scene image for having sky is obtained;
S02: night scene image is divided into flat region and texture area;
S03: according to grey and the color contrast judgement flat region dead zone Zhong Tian;
S04: B gain adjustment only is carried out to day dead zone;
It is individually handled for night scene sky portion, first image is split, then pass through the judgement to sky, needle Partially blue processing is carried out to sky portion, this can improve the inclined reddish yellow of existing disposed of in its entirety bring entirety photo or partially blue ask Topic.There is the Scenery Imaging effect that will not influence other parts while good behaviour on high.
Preferably, further include method in the first step, before obtaining night scene image, judge environment whether to night according to environment light Evening if extending the time for exposure of camera shooting to night, and increases camera gain;Before obtaining night scene image, first to camera Prolonging exposure time is carried out for the darker feature of night environment and increases the adjustment of gain, helps to improve the entirety of image Quality.
Preferably, in third step, day dead zone does not include limbus, and pixel variation is relatively gentle, and dark pixel is more;It presses Plant standard like this to distinguish the day dead zone in flat region and other regions, the accurate identification day dead zone of energy.
Preferably, further include method in the 4th step: the tone after carrying out B gain adjustment to day dead zone judges whether It meets the requirements, B gain adjustment is then re-started when undesirable;The B gain adjustment of day dead zone adjustment is automatically examined Core adjustment, is convenient for automatic processing, while also avoiding manually adjusting the problem that inaccuracy is adjusted when B gain.
Preferably, in the 4th step, judge whether that standard compliant mode is: adjustment day dead zone B gain, so that day dead zone is straight Square figure dynamic range adjustment, and image hierarchy is judged according to histogram criteria deviation.
A kind of device of camera shooting night scene sky color, as shown in Fig. 2, shooting night scene sky color according to above-mentioned camera Color method, including image collection module 1 and image processing module 2;
Image collection module, for obtaining the night scene image for having sky;
Image processing module is sentenced for night scene image to be divided into flat region and texture area according to grey and color comparison The disconnected dead zone flat region Zhong Tian, only carries out B gain adjustment to day dead zone;
It is individually handled for night scene sky portion, first image is split, then pass through the judgement to sky, needle Partially blue processing is carried out to sky portion, this can improve the inclined reddish yellow of existing disposed of in its entirety bring entirety photo or partially blue ask Topic.There is the Scenery Imaging effect that will not influence other parts while good behaviour on high.
Preferably, image processing module judges that the day dead zone standard in flat region is: not including limbus, pixel variation It is relatively gentle, and dark pixel is more;The day dead zone and other regions in flat region are distinguished according to such standard, it can be accurate Identify day dead zone.
Preferably, after image processing module carries out a B gain adjustment to day dead zone, tone adjusted is judged Whether meet the requirements, then carries out B gain adjustment when not being inconsistent standardization again to meeting the requirements;To the B gain tune of day dead zone adjustment Whole progress automatically audit adjustment, adjustment inaccuracy asks when being convenient for automatic processing, while also avoiding manually adjusting B gain Topic.
A kind of terminal including memory, processor and stores the calculating that can be run in memory and on a processor Machine program, processor are realized when executing computer program such as the step of the above method
A kind of computer readable storage medium, computer-readable recording medium storage have computer program, computer program It realizes when being executed by processor such as the step of the above method.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description, And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.

Claims (10)

1. a kind of method of camera shooting night scene sky color, which is characterized in that implementation method is as follows:
Step 1: obtaining the night scene image for having sky;
Step 2: night scene image is divided into flat region and texture area;
Step 3: according to grey and the color contrast judgement flat region dead zone Zhong Tian;
Step 4: only carrying out B gain adjustment to day dead zone.
2. the method for camera shooting night scene sky color according to claim 1, which is characterized in that in the first step also Including method, before obtaining the night scene image, environment is judged whether to night, if extending to night according to environment light The time for exposure of camera shooting, and increase camera gain.
3. the method for camera shooting night scene sky color according to claim 1, which is characterized in that in the third step, The day dead zone does not include limbus, and pixel variation is relatively gentle, and dark pixel is more.
4. the method for camera shooting night scene sky color according to claim 1, which is characterized in that in the 4th step, Further include method: the tone after carrying out B gain adjustment to day dead zone carries out judging whether to meet the requirements, and then weighs when undesirable It is new to carry out B gain adjustment.
5. the method for camera shooting night scene sky color according to claim 4, which is characterized in that in the 4th step, Judging whether standard compliant mode is: the day dead zone B gain is adjusted, so that day dead zone histogram dynamic range adjusts, and Image hierarchy is judged according to histogram criteria deviation.
6. a kind of device of camera shooting night scene sky color, -5 any cameras shoot night scene day according to claim 1 The method of empty color, which is characterized in that including image collection module and image processing module;
Described image obtains module, for obtaining the night scene image for having sky;
Described image processing module is sentenced for night scene image to be divided into flat region and texture area according to grey and color comparison The disconnected dead zone flat region Zhong Tian, only carries out B gain adjustment to day dead zone.
7. the device of camera shooting night scene sky color according to claim 6, which is characterized in that described image handles mould Block judges that the day dead zone standard in flat region is: not including limbus, pixel variation is relatively gentle, and dark pixel is more.
8. the device of camera shooting night scene sky color according to claim 6, which is characterized in that described image handles mould After block carries out a B gain adjustment to day dead zone, tone adjusted is carried out judging whether to meet the requirements, when not being inconsistent standardization B gain adjustment is then carried out again to meeting the requirements.
9. a kind of terminal, including memory, processor and storage can be run in the memory and on the processor Computer program, which is characterized in that the processor is realized when executing the computer program as claim 1 to 5 is any The step of item the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201811369488.XA 2018-11-16 2018-11-16 Method, apparatus, terminal and the storage medium of camera shooting night scene sky color Pending CN109361907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811369488.XA CN109361907A (en) 2018-11-16 2018-11-16 Method, apparatus, terminal and the storage medium of camera shooting night scene sky color

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811369488.XA CN109361907A (en) 2018-11-16 2018-11-16 Method, apparatus, terminal and the storage medium of camera shooting night scene sky color

Publications (1)

Publication Number Publication Date
CN109361907A true CN109361907A (en) 2019-02-19

Family

ID=65345577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811369488.XA Pending CN109361907A (en) 2018-11-16 2018-11-16 Method, apparatus, terminal and the storage medium of camera shooting night scene sky color

Country Status (1)

Country Link
CN (1) CN109361907A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394320A (en) * 2014-11-26 2015-03-04 三星电子(中国)研发中心 Image processing method, device and electronic equipment
CN105005966A (en) * 2015-01-16 2015-10-28 西安电子科技大学 Haze-removing algorithm of single image based on physical properties of yellow haze
CN105761230A (en) * 2016-03-16 2016-07-13 西安电子科技大学 Single image defogging method based on sky region segmentation processing
CN106296746A (en) * 2015-06-26 2017-01-04 联发科技股份有限公司 Image processing method and image processor
CN106791402A (en) * 2016-12-23 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of mobile terminal photographic method and terminal
CN108024105A (en) * 2017-12-14 2018-05-11 珠海市君天电子科技有限公司 Image color adjusting method, device, electronic equipment and storage medium
CN108156435A (en) * 2017-12-25 2018-06-12 广东欧珀移动通信有限公司 Image processing method and device, computer readable storage medium and computer equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394320A (en) * 2014-11-26 2015-03-04 三星电子(中国)研发中心 Image processing method, device and electronic equipment
CN105005966A (en) * 2015-01-16 2015-10-28 西安电子科技大学 Haze-removing algorithm of single image based on physical properties of yellow haze
CN106296746A (en) * 2015-06-26 2017-01-04 联发科技股份有限公司 Image processing method and image processor
CN105761230A (en) * 2016-03-16 2016-07-13 西安电子科技大学 Single image defogging method based on sky region segmentation processing
CN106791402A (en) * 2016-12-23 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of mobile terminal photographic method and terminal
CN108024105A (en) * 2017-12-14 2018-05-11 珠海市君天电子科技有限公司 Image color adjusting method, device, electronic equipment and storage medium
CN108156435A (en) * 2017-12-25 2018-06-12 广东欧珀移动通信有限公司 Image processing method and device, computer readable storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN108024055B (en) Method, apparatus, mobile terminal and the storage medium of white balance processing
CN104717432B (en) Handle method, image processing equipment and the digital camera of one group of input picture
US10021313B1 (en) Image adjustment techniques for multiple-frame images
CN102693532B (en) The automatic local directed complete set of image shadow and highlight
CN100444200C (en) Red-eyes detection and correcting method
TW201106685A (en) Foreground image separation method
CN107948538A (en) Imaging method, device, mobile terminal and storage medium
CN110163810A (en) A kind of image processing method, device and terminal
EP3657785B1 (en) Image white balance processing method and apparatus, and terminal device
CN100553301C (en) The modification method of brightness
CN103716547A (en) Smart mode photographing method
CN104113743B (en) Colour TV camera AWB processing method and processing device under low-light (level)
CN112752023B (en) Image adjusting method and device, electronic equipment and storage medium
CN103973983A (en) Method for intelligently adjusting brightness of picture on basis of detection of environmental brightness in photographing
CN107820069B (en) Video monitoring equipment ISP debugging method
US20180241927A1 (en) Exposure Metering Based On Depth Map
CN110163807B (en) Low-illumination image enhancement method based on expected bright channel
CN109862389A (en) A kind of method for processing video frequency, device, server and storage medium
CN110381303A (en) Portrait automatic exposure white balance correction method and system based on skin color statistics
CN105915816A (en) Method and equipment for determining brightness of given scene
CN106454144B (en) A kind of bearing calibration of pair of Google glass image overexposure
CN112669758A (en) Display screen correction method, device, system and computer readable storage medium
CN107682611B (en) Focusing method and device, computer readable storage medium and electronic equipment
CN103458194B (en) Method and device for analyzing exposure degree of digital image and video and digital imaging system
CN109714543A (en) A method of it obtaining skin brightness in camera data stream and adjusts exposure

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: 20190219