CN105611264A - Automatic white balance method and device - Google Patents

Automatic white balance method and device Download PDF

Info

Publication number
CN105611264A
CN105611264A CN201511021869.5A CN201511021869A CN105611264A CN 105611264 A CN105611264 A CN 105611264A CN 201511021869 A CN201511021869 A CN 201511021869A CN 105611264 A CN105611264 A CN 105611264A
Authority
CN
China
Prior art keywords
weight
camera
colour temperature
current
information
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.)
Granted
Application number
CN201511021869.5A
Other languages
Chinese (zh)
Other versions
CN105611264B (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201511021869.5A priority Critical patent/CN105611264B/en
Publication of CN105611264A publication Critical patent/CN105611264A/en
Priority to PCT/CN2016/108098 priority patent/WO2017114088A1/en
Application granted granted Critical
Publication of CN105611264B publication Critical patent/CN105611264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera 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 an automatic white balance method and device, and belongs to the technical field of image processing. The automatic white balance method comprises the steps of obtaining a reference point from a photo and judging a color temperature of the environment where the camera is based on the reference point, wherein the color temperature comprises a historical color temperature and a current color temperature; obtaining motion state information of the camera; judging the color temperature of the environment where the camera is currently based on the motion state information; and carrying out white balance for the photo by adopting the color temperature of the environment where the camera is currently and judging the color temperature of the environment where the camera is through the motion state information of the camera so as to enable the taken photo to have more true colors and accord with the feeling of human eyes. The user experience is improved.

Description

A kind of auto white balance method and device
Technical field
The present invention relates to technical field of image processing, relate in particular to a kind of auto white balance method and device.
Background technology
Black matrix is started to heat from absolute zero, and it is (next with alphabetical K that the every rising of temperature had once been called 1 degree KelvinRepresent), in the time that temperature is elevated to a certain degree, black matrix just gives off visible ray, its spectrum composition andThe sensation of giving people also can the continuous rising of temperature there is corresponding variation. So, just black body radiation oneThe temperature of fixation light is decided to be the colour temperature of launching identical coloured light light source. It should be noted that the light of actual light sourceSpectrum distributes different, and colour temperature has just represented the degree that lays particular stress on of energy, does not reflect concrete spectrumThe light source of identical colour temperature distributes, so even if also may cause different color reactions. Human eye and brainColour temperature is had to certain physiology and psychological adaptivity, so the color of seeing is subject to the impact of colour temperature skewLess, and the sersor of camera does not have this ability, so take the photo coming without white balance placeReason, and the color that human eye is seen has larger deviation.
White balance, it refers in the process of image processing, is the figure of white object to script materialPicture carries out color rendition, removes the impact of external light source colour temperature, makes its also display white on photo. OrderFront AWB (Automaticwhitebalance, AWB) algorithm is varied, normally existsPresent frame, by grey world and white world method, counts gray decision point and white decision point, soCalculate afterwards Rgain (the red increasing of the decision point decision present frame of present frame according to the decision point of previous frameBenefit) and Bgain (blue gain). And the adaptivity of the AWB of people to camera and accurateThe requirement of rate is more and more higher, need more excellent algorithm to calculate white balance, but existing AWB algorithm is deposited at presentIn very large drawback:
1, due to the picture restriction of camera lens, when in camera lens, enter the yellow object of large area, light blue object orWhen light green object, current AWB algorithm can cause clapped object to turn white;
2, human eye exists in the environment of two kinds of light sources at the same time, and as A light and D65 light, human eye is just from AWhen light region goes to D65 light region, see object entirety partially blue, move to A light from D65 light regionThe object entirety of seeing partially yellow when in the region, and current AWB algorithm is only white flat according to calculatingWeigh, do not meet the direct sensation of human eye.
Summary of the invention
Main purpose of the present invention is to propose a kind of auto white balance method and device, is intended to solve existingWhite balance algorithm does not meet human eye perceives, the problem of poor user experience.
For achieving the above object, a kind of auto white balance method provided by the invention, described method comprises stepRapid:
From photo, obtain reference point, judge the colour temperature of camera environment of living according to reference point, described colour temperatureComprise historical colour temperature and current colour temperature;
Obtain the motion state information of camera;
Judge the colour temperature of current camera environment of living according to described motion state information;
Adopt the colour temperature comparison film of described current camera environment of living in to carry out white balance.
Alternatively, the motion state information of obtaining camera described in comprises:
Obtain displacement and the traveling time of camera by gyroscope and accelerometer.
Alternatively, describedly judge that according to described motion state information the colour temperature of current camera environment of living in comprises:
The weight of calculating historical statistics information, the weight of described historical statistics information and described displacement haveClose, displacement is less, and the weight of historical statistics information is larger, and displacement is larger, historical statistics letterThe weight of breath is less;
Calculate the weight of current statistical information, the weight of described current statistical information and described displacement haveClose, displacement is less, and the weight of current statistical information is less, and displacement is larger, current statistics letterThe weight of breath is larger;
Select current camera according to the weight of the weight of described historical statistics information and described current statistical informationThe colour temperature of environment of living in.
Alternatively, the weight of described historical statistics information is also relevant with described traveling time, and traveling time moreShort, the weight of historical statistics information is larger, and traveling time is longer, and the weight of historical statistics information is less.
Alternatively, the described reference point of obtaining from photo is specially: adopt white world method and grey-worldMethod finds white point as a reference point from photo.
In addition, for achieving the above object, the present invention also proposes a kind of AWB device, comprising:
Colour temperature acquisition module, for obtaining reference point from photo, judges camera ring of living according to reference pointThe colour temperature in border, described colour temperature comprises historical colour temperature and current colour temperature;
Motion state acquisition module, for obtaining the motion state information of camera;
Judge module, for judging the colour temperature of current camera environment of living according to described motion state information;
White balance module, carries out white balance for the colour temperature comparison film that adopts described current camera environment of living in.
Alternatively, described motion state acquisition module specifically for:
Obtain displacement and the traveling time of camera by gyroscope and accelerometer.
Alternatively, described judge module comprises:
Historical weight calculation unit, for calculating the weight of historical statistics information, described historical statistics informationWeight relevant with described displacement, displacement is less, the weight of historical statistics information is larger, movesMoving distance is larger, and the weight of historical statistics information is less;
Current weight calculation unit, for calculating the weight of current statistical information, described current statistical informationWeight relevant with described displacement, displacement is less, the weight of current statistical information is less, movesMoving distance is larger, and the weight of current statistical information is larger;
Selected cell, for according to the power of the weight of described historical statistics information and described current statistical informationThe colour temperature of the current camera of reselection procedure environment of living in.
Alternatively, the weight of described historical statistics information is also relevant with described traveling time, and traveling time moreShort, the weight of historical statistics information is larger, and traveling time is longer, and the weight of historical statistics information is less.
Alternatively, described colour temperature acquisition module specifically for: adopt white world method and grey world fromIn photo, find white point as a reference point.
In addition, for achieving the above object, the present invention also proposes a kind of mobile terminal, comprises above-describedDevice.
A kind of auto white balance method and device that the present invention proposes, the method comprises: from photo, obtainReference point, judges that according to reference point the colour temperature of camera environment of living in, described colour temperature comprise historical colour temperature and work asFront colour temperature; Obtain the motion state information of camera; Judge current camera institute according to described motion state informationThe colour temperature of place's environment; Adopt the colour temperature comparison film of described current camera environment of living in to carry out white balance, pass throughThe motion state information of camera judges the colour temperature of camera environment of living in, makes the photograph of taking have more realColor, meets the sensation of human eye, has improved user's experience.
Brief description of the drawings
Fig. 1 is the hardware configuration schematic diagram of realizing an optional mobile terminal of each embodiment of the present invention;
Fig. 2 is the electrical structure block diagram of realizing the camera of each embodiment of 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 Fig. 4 position embodiment of the present invention one is obtained surface chart;
The motion state acquisition of information surface chart of Fig. 5 position embodiment of the present invention one;
Fig. 6 is the auto white balance method flow chart of the embodiment of the present invention two;
Fig. 7 is the demonstrative structure block diagram of the AWB device of embodiments of the invention three;
Fig. 8 is the demonstrative structure block diagram of the AWB device of embodiments of the invention four.
Realization, functional characteristics and the advantage of the object of the invention, in connection with embodiment, are done further with reference to accompanying drawingExplanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, and be not used in limitDetermine the present invention.
The mobile terminal of realizing each embodiment of the present invention is described referring now to accompanying drawing. In follow-up descriptionIn, use the suffix such as " module ", " parts " or " unit " that is used for representing element only in order to haveBe beneficial to explanation of the present invention, itself do not have specific meaning. Therefore, " module " can mix with " parts "Close and use.
Mobile terminal can be implemented with various forms. For example, the terminal of describing in the present invention can compriseSuch as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA, (individual digital helpsReason), PAD (panel computer), PMP (portable media player), guider etc. eventually mobileEnd and such as the fixed terminal of digital TV, desktop computer etc. Suppose that terminal is eventually mobile below,End. But, it will be appreciated by those skilled in the art that the element except being used in particular for mobile object,Structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration schematic diagram of realizing an optional mobile terminal of each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input block 120,User input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170,Controller 180 and power subsystem 190 etc. Fig. 1 shows the mobile terminal with various assemblies, but shouldUnderstand, and do not require all assemblies that illustrate of enforcement. Can alternatively implement more or less groupPart. Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 100 with wirelessRadio communication between communication system or network. For example, wireless communication unit can comprise mobile communicationAt least one in module 112, wireless Internet module 113, junction service module 114.
Mobile communication module 112 by radio signal send to base station (for example, access point, Node B etc.),At least one in exterior terminal and server and/or receive radio signals from it. Such radioSignal can comprise voice call signal, video calling signal or according to text and/or Multimedia MessageThe various types of data that send and/or receive.
Wireless Internet module 113 is supported the Wi-Fi (Wireless Internet Access) of mobile terminal. This module can be inner orExternally be couple to terminal. The related Wi-Fi (Wireless Internet Access) technology of this module can comprise WLAN (nothingLine LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (at a high speedDownlink packets access) etc.
Junction service module 114 is the modules for supporting junction service. Some examples of short-range communication technologyComprise bluetooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTM etc.
A/V input block 120 is for audio reception or vision signal. A/V input block 120 can comprise to be taken the photographPicture 121 and microphone 1220, camera 121 in Video Capture pattern or image capture mode by schemingThe static images obtaining as acquisition equipment or the view data of video are processed. Picture frame after treatment canTo be presented on display unit 151. Can be stored in memory through camera 121 picture frame after treatment
In 160 (or other storage mediums) or send via wireless communication unit 110, can be according to eventually mobileThe structure of end provides two or more cameras 1210. Microphone 122 can be at telephone relation pattern, recordIn pattern, speech recognition mode etc. operational mode, receive sound (voice data) via microphone, and energyEnough is voice data by such acoustic processing. Audio frequency after treatment (voice) data can be at telephone relation mouldIn the situation of formula, be converted to the formatted output that can send to via mobile communication module 112 mobile communication base station.Microphone 122 can be implemented various types of noises and eliminate (or inhibition) algorithm to eliminate (or inhibition) in receptionWith send the noise or the interference that in the process of audio signal, produce.
User input unit 130 can generate key input data to control movement according to the order of user's inputThe various operations of terminal. User input unit 130 allows user to input various types of information, and canComprise that keyboard, the young sheet of pot, touch pad (for example, detect owing to being touched the resistance, pressure, the electricity that causeThe touch-sensitive assembly of variation holding etc.), roller, rocking bar etc. Especially, when touch pad is with the form of layerWhile being superimposed upon on display unit 151, can form touch-screen.
Sensing cell 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 open orClosed condition), the position of mobile terminal 100, user be for the contact (, touching input) of mobile terminal 100Have or not, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc.,And generate order or the signal of the operation for controlling mobile terminal 100. For example,, when mobile terminal 100While being embodied as sliding-type mobile phone, sensing cell 140 can be opened or close by this sliding-type phone of sensingClose. In addition, sensing cell 140 can detect power subsystem 190 whether electric power or interface unit 170 are providedWhether couple with external device (ED).
Interface unit 170 is connected with mobile terminal 100 connecing of can passing through as at least one external device (ED)Mouthful. For example, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or batteryCharger) port, wired or wireless FPDP, memory card port, there is identification module for connectingPort, audio frequency I/O (I/O) port, video i/o port, ear port of device etc. Identification mouldPiece can be that storage is used the various information of mobile terminal 100 and can comprise user for authentication of usersIdentification module (UIM), client identification module (SIM), general client identification module (USIM) etc. In addition,The device (being called " recognition device " below) with identification module can be taked the form of smart card, therefore, knowsZhuan Zhi not be connected with mobile terminal 100 via port or other jockey. Interface unit 170 canFor example, for receiving input (, data message, electric power etc.) from external device (ED) and defeated by what receiveEnter to be transferred to one or more elements in mobile terminal 100 or can be in mobile terminal and outsideBetween device, transmit data.
In addition, in the time that mobile terminal 100 is connected with external base, interface unit 170 can be logical as allowingCrossing it is provided to electric power the path of mobile terminal 100 or can inputs from base as allowing from baseVarious command signals be transferred to the path of mobile terminal by it. From the various command signals of base inputOr whether electric power can be arranged on the signal on base exactly with acting on identification mobile terminal. Output is singleUnit 150 be constructed to vision, audio frequency and/or tactile manner provide output signal (for example, audio signal,Vision signal, alarm signal, vibration signal etc.). Output unit 150 can comprise display unit 151,Audio frequency output module 152 etc.
Display unit 151 may be displayed on the information of processing in mobile terminal 100. For example, work as mobile terminal100 in the time of telephone relation pattern, and display unit 151 can show and call or other (for example, literary composition of communicating by letterThis information receiving and transmitting, multimedia file are downloaded etc.) relevant user interface (UI) or graphic user interface(GUI). When mobile terminal 100 is during in video calling pattern or image capture mode, display unit 151Can the image of display capture and/or the image of reception, illustrate video or image and correlation function UI orGUI etc.
Meanwhile, in the time that display unit 151 and touch pad superpose to form touch-screen with the form of layer each other, aobviousShow that unit 151 can be used as input unit and output device. Display unit 151 can comprise liquid crystal display(LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible aobviousShow at least one in device, three-dimensional (3D) display etc. Some in these displays can be constructed toTransparence is to allow user to watch from outside, and this can be called transparent display, typical transparent displayIt can be for example TOLED (transparent organic light emitting diode) display etc. According to the specific enforcement of wantingMode, mobile terminal 100 can comprise two or more display units (or other display unit), for example,Mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown). Touch-screen canFor detection of touching input pressure and touch input position and touch input area.
Audio frequency output module 152 can be at mobile terminal in call signal receiving mode, call mode, noteThe isotype such as record pattern, speech recognition mode, broadcast reception pattern lower time, wireless communication unit 110 is connectReceive or in memory 160 storage voice data convert audio signals and be output as sound. AndAnd audio frequency output module 152 can provide the audio frequency that the specific function carried out to mobile terminal 100 is relevant defeatedGo out (for example, call signal receives sound, message sink sound etc.). Audio frequency output module 152 can wrapDraw together loudspeaker, buzzer etc.
Memory 160 can be stored processing and the software program of control operation etc. carried out by controller 180Deng, or can temporarily store the data that oneself maybe will export through output (for example, telephone directory, message,Still image, video etc.). And memory 160 can be stored about in the time that touch is applied to touch-screenThe vibration of variety of way and the data of audio signal of output.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprise flash memory,Hard disk, multimedia card, card type memory (for example, SD or DX memory etc.), random access storage device(RAM), static random-access memory (SRAM), read-only storage (ROM), electrically erasableRead-only storage (EEPROM), programmable read only memory (PROM), magnetic storage, disk, lightDish etc. And, mobile terminal 100 can with the memory function that is connected execute store 160 by networkNetwork storage device cooperation.
Controller 180 is controlled the overall operation of mobile terminal conventionally. For example, controller 180 is carried out and voiceThe control that call, data communication, video calling etc. are relevant and processing. In addition, controller 180 can wrapDraw together the multi-media module 1810 for reproducing (or playback) multi-medium data, multi-media module 1810 can be constructedIn controller 180, or can be configured to separate with controller 180. Controller 180 can execution patternIdentifying processing, with the handwriting input of carrying out on touch-screen or picture are drawn input be identified as character orImage.
Power subsystem 190 receives external power or internal power and behaviour is provided under the control of controller 180Make the required suitable electric power of each element and assembly.
Various embodiment described herein can be for example to use computer software, hardware or its any groupThe computer-readable medium closing is implemented. For hardware implementation, embodiment described herein can pass throughUse application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device(DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controlDevice, microcontroller, microprocessor, be designed to carry out in the electronic unit of function described herein extremelyFew one is implemented, and in some cases, such embodiment can be implemented in controller 180. RightIn implement software, can carry out at least one function or behaviour with permission such as the embodiment of process or functionThe independent software module of doing is implemented. Software code can be by writing with any suitable programming languageSoftware application (or program) is implemented, and software code can be stored in memory 160 and by controllingDevice 180 is carried out.
So far, oneself through according to its functional description mobile terminal. Below, for the sake of brevity, will describeSuch as various types of mobile terminals of folded form, board-type, oscillating-type, slide type mobile terminal etc.In slide type mobile terminal as example. Therefore, the present invention can be applied to the eventually mobile of any typeEnd, and be not limited to slide type mobile terminal.
Fig. 2 is the electrical structure block diagram of camera.
Phtographic lens 1211 is made up of the multiple optical lens that are used to form shot object image, is single-focus lensOr zoom lens. Phtographic lens 1211 can move under the control of lens driver 1221 on optical axis directionMoving, lens driver 1221, according to the control signal from lens driving control circuit 1222, is controlled photographyThe focal position of camera lens 1211, the in the situation that of zoom lens, also can control focal length. Lens drivingControl circuit 1222 carries out driving of lens driver 1221 according to the control command from microcomputer 1217Moving control.
Near the position of the shot object image forming on the optical axis of phtographic lens 1211, by phtographic lens 1211Dispose imaging apparatus 1212. Imaging apparatus 1212 is for making a video recording to shot object image and obtaining photographed images numberAccording to. Two dimension and be rectangular disposing and form the photodiode of each pixel on imaging apparatus 1212. RespectivelyPhotodiode produces the opto-electronic conversion electric current corresponding with light income, this opto-electronic conversion electric current by with each photoelectricityThe capacitor that diode connects carries out electric charge and accumulates. The front surface of each pixel disposes the RGB that Bayer is arrangedColour filter.
Imaging apparatus 1212 is connected with imaging circuit 1213, and this imaging circuit 1213 is in imaging apparatus 1212Carry out electric charge accumulate control and picture signal read control, to this picture signal of reading (analog picture signal)After reducing replacement noise, carry out waveform shaping, and then the raising that gain etc. is to become suitable signal level.Imaging circuit 1213 is connected with A/D converter 1214, and this A/D converter 1214 carries out analog picture signalAnalog-to-digital conversion, to bus 1227 output digital image signals (being referred to as below view data).
Bus 1227 is transfer paths of the various data reading or generate of the inside for being transmitted in camera.Connect above-mentioned A/D converter 1214 in bus 1227, connecting in addition image processor 1215, JPEGProcessor 1216, microcomputer 1217, SDRAM (SynchronousDynamicrandomaccessMemory, SDRAM) 1218, memory interface (is referred to as memory belowI/F) 1219, LCD (LiquidCrystalDisplay, liquid crystal display) driver 1220.
Image processor 1215 carries out OB to the view data of the output based on imaging apparatus 1212 and subtracts each other placeReason, blank level adjustment, color matrix computing, gamma conversion, colour difference signal processing, noise removal process,Change the various image processing such as processing, edge treated simultaneously. Jpeg processor 1216 is by Imagery Data RecordingIn the time of recording medium 1225, compress the view data of reading from SDRAM1218 according to JPEG compress mode.In addition, jpeg processor 1216 carries out the decompress(ion) of jpeg image data in order to carry out image reproducing demonstrationContracting. While decompression, read the file being recorded in recording medium 1225, at jpeg processor 1216In implemented after decompression, the view data of decompression is temporarily stored in SDRAM1218 andOn LCD1226, show. In addition, in the present embodiment, adopt as compression of images decompression modeBe JPEG mode, but compressed and decompressed mode is not limited to this, certainly can adopt MPEG, TIFF,H.264 wait other compressed and decompressed mode.
Microcomputer 1217 is brought into play the function as the control part of this camera entirety, unified control cameraVarious processing sequences. Microcomputer 1217 is connecting operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but not limited to physical button or virtual key, this entity or virtual keyCan for power knob, the key of taking pictures, edit key, dynamic image button, reproduce button, menu button,The operations such as various load buttons and various enter keies such as cross key, OK button, delete button, large buttonsControl, detects the mode of operation of these operational controls.
Testing result is exported to microcomputer 1217. In addition, the LCD1226's as displayFront surface is provided with touch panel, detects user's touch location, by this touch location to microcomputer 1217Output. Microcomputer 1217, according to the testing result of the operating position from operating unit 1223, is carried outThe various processing sequences corresponding with user's operation.
Flash memory 1224 storages are used for the program of the various processing sequences of carrying out microcomputer 1217. MicrocomputerCalculation machine 1217 carries out the control of camera entirety according to this program. In addition, flash memory 1224 is stored the various of cameraAdjusted value, microcomputer 1217 is read adjusted value, carries out the control of camera according to this adjusted value.
SDRAM1218 is for view data etc. being carried out to can electric volatibility of rewriting depositing of temporary transient storageReservoir. The view data that the temporary transient storage of this SDRAM1218 is exported from A/D converter 1214 and at imageIn reason device 1215, jpeg processor 1216 etc., carry out view data after treatment.
Memory interface 1219 is connected with recording medium 1225, carries out view data and is attached to picture numberAccording in the first-class data writing recording medium 1225 of file and the control of reading from recording medium 1225. NoteRecording medium 1225 be for example can be on camera main-body the recording medium such as memory cards of disassembled and assembled freely, butBeing not limited to this, can be to be also built in hard disk in camera main-body etc.
Lcd driver 1210 is connected with LCD1226, will be by image processor 1215 picture number after treatmentAccording to being stored in SDRAM1218, need to show time, read the view data of SDRAM1218 storage andThe upper demonstration of LCD1226, or the view data that jpeg processor 1216 compressed is stored inSDRAM1218, in the time that needs show, jpeg processor 1216 reads the compression of SDRAM1218View data, then decompress, the view data after decompressing is shown by LCD1226.
LCD1226 is configured in the back side of camera main-body and carries out image demonstration. This LCD1226LCD, butBe not limited to this, also can adopt the various display floaters (LCD1226) such as organic EL, but be not limited to this,Also can adopt the various display floaters such as organic EL.
Based on the electrical structure schematic diagram of above-mentioned mobile terminal hardware configuration and camera, the present invention is proposedEach embodiment.
Embodiment mono-
As shown in Figure 3, the present embodiment proposes a kind of auto white balance method, and described method comprises step:
S10, from photo, obtain reference point, judge the colour temperature of camera environment of living according to reference point, described inColour temperature comprises historical colour temperature and current colour temperature;
S20, obtain the motion state information of camera;
S30, judge the colour temperature of current camera environment of living according to described motion state information;
S40, adopt the colour temperature comparison film of described current camera environment of living in to carry out white balance.
In the present embodiment, described camera is all mobile terminals with camera function, as: only forThe mm professional camera special of taking pictures or have mobile phone of camera function etc., because white balance refers in image processingIn process, the image that is white object to script material carries out color rendition, removes external light source colour temperatureImpact, make its also display white on photo, so, as shown in Figure 4, first from photo, obtainThe region that may be white point is as a reference point, judges the colour temperature of camera environment of living according to the information of reference point,The judgement of colour temperature is the technology of comparative maturity, does not hereby repeat; Meanwhile, by gyroscope, accelerometer etc.Supplementary module determines that camera is slow movement, fast moving or has just opened camera, and the present invention is by gatheringThe motion state information of camera is distinguished this three kinds of situations.
First for the situation of firm unlatching camera, do not have historical statistics information to use for reference, directly adopt ashLook world method and white world method restrain white balance, and its reference point is corresponding current statistical information only, also onlyComprise current colour temperature, do not need follow-up deterministic process, not within the limit of consideration of the present embodiment.
As shown in Figure 5, in the present embodiment, described in obtain camera motion state information comprise: pass throughGyroscope and accelerometer obtain displacement and the traveling time of camera, during by displacement and movementBetween ratio can judge that camera is slow mobile or fast moving, and to displacement and traveling timeCollection more directly perceived, be also the data that can directly be obtained by gyroscope and accelerometer.
The displacement that the weight of historical statistics information in the present embodiment, is exported by gyroscope and accelerationThe traveling time of meter output decides, and displacement is less, and the weight of historical statistics information is larger, mobileDistance is larger, and the weight of historical statistics information is less; Traveling time is by Gaussian distribution, and traveling time is shorter,Also be the historical juncture from current time more close to, the weight of historical statistics information is larger, traveling time is longer,Also be the historical juncture from current time more away from, the weight of historical statistics information is less, in these two factors certainlyIn fixed weight, gyroscope role is larger; The weight of current statistical information and described displacement haveClose, displacement is less, and the weight of current statistical information is less, and displacement is larger, current statistics letterThe weight of breath is larger.
In the present embodiment, the weight of described historical statistics information and described displacement and traveling time itBetween relation meet Gaussian function or Wei Buer distribute (Weibulldistribution); Described current statistics letterRelation between weight and the described displacement of breath meets Gaussian function or Wei Buer distributes. Be to be understood that, the weight of described historical statistics information, the weight of described current statistical information and described displacementAnd relation between traveling time can be also other relations that meet inverse correlation feature, affiliated technical fieldTechnical staff realize identical performance or purposes, the above-mentioned reality providing obtaining by reasonable predictionAll equivalents and the obvious variant of executing mode all belong to protection scope of the present invention.
For example, camera slowly forwards D colour temperature to from A colour temperature, distance moving hour, and gyroscope calculates defeatedThe displacement going out is less, and according to above-mentioned weight judgement, last colour temperature judgement approaches A colour temperature; CameraWhile moving very large distance to D colour temperature from A colour temperature, the displacement of output that gyroscope calculates is larger, rootAccording to above-mentioned weight judgement, last colour temperature judgement approaches D colour temperature.
In the present embodiment, judge the colour temperature of camera environment of living in by the motion state information of camera, makeThe photograph of taking has more real color, meets the sensation of human eye, has improved user's experience.
For example, in a lot of families, be all wood furniture now, when we take pictures at home, if furniture accounts for phaseWhen machine imaging picture is larger, with general AWB algorithm, the wooden color of furniture will be partially white, someCamera even can be partially blue. The photo of taking feels different with human eye; If but use this realityExecute routine method and will take the photograph of true wooden color, meet the sensation of human eye.
For example, while clapping certificate photo with camera to people, background is pale blue painting cloth, while taking pictures with general camera,The cloth of pale blue can be used as white point do white, yellow, face is can be partially yellow, or partially red; If but usedThe method of the present embodiment will be taken true light blue background cloth and real people's colour of skin, meets the sense of human eyeFeel.
Embodiment bis-
As shown in Figure 6, in the present embodiment, described S30 comprises:
Weight, the weight of described historical statistics information and the described mobile distance of S31, calculating historical statistics informationFrom relevant, displacement is less, and the weight of historical statistics information is larger, and displacement is larger, historical systemThe weight of meter information is less;
S32, calculate weight, the weight of described current statistical information and the described mobile distance of current statistical informationFrom relevant, displacement is less, and the weight of current statistical information is less, and displacement is larger, current systemThe weight of meter information is larger;
S33, current according to the weight selection of the weight of described historical statistics information and described current statistical informationThe colour temperature of camera environment of living in.
In the present embodiment, the weight of described historical statistics information is also relevant with described traveling time, mobileTime is shorter, and the weight of historical statistics information is larger, and traveling time is longer, the weight of historical statistics informationLess.
In the present embodiment, the weight of described historical statistics information and described displacement and traveling time itBetween relation meet Gaussian function or Wei Buer distribute (Weibulldistribution); Described current statistics letterRelation between weight and the described displacement of breath meets Gaussian function or Wei Buer distributes. Be to be understood that, the weight of described historical statistics information, the weight of described current statistical information and described displacementAnd relation between traveling time can be also other relations that meet inverse correlation feature, affiliated technical fieldTechnical staff realize identical performance or purposes, the above-mentioned reality providing obtaining by reasonable predictionAll equivalents and the obvious variant of executing mode all belong to protection scope of the present invention.
Embodiment tri-
As shown in Figure 7, in the present embodiment, a kind of AWB device, comprising:
Colour temperature acquisition module 10, for obtaining reference point from photo, judges that according to reference point camera is of living inThe colour temperature of environment, described colour temperature comprises historical colour temperature and current colour temperature;
Motion state acquisition module 20, for obtaining the motion state information of camera;
Judge module 30, for judging the colour temperature of current camera environment of living according to described motion state information;
White balance module 40 is white flat for adopting the colour temperature comparison film of described current camera environment of living in to carry outWeighing apparatus.
In the present embodiment, judge the colour temperature of camera environment of living in by the motion state information of camera, makeThe photograph of taking has more real color, meets the sensation of human eye, has improved user's experience.
In the present embodiment, described motion state acquisition module specifically for:
Obtain displacement and the traveling time of camera by gyroscope and accelerometer.
In the present embodiment, described colour temperature acquisition module specifically for: adopt white world method and grey generationBoundary's method finds white point as a reference point from photo.
Embodiment tetra-
As shown in Figure 8, in the present embodiment, described judge module 30 comprises:
Historical weight calculation unit 31, for calculating the weight of historical statistics information, described historical statistics letterThe weight of breath is relevant with described displacement, and displacement is less, and the weight of historical statistics information is larger,Displacement is larger, and the weight of historical statistics information is less;
Current weight calculation unit 32, for calculating the weight of current statistical information, described current statistics letterThe weight of breath is relevant with described displacement, and displacement is less, and the weight of current statistical information is less,Displacement is larger, and the weight of current statistical information is larger;
Selected cell 33, for according to the weight of described historical statistics information and described current statistical informationWeight is selected the colour temperature of current camera environment of living in.
In the present embodiment, the weight of described historical statistics information is also relevant with described traveling time, mobileTime is shorter, and the weight of historical statistics information is larger, and traveling time is longer, the weight of historical statistics informationLess.
In the present embodiment, the weight of described historical statistics information and described displacement and traveling time itBetween relation meet Gaussian function or Wei Buer distribute (Weibulldistribution); Described current statistics letterRelation between weight and the described displacement of breath meets Gaussian function or Wei Buer distributes. Be to be understood that, the weight of described historical statistics information, the weight of described current statistical information and described displacementAnd relation between traveling time can be also other relations that meet inverse correlation feature, affiliated technical fieldTechnical staff realize identical performance or purposes, the above-mentioned reality providing obtaining by reasonable predictionAll equivalents and the obvious variant of executing mode all belong to protection scope of the present invention.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variantBe intended to contain comprising of nonexcludability, thus make to comprise a series of key elements process, method, article orPerson's device not only comprises those key elements, but also comprises other key elements of clearly not listing, or alsoBe included as the intrinsic key element of this process, method, article or device. There is no the feelings of more restrictionsUnder condition, by statement " comprising ... " limit key element, and be not precluded within comprise this key element process,In method, article or device, also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to above-mentionedThe mode that embodiment method can add essential general hardware platform by software realizes, and can certainly lead toCross hardware, but in a lot of situation, the former is better embodiment. Based on such understanding, of the present inventionThe part that technical scheme contributes to prior art in essence in other words can be with the form body of software productReveal to come, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, lightDish) in, (can be mobile phone, computer, serves in order to make a station terminal equipment to comprise some instructionsDevice, air-conditioner, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, everyUtilize equivalent structure or the conversion of equivalent flow process that description of the present invention and accompanying drawing content do, or directly orConnect and be used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. an auto white balance method, is characterized in that, described method comprises step:
From photo, obtain reference point, judge the colour temperature of camera environment of living according to reference point, described colour temperatureComprise historical colour temperature and current colour temperature;
Obtain the motion state information of camera;
Judge the colour temperature of current camera environment of living according to described motion state information;
Adopt the colour temperature comparison film of described current camera environment of living in to carry out white balance.
2. a kind of auto white balance method according to claim 1, is characterized in that, described in obtainThe motion state information of camera comprises:
Obtain displacement and the traveling time of camera by gyroscope and accelerometer.
3. a kind of auto white balance method according to claim 2, is characterized in that, described basisDescribed motion state information judges that the colour temperature of current camera environment of living in comprises:
The weight of calculating historical statistics information, the weight of described historical statistics information and described displacement haveClose, displacement is less, and the weight of historical statistics information is larger, and displacement is larger, historical statistics letterThe weight of breath is less;
Calculate the weight of current statistical information, the weight of described current statistical information and described displacement haveClose, displacement is less, and the weight of current statistical information is less, and displacement is larger, current statistics letterThe weight of breath is larger;
Select current camera according to the weight of the weight of described historical statistics information and described current statistical informationThe colour temperature of environment of living in.
4. a kind of auto white balance method according to claim 3, is characterized in that, described historyThe weight of statistical information is also relevant with described traveling time, and traveling time is shorter, the power of historical statistics informationHeavily larger, traveling time is longer, and the weight of historical statistics information is less.
5. a kind of auto white balance method according to claim 1, is characterized in that, described from shiningIn sheet, obtaining reference point is specially: adopt white world method and grey world from photo, to find white point to doFor reference point.
6. an AWB device, is characterized in that, comprising:
Colour temperature acquisition module, for obtaining reference point from photo, judges camera ring of living according to reference pointThe colour temperature in border, described colour temperature comprises historical colour temperature and current colour temperature;
Motion state acquisition module, for obtaining the motion state information of camera;
Judge module, for judging the colour temperature of current camera environment of living according to described motion state information;
White balance module, carries out white balance for the colour temperature comparison film that adopts described current camera environment of living in.
7. a kind of AWB device according to claim 6, is characterized in that described motionState acquisition module specifically for:
Obtain displacement and the traveling time of camera by gyroscope and accelerometer.
8. a kind of AWB device according to claim 7, is characterized in that described judgementModule comprises:
Historical weight calculation unit, for calculating the weight of historical statistics information, described historical statistics informationWeight relevant with described displacement, displacement is less, the weight of historical statistics information is larger, movesMoving distance is larger, and the weight of historical statistics information is less;
Current weight calculation unit, for calculating the weight of current statistical information, described current statistical informationWeight relevant with described displacement, displacement is less, the weight of current statistical information is less, movesMoving distance is larger, and the weight of current statistical information is larger;
Selected cell, for according to the power of the weight of described historical statistics information and described current statistical informationThe colour temperature of the current camera of reselection procedure environment of living in.
9. a kind of AWB device according to claim 8, is characterized in that described historyThe weight of statistical information is also relevant with described traveling time, and traveling time is shorter, the power of historical statistics informationHeavily larger, traveling time is longer, and the weight of historical statistics information is less.
10. a mobile terminal, is characterized in that, comprises the device described in claim 6-9 any one.
CN201511021869.5A 2015-12-30 2015-12-30 A kind of auto white balance method and device Active CN105611264B (en)

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 true CN105611264A (en) 2016-05-25
CN105611264B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017114088A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Automatic white balance method and device, terminal, and storage medium
CN108024055A (en) * 2017-11-03 2018-05-11 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the storage medium of white balance processing
CN108174173A (en) * 2017-12-25 2018-06-15 广东欧珀移动通信有限公司 Image pickup method and device, computer readable storage medium and computer equipment
WO2019105151A1 (en) * 2017-11-28 2019-06-06 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for image white balance, storage medium and electronic equipment
CN110611803A (en) * 2019-09-03 2019-12-24 珠海格力电器股份有限公司 Color temperature estimation method and device and computer readable medium
CN111182217A (en) * 2020-01-07 2020-05-19 徐梦影 Image white balance processing method and device

Citations (9)

* Cited by examiner, † Cited by third party
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
US20110007181A1 (en) * 2005-05-16 2011-01-13 Sony Corporation Image processing apparatus, method, program and image pickup apparatus
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
US20110007181A1 (en) * 2005-05-16 2011-01-13 Sony Corporation Image processing apparatus, method, program and image pickup apparatus
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017114088A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Automatic white balance method and device, terminal, and storage medium
CN108024055A (en) * 2017-11-03 2018-05-11 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the storage medium of white balance processing
CN108024055B (en) * 2017-11-03 2019-09-17 Oppo广东移动通信有限公司 Method, apparatus, mobile terminal and the storage medium of white balance processing
WO2019105151A1 (en) * 2017-11-28 2019-06-06 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for image white balance, storage medium and electronic equipment
CN108174173A (en) * 2017-12-25 2018-06-15 广东欧珀移动通信有限公司 Image pickup method and device, computer readable storage medium and computer equipment
CN110611803A (en) * 2019-09-03 2019-12-24 珠海格力电器股份有限公司 Color temperature estimation method and device and computer readable medium
CN111182217A (en) * 2020-01-07 2020-05-19 徐梦影 Image white balance processing method and device
CN111182217B (en) * 2020-01-07 2021-08-10 上海海鸥数码照相机有限公司 Image white balance processing method and device

Also Published As

Publication number Publication date
WO2017114088A1 (en) 2017-07-06
CN105611264B (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN105430295B (en) Image processing apparatus and method
CN105100609B (en) The adjusting method of mobile terminal and acquisition parameters
CN105611264A (en) Automatic white balance method and device
CN104660903B (en) Image pickup method and filming apparatus
CN105100481A (en) Shooting method and apparatus, and mobile terminal
US10516860B2 (en) Image processing method, storage medium, and terminal
CN105491358B (en) A kind of image processing method and device, terminal
CN105578056A (en) Photographing terminal and method
CN105357444B (en) focusing method and device
CN104767941A (en) Photography method and device
CN106134189B (en) Image processing apparatus, photographic device, image processing method and program
CN105872361A (en) Shooting guidance device, system and method
CN106303290B (en) A kind of terminal and the method for obtaining video
CN105513021B (en) Image denoising device and method
CN105187724B (en) A kind of mobile terminal and method handling image
CN105959543A (en) Shooting device and method of removing reflection
CN105245777A (en) Method and device for generating video image
CN105469357B (en) Image processing method, device and terminal
CN109788268A (en) Terminal and its white balance correction control method and computer readable storage medium
CN105959554A (en) Video shooting apparatus and method
CN105516606A (en) Shooting device and method
CN104796625A (en) Picture synthesizing method and device
CN104822099A (en) Video packaging method and mobile terminal
CN105407275B (en) Photo synthesizer and method
CN109842723A (en) Terminal and its screen brightness control method and computer readable storage medium

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