CN109729267A - Filter selection method, mobile terminal and computer readable storage medium - Google Patents

Filter selection method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109729267A
CN109729267A CN201811596346.7A CN201811596346A CN109729267A CN 109729267 A CN109729267 A CN 109729267A CN 201811596346 A CN201811596346 A CN 201811596346A CN 109729267 A CN109729267 A CN 109729267A
Authority
CN
China
Prior art keywords
filter
target
image
selection
window
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
CN201811596346.7A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811596346.7A priority Critical patent/CN109729267A/en
Publication of CN109729267A publication Critical patent/CN109729267A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of filter selection method, mobile terminal and computer readable storage mediums, this method comprises: popping up Object Selection window when detecting that camera is in screening-mode;Obtain one or more target objects of the user by the Object Selection window selection;Pop-up filter corresponding with the one or more target object selects window;Receive the target filter that user selects in one or more filter selection windows;The correspondence filtering effects of the target filter are mapped into corresponding target object in real time, and show final effect image.The present invention selects one or more target objects, and the corresponding filter of the respectively described target object recognition by user by interactive mode, enriches image taking effect, improves the intelligence of human-computer interaction.

Description

Filter selection method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to technical field of image processing more particularly to a kind of filter selection methods, mobile terminal and computer Readable storage medium storing program for executing.
Background technique
Currently, user can only generally select a kind of filter when using the mobile terminals such as mobile phone shooting photo or video image Mirror.If there are multiple target objects to need while shooting, the filter of multiple target objects is difficult to find that while is suitble to.And work as Preceding filter is more and more abundant, and suitable filter is also difficult to find that for ordinary user.
Summary of the invention
The present invention provides a kind of filter selection method, mobile terminal and computer readable storage medium, it is intended to rich image Shooting effect improves the intelligence of human-computer interaction.
To achieve the above object, the present invention provides a kind of filter selection method, which comprises
When detecting that camera is in screening-mode, Object Selection window is popped up;
Obtain one or more target objects of the user by the Object Selection window selection;
Pop-up filter corresponding with the one or more target object selects window;
Receive the target filter that user selects in one or more filter selection windows;
The correspondence filtering effects of the target filter are mapped into corresponding target object in real time, and show final effect figure Picture.
Preferably, described the step of popping up filter selection window corresponding with the one or more target object, includes:
Judge the number of the target object;
If the number of the target object is one, a direct pop-up filter corresponding with the target object Select window;
If the number of the target object is multiple, pop-up multiple filters selections corresponding with multiple target objects Window is arranged the multiple filter selection window by pre-set priority sequence.
Preferably, the correspondence filtering effects by the target filter map to corresponding target object in real time, and will Step of the final effect image in present image include:
Determine one or more target areas where the original image of one or more target objects;
The corresponding filtering effects of the target filter are mapped into corresponding target area, are obtained one or more corresponding Filter image, and be background by the corresponding image tagged in background area except one or more target area described in original image Image;
Splice one or more of filter images and the background image, obtains final effect image, and showing The final effect image is shown in screen.
Preferably, the step of one or more target objects for obtaining user by the Object Selection window selection Before further include:
The clicking operation for the selection target object that detection user is triggered by the Object Selection window;
If the clicking operation is not detected within a preset period of time, the Object Selection window is withdrawn;
If detecting the clicking operation in the preset time period, then follow the steps: it is described right that acquisition user passes through One or more target objects as selecting window selection.
Preferably, the correspondence filtering effects by the target filter map to corresponding target object in real time, and will Final effect is shown in after the step in present image further include:
The shooting instruction of user is received, and by the current one or more filters of the shooting instruction labeled as one Or multiple target filters;
The corresponding final effect image of one or more of target filters is saved to image data base.
Preferably, described to save the corresponding final effect image of one or more of target filters to image data base The step of after further include:
Receive the filter change directive that user sends the final effect image under image review mode;
Filter to be changed is obtained according to the filter change directive and target replaces filter, removes the final effect figure The filtering effects of target replacement filter are mapped in the filter to be changed by the filtering effects of the filter to be changed as described in Corresponding targeted object region;
Modification image after saving filter change.
Preferably, the correspondence filtering effects by the target filter map to corresponding target object in real time, and show After the step of showing final effect image further include:
When receiving filter increase instruction, instruction is increased according to the filter and obtains corresponding filter to be increased and institute State the applicable object of filter to be increased;
The filter to be increased is stored in corresponding object database according to the applicable object.
Preferably, before the step of pop-up filter corresponding with the one or more target object selects window also Include:
Preparatory counting user sets gradually described the frequency of use of each filter according to the height of the frequency of use Filter selects the displaying sequence of each filter described in window.
In addition, to achieve the above object, it is described the present invention also provides a kind of mobile terminal, including memory and processor It is stored with filter option program on memory, filter as described above is realized when the filter option program is run by the processor The step of mirror selection method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Filter option program is stored on storage medium, the filter option program realizes filter as described above when being run by processor The step of selection method.
The invention discloses a kind of filter selection method, mobile terminal and computer readable storage mediums, this method comprises: When detecting that camera is in screening-mode, Object Selection window is popped up;User is obtained to select by the Object Selection window The one or more target objects selected;Pop-up filter corresponding with the one or more target object selects window;It receives and uses The target filter that family selects in one or more filter selection windows;The correspondence filtering effects of the target filter are real When map to corresponding target object, and show final effect image.The present invention selects one by user by interactive mode Or multiple target objects, and the corresponding filter of the respectively described target object recognition, image taking effect is enriched, people is improved The intelligence of machine interaction.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of filter selection method first embodiment of the present invention;
Fig. 4 is the schematic diagram of a scenario of one embodiment of filter selection method of the present invention;
Fig. 5 is another schematic diagram of a scenario of one embodiment of filter selection method of the present invention;
Fig. 6 is the flow diagram of filter selection method second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The voice data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, processor 110 is for calling the filter stored in memory 109 in mobile terminal 100 shown in Fig. 1 Option program, to execute following operation:
When detecting that camera is in screening-mode, Object Selection window is popped up;
Obtain one or more target objects of the user by the Object Selection window selection;
Pop-up filter corresponding with the one or more target object selects window;
Receive the target filter that user selects in one or more filter selection windows;
The correspondence filtering effects of the target filter are mapped into corresponding target object in real time, and show final effect figure Picture.
Further, processor 110 is for calling the filter option program stored in memory 109 also to execute following behaviour Make:
Judge the number of the target object;
If the number of the target object is one, a direct pop-up filter corresponding with the target object Select window;
If the number of the target object is multiple, pop-up multiple filters selections corresponding with multiple target objects Window is arranged the multiple filter selection window by pre-set priority sequence.
Further, processor 110 is for calling the filter option program stored in memory 109 also to execute following behaviour Make:
Determine one or more target areas where the original image of one or more target objects;
The corresponding filtering effects of the target filter are mapped into corresponding target area, are obtained one or more corresponding Filter image, and be background by the corresponding image tagged in background area except one or more target area described in original image Image;
Splice one or more of filter images and the background image, obtains final effect image, and showing The final effect image is shown in screen.
Further, processor 110 is for calling the filter option program stored in memory 109 also to execute following behaviour Make:
The clicking operation for the selection target object that detection user is triggered by the Object Selection window;
If the clicking operation is not detected within a preset period of time, the Object Selection window is withdrawn;
If detecting the clicking operation in the preset time period, then follow the steps: it is described right that acquisition user passes through One or more target objects as selecting window selection.
Further, processor 110 is for calling the filter option program stored in memory 109 also to execute following behaviour Make:
The shooting instruction of user is received, and by the current one or more filters of the shooting instruction labeled as one Or multiple target filters;
The corresponding final effect image of one or more of target filters is saved to image data base.
Further, processor 110 is for calling the filter option program stored in memory 109 also to execute following behaviour Make:
Receive the filter change directive that user sends the final effect image under image review mode;
Filter to be changed is obtained according to the filter change directive and target replaces filter, removes the final effect figure The filtering effects of target replacement filter are mapped in the filter to be changed by the filtering effects of the filter to be changed as described in Corresponding targeted object region;
Modification image after saving filter change.
Further, processor 110 is for calling the filter option program stored in memory 109 also to execute following behaviour Make:
When receiving filter increase instruction, instruction is increased according to the filter and obtains corresponding filter to be increased and institute State the applicable object of filter to be increased;
The filter to be increased is stored in corresponding object database according to the applicable object.
Further, processor 110 is for calling the filter option program stored in memory 109 also to execute following behaviour Make:
Preparatory counting user sets gradually described the frequency of use of each filter according to the height of the frequency of use Filter selects the displaying sequence of each filter described in window.
In addition, above-mentioned mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, preferably , power supply 111 can be logically contiguous by power-supply management system and processor 110, manages to be realized by power-supply management system The functions such as reason charging, electric discharge and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned terminal hardware structure and communications network system, each implementation of filter selection method of the present invention is proposed Example.
It is the flow diagram of filter selection method first embodiment of the present invention referring to Fig. 3, Fig. 3.
In the present embodiment, the filter selection method the following steps are included:
Step S101 pops up Object Selection window when detecting that camera is in screening-mode;
In the present embodiment, the screening-mode refers mainly to carry out making for shooting photo or video using the camera of mobile terminal Use mode.Generally, if detecting, the camera of the mobile terminal is in running order, and the mobile terminal display screen is shown Image be the image that takes of camera, then determine present mode for screening-mode.
It include multiple reference object types in Object Selection window described in the present embodiment.It is the present invention referring to Fig. 4, Fig. 4 The schematic diagram of a scenario of one embodiment of filter selection method.The reference object type for including in the Object Selection window may include Personage, cuisines, animal, landscape, building, seashore, meadow etc..
Further, the displaying sequence of multiple reference object types in the Object Selection window can be set in advance It sets, such as according to frequency of use, the high reference object type of frequency of use is shown preceding.
It further, can also be according to the image information of the present image shown on the mobile terminal display screen, automatically It identifies one or more existing object types, and one or more of existing object types is shown in the Object Selection window In mouthful.If such as detect the present image there are face, cuisines, shown in the Object Selection window face and Cuisines.
Step S102 obtains one or more target objects of the user by the Object Selection window selection;
Specifically, the clicking operation for the selection target object that detection user is triggered by the Object Selection window, generally Ground then determines that user has selected target object when receiving user in the clicking operation of the Object Selection window, will be described The corresponding object tag of clicking operation is the target object, it is possible to understand that ground, if detecting multiple clicking operations respectively, into One step determines whether the corresponding object of the multiple clicking operation repeats, if the corresponding object of the multiple clicking operation does not weigh It is multiple, then the corresponding multiple objects of the multiple clicking operation are marked as target object;Conversely, if the multiple click Operating corresponding object has repetition, then is the target object by the object tag for receiving odd-times clicking operation.Namely It says, user is judged to cancelling the operation of selection to the even-times clicking operation of the same object.
Further, the preset time period, such as 5s, 10s or 5s etc. for receiving the clicking operation are preset, if in institute It states and the clicking operation is not detected in preset time period, then withdraw the Object Selection window;If receiving the click Operation, then determine that user mustn't will carry out Object Selection, then withdraw the Object Selection window.Conversely, if when described default Between detect the clicking operation in section, then follow the steps: obtain user by one of the Object Selection window selection or Multiple target objects.
Step S103, pop-up filter corresponding with the one or more target object select window;
Specifically, described the step of popping up filter selection window corresponding with the one or more target object, includes:
Step S103a judges the number of the target object;
Namely the number for the target object that user is chosen by the Object Selection window is obtained, and judge that the number is One still multiple.
Step S103b is directly popped up corresponding with a target object if the number of the target object is one A filter select window;
Step S103c, if the number of the target object be it is multiple, pop up it is corresponding more with multiple target objects A filter selects window, and the multiple filter selection window is arranged by pre-set priority sequence.
Specifically, the multiple filter selection window can be disposed side by side on the suitable position of the display screen, such as under The edge on side or right side.The multiple filter selection window can be arranged side by side, and successively be shown according to pre-set priority more A filter selects window.
In the present embodiment, the pre-set priority is preset, such as priority is set gradually as personage, cuisines, is moved Object, landscape, building, seashore, meadow.The pre-set priority can also be independently arranged by user.
Step S104 receives the target filter that user selects in one or more filter selection windows;
Specifically, detection user selects the clicking operation of the selection target filter of window triggering by the filter, generally Ground then determines that user has selected target filter when receiving user in the clicking operation of filter selection window, will be described The corresponding filter of clicking operation is labeled as the target filter, it is possible to understand that ground selects windows detecting to more in the same filter The corresponding filter of the clicking operation finally received is then labeled as the target filter by a clicking operation.
Optionally, for the same object, filter quantity is often more, thus can the filter select window in The form of rolling shows all filters.User setting is selected window in the filter by the slide for then detecting user The filter of middle predeterminated position is labeled as target filter, and the predeterminated position can be the centre, most left of filter selection window Side, the rightmost side, the top, bottom etc..Referring to Fig. 5, figure, 5 be another scene of one embodiment of filter selection method of the present invention Schematic diagram.Filter A, the filter B, filter C that three filter selection windows are arranged below screen, and user is selected It is shown in the centre of the described three filter selection windows.
In other embodiments, it can also successively be popped up corresponding with the target object according to the pre-set priority Multiple filters select window.Specifically, the first filter is popped up according to the priority and selects window, first filter selects window Mouth corresponds to first object object;It is after receiving the first filter determine instruction, the first filter determine instruction is corresponding Filter pops up second filter and selects window labeled as the filter with the first object object;When receiving the second filter After determine instruction, by the corresponding filter of the second filter determine instruction labeled as the filter with second target object.Such as This, the filter until obtaining all target objects.
The correspondence filtering effects of the target filter are mapped to corresponding target object in real time, and shown by step S105 Final effect image.
Specifically, the correspondence filtering effects by the target filter map to corresponding target object in real time, and will Step of the final effect image in present image include:
Step S105a determines one or more target areas where the original image of one or more target objects;
In the present embodiment, the target object in the original image is identified by image recognition technology.Such as according to people Face identification technology obtains the face in the original image, and then obtains task image.It can also be preparatory according to machine learning algorithm Training vehicle identification model, Building recognition model, cuisines identification model etc., and the vehicle identification mould obtained using training Type, the Building recognition model, the cuisines identification model carry out identification to the original image and obtain corresponding target object, and Position of the target object in the original image is further obtained, is target area by the position mark, thus Obtain one or more target areas where the original image of one or more target objects.
The corresponding filtering effects of the target filter are mapped to corresponding target area by step S105b, obtain one or Multiple corresponding filter images, and by the corresponding image in background area except one or more target area described in original image Labeled as background image;
In the present embodiment, the target filtering effects that user selects are respectively mapped to corresponding target area, such as If there are two the target areas, personage region and cuisines region are then reflected in the personage region and the cuisines region respectively Corresponding target filtering effects are penetrated, one or more corresponding filter images namely personage's filter image and cuisines filter are obtained Image.
It is to be appreciated that in the original image, in addition to one or more of target areas, it is also possible to which there are the targets Region except region, it is in the present embodiment, the background area except one or more target area described in original image is corresponding Image tagged be background image.If such as the target area is the personage region and the cuisines region, will be described Zone marker except personage region and the cuisines region is background image.
It is the corresponding landscape region of the target objects such as landscape, seashore, meadow, seashore region and meadow for target area Region may then be not present background area, namely background image is not present.The background image is not necessary condition.
Step S105c splices one or more of filter images and the background image, obtains final effect figure Picture, and the final effect image is shown in display screen.
Fixed one or more filter images and the background image are spliced, a complete figure is synthesized Picture thus to obtain final effect image, and shows the final effect image in display screen.It is wrapped in the final effect image Include one or more filtering effects, extreme enrichment image taking effect.
Further, the correspondence filtering effects by the target filter map to corresponding target object in real time, and After the step of showing final effect image further include: when receiving filter increase instruction, increased according to the filter and instructed Obtain the applicable object of corresponding filter to be increased and the filter to be increased;It will be described to be increased according to the applicable object Filter is stored in corresponding object database.
Since the filter of the mobile terminal is other than the filter of systemic presupposition, filter can also be independently added by user Mirror, with rich image shooting effect.If receive filter increase instruction, according to the filter increase instruction obtain it is corresponding to Increase filter, and according to the corresponding applicable object of the filter attribute labeling to be increased, or corresponding from main pip by user Applicable object.
Further, before the step of pop-up filter corresponding with the one or more target object selects window Further include: preparatory counting user sets gradually the filter according to the height of the frequency of use to the frequency of use of each filter Mirror selects the displaying sequence of each filter described in window.
Specifically, different users has different aesthetic preferences, therefore can collect the mobile terminal in advance and correspond to user To the service condition of each filter, and counting user is to the frequency of use of each filter, then according to the frequency of use Height, set gradually the displaying sequence of each filter described in filter selection window, such as the filter that frequency of use is high Mirror is shown in first position, frequency of use is low or even show from original filter at end.Alternatively, further, It will be removed from original filter, to save the space of the mobile terminal.
The present embodiment through the above scheme, when detecting that camera is in screening-mode, pops up Object Selection window;It obtains It takes family and passes through one or more target objects of the Object Selection window selection;Pop-up and one or more targets pair As corresponding filter selects window;Receive the target filter that user selects in one or more filter selection windows;It will The correspondence filtering effects of the target filter map to corresponding target object in real time, and show final effect image.The present invention One or more target objects, and the corresponding filter of the respectively described target object recognition are selected by user by interactive mode Mirror enriches image taking effect, improves the intelligence of human-computer interaction.
It is the flow diagram of filter selection method method second embodiment of the present invention referring to Fig. 6, Fig. 6.Based on above-mentioned One embodiment, the present embodiment and the difference of above-mentioned first embodiment are:
The correspondence filtering effects by the target filter map to corresponding target object in real time, and by final effect It is shown in after the step in present image further include:
Step S106: the shooting instruction of user is received, and the current one or more filters of the shooting instruction are marked For one or more of target filters;
In the present embodiment, the shooting instruction refers to the instruction for carrying out shooting photo and/or starts to shoot the instruction of video. The shooting instruction is generally by the triggering such as touch control operation or shortcut, voice, specified expression.When receiving the shooting instruction When, current one or more filters are labeled as one or more of target filters.
Step S107: the corresponding final effect image of one or more of target filters is saved to image data base.
Specifically, it is determined that one or more target areas where the original image of one or more target objects;It will The corresponding filtering effects of the target filter map to corresponding target area, obtain one or more corresponding filter images, And by the corresponding image tagged in background area except one or more target area described in original image be background image;Splicing One or more of filter images and the background image obtain final effect image, and in display screen described in display Final effect image.Finally, saving the final effect image to image data base.
The step S107: the corresponding final effect image of one or more of target filters is saved to image data After the step of library further include:
Step S107a: the filter change directive that user sends under image review mode is received;
In real life, after user shoots image, generally require to carry out picture editting again, such as readjustment brightness, Contrast cuts image, filter modification etc..
In the present embodiment, the final effect image is saved to image data base, user can open described final Effect image into image review mode, and sends filter and modifies instruction, and the filter modification is instructed including removal filter, more Change filter or increase filter etc..
Step S107b: obtaining filter to be changed according to the filter change directive and target replaces filter, described in removal The filtering effects of target replacement filter are mapped in described by the filtering effects of filter to be changed described in final effect image The corresponding targeted object region of filter to be changed;
In the present embodiment, the filter change directive includes one or more of filter to be changed, target replacement filter. The corresponding filtering effects of one or more filters to be changed are removed in the final effect image, and the target is replaced The filtering effects of filter are mapped in the corresponding targeted object region of the filter to be changed.
Step S107c: the modification image after saving filter change.
Image tagged after filter is changed is modification image, and saves the modification image.It sends and whether deletes to user Except the inquiry of the final effect image, if user selects to delete the final effect image, by the final effect image It deletes.
The present embodiment through the above scheme, receives the shooting instruction of user, and by the shooting instruction current one or Multiple filters are labeled as one or more of target filters;By the corresponding final effect figure of one or more of target filters As saving to image data base.Image taking effect is enriched as a result, improves the intelligence of human-computer interaction.
The embodiment of the present invention also provides a kind of computer readable storage medium.
In the present embodiment, filter option program is stored on the computer readable storage medium, the filter selects journey The step of filter selection method as described above is realized when sequence is run by processor.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of filter selection method, which is characterized in that the described method includes:
When detecting that camera is in screening-mode, Object Selection window is popped up;
Obtain one or more target objects of the user by the Object Selection window selection;
Pop-up filter corresponding with the one or more target object selects window;
Receive the target filter that user selects in one or more filter selection windows;
The correspondence filtering effects of the target filter are mapped into corresponding target object in real time, and show final effect image.
2. the method according to claim 1, wherein the pop-up is corresponding with one or more target objects Filter select window the step of include:
Judge the number of the target object;
If the number of the target object is one, directly pop-up filter selection corresponding with the target object Window;
If the number of the target object is multiple, pop-up multiple filters selection windows corresponding with multiple target objects Mouthful, the multiple filter selection window is arranged by pre-set priority sequence.
3. method according to claim 1 or 2, which is characterized in that the correspondence filtering effects by the target filter Corresponding target object is mapped in real time, and includes: by step of the final effect image in present image
Determine one or more target areas where the original image of one or more target objects;
The corresponding filtering effects of the target filter are mapped into corresponding target area, obtain one or more corresponding filters Image, and be Background by the corresponding image tagged in background area except one or more target area described in original image Picture;
Splice one or more of filter images and the background image, obtains final effect image, and in display screen Show the final effect image.
4. the method according to claim 1, wherein the acquisition user passes through the Object Selection window selection One or more target objects the step of before further include:
The clicking operation for the selection target object that detection user is triggered by the Object Selection window;
If the clicking operation is not detected within a preset period of time, the Object Selection window is withdrawn;
If detecting the clicking operation in the preset time period, then follow the steps: obtaining user and selected by the object Select one or more target objects of window selection.
5. the method according to claim 1, wherein the correspondence filtering effects by the target filter are real-time Map to corresponding target object, and after final effect is shown the step in present image further include:
The shooting instruction of user is received, and by the current one or more filters of the shooting instruction labeled as one or more A target filter;
The corresponding final effect image of one or more of target filters is saved to image data base.
6. according to the method described in claim 5, it is characterized in that, described that one or more of target filters are corresponding most After the step of whole effect image is saved to image data base further include:
Receive the filter change directive that user sends the final effect image under image review mode;
Filter to be changed is obtained according to the filter change directive and target replaces filter, is removed in the final effect image It is corresponding to be mapped in the filter to be changed by the filtering effects of the filter to be changed for the filtering effects of target replacement filter Targeted object region;
Modification image after saving filter change.
7. the method according to claim 1, wherein the correspondence filtering effects by the target filter are real-time Corresponding target object is mapped to, and after the step of showing final effect image further include:
When receiving filter and increasing instruction, according to the filter increase instruction obtain corresponding filter to be increased and it is described to Increase the applicable object of filter;
The filter to be increased is stored in corresponding object database according to the applicable object.
8. the method according to claim 1, wherein the pop-up is corresponding with one or more target objects Filter select window the step of before further include:
Preparatory counting user sets gradually the filter according to the height of the frequency of use to the frequency of use of each filter Select the displaying sequence of each filter described in window.
9. a kind of mobile terminal, which is characterized in that including memory and processor, filter selection journey is stored on the memory Sequence realizes that filter of any of claims 1-8 such as selects when the filter option program is run by the processor The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with filter choosing on the computer readable storage medium Program is selected, realizes that filter of any of claims 1-8 such as selects when the filter option program is run by processor The step of method.
CN201811596346.7A 2018-12-25 2018-12-25 Filter selection method, mobile terminal and computer readable storage medium Pending CN109729267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811596346.7A CN109729267A (en) 2018-12-25 2018-12-25 Filter selection method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811596346.7A CN109729267A (en) 2018-12-25 2018-12-25 Filter selection method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109729267A true CN109729267A (en) 2019-05-07

Family

ID=66296767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811596346.7A Pending CN109729267A (en) 2018-12-25 2018-12-25 Filter selection method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109729267A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050050A (en) * 2019-12-30 2020-04-21 维沃移动通信有限公司 Filter adjusting method and electronic equipment
CN112561827A (en) * 2020-12-22 2021-03-26 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN113852755A (en) * 2021-08-24 2021-12-28 荣耀终端有限公司 Photographing method, photographing apparatus, computer-readable storage medium, and program product
CN114339077A (en) * 2022-01-28 2022-04-12 维沃移动通信有限公司 Imaging method, imaging device, electronic apparatus, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331502A (en) * 2016-09-27 2017-01-11 奇酷互联网络科技(深圳)有限公司 Terminal and its filter photographing method and device
CN107135352A (en) * 2017-04-28 2017-09-05 北京小米移动软件有限公司 The method and device of filter options sequence
CN107517348A (en) * 2017-08-30 2017-12-26 广东欧珀移动通信有限公司 The rendering intent and device of image
CN109068056A (en) * 2018-08-17 2018-12-21 Oppo广东移动通信有限公司 A kind of electronic equipment and its filter processing method of shooting image, storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331502A (en) * 2016-09-27 2017-01-11 奇酷互联网络科技(深圳)有限公司 Terminal and its filter photographing method and device
CN107135352A (en) * 2017-04-28 2017-09-05 北京小米移动软件有限公司 The method and device of filter options sequence
CN107517348A (en) * 2017-08-30 2017-12-26 广东欧珀移动通信有限公司 The rendering intent and device of image
CN109068056A (en) * 2018-08-17 2018-12-21 Oppo广东移动通信有限公司 A kind of electronic equipment and its filter processing method of shooting image, storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050050A (en) * 2019-12-30 2020-04-21 维沃移动通信有限公司 Filter adjusting method and electronic equipment
CN112561827A (en) * 2020-12-22 2021-03-26 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN113852755A (en) * 2021-08-24 2021-12-28 荣耀终端有限公司 Photographing method, photographing apparatus, computer-readable storage medium, and program product
CN114339077A (en) * 2022-01-28 2022-04-12 维沃移动通信有限公司 Imaging method, imaging device, electronic apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN109729267A (en) Filter selection method, mobile terminal and computer readable storage medium
CN108196750A (en) The method, apparatus and computer readable storage medium of screen interface sectional drawing
CN107657583A (en) A kind of screenshot method, terminal and computer-readable recording medium
CN109634542A (en) A kind of switching display control method, terminal and computer readable storage medium
CN109947248A (en) Vibration control method, mobile terminal and computer readable storage medium
CN110187943A (en) A kind of record screen method, terminal and computer readable storage medium
CN110209456A (en) Method, mobile terminal and the computer readable storage medium of the long screenshot of screen interface
CN108986026A (en) A kind of picture joining method, terminal and computer readable storage medium
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN109697008A (en) A kind of content share method, terminal and computer readable storage medium
CN109783223A (en) A kind of memory method for cleaning, terminal and computer readable storage medium
CN109992183A (en) Preview picture and the method for selection, terminal and storage medium
CN109299039A (en) A kind of file management method, equipment and computer readable storage medium
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN109151162A (en) A kind of multi-panel screen interaction control method, equipment and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN110064192A (en) Interface control method, mobile terminal and computer readable storage medium
CN109584897A (en) Vedio noise reduction method, mobile terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN107911422A (en) A kind of switching handling method, terminal and computer-readable recording medium
CN109640020A (en) A kind of video record control method, terminal and computer readable storage medium
CN109408187A (en) Head portrait setting method, device, mobile terminal and readable storage medium storing program for executing
CN109522276A (en) Application icon management method, terminal and computer readable storage medium

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

Application publication date: 20190507

RJ01 Rejection of invention patent application after publication