CN109727212A - A kind of image processing method and mobile terminal - Google Patents

A kind of image processing method and mobile terminal Download PDF

Info

Publication number
CN109727212A
CN109727212A CN201811584360.5A CN201811584360A CN109727212A CN 109727212 A CN109727212 A CN 109727212A CN 201811584360 A CN201811584360 A CN 201811584360A CN 109727212 A CN109727212 A CN 109727212A
Authority
CN
China
Prior art keywords
human face
face region
brightness
preset threshold
threshold range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811584360.5A
Other languages
Chinese (zh)
Other versions
CN109727212B (en
Inventor
胡静婕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811584360.5A priority Critical patent/CN109727212B/en
Publication of CN109727212A publication Critical patent/CN109727212A/en
Application granted granted Critical
Publication of CN109727212B publication Critical patent/CN109727212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a kind of image processing method and mobile terminals, this method is applied to mobile terminal, it include: the human face region of recognition target image, calculate the luminance difference of the human face region, the luminance difference is the difference between the brightness of first part and the brightness of second part of the human face region, the first part is part most bright in the human face region, and the second part is part most dark in the human face region;If the luminance difference not in the first preset threshold range, according to the luminance difference and first preset threshold range, adjusts the brightness and contrast of the human face region.Technical scheme can individually be adjusted the brightness and contrast of human face region, will not influence the relationship between light and dark in other regions in target image completely, promote contrast while carrying out brightness adjustment to human face region so as to realize.

Description

A kind of image processing method and mobile terminal
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of image processing methods and mobile terminal.
Background technique
With the rise of self-timer industry, ISP (Image signal is needed to obtain preferable self-timer effect Processor) end is compared big adjustment to color and brightness etc., for example the ideal self-timer colour of skin requires the colour of skin white bright, Contrast is strong, while having certain solid degree again.
Substantially pass through gamma correction controls the light and shades such as the brightness and contrast of entire picture to the effect of mobile phone self-timer at present Relationship effect, or highlighted by ae exposure compensating to whole, the prior art can not be to partial zones such as face or colour of skin sections Domain carries out brightness or the adjustment of contrast, and integrated regulation may cause background distortions and be difficult while improving brightness also It is able to maintain the three-dimensional degree and contrast of the colour of skin.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method and mobile terminal, carries out brightness tune to human face region to realize Contrast is promoted while whole.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, being applied to mobile terminal, wherein described the embodiment of the invention provides a kind of image processing method Method includes: the human face region of recognition target image, calculates the luminance difference of the human face region, and the luminance difference is described Difference between the brightness of the first part of human face region and the brightness of second part, the first part are the human face region In most bright part, the second part is part most dark in the human face region;If the luminance difference is not pre- first If in threshold range, then according to the luminance difference and first preset threshold range, adjusting the brightness of the human face region And contrast.
Second aspect, the embodiment of the invention provides a kind of mobile terminals, wherein the mobile terminal includes: identification meter Module is calculated, the human face region of recognition target image is configured as, calculates the luminance difference of the human face region, the luminance difference For the difference between the brightness of the first part of the human face region and the brightness of second part, the first part is the people Most bright part in face region, the second part are part most dark in the human face region;The first adjustment module, is configured If being the luminance difference not in the first preset threshold range, according to the luminance difference and the first preset threshold model It encloses, adjusts the brightness and contrast of the human face region.
The third aspect the embodiment of the invention provides a kind of mobile terminal, including processor, memory and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor The step of image processing method described in existing inventive embodiments.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, is realized at image described in inventive embodiments when the computer program is executed by processor The step of reason method.
In embodiments of the present invention, the human face region in target image is identified first, when the luminance difference of human face region It, can be according to luminance difference and the first preset threshold range, individually to human face region when not in the first preset threshold range Brightness and contrast is adjusted, and will not influence the relationship between light and dark in other regions in target image completely, so as to realize pair Human face region carries out promoting contrast while brightness adjustment.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various advantage and benefit are for ordinary skill people Member will become clear.Attached drawing is only used for showing preferred embodiment, and is not to be construed as limiting the invention.And In entire attached drawing, the same reference numbers will be used to refer to the same parts.
In the accompanying drawings:
Fig. 1 is a kind of step flow chart of the image processing method provided according to the embodiment of the present application one;
Fig. 2 is a kind of step flow chart of the image processing method provided according to the embodiment of the present application two;
Fig. 3 is a kind of structural block diagram of according to embodiments of the present invention three mobile terminals provided;
Fig. 4 is a kind of hardware structural diagram of according to embodiments of the present invention four mobile terminals provided.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of image processing method of the embodiment of the present invention one is shown.
The image processing method of the embodiment of the present invention the following steps are included:
Step 101: the human face region of recognition target image calculates the luminance difference of human face region, and luminance difference is face Difference between the brightness of the first part in region and the brightness of second part, first part are portion most bright in human face region Point, second part is part most dark in human face region.
Target image can be stored in image or mobile terminal camera (such as preposition camera shooting on mobile terminal Head) original image that takes, can also be original image is carried out by the end ISP (Image signal processor) it is bright Degree or contrast carry out the image obtained after the adjustment of basis.
Such as skin color segmentation algorithm and outline algorithm etc. can be used, determine the human face region in target image.
Wherein the brightness of first part can be the brightness maxima in human face region, and the brightness of second part can be people Brightness minimum value in face region, that is, luminance difference can be minimum by calculating brightness maxima and brightness in human face region Difference between value is calculated.The luminance difference of different images may be different.Luminance difference can be used to characterize human face region Contrast size.
Step 102: if luminance difference not in the first preset threshold range, according to luminance difference and the first preset threshold Range adjusts the brightness and contrast of human face region.
When luminance difference is in the first preset threshold range, illustrate the contrast meet demand of human face region, it can not The brightness and contrast of human face region is adjusted;When luminance difference is when except the first preset threshold range, illustrate face The contrast in region is unsatisfactory for demand, can be according to luminance difference and the first preset threshold range to the brightness of human face region and right It is adjusted than degree, makes the relationship between light and dark meet demand such as brightness and contrast of human face region.Specific adjustment mode for example may be used To pass through gamma correction etc..Wherein, the first preset threshold range can be needed according to human face region the contrast range that meets come It is specific to determine.
Image processing method provided in an embodiment of the present invention identifies the human face region in target image first, works as face It, can be single according to luminance difference and the first preset threshold range when the luminance difference in region is not in the first preset threshold range Solely the brightness and contrast of human face region is adjusted, will not influence the relationship between light and dark in other regions in target image completely, Contrast is promoted while carrying out brightness adjustment to human face region so as to realize.
Embodiment two
Referring to Fig. 2, a kind of step flow chart of image processing method of the embodiment of the present invention two is shown.
The image processing method of the embodiment of the present invention specifically includes the following steps:
Step 201: by coloration the second preset threshold of satisfaction in target image and brightness meets the area of third predetermined threshold value Domain is determined as target area.
By taking the application in self-timer U.S. face as an example, this step can determine the target area such as colour of skin using skin color segmentation algorithm Region.Wherein, the main difference of the colour of skin is grayscale information (luminance information) and chrominance information.By empty in suitable color Between on to the colour of skin sample, establish characterization the colour of skin Colour function, determine distinguish the colour of skin and the non-colour of skin the second default threshold Value;The brightness distribution function that the characterization colour of skin can also be established determines the third predetermined threshold value for distinguishing the colour of skin and the non-colour of skin.According to Whether coloration meets the second preset threshold and whether brightness meets third predetermined threshold value, so that it may realize the colour of skin and the non-colour of skin It distinguishes.
In practical applications, the second preset threshold and third predetermined threshold value can be determines according to actual conditions.
Step 202: the target area being handled, determines the human face region.
After completing area of skin color segmentation using modes such as color spaces, area of skin color is determined as target area, then may be used To carry out Mathematical Morphology and connected region processing to the bianry image after segmentation, positioned first for example, by using outline algorithm etc. Face, then Negative selection can determine human face region again, so as to realize that human face region just positions.
Step 203: calculating the luminance difference of human face region, luminance difference is the brightness and the of the first part of human face region Difference between the brightness of two parts, first part are most bright part in human face region, second part be in human face region most Dark part.
Step 203 and the step 101 in a upper embodiment are same or similar in the present embodiment, and details are not described herein.This reality It applies example and stresses difference with a upper embodiment.
Step 204: if luminance difference not in the first preset threshold range, according to luminance difference and the first preset threshold Range adjusts the brightness and contrast of human face region.
Rule of thumb design principle and algorithm implementation principle, after all processes in the end ISP, by skin color segmentation algorithm, After recognizing area of skin color and further navigating to human face region, when the luminance difference of human face region is not in the first preset threshold model When enclosing interior, individually the brightness and contrast of human face region can be adjusted using tools such as gamma corrections, reach ideal Picture is exported after state.
In a kind of implementation, which may include:
Step 301: calculating the first difference between luminance difference and the central value of the first preset threshold range.
When luminance difference is greater than the maximum value in the first preset threshold range, illustrate that the contrast in human face region is inclined It is high;When luminance difference is less than minimum value in the first preset threshold range, illustrate that the contrast in human face region is relatively low.It calculates Difference between luminance difference and the central value of the first preset threshold range obtains the first difference.The numerical values recited of first difference It can be used to characterize the degree for needing to be adjusted contrast.
Wherein, the central value of the first preset threshold range is the centre of maxima and minima in the first preset threshold range Value, such as when the first preset threshold range is -10~10, the central value of the first preset threshold range is 0.
Step 302: according to the first difference, the brightness of human face region being adjusted, makes luminance difference adjusted In one preset threshold range.
According to the first difference, the brightness in human face region is adjusted, realizes and first is higher or lower than in advance to contrast If the part of threshold range is adjusted, make luminance difference adjusted in the first preset threshold range.Such as work as contrast When relatively low, the brightness that can will be above given luminance is turned up, and the brightness that will be less than given luminance is turned down, so that contrast is improved, Wherein given luminance can be determines according to actual conditions.
The various embodiments described above provide image processing method, can also include:
Step 401: calculating the average value between the brightness of first part and the brightness of second part.
Specifically, the brightness of first part can be the brightness maxima in human face region, and the brightness of second part can be with For the average value of brightness maxima and brightness minimum value in the brightness minimum value in human face region, that is, calculating human face region. The average value of different images may be different.Average value can be used to characterize the bright dark degree of human face region.
Step 402: if average value not in the 4th preset threshold range, calculates average value and the 4th preset threshold range The second difference between central value.
When average value is in the 4th preset threshold range, illustrate the bright dark degree meet demand of human face region, it can not The brightness of human face region is adjusted;When average value is when except the 4th preset threshold range, illustrate the bright dark of human face region Degree is unsatisfactory for demand, can calculate the difference between average value and the central value of the 4th preset threshold range, it is poor to obtain second Value, subsequently into step 403.Wherein, the 4th preset threshold range can be needed according to human face region the average brightness that meets or Bright dark degree specifically determines.The central value of 4th preset threshold range is maxima and minima in the 4th preset threshold range Median, such as when the 4th preset threshold range is 100~200, the central value of the first preset threshold range is 150.
When average value is greater than the maximum value in the 4th preset threshold range, illustrate that human face region is partially bright;When average value is small When minimum value in the 4th preset threshold range, illustrate that human face region is partially dark.The numerical values recited of second difference can be used to table Levy the degree for needing to be adjusted light and shade.
Step 403: according to the second difference, the brightness of human face region being adjusted, makes average value adjusted the 4th In preset threshold range.
According to the second difference, whole height-regulating is carried out to the brightness of human face region or is turned down, makes average value adjusted the In four preset threshold ranges.
Image processing method provided in this embodiment intelligently adjusts skin by way of the skin color segmentation algorithm based on a kind of The relationship between light and dark of color carries out face complexion area positioning after being partitioned into the colour of skin, then by gamma correction individually to face complexion The brightness and contrast etc. in region is adjusted, and can also not only increase the three-dimensional degree of face with bright color, but also completely The relationship between light and dark such as clothes or background are not interfered with;The present embodiment can be solved efficiently to take pictures in the past and is difficult in effect optimization The problem of taking into account brightness and contrast, and the present embodiment does not need to carry out a large amount of data accumulation and machine learning, is easy real It applies, operational efficiency is higher.
Embodiment three
Referring to Fig. 3, a kind of structural block diagram of mobile terminal of the embodiment of the present invention three is shown.
The mobile terminal of the embodiment of the present invention may include: identification computing module 301, be configured as recognition target image Human face region, calculates the luminance difference of human face region, and luminance difference is brightness and the second part of the first part of human face region Brightness between difference, first part is most bright part in human face region, and second part is portion most dark in human face region Point;The first adjustment module 302, if being configured as luminance difference not in the first preset threshold range, according to luminance difference and First preset threshold range adjusts the brightness and contrast of human face region.
Wherein target image can be stored in image on mobile terminal or mobile terminal camera is (such as preposition Camera) original image that takes, can also be by the end ISP (Image signal processor) to original image into Row brightness or contrast carry out the image obtained after the adjustment of basis.Identification computing module 301 can for example use skin color segmentation Algorithm and outline algorithm etc. determine the human face region in target image.
Wherein the brightness of first part can be the brightness maxima in human face region, and the brightness of second part can be people Brightness minimum value in face region, that is, luminance difference can be minimum by calculating brightness maxima and brightness in human face region Difference between value is calculated.The luminance difference of different images may be different.Luminance difference can be used to characterize human face region Contrast size.
When luminance difference is in the first preset threshold range, illustrate the contrast meet demand of human face region, it can not The brightness and contrast of human face region is adjusted;When luminance difference is when except the first preset threshold range, illustrate face The contrast in region is unsatisfactory for demand, and the first adjustment module 302 can be according to luminance difference and the first preset threshold range to people The brightness and contrast in face region is adjusted, and makes the relationship between light and dark meet demand such as brightness and contrast of human face region.Specifically Brightness adjustment mode can for example pass through gamma correction etc..Wherein, the first preset threshold range can be according to human face region need The contrast range to be met specifically determines.
Specifically, identification computing module 301 includes: the first recognition unit, it is configured as the color in the target image Degree the second preset threshold of satisfaction and brightness meet the region of third predetermined threshold value, are determined as target area;Second recognition unit, quilt It is configured to handle the target area, determines the human face region.
In a kind of implementation, the first adjustment module 302 includes:
Computing unit is configured as calculating between the luminance difference and the central value of first preset threshold range First difference;
Adjustment unit is configured as being adjusted the brightness of the human face region according to first difference, making to adjust Luminance difference afterwards is in first preset threshold range.
In another embodiment, above-mentioned mobile terminal can also include:
First computing module 303, be configured as calculating the first part brightness and the second part brightness it Between average value;
Second computing module 304 calculates described flat if being configured as the average value not in the 4th preset threshold range The second difference between mean value and the central value of the 4th preset threshold range;
Second adjustment module 305 is configured as adjusting the brightness of the human face region according to second difference It is whole, make average value adjusted in the 4th preset threshold range.
Mobile terminal provided in an embodiment of the present invention can be realized each process in above-mentioned image processing method embodiment, To avoid repeating, which is not described herein again.
Mobile terminal provided in an embodiment of the present invention identifies the human face region in target image first, works as human face region Luminance difference not in the first preset threshold range when, can be individually right according to luminance difference and the first preset threshold range The brightness and contrast of human face region is adjusted, and will not influence the relationship between light and dark in other regions in target image completely, thus It may be implemented to promote contrast while carrying out brightness adjustment to human face region.
Example IV
Referring to Fig. 4, a kind of hardware structural diagram of mobile terminal of the embodiment of the present invention four is shown.
A kind of hardware structural diagram of Fig. 4 mobile terminal of each embodiment to realize the present invention, the mobile terminal 400 Including but not limited to: radio frequency unit 401, audio output unit 403, input unit 404, sensor 405, is shown network module 402 Show the components such as unit 406, user input unit 407, interface unit 408, memory 409, processor 410 and power supply 411. It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 does not constitute the restriction to mobile terminal, it is mobile whole End may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention In embodiment, mobile terminal includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, can wear Wear equipment and pedometer etc..
Processor 410, the human face region of target image, calculates the luminance difference of human face region, luminance difference for identification For the difference between the brightness of the first part of human face region and the brightness of second part, first part is most bright in human face region Part, second part is most dark part in the human face region;If luminance difference not in the first preset threshold range, According to luminance difference and the first preset threshold range, the brightness and contrast of human face region is adjusted.
Mobile terminal provided in an embodiment of the present invention identifies the human face region in target image first, works as human face region Luminance difference not in the first preset threshold range when, can be individually right according to luminance difference and the first preset threshold range The brightness and contrast of human face region is adjusted, and will not influence the relationship between light and dark in other regions in target image completely, thus It may be implemented to promote contrast while carrying out brightness adjustment to human face region.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 410 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 401 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 402 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 403 can be received by radio frequency unit 401 or network module 402 or in memory 409 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 400 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 403 includes loudspeaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor (Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 401 is converted in the case where telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, 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 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear Display panel 4061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 406 is for showing information input by user or being supplied to the information of user.Display unit 406 can wrap Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
User input unit 407 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 407 include touch panel 4071 and Other input equipments 4072.Touch panel 4071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 4071 or in touch panel 4071 Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, 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 410, receiving area It manages the order that device 410 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments 4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touching The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, touch panel 4071 and display Panel 4061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 408 is the interface that external device (ED) is connect with mobile terminal 400.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 400 or can be used in 400 He of mobile terminal Data are transmitted between external device (ED).
Memory 409 can be used for storing software program and various data.Memory 409 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, it 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 410 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 409, and calls and is stored in storage Data in device 409 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411 Can be logically contiguous by power-supply management system and processor 410, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 410, and memory 409 is stored in On memory 409 and the computer program that can run on the processor 410, the computer program are executed by processor 410 Each process of the above-mentioned image processing method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image processing method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, 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 be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of image processing method is applied to mobile terminal, which is characterized in that the described method includes:
The human face region of recognition target image, calculates the luminance difference of the human face region, and the luminance difference is the face Difference between the brightness of the first part in region and the brightness of second part, the first part be the human face region in most Bright part, the second part are part most dark in the human face region;
If the luminance difference is not in the first preset threshold range, according to the luminance difference and first preset threshold Range adjusts the brightness and contrast of the human face region.
2. image processing method according to claim 1, which is characterized in that the human face region of the recognition target image Step, comprising:
By coloration the second preset threshold of satisfaction in the target image and brightness meets the region of third predetermined threshold value, is determined as Target area;
The target area is handled, determines the human face region.
3. image processing method according to claim 1, which is characterized in that described according to the luminance difference and described One preset threshold range, the step of adjusting the brightness and contrast of the human face region, comprising:
Calculate the first difference between the luminance difference and the central value of first preset threshold range;
According to first difference, the brightness of the human face region is adjusted, makes luminance difference adjusted described In one preset threshold range.
4. image processing method according to claim 1, which is characterized in that the method also includes:
Calculate the average value between the brightness of the first part and the brightness of the second part;
If the average value not in the 4th preset threshold range, calculates the average value and the 4th preset threshold range The second difference between central value;
According to second difference, the brightness of the human face region is adjusted, makes average value adjusted the described 4th In preset threshold range.
5. a kind of mobile terminal characterized by comprising
It identifies computing module, is configured as the human face region of recognition target image, calculates the luminance difference of the human face region, institute State luminance difference be the human face region the brightness of first part and the brightness of second part between difference, described first It is divided into part most bright in the human face region, the second part is part most dark in the human face region;
The first adjustment module, if being configured as the luminance difference not in the first preset threshold range, according to the brightness Difference and first preset threshold range, adjust the brightness and contrast of the human face region.
6. mobile terminal according to claim 5, which is characterized in that the identification computing module includes:
First recognition unit is configured as the coloration in the target image meeting the second preset threshold and brightness meets third The region of preset threshold, is determined as target area;
Second recognition unit is configured as handling the target area, determines the human face region.
7. mobile terminal according to claim 5, which is characterized in that the first adjustment module includes:
Computing unit is configured as calculating first between the luminance difference and the central value of first preset threshold range Difference;
Adjustment unit is configured as being adjusted the brightness of the human face region according to first difference, making adjusted Luminance difference is in first preset threshold range.
8. mobile terminal according to claim 5, which is characterized in that the mobile terminal further include:
First computing module is configured as calculating being averaged between the brightness of the first part and the brightness of the second part Value;
Second computing module, if being configured as the average value not in the 4th preset threshold range, calculate the average value with The second difference between the central value of 4th preset threshold range;
Second adjustment module is configured as being adjusted the brightness of the human face region according to second difference, making to adjust Average value afterwards is in the 4th preset threshold range.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4 The step of described in any item image processing methods.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the computer program realize image processing method according to any one of claims 1 to 4 when being executed by processor Step.
CN201811584360.5A 2018-12-24 2018-12-24 Image processing method and mobile terminal Active CN109727212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811584360.5A CN109727212B (en) 2018-12-24 2018-12-24 Image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811584360.5A CN109727212B (en) 2018-12-24 2018-12-24 Image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109727212A true CN109727212A (en) 2019-05-07
CN109727212B CN109727212B (en) 2021-05-04

Family

ID=66297072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811584360.5A Active CN109727212B (en) 2018-12-24 2018-12-24 Image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109727212B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930335A (en) * 2019-11-27 2020-03-27 维沃移动通信有限公司 Image processing method and electronic equipment
CN113365400A (en) * 2021-05-31 2021-09-07 中建二局土木工程集团有限公司 Multi-period street lamp control system based on artificial intelligence and video analysis
CN114268745A (en) * 2020-09-16 2022-04-01 北京小米移动软件有限公司 Brightness adjusting method, device, equipment and storage medium
CN115953267A (en) * 2023-03-09 2023-04-11 中川建投集团有限公司 Intelligent construction site management system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544478A (en) * 2013-10-09 2014-01-29 五邑大学 All-dimensional face detection method and system
CN105608677A (en) * 2015-12-28 2016-05-25 成都品果科技有限公司 Image skin color beautifying method and system under any lighting conditions
CN106210522A (en) * 2016-07-15 2016-12-07 广东欧珀移动通信有限公司 A kind of image processing method, device and mobile terminal
CN106791451A (en) * 2017-02-28 2017-05-31 上海传英信息技术有限公司 A kind of photographic method of intelligent terminal
CN107507144A (en) * 2017-08-18 2017-12-22 苏州科达科技股份有限公司 Processing method, device and the image processing apparatus of colour of skin enhancing
CN107707838A (en) * 2017-09-11 2018-02-16 广东欧珀移动通信有限公司 Image processing method and device
CN107818285A (en) * 2016-09-12 2018-03-20 北京金山云网络技术有限公司 A kind of skin color detection method and device
CN108200351A (en) * 2017-12-21 2018-06-22 深圳市金立通信设备有限公司 Image pickup method, terminal and computer-readable medium
CN108734676A (en) * 2018-05-21 2018-11-02 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN108875471A (en) * 2017-06-19 2018-11-23 北京旷视科技有限公司 The method, apparatus and computer storage medium of facial image bottom library registration

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544478A (en) * 2013-10-09 2014-01-29 五邑大学 All-dimensional face detection method and system
CN105608677A (en) * 2015-12-28 2016-05-25 成都品果科技有限公司 Image skin color beautifying method and system under any lighting conditions
CN106210522A (en) * 2016-07-15 2016-12-07 广东欧珀移动通信有限公司 A kind of image processing method, device and mobile terminal
CN107818285A (en) * 2016-09-12 2018-03-20 北京金山云网络技术有限公司 A kind of skin color detection method and device
CN106791451A (en) * 2017-02-28 2017-05-31 上海传英信息技术有限公司 A kind of photographic method of intelligent terminal
CN108875471A (en) * 2017-06-19 2018-11-23 北京旷视科技有限公司 The method, apparatus and computer storage medium of facial image bottom library registration
CN107507144A (en) * 2017-08-18 2017-12-22 苏州科达科技股份有限公司 Processing method, device and the image processing apparatus of colour of skin enhancing
CN107707838A (en) * 2017-09-11 2018-02-16 广东欧珀移动通信有限公司 Image processing method and device
CN108200351A (en) * 2017-12-21 2018-06-22 深圳市金立通信设备有限公司 Image pickup method, terminal and computer-readable medium
CN108734676A (en) * 2018-05-21 2018-11-02 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930335A (en) * 2019-11-27 2020-03-27 维沃移动通信有限公司 Image processing method and electronic equipment
CN114268745A (en) * 2020-09-16 2022-04-01 北京小米移动软件有限公司 Brightness adjusting method, device, equipment and storage medium
CN113365400A (en) * 2021-05-31 2021-09-07 中建二局土木工程集团有限公司 Multi-period street lamp control system based on artificial intelligence and video analysis
CN113365400B (en) * 2021-05-31 2022-05-31 中建二局土木工程集团有限公司 Multi-period street lamp control system based on artificial intelligence and video analysis
CN115953267A (en) * 2023-03-09 2023-04-11 中川建投集团有限公司 Intelligent construction site management system

Also Published As

Publication number Publication date
CN109727212B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN107665697B (en) A kind of adjusting method and mobile terminal of screen intensity
CN108459797B (en) Control method of folding screen and mobile terminal
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN109727212A (en) A kind of image processing method and mobile terminal
CN107817939A (en) A kind of image processing method and mobile terminal
CN109461117A (en) A kind of image processing method and mobile terminal
CN108492246A (en) A kind of image processing method, device and mobile terminal
CN107977652A (en) The extracting method and mobile terminal of a kind of screen display content
CN107864336B (en) A kind of image processing method, mobile terminal
CN107786811B (en) A kind of photographic method and mobile terminal
CN110275599A (en) A kind of information display method and terminal device
CN107895352A (en) A kind of image processing method and mobile terminal
US20230014409A1 (en) Detection result output method, electronic device and medium
CN109685915A (en) A kind of image processing method, device and mobile terminal
CN110045807A (en) A kind of voltage control method and terminal
CN109145731A (en) A kind of fingerprint identification method, device and mobile terminal
CN107888765A (en) A kind of method of handoff scenario pattern, mobile terminal
CN109167914A (en) A kind of image processing method and mobile terminal
CN109819166A (en) A kind of image processing method and electronic equipment
CN109379539A (en) A kind of screen light compensation method and terminal
CN109739300A (en) A kind of method of controlling antenna and terminal
CN109388223A (en) One kind putting out screen display method, apparatus and terminal
CN108881782A (en) A kind of video call method and terminal device
CN109144393A (en) A kind of image display method and mobile terminal
CN108984145A (en) A kind of brightness adjusting method and electronic equipment

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