Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the present invention rather than all
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor
The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
Use the embodiment of the present invention, color of image can be adjusted for user and bring convenience, and improve adjustment image face
The degree of accuracy of color.
Refer to the schematic flow sheet that Fig. 1, Fig. 1 are the first adjustment color of image methods of the embodiment of the present invention.
The terminal unit that the energy touch screens such as the terminal that the present embodiments relate to can be touch-screen mobile phone, panel computer use,
The present embodiment then illustrates as a example by mobile phone.
The color block that color block is solid color involved by the embodiment of the present invention, color block is comprised
Color can be white, any one color such as Lycoperdon polymorphum Vitt, the present embodiment then illustrates with white.Additionally,
Described color block both can be a pixel, it is also possible to for the pixel region containing only a kind of color, its
The big I in region is determined by user, and the present embodiment is then illustrated with pixel region.
Additionally, the mode of choosing of the color block that the present embodiments relate to can be long by screen chosen position,
Double-clicking screen chosen position etc., the present embodiment is then illustrated by the mode of choosing of screen with long.
May comprise steps of as it is shown in figure 1, the first of the embodiment of the present invention adjusts color of image method.
Step 100, reads preview image.
In implementing, when user prepares to take pictures, opening software of taking pictures, then there is preview in mobile phone screen
Dynamic image.
Step 110, obtains the color mode rgb value with reference to color.
In implementing, if now user finds that the phenomenon of colour cast occurs in preview image, and wish to adjust image
Color, then choose with reference to color as adjusting reference, i.e. obtain the color mode rgb value with reference to color.
As a kind of enforceable mode, owing to white block can be the reddest, at blue light illumination under red light irradiation
Lower meeting is the most blue, it is easy to distinguish, and the color of image sensor reduction degree of accuracy of photographic head is higher, therefore uses
The optional white in family is as reference color, thus obtains the rgb value that white is corresponding, and performs step 120.
Step 120, chooses the color block in preview image, and obtains the rgb value that color block is current.
In step 110, if user finds that the phenomenon of colour cast occurs in preview image, and wish to adjust image face
Color, then select the color block being prone to adjust in preview image.
As a kind of enforceable mode, user may select the white block being prone to adjust.If in preview image
Large stretch of white portion occur, user then directly can press white block in screen by long in preview image
The mode of position choose this white block.
As a kind of enforceable mode, mobile phone camera can be placed the color of image sensings such as color sensor
Device, can calculate the rgb value of current white block according to the white block that user selects.
Step 130, calculates the difference of the rgb value current with color block of the rgb value with reference to color.
In implementing, count after obtaining the rgb value that the rgb value with reference to color is current with color block
Calculate the difference of the rgb value current with color block of the rgb value with reference to color.
Step 140, according to the difference calculated, adjusts present image.
In implementing, camera system according to current RGB difference, utilize color change the regulation of electrical circuit good red,
Green, the ratio of primary colors, adjusts respective rgb value by each color in image accordingly according to its difference.
As a kind of enforceable mode, when the color in preview image reverts to according to the difference calculated
During correct color, if user is satisfied with current setting by the preview image that browses after changing rgb value,
Then press shutter to take pictures.
Use the embodiment of the present invention, can be at the color block chosen in the preview image before taking pictures by adjusting
Take pictures after its rgb value, adjust color of image for user and bring convenience, and improve the essence adjusting color of image
Exactness.
Refer to the flow process signal that the second that Fig. 2, Fig. 2 are the embodiment of the present invention adjusts the method for color of image
Figure.The terminal that the energy touch screens such as the terminal that the present embodiments relate to can be touch-screen mobile phone, panel computer use
Equipment, the present embodiment then illustrates as a example by mobile phone.
The color block that color block is solid color involved by the embodiment of the present invention, color block is comprised
Color can be white, any one color such as Lycoperdon polymorphum Vitt, the present embodiment then illustrates with white.Additionally,
Color block both can be a pixel, it is also possible to for the pixel region containing only a kind of color, its region
Big I determined by user, the present embodiment is then illustrated with pixel region.
Additionally, the mode of choosing of the color block that the present embodiments relate to can be long by screen chosen position,
Double-clicking screen chosen position etc., the present embodiment is then illustrated by the mode of choosing of screen with long.
May comprise steps of as in figure 2 it is shown, the second of the embodiment of the present invention adjusts color of image method.
Step 200, reads preview image.
In implementing, when user prepares to take pictures, opening software of taking pictures, then there is preview in mobile phone screen
Dynamic image.
Step 201, obtains the color mode rgb value with reference to color.
If now user finds that the phenomenon of colour cast occurs in preview image, and wishes to adjust color of image, then choose
With reference to color as adjusting reference, i.e. obtain the color mode rgb value with reference to color.
As a kind of enforceable mode, owing to white block can be the reddest, at blue light illumination under red light irradiation
Lower meeting is the most blue, it is easy to distinguish, and the color of image sensor reduction degree of accuracy of photographic head is higher, therefore uses
The optional white in family is as reference color, thus obtains the rgb value that white is corresponding, and performs step 202.
Step 202, it may be judged whether adjust image.
In implementing, user can decide whether to adjust image according to self-demand, namely for current pre-
Whether be satisfied with, if dissatisfied needs adjusts color of image, perform step 203 if looking at presenting of image, if satisfied i.e.
Need not adjust color of image and then perform step 210, directly press shutter shooting.
Step 203, it may be judged whether preview image is switched to amplification mode.
When the judged result of step 202 is for being, user is optional switches to amplification mode by preview image,
But when the block chosen is sufficiently large, then need not switching, step 203 is then sentenced by the present embodiment as one
Break and be illustrated.
As a kind of enforceable mode, user needed to choose in preview image before adjusting color of image
Color block realizes adjusting color of image as reference block, when user selects white block as reference block
Time, if the area that white block accounts for whole preview image is the least, then need the region around the block of white area is entered
Row amplifies, in order to user selects, then perform step 204.
As a kind of enforceable mode, if the area that the area of white block accounts for whole preview image is relatively big,
User can directly tap white block, then perform step 206.
Step 204, chooses the region needing to amplify in preview image, chosen area enlargement ratio.
When the judged result of step 203 is for being, then choose in preview image the region needing to amplify.Specifically
In realization, user can be by long by needing the region amplified to be amplified in screen, it is simple to user chooses white
Block.
As a kind of enforceable mode, user can select enlargement ratio, if white block only one of which picture
Vegetarian refreshments, then user can select bigger enlargement ratio;If the area of white block is in the optional journey of user
In degree, then user can select less enlargement ratio.
Step 205, amplifies the region chosen, and selects face in the region chosen according to the enlargement ratio chosen
Zone block, obtains the rgb value that color block is current.
In implementing, user is after selecting enlargement ratio, and selected magnification region is according to enlargement ratio
Scaling up, user then can select color block in the region after this amplification.
As a kind of enforceable mode, mobile phone camera can be placed the color of image sensings such as color sensor
Device, can calculate the rgb value of current white block according to the white block that user selects.
Step 206, chooses the color block in preview image, and obtains the rgb value that color block is current.
In implementing, when the judged result of step 203 is no, then choose the chromatic zones in preview image
Block, and obtain the rgb value that color block is current.If the area that in preview image, white block accounts for reaches user
The degree that can directly choose, then need not amplify white block, directly choose white block.
As a kind of enforceable mode, mobile phone camera can be placed the color of image sensings such as color sensor
Device, can calculate the rgb value of current white block according to the white block that user selects.
Step 207, calculates the difference of the rgb value current with color block of the rgb value with reference to color.
In implementing, count after obtaining the rgb value that the rgb value with reference to color is current with color block
Calculate the difference of the rgb value current with color block of the rgb value with reference to color.
Step 208, according to the difference calculated, adjusts present image.
In implementing, camera system according to current RGB difference, utilize color change the regulation of electrical circuit good red,
Green, the ratio of primary colors, adjusts respective rgb value by each color in image accordingly according to its difference.
Step 209, determines the photographed scene of preview image according to default rgb value.
In implementing, when the color in preview image reverts to correct color according to the difference calculated
Time, if user is satisfied with current setting by the preview image after browsing change rgb value, then it is right to stop
Adjust the setting of color of image.
Step 210, shooting.
After user determines preview image, shutter can be pressed and take pictures.
Use the embodiment of the present invention, the degree of accuracy adjusting color of image can be improved, adjust color of image for user
Bring convenience, promote Consumer's Experience.
Refer to Fig. 3, Fig. 3 be the embodiment of the present invention the third adjust color of image method flow process signal
Figure.Fig. 3 is further to expand on the basis of Fig. 2.The terminal that the present embodiments relate to can
Think touch-screen mobile phone, panel computer etc. can the terminal unit that uses of touch screen, the present embodiment then enters as a example by mobile phone
Row explanation.
The color block that color block is solid color involved by the embodiment of the present invention, color block is comprised
Color can be white, any one color such as Lycoperdon polymorphum Vitt, the present embodiment then illustrates with white.Additionally,
Described color block both can be a pixel, it is also possible to for the pixel region containing only a kind of color, its
The big I in region is determined by user, and the present embodiment is then illustrated with pixel region.
Additionally, the mode of choosing of the color block that the present embodiments relate to can be long by screen chosen position,
Double-clicking screen chosen position etc., the present embodiment is then illustrated by the mode of choosing of screen with long.
May comprise steps of as it is shown on figure 3, the third of the embodiment of the present invention adjusts color of image method.
Step 300, reads preview image.
Step 301, obtains the color mode rgb value with reference to color.
Step 302, it may be judged whether adjust image.
Step 303, it may be judged whether preview image is switched to amplification mode.
Step 304, chooses the region needing to amplify in preview image, chosen area enlargement ratio.
Step 305, amplifies the region chosen, and selects face in the region chosen according to the enlargement ratio chosen
Zone block, obtains the rgb value that color block is current.
Step 306, chooses the color block in preview image, and obtains the rgb value that color block is current.
Step 307, calculates the difference of the rgb value current with color block of the rgb value with reference to color.
It should be noted that step 300 is to step 200 in the embodiment and embodiment Fig. 2 of step 307 to step
The embodiment of rapid 207 is identical, and therefore the present embodiment then repeats no more at this.The present embodiment Fig. 3 and embodiment
The difference of Fig. 2 refers to following steps.
Step 308, according to the difference calculated, adjusts present image.
In implementing, camera system according to current RGB difference, utilize color change the regulation of electrical circuit good red,
Green, the ratio of primary colors, adjusts respective rgb value by each color in image accordingly according to its difference.
Step 309, it may be judged whether need the image after adjusting is finely adjusted.
According to step 308 according to the difference calculated, after adjusting present image, user can be according to the happiness of self
Image after adjusting is finely adjusted by good deciding whether.
As a kind of enforceable mode, user generally requires in photographic process and overstates by adjusting rgb value
The effect that big picture embodies, now avoids the need for allowing photo exhibition reveal original color.If judging, needs are exchanged
Image after whole is finely tuned further, then perform step 310;If judging to need not finely tune, perform step
311。
Step 310, obtains with reference to the rgb value bar in the rgb value left and right preset range of color.
When the judged result of step 309 is for being, then user can be according to rgb value slider bar with reference to color
Slidably set rgb value in the preset range of rgb value left and right, slider bar can be set and more turn left representative picture exhibition
Existing color effects is the reddest, and the slider bar color effects that representative picture represents of more turning right is the most blue, compares step
Rapid 300 to step 308 serves the effect being finely adjusted rgb value.
Step 311, according to user operation, adjusts image further.
In implementing, when user uses the slip of rgb value slider bar to set rgb value to finely tune further,
If the preview image after changing is satisfied with, then can close rgb value slider bar, enter shooting state.
Step 312, shooting.
After user determines preview image, shutter can be pressed and take pictures.
As a kind of enforceable mode, when the judged result of step 302 be no i.e. user is at preview image time
Think that need not to adjust image then performs step 312 and i.e. press shutter and take pictures.
Use the embodiment of the present invention, before taking pictures, the rgb value of preview image can be carried out free setting, highlight
The creativeness of shooting picture, improves the degree of accuracy adjusting color of image, adjusts the color of image side of bringing for user
Just, Consumer's Experience is promoted.
Refer to the structural representation that Fig. 4, Fig. 4 are a kind of terminals of the embodiment of the present invention.As shown in Figure 4
Terminal includes: read module 400, acquisition module 410, chooses module 420, computing module 430, adjusts
Module 440 and judge module 450.
Read module 400, is used for reading preview image;
Acquisition module 410, for obtaining the color mode rgb value with reference to color;
Choosing module 420, for choosing the color block in preview image, and it is current to obtain color block
Rgb value;
Computing module 430, for calculating the face that the rgb value with reference to color is chosen on preview image with user
The difference of the current rgb value of zone block;
Adjusting module 440, for the difference calculated according to computing module 430, adjusts present image;
Judge module 450, is used for judging whether adjusting image, if being judged as YES, then selects by choosing module 420
Take the color block in preview image.
Use the embodiment of the present invention, the degree of accuracy adjusting color of image can be improved, adjust color of image for user
Bring convenience, promote Consumer's Experience.
Refer to the structural representation choosing module that Fig. 5, Fig. 5 are a kind of terminals of the embodiment of the present invention, as
Module 420 of choosing shown in Fig. 5 includes: switch unit 500, and first chooses unit 510, and second chooses list
Unit 520.
Switch unit 500, for switching to amplification mode by preview image;
First chooses unit 510, for choosing preview image after switch unit 500 switches to amplification mode
The middle region needing to amplify, the enlargement ratio of chosen area;
Second chooses unit 520, amplifies choose for choosing, according to first, enlargement ratio that unit 510 chooses
Region, and in the region chosen, select color block.
Use the embodiment of the present invention, the degree of accuracy adjusting color of image can be improved, for user setup color of image
Bring convenience, promote Consumer's Experience.
Refer to the structural representation of adjusting module that Fig. 6, Fig. 6 are a kind of terminals of the embodiment of the present invention.As
Adjusting module 440 shown in Fig. 6 includes: acquiring unit 600 and adjustment unit 610.
Acquiring unit 600, for obtaining with reference to the rgb value bar in the rgb value left and right preset range of color;
Adjustment unit 610, for according to user operation, adjusts image further.
Use the embodiment of the present invention, the degree of accuracy adjusting color of image can be improved, for user setup color of image
Bring convenience, promote Consumer's Experience.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, and the parts shown as unit can be or also
Can not be physical location, i.e. may be located at a place, or can also be distributed on multiple NE.
Some or all of module therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.Those of ordinary skill in the art, in the case of not paying performing creative labour, are i.e. appreciated that and implement.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Module or unit in embodiment of the present invention device can merge according to actual needs, divide and delete
Subtract.
The module of the embodiment of the present invention or module, can with universal integrated circuit (such as central processor CPU), or with
Special IC (ASIC) realizes.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each enforcement
Mode can add the mode of required general hardware platform by software and realize, naturally it is also possible to pass through hardware.
Based on such understanding, the part that prior art is contributed by technique scheme the most in other words is permissible
Embodying with the form of software product, this computer software product can be stored in computer-readable storage medium
In matter, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment
(can be personal computer, server, or the network equipment etc.) performs each embodiment or embodiment
The method described in some part.
Embodiments described above, is not intended that the restriction to this technical scheme protection domain.Any upper
Amendment, equivalent and the improvement etc. made within stating the spirit of embodiment and principle, should be included in this
Within the protection domain of technical scheme.