CN109816602A - A kind of processing method and terminal of image - Google Patents

A kind of processing method and terminal of image Download PDF

Info

Publication number
CN109816602A
CN109816602A CN201811630173.6A CN201811630173A CN109816602A CN 109816602 A CN109816602 A CN 109816602A CN 201811630173 A CN201811630173 A CN 201811630173A CN 109816602 A CN109816602 A CN 109816602A
Authority
CN
China
Prior art keywords
area
region
gray value
image
adjustment region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811630173.6A
Other languages
Chinese (zh)
Inventor
刘智杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201811630173.6A priority Critical patent/CN109816602A/en
Publication of CN109816602A publication Critical patent/CN109816602A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of processing method of image and terminals, which comprises the human face region in image to be processed is divided into first area, second area and third region;The gray value for reducing first area, obtains the first adjustment region;Reduce the gray value of at least one the first sub- adjustment region in the first adjustment region at a distance from second area within the scope of the first pre-determined distance, obtain third adjustment region, and increase the gray value of at least one third subregion in third region at a distance from second area within the scope of the second pre-determined distance, obtain the 4th adjustment region.By means of the invention it is possible to the texture effect of face area that is simple, convenient and efficiently increasing image.

Description

A kind of processing method and terminal of image
Technical field
The present invention relates to field of image processing more particularly to the processing methods and terminal of a kind of image.
Background technique
In recent years, digital technology is fast-developing, user recorded by way of taking pictures the dribs and drabs of life at For a kind of fashion, thus, user requires the photo oneself shot also higher and higher.Currently, the equipment for taking pictures is increasingly More, various figure softwares of repairing emerge one after another, and user is also higher and higher for the functionality and the requirement of superior degree of repairing figure software, especially The function of U.S. face, user be intended to greatly U.S. face effect and it is true oneself more close to being also more intended to naturally, but again Higher than true effect.
In the prior art, the U.S. face application about mill skin and U.S. type class emerges one after another, and for mill skin, U.S. type, much U.S. face is answered With all having accomplished relatively good effect, but in most cases, determine the U.S. face effect an of photo it is whether superior it is decisive because Element is the texture effect of the face area of the image taken, if the texture effect of the face area of a photo is poor, Instant later-stage utilization mill skin, U.S. type etc. carry out repairing figure, and image effect will not be highly desirable.And in the prior art, it is to utilize stretching The contrast of whole image and the method for shade is added to whole image to mould texture, and can not be simple, convenient and efficiently increased Add the texture effect of the face area of image.
Summary of the invention
The embodiment of the present invention provides the processing method and terminal of a kind of image, in the prior art can not simple, side with solution Just the problem of and efficiently increasing the texture effect of face area of image.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, a kind of processing method of image is provided, this method comprises:
Human face region in image to be processed is divided into first area, second area and third region, described first The gray value in region is located at first interval range and is greater than the gray value of the second area, the gray value position of the second area In second interval range and greater than the gray value in the third region, the gray value in the third region is located at 3rd interval model It encloses;
The gray value for reducing the first area obtains the first adjustment region;
It reduces in the first adjustment region at a distance from the second area within the scope of the first pre-determined distance at least The gray value of one the first sub- adjustment region, obtains third adjustment region, and increase in the third region with secondth area The gray value of at least one third subregion of the distance in domain within the scope of the second pre-determined distance, obtains the 4th adjustment region.
Second aspect provides a kind of terminal, which includes:
Division module, for the human face region in image to be processed to be divided into first area, second area and third Region, the gray value of the first area are located at first interval range and are greater than the gray value of the second area, and described second The gray value in region is located at second interval range and is greater than the gray value in the third region, the gray value position in the third region In 3rd interval range;
Module is adjusted, is used for:
The gray value for reducing the first area obtains the first adjustment region;
It reduces in the first adjustment region at a distance from the second area within the scope of the first pre-determined distance at least The gray value of one the first sub- adjustment region, obtains third adjustment region, and increase in the third region with secondth area The gray value of at least one third subregion of the distance in domain within the scope of the second pre-determined distance, obtains the 4th adjustment region.
The third aspect provides a kind of terminal, which includes processor, memory and be stored on the memory simultaneously The computer program that can be run on the processor realizes such as first party when the computer program is executed by the processor The step of method described in face.
Fourth aspect provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium Computer program is stored in matter, and the step of method as described in relation to the first aspect is realized when the computer program is executed by processor Suddenly.
In embodiments of the present invention, the human face region of image to be processed is handled, rather than to the whole of image to be processed Body is handled, and when handling human face region, and human face region is divided into first area, second area and third area Domain according to Image Adjusting dynamics, reduces the gray value of first area later, obtains the first adjustment region, reduces the first adjustment area The gray value of at least one the first sub- adjustment region in domain at a distance from second area within the scope of the first pre-determined distance, and increase The gray value of at least one third subregion in high third region at a distance from second area within the scope of the second pre-determined distance, First carry out the integrated regulation of stereoscopic effect to the human face region of image to be processed, then at a distance from second area in pre-determined distance Human face region in range carries out fining adjustment, can simple, conveniently and efficiently promote the stereoscopic effect of human face region, from Skin bottom pulls open texture, and then increases the texture effect of the face area of image.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow diagram of the processing method for the image that one embodiment of the present of invention provides;
Fig. 2 be another embodiment of the present invention provides image processing method flow diagram;
Fig. 3 is the flow diagram of the processing method for the image that yet another embodiment of the present invention provides;
Fig. 4 is the flow diagram of the processing method for the image that another embodiment of the invention provides;
Fig. 5 is the flow diagram of the processing method for the image that another embodiment of the invention provides;
Fig. 6 is the structural schematic diagram for the terminal that one embodiment of the present of invention provides;
Fig. 7 be another embodiment of the present invention provides terminal structural schematic diagram;
Fig. 8 is the structural schematic diagram for the terminal that yet another embodiment of the present invention provides;
Fig. 9 is the structural schematic diagram for the terminal that another embodiment of the invention provides;
Figure 10 is the hardware structural diagram for realizing a kind of terminal of each embodiment of the present invention.
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.
Fig. 1 is the flow diagram of the processing method for the image that one embodiment of the present of invention provides.As shown in Figure 1, figure The processing method of picture may comprise steps of:
Human face region in image to be processed is divided into first area, second area and third region by step 101.
Wherein, the gray value of first area is located at first interval range and is greater than the gray value of second area, second area Gray value be located at second interval range and be greater than the gray value in third region, the gray value in third region is located at 3rd interval model It encloses.
It is understood to one skilled in the art that in the art, black-ash-white consecutive variations gray value is quantified as 256 A gray value, the range of gray value are 0 to 255, and the color in correspondence image is from black to white.The range of gray value is divided into First interval range, second interval range and 3rd interval range, illustratively, first interval range be (A, 255], second Interval range be (B, A], 3rd interval range is [0, B], in practical application, the value of A, B can be set according to actual needs, with Divide above-mentioned first area, second area and third region.
Specifically, first area is highlight regions, second area is Medium grey area, and third region is shadow region.
Step 102, the gray value for reducing first area, obtain the first adjustment region.
Step 104, reduce the first adjustment region at a distance from second area within the scope of the first pre-determined distance at least The gray value of one the first sub- adjustment region, obtains third adjustment region, and increases in third region at a distance from second area The gray value of at least one third subregion within the scope of the second pre-determined distance, obtains the 4th adjustment region.
At this point, the first adjustment area update is third adjustment region, third area update is the 4th adjustment region.
Wherein, at least one in the first adjustment region at a distance from second area within the scope of the first pre-determined distance is reduced The gray value of first sub- adjustment region is to reduce the ash in the first adjustment region close to or close to the subregion of second area Angle value;Increase at least one third subregion in third region at a distance from second area within the scope of the second pre-determined distance Gray value is to increase the gray value in third region close to or close to the subregion of second area.
In reducing the first adjustment region at a distance from second area within the scope of the first pre-determined distance at least one the When the gray value of one sub- adjustment region, specifically, can reduce in the first adjustment region at a distance from the boundary of second area The gray value of the first sub- adjustment region within the scope of first pre-determined distance.Illustratively, second area is the circle that radius is D1 Y1, the first pre-determined distance range are as follows: S1, the sub- adjustment region at least one of reduced the first adjustment region first are as follows: first The first sub- adjustment region in adjustment region in the concentric circles that the identical and radius with the center of circle of round Y1 is D1+S1.
At least one third in increasing third region at a distance from second area within the scope of the second pre-determined distance When the gray value in region, specifically, can increase in third region at a distance from the boundary of second area in the second pre-determined distance The gray value of third subregion in range.Illustratively, second area is the round Y1 that radius is D1, the second pre-determined distance model It encloses are as follows: S2, at least one third subregion in the third region increased are as follows: in the center of circle phase with round Y1 in third region Same and radius is the third subregion in the concentric circles of D1+S2.
Through this embodiment, the human face region of image to be processed is handled, rather than to image to be processed it is whole into Row processing, and when handling human face region, human face region is divided into first area, second area and third region, it Afterwards, according to Image Adjusting dynamics, the gray value of first area is reduced, obtains the first adjustment region, is reduced in the first adjustment region With the gray value of at least one the first sub- adjustment region at a distance from second area within the scope of the first pre-determined distance, and increase The gray value of at least one third subregion in three regions at a distance from second area within the scope of the second pre-determined distance, it is first right The human face region of image to be processed carries out the integrated regulation of stereoscopic effect, then at a distance from second area in pre-determined distance range Interior human face region carries out fining adjustment, the stereoscopic effect of human face region can simple, conveniently and be efficiently promoted, from skin Bottom pulls open texture, and then increases the texture effect of the face area of image.
In one embodiment of the present invention, above-mentioned steps 101 may include:
The grayscale image of image to be processed is obtained, the human face region in grayscale image is identified, human face region is divided into the firstth area Domain, second area and third region.
Further, when image to be processed be color image when, obtain the grayscale image of image to be processed, may include: to It handles the black pure color of one layer of addition on image and is superimposed template, to obtain the grayscale image of image to be processed.In this way, by figure to be processed The grayscale image that image to be processed is obtained as the black pure color superposition template of upper one layer of addition, can readily obtain image to be processed Grayscale image, and can be avoided the former data for damaging image to be processed.
It should be noted that the grayscale image for obtaining image to be processed may be other enforceable modes, the present invention is real Example is applied to be not specifically limited herein.
In one embodiment of the present invention, above-mentioned steps 102 may include:
According to image procossing dynamics, the gray value of first area is reduced, obtains the first adjustment region;
Above-mentioned steps 104 may include:
According to image procossing dynamics, reduce in the first adjustment region at a distance from second area in the first pre-determined distance range The gray value of the sub- adjustment region of at least one interior first, obtains third adjustment region, and increase in third region with the secondth area The gray value of at least one third subregion of the distance in domain within the scope of the second pre-determined distance, obtains the 4th adjustment region.
Wherein, Image Adjusting dynamics indicates the size of the adjustment amplitude to the gray value of image, specifically, Image Adjusting power Degree is bigger, indicates bigger to the adjustment amplitude of the gray value of image, and Image Adjusting dynamics is smaller, indicates to the gray value of image Adjustment amplitude is smaller.
Above-mentioned Image Adjusting dynamics can be what received user selected according to actual needs, can be and uses based on the received Family require picture effect determine, can be it is preset, be also possible to automatically according to image to be processed content determine 's.
Specifically, Image Adjusting dynamics can be set to multiple ranks, for example, setting first for Image Adjusting dynamics Level image adjusts dynamics, second level Image Adjusting dynamics and third level Image Adjusting dynamics.
The present embodiment can adjust the gray value of each region, allow to basis according to the image procossing dynamics of setting The actual demands such as user demand or scene demand, are adjusted the gray value of each region, obtain the matter for meeting actual demand Feel the face area of effect.
Fig. 2 be another embodiment of the present invention provides image processing method flow diagram.As shown in Fig. 2, The processing method of described image can also include: in addition to including above-mentioned step 101 shown in FIG. 1, step 102 and step 104
Step 103, the gray value for reducing second area.
It should be noted that being illustrated so that step 103 executes after step 102 as an example in Fig. 2, in practical application In, there is no limit illustratively, step 103 can also be held the execution sequence of step 103 and step 102 before step 102 Row, alternatively, step 103 can also be performed simultaneously with step 102.
Through this embodiment, by reducing the gray value of second area, second area has been deepened, figure can be further increased The texture effect of the face area of picture.
Further, above-mentioned steps 103 may include:
According to image procossing dynamics, the gray value of second area is reduced.In this way, can be according to the image procossing power of setting Degree, adjusts the gray value of second area, allows to according to the actual demands such as user demand or scene demand, to second area Gray value is adjusted, and obtains the face area for the texture effect for meeting actual demand.
Fig. 3 is the flow diagram of the processing method for the image that yet another embodiment of the present invention provides.As shown in figure 3, The processing method of described image except include above-mentioned step 101 shown in Fig. 2 to step 104 in addition to, can also include:
Defect areas in step 201, identification human face region.
Step 202 is modified defect areas.
Wherein, defect areas includes: at least one of spot region, small pox region, pore region.
Through this embodiment, the defect areas of human face region can also be modified, further promotes the face of image The texture effect in region.
Further, step 202 may include:
Dynamics is corrected according to flaw, defect areas is modified.
Wherein, flaw amendment dynamics indicates the size to the amendment amplitude of defect areas, specifically, flaw amendment dynamics is got over Greatly, indicate bigger to the amendment amplitude of defect areas, flaw amendment dynamics is smaller, and the amendment amplitude of defect areas is got in expression It is small.
Above-mentioned flaw amendment dynamics can be what received user selected according to actual needs, can be and uses based on the received What the picture effect that family requires determined, it can be preset, be also possible to the defect areas automatically according to image to be processed Determining.
Specifically, flaw can be corrected dynamics is set as multiple ranks, for example, setting first for flaw amendment dynamics Rank flaw corrects dynamics, second level flaw amendment dynamics and third level flaw and corrects dynamics.
Through this embodiment, can also defect areas to human face region be modified according to flaw amendment dynamics so that Defect areas can be modified, the matter for meeting actual demand is obtained according to the actual demands such as user demand or scene demand Feel the face area of effect.
Fig. 4 is the flow diagram of the processing method for the image that another embodiment of the invention provides.As shown in figure 4, The processing method of described image is in addition to including above-mentioned step 101 shown in Fig. 3 to step 104, step 201 to step 202, also May include:
Step 301 carries out the processing of overstriking noise to the 4th adjustment region.
Step 302 carries out second area to increase thin impurity treatment.
Step 303 carries out third adjustment region to increase acutance processing.
It should be noted that in Fig. 4 by first carry out step 301, again execute step 302, finally execute step 303 for into Row explanation, in practical applications, above-mentioned steps 301, step 302, there is no limit illustratively, can for the execution sequence of step 303 It, can also be according to step 302, step 301, the sequence of step 303 to be performed simultaneously above-mentioned steps 301, step 302, step 303 It is executed.
Through this embodiment, the processing of overstriking noise is carried out to the 4th adjustment region, second area is carried out to increase thin impurity Processing, to third adjustment region carry out increase acutance processing, can the skin skin texture to human face region handle, further mention Rise the texture effect of the face area of image.
Further, step 301 may include:
According to the first texture strength disposal, the processing of overstriking noise is carried out to the 4th adjustment region.
Further, step 302 may include:
According to the second texture strength disposal, second area is carried out to increase thin impurity treatment.
Further, step 303 may include:
According to third texture strength disposal, third adjustment region is carried out to increase acutance processing.
Wherein, texture strength disposal indicates the size of the processing amplitude to the region of image, specifically, texture strength disposal It is bigger, indicate bigger to the processing amplitude in the region of image, texture strength disposal is smaller, indicates the processing width to the region of image It spends smaller.
Above-mentioned texture strength disposal can be what received user selected according to actual needs, can be and uses based on the received Family require picture effect determine, can be it is preset, be also possible to automatically according to image to be processed content determine 's.
Specifically, texture strength disposal can be set to multiple ranks, for example, setting first for texture strength disposal Rank texture strength disposal, second level texture strength disposal and third level texture strength disposal.
Specifically, above-mentioned first texture strength disposal, the second texture strength disposal, third texture strength disposal can be identical It can also be different.
In this way, can also the skin skin texture to human face region handled according to texture strength disposal, allow to basis The actual demands such as user demand or scene demand handle the skin skin texture of human face region, obtain meeting actual demand The face area of texture effect further promotes the texture effect of the face area of image.
Fig. 5 is the flow diagram of the processing method for the image that another embodiment of the invention provides.As shown in figure 5, The processing method of described image except include above-mentioned step 101 shown in Fig. 2 to step 104 in addition to, can also include:
Step 401 carries out the processing of overstriking noise to the 4th adjustment region.
Step 402 carries out second area to increase thin impurity treatment.
Step 403 carries out third adjustment region to increase acutance processing.
Step 401,402,403 are corresponding with above-mentioned steps 301,302,303 respectively, and details are not described herein by the present invention.
Through this embodiment, the processing of overstriking noise is carried out to the 4th adjustment region, second area is carried out to increase thin impurity Processing, to third adjustment region carry out increase acutance processing, can the skin skin texture to human face region handle, further mention Rise the texture effect of the face area of image.
Processing method of the Fig. 3 into Fig. 5 by image is illustrated for including step 103, in another implementation of the invention In mode, the processing method of image of the Fig. 3 into Fig. 5 can not also include step 103.
In one embodiment of the present invention, after above-mentioned steps 104, can also include:
Judge whether user is satisfied to gray value present image treatment effect adjusted is carried out.
If it is not, redefine Image Adjusting dynamics, and according to the Image Adjusting dynamics redefined, execute step 102 with Step 104, alternatively, executing step 102, step 103 and step 104.
Through this embodiment, it can adjust in real time when user is dissatisfied to present image treatment effect, be convenient for user's root Image processing effect is adjusted according to actual demand, promotes user experience.
Further, the step of redefining Image Adjusting dynamics may include:
The Image Adjusting dynamics that user adjusts is determined as the figure redefined by the Image Adjusting dynamics for obtaining user's adjustment As adjustment dynamics.
In one embodiment of the present invention, after above-mentioned steps 202, can also include:
Judge whether user is satisfied to the revised present image treatment effect of flaw is carried out;
If it is not, redefining flaw amendment dynamics, and dynamics is corrected according to the flaw redefined, defect areas is carried out Amendment.
Through this embodiment, it can adjust in real time when user is dissatisfied to present image treatment effect, be convenient for user's root Image processing effect is adjusted according to actual demand, promotes user experience.
Further, the step of flaw corrects dynamics is redefined, may include:
The flaw for obtaining user's adjustment corrects dynamics, and the flaw amendment dynamics of user's adjustment is determined as the flaw redefined Defect corrects dynamics.
In one embodiment of the present invention, after above-mentioned steps 301 or above-mentioned steps 401, can also include:
Judge whether user is satisfied to present image treatment effect;
If it is not, redefining the first texture strength disposal, according to the first texture strength disposal redefined, step is executed 301 or step 401.
Further, the first texture strength disposal is redefined, comprising:
The first texture strength disposal that user adjusts is determined as again by the first texture strength disposal for obtaining user's adjustment The first determining texture strength disposal.
In one embodiment of the present invention, after above-mentioned steps 302 or above-mentioned steps 402, can also include:
Judge whether user is satisfied to present image treatment effect;
If it is not, redefining the second texture strength disposal, according to the second texture strength disposal redefined, step is executed 302 or step 402.
Further, the second texture strength disposal is redefined, comprising:
The second texture strength disposal that user adjusts is determined as again by the second texture strength disposal for obtaining user's adjustment The second determining texture strength disposal.
In one embodiment of the present invention, after above-mentioned steps 303 or above-mentioned steps 403, can also include:
Judge whether user is satisfied to present image treatment effect;
If it is not, redefining third texture strength disposal, according to the third texture strength disposal redefined, step is executed 303 or step 403.
Further, third texture strength disposal is redefined, comprising:
The third texture strength disposal that user adjusts is determined as again by the third texture strength disposal for obtaining user's adjustment Determining third texture strength disposal.
Through the foregoing embodiment, it can adjust in real time when user is dissatisfied to present image treatment effect, be convenient for user Image processing effect is adjusted according to actual needs, promotes user experience.
Fig. 6 is the structural schematic diagram for the terminal that one embodiment of the present of invention provides.As shown in fig. 6, terminal may include:
Division module 51, for the human face region in image to be processed to be divided into first area, second area and Three regions, the gray value of the first area are located at first interval range and are greater than the gray value of the second area, and described the The gray value in two regions is located at second interval range and is greater than the gray value in the third region, the gray value in the third region Positioned at 3rd interval range;
Module 52 is adjusted, is used for:
The gray value for reducing the first area obtains the first adjustment region;
It reduces in the first adjustment region at a distance from the second area within the scope of the first pre-determined distance at least The gray value of one the first sub- adjustment region, obtains third adjustment region, and increase in the third region with secondth area The gray value of at least one third subregion of the distance in domain within the scope of the second pre-determined distance, obtains the 4th adjustment region.
In one embodiment of the present invention, above-mentioned adjustment module 52, is also used to:
Reduce the gray value of the second area.
Fig. 7 be another embodiment of the present invention provides terminal structural schematic diagram.As shown in fig. 7, terminal can be with Include:
Identification module 53, for identification defect areas in the human face region;
Correction module 54 is modified the defect areas for correcting dynamics according to flaw.
Fig. 8 is the structural schematic diagram for the terminal that yet another embodiment of the present invention provides.As shown in figure 8, terminal can be with Include:
Processing module 55, is used for:
The processing of overstriking noise is carried out to the 4th adjustment region;
The second area is carried out to increase thin impurity treatment;
The third adjustment region is carried out to increase acutance processing.
It should be noted that division module 51, adjustment module 52 and processing module 55 are only shown in Fig. 8, in the present invention Other embodiments in, terminal may include: division module 51, adjustment module 52, identification module 53, correction module 54 and Processing module 55.
In one embodiment of the present invention, the processing module 55, is specifically used for:
According to the first texture strength disposal, the processing of overstriking noise is carried out to the 4th adjustment region.
In one embodiment of the present invention, the processing module 55, is specifically used for:
According to the second texture strength disposal, the second area is carried out to increase thin impurity treatment.
In one embodiment of the present invention, the processing module 55, is specifically used for:
According to third texture strength disposal, the third adjustment region is carried out to increase acutance processing.
In one embodiment of the present invention, the adjustment module 52, is specifically used for:
According to Image Adjusting dynamics, the gray value of the first area is reduced, obtains the first adjustment region;
Dynamics is adjusted according to described image, is reduced in the first adjustment region at a distance from the second area described The gray value of at least one first sub- adjustment region within the scope of first pre-determined distance, obtains the third adjustment region, And at least one described in increasing in the third region at a distance from the second area within the scope of second pre-determined distance The gray value of a third subregion obtains the 4th adjustment region.
Fig. 9 is the structural schematic diagram for the terminal that another embodiment of the invention provides.In one embodiment of the present invention In, as shown in figure 9, terminal can also include:
First judgment module 56, for judging whether user imitates the processing of the adjustment module 52 present image adjusted Fruit is satisfied;
The adjustment module 52, be also used to: if it is not, redefine described image adjustment dynamics, and according to redefining Image Adjusting dynamics reduces the gray value of the first area, obtains the first adjustment region, reduces the first adjustment area In domain at a distance from the second area within the scope of first pre-determined distance described at least one first sub- adjustment region Gray value, obtain the third adjustment region, and increase in the third region at a distance from the second area described The gray value of at least one third subregion within the scope of second pre-determined distance, obtains the 4th adjustment region.
In one embodiment of the present invention, the adjustment module 52, is specifically used for:
The Image Adjusting dynamics for obtaining user's adjustment, by the Image Adjusting dynamics that the user adjusts be determined as it is described again Determining Image Adjusting dynamics.
In one embodiment of the present invention, as shown in figure 9, above-mentioned terminal can also include:
Second judgment module 57, for judging whether user imitates the processing of the correction module 54 revised present image Fruit is satisfied;
The correction module 54 is also used to if it is not, redefine flaw amendment dynamics, and according to the institute redefined Flaw amendment dynamics is stated, the defect areas is modified.
In one embodiment of the present invention, the adjustment module 52, is specifically used for:
The flaw for obtaining user's adjustment corrects dynamics, by flaw that the user adjusts amendment dynamics be determined as it is described again Determining flaw corrects dynamics.
In one embodiment of the present invention, as shown in figure 9, above-mentioned terminal can also include:
Third judgment module 58, for judging user whether to carry out overstriking noise to the processing module 55, treated works as Preceding image processing effect is satisfied;
The processing module 55 is also used to if it is not, the first texture strength disposal is redefined, according to what is redefined First texture strength disposal carries out the processing of overstriking noise to the 4th adjustment region.
In one embodiment of the present invention, the processing module 55, is specifically used for:
The first texture strength disposal of user's adjustment is obtained, the first texture strength disposal that the user is adjusted is determined as The first texture strength disposal redefined
In one embodiment of the present invention, as shown in figure 9, above-mentioned terminal can also include:
4th judgment module 59, for judging whether user carries out after increasing thin impurity treatment the processing module 55 Present image treatment effect is satisfied;
The processing module 55 is also used to if it is not, the second texture strength disposal is redefined, according to what is redefined Second texture strength disposal carries out the second area to increase thin impurity treatment.
In one embodiment of the present invention, the processing module 55, is specifically used for:
The second texture strength disposal of user's adjustment is obtained, the second texture strength disposal that the user is adjusted is determined as The second texture strength disposal redefined.
In one embodiment of the present invention, as shown in figure 9, above-mentioned terminal can also include:
5th judgment module 50, for judging whether user carries out increasing acutance that treated works as to the processing module 55 Preceding image processing effect is satisfied;
The processing module 55 is also used to if it is not, the third texture strength disposal is redefined, according to what is redefined Third texture strength disposal carries out the third adjustment region to increase acutance processing.
In one embodiment of the present invention, the processing module 55, is specifically used for:
The third texture strength disposal for obtaining user's adjustment, the third texture strength disposal that the user adjusts is determined as The third texture strength disposal redefined.
Terminal provided in an embodiment of the present invention can be realized each mistake that terminal is realized in the embodiment of the method for Fig. 1 to Fig. 5 Journey, to avoid repeating, which is not described herein again.Terminal provided in an embodiment of the present invention carries out the human face region of image to be processed Processing, rather than is handled the entirety of image to be processed, and when handling human face region, and human face region is divided into the One region, second area and third region according to Image Adjusting dynamics, reduce the gray value of first area, obtain first later Adjustment region, reduce the first adjustment region at a distance from second area within the scope of the first pre-determined distance at least one first The gray value of sub- adjustment region, and increase in third region at a distance from second area within the scope of the second pre-determined distance at least The gray value of one third subregion, first carries out the integrated regulation of stereoscopic effect to the human face region of image to be processed, then to Human face region of the distance of second area within the scope of pre-determined distance carries out fining adjustment, can simply, conveniently and efficiently The stereoscopic effect for promoting human face region pulls open texture from skin bottom, and then increases the texture effect of the face area of image.
Figure 10 is the hardware structural diagram for realizing a kind of terminal of each embodiment of the present invention, the terminal 600 include but It is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, the components such as user input unit 607, interface unit 608, memory 609, processor 610 and power supply 611.This field Technical staff is appreciated that the restriction of the not structure paired terminal of terminal structure shown in Figure 10, and terminal may include than diagram More or fewer components perhaps combine certain components or different component layouts.In embodiments of the present invention, terminal packet Include but be not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 610, is used for:
Human face region in image to be processed is divided into first area, second area and third region, described first The gray value in region is located at first interval range and is greater than the gray value of the second area, the gray value position of the second area In second interval range and greater than the gray value in the third region, the gray value in the third region is located at 3rd interval model It encloses;
The gray value for reducing the first area obtains the first adjustment region;
It reduces in the first adjustment region at a distance from the second area within the scope of the first pre-determined distance at least The gray value of one the first sub- adjustment region, obtains third adjustment region, and increase in the third region with secondth area The gray value of at least one third subregion of the distance in domain within the scope of the second pre-determined distance, obtains the 4th adjustment region.
Terminal provided in an embodiment of the present invention handles the human face region of image to be processed, rather than to figure to be processed The entirety of picture is handled, and when handling human face region, and human face region is divided into first area, second area and Three regions according to Image Adjusting dynamics, reduce the gray value of first area later, obtain the first adjustment region, reduce by first and adjust The gray value of at least one the first sub- adjustment region in the domain of main plot at a distance from second area within the scope of the first pre-determined distance, And increase the ash of at least one third subregion in third region at a distance from second area within the scope of the second pre-determined distance Angle value, first carries out the integrated regulation of stereoscopic effect to the human face region of image to be processed, then at a distance from second area pre- It, can solid that is simple, convenient and efficiently promoting human face region if the human face region in distance range carries out fining adjustment Effect pulls open texture from skin bottom, and then increases the texture effect of the face area of image.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 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 610 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other set Standby communication.
Terminal 600 provides wireless broadband internet by network module 602 for user and accesses, and such as helps user's transmitting-receiving Email, browsing webpage and access streaming video etc..
Audio output unit 603 can be received by radio frequency unit 601 or network module 602 or in memory 609 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also provide and end The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 600 executes.Sound Frequency output unit 603 includes loudspeaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor (Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 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 606.Through graphics processor 6041, treated that picture frame can be deposited Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike Wind 6042 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 601 is converted in the case where telephone calling model.
Terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 6061, and proximity sensor can close display panel when terminal 600 is moved in one's ear 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 605 can be with Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensor etc., details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap Display panel 6061 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 6061.
User input unit 607 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 607 include touch panel 6071 and other Input equipment 6072.Touch panel 6071, also referred to as touch screen, collect user on it or nearby touch operation (such as User is using any suitable objects or attachment such as finger, stylus on touch panel 6071 or near touch panel 6071 Operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receives processor 610 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments 6072. Specifically, other input equipments 6072 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 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touching The type for touching event provides corresponding visual output on display panel 6061.Although in Figure 10, touch panel 6071 and aobvious Show that panel 6061 is the function that outputs and inputs of realizing terminal 600 as two independent components, but in some embodiments In, touch panel 6071 and display panel 6061 can be integrated and be realized the function that outputs and inputs of terminal 600, specifically herein Without limitation.
Interface unit 608 is the interface that external device (ED) is connect with terminal 600.For example, external device (ED) may include it is wired or Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port, For connecting port, the port audio input/output (I/O), video i/o port, ear port of the device with identification module Etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will One or more elements that the input received is transferred in terminal 600 or can be used for terminal 600 and external device (ED) it Between transmit data.
Memory 609 can be used for storing software program and various data.Memory 609 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 609 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 610 is the control centre of terminal 600, utilizes each of various interfaces and the entire terminal 600 of connection Part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in memory Data in 609 execute the various functions and processing data of terminal 600, to carry out integral monitoring to terminal 600.Processor 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611 can be with It is logically contiguous by power-supply management system and processor 610, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
In addition, terminal 600 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal, including processor 610, and memory 609 is stored in storage It is real when which is executed by processor 610 on device 609 and the computer program that can be run on the processor 610 Each process of the processing method embodiment of existing above-mentioned image, and identical technical effect can be reached, to avoid repeating, here not It repeats again.
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 the processing method embodiment of above-mentioned image when being executed by processor, and Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as Read-only 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 processing method of image characterized by comprising
Human face region in image to be processed is divided into first area, second area and third region, the first area Gray value be located at first interval range and be greater than the gray value of the second area, the gray value of the second area is located at the Two interval ranges and the gray value for being greater than the third region, the gray value in the third region are located at 3rd interval range;
The gray value for reducing the first area obtains the first adjustment region;
Reduce at least one in the first adjustment region at a distance from the second area within the scope of the first pre-determined distance The gray value of first sub- adjustment region, obtains third adjustment region, and increase in the third region with the second area The gray value of at least one third subregion of the distance within the scope of the second pre-determined distance, obtains the 4th adjustment region.
2. method as shown in claim 1, which is characterized in that further include:
Reduce the gray value of the second area.
3. method according to claim 1 or 2, which is characterized in that further include:
Identify the defect areas in the human face region;
Dynamics is corrected according to flaw, the defect areas is modified.
4. method according to claim 1 or 2, which is characterized in that further include:
The processing of overstriking noise is carried out to the 4th adjustment region;
The second area is carried out to increase thin impurity treatment;
The third adjustment region is carried out to increase acutance processing.
5. method as claimed in claim 4, which is characterized in that described to be carried out at overstriking noise to the 4th adjustment region Reason, comprising:
According to the first texture strength disposal, the processing of overstriking noise is carried out to the 4th adjustment region.
6. a kind of terminal characterized by comprising
Division module, for the human face region in image to be processed to be divided into first area, second area and third region, The gray value of the first area is located at first interval range and is greater than the gray value of the second area, the second area Gray value is located at second interval range and is greater than the gray value in the third region, and the gray value in the third region is located at third Interval range;
Module is adjusted, is used for:
The gray value for reducing the first area obtains the first adjustment region;
Reduce at least one in the first adjustment region at a distance from the second area within the scope of the first pre-determined distance The gray value of first sub- adjustment region, obtains third adjustment region, and increase in the third region with the second area The gray value of at least one third subregion of the distance within the scope of the second pre-determined distance, obtains the 4th adjustment region.
7. terminal as claimed in claim 6, which is characterized in that the adjustment module is also used to:
Reduce the gray value of the second area.
8. terminal as claimed in claims 6 or 7, which is characterized in that further include:
Identification module, for identification defect areas in the human face region;
Correction module is modified the defect areas for correcting dynamics according to flaw.
9. terminal as claimed in claims 6 or 7, which is characterized in that further include:
Processing module is used for:
The processing of overstriking noise is carried out to the 4th adjustment region;
The second area is carried out to increase thin impurity treatment;
The third adjustment region is carried out to increase acutance processing.
10. terminal as claimed in claim 9, which is characterized in that the processing module is specifically used for:
According to the first texture strength disposal, the processing of overstriking noise is carried out to the 4th adjustment region.
CN201811630173.6A 2018-12-29 2018-12-29 A kind of processing method and terminal of image Pending CN109816602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811630173.6A CN109816602A (en) 2018-12-29 2018-12-29 A kind of processing method and terminal of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811630173.6A CN109816602A (en) 2018-12-29 2018-12-29 A kind of processing method and terminal of image

Publications (1)

Publication Number Publication Date
CN109816602A true CN109816602A (en) 2019-05-28

Family

ID=66602798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811630173.6A Pending CN109816602A (en) 2018-12-29 2018-12-29 A kind of processing method and terminal of image

Country Status (1)

Country Link
CN (1) CN109816602A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483711A (en) * 2007-08-31 2009-07-15 卡西欧计算机株式会社 Gradation correction device, gradation correction method and gradation correction program
CN103226810A (en) * 2012-01-26 2013-07-31 索尼公司 Image processing apparatus and image processing method
CN104318262A (en) * 2014-09-12 2015-01-28 上海明穆电子科技有限公司 Method and system for replacing skin through human face photos
CN104992402A (en) * 2015-07-02 2015-10-21 广东欧珀移动通信有限公司 Facial beautification processing method and device
CN105303523A (en) * 2014-12-01 2016-02-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN105791709A (en) * 2015-12-29 2016-07-20 福建星网锐捷通讯股份有限公司 Automatic exposure processing method and apparatus with back-light compensation
CN107945107A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and electronic equipment
CN108038836A (en) * 2017-11-29 2018-05-15 维沃移动通信有限公司 A kind of image processing method, device and mobile terminal
CN108230331A (en) * 2017-09-30 2018-06-29 深圳市商汤科技有限公司 Image processing method and device, electronic equipment, computer storage media
CN108391111A (en) * 2018-02-27 2018-08-10 深圳Tcl新技术有限公司 Image definition adjusting method, display device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483711A (en) * 2007-08-31 2009-07-15 卡西欧计算机株式会社 Gradation correction device, gradation correction method and gradation correction program
CN103226810A (en) * 2012-01-26 2013-07-31 索尼公司 Image processing apparatus and image processing method
CN104318262A (en) * 2014-09-12 2015-01-28 上海明穆电子科技有限公司 Method and system for replacing skin through human face photos
CN105303523A (en) * 2014-12-01 2016-02-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN104992402A (en) * 2015-07-02 2015-10-21 广东欧珀移动通信有限公司 Facial beautification processing method and device
CN105791709A (en) * 2015-12-29 2016-07-20 福建星网锐捷通讯股份有限公司 Automatic exposure processing method and apparatus with back-light compensation
CN108230331A (en) * 2017-09-30 2018-06-29 深圳市商汤科技有限公司 Image processing method and device, electronic equipment, computer storage media
CN108038836A (en) * 2017-11-29 2018-05-15 维沃移动通信有限公司 A kind of image processing method, device and mobile terminal
CN107945107A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and electronic equipment
CN108391111A (en) * 2018-02-27 2018-08-10 深圳Tcl新技术有限公司 Image definition adjusting method, display device and computer readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
杨建荣: "《数码摄影》", 31 August 2016, 中国广播影视出版社 *
高志坚: "《多媒体技术及其应用》", 31 August 2009, 同济大学出版社 *
齐从谦: "《多媒体软件应用技术》", 30 September 2003, 航空工业出版社 *

Similar Documents

Publication Publication Date Title
CN108492246A (en) A kind of image processing method, device and mobile terminal
CN108108007A (en) A kind of processing method and mobile terminal for reducing power consumption
CN107943374A (en) The startup method and collapsible terminal of application program in collapsible terminal
CN107832110A (en) A kind of information processing method and mobile terminal
CN108227996A (en) A kind of display control method and mobile terminal
CN108628565A (en) A kind of mobile terminal operating method and mobile terminal
CN107977652A (en) The extracting method and mobile terminal of a kind of screen display content
CN107707825A (en) A kind of panorama shooting method, mobile terminal and computer-readable recording medium
CN109327668A (en) A kind of method for processing video frequency and device
CN110209313A (en) Icon moving method and terminal device
CN109215683A (en) A kind of reminding method and terminal
CN109710349A (en) A kind of screenshotss method and mobile terminal
CN109658886A (en) A kind of control method and terminal of display screen
CN109558046A (en) A kind of information display method and terminal device
CN109388223A (en) One kind putting out screen display method, apparatus and terminal
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
CN109727212A (en) A kind of image processing method and mobile terminal
CN110018805A (en) A kind of display control method and mobile terminal
CN109871253A (en) A kind of display methods and terminal
CN109671034A (en) A kind of image processing method and terminal device
CN109542572A (en) A kind of interface display method and mobile terminal
CN108881782A (en) A kind of video call method and terminal device
CN109413264A (en) A kind of background picture method of adjustment and terminal device
CN109451144A (en) A kind of message treatment method and terminal device
CN108600544A (en) A kind of Single-hand control method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528