CN108200420A - Picture adjustment methods, device, readable storage medium storing program for executing and terminal - Google Patents
Picture adjustment methods, device, readable storage medium storing program for executing and terminal Download PDFInfo
- Publication number
- CN108200420A CN108200420A CN201810040637.1A CN201810040637A CN108200420A CN 108200420 A CN108200420 A CN 108200420A CN 201810040637 A CN201810040637 A CN 201810040637A CN 108200420 A CN108200420 A CN 108200420A
- Authority
- CN
- China
- Prior art keywords
- color
- regulated
- current
- value
- user
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/643—Hue control means, e.g. flesh tone control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Color Image Communication Systems (AREA)
Abstract
A kind of picture adjustment methods, device, readable storage medium storing program for executing and terminal, this method include:The present image of the yuv format of camera shooting is obtained in real time, and the color mode that acquisition user selects is as current color pattern, the color mode includes the correspondence of at least one color to be regulated and color of object, and the color to be regulated is identical with the value of the Y-component of the color of object;The current color to be regulated in the present image is determined according to the current color pattern, and by the current color adaptation to be regulated be the color of object in the current color pattern, so that the present image is adjusted to the image with the current color pattern match.The color in the image of camera shooting can be changed in the embodiment of the present invention, makes that the image after change is only change on color and brightness is constant, and the image imaging after adjustment is natural, true, meets the needs of users.
Description
Technical field
The present invention relates to electronic technology field, more particularly to picture adjustment methods, device, readable storage medium storing program for executing and end
End.
Background technology
With the continuous development of electronic technology, intelligent terminal, such as mobile phone, tablet computer etc. be increasingly becoming people with
The external world is linked up and the important tool of personal resource management, and many facilities are brought for people’s lives.
With the functional diversities of intelligent terminal, more and more application installations are applied in intelligent terminal.Wherein, it takes a picture
Machine is the important application on intelligent terminal, and most of intelligent terminals all have camera function, is brought greatly for people’s lives
Facility and enjoyment.
It is continuously increased to enhance the function of interesting camera of taking pictures, common function is such as U.S. face, filter.It is existing
When camera in technology carries out image transformation, be integrally adjusted for photograph, for example, the contrast of adjusting image, brightness,
Sharpen, sprout wings etc..When to color adaptation in image, the other parameters such as brightness also change accordingly, poor user experience.
Invention content
In view of above-mentioned condition, it is necessary to for image adjustment in the prior art be that the overall effect of image is adjusted
The problem of, a kind of picture adjustment methods, device, readable storage medium storing program for executing and terminal are provided.
A kind of picture adjustment methods, including:
Obtain the present image of the yuv format of camera shooting in real time and obtain the color mode that selects of user as
Current color pattern, the color mode includes the correspondence of at least one color to be regulated and color of object, described to be regulated
Color is identical with the value of the Y-component of the color of object;
The current color to be regulated in the present image is determined according to the current color pattern, and is currently treated described
Color adaptation is adjusted as the color of object in the current color pattern, so that the present image is adjusted to and the current face
The matched image of color pattern.
Further, above-mentioned picture adjustment methods, wherein, described the step of obtaining the current color pattern that user selects, wraps
It includes:
It obtains the rgb value at least one color to be regulated that user selects in the present image and obtains for the use
The RGB increments of the color to be regulated of family selection;
The rgb value and RGB increments are subjected to read group total, the rgb value of a new color is obtained, by the new color
Rgb value is converted to yuv format;
The currently value of the Y-component of color to be regulated and the U components of the new color and the value of V component are extracted, will be carried
Component value and the to be regulated face that with the user selects of the value of the Y-component, U components and V component taken as color of object
Color establishes correspondence, obtains current color pattern.
Further, above-mentioned picture adjustment methods, wherein, it is described that the current figure is determined according to the current color pattern
As in current color to be regulated the step of include:
Determine face identical with the YUV component values of color to be regulated in the current color pattern in the present image
Color obtains current color to be regulated.
Further, above-mentioned picture adjustment methods, wherein, described by the current color adaptation to be regulated is described current
The step of color of object in color mode, includes:
Change Y, U of the corresponding each pixel of the current color to be regulated, the value of V component, make its with it is described
The value of the YUV components of color of object in current color pattern is identical.
Further, above-mentioned picture adjustment methods, further include step:
It is obtained under the color Setting pattern of the camera described at least one color to be regulated and the acquisition of user's selection
The corresponding color of object of color to be regulated of user's selection;
The color to be regulated and corresponding color of object that the user is selected are stored as a color mode.
Further, above-mentioned picture adjustment methods, wherein, user's selection is obtained under the color Setting pattern of the camera
At least one color to be regulated and the step of obtaining the color to be regulated corresponding color of object of user selection include:
A colors list to be regulated is shown under the color Setting pattern of the camera, and obtains user described to be regulated
Current first color selected in colors list, the diagram for adjusting colors list and including at least one first color;
It shows a color of object list, and obtains current second face that user selects in the color of object list
Color, the color of object list include the diagram of at least one second color, by current first color and described current second
Color respectively as color to be regulated and color of object.
The embodiment of the present invention additionally provides a kind of image adjusting mechanism, including:
First acquisition module, for obtaining the present image of the yuv format of camera shooting in real time and obtaining user's selection
A color mode as current color pattern, it is corresponding with color of object that the color mode includes at least one color to be regulated
Relationship, the color to be regulated are identical with the value of the Y-component of the color of object;
Determining module, for determining the current color to be regulated in the present image according to the current color pattern,
Adjustment module, for being the color of object in the current color pattern by the current color adaptation to be regulated,
So that the present image is adjusted to the image with the current color pattern match.
Further, above-mentioned image adjusting mechanism, wherein, first acquisition module includes:
Acquisition submodule, for obtaining the rgb value of at least one color to be regulated that user selects in the present image, with
And obtain the RGB increments of the color to be regulated for user's selection;
Computing module for the rgb value and RGB increments to be carried out read group total, obtains the rgb value of a new color, will
The rgb value of the new color is converted to yuv format;
Module is established, extracts the current value of Y-component of color to be regulated and the U components and V component of the new color
Value, using the value of the Y-component of extraction, U components and V component as the component value of color of object and with the user selection
Color to be regulated establishes correspondence, obtains current color pattern.
Further, above-mentioned image adjusting mechanism, wherein, the determining module is specifically used for:
Determine face identical with the YUV component values of color to be regulated in the current color pattern in the present image
Color obtains current color to be regulated.
Further, above-mentioned image adjusting mechanism, wherein, the adjustment module is specifically used for:
Change Y, U of the corresponding each pixel of the current color to be regulated, the value of V component, make its with it is described
The value of the YUV components of color of object in current color pattern is identical.
Further, above-mentioned image adjusting mechanism, further includes:
Second acquisition module, it is to be regulated for obtaining at least the one of user's selection under the color Setting pattern of the camera
Color and the corresponding color of object of color to be regulated for obtaining user's selection;
Memory module, for the color to be regulated and corresponding color of object that select the user as a color mode
It is stored.
Further, above-mentioned image adjusting mechanism, wherein, second acquisition module includes:
First color acquisition module, for showing a colors list to be regulated under the color Setting pattern of the camera,
And current first color that user selects in the colors list to be regulated is obtained, the adjusting colors list includes at least one
The diagram of first color;
Second color acquisition module for showing a color of object list, and obtains user in the color of object list
One current second color of middle selection, the color of object list include the diagram of at least one second color, by described current
One color and current second color respectively as color to be regulated and color of object.
The embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, is stored thereon with program, described program is by processor
The step of above-mentioned any one method is realized during execution.
The embodiment of the present invention additionally provides a kind of terminal, including memory, processor and storage on a memory and can
The step of program run on a processor, the processor realizes above-mentioned any one method when performing described program.
In the embodiment of the present invention, can the color in the image of camera shooting be changed according to the color mode that user selects,
Make that the image after change is only change on color and brightness is constant, the image imaging after adjustment is natural, true, meets and uses
The demand at family.
Description of the drawings
Fig. 1 is the flow chart of the picture adjustment methods in first embodiment of the invention;
Fig. 2 is the flow chart of the picture adjustment methods in second embodiment of the invention;
Fig. 3 is the flow chart of the picture adjustment methods in third embodiment of the invention;
Fig. 4 is the structure diagram of the image adjusting mechanism in fourth embodiment of the invention;
Fig. 5 is the structure diagram of the first acquisition module in fourth embodiment of the invention;
Fig. 6 is the structure diagram of the second acquisition module in fourth embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.
With reference to following description and attached drawing, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions
In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to represent to implement the implementation of the present invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present invention
Embodiment includes falling into all changes, modification and the equivalent in the range of the spirit and intension of attached claims.
Referring to Fig. 1, for the picture adjustment methods in first embodiment of the invention, including step S11~S12.
Step S11 obtains the present image of the yuv format of camera shooting and obtains a color of user's selection in real time
Pattern includes the correspondence of at least one color to be regulated and color of object, institute as current color pattern, the color mode
It is identical with the value of the Y-component of the color of object to state color to be regulated.
Picture adjustment methods in the present embodiment are applied in terminal, which has camera function, is equipped with camera.It should
Terminal is, for example, mobile phone, tablet computer, wearable device etc., and the image for being shot to camera carries out real-time image procossing.
Color of the prior art is indicated there are many pattern such as RGB patterns, HSV patterns, YUV patterns, camera
The color of image pattern of shooting is determined by the color coding mode of camera.Different color modes corresponds to different color components,
Such as RGB component or YUV components.In the present embodiment, the picture format of camera shooting is yuv format, and YUV patterns are divided into three points
Amount, " Y " represent brightness (Luminance or Luma), that is, gray value;And what " U " and " V " was represented is then coloration
(Chrominance or Chroma), effect is description image color and saturation degree, for the color of specified pixel.
When user is taken pictures, the color that take pictures in image can be changed according to the hobby of oneself, such as can will be in image
Red be revised as pink, green is revised as yellow, blue is revised as cyan etc..When it is implemented, it is more to prestore in the terminal
Kind color mode, each color pattern include the correspondence of at least one color to be regulated and color of object.It is wherein to be regulated
Color is only that UV components are different from color of object, and Y-component is identical, and when will carry out color modification, brightness value is constant, finally
The image effect of presentation and the change of the color of original image only, image adjustment effect are natural, true.Each color mode
In, each color to be regulated can correspond to different color of objects or multiple colors to be regulated correspond to same target face
Color is configured according to actual conditions.
Different effects, such as autumn pattern, summer pattern, colored mould can be presented in the multiple color pattern to prestore in terminal
Formula etc..Wherein, the green in image is e.g. adjusted to yellow by autumn style, blue is adjusted to grey etc.;Summer pattern is
Yellow adjustment is adjusted to blue etc. for green, grey, the effect of anti-season can be presented.Color mode, e.g. by grey, black
Correspondence is adjusted to beautiful color respectively for color, white, such as respectively red, blue, green, can form a kind of multicoloured effect.Respectively
The image that kind color mode is presented can carry out preview on the display interface of camera, and user can like according to the effect selection of preview
Joyous color mode.
It should be understood that the color mode in terminal can be that camera system is preset, it can also be according to user preferences certainly
Row setting and addition, as customized color mode.
It is appreciated that obtain user selection current color pattern the step of before can also include the following steps:
The color mode of frequency of use maximum is obtained, and sends out a prompting message, to prompt the user whether frequency of use
Maximum color mode is as current color pattern.
In terminal, the frequency of use of each color mode is recorded and stored in real time, and determine the color of frequency of use maximum
Pattern.When receiving the confirmation message based on prompt message, then the color mode of frequency of use maximum is obtained as current face
Color pattern.Then prompting can be sent out according to the use habit of user come the suitable color mode of suggestion, enhancing user experience.
Step S12, determines the current color to be regulated in the present image according to the current color pattern, and by institute
Current color adaptation to be regulated is stated as the color of object in the current color pattern, so that the present image is adjusted to and institute
State the image of current color pattern match.
When the color mode for getting user's selection, using the color mode as current color pattern, to currently scheming
As being adjusted.In above-mentioned steps, the color to be regulated in current color pattern is inquired same in present image
Color as current color to be regulated.And current color to be regulated is replaced with to the color of object in current color pattern.
When it is implemented, the color of each pixel in present image is obtained, it will be with color to be regulated in present mode
The color component of identical pixel carries out corresponding change, you can the change to color of image is realized, to obtain and current color
The image of pattern match.
In the present embodiment, can the color in the image of camera shooting be changed according to the color mode that user selects, make to change
Image after change is only the change on color and brightness is constant, and the image imaging after adjustment is natural, true, meets user's
Demand.
Fig. 2 is the picture adjustment methods of second embodiment of the invention, including step S21~S26.
Step S21 obtains the present image of camera shooting in real time.
Step S22 obtains the rgb value at least one color to be regulated that user selects in the present image and obtains needle
To the RGB increments of the color to be regulated of user's selection.
In practical applications, the color mode that terminal prestores, the photograph or user that may be not appropriate for current shooting are thought
Color is changed according to the hobby of oneself to the photograph taken pictures.In consideration of it, in the present embodiment, user can select in present image
One or more colors are selected to modify.
Since the form of present image is yuv format, the adjusting of color is by adjusting the U components and V component of each pixel
It carries out.For a user, the adjusting for adjusting U components and V component progress color is not intuitive, therefore, in the present embodiment, by user
The yuv format of the color to be regulated of selection is converted into rgb format.
The image of yuv format is converted to the image of RBG forms, it can be according to the conversion public affairs of YUV of the prior art and RGB
Formula carries out.For example, it is carried out by following conversion formulas:
Y=0.257R+0.504G+0.098B+16;
V=0.439R-0.368G-0.071B+128;
U=-0.148R-0.291G+0.439B+128;
Wherein, the range of RGB is [0,255], and the range of Y is [16,235], and the range of UV is [16,239].
When it is implemented, user opens present image on the display interface of camera applications, a position is selected on the image
Color, terminal obtains the rgb value of the color of the position by color extraction tool, and is shown, at the same display color increase
It is worth setting options.Color increment setting options, modify to the rgb value of the color of selection for user, user can adjust
The value of each color component under big or tune, i.e. color increment can be positive value or negative value.There are many color extractions in the prior art
Or the tool of color crawl, in the present embodiment, color can be extracted from present image by way of any one color extraction.
The rgb value and RGB increments are carried out read group total, obtain the rgb value of a new color by step S23, will be described new
The rgb value of color is converted to yuv format.
The RGB increments of a kind of rgb value of color to be regulated of user's selection and the color to be regulated are subjected to summation meter
Calculate the rgb value of an i.e. available new color.For example, the when red R GB values that user selects in present image are (255,0,0),
User setting color increment be R and G increment be 0, B rise in value be 255.The rgb value of new color obtained after read group total is
(255,0,255) i.e. purple.
Above by rgb value, the adjusting of color more refines and adjustable range is wider carrying out, and currently will can wait to adjust
Section color adaptation is arbitrary color.
It should be understood that as an example, in the specific implementation, the color to be regulated that user selects can also be passed through
It is shown on display interface in one color block, and a color of object list is shown on display interface, which includes
Multiple preset color of objects, user more intuitively see that user selects the presentation effect of the color after color to be regulated and adjusting
Fruit.For example, the color to be regulated that user selects is red, a color of object is selected in preset color of object list, such as
Purple.Terminal obtains the rgb value (255,0,255) of the color of object of user's selection.
The change that color is carried out under RGB patterns is very convenient, but to ensure that the brightness of the image after adjustment is constant, it is also necessary to
It is carried out under YUV patterns.The color of rgb format is converted to yuv format, and the conversion that RGB and YUV of the prior art can be used is public
Formula carries out.For example, it is carried out by following conversion formulas:
B=1.164 (Y-16)+2.018 (U-128);
G=1.164 (Y-16) -0.813 (V-128) -0.391 (U-128);
R=1.164 (Y-16)+1.596 (V-128);
Wherein, the range of RGB is [0,255], and the range of Y is [16,235], and the range of UV is [16,239].
It should be understood that the conversion formula between RGB and YUV mentioned above is only wherein in a kind of domain and value
The formula used in threshold can be used any one conversion formula of the prior art and carries out in practical applications, herein without
It limits.
Step S24 extracts the value of Y-component and the U components and V component of the new color in the current color to be regulated
Value, using the value of the Y-component of extraction, U components and V component as the component value of color of object and with the user selection
Color to be regulated establishes correspondence, obtains current color pattern.
The value of the YUV components for the color to be regulated that user selects is (y1, u1, v1), and the value of the YUV components of new color is
(y2, u2, v2).For wherein UV components for distinguishing color, Y represents brightness, to be maintained after color to be regulated is carried out color adaptation
Brightness is constant, then needs the Y-component of color to be regulated that the Y-component of new color should be selected with user being consistent.Therefore, will
(y1, u2, v2) value establishes correspondence as the component value and the color to be regulated of user's selection of color of object, you can is worked as
Preceding color mode.
Further, the current color pattern obtained can store in the terminal, directly be transferred when being used in order to next time.
Step S25 determines the YUV component value phases with color to be regulated in the current color pattern in the present image
Same color obtains current color to be regulated.
Step S26 changes Y, U of the corresponding each pixel of the current color to be regulated, the value of V component, make its with
The value of the YUV components of color of object in the current color pattern is identical.
In above-mentioned steps S21, user selects to need in present image the color that is adjusted, and according to step S22~
S24 determines corresponding color of object, the color to be regulated of user's selection and determining color of object is established correspondence, to make
For current color pattern.During specific progress image adjustment, each pixel in present image is traversed, determines and user selects
Color to be regulated the identical color of YUV component values (y1, u1, v1), as current color to be regulated.And will currently it scheme
Currently the corresponding pixel of color to be regulated is restained as in, makes itself and the color of object in current color pattern
YUV component values (y1, u2, v2) are identical, you can realize the adjusting to present image.
Compared with first embodiment, in the present embodiment, user can obtain current color pattern based on the present image of shooting,
Targetedly it is adjusted to one in the image of shooting or to a color.
Further, user can also add color mode in the terminal, referring to Fig. 3, for third embodiment of the invention
In picture adjustment methods, on the basis of the first embodiment or the second embodiment, further include step S31~S32:
Step S31, under the color Setting pattern of the camera obtain user selection at least one color to be regulated and
Obtain the corresponding color of object of color to be regulated of user's selection;
Step S32, the color to be regulated that the user is selected and corresponding color of object are carried out as a color mode
Storage.
When it is implemented, a colors list to be debugged is presented under the color Setting pattern of camera, the color row to be debugged
The diagram of a variety of first colors is displayed in table, user can select at least one first color as to be regulated in the colors list
Color, and the color for the selection adds corresponding color of object.
When it is implemented, after the first color diagram that user can choose in colors list, a color of object list is popped up,
The color of object list is in have arranged the diagram of multiple second colors.Colors list to be debugged can be hidden state at this time, also may be used
Be on display interface reduce display.User carries out the selection of the second color in color of object list.By working as user's selection
Preceding first color and current second color of user's selection establish corresponding pass respectively as color to be regulated and color of object
System.After a correspondence is established, display interface hides color of object list, and user can continue in colors list to be regulated
Selecting one first color, in being elected to after first color, color of object list is shown again, Yong Huke as color to be regulated
To continue to select second color as color of object.And so on, user is owned what colors list to be debugged selected
After the second color of first color respectively with being selected in color of object list establishes correspondence, carried out as a color mode
Storage.Customized color mode can be used when taking pictures in user.
In the present embodiment, color and target to be debugged can be selected respectively in colors list to be debugged and color of object list
Color can set multiple colors to be regulated respectively corresponding color of object, and be stored as a color mode, very directly
It sees, is convenient.User can set color mode according to the hobby of oneself, convenient and practical.
Referring to Fig. 4, for the kind image adjusting mechanism in fourth embodiment of the invention, including:
First acquisition module 10, for obtaining the present image of the yuv format of camera shooting in real time and obtaining user's choosing
The color mode selected includes pair of at least one color to be regulated and color of object as current color pattern, the color mode
It should be related to, the color to be regulated is identical with the value of the Y-component of the color of object;
Determining module 200, for determining the current face to be regulated in the present image according to the current color pattern
Color,
Adjustment module 300, for being the target face in the current color pattern by the current color adaptation to be regulated
Color, so that the present image is adjusted to the image with the current color pattern match.
As shown in figure 5, first acquisition module 100 includes:
Acquisition submodule 110, for obtaining the RGB of at least one color to be regulated that user selects in the present image
Value and the RGB increments for obtaining the color to be regulated for user's selection;
Computing module 120 for the rgb value and RGB increments to be carried out read group total, obtains the rgb value of a new color,
The rgb value of the new color is converted into yuv format;
Module 130 is established, extracts the value of Y-component of the current color to be regulated and the U components and V point of the new color
The value of amount is selected using the value of the Y-component of extraction, U components and V component as the component value of color of object and with the user
Color to be regulated establish correspondence, obtain current color pattern.
Above-mentioned image adjusting mechanism, wherein, the determining module 200 is specifically used for:
Determine face identical with the YUV component values of color to be regulated in the current color pattern in the present image
Color obtains current color to be regulated.
Above-mentioned image adjusting mechanism, wherein, the adjustment module 300 is specifically used for:
Change Y, U of the corresponding each pixel of the current color to be regulated, the value of V component, make its with it is described
The value of the YUV components of color of object in current color pattern is identical.
Above-mentioned image adjusting mechanism, further includes:
Second acquisition module 400, at least one for obtaining user's selection under the color Setting pattern of the camera treats
It adjusts color and obtains the corresponding color of object of color to be regulated of user's selection;
Memory module 500, for the color to be regulated and corresponding color of object that select the user as a color
Pattern is stored.
As shown in fig. 6, second acquisition module 400 includes:
First color acquisition module 410, for the one color row to be regulated of display under the color Setting pattern of the camera
Table, and obtain current first color that user selects in the colors list to be regulated, the adjusting colors list include to
The diagram of few one first color;
Second color acquisition module 420 for showing a color of object list, and obtains user and is arranged in the color of object
Current second color selected in table, the color of object list include the diagram of at least one second color, will be described current
First color and current second color respectively as color to be regulated and color of object.
The technique effect and preceding method of the image adjusting mechanism that the embodiment of the present invention is provided, realization principle and generation
Embodiment is identical, and to briefly describe, device embodiment part does not refer to part, can refer in corresponding in preceding method embodiment
Hold.
The present invention also proposes a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is executed by processor
Image method above-mentioned Shi Shixian.
This embodiment of the present invention additionally provides a kind of terminal, including memory, processor and stores on a memory simultaneously
The step of computer program that can be run on a processor, the processor realizes the above method when performing described program.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
It puts.
The more specific example (non-exhaustive list) of computer-readable medium is including following:It is connected up with one or more
Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art
Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function
Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments "
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiments or example in combine in an appropriate manner.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of picture adjustment methods, which is characterized in that including:
The color mode that the present image of the yuv format of acquisition camera shooting and acquisition user select in real time is as current
Color mode, the color mode include the correspondence of at least one color to be regulated and color of object, the color to be regulated
It is identical with the value of the Y-component of the color of object;
The current color to be regulated in the present image is determined according to the current color pattern, and will be described current to be regulated
Color adaptation is the color of object in the current color pattern, so that the present image is adjusted to and the current color mould
The matched image of formula.
2. picture adjustment methods as described in claim 1, which is characterized in that the current color pattern for obtaining user's selection
The step of include:
It obtains the rgb value at least one color to be regulated that user selects in the present image and obtains for user choosing
The RGB increments of the color to be regulated of selection;
The rgb value and RGB increments are subjected to read group total, the rgb value of a new color is obtained, by the rgb value of the new color
Be converted to yuv format;
The currently value of the Y-component of color to be regulated and the U components of the new color and the value of V component are extracted, by extraction
The value of the Y-component, U components and V component as color of object component value and with the user selection color to be regulated build
Vertical correspondence, obtains current color pattern.
3. picture adjustment methods as described in claim 1, which is characterized in that described that institute is determined according to the current color pattern
The step of stating the current color to be regulated in present image includes:
It determines color identical with the YUV component values of color to be regulated in the current color pattern in the present image, obtains
To current color to be regulated.
4. picture adjustment methods as described in claim 1, which is characterized in that described to be by the current color adaptation to be regulated
The step of color of object in the current color pattern, includes:
Change Y, U of the corresponding each pixel of the current color to be regulated, the value of V component, make its with it is described current
The value of the YUV components of color of object in color mode is identical.
5. picture adjustment methods as described in claim 1, which is characterized in that further include step:
At least one color to be regulated of user's selection is obtained under the color Setting pattern of the camera and obtains the user
The corresponding color of object of color to be regulated of selection;
The color to be regulated and corresponding color of object that the user is selected are stored as a color mode.
6. picture adjustment methods as claimed in claim 5, which is characterized in that obtained under the color Setting pattern of the camera
At least one color to be regulated of user's selection and the step for obtaining the corresponding color of object of color to be regulated that the user selects
Suddenly include:
A colors list to be regulated is shown under the color Setting pattern of the camera, and obtains user in the color to be regulated
Current first color selected in list, the diagram for adjusting colors list and including at least one first color;
It shows a color of object list, and obtains current second color that user selects in the color of object list, institute
The diagram that color of object list includes at least one second color is stated, by current first color and current second color
Respectively as color to be regulated and color of object.
7. a kind of image adjusting mechanism, which is characterized in that including:
First acquisition module, for obtaining the one of the present image of the yuv format of camera shooting and acquisition user's selection in real time
For color mode as current color pattern, the color mode includes at least one color to be regulated pass corresponding with color of object
System, the color to be regulated are identical with the value of the Y-component of the color of object;
Determining module, for determining the current color to be regulated in the present image according to the current color pattern,
Adjustment module, for being the color of object in the current color pattern by the current color adaptation to be regulated, so that
The present image is adjusted to the image with the current color pattern match.
8. image adjusting mechanism as claimed in claim 7, which is characterized in that first acquisition module includes:
Acquisition submodule, for obtaining the rgb value at least one color to be regulated that user selects in the present image and obtaining
For the RGB increments of the color to be regulated of user's selection;
Computing module for the rgb value and RGB increments to be carried out read group total, obtains the rgb value of a new color, by described in
The rgb value of new color is converted to yuv format;
Module is established, extracts the currently value of the Y-component of color to be regulated and the U components of the new color and the value of V component,
It waits to adjust using the value of the Y-component of extraction, U components and V component as the component value of color of object and with what the user selected
Section color establishes correspondence, obtains current color pattern.
9. a kind of readable storage medium storing program for executing, is stored thereon with program, which is characterized in that is realized such as when described program is executed by processor
Any methods of claim 1-6.
10. a kind of terminal including memory, processor and stores the program that can be run on a memory and on a processor,
It is characterized in that, the processor realizes method as claimed in any one of claims 1 to 6 when performing described program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040637.1A CN108200420B (en) | 2018-01-16 | 2018-01-16 | Image adjusting method and device, readable storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040637.1A CN108200420B (en) | 2018-01-16 | 2018-01-16 | Image adjusting method and device, readable storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108200420A true CN108200420A (en) | 2018-06-22 |
CN108200420B CN108200420B (en) | 2020-05-19 |
Family
ID=62589352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810040637.1A Active CN108200420B (en) | 2018-01-16 | 2018-01-16 | Image adjusting method and device, readable storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108200420B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660725A (en) * | 2018-12-24 | 2019-04-19 | 惠州Tcl移动通信有限公司 | Image capturing method, computer storage medium and mobile terminal |
CN109949377A (en) * | 2019-03-08 | 2019-06-28 | 北京旷视科技有限公司 | Image processing method, device and electronic equipment |
CN111107336A (en) * | 2019-12-06 | 2020-05-05 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
CN112133260A (en) * | 2019-06-24 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Image adjusting method and device |
CN112750171A (en) * | 2021-04-02 | 2021-05-04 | 深圳市火乐科技发展有限公司 | Color adjustment method, device, medium and electronic equipment |
CN113286136A (en) * | 2021-07-23 | 2021-08-20 | 卡莱特云科技股份有限公司 | Picture color adjusting method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873503A (en) * | 2009-12-09 | 2010-10-27 | 杭州海康威视软件有限公司 | Method and device for adjusting image property |
CN107068042A (en) * | 2017-01-18 | 2017-08-18 | 西安诺瓦电子科技有限公司 | Image processing method |
US20170323617A1 (en) * | 2016-05-09 | 2017-11-09 | National Cheng Kung University | Rgb to yuv format conversion and inverse conversion method and circuit for depth packing and depacking |
CN107438178A (en) * | 2016-05-25 | 2017-12-05 | 掌赢信息科技(上海)有限公司 | A kind of image color antidote and electronic equipment |
-
2018
- 2018-01-16 CN CN201810040637.1A patent/CN108200420B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873503A (en) * | 2009-12-09 | 2010-10-27 | 杭州海康威视软件有限公司 | Method and device for adjusting image property |
US20170323617A1 (en) * | 2016-05-09 | 2017-11-09 | National Cheng Kung University | Rgb to yuv format conversion and inverse conversion method and circuit for depth packing and depacking |
CN107438178A (en) * | 2016-05-25 | 2017-12-05 | 掌赢信息科技(上海)有限公司 | A kind of image color antidote and electronic equipment |
CN107068042A (en) * | 2017-01-18 | 2017-08-18 | 西安诺瓦电子科技有限公司 | Image processing method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660725A (en) * | 2018-12-24 | 2019-04-19 | 惠州Tcl移动通信有限公司 | Image capturing method, computer storage medium and mobile terminal |
CN109949377A (en) * | 2019-03-08 | 2019-06-28 | 北京旷视科技有限公司 | Image processing method, device and electronic equipment |
CN109949377B (en) * | 2019-03-08 | 2021-10-01 | 北京旷视科技有限公司 | Image processing method and device and electronic equipment |
CN112133260A (en) * | 2019-06-24 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Image adjusting method and device |
CN111107336A (en) * | 2019-12-06 | 2020-05-05 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
CN112750171A (en) * | 2021-04-02 | 2021-05-04 | 深圳市火乐科技发展有限公司 | Color adjustment method, device, medium and electronic equipment |
CN112750171B (en) * | 2021-04-02 | 2021-08-31 | 深圳市火乐科技发展有限公司 | Color adjustment method, device, medium and electronic equipment |
CN113286136A (en) * | 2021-07-23 | 2021-08-20 | 卡莱特云科技股份有限公司 | Picture color adjusting method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108200420B (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108200420A (en) | Picture adjustment methods, device, readable storage medium storing program for executing and terminal | |
KR101170408B1 (en) | Dominant color extraction for ambient light derived from video content mapped through unrendered color space | |
US6154217A (en) | Gamut restriction of color image | |
CN100551079C (en) | A kind of method of on set-top box, text focus being carried out self-adaption paint | |
CN106780635B (en) | Picture adaptation method and system of intelligent terminal | |
KR20070026701A (en) | Dominant color extraction using perceptual rules to produce ambient light derived from video content | |
CN104835460B (en) | Image processing equipment, image processing method, display panel drive and display equipment | |
US9997133B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium | |
CN104935902B (en) | Image color Enhancement Method, device and electronic equipment | |
CN106054655B (en) | A kind of smart home inter-linked controlling method and device | |
CN104994363B (en) | A kind of U.S. face method, device and intelligent terminal based on dress ornament | |
KR20070090224A (en) | Method of electronic color image saturation processing | |
CN108024105A (en) | Image color adjusting method, device, electronic equipment and storage medium | |
CN106447604A (en) | Method and device for transforming facial frames in videos | |
CN111164563B (en) | Image color adjusting system and color adjusting method of intelligent terminal | |
CN113132696A (en) | Image tone mapping method, device, electronic equipment and storage medium | |
WO2007026283A2 (en) | Ambient lighting derived from video content using adaptive extraction regions | |
CN106550227A (en) | A kind of image saturation method of adjustment and device | |
WO2017143812A1 (en) | Method and device for differentiating objects | |
CN104954690B (en) | Image processing method, system and the camera terminal of colour of skin adjustment | |
CN110473156A (en) | Processing method, device, storage medium and the electronic equipment of image information | |
JP2014220815A (en) | Image color adjusting method and electronic device using the same | |
Chiang et al. | Color image enhancement with saturation adjustment method | |
CN109447931A (en) | Image processing method and device | |
CN105677005A (en) | Screen control method and device for mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |