CN103491356A - Method for carrying out white balance correction through contact and mobile intelligent terminal - Google Patents

Method for carrying out white balance correction through contact and mobile intelligent terminal Download PDF

Info

Publication number
CN103491356A
CN103491356A CN201310438116.9A CN201310438116A CN103491356A CN 103491356 A CN103491356 A CN 103491356A CN 201310438116 A CN201310438116 A CN 201310438116A CN 103491356 A CN103491356 A CN 103491356A
Authority
CN
China
Prior art keywords
value
contact
coordinate
rgb
white balance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310438116.9A
Other languages
Chinese (zh)
Inventor
雷辉
孙剑波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd
Original Assignee
SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd filed Critical SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd
Priority to CN201310438116.9A priority Critical patent/CN103491356A/en
Publication of CN103491356A publication Critical patent/CN103491356A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Color Image Communication Systems (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention relates to the technical field of mobile communication, and provides a method for carrying out white balance correction through a contact and a mobile intelligent terminal. The method for carrying out white balance correction through the contact comprises the steps of (1) receiving a trigger motion, clicking a grey image in a picture, of a user, (2) obtaining a coordinate value of the contact of the trigger motion, (3) carrying out statistics on an R/G value and a B/G value within the range of the coordinate value, calculating gain of three channels of RGB, and (4) writing the gain of the three channels of the RGB in an image processor ISP, and carry out restoration on RGB values of a current light source. Due to the facts that the trigger motion is carried out on the grey image, the coordinate value of the trigger motion is obtained, and the gain of the three channels of the RGB are calculated according to the R/G value and the B/G value within the range of the coordinate value, the problem that in the prior art, the RGB values of the current light source cannot be accurately calculated in a scene of a mixed light source is solved.

Description

A kind of method and mobile intelligent terminal that carries out white balance correction by contact
Technical field
The invention belongs to the mobile communication technology field, relate in particular to a kind of method and mobile intelligent terminal that carries out white balance correction by contact.
Background technology
The paper of a white (R:G:B is 1:1:1) is under different light sources, human eye looks like white, but under the sensor devices of camera, a blank sheet of paper can present different color (R:G:B is not 1:1:1) under the light source of different-colour, image processor (English: Image Signal Processor, be called for short: this original image that ISP) sensor devices will be brought exactly is processed into white (R:G:B is 1:1:1), and this process just is white balance.
Under hybrid light source, the overwhelming majority manually camera all the situation that realizing auto kine bias function is inaccurate can occur, at this time manual white balance is also just for several specific light sources, can not play a part too large yet, reason is exactly under this hybrid light source scene, the Automatic white balance algorithm can not calculate the R/G of current light source, the value of B/G, thereby can't carry out accurately R, G, tri-channel gains of B being compensated.
Summary of the invention
The object of the present invention is to provide a kind of method and mobile intelligent terminal that carries out white balance correction by contact, contact coordinate by obtaining gray image also counts R/G in coordinate range and the value of B/G, the gain of tri-passages of RGB is write to the RGB that ISP restores current light source, there is the inaccurate problem of white balance correction under hybrid light source with the solution prior art.
The present invention is achieved in that a kind of method of carrying out white balance correction by contact, said method comprising the steps of:
Receive the trigger action that the user clicks the gray image in picture;
Obtain the coordinate figure of the contact of described trigger action;
Add up R/G value and B/G value in the coordinate figure scope, and calculate the gain of tri-passages of RGB;
The gain of tri-passages of described RGB is write to image processor ISP, restore the rgb value of current light source.
Another object of the present invention is to provide a kind of mobile intelligent terminal, described mobile intelligent terminal comprises:
Receiving element, click the trigger action of the gray image of picture for receiving the user;
Acquiring unit, for the coordinate figure of the contact that obtains described trigger action;
Statistic unit, for adding up R/G value and the B/G value in the coordinate figure scope;
Computing unit, for calculating the gain of tri-passages of RGB according to described R/G value and described B/G value;
Reduction unit, write image processor ISP for the gain by tri-passages of described RGB, restores the rgb value of current light source.
The gain of RGB tri-passages of the present invention by calculating the gray image in picture, restore the rgb value of current light source, solved that prior art exists, the inaccurate problem of white balance correction under hybrid light source.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 be the embodiment of the present invention provide carry out the realization flow figure of the method for white balance correction by contact;
Fig. 2 is the modular structure figure of the mobile intelligent terminal that provides of another embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention provides the method for carrying out white balance correction by contact, and as shown in Figure 1, concrete steps comprise described method:
In step S101, receive the instruction of closing the closed contact white balance, close the closed contact white balance according to described instruction.
It should be noted that, the contact white balance is the function that the camera of most of mobile terminal all has, and turning off the contact white balance function does not affect exposure and focusing.
In step S102, receive the trigger action that the user clicks the gray image in picture.
In step S103, obtain the coordinate figure of the contact of described trigger action.
In step S104, add up R/G value and B/G value in the coordinate figure scope, and calculate the gain of tri-passages of RGB.
It should be noted that, if know the value of R/G and B/G, the gain of tri-passages of that RGB be exactly (G/R, 1.0, G/B).
In step S105, the gain of tri-passages of described RGB is write to ISP, restore the rgb value of current light source.
Optionally, interior R/G value and the B/G value of described statistics coordinate figure scope is specially:
The coordinate figure of described contact is write to ISP, and described ISP adds up R/G value and the B/G value in the coordinate figure scope automatically.
Optionally, described reception user also comprises before clicking the trigger action of the gray image in picture:
The prompting user clicks the gray image in picture.
Another embodiment of the present invention provides mobile intelligent terminal, and described mobile intelligent terminal as shown in Figure 2, specifically comprises:
Receiving element 21, click the trigger action of the gray image of picture for receiving the user;
Acquiring unit 22, for the coordinate figure of the contact that obtains described trigger action;
Statistic unit 23, for adding up R/G value and the B/G value in the coordinate figure scope;
Computing unit 24, for calculating the gain of tri-passages of RGB according to described R/G value and described B/G value;
Reduction unit 25, write ISP for the gain by tri-passages of described RGB, restores the rgb value of current light source.
Optionally, described mobile intelligent terminal also comprises:
Closing unit, for receiving the instruction of closing the closed contact white balance, close the closed contact white balance according to described instruction.
Optionally, described statistic unit is used for:
The coordinate figure of described contact is write to ISP, and described ISP adds up R/G value and the B/G value in the coordinate figure scope automatically.
Optionally, described mobile intelligent terminal also comprises:
Tip element, click the gray image of picture for pointing out the user.
One of ordinary skill in the art will appreciate that and just divided according to function logic for above-described embodiment included modules, but be not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional module also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Those of ordinary skills it is also understood that, realize that all or part of step in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in the mobile intelligent terminal read/write memory medium, described storage medium, comprise ROM/RAM etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. a method of carrying out white balance correction by contact, is characterized in that, described method comprises:
Receive the trigger action that the user clicks the gray image in picture;
Obtain the coordinate figure of the contact of described trigger action;
Add up R/G value and B/G value in the coordinate figure scope, and calculate the gain of tri-passages of RGB;
The gain of tri-passages of described RGB is write to image processor ISP, restore the rgb value of current light source.
2. the method for claim 1, is characterized in that, the trigger action that described reception user clicks the gray image in picture also comprises before:
Receive the instruction of closing the closed contact white balance, according to described instruction, close the closed contact white balance.
3. the method for claim 1, is characterized in that, R/G value and B/G value in described statistics coordinate figure scope are specially:
The coordinate figure of described contact is write to ISP, and described ISP adds up R/G value and the B/G value in the coordinate figure scope automatically.
4. the method for claim 1, is characterized in that, the trigger action that described reception user clicks the gray image in picture comprises before:
The prompting user clicks the gray image in picture.
5. a mobile intelligent terminal that carries out white balance correction by contact, is characterized in that, described mobile intelligent terminal comprises:
Receiving element, click the trigger action of the gray image of picture for receiving the user;
Acquiring unit, for the coordinate figure of the contact that obtains described trigger action;
Statistic unit, for adding up R/G value and the B/G value in the coordinate figure scope;
Computing unit, for calculating the gain of tri-passages of RGB according to described R/G value and described B/G value;
Reduction unit, write image processor ISP for the gain by tri-passages of described RGB, restores the rgb value of current light source.
6. mobile intelligent terminal as claimed in claim 5, is characterized in that, described mobile intelligent terminal also comprises:
Closing unit, for receiving the instruction of closing the closed contact white balance, close the closed contact white balance according to described instruction.
7. mobile intelligent terminal as claimed in claim 5, is characterized in that, described statistic unit is used for:
The coordinate figure of described contact is write to ISP, and described ISP adds up R/G value and the B/G value in the coordinate figure scope automatically.
8. mobile intelligent terminal as claimed in claim 5, is characterized in that, described mobile intelligent terminal also comprises:
Tip element, click the gray image of picture for pointing out the user.
CN201310438116.9A 2013-09-24 2013-09-24 Method for carrying out white balance correction through contact and mobile intelligent terminal Pending CN103491356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310438116.9A CN103491356A (en) 2013-09-24 2013-09-24 Method for carrying out white balance correction through contact and mobile intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310438116.9A CN103491356A (en) 2013-09-24 2013-09-24 Method for carrying out white balance correction through contact and mobile intelligent terminal

Publications (1)

Publication Number Publication Date
CN103491356A true CN103491356A (en) 2014-01-01

Family

ID=49831280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310438116.9A Pending CN103491356A (en) 2013-09-24 2013-09-24 Method for carrying out white balance correction through contact and mobile intelligent terminal

Country Status (1)

Country Link
CN (1) CN103491356A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106370398A (en) * 2016-09-23 2017-02-01 北京小米移动软件有限公司 Flashlight check and acceptance method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1994000A (en) * 2004-06-25 2007-07-04 高通股份有限公司 Automatic white balance method and apparatus
CN101882034A (en) * 2010-07-23 2010-11-10 广东威创视讯科技股份有限公司 Device and method for discriminating color of touch pen of touch device
US20110285745A1 (en) * 2011-05-03 2011-11-24 Texas Instruments Incorporated Method and apparatus for touch screen assisted white balance

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1994000A (en) * 2004-06-25 2007-07-04 高通股份有限公司 Automatic white balance method and apparatus
CN101882034A (en) * 2010-07-23 2010-11-10 广东威创视讯科技股份有限公司 Device and method for discriminating color of touch pen of touch device
US20110285745A1 (en) * 2011-05-03 2011-11-24 Texas Instruments Incorporated Method and apparatus for touch screen assisted white balance

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106370398A (en) * 2016-09-23 2017-02-01 北京小米移动软件有限公司 Flashlight check and acceptance method and device
CN106370398B (en) * 2016-09-23 2019-02-22 北京小米移动软件有限公司 Flash lamp acceptance method and device

Similar Documents

Publication Publication Date Title
US11206352B2 (en) Shooting method, apparatus, and device
CN112840376B (en) Image processing method, device and equipment
CN102932582B (en) Method and device for realizing motion detection
CN106067953B (en) Method and apparatus for determining lens shading correction for multi-camera device with various fields of view
US9692960B2 (en) Method and system for enabling camera of mobile terminal to automatically adapt camera parameters according to scene motion
CN106165390A (en) Image processing apparatus, photographic attachment, image processing method and program
US9491352B2 (en) Imaging device, signal processing method, and signal processing program
CN109636858B (en) Lithium battery coating image acquisition calibration method, system, equipment and storage medium
US9799105B2 (en) Image processing device, imaging device, image processing method, and program for restoration processing based on a point spread function and a frame after a frame to be processed
CN110177269A (en) It is double to take the photograph mould group exposure sync bearing calibration and device
CN110930336A (en) Image processing method and device, electronic equipment and storage medium
CN105025283A (en) Novel color saturation adjusting method and system and mobile terminal
CN105611182A (en) Method and device for brightness compensation
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
EP3595276A1 (en) Photographing method and device based on two cameras
CN103491356A (en) Method for carrying out white balance correction through contact and mobile intelligent terminal
CN105389835A (en) Image processing method, device and terminal
CN103973962A (en) Image processing method and image acquisition device
CN105827890A (en) Method and apparatus for scanning 2D codes
CN109309784B (en) Mobile terminal
CN104123018A (en) Optical projection and screen image locating system and locating method thereof
CN103905707A (en) Method and device for controlling image pickup device
CN103220460B (en) Image treatment method and device thereof
CN108040202B (en) Camera and method and device for executing instructions thereof
US10248010B2 (en) Method for adjusting relative position between devices and adjustment apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140101