CN108038889A - The processing method and mobile terminal of a kind of image color cast - Google Patents
The processing method and mobile terminal of a kind of image color cast Download PDFInfo
- Publication number
- CN108038889A CN108038889A CN201711106114.4A CN201711106114A CN108038889A CN 108038889 A CN108038889 A CN 108038889A CN 201711106114 A CN201711106114 A CN 201711106114A CN 108038889 A CN108038889 A CN 108038889A
- Authority
- CN
- China
- Prior art keywords
- color
- background area
- area
- image
- skin area
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
An embodiment of the present invention provides the processing method and mobile terminal of a kind of image color cast, it is related to technical field of mobile terminals.The embodiment of the present invention is by identifying skin area and background area in pending image, whether the color for detecting the skin area and/or background area is inclined to color of object, when the color of the skin area and/or background area is inclined to color of object, the pixel of complementary colours corresponding with the color of object, the image after being handled are added in the skin area and/or background area.Under the influence of ambient color, when the color of the skin area in pending image and/or background area is inclined to color of object, by the pixel that complementary colours corresponding with color of object is added in skin area and/or background area, improve ambient color colour cast caused by photo, the sense of reality of photo is improved, reduces aberration.
Description
Technical field
The present embodiments relate to technical field of mobile terminals, more particularly to a kind of processing method of image color cast and movement
Terminal.
Background technology
With the development of mobile communication technology, the function of the mobile terminal such as smart mobile phone, tablet computer is stronger and stronger, phase
Machine also becomes one of standard configuration in mobile terminal, and more and more users like taking pictures using camera.
At present, when being taken pictures, due to the diversity for scene of taking pictures and the uncontrollability of light, in the influence of ambient color
Under, the situation of colour cast inevitably occurs in the photo of shooting so that the sense of reality of photo is poor.
The content of the invention
The embodiment of the present invention provides a kind of processing method of image color cast, mobile terminal and computer-readable recording medium,
To solve due to the influence of ambient color, there is the problem of colour cast in the photo shot at present.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of method of the processing of image color cast, bag
Include:
Identify the skin area in pending image and background area;
Whether the color for detecting the skin area and/or background area is inclined to color of object;
When the color of the skin area and/or background area is inclined to color of object, in the skin area and/or the back of the body
The pixel of complementary colours corresponding with the color of object, the image after being handled are added in scene area.
In a first aspect, an embodiment of the present invention provides a kind of mobile terminal, including:
Identification module, for identifying skin area and background area in pending image;
Whether detection module, the color for detecting the skin area and/or background area are inclined to color of object;
Add module, for when the skin area and/or background area color be inclined to color of object when, in the skin
The pixel of complementary colours corresponding with the color of object, the image after being handled are added in skin region and/or background area.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, memory and are stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is performed by the processor
The step of realizing the processing method of image color cast of the present invention.
The third aspect, the embodiment of the present invention is additionally provided with a kind of computer-readable recording medium, described computer-readable
Computer program is stored on storage medium, the computer program realizes image color cast of the present invention when being executed by processor
Processing method the step of.
In embodiments of the present invention, by identifying skin area and background area in pending image, the skin is detected
Whether the color of skin region and/or background area is inclined to color of object, when the color of the skin area and/or background area is inclined
During to color of object, the picture of complementary colours corresponding with the color of object is added in the skin area and/or background area
Vegetarian refreshments, the image after being handled.Under the influence of ambient color, when the skin area in pending image and/or background area
Color deviation color of object when, pass through and corresponding with color of object complementary colours added in skin area and/or background area
Pixel, improve ambient color colour cast caused by photo, improve the sense of reality of photo, reduce aberration.
Brief description of the drawings
Fig. 1 shows a kind of flow chart of the processing method of image color cast of the embodiment of the present invention one;
Fig. 2 shows a kind of flow chart of the processing method of image color cast of the embodiment of the present invention two;
Fig. 3 shows a kind of structure diagram of mobile terminal of the embodiment of the present invention three;
Fig. 4 shows the structure diagram of another mobile terminal of the embodiment of the present invention three;
Fig. 5 shows the hardware architecture diagram of the mobile terminal of the embodiment of the present invention four.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, belongs to the scope of protection of the invention.
Embodiment one
With reference to Fig. 1, a kind of flow chart of the processing method of image color cast of the embodiment of the present invention one is shown, specifically can be with
Include the following steps:
Step 101, the skin area in pending image and background area are identified.
In embodiments of the present invention, when user needs to be adjusted the colour cast in an image, it is possible to specify need
The image of processing, then mobile terminal can get the pending image, to pending image carry out image recognition, determine to wait to locate
Manage the skin area in image and background area.
Under normal circumstances, first, for a pending image, extract using Gaussian clustering model foundation complexion model and wait to locate
The corresponding color parameter numerical value of each pixel in image is managed, color parameter numerical value is calculated using two-dimensional Gaussian function
The similarity of each pixel, determines colour of skin threshold limit value corresponding with the separation of the non-colour of skin, similar when pixel
When degree is more than threshold limit value, judge that the pixel belongs to skin area, when the similarity of pixel is less than threshold limit value, judge
The pixel belongs to background area, and by threshold limit value, the skin segmentation in pending image is come out.
Step 102, whether the color for detecting the skin area and/or background area is inclined to color of object.
In embodiments of the present invention, under the influence of ambient color, the color of skin area and/or background area can be caused to satisfy
With spend relatively low or deviation ambient color, for pending image, whether the color for detecting skin area and/or background area is inclined to mesh
Mark color.
Wherein, ambient color refers to that under various light sources, such as irradiation of daylight, moonlight, light light environment is presented
Color.Color of object can be understood as any one color in colour circle, and under normal circumstances, colour circle generally includes 12 kinds of differences
Color.
Step 103, when the color of the skin area and/or background area is inclined to color of object, in the skin region
The pixel of complementary colours corresponding with the color of object, the image after being handled are added in domain and/or background area.
In embodiments of the present invention, when the color of skin area and/or background area is inclined to color of object, calculating is passed through
The complementary colours of color of object, adds the pixel of complementary colours corresponding with color of object in skin area and/or background area,
Improvement ambient color colour cast caused by skin area and/or background area, the image after being handled, the image after processing are whole
The real colour of picture.
When only having the color of skin area to be inclined to color of object in pending image, user clicks on skin area, in skin
The pixel of the corresponding complementary colours of color of object is added in skin region;When the color deviation for there was only background area in pending image
During color of object, user clicks on background area, and the pixel of the corresponding complementary colours of color of object is added in background area;When treating
When the color of skin area and background area is inclined to color of object in processing image, user clicks on skin area and background area
Domain, adds the pixel of the corresponding complementary colours of color of object in skin area and background area.
By the processing method of the image color cast of the embodiment of the present invention, user can be shot under several scenes, can
Reduce influence to the photo of shooting of light and environment and restricted.
In embodiments of the present invention, by identifying skin area and background area in pending image, the skin is detected
Whether the color of skin region and/or background area is inclined to color of object, when the color of the skin area and/or background area is inclined
During to color of object, the picture of complementary colours corresponding with the color of object is added in the skin area and/or background area
Vegetarian refreshments, the image after being handled.Under the influence of ambient color, when the skin area in pending image and/or background area
Color deviation color of object when, pass through and corresponding with color of object complementary colours added in skin area and/or background area
Pixel, improve ambient color colour cast caused by photo, improve the sense of reality of photo, reduce aberration.
Embodiment two
With reference to Fig. 2, a kind of flow chart of the processing method of image color cast of the embodiment of the present invention two is shown, specifically can be with
Include the following steps:
Step 201, the pending image is obtained.
In embodiments of the present invention, when user needs to be adjusted the colour cast in an image, it is possible to specify need
The image of processing, then mobile terminal can get the pending image.
Step 202, when carrying out U.S. face processing to the pending image, the skin area of the pending image is identified
And background area.
In embodiments of the present invention, determine to treat by image recognition when carrying out pending image U.S. face processing at present
Handle the skin area in image and background area.
Under normal conditions, the color of the color of skin area and periphery background is there are larger difference, by color contrast,
It can determine that the elementary contour of skin area, then by carrying out further skin color model to the pixel of outline perimeter, you can it is accurate
Determine the skin area in pending image, the region outside skin area is background area.
After the skin area of pending image is determined, by carrying out colour adjustment to skin area, white print is added
Layer adjusts transparency to reach the effect of U.S. face.Generally, in the case where light is good, skin area is partially red, so can lead
Cause red channel in character image partially bright so that the details component that red channel retains is less, and in contrast, green channel retains
More details, therefore, by carrying out Fuzzy Processing to green channel, adjust transparency, then the image that U.S. face is handled is located with waiting
Image blend is managed, obtains U.S. face effect image.
After U.S. face processing is carried out to pending image, the skin area and/or background area in U.S. face effect image are judged
Also whether there are colour cast in domain.Certainly, the embodiment of the present invention can also be directed to the image progress color correction for not carrying out U.S. face processing.
Step 203, for the skin area, whether the corresponding RGB color value of the skin area is detected beyond default model
Enclose.
In embodiments of the present invention, by gathering multiple character images, the corresponding RGB of skin area in character image is obtained
Colour, according to the RGB color value of multiple skin areas of acquisition, so that it is determined that going out the preset range of skin area.
For the skin area in U.S. face effect image, the corresponding RGB color of skin area in U.S. face effect image is detected
Whether value exceeds preset range, when the corresponding RGB color value of the skin area in U.S. face effect image exceeds preset range, judges
Skin area colour cast, contrasts the RGB color value of skin area and the RGB color value of preset range, when some color of skin area
When numerical value exceeds more, determine that the color of skin area is inclined to the color, that is, be inclined to color of object.Wherein, RGB represents three respectively
Red, green and blueness in primary colors.
Step 204, for the background area, according to the RGB histograms of the background area, the background area is determined
Color whether be inclined to color of object.
In embodiments of the present invention, carry out analysis to the RGB histograms of normal picture and colour cast image to find, if schemed
In the RGB histograms of picture, Colour is single peak, or concentration is compared in distribution, and when colourity average value is larger, is generally all deposited
In colour cast, and colourity average value is bigger, and colour cast is more serious.According to the flat of the average brightness value of tri- passages of RGB and whole image
Equal brightness value is compared, when the average brightness value of single Color Channel is more than the average brightness value of whole image, then entirely
The color of image is inclined to the corresponding color of the single Color Channel.
Therefore, for the background area in U.S. face effect image, the RGB histograms of background area are obtained, to background area
RGB histograms analyzed, determine whether the color of background area is inclined to color of object.
Step 205, when the color of the skin area and/or background area is inclined to color of object, the target is obtained
The RGB color value of color.
In embodiments of the present invention, when the color of skin area and/or background area is inclined to color of object, by searching for
RGB color value table, obtains the RGB color value of color of object.
For example, when the color of skin area is inclined to color of object, and color of object is gilvous, corresponding RGB color value
For R255G255B0.
Step 206, R colours, G colours and B colours are individually subtracted by setting value, it is corresponding mutually obtains the color of object
Complementary color.
In embodiments of the present invention, in order to reduce the aberration of pending image, it is necessary to calculate the complementary colours of color of object, lead to
Cross setting value and R colours, G colours and B colours is individually subtracted, you can the RGB color value of the corresponding complementary colours of color of object is obtained, according to
The RGB color value being calculated determines corresponding complementary colours.
Under 8 bit port patterns, setting value 255, under 16 bit port patterns, setting value 65535.Generally, usually
Using 8 bit port patterns, which can show 256 × 256 × 256=1677, ten thousand colors, discernmible beyond human eye
Color sum, therefore, than the passage rank of 8 bit port pattern highers, does not have any difference for human eye.
For example, for 8 bit port patterns, when color of object is gilvous, by calculating R (255-255) G (255-255) B
(255-0), the RGB numerical value for obtaining corresponding complementary color are R0G0B255, its corresponding complementary colours is pure blue.
Step 207, the colour cast ratio of color of object is inclined to according to the color of the skin area and/or background area, really
The number scope of the pixel of fixed complementary colours corresponding with the color of object.
In embodiments of the present invention, the colour cast ratio of color of object is inclined to according to the color of skin area and/or background area
Example, determines the number scope of the pixel of the complementary colours added in skin area and/or background area.
Wherein, for skin area, the numerical values recited of preset range can be exceeded according to color of object, determines skin area
Color is inclined to the colour cast ratio of color of object;For background area, according to the average brightness of the corresponding Color Channel of color of object
Value, the size of the difference between the average brightness value of whole image, determines that the color of background area is inclined to the colour cast of color of object
Ratio.
Changes in temperature can be set to adjust litter, the centre position correspondence that changes in temperature adjust litter is unbiased color image;Changes in temperature are adjusted
When litter is adjusted up, the pattern colour tuningout after alignment processing warms up;When changes in temperature adjusting litter is adjusted downwards, after alignment processing
Picture tone is colder.Wherein, skin area and background area can be directed to, sets a changes in temperature to adjust litter respectively.
If changes in temperature are adjusted litter adjusting to centre position, the standard number of the pixel of complementary colours is determined;If will be cold
When warm color tone section litter is adjusted to highest point, the first critical number of the pixel of complementary colours is determined;If changes in temperature are adjusted into litter tune
When saving to lowest point, the second critical number of the pixel of complementary colours is determined.Between first critical number and the first critical number
Region i.e. complementary colours pixel number scope.
If complementary colours is cool tone, the first critical number of the pixel of complementary colours is less than standard number so that processing
Pattern colour tuningout afterwards warms up;If complementary colours is warm tones, the first critical number of the pixel of complementary colours is more than standard number,
So that the pattern colour tuningout after processing warms up.Wherein, cool tone generally comprises green, blueness etc., and warm tones generally comprises red, yellow
Color etc..
For example, when complementary colours is pure blue, the colour cast ratio of color of object is inclined to according to the color of skin area, is determined
The number scope M1 to Mn of the pixel of pure blue.
Step 208, the position of litter is adjusted based on current changes in temperature, the complementation of corresponding number is chosen in the range of the number
The pixel of color.
In embodiments of the present invention, skin area and/or background area are clicked on, adjustment of cold/warm adjusts the position of litter,
The pixel of the complementary colours of corresponding number is chosen in the range of number.
When only having the color of skin area to be inclined to color of object in pending image, user clicks on skin area, adjusts
The changes in temperature of skin area adjust the position of litter, choose the pixel of the complementary colours of corresponding number;When in pending image only
During the color deviation color of object of background area, user clicks on background area, and the changes in temperature for adjusting background area adjust the position of litter
Put, choose the pixel of the complementary colours of corresponding number;When the color of skin area and background area is inclined in pending image
During color of object, user clicks on skin area and background area, the corresponding changes in temperature adjusting cunning for adjusting skin area and background area
The position of pole, chooses the pixel of the complementary colours of corresponding number.
For example, when the color of skin area is inclined to color of object, the complementary colours of color of object is pure blue, according to user's tune
The changes in temperature of section adjust the position of litter, and the pixel of Ma pure blue is chosen in number scope M1 to Mn.
Step 209, the pixel of the complementary colours of the corresponding number is even added to the skin area and/or background
In region, the image after being handled.
In embodiments of the present invention, by the pixel of the complementary colours of the correspondence number of selection, it is even added to skin area
And/or in background area, the image after being handled so that the color of image after processing is evenly.
For example, the number of the pixel of pure blue is Ma, the pixel of Ma pure blue is even added to skin region
In domain, the image after being handled.
In embodiments of the present invention, under the influence of ambient color, when the skin area and/or background area in pending image
During the color deviation color of object in domain, the color of object of number is corresponded to by being added in skin area and/or background area
The pixel of complementary colours, improves ambient color colour cast caused by photo, improves the sense of reality of photo, reduces aberration, while can phase
The cold and warm tone of image should be adjusted, the image after a variety of processing can be obtained, meet the needs of user is various.
Embodiment three
Reference Fig. 3, shows a kind of structure diagram of mobile terminal of the embodiment of the present invention three.
The mobile terminal 300 includes:Identification module 301, detection module 302 and addition module 303.
Identification module 301, for identifying skin area and background area in pending image.
Whether detection module 302, the color for detecting the skin area and/or background area are inclined to color of object.
Add module 303, for when the skin area and/or background area color be inclined to color of object when, in institute
The pixel that complementary colours corresponding with the color of object is added in skin area and/or background area is stated, after being handled
Image.
Reference Fig. 4, shows the structure diagram of another mobile terminal of the embodiment of the present invention three.
On the basis of Fig. 3, optionally, the addition module 303, can include:Range determination submodule 3031, is used for
The colour cast ratio of color of object is inclined to according to the color of the skin area and/or background area, is determined and the color of object
The number scope of the pixel of corresponding complementary colours;Submodule 3032 is chosen, for adjusting the position of litter based on current changes in temperature,
The pixel of the complementary colours of corresponding number is chosen in the range of the number;Submodule 3033 is added, for the correspondence is a
The pixel of several complementary colours is even added in the skin area and/or background area, the image after being handled.
Optionally, the detection module 302, can include:Detection of skin regions submodule 3021, for for the skin
Skin region, detects whether the corresponding RGB color value of the skin area exceeds preset range;Background area detection sub-module 3022,
For for the background area, according to the RGB histograms of the background area, determining whether the color of the background area is inclined
To color of object.
Optionally, the identification module 301, can include:Pending image acquisition submodule 3011, it is described for obtaining
Pending image;Region recognition submodule 3012, for when carrying out U.S. face processing to the pending image, being treated described in identification
Handle skin area and the background area of image.
Optionally, the mobile terminal 300 further includes:Acquisition module 304, for obtaining the RGB color of the color of object
Value;Computing module 305, for R colours, G colours and B colours to be individually subtracted by setting value, obtains the color of object and corresponds to
Complementary colours.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2
Each process, to avoid repeating, which is not described herein again.
In embodiments of the present invention, by identifying skin area and background area in pending image, the skin is detected
Whether the color of skin region and/or background area is inclined to color of object, when the color of the skin area and/or background area is inclined
During to color of object, the picture of complementary colours corresponding with the color of object is added in the skin area and/or background area
Vegetarian refreshments, the image after being handled.Under the influence of ambient color, when the skin area in pending image and/or background area
Color deviation color of object when, pass through and corresponding with color of object complementary colours added in skin area and/or background area
Pixel, improve ambient color colour cast caused by photo, improve the sense of reality of photo, reduce aberration.
Example IV
Reference Fig. 5, shows the hardware architecture diagram of the mobile terminal of the embodiment of the present invention four.
The mobile terminal 500 includes but not limited to:It is radio frequency unit 501, mixed-media network modules mixed-media 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The component such as 510 and power supply 511.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 is not formed
Restriction to mobile terminal, mobile terminal can be included than illustrating more or fewer components, either combine some components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510 is used to identify skin area and the background area in pending image;Detect the skin region
Whether the color of domain and/or background area is inclined to color of object;When the color of the skin area and/or background area is inclined to mesh
When marking color, the pixel of complementary colours corresponding with the color of object is added in the skin area and/or background area,
Image after being handled.
In embodiments of the present invention, by identifying skin area and background area in pending image, the skin is detected
Whether the color of skin region and/or background area is inclined to color of object, when the color of the skin area and/or background area is inclined
During to color of object, the picture of complementary colours corresponding with the color of object is added in the skin area and/or background area
Vegetarian refreshments, the image after being handled.Under the influence of ambient color, when the skin area in pending image and/or background area
Color deviation color of object when, pass through and corresponding with color of object complementary colours added in skin area and/or background area
Pixel, improve ambient color colour cast caused by photo, improve the sense of reality of photo, reduce aberration.
It should be understood that in the embodiment of the present invention, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 510;In addition, by uplink
Data sending is to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 502 and has accessed, and such as helps user to receive
Send e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be receiving by radio frequency unit 501 or mixed-media network modules mixed-media 502 or in memory 509
It is sound that the voice data of storage, which is converted into audio signal and exports,.Moreover, audio output unit 503 can also be provided and moved
The relevant audio output of specific function that dynamic terminal 500 performs is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is used to receive audio or video signal.Input unit 504 can include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Picture frame after processing may be displayed on display unit 506.Picture frame after the processing of graphics processor 5041 can be deposited
Storage is transmitted in memory 509 (or other storage mediums) or via radio frequency unit 501 or mixed-media network modules mixed-media 502.Mike
Wind 5042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be
The form output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 506 is used for the information for showing by information input by user or being supplied to user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 5061.
User input unit 507 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 507 include contact panel 5071 and
Other input equipments 5072.Contact panel 5071, also referred to as touch-screen, collect user on it or neighbouring touch operation
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 5071 or in contact panel 5071
Neighbouring operation).Contact panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
Manage the order that device 510 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes contact panel 5071.Except contact panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 5071 can be covered on display panel 5061, when contact panel 5071 is detected at it
On or near touch operation after, send to processor 510 with determine touch event type, be followed by subsequent processing device 510 according to touch
The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, contact panel 5071 and display
Panel 5061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments
In, can be integrated by contact panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 508 is the interface that external device (ED) is connected with mobile terminal 500.For example, external device (ED) can include
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and
One or more elements that the input received is transferred in mobile terminal 500 can be used in 500 He of mobile terminal
Data are transmitted between external device (ED).
Memory 509 can be used for storage software program and various data.Memory 509 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 509 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
A part, by running or performing the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) to all parts power supply, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Embodiment five
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509, is stored in
On memory 509 and the computer program that can be run on the processor 510, the computer program are performed by processor 510
Each process of the processing method embodiment of the above-mentioned image color casts of Shi Shixian, and identical technique effect can be reached, to avoid weight
Multiple, which is not described herein again.
Embodiment six
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium
Calculation machine program, the computer program realize each mistake of the processing method embodiment of above-mentioned image color cast when being executed by processor
Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium
Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much
Form, belongs within the protection of the present invention.
Claims (12)
- A kind of 1. processing method of image color cast, it is characterised in that including:Identify the skin area in pending image and background area;Whether the color for detecting the skin area and/or background area is inclined to color of object;When the color of the skin area and/or background area is inclined to color of object, in the skin area and/or background area The pixel of complementary colours corresponding with the color of object, the image after being handled are added in domain.
- 2. according to the method described in claim 1, it is characterized in that, described add in the skin area and/or background area Enter the pixel of complementary colours corresponding with the color of object, the step of image after being handled, including:The colour cast ratio of color of object is inclined to according to the color of the skin area and/or background area, is determined and the target The number scope of the pixel of the corresponding complementary colours of color;The position of litter is adjusted based on current changes in temperature, the pixel of the complementary colours of corresponding number is chosen in the range of the number;The pixel of the complementary colours of the corresponding number is even added in the skin area and/or background area, is obtained Image after processing.
- 3. according to the method described in claim 1, it is characterized in that, in the skin area and/or background area add with Before the step of pixel of the corresponding complementary colours of the color of object, image after being handled, further include:Obtain the RGB color value of the color of object;R colours, G colours and B colours are individually subtracted by setting value, obtain the corresponding complementary colours of the color of object.
- 4. according to the method described in claim 1, it is characterized in that, the detection skin area and/or background area The step of whether color is inclined to color of object, including:For the skin area, detect whether the corresponding RGB color value of the skin area exceeds preset range;For the background area, according to the RGB histograms of the background area, determine whether the color of the background area is inclined To color of object.
- 5. the according to the method described in claim 1, it is characterized in that, skin area and background identified in pending image The step of region, including:Obtain the pending image;When carrying out U.S. face processing to the pending image, skin area and the background area of the pending image are identified.
- A kind of 6. mobile terminal, it is characterised in that including:Identification module, for identifying skin area and background area in pending image;Whether detection module, the color for detecting the skin area and/or background area are inclined to color of object;Add module, for when the skin area and/or background area color be inclined to color of object when, in the skin region The pixel of complementary colours corresponding with the color of object, the image after being handled are added in domain and/or background area.
- 7. mobile terminal according to claim 6, it is characterised in that the addition module, including:Range determination submodule, for being inclined to the colour cast of color of object according to the color of the skin area and/or background area Ratio, determines the number scope of the pixel of complementary colours corresponding with the color of object;Submodule is chosen, for adjusting the position of litter based on current changes in temperature, corresponding number is chosen in the range of the number The pixel of complementary colours;Add submodule, for by the pixel of the complementary colours of the corresponding number be even added to the skin area and/or In background area, the image after being handled.
- 8. mobile terminal according to claim 6, it is characterised in that further include:Acquisition module, for obtaining the RGB color value of the color of object;Computing module, for R colours, G colours and B colours to be individually subtracted by setting value, it is corresponding to obtain the color of object Complementary colours.
- 9. mobile terminal according to claim 6, it is characterised in that the detection module, including:Detection of skin regions submodule, for for the skin area, whether detecting the corresponding RGB color value of the skin area Beyond preset range;Background area detection sub-module, for for the background area, according to the RGB histograms of the background area, determining Whether the color of the background area is inclined to color of object.
- 10. mobile terminal according to claim 6, it is characterised in that the identification module, including:Pending image acquisition submodule, for obtaining the pending image;Region recognition submodule, for when carrying out U.S. face processing to the pending image, identifying the pending image Skin area and background area.
- 11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is performed by the processor Any one of image color cast processing method the step of.
- 12. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, realizes the processing of the image color cast as any one of claim 1 to 5 when the computer program is executed by processor The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711106114.4A CN108038889A (en) | 2017-11-10 | 2017-11-10 | The processing method and mobile terminal of a kind of image color cast |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711106114.4A CN108038889A (en) | 2017-11-10 | 2017-11-10 | The processing method and mobile terminal of a kind of image color cast |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108038889A true CN108038889A (en) | 2018-05-15 |
Family
ID=62093808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711106114.4A Pending CN108038889A (en) | 2017-11-10 | 2017-11-10 | The processing method and mobile terminal of a kind of image color cast |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108038889A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111145194A (en) * | 2019-12-31 | 2020-05-12 | 联想(北京)有限公司 | Processing method, processing device and electronic equipment |
CN112669229A (en) * | 2020-12-22 | 2021-04-16 | 维沃移动通信有限公司 | Image processing method and device and electronic equipment |
WO2022262848A1 (en) * | 2021-06-18 | 2022-12-22 | 维沃移动通信有限公司 | Image processing method and apparatus, and electronic device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150054980A1 (en) * | 2013-08-26 | 2015-02-26 | Jarno Nikkanen | Awb using face detection |
CN106060402A (en) * | 2016-07-06 | 2016-10-26 | 北京奇虎科技有限公司 | Image data processing method and device, and mobile terminal |
CN106485759A (en) * | 2016-09-23 | 2017-03-08 | 北京小米移动软件有限公司 | Color indicating means and device |
-
2017
- 2017-11-10 CN CN201711106114.4A patent/CN108038889A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150054980A1 (en) * | 2013-08-26 | 2015-02-26 | Jarno Nikkanen | Awb using face detection |
CN106060402A (en) * | 2016-07-06 | 2016-10-26 | 北京奇虎科技有限公司 | Image data processing method and device, and mobile terminal |
CN106485759A (en) * | 2016-09-23 | 2017-03-08 | 北京小米移动软件有限公司 | Color indicating means and device |
Non-Patent Citations (1)
Title |
---|
曹茂鹏等编著: "《美人技Photoshop人像美化实例教程》", 30 September 2016, 北京:机械工业出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111145194A (en) * | 2019-12-31 | 2020-05-12 | 联想(北京)有限公司 | Processing method, processing device and electronic equipment |
CN112669229A (en) * | 2020-12-22 | 2021-04-16 | 维沃移动通信有限公司 | Image processing method and device and electronic equipment |
WO2022262848A1 (en) * | 2021-06-18 | 2022-12-22 | 维沃移动通信有限公司 | Image processing method and apparatus, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107580184B (en) | A kind of image pickup method and mobile terminal | |
CN108111754A (en) | A kind of method and mobile terminal of definite image acquisition modality | |
CN107835364A (en) | One kind is taken pictures householder method and mobile terminal | |
CN109361867B (en) | Filter processing method and mobile terminal | |
CN107665697A (en) | The adjusting method and mobile terminal of a kind of screen intensity | |
CN107908383A (en) | A kind of screen color method of adjustment, device and mobile terminal | |
CN107835367A (en) | A kind of image processing method, device and mobile terminal | |
CN107621738A (en) | The control method and mobile terminal of a kind of mobile terminal | |
CN107977652A (en) | The extracting method and mobile terminal of a kind of screen display content | |
CN110365907A (en) | A kind of photographic method, device and electronic equipment | |
CN108377339A (en) | A kind of photographic method and camera arrangement | |
CN108600647A (en) | Shooting preview method, mobile terminal and storage medium | |
CN107845057A (en) | One kind is taken pictures method for previewing and mobile terminal | |
CN107895352A (en) | A kind of image processing method and mobile terminal | |
CN108234882A (en) | A kind of image weakening method and mobile terminal | |
CN108038825A (en) | A kind of image processing method and mobile terminal | |
CN107846583A (en) | A kind of image shadow compensating method and mobile terminal | |
CN108427873A (en) | A kind of biological feather recognition method and mobile terminal | |
CN107911540A (en) | Profile switching method and terminal device | |
CN108668024A (en) | A kind of method of speech processing and terminal | |
CN108198127A (en) | A kind of image processing method, device and mobile terminal | |
CN107948516A (en) | A kind of image processing method, device and mobile terminal | |
CN108804184A (en) | A kind of display control method and terminal device | |
CN107845363A (en) | A kind of display control method and mobile terminal | |
CN107864336A (en) | A kind of image processing method, 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180515 |
|
RJ01 | Rejection of invention patent application after publication |