CN109325904A - Image filters treating method and apparatus - Google Patents

Image filters treating method and apparatus Download PDF

Info

Publication number
CN109325904A
CN109325904A CN201810991042.4A CN201810991042A CN109325904A CN 109325904 A CN109325904 A CN 109325904A CN 201810991042 A CN201810991042 A CN 201810991042A CN 109325904 A CN109325904 A CN 109325904A
Authority
CN
China
Prior art keywords
filter
filter mode
user action
mode
action information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810991042.4A
Other languages
Chinese (zh)
Inventor
庞文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810991042.4A priority Critical patent/CN109325904A/en
Publication of CN109325904A publication Critical patent/CN109325904A/en
Pending legal-status Critical Current

Links

Classifications

    • G06T3/04

Abstract

The present invention provides a kind of image filters treating method and apparatus.This method, comprising: obtain image information.User action information is detected, user action information includes the face action message and/or gesture motion information of user.According to the corresponding relationship between filter mode and user action information, filter mode corresponding with user action information is selected from least one filter mode.Filter processing is carried out to image information according to filter mode.The present invention realizes automatic opening and selects the process of filter mode, avoids the complicated processes for needing user to be manually operated in the prior art.

Description

Image filters treating method and apparatus
Technical field
The present invention relates to image processing techniques more particularly to a kind of image filters treating method and apparatus.
Background technique
With camera applications continuous development on the terminal device and universal, more and more users can pass through terminal device Shooting and save image information, record the excellent picture of life, and image information it is relevant take pictures software or picture editting it is soft The function of part is also stronger and stronger, and various convenient and fast image processing functions can be provided for user, realizes the beauty to image information Change.Wherein, filter can be directly realized by the image processing function of certain special-effect, the deep blueness by users as one kind It looks at.
Currently, user generally clicks filter icon in terminal device, filter can be just opened.And user still needs to set in terminal Manual operation is such as clicked in standby middle progress, just can choose out filter mode, process is relatively complicated, reduces the place of image information Efficiency is managed, the experience sense of user is influenced.
Summary of the invention
The present invention provides a kind of image filters treating method and apparatus, and with solution, user is manually opened in the prior art and selects The problem of selecting the operation of filter mode and the treatment effeciency and user experience of lower image information.
In a first aspect, the present invention provides a kind of image filters processing method, comprising:
Obtain image information;
User action information is detected, the user action information includes the face action message and/or gesture motion of user Information;
According to the corresponding relationship between filter mode and user action information, selection and institute from least one filter mode State the corresponding filter mode of user action information;
Filter processing is carried out to described image information according to the filter mode.
Optionally, before the detection user action information, the method also includes:
Open command is received, the open command is used to indicate to open and handle the filter of described image information;
According to the open command, display filter model selection interface includes at least in filter model selection interface A kind of mark of filter mode;
The corresponding relationship according between filter mode and user action information is selected from least one filter mode Filter mode corresponding with the user action information, comprising:
According to the corresponding relationship between filter mode and user action information, selected from filter model selection interface Filter mode corresponding with the user action information.
Optionally, in the corresponding relationship according between filter mode and user action information, from least one filter Before selecting filter mode corresponding with the user action information in mode, the method also includes:
According to any filter mode and user action information corresponding with any filter mode, the filter mould is established Corresponding relationship between formula and selection instruction.
Optionally, in the corresponding relationship according between filter mode and user action information, from least one filter Before selecting filter mode corresponding with the user action information in mode, the method also includes:
According to the type of filter mode, multiple filter modes are classified, obtain at least one filter modal sets;
Believed according at least one described filter modal sets and user action corresponding at least one described filter modal sets Breath, establishes the corresponding relationship of the filter mode and selection instruction.
Optionally, the method also includes:
Change directive is received, the filter mode is corresponding with user action information to close the change directive for changing System;
According to the change directive, display filter mode attribute interface includes all in filter mode attribute interface The mark of the mark of filter patterns and user action information corresponding with each filter patterns;
Modification instruction is received, the modification instruction includes the mark and filter mode to be modified of filter mode to be modified User action information;
It is instructed according to the modification, is modified to the corresponding user action information of filter mode to be modified.
Optionally, the method also includes:
It receives and deletes instruction, described delete includes the mark of filter mode and/or the mark of filter modal sets in instruction;
It is instructed according to the deletion, deletes the mark of the filter mode and/or the mark of the filter modal sets.
Optionally, the method also includes:
Addition instruction is received, includes the mark of filter mode in the addition instruction and corresponding with the filter mode User action information, and/or, the mark of filter modal sets and user action information corresponding with the filter modal sets;
It is instructed according to the addition, adds the mark of the filter mode and/or the mark of the filter modal sets.
Optionally, the method also includes:
In filter model selection interface, the mark of at least one filter mode is shown, and/or, display at least one The mark of a filter modal sets, each filter modal sets include at least one filter mode.
Optionally, the open command includes: user operation instruction or user speech instruction.
Second aspect, the present invention provide a kind of image filters processing unit, comprising:
Module is obtained, for obtaining image information;
Detection module, for detecting user action information, the user action information includes the face action message of user And/or gesture motion information;
Selecting module, for according to the corresponding relationship between filter mode and user action information, from least one filter Filter mode corresponding with the user action information is selected in mode;
Processing module, for carrying out filter processing to described image information according to the filter mode.
Optionally, described device further include:
Receiving module, for receiving open command, the unlatching before the detection module detects user action information Instruction is used to indicate to open and handle the filter of described image information;
Display module, for according to the open command, display filter model selection interface, filter model selection circle It include the mark of at least one filter mode in face;
The selecting module, specifically for according to the corresponding relationship between filter mode and user action information, from described Filter mode corresponding with the user action information is selected in filter model selection interface.
Optionally, described device further include:
Construct module, in the selecting module according to the corresponding relationship between filter mode and user action information, Before selecting filter mode corresponding with the user action information at least one filter mode, according to any filter mode With user action information corresponding with any filter mode, the corresponding pass between the filter mode and selection instruction is established System.
Optionally, described device further include:
Categorization module, in the selecting module according to the corresponding relationship between filter mode and user action information, Before selecting filter mode corresponding with the user action information at least one filter mode, according to the class of filter mode Type classifies multiple filter modes, obtains at least one filter modal sets;
Module is constructed, for according at least one described filter modal sets and corresponding at least one described filter modal sets User action information, establish the corresponding relationship of the filter mode and selection instruction.
Optionally, described device further include:
Receiving module, for receiving change directive, the change directive is for changing the filter mode and user action The corresponding relationship of information;
Display module, for according to the change directive, display filter mode attribute interface, filter mode attribute circle It include the mark of whole filter patterns and the mark of user action information corresponding with each filter patterns in face;
Receiving module, for receive modification instruction, it is described modification instruction include filter mode to be modified mark and to The user action information of the filter mode of modification;
The processing module, it is dynamic to the corresponding user of filter mode to be modified for being instructed according to the modification It modifies as information.
Optionally, described device further include:
Receiving module deletes instruction for receiving, and includes the mark and/or filter mould of filter mode in the deletion instruction The mark of formula group;
The processing module, for according to deletions instruction, delete the filter mode mark and/or the filter The mark of modal sets.
Optionally, described device further include:
Receiving module, for receive addition instruction, it is described addition instruction in include filter mode mark and with it is described The corresponding user action information of filter mode, and/or, the mark of filter modal sets and use corresponding with the filter modal sets Family action message;
The processing module, for according to the addition instruction, add the filter mode mark and/or the filter The mark of modal sets.
Optionally, described device further include:
Display module shows the mark of at least one filter mode in filter model selection interface, and/ Or, showing the mark of at least one filter modal sets, each filter modal sets include at least one filter mode.
Optionally, the open command includes: user operation instruction or user speech instruction.
The third aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, the meter Image filters processing method described in first aspect is realized when calculation machine program is executed by processor.
Fourth aspect, the present invention provide a kind of terminal device, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute the filter of image described in first aspect via the executable instruction is executed Mirror processing method.
Image filters treating method and apparatus provided by the invention, by detecting user action information, the user is dynamic It, can be according to filter mode and user action information when making the face action message and/or gesture motion information that information is user Between corresponding relationship, corresponding with user action information filter mode is quickly selected from least one filter mode, is facilitated User carries out filter processing to image information according to the filter mode chosen, realizes automatic opening and selection filter mode Process, avoid need in the prior art user be manually operated complicated processes, thus accelerate image information processing speed Degree, improves the experience sense of user.
Detailed description of the invention
It, below will be to embodiment or existing in order to clearly demonstrate the embodiment of the present invention or technical solution in the prior art Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments of embodiment, for those of ordinary skill in the art, without any creative labor, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the flow chart of image filters processing method provided by the invention;
Fig. 2 is the flow chart of image filters processing method provided by the invention;
Fig. 3 is the schematic diagram at filter model selection interface in image filters processing method provided by the invention;
Fig. 4 is the schematic diagram at filter model selection interface in image filters processing method provided by the invention;
Fig. 5 is the flow chart of image filters processing method provided by the invention;
Fig. 6 is the schematic diagram at filter mode attribute interface in image filters processing method provided by the invention;
Fig. 7 is the structural schematic diagram of image filters processing unit provided by the invention;
Fig. 8 is the structural schematic diagram of image filters processing unit provided by the invention;
Fig. 9 is the hardware structural diagram of terminal device provided by the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the embodiment of the present invention, instead of all the embodiments.Based on the embodiment in the embodiment of the present invention, this field Those of ordinary skill's every other embodiment obtained without making creative work, belongs to implementation of the present invention The range of example protection.
In the present embodiment, when user wants to carry out filter processing to the image information in terminal device, terminal device can With by the facial expression or gesture of detection user, and according to the corresponding relationship between filter mode and user action information, from Filter mode corresponding with the facial expression of user or gesture is selected at least one filter mode, thus according to selecting Filter mode carries out filter processing to image information, accelerates the selection speed of filter mode, improve the experience sense of user by.
Wherein, terminal device (terminal device) include but is not limited to mobile station (MS, Mobile Station), Mobile terminal (Mobile Terminal), mobile phone (Mobile Telephone), mobile phone (handset) and portable equipment (portable equipment) etc., the terminal device can through wireless access network (RAN, Radio Access Network) with One or more core nets are communicated, for example, terminal device can be mobile phone (or being " honeycomb " phone), have nothing The computer etc. of line communication function, terminal device can also be the computer with radio transmission-receiving function, virtual reality (Virtual Reality, VR) terminal device, augmented reality (Augmented Reality, AR) terminal device, Industry Control Wireless terminal in (industrial control), the wireless terminal in unmanned (self driving), tele-medicine The wireless terminal in wireless terminal, smart grid (smart grid), transportation safety in (remote medical) The wireless terminal in wireless terminal, smart city (smart city) in (transportation safety), wisdom family Wireless terminal etc. in (smart home), and the operating system installed on terminal device includes but is not limited to: IOS, The operating systems such as Android, windows, linux, Mac OS.Terminal can be called different titles in different networks, Such as: user equipment, mobile station, subscriber unit, platform, cellular phone, personal digital assistant, radio modem, wirelessly Communication equipment, handheld device, laptop computer, wireless phone, wireless local loop platform etc..For convenience of description, in the present embodiment Referred to as terminal device.
In the following, being carried out specifically using terminal device as executing subject to the specific implementation process of image filters processing method It is bright.
Fig. 1 is the flow chart of image filters processing method provided by the invention, as shown in Figure 1, the image of the present embodiment is filtered Mirror processing method may include:
S101, image information is obtained.
Specifically, terminal device can directly acquire image information from itself memory space, can also by built-in or The filming apparatus real-time image acquisition information of outside installation, the present embodiment without limitation, only need the acquisition modes of terminal device Meeting the image information is that user wants to carry out the information of filter processing.
Wherein, the present embodiment does not do specific restriction to parameters such as the size of image information and formats.
S102, detection user action information, user action information includes the face action message and/or gesture motion of user Information.
Specifically, since the type of filter mode is more, user needs to take a long time from multiple filters in the prior art Select desired filter mode in mirror mode, inefficiency and experience sense is poor, therefore, in the present embodiment, terminal device can lead to Detection user action information is crossed, and determines that user wants to filter mode used by image information according to user action information, Lookup that is convenient and efficient and being taken time and effort without user.
Wherein, user action information includes the face action message and/or gesture motion information of user, and the face of user are dynamic It as information may include the facial expression and facial face movement of user, such as laugh at, cry, blink or close one's eyes.The gesture of user is dynamic Can include but is not limited to the movement that user is worked it out using hand or hands as information, such as clench fist or the five fingers open gesture.
In addition, in order to ensure facial expression or gesture that terminal device can accurately obtain user, terminal device can be with User arranges a duration in advance, terminal device in the facial expression or gesture that still can detecte user after the duration, The facial expression or gesture for the user that then terminal device will test regard as the maloperation for effectively avoiding user, improve The accuracy of detection.Then, the step of after terminal device is carried out using the facial expression or gesture of the user.
It should be noted that do not have the sequencing in timing between above-mentioned S101 and S102, and S101 and S102 can be with It is performed simultaneously, can also sequentially execute.
S103, according to the corresponding relationship between filter mode and user action information, selected from least one filter mode Select filter mode corresponding with user action information.
S104, filter processing is carried out to image information according to filter mode.
Specifically, since user action information may indicate that user wants the filter patterns used, terminal device exists It, can be according to the corresponding relationship between filter mode and user action information, from least one when getting user action information Filter mode corresponding with user action information is selected in filter mode.In turn, terminal device is according to the filter module selected Filter processing is carried out to image information.
Image filters processing method provided in this embodiment, by detecting user action information, user action letter It, can be according between filter mode and user action information when breath is the face action message and/or gesture motion information of user Corresponding relationship, corresponding with user action information filter mode is quickly selected from least one filter mode, facilitates user Filter processing is carried out to image information according to the filter mode chosen, realize automatic opening and selects the mistake of filter mode Journey avoids the complicated processes for needing user to be manually operated in the prior art and mentions to accelerate the processing speed of image information The high experience sense of user.
On the basis of the above embodiments, in order to vividly to filter mode, this implementation used by user program Example also provides a kind of image filters processing method.Fig. 2 is the flow chart of image filters processing method provided by the invention, and Fig. 3 is The schematic diagram at filter model selection interface in image filters processing method provided by the invention, Fig. 4 are image provided by the invention The schematic diagram at filter model selection interface in filter processing method.As shown in Fig. 2, the image filters processing method of the present embodiment can To include:
S201, image information is obtained.
Wherein, S201 is similar with the S101 implementation in Fig. 1 embodiment, and details are not described herein again for the present embodiment.
S202, open command is received, open command is used to indicate to open and handle the filter of image information.
S203, according to open command, display filter model selection interface includes at least one in filter model selection interface The mark of filter mode.
Specifically, since open command may indicate that user wants to carry out filter processing to image information, terminal is set It is standby when receiving open command from user side, can display filter model selection interface, filter on the screen of terminal device It include the mark of at least one filter mode in mirror model selection interface, convenient for various filter modes intuitively are presented to user, Enhance the experience sense of user.
Specifically, which can be arranged in any position of its screen, this implementation by terminal device Example to the size at filter model selection interface, shape, color and position all without limitation.Have in view of the screen of terminal device Limit, the display format at filter model selection interface includes but is not limited to page turning form.
Optionally, in filter model selection interface, the mark of at least one filter mode is shown, and/or, display is at least The mark of one filter modal sets, each filter modal sets include at least one filter mode.In addition, filter model selection interface In in addition to may include filter mode mark, can also include other buttons or mark.
Further, the present embodiment to design parameters such as the size of the mark of filter mode, shape, color and positions not It limits.Any filter mode mark can be the filter mode literal name, or the filter mode it is specific Image, or the combination of the two, the present embodiment do not limit this.For ease of description, as shown in figure 3, being set with terminal Standby is mobile phone, and the mark of six filter modes (filter Mode A-filter model F) is evenly arranged in filter model selection interface In for, filter model selection interface is illustrated.
Wherein, the present embodiment to the concrete form of open command without limitation.Optionally, open command includes: user behaviour Make instruction or user speech instruction.Such as, the selection information that user directly keys in, alternatively, the corresponding language of title of " filter Mode A " Message breath.
However, in the specific application process, terminal device may be closed according to filter mode is corresponding with user action information System, can not determine at least one filter mode corresponding with user action information, show at this point, terminal device can will be prompted to information Show on filter model selection interface, prompt information, which is used to indicate, is not present filter mode corresponding with user action information.
Specifically, terminal device can be intuitive by the prompt information and clearly informs user, itself can not be according to inspection The user action information measured determines filter mode, changes other users action message in time convenient for user to determine that user wants The filter mode of use.
Wherein, prompt information can be mark display, or text importing, the present embodiment do not limit this.Such as, Symbol "×" or " not finding filter mode ".And the present embodiment is to the position of prompt information, size, color and shape etc. Parameter is not specifically limited.For ease of description, as shown in figure 4, for showing text " not finding filter mode ", to filter Prompt information in mirror model selection interface is illustrated.
S204, detection user action information, user action information includes the face action message and/or gesture motion of user Information.
Wherein, S204 is similar with the S102 implementation in Fig. 1 embodiment, and details are not described herein again for the present embodiment.
S205, according to the corresponding relationship between filter mode and user action information, selected from filter model selection interface Select filter mode corresponding with user action information.
Specifically, since user action information may indicate that user wants the filter mode used, terminal device can With according to the corresponding relationship between filter mode and user action information, selection and user action from filter model selection interface The corresponding filter mode of information, is quickly presented to the user by filter model selection interface, reduces the search time of user.
S206, filter processing is carried out to image information according to filter mode.
Wherein, S206 is similar with the S104 implementation in Fig. 1 embodiment, and details are not described herein again for the present embodiment.
Specifically, filter mode can be presented to user by filter model selection interface in terminal device, so that user More intuitively get filter mode.
Image filters processing method provided in this embodiment, by according to the open command received, display filter mode Selection interface, includes the mark of at least one filter mode in the filter model selection interface, and the filter model selection interface is real When to user present currently include filter mode, facilitate user to select, save user search for filter mode time, Accelerate the speed of selection filter mode.In turn, user action information is being detected, which is the face of user It, can be according to the corresponding relationship between filter mode and user action information, quickly when action message and/or gesture motion information Filter mode corresponding with user action information is selected from filter model selection interface, vividly and is visually presented to user The selection course of filter mode realizes automatic opening and selects the process of filter mode, avoids and need to use in the prior art The complicated processes of family manual operation improve the experience sense of user, increase and open to accelerate the processing speed of image information The interest of dynamic application program.
Further, in order to ensure the filter mode that the accurate presentation user of terminal device wants, terminal device can be in reality Before applying a S103, the corresponding relationship between each filter mode and user action information is constructed, so that terminal device can be with When receiving user action information, the filter mode for having corresponding relationship with the user action information can be quickly determined.
In a kind of feasible implementation, optionally, the method for the present embodiment may include:
According to any filter mode and user action information corresponding with any filter mode, filter mode and selection are established Corresponding relationship between instruction.
Specifically, terminal device can be to each corresponding user action information of filter pattern association, each filter mould The corresponding user action information of formula may be the same or different, for example, the corresponding user action information of filter Mode A can be with To clench fist, or open the five fingers.The corresponding user action information of each filter mode can be one, or more It is a, for example, filter Mode A and the corresponding user action information of filter Mode B all can be to clench fist.In turn, terminal device When detecting user action information, filter mode can be quickly determined.
Wherein, the corresponding relationship between filter mode and user action information can include but is not limited to mark or code Form be identified.
In another feasible implementation, optionally, the method for the present embodiment may include:
According to the type of filter mode, multiple filter modes are classified, obtain at least one filter modal sets;
According at least one filter modal sets and user action information corresponding at least one filter modal sets, filter is established The corresponding relationship of mirror mode and selection instruction.
Specifically, terminal device can the effect according to possessed by filter mode, determine the type of filter mode.For example, When filter Mode A has music playback function, filter Mode A can be determined as music type by terminal device;When filter mould When formula A has whitening effect, filter Mode A can be determined as whitening type by terminal device;When filter Mode A has weight reducing effect When fruit, filter Mode A can be determined as type of reducing weight by terminal device.
In addition, terminal device can be sentenced according to the main effect of filter mode if filter mode has multi-effect The type of the fixed filter mode can also determine that the filter mode has corresponding whole classes according to whole effects of filter mode Type, the present embodiment do not limit this.
Further, terminal device can classify to multiple filter modes according to the type of filter mode, obtain to Few filter modal sets, then the user action information received from the user action information that itself is equipped with or from user side In, user action information corresponding at least one filter modal sets is selected, the number of user action information can be with filter mould The group number of formula group is identical, can also be different from the group number of filter modal sets, and the present embodiment does not limit this.
Further, terminal device establishes filter according at least one filter modal sets and corresponding user action information The corresponding relationship of mode and user action information, be not only convenient for terminal device can quickly determine it is corresponding with user action information Filter modal sets, being also convenient for terminal device can be in user in time by the filter modal sets by filter model selection interface It is existing, enhance the experience sense of user.
On the basis of the above embodiments, the sensitivity detected generally for convenient for the user to operate and raising terminal device, Terminal device can usually select corresponding user action information according to the frequency of use of filter mode.Specifically, terminal is set Standby by the cinch face action message of user and/or gesture motion information setting is corresponding to the high filter mode of frequency of use User action information, such as movement of clenching fist makes face action message and/or gesture motion information setting that user seldom does The user action information corresponding to the low filter mode of frequency.
However, the frequency of use of filter mode may occur with the main, objective factor such as user demand and time passage Change, therefore, terminal device needs to have the function that can change user action information corresponding to filter mode.In the following, knot Fig. 5 is closed, the specific implementation process of the corresponding user action information of terminal device change filter mode is described in detail.
Fig. 5 is the flow chart of image filters processing method provided by the invention, and Fig. 6 is at image filters provided by the invention The schematic diagram at filter mode attribute interface in reason method.As shown in figure 5, the image filters processing method of the present embodiment can wrap It includes:
S501, change directive is received, change directive is used to change the corresponding relationship of filter mode and user action information.
S502, according to change directive, display filter mode attribute interface includes all filtering in filter mode attribute interface The mark of the mark of mode and user action information corresponding with each filter patterns.
Specifically, terminal device can receive change directive from user side, and according to the change directive, in terminal device Display filter mode attribute interface in screen includes the whole for terminal device current time including in the filter mode attribute interface The attribute information of filter mode and the corresponding user action information of each filter mode.
Wherein, which can be voice input mode, or character input modes, the present embodiment to this not It limits.And the attribute information of any filter mode may include but be not limited to whitening, thin face, stretching, amplification eyes, eliminate it is black The effect display location information etc. of the various efficacy parameters such as eyelet and filter mode in filter mode attribute interface.It is any The corresponding user action information of filter mode can include but is not limited in filter mode attribute interface with written form or figure Shape form is shown.For ease of description, as shown in fig. 6, using terminal device as mobile phone and the corresponding user of filter Mode A is dynamic Making information is text " clenching fist " and for the corresponding user action information of filter Mode B is text " open the five fingers ", to filter mould Formula properties interface is illustrated.Wherein, the particular content of filter Mode A and the corresponding attribute information of filter Mode B does not show Out.
S503, modification instruction is received, modification instructs the mark for including filter mode to be modified and filter mould to be modified The user action information of formula.
S504, it is instructed according to modification, is modified to the corresponding user action information of filter mode to be modified.
Specifically, terminal device can receive modification instruction from user side, due to including filter to be modified in modification instruction The mark of mirror mode determines terminal device and needs to modify to which filter mode.Again due in modification instruction Including the corresponding user action information of filter mode to be modified, allow terminal device that filter mode to be modified is current Corresponding user action information is revised as the corresponding user action information of filter mode to be modified in modification instruction.
Wherein, modification instruction can be voice input mode, or character input modes, the present embodiment do not do this It limits.
Further, since the screen of terminal device is limited, so that the size at filter model selection interface is limited, therefore, The rarely needed filter mode of user can be deleted in the present embodiment on filter model selection interface.Due in terminal device Filter mode might have new type, therefore, can also add new filter on filter model selection interface in the present embodiment Mirror mode.
Optionally, the method for the present embodiment may include:
It receives and deletes instruction, deleting includes the mark of filter mode and/or the mark of filter modal sets in instruction;
It is instructed according to deleting, deletes the mark of filter mode and/or the mark of filter modal sets.
Optionally, the method for the present embodiment may include:
Addition instruction is received, the mark in instruction including filter mode and user action corresponding with filter mode are added Information, and/or, the mark of filter modal sets and user action information corresponding with filter modal sets;
It is instructed according to addition, adds the mark of filter mode and/or the mark of filter modal sets.
Specifically, when terminal device receives from user side and deletes instruction, terminal device can delete filter model selection The mark of filter mode in interface can also delete the mark of filter modal sets in filter model selection interface, can also delete The mark of the mark of filter mode and filter modal sets in filter model selection interface.
Accordingly, in the addition instruction that terminal device is received from user side, terminal device can be selected in filter mode The mark for adding filter mode in interface is selected, the mark of filter modal sets can also be added in filter model selection interface, also The mark of filter mode and the mark of filter modal sets can be added in filter model selection interface.
Wherein, deleting instruction and addition instruction can instruct for user speech, or user operation instruction, this implementation Example does not limit this.
In addition, the present embodiment can also change position of the filter mode in filter model selection interface, will commonly filter Mirror mode is placed into the macroscopic position of user, and the filter mode being of little use is placed into other positions.
Fig. 7 is the structural schematic diagram of image filters processing unit provided by the invention, as shown in fig. 7, the figure of the present embodiment As filter processing unit 70 includes:
Module 71 is obtained, for obtaining image information;
Detection module 72, for detecting user action information, user action information include user face action message and/ Or gesture motion information;
Selecting module 73, for being filtered from least one according to the corresponding relationship between filter mode and user action information Filter mode corresponding with user action information is selected in mirror mode;
Processing module 74, for carrying out filter processing to image information according to filter mode.
Above method embodiment, specific implementation can be performed in image filters processing unit 70 provided in an embodiment of the present invention Principle and technical effect, reference can be made to above-mentioned image filters processing method embodiment as shown in Figure 1, the present embodiment is no longer superfluous herein It states.
Fig. 8 is the structural schematic diagram of image filters processing unit provided by the invention, as shown in figure 8, the figure of the present embodiment As on the basis of the apparatus structure shown in Fig. 7 of filter processing unit 70, further includes:
Receiving module 75, for receiving open command, open command before detection module 72 detects user action information It is used to indicate to open and the filter of image information is handled;
Display module 76, for according to open command, display filter model selection interface, filter model selection interface Zhong Bao Include the mark of at least one filter mode;
Selecting module 73, specifically for according to the corresponding relationship between filter mode and user action information, from filter mould Filter mode corresponding with user action information is selected in formula selection interface.
Continuing with Fig. 8, image filters processing unit 70 further include:
Construct module 77, in selecting module 73 according to the corresponding relationship between filter mode and user action information, Before selecting corresponding with user action information filter mode at least one filter mode, according to any filter mode and with The corresponding user action information of any filter mode, establishes the corresponding relationship between filter mode and selection instruction.
Continuing with Fig. 8, image filters processing unit 70 further include:
Categorization module 78, in selecting module 73 according to the corresponding relationship between filter mode and user action information, Before selecting corresponding with user action information filter mode at least one filter mode, according to the type of filter mode, Multiple filter modes are classified, at least one filter modal sets is obtained;
Module 77 is constructed, for according at least one filter modal sets and user corresponding at least one filter modal sets Action message establishes the corresponding relationship of filter mode and selection instruction.
Continuing with Fig. 8, image filters processing unit 70 further include:
Receiving module 75, for receiving change directive, change directive is used to change filter mode and user action information Corresponding relationship;
Display module 76, for according to change directive, display filter mode attribute interface, filter mode attribute interface Zhong Bao Include the mark of whole filter patterns and the mark of user action information corresponding with each filter patterns;
Receiving module 75, for receiving modification instruction, modification instruction includes the mark of filter mode to be modified and to be repaired The user action information of the filter mode changed;
Processing module 74 carries out the corresponding user action information of filter mode to be modified for being instructed according to modification Modification.
Continuing with Fig. 8, image filters processing unit 70 further include:
Receiving module 75, deletes instruction for receiving, and includes the mark and/or filter mode of filter mode in deletion instruction The mark of group;
Processing module 74, for deleting the mark of filter mode and/or the mark of filter modal sets according to instruction is deleted.
Continuing with Fig. 8, image filters processing unit 70 further include:
Receiving module 75, for receive addition instruction, addition instruction in include filter mode mark and with filter mould The corresponding user action information of formula, and/or, the mark of filter modal sets and user action corresponding with filter modal sets letter Breath;
Processing module 74 adds the mark of filter mode and/or the mark of filter modal sets for instructing according to addition.
Continuing with Fig. 8, image filters processing unit 70 further include:
Display module 76 is used in filter model selection interface, shows the mark of at least one filter mode, and/or, Show that the mark of at least one filter modal sets, each filter modal sets include at least one filter mode.
Optionally, open command includes: user operation instruction or user speech instruction.
Above method embodiment, specific implementation can be performed in image filters processing unit 70 provided in an embodiment of the present invention Principle and technical effect, reference can be made to the above-mentioned processing method embodiment of image filters as shown in figs 1 to 6, the present embodiment is herein no longer It repeats.
It can carry out the division of functional module, example in the present invention to image filters processing unit 70 according to above method example Such as, each functional module of each function division can be corresponded to, two or more functions can also be integrated at one It manages in module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module It realizes.It should be noted that being schematical, only a kind of logic function stroke to the division of module in various embodiments of the present invention Point, there may be another division manner in actual implementation.
Fig. 9 is the hardware structural diagram of terminal device provided by the invention.As shown in figure 9, the terminal device 90 includes: Memory 91 and processor 92;
Memory 91, for storing computer program;
Processor 92, for executing the computer program of memory storage, to realize the image filters in above-described embodiment Processing method.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 91 can also be integrated with processor 92 either independent.
When device except memory 91 is independently of processor 92, terminal device 20 can also include:
Bus 93, for connecting memory 91 and processor 92.
Terminal device provided in this embodiment can be used for executing above-mentioned image filters processing method, implementation and skill Art effect is similar, and details are not described herein again for the present embodiment.
The present invention also provides a kind of computer readable storage medium, computer readable storage medium includes computer program, Computer program is for realizing the image filters processing method in embodiment as above.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of module, only A kind of logical function partition, there may be another division manner in actual implementation, such as multiple modules can combine or can be with It is integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or module, can To be electrically mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned module at Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this Shen Please each embodiment method part steps.
It should be understood that above-mentioned processor can be central processing unit (English: Central Processing Unit, letter Claim: CPU), can also be other general processors, digital signal processor (English: Digital Signal Processor, Referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with hair The step of bright disclosed method, can be embodied directly in hardware processor and execute completion, or with hardware in processor and soft Part block combiner executes completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
Above-mentioned computer readable storage medium can be by any kind of volatibility or non-volatile memory device or Their combination realizes that, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) can Erasable programmable read-only memory (EPROM) (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, Flash memory, disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (20)

1. a kind of image filters processing method characterized by comprising
Obtain image information;
User action information is detected, the user action information includes the face action message and/or gesture motion information of user;
According to the corresponding relationship between filter mode and user action information, selection and the use from least one filter mode The corresponding filter mode of family action message;
Filter processing is carried out to described image information according to the filter mode.
2. the method according to claim 1, wherein before the detection user action information, the method Further include:
Open command is received, the open command is used to indicate to open and handle the filter of described image information;
According to the open command, display filter model selection interface includes at least one in filter model selection interface The mark of filter mode;
The corresponding relationship according between filter mode and user action information, selection and institute from least one filter mode State the corresponding filter mode of user action information, comprising:
According to the corresponding relationship between filter mode and user action information, selection and institute from filter model selection interface State the corresponding filter mode of user action information.
3. the method according to claim 1, wherein described according between filter mode and user action information Corresponding relationship, it is described before selecting corresponding with user action information filter mode at least one filter mode Method further include:
According to any filter mode and user action information corresponding with any filter mode, establish the filter mode with Corresponding relationship between selection instruction.
4. the method according to claim 1, wherein described according between filter mode and user action information Corresponding relationship, it is described before selecting corresponding with user action information filter mode at least one filter mode Method further include:
According to the type of filter mode, multiple filter modes are classified, obtain at least one filter modal sets;
According at least one described filter modal sets and user action information corresponding at least one described filter modal sets, build Found the corresponding relationship of the filter mode and selection instruction.
5. method according to claim 1-4, which is characterized in that the method also includes:
Change directive is received, the change directive is used to change the corresponding relationship of the filter mode and user action information;
According to the change directive, display filter mode attribute interface includes all filtering in filter mode attribute interface The mark of the mark of mode and user action information corresponding with each filter patterns;
Modification instruction is received, the modification instruction includes the mark of filter mode to be modified and the use of filter mode to be modified Family action message;
It is instructed according to the modification, is modified to the corresponding user action information of filter mode to be modified.
6. method according to claim 1-4, which is characterized in that the method also includes:
It receives and deletes instruction, described delete includes the mark of filter mode and/or the mark of filter modal sets in instruction;
It is instructed according to the deletion, deletes the mark of the filter mode and/or the mark of the filter modal sets.
7. method according to claim 1-4, which is characterized in that the method also includes:
Addition instruction is received, it is described to add the mark in instruction including filter mode and user corresponding with the filter mode Action message, and/or, the mark of filter modal sets and user action information corresponding with the filter modal sets;
It is instructed according to the addition, adds the mark of the filter mode and/or the mark of the filter modal sets.
8. method according to claim 1-4, which is characterized in that the method also includes:
In filter model selection interface, the mark of at least one filter mode is shown, and/or, show at least one filter The mark of mirror modal sets, each filter modal sets include at least one filter mode.
9. according to the method described in claim 2, it is characterized in that, the open command includes: user operation instruction or user Phonetic order.
10. a kind of image filters processing unit characterized by comprising
Module is obtained, for obtaining image information;
Detection module, for detecting user action information, the user action information include user face action message and/or Gesture motion information;
Selecting module, for according to the corresponding relationship between filter mode and user action information, from least one filter mode It is middle to select filter mode corresponding with the user action information;
Processing module, for carrying out filter processing to described image information according to the filter mode.
11. device according to claim 10, which is characterized in that described device further include:
Receiving module, for receiving open command, the open command before the detection module detects user action information It is used to indicate to open and the filter of described image information is handled;
Display module, for according to the open command, display filter model selection interface, in filter model selection interface Mark including at least one filter mode;
The selecting module, specifically for according to the corresponding relationship between filter mode and user action information, from the filter Filter mode corresponding with the user action information is selected in model selection interface.
12. device according to claim 10, which is characterized in that described device further include:
Construct module, in the selecting module according to the corresponding relationship between filter mode and user action information, to In a kind of few filter mode before selection filter mode corresponding with the user action information, according to any filter mode and with The corresponding user action information of any filter mode, establishes the corresponding relationship between the filter mode and selection instruction.
13. device according to claim 10, which is characterized in that described device further include:
Categorization module, in the selecting module according to the corresponding relationship between filter mode and user action information, to In a kind of few filter mode before selection filter mode corresponding with the user action information, according to the type of filter mode, Multiple filter modes are classified, at least one filter modal sets is obtained;
Module is constructed, for according at least one described filter modal sets and use corresponding at least one described filter modal sets Family action message establishes the corresponding relationship of the filter mode and selection instruction.
14. the described in any item devices of 0-13 according to claim 1, which is characterized in that described device further include:
Receiving module, for receiving change directive, the change directive is for changing the filter mode and user action information Corresponding relationship;
Display module, for according to the change directive, display filter mode attribute interface, in filter mode attribute interface The mark of mark including whole filter patterns and user action information corresponding with each filter patterns;
Receiving module, for receiving modification instruction, the modification instruction includes the mark of filter mode to be modified and to be modified Filter mode user action information;
The processing module believes the corresponding user action of the filter mode to be modified for being instructed according to the modification Breath is modified.
15. the described in any item devices of 0-13 according to claim 1, which is characterized in that described device further include:
Receiving module deletes instruction for receiving, and includes the mark and/or filter modal sets of filter mode in the deletion instruction Mark;
The processing module deletes the mark and/or the filter mode of the filter mode for instructing according to the deletion The mark of group.
16. the described in any item devices of 0-13 according to claim 1, which is characterized in that described device further include:
Receiving module, for receive addition instruction, it is described addition instruction in include filter mode mark and with the filter The corresponding user action information of mode, and/or, the mark of filter modal sets and user corresponding with the filter modal sets are dynamic Make information;
The processing module adds the mark and/or the filter mode of the filter mode for instructing according to the addition The mark of group.
17. the described in any item devices of 0-13 according to claim 1, which is characterized in that described device further include:
Display module is used in filter model selection interface, shows the mark of at least one filter mode, and/or, it shows Show that the mark of at least one filter modal sets, each filter modal sets include at least one filter mode.
18. device according to claim 11, which is characterized in that the open command includes: user operation instruction or use Family phonetic order.
19. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Claim 1-9 described in any item image filters processing methods are realized when being executed by processor.
20. a kind of terminal device characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to require 1-9 described in any item via executing the executable instruction and carry out perform claim Image filters processing method.
CN201810991042.4A 2018-08-28 2018-08-28 Image filters treating method and apparatus Pending CN109325904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810991042.4A CN109325904A (en) 2018-08-28 2018-08-28 Image filters treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810991042.4A CN109325904A (en) 2018-08-28 2018-08-28 Image filters treating method and apparatus

Publications (1)

Publication Number Publication Date
CN109325904A true CN109325904A (en) 2019-02-12

Family

ID=65264580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810991042.4A Pending CN109325904A (en) 2018-08-28 2018-08-28 Image filters treating method and apparatus

Country Status (1)

Country Link
CN (1) CN109325904A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264544A (en) * 2019-05-30 2019-09-20 腾讯科技(深圳)有限公司 Image processing method and device, storage medium and electronic device
CN110442867A (en) * 2019-07-30 2019-11-12 腾讯科技(深圳)有限公司 Image processing method, device, terminal and computer storage medium
CN112561827A (en) * 2020-12-22 2021-03-26 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731439A (en) * 2013-12-19 2015-06-24 青岛海信移动通信技术股份有限公司 Gesture packaging and task executing method and device
CN105657272A (en) * 2016-02-04 2016-06-08 上海卓易科技股份有限公司 Terminal equipment and photographing method thereof
CN106331502A (en) * 2016-09-27 2017-01-11 奇酷互联网络科技(深圳)有限公司 Terminal and its filter photographing method and device
CN107015648A (en) * 2017-03-28 2017-08-04 北京小米移动软件有限公司 Image processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731439A (en) * 2013-12-19 2015-06-24 青岛海信移动通信技术股份有限公司 Gesture packaging and task executing method and device
CN105657272A (en) * 2016-02-04 2016-06-08 上海卓易科技股份有限公司 Terminal equipment and photographing method thereof
CN106331502A (en) * 2016-09-27 2017-01-11 奇酷互联网络科技(深圳)有限公司 Terminal and its filter photographing method and device
CN107015648A (en) * 2017-03-28 2017-08-04 北京小米移动软件有限公司 Image processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264544A (en) * 2019-05-30 2019-09-20 腾讯科技(深圳)有限公司 Image processing method and device, storage medium and electronic device
CN110264544B (en) * 2019-05-30 2023-08-25 腾讯科技(深圳)有限公司 Picture processing method and device, storage medium and electronic device
CN110442867A (en) * 2019-07-30 2019-11-12 腾讯科技(深圳)有限公司 Image processing method, device, terminal and computer storage medium
CN112561827A (en) * 2020-12-22 2021-03-26 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10742900B2 (en) Method and system for providing camera effect
CN112153283B (en) Shooting method and device and electronic equipment
CN109242765B (en) Face image processing method and device and storage medium
CN108062526A (en) A kind of estimation method of human posture and mobile terminal
CN104299001B (en) Generate the method and device of photograph album
CN110083730A (en) Use the method and apparatus of voice label management image
CN104461348B (en) Information choosing method and device
CN109325904A (en) Image filters treating method and apparatus
KR20160143312A (en) Operating method for communication and Electronic device supporting the same
CN107430480A (en) The method of electronic equipment and in the electronic device processing information
CN105117008B (en) Guiding method of operating and device, electronic equipment
CN105320402B (en) Manage the method for data and the electronic equipment for handling this method
US20200412864A1 (en) Modular camera interface
CN108307069A (en) Navigate operation method, navigation running gear and mobile terminal
CN106250421A (en) A kind of method shooting process and terminal
CN108463799A (en) The flexible display and its operating method of electronic equipment
CN107566642A (en) A kind of method, apparatus and intelligent terminal of functional mode switching
CN104754234A (en) Photographing method and device
CN108986026A (en) A kind of picture joining method, terminal and computer readable storage medium
CN107291704A (en) Treating method and apparatus, the device for processing
CN109167884A (en) A kind of method of servicing and device based on user speech
CN109144377A (en) Operating method, smartwatch and the computer readable storage medium of smartwatch
CN109164916A (en) The starting method and apparatus of application program
CN106471493A (en) Method and apparatus for managing data
CN107391121A (en) A kind of photograph sharing method, device and storage medium, 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190212