CN107862653B - Image display method, image display device, storage medium and electronic equipment - Google Patents
Image display method, image display device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN107862653B CN107862653B CN201711240742.1A CN201711240742A CN107862653B CN 107862653 B CN107862653 B CN 107862653B CN 201711240742 A CN201711240742 A CN 201711240742A CN 107862653 B CN107862653 B CN 107862653B
- Authority
- CN
- China
- Prior art keywords
- image
- user
- beauty
- displayed
- parameters
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000003796 beauty Effects 0.000 claims abstract description 202
- 238000012545 processing Methods 0.000 claims abstract description 76
- 238000004590 computer program Methods 0.000 claims description 15
- 230000002087 whitening effect Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000001960 triggered effect Effects 0.000 description 8
- 210000000887 face Anatomy 0.000 description 7
- 238000003384 imaging method Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 238000003825 pressing Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 3
- 238000003705 background correction Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 208000020154 Acnes Diseases 0.000 description 1
- 206010014970 Ephelides Diseases 0.000 description 1
- 208000003351 Melanosis Diseases 0.000 description 1
- 208000004350 Strabismus Diseases 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000005282 brightening Methods 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 239000002537 cosmetic Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 210000003811 finger Anatomy 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 210000001747 pupil Anatomy 0.000 description 1
- 230000036555 skin type Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 210000003813 thumb Anatomy 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The application relates to an image display method, an image display device, a storage medium and an electronic device. The method comprises the following steps: receiving a display instruction of an image to be displayed; acquiring the user characteristics of a user viewing the image to be displayed according to the display instruction; acquiring beauty parameters matched with the user characteristics; performing beautifying processing on the image to be displayed according to the beautifying parameters; and displaying the image after the beautifying processing. The image display method, the image display device, the storage medium and the electronic equipment can improve the operation efficiency of beautifying and displaying the image.
Description
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image display method and apparatus, a storage medium, and an electronic device.
Background
With the popularization of intelligent photographing devices, more and more photographing devices can beautify a displayed frame image in a photographing process, for example, people in the image are subjected to skin grinding, whitening and other processing.
The way in which different people are accustomed to beautifying is not necessarily the same for the same captured image. And after the user finishes shooting the image, the beautifying processing mode of the shot image is fixed. And displaying the image according to the fixed beautification processing parameters set in the shooting process. When other people want to display different processing effects on the image, the image needs to be displayed again, image editing is carried out, and different processing effects are selected to generate and display the image with the desired beautification processing effect. The conventional image display method is cumbersome to operate and inefficient.
Disclosure of Invention
The embodiment of the application provides an image display method, an image display device, a storage medium and electronic equipment, which can improve the image display efficiency.
An image display method comprising:
receiving a display instruction of an image to be displayed;
acquiring the user characteristics of a user viewing the image to be displayed according to the display instruction;
acquiring beauty parameters matched with the user characteristics;
performing beautifying processing on the image to be displayed according to the beautifying parameters;
and displaying the image after the beautifying processing.
An image display apparatus, the apparatus comprising:
the display instruction receiving module is used for receiving a display instruction of an image to be displayed;
the user characteristic acquisition module is used for acquiring the user characteristics of the user viewing the image to be displayed according to the display instruction;
the beauty parameter acquisition module is used for acquiring beauty parameters matched with the user characteristics;
the beautifying processing module is used for carrying out beautifying processing on the image to be displayed according to the beautifying parameters;
and the image display module is used for displaying the image after the beautifying processing.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described in the embodiments of the application.
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method in the embodiments of the present application when executing the computer program.
According to the image display method, the image display device, the storage medium and the electronic equipment, the user characteristics of the user can be obtained according to the display instruction of the image to be displayed, and the image to be displayed is subjected to the beautifying processing according to the beautifying parameters matched with the user characteristics, so that the image looked by the user is the image subjected to the beautifying processing, and the beautifying processing of the image to be displayed is different for different users. Compared with the traditional method that the image to be displayed needs to be displayed firstly, and then the beauty parameter of the image to be displayed is beautified, the image display method can directly display the image after the beauty treatment without displaying the original image to be displayed, and improves the operation efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram showing an internal structure of an electronic apparatus according to an embodiment;
FIG. 2 is a flow chart of an image display method in one embodiment;
FIG. 3 is a flowchart of an image display method in another embodiment;
FIG. 4 is a block diagram showing the structure of an image display device according to an embodiment;
FIG. 5 is a block diagram showing the construction of an image display apparatus according to another embodiment;
FIG. 6 is a schematic diagram showing the configuration of an image processing system according to an embodiment;
FIG. 7 is a schematic diagram of an image processing circuit in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 1, the electronic device includes a processor, a memory, a display screen, and a camera connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory is used for storing data, programs and the like, and at least one computer program is stored on the memory, and can be executed by the processor to realize the image display method suitable for the electronic device provided by the embodiment of the application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a database, and a computer program. The database stores data related to an image display method for implementing the embodiments, such as data of an image to be displayed, user characteristics, and beauty parameters. The computer program can be executed by a processor to implement an image display method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The camera can include first camera module and second camera module, all can be used to shoot and generate the image. The display screen may be a touch screen, such as a capacitive screen or an electronic screen, for displaying visual information such as images, and may also be used to detect a touch operation applied to the display screen and generate a corresponding instruction.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. For example, the electronic device may further include a network interface connected via the system bus, and communicate with other devices via the network interface, such as via the network interface and obtain data such as images, user characteristics, and/or beauty parameters on other devices.
In an embodiment, as shown in fig. 2, an image display method is provided, and this embodiment is mainly explained by applying the method to the electronic device shown in fig. 1, where the method includes:
The image to be displayed is an image which needs to be displayed in a beautiful color. The image to be displayed may be acquired by the mobile terminal. The mobile terminal is provided with a camera which can be used for shooting, a user can initiate a shooting instruction through the mobile terminal, and the mobile terminal collects shooting images through the camera after detecting the shooting instruction. It is understood that the image to be displayed may be obtained by other methods, and is not limited herein. For example, the image to be displayed may be downloaded from a web page, or imported from an external storage device, or the like.
The electronic device may generate the display instruction by detecting an operation acting on the interface. The display instruction can be a display instruction triggered by detected related touch operation, pressing operation of a physical key, voice control operation or shaking operation on equipment and the like. The touch operation may be a touch click operation, a touch long press operation, a touch slide operation, a multi-point touch operation, and the like. The electronic device may provide a display button for triggering display of an image to be displayed, and when a click operation on the display button is detected, a display instruction for shooting is triggered. The electronic equipment can also preset starting voice information for triggering the display instruction. And receiving corresponding voice information by calling the voice receiving device, and triggering the display instruction when the matching of the voice information and the starting voice information is detected. Through analysis, the voice message can be judged to be matched with the preset starting voice message, so that the display instruction can be triggered.
And step 204, acquiring the user characteristics of the user for viewing the image to be displayed according to the display instruction.
The user characteristics are characteristic information that can be used to determine the identity of the user, and may include, but are not limited to, one or more combinations of fingerprint characteristics, human face characteristics, voice characteristics, and operation habit characteristics. Optionally, the electronic device may obtain the user characteristics of the user according to the operation in the process of detecting the operation of the user triggering the display instruction, where the user is a user viewing the image to be displayed. For example, when the user characteristic is a fingerprint characteristic, the corresponding fingerprint characteristic can be obtained according to the pressing operation in the process of detecting that the user triggers the display instruction through the pressing and clicking operation. When the display instruction is triggered by detecting the voice information of the user, the voice characteristics of the user can be further extracted from the voice information.
In one embodiment, after receiving the display instruction, the user may be prompted to perform a corresponding operation for obtaining the user characteristics, and the user characteristics may be obtained according to the operation. For example, the camera can be turned on to scan the face of the user, so as to extract the face features of the user. Or the user can be prompted to enter fingerprint information or voice information, and corresponding fingerprint features or voice features can be extracted from the received fingerprint information or voice information. Or the user can be prompted to slide freely or generate an operation of appointed characters or patterns in a preset touch area, and the operation habit characteristics of the user are extracted according to the sliding track and/or the sliding speed corresponding to the sliding operation.
In step 206, beauty parameters matched with the user characteristics are obtained.
The electronic equipment can preset various beauty parameters and set the user characteristics suitable for each beauty parameter. Wherein, each beautifying parameter can include but is not limited to one or more of a peeling parameter, a whitening parameter, a face thinning parameter, a large-eye parameter, a blush parameter, a lip color parameter and the like. The electronic equipment can inquire the preset beauty parameters suitable for the user characteristics according to the user characteristics and take the beauty parameters as the matched beauty parameters.
In one embodiment, the electronic device may pre-record a plurality of user characteristics and set a beauty parameter to which each of the recorded user characteristics is matched. When the user characteristics of the user who looks at the image to be displayed are obtained, whether the user characteristics are included in the user characteristics recorded in advance can be detected, and if yes, the user characteristics matched with the user characteristics can be directly inquired and obtained. When the user characteristics do not exist in the pre-recorded user characteristics, the user characteristics can be analyzed, and one of the beauty parameters is selected as the beauty parameter matched with the user characteristics.
For example, when the user characteristic is fingerprint characteristic a, beauty parameter a matching with the fingerprint characteristic a may be obtained, and when the user characteristic is fingerprint characteristic B, beauty parameter B matching with the fingerprint characteristic B may be obtained. When the user characteristic is the slide operation characteristic C, the beauty parameter C matching with the slide operation characteristic C may be acquired. Alternatively, the plurality of user characteristics may be user characteristics of the same user or user characteristics of different users. When the characteristics of the same user are adopted, the user can use different user characteristics to perform beauty display by adopting different beauty parameters when the same user views the image to be displayed. For example, for the same image to be displayed, the user of the electronic device may respectively adopt the fingerprint feature of the thumb and the fingerprint feature of the index finger to respectively perform the beauty display of different beauty parameters, which may improve the flexibility of beauty display for the image to be displayed.
And step 208, performing beauty treatment on the image to be displayed according to the beauty parameters.
Optionally, the face region in the image to be displayed may be beautified according to the matched beautification parameter. After the electronic equipment detects the face in the image to be processed, the skin color, lip color, pupil color and other information of the face can be identified. And performing beautifying treatment on the face according to one or more of a skin grinding parameter, a whitening parameter, a face thinning parameter, a large eye parameter, a blush parameter, a lip color parameter and the like in the beautifying parameters.
In an embodiment, a corresponding beauty template may be generated according to the beauty parameter, and the beauty template and the face in the image to be displayed are subjected to fusion processing to obtain an image after beauty processing.
In one embodiment, the matched beauty parameter obtained according to the user characteristic can be used as a first beauty parameter, the face characteristic is extracted from the image to be displayed, a second beauty parameter is determined according to the face characteristic, and the image to be displayed is beautified according to the first beauty parameter and the second beauty parameter. The electronic equipment can perform face detection according to the image to be displayed, acquire corresponding face characteristic parameters according to a face area obtained by the face detection, and automatically determine a set of beauty parameters according to the face characteristic parameters, wherein the beauty parameters are the second beauty parameters.
In one embodiment, the method further comprises the steps of obtaining a preset third beauty parameter, and performing beauty treatment on the image to be displayed according to one or two of the second beauty parameter and the third beauty parameter and the first beauty parameter. Wherein the third beauty parameter is a beauty parameter calculated according to the beauty parameters set by the user history. The electronic equipment can acquire that the user carries out manual beauty to the image in the time quantum that predetermines, and the beautiful face parameter of setting regards manually set's squint parameter as the learning object of third beautiful face parameter, and the beautiful face parameter according to manual setting in this time quantum that predetermines generates third beautiful face parameter. Optionally, each manually set beauty parameter may be weighted and averaged, and the weight of each manually set beauty parameter may be determined according to the setting time, and the earlier the time is, the smaller the corresponding weight is. A third beauty parameter can be obtained based on the weighted average calculation. The preset time period can be any time period within the last month or within three months.
In an embodiment, corresponding weights may be set for the first, second, and third beauty parameters, respectively, and the three sets of beauty parameters are weighted and averaged according to the weights, and the image to be displayed is beautified according to the weighted and averaged beauty parameters.
In one embodiment, whether the image to be displayed is an image which has been beautified can be detected, and if not, the image to be displayed can be beautified according to the beautification parameters according to the steps. If the image is an already-beautified image, the image before beautification corresponding to the image after beautification can be acquired, and the image before beautification is beautified according to the beautification parameters.
In an embodiment, when the image to be displayed is an image with a beautiful color, the image to be displayed may be subjected to a weakened beauty treatment according to the first beauty parameter and/or the third beauty parameter, so as to further improve flexibility of the beauty treatment on the image to be displayed.
And step 210, displaying the image after the beautifying processing.
The electronic equipment can display the image after the beauty treatment according to the display instruction after finishing the beauty treatment of the image to be displayed.
According to the image display method, the user characteristics of the user can be obtained according to the display instruction of the image to be displayed, and the image to be displayed is subjected to the beautifying processing according to the beautifying parameters matched with the user characteristics, so that the image viewed by the user is the image subjected to the beautifying processing, and the beautifying processing of the image to be displayed is different for different users. Compared with the traditional method that the image to be displayed needs to be displayed firstly, and then the beauty parameter of the image to be displayed is beautified, the image display method can directly display the image after the beauty treatment without displaying the original image to be displayed, and improves the operation efficiency.
In one embodiment, the image to be displayed is an image in which image content has not been displayed on the electronic device, i.e., an image in an unshayed state. For example, the image to be displayed is an image displayed in a list or a graph form, so that the user cannot refer to the content on the image. When a display instruction for the image is detected, the image can be beautified according to the above steps, so that the beautified image is displayed. For example, if the image includes an original face, the image is finally displayed as a face after beauty treatment instead of the original face when the image is displayed, so that the user can be prevented from directly viewing the image before beauty, and the privacy of the user is protected.
In one embodiment, step 206 includes: inquiring the user category to which the user belongs according to the user characteristics; and acquiring beauty parameters matched with the user category.
The electronic device presets a plurality of user categories. Alternatively, the user category may be a category divided according to one or more parameters of age, gender, race, and the like. User populations of different ages, genders and/or races are divided into a plurality of different user categories. For example, all users aged 18-28 years can be classified into the same user category according to the age group; or sex can be further introduced, all users who are male and have the age of 18-28 are classified into the same user category, and all users who are female and have the age of 18-28 are classified into another user category; or further, male, aged 18-28 and yellow people can be used as a first user category; taking females, aged 18-28 years and yellow as a second user category; women, people aged 18-28 years, black skin races as a third category of users, and so on. It is understood that the user category may be divided in various ways, and is not limited herein.
For each user category, a beauty parameter matching the user category is also preset. The beauty parameter matched with each user category may be a beauty parameter corresponding to a common habit of a user in the same user category. In one embodiment, the electronic device may obtain historical beauty parameters of each user for the image for a plurality of users of each user category in advance. Optionally, the historical beauty parameters may be obtained locally, or may be obtained by querying from a cloud server, and the beauty parameters of the user category are calculated according to the obtained historical beauty parameters of each user and according to a preset user category and the historical beauty parameters of the users of the same user category.
The electronic equipment can detect which user type the corresponding user belongs to according to the user characteristics, and then can acquire the preset beauty parameters matched with the user type.
In one embodiment, step 206 includes: acquiring current system time; and acquiring beauty parameters matched with the system time and the user characteristics.
The electronic equipment also sets beauty parameters at different times. Because the brightness of the field environment is not always the same at different times, the electronic device can further set the beauty parameters matched with different user characteristics for different times. Alternatively, beauty parameters matching different user characteristics may be set for different time periods. The time period can be divided into time periods according to each day, for example, 5 time periods of 0:00 to-8: 00, 8:00 to 10:00, 10:00 to 15:00, 15:00 to 18:00 and 18:00 to 24:00 can be preset, and according to different time periods, beauty parameters matched with different user types are set. The electronic equipment can detect the time period to which the system time belongs according to the system time corresponding to the display instruction, and further inquire the beauty parameters matched with the user characteristics from all the beauty parameters matched with the time period.
In one embodiment, obtaining beauty parameters matching the system time and the user characteristics comprises: acquiring the brightness of the system at the system time; from all beauty parameters matching the brightness, a beauty parameter matching the user's feature is queried.
The electronic equipment can further set beauty parameters matched with different brightness. The brightness represents the brightness of the environment in which the electronic device is located. The electronic device may preset a plurality of brightness ranges, each brightness range matching a plurality of beauty parameters. According to the system time, the ambient brightness of the electronic equipment in the system time is detected, all beauty parameters matched with the ambient brightness are inquired, and beauty parameters matched with the user characteristics of a user viewing the image to be displayed are inquired and obtained from the beauty parameters. By setting the matching beauty parameter according to the brightness, the beauty process is further matched with the brightness.
In this embodiment, by introducing the system time, the beauty parameters matched with the user characteristics are not necessarily the same at different system times, so that the beauty effects of the same image viewed by the same user are also different at different times, and the flexibility of the beauty processing of the image to be displayed can be improved.
In one embodiment, before receiving a display instruction of an image to be displayed, the method further comprises: acquiring historical beauty parameters of the user on the image aiming at each user; and generating a beauty parameter matched with the user characteristic of the corresponding user according to the historical beauty parameter.
The electronic equipment can record the characteristic parameters of each user using the equipment in advance, record the beautifying parameters used in the process of beautifying the image by the user before, and take the parameters as the historical beautifying parameters of the corresponding user. For each user, all of their historical beauty parameters may be processed to generate beauty parameters that match the user's user characteristics. Optionally, the historical beauty parameters of the same user may be subjected to weighted average processing, and the obtained weighted average beauty parameter is used as the beauty parameter matched with the user characteristic of the user. Further, the weight value of each historical beauty parameter can be determined according to the generation time of the corresponding historical beauty parameter, and the earlier the generation time is, the smaller the corresponding weight value is.
By generating the beauty parameter matched with each user according to the historical beauty parameter of the user, the matching degree of the adopted beauty parameter and the user can be further improved.
In one embodiment, before step 206, the method further includes: acquiring the image type of an image to be displayed; step 206 comprises: inquiring various beauty parameters matched with the image types; and acquiring a beauty parameter matched with the user characteristic from the plurality of beauty parameters.
In this embodiment, the electronic device is further provided with a plurality of image types. The image type may be an automatically set image type. The electronic device may automatically classify the image into one of the image types to be displayed. And a dividing instruction of the user for the image to be displayed can be received, and the displayed image is divided into image types corresponding to the dividing instruction according to the dividing instruction.
Optionally, the number of the face types may be generated by classifying the face types according to one or more of the number of faces in the image, the area occupied by the face in the image, the position of the face in the image, the shooting scene of the image, the shooting brightness, and the like. For example, one of the image types is: the method is suitable for one face and the type of shooting in the daytime. For each image type, a plurality of beauty parameters suitable for the image type are set, and for all beauty parameters of the type, the user characteristics matched with each beauty parameter are further set.
After the image to be displayed is determined, the preset image type to which the image to be displayed belongs can be inquired, the beauty parameter matched with the user characteristic is further inquired from the image type, and the beauty treatment is carried out on the image to be displayed according to the inquired matched beauty parameter.
In this embodiment, by further setting the image type, setting a plurality of beauty parameters suitable for the image type, and querying the beauty parameter matched with the user feature from the beauty parameters, the beauty effect of the image viewed by the user can be further improved.
In one embodiment, before acquiring the image type of the image to be displayed, the method further includes: acquiring image characteristic data of an image to be displayed; and determining the image type of the image to be displayed according to the image characteristic data.
In this embodiment, the image feature data may be feature data representing one or more factors of the number of faces, the area and the position of the faces in the image, the shooting scene of the image, the shooting brightness, and the like. The electronic equipment can extract corresponding image feature data from the image to be displayed, determine one or more factors of the number of human faces in the image, the occupied area and position of the human faces in the image, the shooting scene of the image, the shooting brightness and the like according to the image feature data, and classify the image to be displayed into the image category corresponding to the factors according to the determined factors, so that the determination of the image type of the image to be displayed is realized.
In one embodiment, the step of determining the image type may be performed before the step 202, that is, before receiving the real instruction of the image to be displayed, the image type of the corresponding image may be determined in advance. For example, the determination of the image type of the image to be displayed may be completed during the process of capturing the image to be displayed, or after the capturing is completed, before the image to be displayed is subsequently displayed.
In one embodiment, as shown in fig. 3, there is provided another image display method including:
In one embodiment, the electronic device may detect whether a beauty viewing mode is set for the image to be displayed, and when the beauty viewing mode is set, step 304 described below may be performed.
And 304, acquiring the user characteristics of the user for viewing the image to be displayed according to the display instruction, and inquiring the user category to which the user belongs according to the user characteristics.
Alternatively, the display instruction may be triggered by pressing a preset display button, or triggered according to the detected voice message matching with the preset voice display instruction. When the pressing operation is triggered, corresponding fingerprint information can be acquired according to the pressing operation, and fingerprint features of a corresponding user are acquired from the fingerprint information, wherein the fingerprint features are corresponding user features. When the voice information is triggered, the voice characteristics of the user can be extracted from the voice information, and the voice characteristics are the user characteristics of the corresponding user.
And detecting one or more parameters of the sex, age, race and the like of the corresponding user according to the acquired user characteristics, inquiring a user category corresponding to the preset parameters, wherein the inquired user category is the user category to which the user belongs.
Optionally, corresponding image feature data may be extracted from the image to be displayed; and obtaining one or more factors of the number of the human faces in the image to be displayed, the occupied area and the position of the human faces in the image, the shooting scene of the image, the shooting brightness and the like according to the image characteristic data. And inquiring the image type of the obtained factor, wherein the inquired image type is the type of the image to be displayed.
In one embodiment, the execution sequence between step 304 and step 306 is not limited, for example, step 306 may be executed first, or step 304 and step 306 may be executed simultaneously.
And step 308, inquiring various beauty parameters matched with the image types, and acquiring beauty parameters matched with the user types from the various beauty parameters.
In one embodiment, each image type is set with an appropriate plurality of beauty parameters, and each beauty parameter sets a matching user category. The electronic equipment can inquire all beauty parameters corresponding to the image type according to the determined image type, and further inquire the beauty parameters matched with the user category from the beauty parameters.
In one embodiment, all beauty parameters matching the user category may also be queried first, and from the queried beauty parameters, the beauty parameters matching the image type may be queried.
In one embodiment, the current system time may be further obtained, and beauty parameters matching the system time, the image type, and the user category may be further obtained.
In one embodiment, when the detected user feature is stored in the electronic device in advance and the beauty parameter matching the user feature is set, the beauty parameter matching the user feature may be directly acquired. When there is no user feature detected, steps 306 and 308 are performed as described above. For example, when the user characteristic a of the user a is stored in the electronic device, and the beauty parameter a matching with the user characteristic a is set. When the user characteristic of the user who checks the image to be displayed is detected to be the user characteristic A, the beauty parameter A corresponding to the user characteristic A can be directly obtained. When the detected user characteristic is the user characteristic B and the user characteristic B is detected not to be stored in the point sub-device in advance, the user category to which the user belongs can be inquired according to the user characteristic B, the image type of the image to be displayed is obtained, various beauty parameters matched with the image type are inquired, and the beauty parameters matched with the user category are obtained from the various beauty parameters. The user characteristics a and the user characteristics B may be any one or a combination of more of fingerprint characteristics, voice characteristics, and the like.
In one embodiment, the image of each channel of the image to be processed may be subjected to a beautifying process according to the beautifying parameter, so as to obtain an image after the beautifying process. And displayed. For example, the process of whitening or peeling the portrait in the image may be a process of making up the portrait, reducing the face, or slimming the portrait. Respectively obtaining the beauty parameters of each channel image, carrying out beauty treatment on each channel image according to the obtained beauty parameters, and synthesizing each channel image after the beauty treatment is finished to obtain a final beauty image.
The image to be processed is composed of a plurality of pixel points, each pixel point can be composed of a plurality of color channels, and each color channel represents a color component. For example, the image may be composed of three channels of RGB (three colors of red, green, and blue), HSV (hue, saturation, and lightness), and CMY (three colors of cyan, magenta, or magenta, and yellow). The beauty parameters may include beauty parameters corresponding to each channel image of the image to be processed. The channel image is an image formed by pixel points of a certain color channel. When the image is subjected to the beautifying processing, the beautifying processing can be respectively performed on each color channel of the image according to the corresponding beautifying parameters, and the processing of each color channel can be different.
For example, when performing whitening processing, the whitening processing on the image may be implemented by adjusting each color channel value according to the corresponding whitening parameter. Furthermore, the pixel points in the image to be processed, which need to be subjected to the beauty treatment, can be traversed, and then the pixel points in the image to be processed are processed according to the obtained beauty parameters.
According to the image display method, the image type corresponding to the image to be displayed can be determined according to the display instruction of the image to be displayed and the image characteristic data of the image to be displayed; acquiring user characteristics of the users, and determining user categories to which the corresponding users belong according to the user characteristics; and further determining a matched beauty parameter according to the image type and the user category, performing beauty treatment on the image to be displayed according to the beauty parameter, and displaying the image after the beauty treatment. The original image to be displayed does not need to be displayed, but the image after the beautifying processing is directly displayed, and the operation efficiency is improved. And the beauty parameters are matched with the image types and the user categories, so that the beauty effect suitable for being displayed for the user is further improved.
In one embodiment, as shown in fig. 4, there is provided an image display apparatus including:
a display instruction receiving module 402, configured to receive a display instruction of an image to be displayed.
And a user characteristic obtaining module 404, configured to obtain a user characteristic of a user viewing the image to be displayed according to the display instruction.
A beauty parameter obtaining module 406, configured to obtain a beauty parameter matching the user characteristic.
And a beauty processing module 408, configured to perform beauty processing on the image to be displayed according to the beauty parameters.
And an image display module 410, configured to display the image after the beauty treatment.
In one embodiment, the beauty parameter obtaining module 406 is further configured to query a user category to which the user belongs according to the user characteristics; and acquiring beauty parameters matched with the user category.
In one embodiment, the beauty parameter obtaining module 406 is further configured to obtain a current system time; and acquiring beauty parameters matched with the system time and the user characteristics.
In one embodiment, the beauty parameter obtaining module 406 is further configured to obtain, for each user, a historical beauty parameter of the user on the image; and generating a beauty parameter matched with the user characteristic of the corresponding user according to the historical beauty parameter.
In one embodiment, the beauty parameter obtaining module 406 is further configured to obtain an image type of the image to be displayed; inquiring various beauty parameters matched with the image types; and acquiring a beauty parameter matched with the user characteristic from the plurality of beauty parameters.
In one embodiment, as shown in fig. 5, there is provided another image display apparatus, further comprising:
an image type determining module 412, configured to obtain image feature data of an image to be displayed; and determining the image type of the image to be displayed according to the image characteristic data.
In one embodiment, the user features include a combination of one or more of fingerprint features, face features, voice features, and operating habit features.
The division of the modules and units in the image processing apparatus is only for illustration, and in other embodiments, the image processing apparatus may be divided into different modules and units as needed to complete all or part of the functions of the image processing apparatus.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the image display method provided by the above embodiments.
An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the image display method provided by the above embodiments when executing the computer program.
The embodiment of the application also provides a computer program product. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the image display method as provided in the embodiments described above.
FIG. 6 is a diagram showing a configuration of an image processing system according to an embodiment. As shown in fig. 6, the image processing system includes a feature layer 602, an adaptation layer 604, and a processing layer 606. The feature layer 602 is configured to acquire an image to be processed, perform face detection on the image to be processed, and acquire corresponding face feature parameters according to a face region obtained by the face detection. The face feature parameters may include a race feature parameter, a gender feature parameter, an age feature parameter, a skin color feature parameter, a skin type feature parameter, a face style feature parameter, and a makeup feature parameter, which are not limited herein. The feature layer 602 sends the obtained face feature parameters to the adaptation layer 604, and the adaptation layer 604 obtains corresponding face parameters according to the historical face image of the user, the environment parameters corresponding to the image to be processed, and the face feature parameters, and sends the face parameters to the processing layer 606. The processing layer 606 performs the beauty processing on the image to be processed according to the received beauty parameters, and then outputs the image after the beauty processing. Alternatively, the cosmetic treatment may include, but is not limited to, buffing, whitening, large eye, face thinning, skin tone adjustment, spot removal, eye brightening, under eye puffiness removal, tooth whitening, lip beautifying, and the like. The image to be processed can be an image to be displayed, and the image processing system can be used for realizing the process of determining the beauty parameter of the image display method, beautifying the image to be displayed and determining the image type.
The embodiment of the application also provides the electronic equipment. The electronic device includes therein an Image Processing circuit, which may be implemented using hardware and/or software components, and may include various Processing units defining an ISP (Image Signal Processing) pipeline. FIG. 7 is a schematic diagram of an image processing circuit in one embodiment. As shown in fig. 7, for convenience of explanation, only aspects of the image processing technology related to the embodiments of the present application are shown.
As shown in fig. 7, the image processing circuit includes an ISP processor 740 and control logic 750. The image data captured by the imaging device 710 is first processed by the ISP processor 740, and the ISP processor 740 analyzes the image data to capture image statistics that may be used to determine and/or control one or more parameters of the imaging device 710. The imaging device 710 may include a camera having one or more lenses 712 and an image sensor 714. The image sensor 714 may include an array of color filters (e.g., Bayer filters), and the image sensor 714 may acquire light intensity and wavelength information captured with each imaging pixel of the image sensor 714 and provide a set of raw image data that may be processed by the ISP processor 740. The sensor 720 (e.g., a gyroscope) may provide parameters of the acquired image processing (e.g., anti-shake parameters) to the ISP processor 740 based on the type of sensor 720 interface. The sensor 720 interface may utilize a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the above.
In addition, image sensor 714 may also send raw image data to sensor 720, sensor 720 may provide raw image data to ISP processor 740 based on the type of sensor 720 interface, or sensor 720 may store raw image data in image memory 730.
The steps of the ISP processor 740 processing the image data include: the image data is subjected to VFE (Video Front End) Processing and CPP (Camera Post Processing). The VFE processing of the image data may include modifying the contrast or brightness of the image data, modifying digitally recorded lighting status data, performing compensation processing (e.g., white balance, automatic gain control, gamma correction, etc.) on the image data, performing filter processing on the image data, etc. CPP processing of image data may include scaling an image, providing a preview frame and a record frame to each path. Among other things, the CPP may use different codecs to process the preview and record frames. The image data processed by the ISP processor 740 may be sent to the beauty module 760 for beauty processing of the image before being displayed. The beautifying module 760 beautifying the image data may include: whitening, removing freckles, buffing, thinning face, removing acnes, enlarging eyes and the like. The beauty module 760 may be a Central Processing Unit (CPU), a GPU, a coprocessor, or the like. The data processed by the beauty module 760 may be transmitted to the encoder/decoder 770 to encode/decode image data. The encoded image data may be saved and decompressed before being displayed on the display 780 device. The beauty module 760 may also be located between the encoder/decoder 770 and the display 780, i.e., the beauty module performs beauty processing on the imaged image. The encoder/decoder 770 may be a CPU, GPU, coprocessor, or the like in the mobile terminal.
The statistical data determined by ISP processor 740 may be sent to control logic 750 unit. For example, the statistical data may include image sensor 714 statistics such as auto-exposure, auto-white balance, auto-focus, flicker detection, black level compensation, lens 712 shading correction, and the like. Control logic 750 may include a processor and/or microcontroller that executes one or more routines (e.g., firmware) that may determine control parameters of imaging device 710 and control parameters of ISP processor 740 based on the received statistical data. For example, the control parameters of imaging device 710 may include sensor 720 control parameters (e.g., gain, integration time for exposure control), camera flash control parameters, lens 712 control parameters (e.g., focal length for focusing or zooming), or a combination of these parameters. The ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (e.g., during RGB processing), as well as lens 712 shading correction parameters.
The image display method as above can be realized using the image processing technique in fig. 7.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. An image display method comprising:
receiving a display instruction of an image to be displayed, wherein the image to be displayed is an image displayed in a list or graph form;
acquiring the user characteristics of a user viewing the image to be displayed according to the display instruction;
acquiring the image type of the image to be displayed;
inquiring various beautifying parameters matched with the image types;
acquiring a beauty parameter matched with the user characteristic from the plurality of beauty parameters;
performing beautifying processing on the image to be displayed according to the beautifying parameters;
and displaying the image after the beautifying processing.
2. The method of claim 1, wherein the obtaining of beauty parameters matching the user characteristics comprises:
inquiring the user category to which the user belongs according to the user characteristics;
and acquiring beauty parameters matched with the user categories.
3. The method of claim 1, wherein the obtaining of beauty parameters matching the user characteristics comprises:
acquiring current system time;
and acquiring beauty parameters matched with the system time and the user characteristics.
4. The method according to claim 1, wherein before the receiving the display instruction of the image to be displayed, the method further comprises:
acquiring historical beauty parameters of the user on the image aiming at each user;
and generating a beauty parameter matched with the user characteristic of the corresponding user according to the historical beauty parameter.
5. The method according to claim 1, further comprising, before the acquiring the image type of the image to be displayed:
acquiring image characteristic data of the image to be displayed;
and determining the image type of the image to be displayed according to the image characteristic data.
6. The method of any one of claims 1 to 5, wherein the user characteristics include a combination of one or more of fingerprint characteristics, face characteristics, voice characteristics, and operating habit characteristics.
7. An image display apparatus, characterized in that the apparatus comprises:
the display instruction receiving module is used for receiving a display instruction of an image to be displayed, wherein the image to be displayed is an image displayed in a list or chart form;
the user characteristic acquisition module is used for acquiring the user characteristics of the user viewing the image to be displayed according to the display instruction;
the beauty parameter acquisition module is used for acquiring the image type of the image to be displayed, inquiring various beauty parameters matched with the image type and acquiring beauty parameters matched with the user characteristics from the various beauty parameters;
the beautifying processing module is used for carrying out beautifying processing on the image to be displayed according to the beautifying parameters;
and the image display module is used for displaying the image after the beautifying processing.
8. The image display device according to claim 7, wherein the beauty parameter obtaining module is further configured to query a user category to which the user belongs according to the user feature; and acquiring beauty parameters matched with the user categories.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711240742.1A CN107862653B (en) | 2017-11-30 | 2017-11-30 | Image display method, image display device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711240742.1A CN107862653B (en) | 2017-11-30 | 2017-11-30 | Image display method, image display device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107862653A CN107862653A (en) | 2018-03-30 |
CN107862653B true CN107862653B (en) | 2021-08-17 |
Family
ID=61704295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711240742.1A Active CN107862653B (en) | 2017-11-30 | 2017-11-30 | Image display method, image display device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107862653B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108765352B (en) * | 2018-06-01 | 2021-07-16 | 联想(北京)有限公司 | Image processing method and electronic device |
CN108986018B (en) * | 2018-07-02 | 2019-05-10 | 上海蒙彤文化传播有限公司 | Automatic U.S. figure platform based on the beautification of the face cheek |
CN108876751A (en) * | 2018-07-05 | 2018-11-23 | Oppo广东移动通信有限公司 | Image processing method, device, storage medium and terminal |
CN109359675B (en) * | 2018-09-28 | 2022-08-12 | 腾讯科技(武汉)有限公司 | Image processing method and apparatus |
CN112785488A (en) * | 2019-11-11 | 2021-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Image processing method and device, storage medium and terminal |
CN110930338B (en) * | 2019-11-29 | 2023-06-23 | Oppo广东移动通信有限公司 | Image processing method, image processing apparatus, electronic device, and computer-readable storage medium |
CN112927126A (en) * | 2019-12-06 | 2021-06-08 | 中兴通讯股份有限公司 | Image display control method, terminal, and computer-readable storage medium |
CN111179155B (en) * | 2019-12-19 | 2024-05-21 | 北京达佳互联信息技术有限公司 | Image processing method and device, electronic equipment and storage medium |
CN113064538B (en) * | 2020-01-02 | 2024-03-05 | 佛山市云米电器科技有限公司 | Equipment parameter setting method, intelligent refrigerator and computer readable storage medium |
CN113793252B (en) * | 2021-08-26 | 2023-07-18 | 展讯通信(天津)有限公司 | Image processing method, device, chip and module equipment thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503749A (en) * | 2014-12-12 | 2015-04-08 | 广东欧珀移动通信有限公司 | Photo processing method and electronic equipment |
CN104715236A (en) * | 2015-03-06 | 2015-06-17 | 广东欧珀移动通信有限公司 | Face beautifying photographing method and device |
CN105975192A (en) * | 2016-04-28 | 2016-09-28 | 努比亚技术有限公司 | Image information processing method and mobile terminal |
WO2017166057A1 (en) * | 2016-03-29 | 2017-10-05 | Huawei Technologies Co., Ltd. | Image processing method, image processing apparatus, portable multifunction device, and computer readable storage medium |
CN107330859A (en) * | 2017-06-30 | 2017-11-07 | 广东欧珀移动通信有限公司 | A kind of image processing method, device, storage medium and terminal |
CN107341762A (en) * | 2017-06-16 | 2017-11-10 | 广东欧珀移动通信有限公司 | Take pictures processing method, device and terminal device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160357578A1 (en) * | 2015-06-03 | 2016-12-08 | Samsung Electronics Co., Ltd. | Method and device for providing makeup mirror |
CN107038680B (en) * | 2017-03-14 | 2020-10-16 | 武汉斗鱼网络科技有限公司 | Self-adaptive illumination beautifying method and system |
-
2017
- 2017-11-30 CN CN201711240742.1A patent/CN107862653B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503749A (en) * | 2014-12-12 | 2015-04-08 | 广东欧珀移动通信有限公司 | Photo processing method and electronic equipment |
CN104715236A (en) * | 2015-03-06 | 2015-06-17 | 广东欧珀移动通信有限公司 | Face beautifying photographing method and device |
WO2017166057A1 (en) * | 2016-03-29 | 2017-10-05 | Huawei Technologies Co., Ltd. | Image processing method, image processing apparatus, portable multifunction device, and computer readable storage medium |
CN105975192A (en) * | 2016-04-28 | 2016-09-28 | 努比亚技术有限公司 | Image information processing method and mobile terminal |
CN107341762A (en) * | 2017-06-16 | 2017-11-10 | 广东欧珀移动通信有限公司 | Take pictures processing method, device and terminal device |
CN107330859A (en) * | 2017-06-30 | 2017-11-07 | 广东欧珀移动通信有限公司 | A kind of image processing method, device, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107862653A (en) | 2018-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107862653B (en) | Image display method, image display device, storage medium and electronic equipment | |
CN107730445B (en) | Image processing method, image processing apparatus, storage medium, and electronic device | |
CN107808136B (en) | Image processing method, image processing device, readable storage medium and computer equipment | |
CN107730444B (en) | Image processing method, image processing device, readable storage medium and computer equipment | |
CN107945135B (en) | Image processing method, image processing apparatus, storage medium, and electronic device | |
CN107766831B (en) | Image processing method, image processing device, mobile terminal and computer-readable storage medium | |
CN107818305B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN107886484B (en) | Beautifying method, beautifying device, computer-readable storage medium and electronic equipment | |
CN107993209B (en) | Image processing method, image processing device, computer-readable storage medium and electronic equipment | |
CN107730446B (en) | Image processing method, image processing device, computer equipment and computer readable storage medium | |
CN108108415B (en) | Image processing method, image processing apparatus, storage medium, and electronic device | |
CN107734253B (en) | Image processing method, image processing device, mobile terminal and computer-readable storage medium | |
CN108012078B (en) | Image brightness processing method and device, storage medium and electronic equipment | |
CN108846807B (en) | Light effect processing method and device, terminal and computer-readable storage medium | |
CN107862657A (en) | Image processing method, device, computer equipment and computer-readable recording medium | |
CN107808137A (en) | Image processing method, device, electronic equipment and computer-readable recording medium | |
CN107820017B (en) | Image shooting method and device, computer readable storage medium and electronic equipment | |
CN107424117B (en) | Image beautifying method and device, computer readable storage medium and computer equipment | |
CN107911682B (en) | Image white balance processing method, device, storage medium and electronic equipment | |
CN109242794B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
US10546185B2 (en) | Image processing apparatus for performing image processing according to privacy level | |
CN108022207A (en) | Image processing method, device, storage medium and electronic equipment | |
CN109360254B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN107800965B (en) | Image processing method, device, computer readable storage medium and computer equipment | |
CN110298862A (en) | Method for processing video frequency, device, computer readable storage medium and computer 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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |