CN111161133B - Picture processing method and electronic equipment - Google Patents

Picture processing method and electronic equipment Download PDF

Info

Publication number
CN111161133B
CN111161133B CN201911367052.1A CN201911367052A CN111161133B CN 111161133 B CN111161133 B CN 111161133B CN 201911367052 A CN201911367052 A CN 201911367052A CN 111161133 B CN111161133 B CN 111161133B
Authority
CN
China
Prior art keywords
picture
target
clothing
filter mode
filter
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
CN201911367052.1A
Other languages
Chinese (zh)
Other versions
CN111161133A (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 CN201911367052.1A priority Critical patent/CN111161133B/en
Publication of CN111161133A publication Critical patent/CN111161133A/en
Application granted granted Critical
Publication of CN111161133B publication Critical patent/CN111161133B/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
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a picture processing method and electronic equipment, wherein the method comprises the following steps: under the condition that a first picture is displayed on a target interface, identifying clothing of a target object in the first picture; determining a target style type corresponding to the garment; and determining a first filter mode corresponding to the first picture according to the target style type. The invention facilitates the determination of the filter mode and can improve the determination efficiency of the filter mode.

Description

Picture processing method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a picture processing method and electronic equipment.
Background
At the moment of the increasing popularity of photographing culture, more and more people take photos to be commemorative in activities such as daily life, work meetings, travel and the like. The electronic device may be provided with a number of filter modes for a user to select an appropriate filter mode for the photograph to enhance the display of the photograph.
Currently, the way the user selects the filter mode is tried one by one. This approach takes longer with more filter modes. It can be seen that the conventional electronic device has a problem in that it is inconvenient for a user to select a filter mode.
Disclosure of Invention
The embodiment of the invention provides a picture processing method and electronic equipment, which are used for solving the problem that the electronic equipment is inconvenient for a user to select a filter mode.
To solve the above problems, the present invention is achieved as follows:
in a first aspect, an embodiment of the present invention provides a picture processing method, which is applied to an electronic device, where the method includes:
under the condition that a first picture is displayed on a target interface, identifying clothing of a target object in the first picture;
determining a target style type corresponding to the garment;
and determining a first filter mode corresponding to the first picture according to the target style type.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the first identification module is used for identifying clothing of a target object in a first picture under the condition that the first picture is displayed on a target interface;
the first determining module is used for determining a target style type corresponding to the garment;
and the second determining module is used for determining a first filter mode corresponding to the first picture according to the target style type.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the picture processing method as described above when executed by the processor.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the picture processing method as described above.
In the embodiment of the invention, under the condition that a first picture is displayed on a target interface, identifying clothing of a target object in the first picture; determining a target style type corresponding to the garment; and determining a first filter mode corresponding to the first picture according to the target style type. Therefore, the embodiment of the invention can determine the filter mode corresponding to the picture according to the clothes of the target object in the picture, thereby facilitating the determination of the filter mode and improving the determination efficiency of the filter mode.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is one of flowcharts of a picture processing method provided in an embodiment of the present invention;
FIG. 2 is a second flowchart of a picture processing method according to an embodiment of the present invention;
FIG. 3 is one of the block diagrams of the electronic device provided by the embodiment of the invention;
fig. 4 is a second block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," and the like in this application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Furthermore, the use of "and/or" in this application means at least one of the connected objects, such as a and/or B and/or C, is meant to encompass the 7 cases of a alone, B alone, C alone, and both a and B, both B and C, both a and C, and both A, B and C.
The picture processing method provided by the embodiment of the invention can be applied to electronic equipment. The electronic Device may be a mobile phone, a tablet (Tablet Personal Computer), a Laptop (Laptop Computer), a personal digital assistant (personal digital assistant, PDA), a mobile internet Device (Mobile Internet Device, MID), or a Wearable Device (MID), among others.
The picture processing method according to the embodiment of the present invention is described below.
Referring to fig. 1, fig. 1 is one of flowcharts of a picture processing method provided in an embodiment of the present invention. As shown in fig. 1, the picture processing method of the present embodiment may include the following steps:
and step 101, identifying clothing of a target object in a first picture under the condition that the first picture is displayed on a target interface.
In particular, the target interface may be a photo preview interface, a picture preview interface, or a picture editing interface, but is not limited thereto.
The object may be, but is not limited to, an image of the user in a picture. In the case where two or more objects are included in the first picture, the target object may be any one of the following: any object in the first picture; the object with the largest proportion in the first picture; the object selected by the user is not limited thereto.
The garment may include clothing, pants, skirts, and the like. Further, it may also comprise accessories such as shoes, hats, etc.
Step 102, determining the corresponding target style type of the garment.
In this embodiment, the electronic device may store a database in which a plurality of style types of clothing pictures are collected.
By way of example, the clothing pictures in the database may include the following categories: solar wind, korean wind, european wind, chinese wind, hip hop wind, sports wind, etc. Further, solar wind may include secondary, forest, and professional, primary; korean wind may include refreshing, cooling, retro, and joint; the European and American wind can comprise occupation, crux, sexy and antique; chinese wind may include Chinese clothing, ethnic wind.
After the electronic equipment identifies the clothing, the pixel information of the clothing in the first picture can be extracted; and generating a target clothing picture according to the pixel information.
And then, the electronic equipment can compare the target clothing picture with the clothing pictures in the database to obtain the matching degree of the target clothing picture and each clothing picture. And determining the style type corresponding to the clothing picture with the highest matching degree with the target clothing picture in the database as the target style type corresponding to the clothing.
And step 103, determining a first filter mode corresponding to the first picture according to the target style type.
In this embodiment, the electronic device may pre-store the correspondence between the style type and the filter mode. In specific implementation, in the correspondence, the style type and the filter mode may be a one-to-one correspondence, and the style type and the filter mode may also be a one-to-many correspondence, which may be specifically determined according to actual requirements, which is not limited in the embodiment of the present invention. For example, in this correspondence, style type 1 may correspond to only 1 filter mode; style type 2 may correspond to 3 filter modes.
In practical application, the filter mode specifically corresponding to the style type can be preset. For example, for a korean street style picture, which is suitable for a high contrast high saturation filter effect, a filter mode of a korean street style corresponding to a filter tone having a high contrast high saturation may be set; for the solar forest style, it is suitable for the filter effect with low contrast and low saturation, so the filter mode of the solar forest style corresponding to the filter effect with low contrast and low saturation can be set.
In this embodiment, when a style corresponds to two or more filter modes, a filter library may be associated with the style, and the filter library includes the corresponding filter modes.
After the electronic equipment determines the target style type, the filter mode corresponding to the target style type can be determined by searching the corresponding relation.
And under the condition that the number of the filter modes corresponding to the target style is 1, the filter modes corresponding to the target style can be directly determined to be the first filter mode.
In the case where the number of filter modes corresponding to the target style is greater than 1, one filter mode may be selected from among the filter modes corresponding to the target style as the first filter mode.
In this embodiment, after determining the first filter mode corresponding to the first picture, in one implementation manner, the electronic device may directly use the first filter mode to perform filter processing on the first picture to obtain an effect image of the first picture; in another embodiment, a control corresponding to the first filter mode may be displayed for selection by the user. Specifically, the present invention may be determined according to actual requirements, which is not limited in this embodiment.
In the picture processing method of the embodiment, under the condition that a first picture is displayed on a target interface, clothes of a target object in the first picture are identified; determining a target style type corresponding to the garment; and determining a first filter mode corresponding to the first picture according to the target style type. Therefore, the embodiment of the invention can determine the filter mode corresponding to the picture according to the clothes of the target object in the picture, thereby facilitating the determination of the filter mode and improving the determination efficiency of the filter mode.
In this embodiment, optionally, before determining the first filter mode corresponding to the first picture according to the target style type, the method further includes:
acquiring first parameter information of the garment, wherein the first parameter information comprises at least one of tone information, brightness information and saturation information;
the determining, according to the target style type, a first filter mode corresponding to the first picture specifically includes:
determining a target filter library corresponding to the target style type;
and selecting a first filter mode corresponding to the first picture from the target filter library according to the first parameter information.
In this embodiment, alternatively, the color tone of the garment may be divided into a cool color tone and a warm color tone; the brightness of the garment can be divided into low brightness and high brightness; the saturation of the garment can be divided into low saturation and high saturation.
Accordingly, the filter library may include at least one of the following filter modes:
the method comprises the steps that a filter mode suitable for a first target picture, namely a filter mode corresponding to the first target picture, wherein the tone of the first target picture is low tone, the brightness is low brightness, and the saturation is low saturation;
the filter mode suitable for the second target picture, namely the filter mode corresponding to the second target picture, wherein the tone of the second target picture is low tone, the brightness is low brightness, and the saturation is high saturation;
the filter mode suitable for the third target picture, namely the filter mode corresponding to the third target picture, wherein the tone of the third target picture is low tone, the brightness is high brightness, and the saturation is low saturation;
the filter mode suitable for the fourth target picture, namely the filter mode corresponding to the fourth target picture, wherein the tone of the fourth target picture is low tone, the brightness is high brightness, and the saturation is high saturation;
The filter mode suitable for the fifth target picture, namely the filter mode corresponding to the fifth target picture, wherein the tone of the fifth target picture is warm tone, the brightness is low, and the saturation is low;
the filter mode suitable for the sixth target picture, namely the filter mode corresponding to the sixth target picture, wherein the tone of the sixth target picture is warm tone, the brightness is low, and the saturation is high;
a filter mode suitable for a seventh target picture, namely a filter mode corresponding to the seventh target picture, wherein the tone of the seventh target picture is a warm tone, the brightness is a high brightness, and the saturation is a low saturation;
the filter mode suitable for the eighth target picture, namely the filter mode corresponding to the eighth target picture, wherein the tone of the eighth target picture is warm tone, the brightness is high brightness, and the saturation is high saturation;
the first target picture, the second target picture, the third target picture, the fourth target picture, the fifth target picture, the sixth target picture, the seventh target picture and the eighth target picture all satisfy: the corresponding style type is the style type corresponding to the filter library.
In specific implementation, the electronic device may determine, according to the first parameter information, a target picture corresponding to the first picture; and determining one filter mode in the filter modes corresponding to the target picture in the target filter library as the first filter mode.
The obtained first parameter information may be used to determine a specific expression form of at least one of hue, brightness information and saturation information of the garment of the target object, so as to determine a relationship between the first picture and the target picture. For example, if the color tone of the clothing of the target object is a cold color tone, the brightness is low, and the saturation is low, it may be determined that the first picture corresponds to the first target picture, and one of the filter modes corresponding to the first target picture may be determined as the first filter mode.
Therefore, in the above manner, when the number of filter modes corresponding to the style is greater than 1, the electronic device may further combine the first parameter information of the garment to screen the first filter mode corresponding to the first picture from the filter modes corresponding to the style, so that the use reliability of the determined filter mode may be improved.
In this embodiment, optionally, after determining, according to the target style type, a first filter mode corresponding to the first picture, the method further includes:
displaying a second picture on the target interface, wherein the second picture is an effect picture obtained by performing filter processing on the first picture by adopting a target filter mode;
wherein, the target filter mode is: the first filter mode; or, a second filter mode selected by the user.
In particular implementation, optionally, after determining the first filter mode, the electronic device may include the following embodiments:
in the first embodiment, after determining the first filter mode, the electronic device directly adopts the first filter mode to perform filter processing on the first picture.
In an embodiment, after performing the filter processing on the first picture in the first filter mode, the electronic device may further determine that the touch operation of the second filter mode other than the first filter mode is detected by the user.
If touch operation of a control corresponding to the second filter mode by a user is detected, the electronic equipment adopts the second filter mode to carry out filter processing on the first picture, and in this case, the second picture is an effect picture obtained after the filter processing is carried out on the first picture by adopting the second filter mode.
If the touch operation of the user on the second filter mode is not detected, the second picture is an effect picture obtained by performing filter processing on the first picture by adopting the first filter mode.
In the second embodiment, after determining the first filter mode, the electronic device may display a control corresponding to the first filter mode, and filter processing is not performed on the first picture by using the first filter mode. In the second embodiment, the first filter mode may be regarded as a recommended filter mode of the electronic device.
If the touch operation of the user on the control corresponding to the first filter mode is detected, the first filter mode can be adopted to carry out filter processing on the first picture, and in this case, the second picture is an effect picture obtained after the first filter mode is adopted to carry out filter processing on the first picture.
If the touch operation of the control corresponding to the second filter mode by the user is detected, the second filter mode can be adopted to carry out filter processing on the first picture, and in this case, the second picture is an effect picture obtained after the second filter mode is adopted to carry out filter processing on the first picture.
It should be appreciated that the user may switch the filter mode to the first picture according to his own needs.
Therefore, through the mode, the electronic equipment can adopt the target filter mode to carry out filter processing on the first picture to obtain the effect picture, so that the display effect of the picture can be improved.
In this embodiment, optionally, after the displaying the second picture, the method further includes:
identifying color information of the garment;
and adjusting second parameter information of the second picture when the duty ratio of the target color in the color information is larger than the first value, wherein the second parameter information comprises at least one of brightness information and saturation information.
In particular implementations, the color information may include the number of colors that the garment includes, as well as the duty cycle of each color. In this way, the electronic device can determine whether the duty ratio of the target color is larger than a first value according to the color information, and the first value can be determined according to actual requirements.
By way of example, assume that a garment comprises two colors: red and yellow, with a red ratio of 80% and a yellow ratio of 20%; the first value is 30%, which indicates that the duty ratio of the target color of the garment is larger than the first value, and the electronic equipment can adjust the second parameter information of the second picture.
In practical applications, the specific expression form of the second parameter information may be set according to the actual requirement, and the adjustment direction of the second parameter information may also be set according to the actual requirement, which is not limited in the embodiment of the present invention.
For example, in the case where the duty ratio of the target color is greater than the first value in the color information, the electronic device may increase the saturation of the second picture by 5%, and increase the brightness by 5%, thereby enhancing the expressive force of the target color.
Alternatively, the adjustment direction of the second parameter information may be related to the specific expression form of the target color.
Specifically, in the case where the target color belongs to the warm tone, the adjustment direction of the second parameter information may be a positive direction, that is, at least one of brightness and saturation of the second picture is increased; in case the target color belongs to a cold hue, the adjustment direction of the second parameter information may be a negative direction, i.e. reducing at least one of the brightness and the saturation of the second picture.
Therefore, through the mode, the electronic equipment can further adjust the parameter information of the second picture according to the color information of the garment, so that the display effect of the second picture can be further improved.
In this embodiment, optionally, after the displaying of the second picture, in a case where the target filter mode is the second filter mode, the method further includes:
under the condition that a third picture is displayed on the target interface, determining whether the style type corresponding to the clothing of the third picture is the target style type;
and displaying a fourth picture on the target interface under the condition that the style type corresponding to the clothing of the third picture is the target style type, wherein the fourth picture is an effect picture obtained by performing filter processing on the third picture by adopting the second filter mode.
In this embodiment, after determining the first filter mode, the electronic device still selects the second filter mode to filter the first picture, which means that the user is more inclined to filter the picture including the clothing of the target style type with the second filter mode. Therefore, when the clothing type corresponding to the clothing of the third picture is the target style type, the second filter mode can be adopted to perform filter processing on the third picture, so that the effect picture is obtained.
Further, the electronic device may count the number of times of performing filter processing on the picture including the clothing of the target style by using the second filter mode, and perform filter processing on the third picture by using the second filter mode only when the number of times of processing reaches a preset value and the clothing type corresponding to the clothing of the third picture is the target style, so as to obtain the effect picture.
In this way, the fourth picture displayed in the above manner can be more in line with the expectations of the user.
It should be noted that, the various optional implementations described in the embodiments of the present invention may be implemented in combination with each other without collision, or may be implemented separately, which is not limited to the embodiments of the present invention.
For ease of understanding, the following is illustrated with reference to fig. 2:
as shown in fig. 2, the image processing method of the present embodiment may include the steps of:
step 201, preparing a database according to style classification.
1) Firstly, a large amount of clothes information on a network is collected according to a clothes style classification method and is input into a database, so that a large amount of clothes picture data under each style classification is ensured.
2) And preparing a large amount of filter resources for the corresponding classification according to the clothing style classification method and the tone classification method, and ensuring that the corresponding number of filters are selected under all tone branches of each style classification.
In particular implementations, a designer may design a large number of filter hues according to the garment-associated hue style, and input a Look-Up-Table (LUT) into the database.
Step 202, identifying clothing style classification of the user.
Firstly, recognizing clothes of a user by using an image intelligent recognition technology, extracting information of the clothes, comparing pictures of the clothes with a large amount of collected and classified picture data in a database, finally obtaining a picture in the database with highest matching degree, analyzing which type the style classification of the clothes belongs to according to the matched picture, and correspondingly matching the type of the picture with the classified filter library. For example, the recognition that the user wears as a sportswear suit can be matched into the category of 'sports style', and the corresponding filter libraries are all filters suitable for shooting 'sports style'.
And 203, screening out the filter by combining the integral tone.
And (3) carrying out secondary analysis on the judging result in the step 202, and identifying information such as color, hue, brightness, saturation and the like of the clothes by analyzing the identified clothes picture. And screening out a filter with highest matching degree from the filter library according to the tone classification method. For example, the color tone of clothes is a cold color system, the brightness is low, the saturation is low, and finally the color tone is matched with a filter with low brightness and low saturation in the cold color system.
Step 204, emphasizing the color according to the color of the clothes.
And according to the clothes information picture identified in the second step, analyzing whether the picture has a color with the proportion exceeding 30%, and if the picture has a proportion exceeding 30% of a certain color, improving the saturation by 5% and improving the brightness by 5% on the basis of the filter. This can enhance the expressive power of the color.
Step 205, continuously recording the filter information selected by the user.
After the user matches the filter, the photographing behaviors of all the actively selected filters of the user are recorded, the using habit of the user is used as a reference item when the filter is matched, for example, in the case of 'sports style' clothes, after the filter is matched, the user still selects another filter to photograph manually, and then the user recognizes that the type of clothes is matched with the filter which is frequently selected before. This can be done to continuously improve the accuracy of matching filters to the user.
According to the image processing method, on one hand, the filter can be intelligently recommended according to the clothing style, so that a user can be helped to efficiently complete shooting requirements, and satisfaction degree of the user on using the filter and shooting is improved; on the other hand, the expansibility of the filter can be enriched, the number of the filters which are displayed to the user is not limited and tangled when the filter module is designed, the number of the designed filters is not limited, most of the filters can be not displayed to the user, and the filters are only recommended to the user when appropriate, so that the cognitive cost of the user is saved.
Referring to fig. 3, fig. 3 is one of the block diagrams of the electronic device according to the embodiment of the present invention. As shown in fig. 3, the electronic device 300 includes:
The first identifying module 301 is configured to identify, when the target interface displays a first picture, a garment of a target object in the first picture;
a first determining module 302, configured to determine a target style type corresponding to the garment;
and the second determining module 303 is configured to determine a first filter mode corresponding to the first picture according to the target style type.
Optionally, the electronic device 300 further includes:
the acquisition module is used for acquiring first parameter information of the garment before determining a first filter mode corresponding to the first picture according to the target style type, wherein the first parameter information comprises at least one of tone information, brightness information and saturation information;
the second determining module 303 includes:
the determining unit is used for determining a target filter library corresponding to the target style type;
and the selection unit is used for selecting a first filter mode corresponding to the first picture from the target filter library according to the first parameter information.
Optionally, the electronic device 300 further includes:
the first display module is used for displaying a second picture after determining a first filter mode corresponding to the first picture according to the target style, wherein the second picture is an effect picture obtained by performing filter processing on the first picture by adopting the target filter mode;
Wherein, the target filter mode is: the first filter mode; or, a second filter mode selected by the user.
Optionally, the electronic device 300 further includes:
the second identification module is used for identifying the color information of the garment after the second picture is displayed;
and the adjusting module is used for adjusting second parameter information of the second picture when the duty ratio of the target color in the color information is larger than a first value, wherein the second parameter information comprises at least one of brightness information and saturation information.
Optionally, in the case that the target filter mode is the second filter mode, the electronic device 300 further includes:
the third determining module is used for determining whether the style type corresponding to the clothing of the third picture is the target style type or not under the condition that the third picture is displayed on the target interface after the second picture is displayed;
the second display module is used for displaying a fourth picture when the style type corresponding to the clothing of the third picture is the target style type, wherein the fourth picture is an effect picture obtained by performing filter processing on the third picture by adopting the second filter mode.
The electronic device 300 can implement the processes in the method embodiment of the present invention and achieve the same beneficial effects, and in order to avoid repetition, a detailed description is omitted here.
Referring to fig. 4, fig. 4 is a second block diagram of an electronic device according to an embodiment of the present invention, which may be a schematic hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 4, electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power source 411. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, 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.
Wherein the processor 410 is configured to:
under the condition that a first picture is displayed on a target interface, identifying clothing of a target object in the first picture;
Determining a target style type corresponding to the garment;
and determining a first filter mode corresponding to the first picture according to the target style type.
Optionally, the processor 410 is further configured to:
acquiring first parameter information of the garment, wherein the first parameter information comprises at least one of tone information, brightness information and saturation information;
determining a target filter library corresponding to the target style type;
and selecting a first filter mode corresponding to the first picture from the target filter library according to the first parameter information.
Optionally, the processor 410 is further configured to:
displaying a second picture on the target interface through a display unit 406, wherein the second picture is an effect picture obtained by performing filter processing on the first picture by adopting a target filter mode;
wherein, the target filter mode is: the first filter mode; or, a second filter mode selected by the user.
Optionally, the processor 410 is further configured to:
identifying color information of the garment;
and adjusting second parameter information of the second picture when the duty ratio of the target color in the color information is larger than the first value, wherein the second parameter information comprises at least one of brightness information and saturation information.
Optionally, the processor 410 is further configured to:
under the condition that a third picture is displayed on the target interface, determining whether the style type corresponding to the clothing of the third picture is the target style type;
and displaying a fourth picture on the target interface through the display unit 406 when the style type corresponding to the clothing of the third picture is the target style type, wherein the fourth picture is an effect picture obtained by performing filter processing on the third picture by adopting the second filter mode.
It should be noted that, in this embodiment, the electronic device 400 may implement each process in the method embodiment of the present invention and achieve the same beneficial effects, and in order to avoid repetition, the description is omitted here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station and then processing the received downlink data by the processor 410; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 401 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. In addition, the radio frequency unit 401 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 402, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 400. The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive an audio or video signal. The input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, the graphics processor 4041 processing still pictures or picture data of video obtained by a picture capture device (e.g., a camera) in a video capture mode or a picture capture mode. The processed picture frame may be displayed on the display unit 406. The picture frames processed by the graphics processor 4041 may be stored in memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the electronic device 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 405 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 406 is used to display information input by a user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 4071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 410, and receives and executes commands sent from the processor 410. In addition, the touch panel 4071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 407 may include other input devices 4072 in addition to the touch panel 4071. In particular, other input devices 4072 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 4071 may be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 410 to determine the type of touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 4071 may be integrated with the display panel 4061 to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 408 is an interface to which an external device is connected to the electronic apparatus 400. For example, the external devices may include a wired or wireless headset port, an external power (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 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
Memory 409 may be used to store software programs as well as various data. The memory 409 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 for at least one function (such as a sound playing function, a picture playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 409 may include high-speed random access memory, and may 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 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 409 and invoking data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may also include a power supply 411 (e.g., a battery) for powering the various components, and preferably the power supply 411 may be logically connected to the processor 410 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 400 includes some functional modules, which are not shown, and are not described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 410, a memory 409, and a computer program stored in the memory 409 and capable of running on the processor 410, where the computer program when executed by the processor 410 implements each process of the above-mentioned embodiment of the picture processing method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above-mentioned embodiment of the picture processing method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (10)

1. A picture processing method applied to an electronic device, the method comprising:
under the condition that a first picture is displayed on a target interface, identifying clothing of a target object in the first picture;
determining a target style type corresponding to the garment;
determining a first filter mode corresponding to the first picture according to the target style type;
the electronic equipment stores a database, and clothing pictures of a plurality of style types are collected in the database; the clothing pictures in the database include the following classifications: solar wind, korean wind, european wind, chinese wind, hip hop wind and sports wind;
the determining the corresponding target style type of the garment specifically comprises the following steps: extracting pixel information of the garment in the first picture; generating a target clothing picture according to the pixel information; comparing the target clothing picture with each clothing picture in the database to obtain the matching degree of the target clothing picture and each clothing picture in the database; and determining the style type corresponding to the clothing picture with the highest matching degree with the target clothing picture in the database as the target style type corresponding to the clothing.
2. The method of claim 1, wherein before determining the first filter mode corresponding to the first picture according to the target style type, the method further comprises:
acquiring first parameter information of the garment, wherein the first parameter information comprises at least one of tone information, brightness information and saturation information;
the determining, according to the target style type, a first filter mode corresponding to the first picture specifically includes:
determining a target filter library corresponding to the target style type;
and selecting a first filter mode corresponding to the first picture from the target filter library according to the first parameter information.
3. The method of claim 1, wherein after determining a first filter mode corresponding to the first picture according to the target style type, the method further comprises:
displaying a second picture on the target interface, wherein the second picture is an effect picture obtained by performing filter processing on the first picture by adopting a target filter mode;
wherein, the target filter mode is: the first filter mode; or, a second filter mode selected by the user.
4. A method according to claim 3, wherein after the target interface displays a second picture, the method further comprises:
identifying color information of the garment;
and adjusting second parameter information of the second picture when the duty ratio of the target color in the color information is larger than the first value, wherein the second parameter information comprises at least one of brightness information and saturation information.
5. A method according to claim 3, wherein, in the case where the target filter mode is the second filter mode, the method further comprises, after the target interface displays a second picture:
under the condition that a third picture is displayed on the target interface, determining whether the style type corresponding to the clothing of the third picture is the target style type;
and displaying a fourth picture on the target interface under the condition that the style type corresponding to the clothing of the third picture is the target style type, wherein the fourth picture is an effect picture obtained by performing filter processing on the third picture by adopting the second filter mode.
6. An electronic device, the electronic device comprising:
The first identification module is used for identifying clothing of a target object in a first picture under the condition that the first picture is displayed on a target interface;
the first determining module is used for determining a target style type corresponding to the garment;
the second determining module is used for determining a first filter mode corresponding to the first picture according to the target style type;
the electronic equipment stores a database, and clothing pictures of a plurality of style types are collected in the database; the clothing pictures in the database include the following classifications: solar wind, korean wind, european wind, chinese wind, hip hop wind and sports wind;
the first determining module is specifically configured to: extracting pixel information of the garment in the first picture; generating a target clothing picture according to the pixel information; comparing the target clothing picture with each clothing picture in the database to obtain the matching degree of the target clothing picture and each clothing picture in the database; and determining the style type corresponding to the clothing picture with the highest matching degree with the target clothing picture in the database as the target style type corresponding to the clothing.
7. The electronic device of claim 6, wherein the electronic device further comprises:
the acquisition module is used for acquiring first parameter information of the garment before determining a first filter mode corresponding to the first picture according to the target style type, wherein the first parameter information comprises at least one of tone information, brightness information and saturation information;
the second determining module includes:
the determining unit is used for determining a target filter library corresponding to the target style type;
and the selection unit is used for selecting a first filter mode corresponding to the first picture from the target filter library according to the first parameter information.
8. The electronic device of claim 6, wherein the electronic device further comprises:
the first display module is used for displaying a second picture on the target interface after determining a first filter mode corresponding to the first picture according to the target style, wherein the second picture is an effect picture obtained by performing filter processing on the first picture by adopting the target filter mode;
wherein, the target filter mode is: the first filter mode; or, a second filter mode selected by the user.
9. The electronic device of claim 8, wherein the electronic device further comprises:
the second identifying module is used for identifying the color information of the clothing after the second picture is displayed on the target interface;
and the adjusting module is used for adjusting second parameter information of the second picture when the duty ratio of the target color in the color information is larger than a first value, wherein the second parameter information comprises at least one of brightness information and saturation information.
10. The electronic device of claim 8, wherein in the case where the target filter mode is the second filter mode, the electronic device further comprises:
the third determining module is configured to determine, when the target interface displays a third picture after the second picture is displayed on the target interface, whether a style type corresponding to clothing of the third picture is the target style type;
the second display module is configured to display a fourth picture on the target interface when the style type corresponding to the clothing of the third picture is the target style type, where the fourth picture is an effect picture obtained by performing filter processing on the third picture in the second filter mode.
CN201911367052.1A 2019-12-26 2019-12-26 Picture processing method and electronic equipment Active CN111161133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911367052.1A CN111161133B (en) 2019-12-26 2019-12-26 Picture processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911367052.1A CN111161133B (en) 2019-12-26 2019-12-26 Picture processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111161133A CN111161133A (en) 2020-05-15
CN111161133B true CN111161133B (en) 2023-07-04

Family

ID=70558469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911367052.1A Active CN111161133B (en) 2019-12-26 2019-12-26 Picture processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111161133B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115249221A (en) * 2022-09-23 2022-10-28 阿里巴巴(中国)有限公司 Image processing method and device and cloud equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018127091A1 (en) * 2017-01-09 2018-07-12 腾讯科技(深圳)有限公司 Image processing method and apparatus, relevant device and server
CN110298283A (en) * 2019-06-21 2019-10-01 北京百度网讯科技有限公司 Matching process, device, equipment and the storage medium of picture material

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8861866B2 (en) * 2012-06-20 2014-10-14 Hewlett-Packard Development Company, L.P. Identifying a style of clothing based on an ascertained feature
US9754355B2 (en) * 2015-01-09 2017-09-05 Snap Inc. Object recognition based photo filters
CN106657810A (en) * 2016-09-26 2017-05-10 维沃移动通信有限公司 Filter processing method and device for video image
CN107071299A (en) * 2017-04-28 2017-08-18 珠海市魅族科技有限公司 Information processing method and device, computer installation and storage medium
CN109068056B (en) * 2018-08-17 2021-03-30 Oppo广东移动通信有限公司 Electronic equipment, filter processing method of image shot by electronic equipment and storage medium
CN110084154B (en) * 2019-04-12 2021-09-17 北京字节跳动网络技术有限公司 Method and device for rendering image, electronic equipment and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018127091A1 (en) * 2017-01-09 2018-07-12 腾讯科技(深圳)有限公司 Image processing method and apparatus, relevant device and server
CN110298283A (en) * 2019-06-21 2019-10-01 北京百度网讯科技有限公司 Matching process, device, equipment and the storage medium of picture material

Also Published As

Publication number Publication date
CN111161133A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
US11429248B2 (en) Unread message prompt method and mobile terminal
CN107995429B (en) Shooting method and mobile terminal
JP6272342B2 (en) Image processing method, image processing device, terminal device, program, and recording medium
CN110969981B (en) Screen display parameter adjusting method and electronic equipment
CN107644396B (en) Lip color adjusting method and device
CN108712603B (en) Image processing method and mobile terminal
CN109361867B (en) Filter processing method and mobile terminal
CN108259746B (en) Image color detection method and mobile terminal
CN109917979A (en) A kind of searching method and mobile terminal
JP7467667B2 (en) Detection result output method, electronic device and medium
CN108460817B (en) Jigsaw puzzle method and mobile terminal
CN109448069B (en) Template generation method and mobile terminal
WO2020011080A1 (en) Display control method and terminal device
CN108765522B (en) Dynamic image generation method and mobile terminal
CN110825897A (en) Image screening method and device and mobile terminal
CN108600544B (en) Single-hand control method and terminal
CN107728877B (en) Application recommendation method and mobile terminal
CN109462727B (en) Filter adjusting method and mobile terminal
CN108958623A (en) A kind of application program launching method and terminal device
CN109727212B (en) Image processing method and mobile terminal
CN111161133B (en) Picture processing method and electronic equipment
CN111556358B (en) Display method and device and electronic equipment
CN112463275A (en) Data processing method, terminal and storage medium
CN108255389B (en) Image editing method, mobile terminal and computer readable storage medium
US12010264B2 (en) Information obtaining method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant