CN105611264B - A kind of auto white balance method and device - Google Patents
A kind of auto white balance method and device Download PDFInfo
- Publication number
- CN105611264B CN105611264B CN201511021869.5A CN201511021869A CN105611264B CN 105611264 B CN105611264 B CN 105611264B CN 201511021869 A CN201511021869 A CN 201511021869A CN 105611264 B CN105611264 B CN 105611264B
- Authority
- CN
- China
- Prior art keywords
- weight
- colour temperature
- information
- camera
- current
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000006073 displacement reaction Methods 0.000 claims description 54
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000015654 memory Effects 0.000 description 21
- 230000006870 function Effects 0.000 description 16
- 238000004891 communication Methods 0.000 description 13
- 238000009826 distribution Methods 0.000 description 11
- 238000003860 storage Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000006837 decompression Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000003384 imaging method Methods 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 4
- NJPPVKZQTLUDBO-UHFFFAOYSA-N novaluron Chemical compound C1=C(Cl)C(OC(F)(F)C(OC(F)(F)F)F)=CC=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F NJPPVKZQTLUDBO-UHFFFAOYSA-N 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 239000004744 fabric Substances 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 241000256844 Apis mellifera Species 0.000 description 1
- 230000005457 Black-body radiation Effects 0.000 description 1
- 241000196324 Embryophyta Species 0.000 description 1
- 241001062009 Indigofera Species 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 230000005622 photoelectricity Effects 0.000 description 1
- 230000035479 physiological effects, processes and functions Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 230000002463 transducing effect Effects 0.000 description 1
- 239000002023 wood Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a kind of auto white balance method and devices, belong to technical field of image processing, and this method includes:Reference point is obtained from photo, judges that the colour temperature of camera local environment, the colour temperature include history colour temperature and current colour temperature according to reference point;Obtain the movement state information of camera;The colour temperature of Current camera local environment is judged according to the movement state information;White balance is carried out to photo using the colour temperature of the Current camera local environment, the colour temperature of camera local environment is judged by the movement state information of camera, makes the photograph taken that there is more true color, meets the feeling of human eye, improve user experience.
Description
Technical field
The present invention relates to technical field of image processing more particularly to a kind of auto white balance methods and device.
Background technology
Black matrix is heated since absolute zero, temperature, which often increases, is once known as 1 degree Kelvin (being indicated with alphabetical K), when
When temperature is increased to a certain extent, black matrix just gives off visible light, spectral content and to people feeling also can temperature
Continuous raising corresponding variation occurs.Then, the temperature of the certain coloured light of black body radiation is just set to transmitting phase light of same color light source
Colour temperature.It is worth noting that, the spatial distribution of actual light source is different, and colour temperature is to represent the weighting journey of energy
Degree, does not reflect specific spatial distribution, so even if the light source of identical colour temperature, it is also possible to different colors be caused to react.People
Eye and brain to colour temperature have certain physiology and psychology adaptivity, so the color seen by color temperature shift influenced compared with
It is small, and the sersor of camera does not have this ability, is seen with human eye if the photo come is handled without white balance so taking
To color have larger deviation.
White balance, it is referred to during image procossing, and color is carried out to the image for the object that script material is white
Coloured silk reduction, removes the influence of external light source colour temperature, it is made to also show white on photo.Current AWB (Automatic
White balance, automatic white balance) algorithm is varied, typically pass through grey world and the white world in present frame
Method counts gray decision point and white decision point, is then determined according to the decision point of previous frame to calculate the decision point of present frame
The Rgain (red gain) and Bgain (blue gain) of settled previous frame.And people are to the adaptive of the automatic white balance of camera
Property and accuracy rate requirement it is higher and higher, need more preferably algorithm calculate white balance, but existing AWB algorithm presence is very big at present
Drawback:
1, due to the picture of camera lens limit, when in camera lens enter large area yellow object, light blue object or light green object
When body, current AWB algorithms can cause clapped object to whiten;
2, human eye exists concurrently in the environment of two kinds of light sources, and such as A light and D65 light, human eye just goes to D65 from A light region
The object seen when light region is whole partially blue, and the object seen when moving to the light regions A from D65 light region is whole partially yellow,
Current AWB algorithms are only to calculate white balance according to statistics, do not meet the direct feeling of human eye.
Invention content
It is a primary object of the present invention to propose a kind of auto white balance method and device, it is intended to solve existing white balance and calculate
Not the problem of method does not meet human eye and feels, poor user experience.
To achieve the above object, a kind of auto white balance method provided by the invention, the method includes the steps:
Reference point is obtained from photo, judges that the colour temperature of camera local environment, the colour temperature include history according to reference point
Colour temperature and current colour temperature;
Obtain the movement state information of camera;
The colour temperature of Current camera local environment is judged according to the movement state information;
White balance is carried out to photo using the colour temperature of the Current camera local environment.
Optionally, the movement state information for obtaining camera includes:
The displacement distance and traveling time of camera are obtained by gyroscope and accelerometer.
Optionally, described to judge that the colour temperature of Current camera local environment includes according to the movement state information:
The weight of historical statistical information is calculated, the weight of the historical statistical information is related with the displacement distance, mobile
Apart from smaller, the weight of historical statistical information is bigger, and displacement distance is bigger, and the weight of historical statistical information is smaller;
The weight of current statistic information is calculated, the weight of the current statistic information is related with the displacement distance, mobile
Apart from smaller, the weight of current statistic information is smaller, and displacement distance is bigger, and the weight of current statistic information is bigger;
Ring residing for Current camera is selected according to the weight of the weight of the historical statistical information and the current statistic information
The colour temperature in border.
Optionally, the weight of the historical statistical information is also related with the traveling time, and traveling time is shorter, history system
The weight for counting information is bigger, and traveling time is longer, and the weight of historical statistical information is smaller.
Optionally, the reference point that obtained from photo is specially:Using white world's method and grey world from photo
In to find white point as a reference point.
In addition, to achieve the above object, the present invention also proposes a kind of automatic white balance device, including:
Colour temperature acquisition module judges the colour temperature of camera local environment according to reference point for obtaining reference point from photo,
The colour temperature includes history colour temperature and current colour temperature;
Moving state acquisition module, the movement state information for obtaining camera;
Judgment module, the colour temperature for judging Current camera local environment according to the movement state information;
White balance module carries out white balance for the colour temperature using the Current camera local environment to photo.
Optionally, the moving state acquisition module is specifically used for:
The displacement distance and traveling time of camera are obtained by gyroscope and accelerometer.
Optionally, the judgment module includes:
History weight calculation unit, the weight for calculating historical statistical information, the weight of the historical statistical information with
The displacement distance is related, and displacement distance is smaller, and the weight of historical statistical information is bigger, and displacement distance is bigger, historical statistics letter
The weight of breath is smaller;
Present weight computing unit, the weight for calculating current statistic information, the weight of the current statistic information with
The displacement distance is related, and displacement distance is smaller, and the weight of current statistic information is smaller, and displacement distance is bigger, current statistic letter
The weight of breath is bigger;
Selecting unit, the weight selection for weight and the current statistic information according to the historical statistical information are worked as
The colour temperature of preceding camera local environment.
Optionally, the weight of the historical statistical information is also related with the traveling time, and traveling time is shorter, history system
The weight for counting information is bigger, and traveling time is longer, and the weight of historical statistical information is smaller.
Optionally, the colour temperature acquisition module is specifically used for:It is looked for from photo using white world's method and grey world
It is as a reference point to white point.
In addition, to achieve the above object, the present invention also proposes a kind of mobile terminal, including devices discussed above.
A kind of auto white balance method proposed by the present invention and device, this method include:Reference point, root are obtained from photo
Judge that the colour temperature of camera local environment, the colour temperature include history colour temperature and current colour temperature according to reference point;Obtain the movement of camera
Status information;The colour temperature of Current camera local environment is judged according to the movement state information;Residing for the Current camera
The colour temperature of environment carries out white balance to photo, and the colour temperature of camera local environment is judged by the movement state information of camera, makes bat
The photograph gone out has more true color, meets the feeling of human eye, improves user experience.
Description of the drawings
The hardware architecture diagram of Fig. 1 optional mobile terminals of each embodiment one to realize the present invention;
The electrical structure block diagram of Fig. 2 cameras of each embodiment to realize the present invention;
Fig. 3 is the auto white balance method flow chart of the embodiment of the present invention one;
The reference point of the positions Fig. 4 embodiment of the present invention one obtains surface chart;
The movement state information of the positions Fig. 5 embodiment of the present invention one obtains surface chart;
Fig. 6 is the auto white balance method flow chart of the embodiment of the present invention two;
Fig. 7 is the exemplary block diagram of the automatic white balance device of the embodiment of the present invention three;
Fig. 8 is the exemplary block diagram of the automatic white balance device of the embodiment of the present invention four.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for be conducive to the present invention explanation, itself
There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP
The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving
Except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
The hardware architecture diagram of Fig. 1 optional mobile terminals of each embodiment one to realize the present invention.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include mobile communication module 112, wireless Internet mould
At least one of block 113, short range communication module 114.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
Tooth TM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybee TM etc..
A/V input units 120 are for receiving audio or video signal.A/V input units 120 may include camera 121
With microphone 1220, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain it is quiet
The image data of state picture or video is handled.Treated, and picture frame may be displayed on display unit 151.Through camera
121 treated that picture frame can be stored in memory
It is sent in 160 (or other storage mediums) or via wireless communication unit 110, it can be according to mobile terminal
Construction two or more cameras 1210 are provided.Microphone 122 can be in telephone calling model, logging mode, speech recognition
Sound (audio data) is received via microphone in pattern etc. operational mode, and can be audio by such acoustic processing
Data.Audio that treated (voice) data can be converted in the case of telephone calling model can be via mobile communication module
112 are sent to the format output of mobile communication base station.Microphone 122 can implement various types of noises and eliminate (or inhibition) calculation
Method is to eliminate the noise or interference that (or inhibition) generates during sending and receiving audio signal.
User input unit 130 can generate key input data to control each of mobile terminal according to order input by user
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, sensitive component of detection variation of resistance, pressure, capacitance etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense
The sliding-type phone is to open or close.In addition, sensing unit 140 can detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can store to use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card therefore to know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power provides to the path of mobile terminal 100 from pedestal or may be used as that the various command signals inputted from pedestal is allowed to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 may include display
Unit 151, audio output module 152 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern
Or when image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
The UI or GUI etc. of picture and correlation function.
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit
151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving
Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen, which can be used for detecting, to be touched
Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loud speaker, buzzer etc..
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can be stored about when the vibration and audio signal for touching the various modes that the when of being applied to touch screen exports
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control
Device 180 processed detaches.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can with use such as computer software, hardware or any combination thereof calculating
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can be stored in memory 160 and be executed by controller 180.
So far, oneself according to its function through describing mobile terminal.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Fig. 2 is the electrical structure block diagram of camera.
Phtographic lens 1211 is made of the multiple optical lens for being used to form shot object image, is single-focus lens or varifocal mirror
Head.Phtographic lens 1211 can move in the direction of the optical axis under the control of lens driver 1221, lens driver 1221
According to the control signal from lens driving control circuit 1222, the focal position of phtographic lens 1211 is controlled, in zoom lens
In the case of, it also can control focal length.Lens driving control circuit 1222 is according to the control command from microcomputer 1217
Carry out the drive control of lens driver 1221.
It is configured with and takes the photograph near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211
Element 1212.Photographing element 1212 is for imaging shot object image and obtaining image data.On photographing element 1212
Two dimension and be arranged in a matrix the photodiode for constituting each pixel.Each photodiode generates photoelectricity corresponding with light income
Switching current, the opto-electronic conversion electric current carry out charge accumulation by the capacitor being connect with each photodiode.The preceding table of each pixel
Face is configured with the RGB colour filters of bayer arrangement.
Photographing element 1212 is connect with imaging circuit 1213, which carries out charge in photographing element 1212
Accumulation control and picture signal read control, are carried out after reducing resetting noise to the picture signal (analog picture signal) of the reading
Waveform shaping, and then progress gain raising etc. is to become signal level appropriate.Imaging circuit 1213 connects with A/D converter 1214
It connects, which carries out analog-to-digital conversion to analog picture signal, (following to 1227 output digital image signal of bus
Referred to as image data).
Bus 1227 is the transmitting path for being transmitted in the various data that the inside of camera reads or generates.In bus
1227 are connected to above-mentioned A/D converter 1214, are additionally connected to image processor 1215, jpeg processor 1216, microcomputer
Calculation machine 1217, SDRAM (Synchronous Dynamic random access memory, Synchronous Dynamic Random Access Memory)
1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display, liquid crystal display
Device) driver 1220.
Image processor 1215 carries out OB to the image data of the output based on photographing element 1212 and subtracts each other processing, white balance
Adjustment, color matrix operation, gamma conversion, colour difference signal processing, noise removal process while to change processing, edge treated etc. each
Kind image procossing.Jpeg processor 1216 is when by Imagery Data Recording in recording medium 1225, according to JPEG compression mode pressure
Contract the image data read from SDRAM1218.In addition, jpeg processor 1216 shows to carry out image reproducing and carries out JPEG
The decompression of image data.When unziping it, the file being recorded in recording medium 1225 is read, in jpeg processor 1216
In implement decompression after, the image data of decompression is temporarily stored in SDRAM1218 and is carried out on LCD1226
Display.In addition, in the present embodiment, as compression of images decompression mode using JPEG modes, however Compress softwares
Contracting mode is without being limited thereto, it is of course possible to using MPEG, TIFF, other compressed and decompressed modes such as H.264.
Microcomputer 1217 plays the function of the control unit as camera entirety, is uniformly controlled the various processing of camera
Sequence.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but not limited to physical button or virtual key, and the entity or virtual key can be electricity
Source button, camera button, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button,
The operational controls such as the various load buttons such as large buttons and various enter keys, detect the mode of operation of these operational controls,.
Testing result is exported to microcomputer 1217.In addition, the front surface in the LCD1226 as display is equipped with
Touch panel detects the touch location of user, which is exported to microcomputer 1217.Microcomputer 1217
According to the testing result of the operating position from operating unit 1223, various processing sequences corresponding with the operation of user are executed.
The program of various processing sequences of the storage of flash memory 1224 for executing microcomputer 1217.Microcomputer 1217
The control of camera entirety is carried out according to the program.In addition, flash memory 1224 stores the various adjusted values of camera, microcomputer 1217
Adjusted value is read, the control of camera is carried out according to the adjusted value.
SDRAM1218 be for image data etc. temporarily stored can electricity rewrite volatile memory.It should
SDRAM1218 temporarily stores the image data exported from A/D converter 1214 and in image processor 1215, jpeg processor
1216 it is equal in the image data that carried out that treated.
Memory interface 1219 is connect with recording medium 1225, into the text be about to image data He be attached in image data
First-class control data write-in recording medium 1225 and read from recording medium 1225 of part.Recording medium 1225 is, for example, can
The recording mediums such as memory card of disassembled and assembled freely on camera main-body, however it is without being limited thereto, can also be to be built in camera main-body
In hard disk etc..
LCD driver 1210 is connect with LCD1226, will treated that image data is stored in by image processor 1215
SDRAM1218 when needing display, reads the image data of SDRAM1218 storages and is shown on LCD1226, alternatively, at JPEG
The compressed image data of reason device 1216 is stored in SDRAM1218, and when needing display, jpeg processor 1216 is read
The compressed image data of SDRAM1218, then unzip it, the image data after decompression is carried out by LCD1226
Display.
LCD1226 configurations perform image display at the back side of camera main-body.The LCD1226LCD, however it is without being limited thereto,
The various display panels such as organic EL (LCD1226) may be used, however it is without being limited thereto, the various displays such as organic EL can also be used
Panel.
Electrical structure schematic diagram based on above-mentioned mobile terminal hardware configuration and camera proposes each implementation of the present invention
Example.
Embodiment one
As shown in figure 3, the present embodiment proposes a kind of auto white balance method, the method includes the steps:
S10, reference point is obtained from photo, judge that the colour temperature of camera local environment, the colour temperature include according to reference point
History colour temperature and current colour temperature;
S20, the movement state information for obtaining camera;
S30, the colour temperature that Current camera local environment is judged according to the movement state information;
S40, white balance is carried out to photo using the colour temperature of the Current camera local environment.
In the present embodiment, the camera is all mobile terminals with camera function, such as:It is served only for the profession taken pictures
Camera or mobile phone etc. with camera function are white to script material because white balance refers to during image procossing
The image of the object of color carries out color rendition, removes the influence of external light source colour temperature, so that it is also shown white on photo, institute
As shown in figure 4, acquisition may be that the region of white point is as a reference point first from photo, to be judged according to the information of reference point
The judgement of the colour temperature of camera local environment, colour temperature is the technology of comparative maturity, is not repeated hereby;Meanwhile passing through gyroscope, acceleration
The supplementary modules such as meter determine that camera is slow movement, fast moves or just open camera, and the present invention passes through the fortune for acquiring camera
Dynamic status information distinguishes these three situations.
Firstly for rigid the case where opening camera, no historical statistical information can be used for reference, and directly use grey world
White balance is restrained with white world's method, reference point only corresponds to current statistic information, also only includes current colour temperature, after not needing
Continuous deterministic process, not within the scope of the considerations of the present embodiment.
As shown in figure 5, in the present embodiment, the movement state information for obtaining camera includes:By gyroscope and add
Speedometer obtains the displacement distance and traveling time of camera, can determine whether that camera is by displacement distance and the ratio of traveling time
Slowly movement still fast moves, and then more intuitive to the acquisition of displacement distance and traveling time, and by gyroscope and acceleration
The data that degree meter can directly acquire.
In the present embodiment, what the displacement distance and accelerometer that the weight of historical statistical information is exported by gyroscope exported
Traveling time determines that displacement distance is smaller, and the weight of historical statistical information is bigger, and displacement distance is bigger, historical statistical information
Weight it is smaller;Traveling time presses Gaussian Profile, and traveling time is shorter namely the historical juncture is closer from current time, history system
The weight for counting information is bigger, and traveling time is longer namely the historical juncture is remoter from current time, and the weight of historical statistical information is got over
It is small, in the weight that the two factors determine, gyroscope role bigger;The weight of current statistic information and the movement away from
From related, displacement distance is smaller, and the weight of current statistic information is smaller, and displacement distance is bigger, and the weight of current statistic information is got over
Greatly.
In the present embodiment, the relationship between the weight of the historical statistical information and the displacement distance and traveling time
Meet Gaussian function or Wei Buer distributions (Weibull distribution);The weight of the current statistic information and the shifting
Relationship between dynamic distance meets Gaussian function or Wei Buer distributions.It should be understood that the weight of the historical statistical information,
Relationship between the weight and the displacement distance and traveling time of the current statistic information can also be that other meet reverse phase
The relationship of feature is closed, person of ordinary skill in the field is to realize identical performance or use, is obtained by reasonable prediction
The above-mentioned embodiment provided all equivalents and obvious variant belong to protection scope of the present invention.
For example, camera slowly goes to D colour temperatures, distance mobile hour, the displacement distance of the calculated output of gyroscope from A colour temperatures
It is smaller, judged according to above-mentioned weight, last colour temperature judges close to A colour temperatures;Camera moves very big distance to D colour temperatures from A colour temperatures
When, the displacement distance of the calculated output of gyroscope is larger, is judged according to above-mentioned weight, and last colour temperature judges close to D colour temperatures.
In the present embodiment, the colour temperature that camera local environment is judged by the movement state information of camera makes the phase taken
Piece has more true color, meets the feeling of human eye, improves user experience.
For example, being all wood furniture in many families now, when we take pictures at home, if furniture accounts for camera imaging picture
, will be partially white with the wooden color of general AWB algorithms, furniture when bigger, some cameras even can be partially blue.It takes
Photo feels different with human eye;But if the photograph of true wooden color will be taken using the method for the present embodiment,
Meet the feeling of human eye.
For example, when clapping certificate photo to people with camera, background is pale blue painting cloth, can be by pale blue when being taken pictures with general camera
Cloth be white, yellow as white point, face can be partially yellow, or partially red;But if the method using the present embodiment will be taken
True light blue background cloth and true people's colour of skin, meet the feeling of human eye.
Embodiment two
As shown in fig. 6, in the present embodiment, the S30 includes:
S31, the weight for calculating historical statistical information, the weight of the historical statistical information is related with the displacement distance,
Displacement distance is smaller, and the weight of historical statistical information is bigger, and displacement distance is bigger, and the weight of historical statistical information is smaller;
S32, the weight for calculating current statistic information, the weight of the current statistic information is related with the displacement distance,
Displacement distance is smaller, and the weight of current statistic information is smaller, and displacement distance is bigger, and the weight of current statistic information is bigger;
S33, Current camera institute is selected according to the weight of the historical statistical information and the weight of the current statistic information
Locate the colour temperature of environment.
In the present embodiment, the weight of the historical statistical information is also related with the traveling time, and traveling time is shorter,
The weight of historical statistical information is bigger, and traveling time is longer, and the weight of historical statistical information is smaller.
In the present embodiment, the relationship between the weight of the historical statistical information and the displacement distance and traveling time
Meet Gaussian function or Wei Buer distributions (Weibull distribution);The weight of the current statistic information and the shifting
Relationship between dynamic distance meets Gaussian function or Wei Buer distributions.It should be understood that the weight of the historical statistical information,
Relationship between the weight and the displacement distance and traveling time of the current statistic information can also be that other meet reverse phase
The relationship of feature is closed, person of ordinary skill in the field is to realize identical performance or use, is obtained by reasonable prediction
The above-mentioned embodiment provided all equivalents and obvious variant belong to protection scope of the present invention.
Embodiment three
As shown in fig. 7, in the present embodiment, a kind of automatic white balance device, including:
Colour temperature acquisition module 10 judges the color of camera local environment according to reference point for obtaining reference point from photo
Temperature, the colour temperature include history colour temperature and current colour temperature;
Moving state acquisition module 20, the movement state information for obtaining camera;
Judgment module 30, the colour temperature for judging Current camera local environment according to the movement state information;
White balance module 40 carries out white balance for the colour temperature using the Current camera local environment to photo.
In the present embodiment, the colour temperature that camera local environment is judged by the movement state information of camera makes the phase taken
Piece has more true color, meets the feeling of human eye, improves user experience.
In the present embodiment, the moving state acquisition module is specifically used for:
The displacement distance and traveling time of camera are obtained by gyroscope and accelerometer.
In the present embodiment, the colour temperature acquisition module is specifically used for:Using white world's method and grey world from photograph
It is as a reference point that white point is found in piece.
Example IV
As shown in figure 8, in the present embodiment, the judgment module 30 includes:
History weight calculation unit 31, the weight for calculating historical statistical information, the weight of the historical statistical information
Related with the displacement distance, displacement distance is smaller, and the weight of historical statistical information is bigger, and displacement distance is bigger, historical statistics
The weight of information is smaller;
Present weight computing unit 32, the weight for calculating current statistic information, the weight of the current statistic information
Related with the displacement distance, displacement distance is smaller, and the weight of current statistic information is smaller, and displacement distance is bigger, current statistic
The weight of information is bigger;
Selecting unit 33, for being selected according to the weight of the historical statistical information and the weight of the current statistic information
The colour temperature of Current camera local environment.
In the present embodiment, the weight of the historical statistical information is also related with the traveling time, and traveling time is shorter,
The weight of historical statistical information is bigger, and traveling time is longer, and the weight of historical statistical information is smaller.
In the present embodiment, the relationship between the weight of the historical statistical information and the displacement distance and traveling time
Meet Gaussian function or Wei Buer distributions (Weibull distribution);The weight of the current statistic information and the shifting
Relationship between dynamic distance meets Gaussian function or Wei Buer distributions.It should be understood that the weight of the historical statistical information,
Relationship between the weight and the displacement distance and traveling time of the current statistic information can also be that other meet reverse phase
The relationship of feature is closed, person of ordinary skill in the field is to realize identical performance or use, is obtained by reasonable prediction
The above-mentioned embodiment provided all equivalents and obvious variant belong to protection scope of the present invention.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of auto white balance method, which is characterized in that the method includes the steps:
Reference point is obtained from photo, judges that the colour temperature of camera local environment, the colour temperature include history colour temperature according to reference point
With current colour temperature;
Obtain the movement state information of camera;
The colour temperature of Current camera local environment is judged according to the movement state information;
White balance is carried out to photo using the colour temperature of the Current camera local environment;
Wherein, judge that the colour temperature of Current camera local environment includes according to the movement state information:
Calculate the weight of historical statistical information, the weight of the historical statistical information is related with the displacement distance of camera, it is mobile away from
From smaller, the weight of historical statistical information is bigger, and displacement distance is bigger, and the weight of historical statistical information is smaller;
The weight of current statistic information is calculated, the weight of the current statistic information is related with the displacement distance, displacement distance
Smaller, the weight of current statistic information is smaller, and displacement distance is bigger, and the weight of current statistic information is bigger;
Current camera local environment is selected according to the weight of the weight of the historical statistical information and the current statistic information
Colour temperature.
2. a kind of auto white balance method according to claim 1, which is characterized in that the motion state for obtaining camera
Information includes:
The displacement distance and traveling time of camera are obtained by gyroscope and accelerometer.
3. a kind of auto white balance method according to claim 2, which is characterized in that the weight of the historical statistical information
Also related with the traveling time, traveling time is shorter, and the weight of historical statistical information is bigger, and traveling time is longer, history system
The weight for counting information is smaller.
4. a kind of auto white balance method according to claim 1, which is characterized in that described to obtain reference point from photo
Specially:It is as a reference point that white point is found from photo using white world's method and grey world.
5. a kind of automatic white balance device, which is characterized in that including:
Colour temperature acquisition module judges the colour temperature of camera local environment according to reference point for obtaining reference point from photo, described
Colour temperature includes history colour temperature and current colour temperature;
Moving state acquisition module, the movement state information for obtaining camera;
Judgment module, the colour temperature for judging Current camera local environment according to the movement state information;
White balance module carries out white balance for the colour temperature using the Current camera local environment to photo;
Wherein, the judgment module includes:
History weight calculation unit, the weight for calculating historical statistical information, the weight of the historical statistical information with it is described
Displacement distance is related, and displacement distance is smaller, and the weight of historical statistical information is bigger, and displacement distance is bigger, historical statistical information
Weight is smaller;
Present weight computing unit, the weight for calculating current statistic information, the weight of the current statistic information with it is described
Displacement distance is related, and displacement distance is smaller, and the weight of current statistic information is smaller, and displacement distance is bigger, current statistic information
Weight is bigger;
Selecting unit, for selecting current phase according to the weight of the historical statistical information and the weight of the current statistic information
The colour temperature of machine local environment.
6. a kind of automatic white balance device according to claim 5, which is characterized in that the moving state acquisition module tool
Body is used for:
The displacement distance and traveling time of camera are obtained by gyroscope and accelerometer.
7. a kind of automatic white balance device according to claim 6, which is characterized in that the weight of the historical statistical information
Also related with the traveling time, traveling time is shorter, and the weight of historical statistical information is bigger, and traveling time is longer, history system
The weight for counting information is smaller.
8. a kind of mobile terminal, which is characterized in that including claim 5-7 any one of them devices.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511021869.5A CN105611264B (en) | 2015-12-30 | 2015-12-30 | A kind of auto white balance method and device |
PCT/CN2016/108098 WO2017114088A1 (en) | 2015-12-30 | 2016-11-30 | Automatic white balance method and device, terminal, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511021869.5A CN105611264B (en) | 2015-12-30 | 2015-12-30 | A kind of auto white balance method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105611264A CN105611264A (en) | 2016-05-25 |
CN105611264B true CN105611264B (en) | 2018-09-14 |
Family
ID=55990766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511021869.5A Active CN105611264B (en) | 2015-12-30 | 2015-12-30 | A kind of auto white balance method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105611264B (en) |
WO (1) | WO2017114088A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611264B (en) * | 2015-12-30 | 2018-09-14 | 努比亚技术有限公司 | A kind of auto white balance method and device |
CN108024055B (en) * | 2017-11-03 | 2019-09-17 | Oppo广东移动通信有限公司 | Method, apparatus, mobile terminal and the storage medium of white balance processing |
CN107911682B (en) * | 2017-11-28 | 2020-02-18 | Oppo广东移动通信有限公司 | Image white balance processing method, device, storage medium and electronic equipment |
CN108174173B (en) * | 2017-12-25 | 2020-01-10 | Oppo广东移动通信有限公司 | Photographing method and apparatus, computer-readable storage medium, and computer device |
CN110611803A (en) * | 2019-09-03 | 2019-12-24 | 珠海格力电器股份有限公司 | Color temperature estimation method and device and computer readable medium |
CN111182217B (en) * | 2020-01-07 | 2021-08-10 | 上海海鸥数码照相机有限公司 | Image white balance processing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005025235A1 (en) * | 2003-09-04 | 2005-03-17 | Sony Corporation | Image processing method, image processing apparatus, and computer program |
CN101079954A (en) * | 2007-06-26 | 2007-11-28 | 北京中星微电子有限公司 | Method and device for realizing white balance correction |
CN102647449A (en) * | 2012-03-20 | 2012-08-22 | 西安联客信息技术有限公司 | Intelligent shooting method and intelligent shooting device based on cloud service and mobile terminal |
CN103338383A (en) * | 2013-06-25 | 2013-10-02 | 深圳市中兴移动通信有限公司 | White balance calibrating method and device |
CN103402103A (en) * | 2013-07-25 | 2013-11-20 | 上海富瀚微电子有限公司 | Self-adaptive white balance starting speed control method and device |
CN103581638A (en) * | 2012-08-01 | 2014-02-12 | 佳能株式会社 | Image processing apparatus and image processing method |
WO2015167676A1 (en) * | 2014-04-29 | 2015-11-05 | Intel Corporation | Automatic white balancing with chromaticity measure of raw image data |
WO2015176935A1 (en) * | 2014-05-20 | 2015-11-26 | Koninklijke Philips N.V. | An image capturing system, a kit for an image capturing system, a mobile phone, use of an image capturing system and a method of configuring a color matched light source |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4434073B2 (en) * | 2005-05-16 | 2010-03-17 | ソニー株式会社 | Image processing apparatus and imaging apparatus |
CN102685389B (en) * | 2012-04-06 | 2014-12-10 | 天津市亚安科技股份有限公司 | Device and method for automatically adjusting parameters of camera |
JP6446790B2 (en) * | 2014-02-21 | 2019-01-09 | 株式会社リコー | Image processing apparatus, imaging apparatus, image correction method, and program |
CN104320642B (en) * | 2014-10-11 | 2016-08-24 | 广东欧珀移动通信有限公司 | A kind of method and device of picture processing |
CN105611264B (en) * | 2015-12-30 | 2018-09-14 | 努比亚技术有限公司 | A kind of auto white balance method and device |
-
2015
- 2015-12-30 CN CN201511021869.5A patent/CN105611264B/en active Active
-
2016
- 2016-11-30 WO PCT/CN2016/108098 patent/WO2017114088A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005025235A1 (en) * | 2003-09-04 | 2005-03-17 | Sony Corporation | Image processing method, image processing apparatus, and computer program |
CN101079954A (en) * | 2007-06-26 | 2007-11-28 | 北京中星微电子有限公司 | Method and device for realizing white balance correction |
CN102647449A (en) * | 2012-03-20 | 2012-08-22 | 西安联客信息技术有限公司 | Intelligent shooting method and intelligent shooting device based on cloud service and mobile terminal |
CN103581638A (en) * | 2012-08-01 | 2014-02-12 | 佳能株式会社 | Image processing apparatus and image processing method |
CN103338383A (en) * | 2013-06-25 | 2013-10-02 | 深圳市中兴移动通信有限公司 | White balance calibrating method and device |
CN103402103A (en) * | 2013-07-25 | 2013-11-20 | 上海富瀚微电子有限公司 | Self-adaptive white balance starting speed control method and device |
WO2015167676A1 (en) * | 2014-04-29 | 2015-11-05 | Intel Corporation | Automatic white balancing with chromaticity measure of raw image data |
WO2015176935A1 (en) * | 2014-05-20 | 2015-11-26 | Koninklijke Philips N.V. | An image capturing system, a kit for an image capturing system, a mobile phone, use of an image capturing system and a method of configuring a color matched light source |
Also Published As
Publication number | Publication date |
---|---|
WO2017114088A1 (en) | 2017-07-06 |
CN105611264A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105611264B (en) | A kind of auto white balance method and device | |
CN105100609B (en) | The adjusting method of mobile terminal and acquisition parameters | |
CN105516585B (en) | A kind of device and method of the adjust automatically colour of skin | |
CN104660903B (en) | Image pickup method and filming apparatus | |
CN105491358B (en) | A kind of image processing method and device, terminal | |
CN105513021B (en) | Image denoising device and method | |
US10516860B2 (en) | Image processing method, storage medium, and terminal | |
CN104902185B (en) | Image pickup method and device | |
US20220150403A1 (en) | Input Method and Electronic Device | |
CN105959554B (en) | Video capture device and method | |
CN105763811A (en) | Shooting control device and method | |
CN104934016B (en) | Screen display method and device | |
CN105335458B (en) | Preview picture method and device | |
CN111984347B (en) | Interactive processing method, device, equipment and storage medium | |
CN105578056A (en) | Photographing terminal and method | |
CN111988493B (en) | Interaction processing method, device, equipment and storage medium | |
CN106385579A (en) | Camera detection device, method and multi-camera terminal | |
CN109788268A (en) | Terminal and its white balance correction control method and computer readable storage medium | |
CN105183755B (en) | A kind of display methods and device of picture | |
KR20210053096A (en) | Method for providing preview and electronic device using the same | |
CN106126725A (en) | Page display method and device | |
CN105407275B (en) | Photo synthesizer and method | |
CN107071169A (en) | The processing unit and method of screen wallpaper | |
CN107507128A (en) | Image processing method and equipment | |
CN107197138A (en) | A kind of filming apparatus, method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |