CN110533651B - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN110533651B
CN110533651B CN201910809934.2A CN201910809934A CN110533651B CN 110533651 B CN110533651 B CN 110533651B CN 201910809934 A CN201910809934 A CN 201910809934A CN 110533651 B CN110533651 B CN 110533651B
Authority
CN
China
Prior art keywords
skin condition
user
skin
condition score
image
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.)
Active
Application number
CN201910809934.2A
Other languages
Chinese (zh)
Other versions
CN110533651A (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 CN201910809934.2A priority Critical patent/CN110533651B/en
Publication of CN110533651A publication Critical patent/CN110533651A/en
Application granted granted Critical
Publication of CN110533651B publication Critical patent/CN110533651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • G06T7/0014Biomedical image inspection using an image reference approach
    • G06T7/0016Biomedical image inspection using an image reference approach involving temporal comparison
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30088Skin; Dermal

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The invention provides an image processing method and device, and relates to the technical field of data processing. The method is applied to the electronic equipment and comprises the following steps: acquiring a first user image; determining a first skin condition score corresponding to the first user image; generating a skin condition comparison image according to the first skin condition score and the at least one historical skin condition score; the historical skin condition score is a skin condition score corresponding to a second user image acquired before the first user image; and displaying the skin condition contrast image. In the embodiment of the invention, the electronic equipment can determine the current skin condition score of the user by analyzing the shot user image, and compares the current skin condition score with the historical skin condition score for display, so that the user can know the current skin condition of the user and the change of the skin condition within a period of time through the skin condition comparison image, therefore, the electronic equipment can provide the information about the skin condition for the user by analyzing the shot image, and the information amount provided by the shot image is increased.

Description

Image processing method and device
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to an image processing method and device.
Background
Along with the improvement of the photographing requirement of the user, the performance of the electronic equipment is also continuously improved. The photographing function is one of important basic functions of electronic devices, and is frequently used by users in daily life.
Currently, most electronic devices can only realize basic image capturing functions and some image editing functions, such as adding filters, adjusting the size of a picture, blurring a background, and the like. Therefore, the existing photographing function is single, and less information is provided for the user.
Disclosure of Invention
The invention provides an image processing method and device, and aims to solve the problems that a photographing function is single and information provided for a user is less.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an image processing method is provided, which is applied to an electronic device, and includes:
acquiring a first user image;
determining a first skin condition score corresponding to the first user image;
generating a skin condition comparison image according to the first skin condition score and at least one historical skin condition score; the historical skin condition score is a skin condition score corresponding to a second user image acquired prior to the first user image;
and displaying the skin condition contrast image.
In a second aspect, an embodiment of the present invention provides an image processing apparatus, including:
the acquisition module is used for acquiring a first user image;
a first determining module, configured to determine a first skin condition score corresponding to the first user image;
a second determination module for generating a skin condition comparison image according to the first skin condition score and at least one historical skin condition score; the historical skin condition score is a skin condition score corresponding to a second user image acquired prior to the first user image;
and the display module is used for displaying the skin condition contrast image.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the image processing method according to the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the image processing method according to the present invention.
In the embodiment of the invention, the electronic device may first acquire the first user image, determine the first skin condition score corresponding to the first user image, and further generate and display the skin condition comparison image according to the first skin condition score and at least one historical skin condition score. In the embodiment of the invention, the electronic equipment can determine the current skin condition score of the user by analyzing the shot user image, and compares the current skin condition score with the historical skin condition score for display, so that the user can know the current skin condition of the user and the change of the skin condition within a period of time through the skin condition comparison image, therefore, the electronic equipment can provide the information about the skin condition for the user by analyzing the shot image, and the information quantity provided by the shooting function is increased.
Drawings
Fig. 1 is a flowchart illustrating steps of an image processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an image processing method according to a second embodiment of the present invention;
FIG. 3 is a skin condition contrast image in the form of a line graph provided by the second embodiment of the present invention;
FIG. 4 is another skin condition contrast image provided by the second embodiment of the present invention;
FIG. 5 is a schematic diagram of a suggestion information interface provided by the second embodiment of the present invention;
FIG. 6 is a schematic diagram of another suggestion information interface provided by the second embodiment of the invention;
FIG. 7 is a schematic diagram of another suggestion information interface provided by the second embodiment of the invention;
FIG. 8 is a flowchart illustrating steps of an image processing method according to a third embodiment of the present invention;
FIG. 9 is a flowchart illustrating steps of an image processing method according to a fourth embodiment of the present invention;
FIG. 10 is a flowchart illustrating steps of an image processing method according to a fifth embodiment of the present invention;
fig. 11 is a block diagram of an image processing apparatus according to a sixth embodiment of the present invention;
fig. 12 is a block diagram of an image processing apparatus according to a seventh embodiment of the present invention;
fig. 13 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart illustrating steps of an image processing method according to an embodiment of the present invention, where as shown in fig. 1, the method may include:
step 101, an electronic device acquires a first user image.
In the embodiment of the invention, the first user image can be obtained by shooting by the user through the electronic equipment. In practical applications, the first user image may include a skin region of the user, such as a face region.
In step 102, the electronic device determines a first skin condition score corresponding to the first user image.
In practical applications, the first skin condition score is determined by the electronic device according to a skin condition of the user, which may include at least one dimension of skin condition parameters, for example, the skin condition of the user may include the number of pox, the number of blackheads, and the like, which is not particularly limited in the embodiments of the present invention.
In the embodiment of the present invention, since the skin condition of the user may include skin condition parameters of at least one dimension, in an alternative implementation, the electronic device may determine the score of the first user image corresponding to each dimension respectively according to the skin condition parameters corresponding to each dimension, that is, the first skin condition score may include a single score corresponding to each dimension, in this case, the first skin condition score is also a set of scores.
For example, in a case where the user skin condition includes the number of pox and the number of blackheads, the electronic device may determine a score in a dimension of the number of pox and a score in a dimension of the number of blackheads, respectively, and the first skin condition score may include a single score corresponding to the two dimensions of the number of pox and the number of blackheads.
In yet another alternative implementation manner, after determining the score of each dimension, the electronic device may further perform a weighted summation on the scores of the dimensions to obtain a composite score, where the composite score is the first skin condition score corresponding to the first user image.
For example, when the skin condition of the user includes the number of pox and the number of blackheads, the electronic device may determine the score of the dimension of the number of pox and the score of the dimension of the number of blackheads, respectively, and perform weighted summation on the scores of the two dimensions to obtain the first skin condition score.
In step 103, the electronic device generates a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, wherein the historical skin condition score is a skin condition score corresponding to a second user image acquired before the first user image.
In the embodiment of the present invention, the second user image and the first user image may be obtained in the same manner, that is, the second user image may be obtained by the user through the electronic device. The historical skin condition score and the first skin condition score may be determined in the same manner.
The second user image and the historical skin condition score are obtained before the electronic device acquires the first user image, that is, before the first user image is acquired, the historical skin condition score corresponding to each second user image is stored in the electronic device.
Step 104, the electronic device displays the skin condition contrast image.
In the embodiment of the invention, the skin condition comparison image can display the first skin condition score and at least one historical skin condition score in the form of a chart such as a line graph, a bar graph and the like, so that a user can intuitively know the skin condition of the user in a certain time period from the score data change of the skin condition comparison image.
In the embodiment of the invention, the electronic device can firstly acquire the first user image, determine the first skin condition score corresponding to the first user image, and further generate and display the skin condition comparison image according to the first skin condition score and at least one historical skin condition score. In the embodiment of the invention, the electronic equipment can determine the current skin condition score of the user by analyzing the shot user image, and compares the current skin condition score with the historical skin condition score for display, so that the user can know the current skin condition of the user and the change of the skin condition within a period of time through the skin condition comparison image, therefore, the electronic equipment can provide the information about the skin condition for the user by analyzing the shot image, and the information quantity provided by the shooting function is increased.
Example two
Fig. 2 is a flowchart illustrating steps of an image processing method according to a second embodiment of the present invention, and as shown in fig. 2, the method may include:
in step 201, an electronic device acquires a first user image.
The step 101 may be referred to for the implementation process of this step, and details of the embodiment of the present invention are not described herein again.
In step 202, the electronic device determines a first skin condition score corresponding to the first user image.
The implementation process of this step may refer to step 102, and is not described herein again in this embodiment of the present invention.
In step 203, the electronic device generates a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, wherein the historical skin condition score is a skin condition score corresponding to a second user image acquired before the first user image.
Optionally, the implementation manner of step 203 may include:
sub-step 2031, the electronic device plots the first skin condition score and the at least one historical skin condition score in a predetermined two-dimensional coordinate axis in time order, respectively.
The horizontal axis of the preset two-dimensional coordinate axis can represent time, and the vertical axis of the preset two-dimensional coordinate axis can represent skin condition scores. The time represented by the horizontal axis may be specifically in units of hours, days, or months, which is not limited in the embodiment of the present invention.
For example, fig. 3 is a skin condition comparison image in the form of a line graph provided in the second embodiment of the present invention, as shown in fig. 3, a horizontal axis of the preset two-dimensional coordinate axis may represent a month, and a vertical axis of the preset two-dimensional coordinate axis may represent a skin condition score.
In sub-step 2032, the electronic device connects the first skin condition score and the at least one historical skin condition score drawn in the preset two-dimensional coordinate axis in sequence according to time sequence to obtain a skin condition comparison image.
In the embodiment of the present invention, the skin condition scores and the skin condition parameters corresponding to different dimensions may be in a direct ratio, and the skin condition scores and the skin condition parameters corresponding to different dimensions may also be in an inverse ratio.
Taking the parameter of the dimension of the number of blackheads in the skin condition of the user as an example, the skin condition score of the dimension can be in direct proportion to the skin condition parameter of the dimension, that is, the more the number of blackheads is, the higher the skin condition score of the dimension is; the skin condition score of the dimension can also be inversely proportional to the skin condition parameter of the dimension, i.e., the greater the number of blackheads, the lower the skin condition score of the dimension.
For example, in the embodiment of the present invention, the skin condition score and the skin condition parameter may be inversely proportional to the blackhead number dimension, the pox number dimension, and the pouch size dimension, and may be directly proportional to the skin whitening degree dimension.
Taking the first skin condition score including the score corresponding to blackhead number dimension, the score corresponding to pox number dimension, the score corresponding to fair skin degree dimension, and the score corresponding to pouch size dimension at the current time as an example, referring to fig. 3, the score of blackhead number in january is 40, the score of blackhead number in march is 36, the score of blackhead number in may is 35, the score of blackhead number in july is 30, the score of blackhead number in september is 30, and the score of blackhead number in november is 25. The scores of the blackheads corresponding to November are included in the first skin condition score, and the scores of the blackheads corresponding to January, March, May, July, September and November are historical skin condition scores. The electronic device may sequentially connect the scores corresponding to the above-mentioned number of blackheads per month in time series on the horizontal axis, so that a blackhead number comparison curve as shown in fig. 3 may be obtained.
Similarly, the number of vaccinia corresponds to a score of 48 at january, 41 at march, 40 at may, 38 at july, 35 at september, and 30 at november. The scores of the pox number corresponding to November are included in the first skin condition score, and the scores of the pox number corresponding to January, March, May, July, September and November are historical skin condition scores. The electronic device may sequentially connect the scores corresponding to the above-mentioned number of vaccinia per month in time series on the horizontal axis, so that a comparison curve of the number of vaccinia shown in fig. 3 may be obtained.
Similarly, the pouch size corresponds to a score of 30 at january, 25 at march, 25 at may, 18 at july, 15 at september and 10 at november. The pouch size corresponds to the score in november, namely the score is included in the first skin condition score, and the pouch size corresponds to the scores in january, march, may, july, september and november, which are all historical skin condition scores. The electronic device may sequentially connect scores corresponding to the pouch sizes for each month in a time order of the horizontal axis, so that a pouch size comparison curve as shown in fig. 3 may be obtained.
Similarly, a skin whitening level corresponds to a score of 60 at january, 70 at march, 78 at may, 85 at july, 88 at september and 90 at november. The score of the skin whitening degree corresponding to november is included in the first skin condition score, and the scores of the skin whitening degree corresponding to january, march, may, july, september and november are history skin condition scores. The electronic device can sequentially connect the scores of the white degree corresponding to each month according to the time sequence of the horizontal axis, so as to obtain a skin white degree comparison curve as shown in fig. 3.
And drawing graphs with a blackhead number comparison curve, a pockmark number comparison curve, an eye pouch size comparison curve and a skin fair degree comparison curve to obtain the skin condition comparison image.
It should be noted that fig. 3 only illustrates a skin condition contrast image including the above-described four-dimensional contrast curves, and fig. 3 does not limit the present invention.
Optionally, the user may click on a skin condition contrast curve corresponding to a certain dimension in the skin condition contrast image, and accordingly, the electronic device may hide the skin condition contrast curves except the skin condition contrast curve clicked by the user, so that the user may separately see the skin condition contrast curve corresponding to the selected dimension. For example, the user may click to select a fair skin degree contrast curve in the skin condition contrast image, and accordingly, the electronic device may hide the blackhead number contrast curve, the pockmark number contrast curve, and the pouch size contrast curve except the fair skin degree contrast curve, and then the user may separately see the selected fair skin degree contrast curve in the skin condition contrast image, as shown in fig. 4.
In step 204, the electronic device determines the target suggestion information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing along with time.
The target advice information may include at least one of skin care advice information, sleep advice information, diet advice information, and exercise advice information, and may also include other advice information, which is not particularly limited in this embodiment of the present invention.
In the embodiment of the present invention, when the first skin condition score and each historical skin condition score are sequentially increased in time order, the electronic device may determine that the skin condition is a trend of gradually improving, that is, the skin condition change trend is an improvement trend. It is to be understood that, when the historical skin condition score includes at least three scores, there may be a low score or a high score which is greatly different from other scores, in which case, such a low score or a high score should be regarded as a special data point, and accordingly, when determining the skin condition change trend, the electronic device may exclude the special data point, and as long as the first skin condition score and each historical skin condition score are approximately in an increasing trend in time sequence, the skin condition change trend may be determined as an improvement trend, and the electronic device may determine the target suggestion information corresponding to the improvement trend.
In the embodiment of the present invention, when the first skin condition score and each historical skin condition score are sequentially decreased in time order, the electronic device may determine that the skin condition is a trend of gradually deteriorating, that is, the skin condition change trend is a worsening trend. It is to be understood that, when the historical skin condition score includes at least three scores, there may be a low score or a high score which is greatly different from other scores, in which case, such a low score or a high score should be regarded as a special data point, and accordingly, when determining the skin condition change trend, the electronic device may exclude the special data point, and as long as the first skin condition score and each historical skin condition score are approximately in a descending trend in time series, the skin condition change trend may be determined as a deterioration trend, and the electronic device may determine the target suggestion information corresponding to the deterioration trend.
Optionally, as shown in fig. 3, the curve corresponding to the degree of skin whitening gradually increases, and the change trend of the skin condition of the degree of skin whitening is an improvement trend; the curves corresponding to the pox number, the blackhead number and the pouch number are in a gradually decreasing trend, the skin condition change trend corresponding to the three dimensions of the pox number, the blackhead number and the pouch size is in a deterioration trend, and then the electronic device can determine target suggestion information corresponding to the deterioration trend.
In the embodiment of the invention, when the first skin condition score is basically consistent with each historical skin condition score, namely the difference between the scores is very small, the skin condition change trend is a leveling trend, and further the electronic device can determine the target suggestion information corresponding to the leveling trend.
In step 205, the electronic device outputs the target suggestion information.
Optionally, the target suggestion information may be presented to the user in a form of a text box or the like, which is not limited in the embodiment of the present invention. When the target suggestion information includes at least two types, the target suggestion information may be output in respective text boxes respectively and presented to the user, or may be output together in the same text box and presented to the user, and the comparison in the embodiment of the present invention is not limited.
In an embodiment of the present invention, the content of the skin care advice information may include: recommending the user to use the corresponding skin care product, recommending the user to use the smearing method of the skin care product, or recommending the user to adopt the corresponding sun protection measure, etc. The content of the sleep advice information may include: advising the user to sleep early, get up early, etc. The contents of the diet advice information may include: more vitamin products such as vegetables and carrots are eaten, and spicy food or more water is forbidden to be eaten. The content of the motion advice information may include: advising the user to do yoga, advising the user to run in the morning, or advising the user to stay in a standing state within half an hour after having eaten food, etc.
For example, referring to fig. 5, when the skin condition variation trend is a deterioration trend, the content of the target advice information may be: the people are advised to sleep early and get up early, and more vitamin products such as vegetables, carrots and the like are eaten, and more attention is paid to physical exercise. Wherein, the early sleep and early rise is sleep advice information, the multi-eating vitamin products such as vegetables and carrots are diet advice information, and the multi-attention physical exercise is exercise advice information.
For another example, referring to fig. 6, when the skin condition change trend is an improvement trend, the content of the target advice information may be: the number of pox on the right face is reduced, the skin of other areas of the face is smooth, the overall skin score is 50 points and is improved relative to the score of 41 points which are 30 days ago, and the prior recommended whitening product has the effect! And there are also related whitening product recommendations. Wherein, the related whitening product recommendation is skin care recommendation information.
Alternatively, the electronic device may display targeted advice information prompting the user to take new images of the user at intervals to guide the user to know his skin condition periodically, such as "take a self-portrait after a few days" as shown in FIG. 7, to remember to print a card! ".
Optionally, referring to fig. 5, fig. 6 or fig. 7, the electronic device may further identify the skin condition problem in the face region by a box or the like, for example, identify a region with pockmpox concentrated, so that the user can more clearly know the skin condition of the user.
In practical applications, the first skin condition score and the at least one historical skin condition score may also be displayed to the user in the form of text boxes or the like, or the first skin condition score and the at least one historical skin condition score may be displayed in text boxes corresponding to the target suggestion information, as shown in fig. 5, fig. 6, or fig. 7, which is not limited in this embodiment of the present invention.
In step 206, the electronic device displays the skin condition contrast image.
The implementation process of this step may refer to step 104, and is not described herein again in this embodiment of the present invention.
In the embodiment of the invention, the electronic device may first acquire the first user image, determine a first skin condition score corresponding to the first user image, then generate a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, determine target suggestion information according to skin condition change trends of the first skin condition score and the at least one historical skin condition score changing with time, output the target suggestion information, and finally display the skin condition comparison image. In the embodiment of the invention, the electronic device can determine the target suggestion information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing along with the time, output the target suggestion information, and finally display the skin condition comparison image, so that the user can visually check the skin condition score, the skin condition change trend and the corresponding suggestion information in a certain time period from the skin condition comparison image, and the user can know measures for improving the skin condition from the output suggestion information.
EXAMPLE III
Fig. 8 is a flowchart illustrating steps of an image processing method according to a third embodiment of the present invention, where as shown in fig. 8, the method may include:
in step 301, an electronic device obtains a first user image.
The step 101 may be referred to for the implementation process of this step, and details of the embodiment of the present invention are not described herein again.
In step 302, the electronic device determines a first skin condition score corresponding to the first user image.
The implementation process of this step may refer to step 102, and is not described herein again in this embodiment of the present invention.
In step 303, the electronic device generates a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, where the historical skin condition score is a skin condition score corresponding to a second user image acquired prior to the first user image.
The implementation process of this step may refer to step 103 and step 203, which is not described herein again in this embodiment of the present invention.
And step 304, the electronic equipment updates the historical suggestion information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing along with time, so as to obtain the target suggestion information.
Wherein the target advice information includes at least one of skin care advice information, sleep advice information, diet advice information, and exercise advice information.
In the embodiment of the invention, when the skin condition change trend is an improvement trend, the electronic equipment updates the historical suggestion information according to the improvement trend to obtain the corresponding target suggestion information. And when the skin condition change trend is a deterioration trend, the electronic equipment updates the historical suggestion information according to the deterioration trend to obtain corresponding target suggestion information. And when the skin condition change trend is a flat trend, the electronic equipment updates the historical suggestion information according to the flat trend to obtain corresponding target suggestion information.
Taking the historical suggestion information as 'suggesting to use skin care products with stronger drug properties and improving the situation of more pox on the right face' as an example, when the change trend of the skin condition is an improvement trend, the electronic equipment updates the historical suggestion information according to the improvement trend, and the obtained content of the target suggestion information can be as follows: it is recommended that you continue to maintain recent skin care and lifestyle habits and that more gentle skin care products can be used. When the skin condition change trend is a deterioration trend, the electronic device updates the historical suggestion information according to the deterioration trend, and the obtained target suggestion information may be: the number of pox is more on the right face, and the situation is aggravated! The acne conditioning skin care product with strong medicinal property is recommended to be used.
In step 305, the electronic device outputs the target suggestion information.
The implementation process of this step may refer to step 205, and is not described herein again in this embodiment of the present invention.
In step 306, the electronic device displays the skin condition contrast image.
The implementation process of this step may refer to step 104, and is not described herein again in this embodiment of the present invention.
In the embodiment of the invention, the electronic device may first acquire the first user image, determine a first skin condition score corresponding to the first user image, then generate a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, update the historical suggestion information according to a skin condition change trend of the first skin condition score and the at least one historical skin condition score changing with time, obtain the target suggestion information, then output the target suggestion information, and finally display the skin condition comparison image. In the embodiment of the invention, the electronic equipment can update the historical suggestion information according to the skin condition change trend to obtain the target suggestion information and output the target suggestion information, and finally display the skin condition comparison image, so that the user can visually check the skin condition score, the skin condition change trend and the updated corresponding suggestion information in a certain time period from the skin condition comparison image, and thus the user can know the effect of the measures which are performed according to the historical suggestion information in the output suggestion information.
Example four
Fig. 9 is a flowchart illustrating steps of an image processing method according to a fourth embodiment of the present invention, and as shown in fig. 9, the method may include:
in step 401, an electronic device obtains a first user image.
The step 101 may be referred to for the implementation process of this step, and details of the embodiment of the present invention are not described herein again.
Step 402, the electronic device performs face recognition on the first user image to obtain a face region in the first user image.
In the embodiment of the present invention, the implementation manner of this step may refer to related technologies, and will not be described in detail here. For example, in specific applications, the electronic device may perform face recognition on the first user image by using a third-party face recognition tool face + +, so as to obtain a face region in the first user image.
In step 403, the electronic device determines the average value of the skin color of the face region.
In practical application, the average value of skin color is also the average value of pixels of the pixel points of skin color. The electronic equipment can delete the pixel area where the five sense organs are located in the face area, and then average the pixels of the rest face areas, so that the skin color average value of the face area can be obtained.
In step 404, the electronic device determines a first skin condition score corresponding to the skin condition of the user in the first user image based on the average skin color value.
In practical application, because the skin background color of each person is different, the electronic device can determine the skin condition of the user based on the average skin color value of the current user, so that the skin condition of the user can be determined for the users with different skin background colors, and the accuracy of determining the skin condition of the user can be improved.
For example, in an alternative implementation, the skin tone pixel value ranges may be grouped, and the electronic device may build and train different machine learning models according to different user skin condition dimensions and different groupings. For example, the electronic device may build and train a first machine learning model for the pox number dimension and the first skin tone pixel value range, may build and train a second machine learning model for the pox number dimension and the second skin tone pixel value range, may build and train a third machine learning model for the blackhead number dimension and the first skin tone pixel value range, may build and train a fourth machine learning model for the blackhead number dimension and the second skin tone pixel value range, and so on. The electronic device can input the first user image into the trained machine learning model, so that the machine learning model can output skin condition parameters of the first user image corresponding to each dimensionality, and further determine a first skin condition score.
The electronic device can implement the step of determining the first skin condition score corresponding to the first user image through the steps 402 to 404.
In step 405, the electronic device generates a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, wherein the historical skin condition score is a skin condition score corresponding to a second user image acquired before the first user image.
The implementation process of this step may refer to step 103 and step 203, which is not described herein again in this embodiment of the present invention.
In step 406, the electronic device displays the skin condition contrast image.
The implementation process of this step may refer to step 104, and is not described herein again in this embodiment of the present invention.
In the embodiment of the present invention, the electronic device may first obtain a first user image, perform face recognition on the first user image, obtain a face region in the first user image, further determine a skin color average value of the face region, determine a first skin condition score corresponding to a skin condition of a user in the first user image based on the skin color average value, and further generate and display a skin condition comparison image according to the first skin condition score and at least one historical skin condition score. In the embodiment of the invention, the electronic device may determine the first skin condition score corresponding to the first user image based on the average skin color value of the face region in the first user image, that is, for users with different skin ground colors, the skin condition of the user may be determined, so that the accuracy of determining the skin condition of the user is improved.
EXAMPLE five
Fig. 10 is a flowchart of steps of an image processing method according to a fifth embodiment of the present invention, and as shown in fig. 10, the method may include:
step 501, an electronic device acquires a first user image.
The step 101 may be referred to for the implementation process of this step, and details of the embodiment of the present invention are not described herein again.
Step 502, the electronic device performs face recognition on the first user image to obtain a face region in the first user image.
The step 402 may be referred to in the implementation process of this step, and the embodiment of the present invention is not described herein again.
In step 503, the electronic device determines the average value of the skin color of the face region.
The implementation process of this step may refer to step 403, and details of the embodiment of the present invention are not described herein.
Step 504, the electronic device determines a first skin condition score corresponding to the skin condition of the user in the first user image based on the average skin color value; the user skin condition includes at least one of a pox number, a blackhead number, a spot number, an eye pouch area, a black eye color depth, a skin roughness, and a skin whiteness.
In practical applications, the skin condition of the user may further include skin condition parameters of other dimensions, which is not limited in the embodiment of the present invention.
Optionally, in this embodiment of the present invention, the parameter of each dimension in the skin condition of the user may be obtained by inputting the first user image into a trained machine learning model, where the trained machine learning model may be obtained by inputting a plurality of sample images for training. Of course, in a specific application, the step of determining the parameter of each dimension in the skin condition of the user may also be implemented by referring to other related technologies, and this is not specifically limited in the embodiment of the present invention.
Taking the number of the smallpox in the skin condition of the user as an example, at least 1000 sample images are collected for the skin problem such as the smallpox, and the electronic device identifies the position and the number of the smallpox in the at least 1000 sample images. The electronic equipment can establish an initial machine learning model, and each calibrated sample image is taken as training data, and each calibrated sample image is respectively and sequentially input into the initial machine learning model so as to adjust parameters of the initial machine learning model. And when all the training data are input, finishing the training of the initial machine learning model, and obtaining the trained machine learning model. Of course, after model training is complete, the trained machine learning model may also be tested to determine its accuracy. And the electronic device can input the first user image into the trained and tested machine learning model, and the machine learning model can identify the positions of the variola in the first user image and output the number of the variola.
In step 505, the electronic device generates a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, wherein the historical skin condition score is a skin condition score corresponding to a second user image acquired before the first user image.
The implementation process of this step may refer to step 103 and step 203, which is not described herein again in this embodiment of the present invention.
In step 506, the electronic device displays the skin condition contrast image.
The implementation process of this step may refer to step 104, and is not described herein again in this embodiment of the present invention.
In the embodiment of the present invention, the electronic device may first obtain a first user image, perform face recognition on the first user image, obtain a face region in the first user image, further determine a skin color average value of the face region, then determine a first skin condition score corresponding to a user skin condition in the first user image based on the skin color average value, where the user skin condition includes at least one of a pox number, a blackhead number, a speckle number, an eye pouch area, a black eye color depth, a skin roughness, and a skin whiteness degree, and then generate a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, and display the skin condition comparison image. In the embodiment of the present invention, the skin condition of the user may include at least one of the number of pox, the number of blackheads, the number of spots, the area of pouch, the area of black eye, the color depth of black eye, the roughness of skin, and the degree of white skin, and when the electronic device determines the first skin condition score according to the parameters of different dimensions, the electronic device may obtain the first skin condition scores corresponding to different dimensions, so that the user may know the skin conditions of different dimensions.
EXAMPLE six
Fig. 11 is a block diagram of an image processing apparatus according to a sixth embodiment of the present invention, and as shown in fig. 11, an image processing apparatus 600 includes:
the obtaining module 601 is configured to obtain a first user image.
A first determining module 602, configured to determine a first skin condition score corresponding to the first user image.
A generating module 603 configured to generate a skin condition comparison image according to the first skin condition score and the at least one historical skin condition score; the historical skin condition score is a skin condition score corresponding to a second user image acquired prior to the first user image.
And a display module 604 for displaying the skin condition contrast image.
In the embodiment of the invention, the electronic device may first acquire the first user image through the acquisition module, then determine the first skin condition score corresponding to the first user image through the first determination module, further generate a skin condition comparison image according to the first skin condition score and at least one historical skin condition score through the generation module, and finally display the skin condition comparison image through the display module. The electronic equipment can determine the current skin condition score of the user in an image analysis mode and display the skin condition score in a skin condition comparison image mode, so that the user can know the skin condition of the user through the skin condition comparison image, the photographing function of the electronic equipment is increased, and information can be provided for the user.
EXAMPLE seven
Fig. 12 is a block diagram of an image processing apparatus according to a seventh embodiment of the present invention, and as shown in fig. 12, the image processing apparatus 700 may include:
an obtaining module 701 is configured to obtain a first user image.
A first determining module 702 is configured to determine a first skin condition score corresponding to the first user image.
A generating module 703 for generating a skin condition comparison image according to the first skin condition score and the at least one historical skin condition score; the historical skin condition score is a skin condition score corresponding to a second user image acquired prior to the first user image.
And a display module 704 for displaying the skin condition contrast image.
In the embodiment of the invention, the electronic device may first acquire the first user image through the acquisition module, then determine the first skin condition score corresponding to the first user image through the first determination module, further generate a skin condition comparison image according to the first skin condition score and at least one historical skin condition score through the generation module, and finally display the skin condition comparison image through the display module. The electronic equipment can determine the current skin condition score of the user in an image analysis mode and display the skin condition score in a skin condition comparison image mode, so that the user can know the skin condition of the user through the skin condition comparison image, the photographing function of the electronic equipment is increased, and information can be provided for the user.
Optionally, the image processing apparatus 700 further includes:
a second determining module 705, configured to determine the target suggestion information according to a skin condition variation trend of the first skin condition score and the at least one historical skin condition score over time.
An output module 706 for outputting the target suggestion information.
Wherein the target advice information includes at least one of skin care advice information, sleep advice information, diet advice information, and exercise advice information.
In the embodiment of the invention, the electronic device can determine the target suggestion information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing along with the time, output the target suggestion information, and finally display the skin condition comparison image, so that the user can visually check the skin condition score, the skin condition change trend and the corresponding suggestion information in a certain time period from the skin condition comparison image, and the user can know measures for improving the skin condition from the output suggestion information.
Optionally, the second determining module 705 includes:
the updating sub-module 7051 is configured to update the historical recommendation information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing with time, so as to obtain the target recommendation information.
In the embodiment of the invention, the electronic device can update the historical suggestion information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing along with the time to obtain the target suggestion information, then output the target suggestion information, and finally display the skin condition comparison image, so that the user can visually check the skin condition score, the skin condition change trend and the updated corresponding suggestion information in a certain time period from the skin condition comparison image, and the user can know the effect of the previous measures performed according to the historical suggestion information from the output suggestion information.
Optionally, the first determining module 702 includes:
the face recognition sub-module 7021 is configured to perform face recognition on the first user image to obtain a face region in the first user image.
A first determining sub-module 7022 is used to determine the average value of the skin color of the face region.
A second determining sub-module 7023 is configured to determine a first skin condition score corresponding to the skin condition of the user in the first user image based on the average skin color value.
Optionally, the user skin condition comprises at least one of a number of pox spots, a number of blackheads, a number of spots, an area of eye bags, an area of dark eye circles, a depth of dark eye circles color, a degree of skin roughness, and a degree of skin whiteness.
In the embodiment of the invention, the electronic device may determine the first skin condition score corresponding to the first user image based on the average skin color value of the face region in the first user image, that is, for users with different skin ground colors, the skin condition of the user may be determined, so that the accuracy of determining the skin condition of the user is improved.
Optionally, the user skin condition comprises at least one of a number of pox spots, a number of blackheads, a number of spots, an area of eye bags, an area of dark eye circles, a depth of dark eye circles color, a degree of skin roughness, and a degree of skin whiteness.
In the embodiment of the present invention, the skin condition of the user may include at least one of the number of pox, the number of blackheads, the number of spots, the area of pouch, the area of black eye, the color depth of black eye, the roughness of skin, and the degree of white skin, and when the electronic device determines the first skin condition score according to the skin conditions of the user with different dimensions, the electronic device may obtain the first skin condition scores corresponding to different dimensions, so that the user may know the skin conditions of different dimensions.
Example eight
Fig. 13 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, where the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 13 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 810 is configured to obtain a first user image, determine a first skin condition score corresponding to the first user image, and generate a skin condition comparison image according to the first skin condition score and at least one historical skin condition score, where the historical skin condition score is a skin condition score corresponding to a second user image obtained prior to the first user image; and a display unit 806 for displaying the skin condition contrast image.
In the embodiment of the invention, the electronic device can firstly acquire the first user image, determine the first skin condition score corresponding to the first user image, and further generate and display the skin condition comparison image according to the first skin condition score and at least one historical skin condition score. The electronic equipment can determine the current skin condition score of the user by analyzing the shot image of the user and compare the current skin condition score with the historical skin condition score for display, so that the user can know the current skin condition of the user and the change of the skin condition within a period of time through the skin condition comparison image, and therefore the electronic equipment can provide the information about the skin condition for the user by analyzing the shot image, and the information quantity provided by the shooting function is increased.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 802, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The electronic device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the electronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although the touch panel 8071 and the display panel 8061 are shown in fig. 13 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 808 is an interface for connecting an external device to the electronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby monitoring the whole electronic device. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 800 includes some functional modules that are not shown, and are not described in detail herein.
The embodiment of the present invention further provides an electronic device, which includes a processor 810, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the above-mentioned image processing method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An image processing method applied to an electronic device, the method comprising:
acquiring a first user image;
determining a first skin condition score corresponding to the first user image;
generating a skin condition comparison image according to the first skin condition score and at least one historical skin condition score; the historical skin condition score is a skin condition score corresponding to a second user image acquired prior to the first user image;
displaying the skin condition contrast image;
the step of determining the first skin condition score corresponding to the first user image comprises:
grouping skin color pixel value ranges, and training different machine learning models according to different user skin condition dimensions and different groups; the machine learning model is used to determine a first skin condition score corresponding to the first user image.
2. The method of claim 1, wherein the step of generating a skin condition comparison image based on the first skin condition score and at least one historical skin condition score further comprises:
determining target suggestion information according to skin condition change trends of the first skin condition score and the at least one historical skin condition score changing along with time;
outputting the target suggestion information;
wherein the target advice information includes at least one of skin care advice information, sleep advice information, diet advice information, and exercise advice information.
3. The method of claim 2, wherein the step of determining target recommendation information based on the trend of skin condition changes over time for the first skin condition score and the at least one historical skin condition score comprises:
and updating the historical suggestion information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing along with time to obtain target suggestion information.
4. The method of claim 1, wherein the step of determining a first skin condition score corresponding to the first user image comprises:
performing face recognition on the first user image to obtain a face area in the first user image;
determining a skin color average value of the face region;
based on the skin color average, a first skin condition score corresponding to a user skin condition in the first user image is determined.
5. The method of claim 4, wherein the user skin condition comprises at least one of a number of pox spots, a number of blackheads, a number of spots, an area of eye bags, an area of dark eyes, a depth of dark eye color, a degree of skin roughness, and a degree of skin whitening.
6. An image processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a first user image;
a first determining module, configured to determine a first skin condition score corresponding to the first user image;
a generation module for generating a skin condition comparison image according to the first skin condition score and at least one historical skin condition score; the historical skin condition score is a skin condition score corresponding to a second user image acquired prior to the first user image;
the display module is used for displaying the skin condition comparison image;
the step of determining the first skin condition score corresponding to the first user image comprises:
grouping skin color pixel value ranges, and training different machine learning models according to different user skin condition dimensions and different groups; the machine learning model is used to determine a first skin condition score corresponding to the first user image.
7. The apparatus of claim 6, further comprising:
a second determination module, configured to determine target suggestion information according to a skin condition change trend of the first skin condition score and the at least one historical skin condition score changing with time;
the output module is used for outputting the target suggestion information;
wherein the target advice information includes at least one of skin care advice information, sleep advice information, diet advice information, and exercise advice information.
8. The apparatus of claim 7, wherein the second determining module comprises:
and the updating submodule is used for updating the historical suggestion information according to the skin condition change trend of the first skin condition score and the at least one historical skin condition score changing along with the time to obtain the target suggestion information.
9. The apparatus of claim 6, wherein the first determining module comprises:
the face recognition sub-module is used for carrying out face recognition on the first user image to obtain a face area in the first user image;
the first determining submodule is used for determining the average value of the skin color of the face region;
a second determining sub-module, configured to determine a first skin condition score corresponding to a skin condition of a user in the first user image based on the skin color average.
10. The device of claim 9, wherein the user skin condition comprises at least one of a number of pox spots, a number of blackheads, a number of spots, an eye area, an eye color depth, a skin roughness, and a skin whiteness.
CN201910809934.2A 2019-08-29 2019-08-29 Image processing method and device Active CN110533651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910809934.2A CN110533651B (en) 2019-08-29 2019-08-29 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910809934.2A CN110533651B (en) 2019-08-29 2019-08-29 Image processing method and device

Publications (2)

Publication Number Publication Date
CN110533651A CN110533651A (en) 2019-12-03
CN110533651B true CN110533651B (en) 2022-04-08

Family

ID=68665462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910809934.2A Active CN110533651B (en) 2019-08-29 2019-08-29 Image processing method and device

Country Status (1)

Country Link
CN (1) CN110533651B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113749614B (en) * 2020-06-05 2023-03-10 华为技术有限公司 Skin detection method and apparatus
CN112528734A (en) * 2020-10-29 2021-03-19 长沙市到家悠享家政服务有限公司 Sorting score determining method, device, equipment and storage medium
CN113128377B (en) * 2021-04-02 2024-05-17 西安融智芙科技有限责任公司 Black eye recognition method, black eye recognition device and terminal based on image processing
CN113674829A (en) * 2021-07-13 2021-11-19 广东丸美生物技术股份有限公司 Recommendation method and device for makeup formula

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6008323B2 (en) * 2013-02-01 2016-10-19 パナソニックIpマネジメント株式会社 Makeup support device, makeup support method, and makeup support program
US9687155B2 (en) * 2014-02-20 2017-06-27 Modiface Inc. System, method and application for skin health visualization and quantification
US20180279943A1 (en) * 2014-10-29 2018-10-04 Tissue Analytics, Inc. System and method for the analysis and transmission of data, images and video relating to mammalian skin damage conditions
TWI585711B (en) * 2016-05-24 2017-06-01 泰金寶電通股份有限公司 Method for obtaining care information, method for sharing care information, and electronic apparatus therefor
CN106210517A (en) * 2016-07-06 2016-12-07 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal
CN106952313A (en) * 2017-03-21 2017-07-14 北京工商大学 Skin complexion evaluation method based on HSI and Lab blend color models
CN107437072B (en) * 2017-07-18 2019-01-29 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer readable storage medium
CN107507144B (en) * 2017-08-18 2020-06-16 苏州科达科技股份有限公司 Skin color enhancement processing method and device and image processing device
CN108256500A (en) * 2018-02-05 2018-07-06 广东欧珀移动通信有限公司 Recommendation method, apparatus, terminal and the storage medium of information
CN109381165B (en) * 2018-09-12 2022-05-03 维沃移动通信有限公司 Skin detection method and mobile terminal
CN109363634A (en) * 2018-10-08 2019-02-22 蔡义文 Assessment method, device, mobile phone, computer equipment and the storage medium of skin
CN109618045A (en) * 2018-11-27 2019-04-12 Oppo广东移动通信有限公司 Electronic device, information-pushing method and Related product
CN110033344A (en) * 2019-03-06 2019-07-19 百度在线网络技术(北京)有限公司 Skin care item recommended method, device and storage medium neural network based
CN110175530A (en) * 2019-04-30 2019-08-27 上海云从企业发展有限公司 A kind of image methods of marking and system based on face

Also Published As

Publication number Publication date
CN110533651A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN110533651B (en) Image processing method and device
CN108184050B (en) Photographing method and mobile terminal
CN110969981B (en) Screen display parameter adjusting method and electronic equipment
CN109151180B (en) Object identification method and mobile terminal
CN108427873B (en) Biological feature identification method and mobile terminal
CN108683850B (en) Shooting prompting method and mobile terminal
CN111488057B (en) Page content processing method and electronic equipment
CN109343693B (en) Brightness adjusting method and terminal equipment
CN111459233B (en) Display method, electronic device and storage medium
CN110807405A (en) Detection method of candid camera device and electronic equipment
CN111031234B (en) Image processing method and electronic equipment
CN107895352A (en) A kind of image processing method and mobile terminal
CN109819166B (en) Image processing method and electronic equipment
CN109448069B (en) Template generation method and mobile terminal
CN108198127A (en) A kind of image processing method, device and mobile terminal
CN111080747B (en) Face image processing method and electronic equipment
CN111008929B (en) Image correction method and electronic equipment
CN109639981B (en) Image shooting method and mobile terminal
CN111091519A (en) Image processing method and device
CN108712574B (en) Method and device for playing music based on images
CN112733673B (en) Content display method and device, electronic equipment and readable storage medium
CN107563353B (en) Image processing method and device and mobile terminal
CN111354460B (en) Information output method, electronic equipment and medium
CN111028161B (en) Image correction method and electronic equipment
CN109242767B (en) Method for obtaining beauty parameters and terminal 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