CN108986017A - Image special effect processing method, device and computer readable storage medium - Google Patents

Image special effect processing method, device and computer readable storage medium Download PDF

Info

Publication number
CN108986017A
CN108986017A CN201810697083.2A CN201810697083A CN108986017A CN 108986017 A CN108986017 A CN 108986017A CN 201810697083 A CN201810697083 A CN 201810697083A CN 108986017 A CN108986017 A CN 108986017A
Authority
CN
China
Prior art keywords
loaded
filter
special efficacy
special
data packet
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.)
Granted
Application number
CN201810697083.2A
Other languages
Chinese (zh)
Other versions
CN108986017B (en
Inventor
游东
冯宇飞
刘昂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision 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 Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201810697083.2A priority Critical patent/CN108986017B/en
Publication of CN108986017A publication Critical patent/CN108986017A/en
Application granted granted Critical
Publication of CN108986017B publication Critical patent/CN108986017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The disclosure discloses a kind of image special effect processing method, image special effect processing unit, image special effect processing hardware device, computer readable storage medium and image special effect processing terminal.Wherein, which includes obtaining special effects data packet;It whether determines in the special effects data packet comprising filter special efficacy to be loaded;When including filter special efficacy to be loaded in the special effects data packet, special effect processing is carried out to described image according to the filter of the load special efficacy in the special effects data packet and described image.The embodiment of the present disclosure can there are when filter special efficacy to be loaded in the special effects data packet of acquisition, according to the special effects data packet of acquisition and filter special efficacy has been loaded to image progress special effect processing, it is possible thereby in the case where including filter special efficacy in special effects data packet to be loaded, consider that the filter special efficacy being loaded on image carries out special effect processing to image, so that the special effect of image more preferably meets expection, to solve the technical issues of how improving user experience effect.

Description

Image special effect processing method, device and computer readable storage medium
Technical field
This disclosure relates to a kind of image technique field, more particularly to a kind of image special effect processing method, device and calculating Machine readable storage medium storing program for executing.
Background technique
With the development of the portable device technologies such as mobile phone, tablet computer, portable device is provided with more and more function Can, such as: surf the Internet, take pictures, navigate etc..Wherein especially camera function be even more become it is indispensable in portable device A part.In order to adapt to user to the higher and higher individual demand of photo, when addition special efficacy has become in photo The U.S. figure mode of lower prevalence adds cat beard, blush etc. for example, user is upon taking a picture for face.In order to facilitate user to bat The photo taken the photograph adds special efficacy, and the camera function on terminal device can carry some image processing functions, is such as used for the filter of skin makeup Special effects data packet can also be downloaded from cloud Deng, user, be loaded on captured photo.
Summary of the invention
The technical issues of disclosure solves is to provide a kind of image special effect processing method, how to be mentioned at least being partially solved The technical issues of high user experience effect.In addition, also providing a kind of image special effect processing unit, image special effect processing hardware device And computer readable storage medium.
To achieve the goals above, according to one aspect of the disclosure, the following technical schemes are provided:
A kind of image special effect processing method, comprising:
It whether determines in the special effects data packet comprising filter special efficacy to be loaded;
When including filter special efficacy to be loaded in the special effects data packet, according to the special effects data packet and described image On the filter of load special efficacy to described image carry out special effect processing.
Further, special effects data packet is obtained, comprising:
Corresponding special effects data packet is downloaded from cloud according to the special efficacy that user selectes.
Further, it is determined that whether including filter special efficacy to be loaded in the special effects data packet, comprising:
Parse the special effects data packet;
It whether include the corresponding filter word of the filter special efficacy to be loaded in the special effects data packet after determining parsing Section.
Further, in the special effects data packet include filter special efficacy to be loaded when, according to the special effects data packet with And the filter of the load special efficacy in described image carries out special effect processing to described image, comprising:
The filter special efficacy to be loaded with it is described loaded filter special efficacy exist conflict when, remove described in has loaded filter Special efficacy.
Further, the filter special efficacy to be loaded with it is described loaded filter special efficacy exist conflict when, described in removal Load filter special efficacy, comprising:
Determine the type of the filter special efficacy to be loaded;
In type and the type comflict for having loaded filter special efficacy of the filter special efficacy to be loaded, removal is described Load filter special efficacy.
Further, in the type of the filter special efficacy to be loaded and the type comflict for having loaded filter special efficacy, Filter special efficacy has been loaded described in removing, comprising:
In the type and the not identical type for having loaded filter special efficacy of the filter special efficacy to be loaded, described in removal Filter special efficacy is loaded.
Further, in the type of the filter special efficacy to be loaded and the type comflict for having loaded filter special efficacy, Filter special efficacy has been loaded described in removing, comprising:
The type for having loaded filter special efficacy is matched with preset kind set;The preset kind set includes With at least one preset kind of the type comflict of the filter special efficacy to be loaded;
In successful match, removal is described to have loaded filter special efficacy.
Further, in the type of the filter special efficacy to be loaded and the type comflict for having loaded filter special efficacy, Filter special efficacy has been loaded described in removing, comprising:
The type for having loaded filter special efficacy is matched with preset kind set;The preset kind set includes At least one preset kind not conflicted with the type of the filter special efficacy to be loaded;
When matching unsuccessful, removal is described to have loaded filter special efficacy.
Further, filter special efficacy has been loaded described in the removal, comprising:
Rendering chained list is updated, has recorded the corresponding item of filter special efficacy so that removal is described from the rendering chained list.
Further, in the special effects data packet include filter special efficacy to be loaded when, according to the special effects data packet with And the filter of the load special efficacy in described image carries out special effect processing to described image, further includes:
Special effect processing is carried out to described image according to the rendering chained list.
Further, in the special effects data packet include filter special efficacy to be loaded when, according to the special effects data packet with And the filter of the load special efficacy in described image carries out special effect processing to described image, comprising:
Filter has been loaded by described there is no when conflicting with the filter special efficacy that loaded in the filter special efficacy to be loaded Special efficacy is overlapped with the filter special efficacy to be loaded.
Further, the filter special efficacy that loaded is the filter special efficacy locally saved;The special effects data packet is cloud The special effects data packet of downloading.
To achieve the goals above, according to another aspect of the disclosure, also the following technical schemes are provided:
A kind of image special effect processing unit, comprising:
Module is obtained, for obtaining special effects data packet;
Determining module, for whether determining in the special effects data packet comprising filter special efficacy to be loaded;
Processing module, when for including filter special efficacy to be loaded in the special effects data packet, according to the special effects data The filter of load special efficacy on packet and described image carries out special effect processing to described image.
Further, the acquisition module, comprising:
Submodule is downloaded, the special efficacy for selecting according to user downloads corresponding special effects data packet from cloud.
Further, the determining module, comprising:
Analyzing sub-module, for parsing the special effects data packet;
First determines submodule, for determining whether in the special effects data packet after parsing include the filter to be loaded The corresponding filter field of mirror special efficacy.
Further, the processing module, comprising:
First remove submodule, for the filter special efficacy to be loaded with it is described loaded filter special efficacy presence conflict When, removal is described to have loaded filter special efficacy.
Further, described first submodule is removed, comprising:
Second determines submodule, for determining the type of the filter special efficacy to be loaded;
Second removes submodule, for the type and the class for having loaded filter special efficacy in the filter special efficacy to be loaded When type conflicts, removal is described to have loaded filter special efficacy.
Further, described second submodule is removed, comprising:
Third removes submodule, for the type and the class for having loaded filter special efficacy in the filter special efficacy to be loaded When type is not identical, removal is described to have loaded filter special efficacy.
Further, described second submodule is removed, comprising:
First matched sub-block, for matching the type for having loaded filter special efficacy with preset kind set; The preset kind set includes at least one preset kind with the type comflict of the filter special efficacy to be loaded;
4th removes submodule, for having loaded filter special efficacy described in removal in successful match.
Further, described second submodule is removed, comprising:
Second matched sub-block, for matching the type for having loaded filter special efficacy with preset kind set; The preset kind set includes at least one preset kind not conflicted with the type of the filter special efficacy to be loaded;
5th removes submodule, for having loaded filter special efficacy described in removal when matching unsuccessful.
Described first, which removes submodule, the second removal submodule, third, removes submodule, the 4th removal submodule and the 5th Remove any of submodule, comprising:
Submodule is updated, for updating rendering chained list, has recorded filter special efficacy so that removal is described from the rendering chained list Corresponding item.
Further, the processing module, comprising:
Submodule is handled, for carrying out special effect processing to described image according to the rendering chained list.
Further, the processing module, comprising:
Be superimposed submodule, for the filter special efficacy to be loaded with it is described loaded filter special efficacy be not present conflict when, It has loaded filter special efficacy by described and has been overlapped with the filter special efficacy to be loaded.
Further, the filter special efficacy that loaded is the filter special efficacy locally saved;The special effects data packet is cloud The special effects data packet of downloading.
To achieve the goals above, according to the another aspect of the disclosure, and also the following technical schemes are provided:
A kind of image special effect processing hardware device, comprising:
Memory, for storing non-transitory computer-readable instruction;And
Processor, for running the computer-readable instruction, so that the processor realizes any of the above-described figure when executing The step of as described in effect processing method technical solution.
To achieve the goals above, according to the another aspect of the disclosure, and also the following technical schemes are provided:
A kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory When computer-readable instruction is executed by computer, so that the computer executes any of the above-described image special effect processing method technical side The step of described in case.
To achieve the goals above, according to the another aspect of the disclosure, and also the following technical schemes are provided:
A kind of image special effect processing terminal, including any of the above-described image special effect processing unit.
It is hard that the embodiment of the present disclosure provides a kind of image special effect processing method, image special effect processing unit, image special effect processing Part device, computer readable storage medium and image special effect processing terminal.Wherein, which includes obtaining spy Imitate data packet;It whether determines in the special effects data packet comprising filter special efficacy to be loaded;In the special effects data packet comprising to When loading filter special efficacy, described image is carried out according to the filter of the load special efficacy in the special effects data packet and described image Special effect processing.The embodiment of the present disclosure, can there are filters to be loaded in the special effects data packet of acquisition by taking the technical solution When mirror special efficacy, according to the special effects data packet of acquisition and loaded filter special efficacy to image carry out special effect processing, it is possible thereby to In the case where including filter special efficacy in the special effects data packet of load, the filter special efficacy pair being loaded on image is further considered Image carries out special effect processing, so that the special effect of image more preferably meets expection, to improve user experience effect.
Above description is only the general introduction of disclosed technique scheme, in order to better understand the technological means of the disclosure, and It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the disclosure can be brighter Show understandable, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Detailed description of the invention
Fig. 1 is the flow diagram according to the image special effect processing method of an embodiment of the present disclosure;
Fig. 2 is the step flow diagram according to step S2 in embodiment illustrated in fig. 1;
Fig. 3 is according to the step flow diagram in one embodiment of the disclosure when special effect processing;
Fig. 4 is the structural schematic diagram according to the image special effect processing unit of an embodiment of the present disclosure;
Fig. 5 is the structural schematic diagram that hardware device is handled according to the image special effect of an embodiment of the present disclosure;
Fig. 6 is the structural schematic diagram according to the computer readable storage medium of an embodiment of the present disclosure;
Fig. 7 is the structural schematic diagram according to the image special effect processing terminal of an embodiment of the present disclosure.
Specific embodiment
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be practiced without these specific details.
In order to solve the technical issues of how improving user experience effect, the embodiment of the present disclosure is provided at a kind of image special effect Reason method.As shown in Figure 1, the image special effect processing method mainly includes the following steps S1 to step S3.Wherein:
Step S1: special effects data packet is obtained.
Wherein, special effects data packet may include the various elements that special effect treatment is carried out to image, such as filter, paster Deng, filter for realizing the various special-effects of image, such as: black and white is missed old times or old friends, cloud, distortion, woodcut, lighting effect, tone Separation etc..Paster can be the small-sized image with certain figure or image, can be affixed on image to be processed.
Step S2: it whether determines in the special effects data packet comprising filter special efficacy to be loaded.
Wherein it is possible to whether be checked in special effects data packet by parsing special effects data packet comprising filter special efficacy to be loaded.It is special Different elements can be described by different fields in effect data packet, therefore can be determined by the corresponding field of matching filter It whether include filter in special effects data packet.
Step S3: when in the special effects data packet including filter special efficacy to be loaded, according to the special effects data packet and The filter of load special efficacy in described image carries out special effect processing to described image.
Wherein, filter to be loaded and to have loaded filter be all filter, it may be possible to same type, in some instances it may even be possible to be same Filter, it is also possible to be different types of filter.Having loaded filter is to be already loaded on image, namely passed through to image After the special effect processing for having loaded filter, and filter to be loaded is then wait the filter on image to be loaded into.
In order to make it easy to understand, being described in detail below with the process that specific embodiment handles image special effect.
In the present embodiment, image special effect processing method can be applied to take pictures, image processing function and touch screen In the intelligent terminals such as smart phone, smart camera, palm PC, tablet computer, e-book, laptop computer, computer, figure is realized The special effect processing of picture.For example, user uses mobile phone after having clapped photograph, can be mentioned according to the image special effect processing system on mobile phone The interface of confession, selection load one or more kinds of special efficacys on the photo of current shooting.Image special effect processing system can basis The selection of user obtains the corresponding special effects data packet of one or more special efficacys to be loaded.
In the present embodiment, image special effect processing system can preset a special effects data library, for storing various differences Special effects data packet.Special effects data library may include local special effects data library and/or cloud special effects data library.If user selects Special effects data packet be stored in the special effects data library of cloud, then can be first locally downloading by cloud special effects data packet, such as Fruit is that special effects data packet is then obtained directly from local special effects data library in local special effects data library.
In the present embodiment, after getting special effects data packet, the corresponding code of special effects data packet can be parsed, And match and check in code whether include filter field, if comprising, then it is assumed that including filter special efficacy to be loaded, if do not deposited Filter to be loaded is not being included then.Special effects data packet can only include filter special efficacy or only other special efficacys such as including paster Data packet is also possible to the data packet that other special efficacys such as filter special efficacy and paster are composed.Certainly, in other embodiments, It can also determine whether by other means comprising filter special efficacy, such as in order to be suitable for the image special effect processing side of the present embodiment Method can individually add for identifying whether the mark comprising filter special efficacy each special effects data packet, in this case can Directly to pass through the mark to determine whether including filter special efficacy to be loaded.
In the present embodiment, in determining special effects data packet include filter special efficacy to be loaded when, can according on image Filter special efficacy to be loaded in the filter special efficacy and special effects data packet being loaded with carries out special effect processing to image.Of course, it is possible to manage Solution can be carried out special in the case where not including filter special efficacy to be loaded in special effects data packet by normal process flow Effect processing, the disclosure are without limitation.
The filter special efficacy being loaded on image can be user special efficacy or basis selected to use before this The filter special efficacy that the setting of user loads automatically.For example, user, when taking pictures or being broadcast live, default setting is skin makeup effect, that The relevant filter special efficacy of skin makeup has been loaded in acquired image or video frame at this time.It will of course be understood that It is that in the case where not loading filter special efficacy before this on image, special effect processing can also be carried out according to normal process flow, The disclosure is without limitation.
It, can be by comprehensively considering filter to be loaded in the case where having been loaded with filter special efficacy in the present embodiment, on image Mirror special efficacy and loaded filter special efficacy to image carry out special effect processing.It, can be by by filter to be loaded for example, in some cases Mirror special efficacy, which is superimposed upon, have been loaded the mode of filter special efficacy and carries out special effect processing, and in other cases, it can remove and load After filter special efficacy, the mode for reapplying filter special efficacy to be loaded carries out special effect processing, can also retain and add in some cases Filter special efficacy is carried, and the mode for abandoning filter special efficacy to be loaded carries out special effect processing.It is, of course, understood that special effects data In the case where in packet further including other special efficacy elements, according to the normal process flow of other special efficacy elements by other special efficacy elements It is loaded into image up.
The embodiment of the present disclosure is after getting special effects data packet, by analyzing whether special effects data packet has filter special efficacy, And in the case where having filter special efficacy, the filter to be loaded loaded in filter special efficacy and special effects data packet on image is comprehensively considered Mirror special efficacy handles image, conflicts to avoid due to having loaded filter special efficacy with filter special efficacy to be loaded presence, and causes Image and expected the case where not being inconsistent after special effect processing, to improve the experience effect of user.
In an alternative embodiment, step S1 may include:
Corresponding special effects data packet is downloaded from cloud according to the special efficacy that user selectes.
In the optional embodiment, in order to save resource, image special effect processing system can will be special under initial situation It imitates in the special effects data library of data packet storage beyond the clouds, user can be thought by the page selection that image special effect processing system provides Special efficacy to be added, and image special effect processing system can download corresponding special effects data packet from cloud according to the user's choice, And it is stored in local special effects data library.If the selected corresponding special effects data packet of special efficacy added of user is already present on this Ground special effects data library then can directly be obtained from local special effects data library.Due to image special effect processing system can provide it is more The special effects data packet of kind multiplicity, and each occupied space of special effects data packet may be bigger, therefore special effects data packet can To store as far as possible beyond the clouds, to save the space on intelligent terminal.Image special effect processing system can be used in the display interface Family only provides special effects data packet corresponding special effect figure, but its corresponding special effects data packet can be when user selects to use It is locally downloading again.
In an alternative embodiment, as shown in Fig. 2, step S2 determine in the special effects data packet whether comprising to Load filter special efficacy the step of may include:
Step S21: the special effects data packet is parsed;
Whether step S22: including that the filter special efficacy to be loaded is corresponding in the special effects data packet after determining parsing Filter field.
In the optional embodiment, in terms of application, special effects data packet may include other spies such as filter special efficacy, paster Element is imitated, and in terms of specific data Layer, special effects data packet may include realizing that the special effects data packet corresponds to the code portions of special efficacy Point, picture etc., code section may include field and relevant parameter of filter special efficacy and/or other special efficacy elements etc., image Special effect processing system needs to parse special effects data packet, according to code portions in special effects data packet before carrying out special effect processing to image The corresponding field of special efficacy element determines the special effect processing mode to image in point, and according to determining pair of the value that field is followed by Image carries out the processing parameter when special effect processing mode.For example, the code section of special effects data packet includes certain type of filter The corresponding field of mirror special efficacy needs the filter for carrying out this type to image to handle then can determine, and according to filter special efficacy The analog value that field is followed by can determine the processing parameter when carrying out filter processing to image, such as transparency, bright The parameters such as degree, contrast.
In an alternative embodiment, when step S3 includes filter special efficacy to be loaded in the special effects data packet, The step of special effect processing is carried out to described image according to the filter of the load special efficacy in the special effects data packet and described image May include:
The filter special efficacy to be loaded with it is described loaded filter special efficacy exist conflict when, remove described in has loaded filter Special efficacy.
In the optional embodiment, if in special effects data packet including filter special efficacy to be loaded, and in image also In the case where being loaded with filter special efficacy, it can also first judge filter special efficacy to be loaded and load filter special efficacy with the presence or absence of punching It is prominent, if there is conflict, then the removal of filter special efficacy will be loaded, namely restore to have loaded filter special efficacy to image contributions.For example, Having loaded filter special efficacy is the black and white filter special efficacy to image, and filter special efficacy to be loaded is that the special efficacy of halation is added to image, Obviously the two is the presence of conflict, because the image generated under special efficacy of the image in black and white filter is black and white, and light Swooning can not embody on the image of black and white, therefore black and white filter special efficacy can be removed, to restore the color of image, into And halation special efficacy is added to image again.
The embodiment of the present disclosure whether there is between filter special efficacy and special efficacy filter to be loaded by judging to have loaded on image Conflict, will that is, when having loaded the presence of filter special efficacy and filter special efficacy to be loaded and conflicting image to be further processed It loads filter image to remove, to solve in prior art regardless of whether conflicting, all directly be superimposed upon filter special efficacy to be loaded It loads in filter special efficacy, and makes in some cases, the special efficacy Overlay of image is bad, influences asking for user experience effect Topic.
In an optional embodiment, as shown in figure 3, having loaded filter special efficacy with described in the filter special efficacy to be loaded When in the presence of conflict, removing described the step of having loaded filter special efficacy may include:
Step S31: the type of the filter special efficacy to be loaded is determined;
Step S32: it in type and the type comflict for having loaded filter special efficacy of the filter special efficacy to be loaded, moves Filter special efficacy has been loaded except described.
In the optional embodiment, filter special efficacy to be loaded can be determined according to the type of filter special efficacy and has loaded filter Whether conflict can be generated between special efficacy.Under normal conditions, conflict will not be generated between the identical filter special efficacy of type, and type phase Between close filter special efficacy generate conflict a possibility that it is smaller, and type differ between biggish filter special efficacy generate conflict can Energy property is larger.Therefore, it may be predetermined that the conflict possibility size of different types of filter special efficacy, and the root in practical operation Whether judge to have loaded according to conflict possibility size can produce between the type of filter special efficacy and the type of filter special efficacy to be loaded Raw conflict.
In an optional embodiment, in the type and the class for having loaded filter special efficacy of the filter special efficacy to be loaded When type conflicts, removing described the step of having loaded filter special efficacy may include:
In the type and the not identical type for having loaded filter special efficacy of the filter special efficacy to be loaded, described in removal Filter special efficacy is loaded.
In the optional embodiment, since same type of filter special efficacy will not clash, in order to enable The effect of filter special efficacy to be loaded reaches most preferably, can be by the type that judges filter special efficacy to be loaded Yu loaded filter special efficacy Whether identical both determine whether conflict can be generated.If the type of the two is different, the shifting of filter special efficacy will have directly been loaded It removes, influences the expression effect of filter special efficacy to be loaded to avoid filter special efficacy has been loaded.The optional embodiment can be applied Some scenes pre-defined, such as the filter special efficacy that provides of image special effect processing system, the combination in special effects data packet are special More independent situation between effect, that is to say, that can not be superimposed two kinds of filter special efficacys some and realize super expected special efficacy effect It in the scene of fruit, can directly be operated in a manner of the optional embodiment, this mode of operation is simple and easy to do, implements Too many resource will not be expended, can be improved the real-time of real-time image special effect processing.
In an alternative embodiment, in the type of the filter special efficacy to be loaded and the filter special efficacy that loaded When type comflict, removal is described to have loaded filter special efficacy, comprising:
The type for having loaded filter special efficacy is matched with preset kind set;The preset kind set includes With at least one preset kind of the type comflict of the filter special efficacy to be loaded;
In successful match, removal is described to have loaded filter special efficacy.
In the optional embodiment, it can be established previously according to the type of filter special efficacy between different types of filter special efficacy Conflict corresponding relationship, i.e., between the two kinds of filter special efficacy types that can be clashed establish conflict corresponding relationship, to show this Two class filter special efficacys can clash, and cannot be superimposed load simultaneously on the same image.It can be in preset kind set It is established according to the conflict corresponding relationship.In actual application, can exist by matching and filter special efficacy type to be loaded Conflict corresponding relationship filter special efficacy type, with determine loaded filter special efficacy type whether the class with filter special efficacy to be loaded Type conflict, when there is conflict, removal has loaded filter special efficacy.
In an optional embodiment, in the type and the class for having loaded filter special efficacy of the filter special efficacy to be loaded When type conflicts, removing described the step of having loaded filter special efficacy may include:
The type for having loaded filter special efficacy is matched with preset kind set;The preset kind set includes At least one preset kind not conflicted with the type of the filter special efficacy to be loaded;
When matching unsuccessful, removal is described to have loaded filter special efficacy.
It, can also be special by establishing different types of filter previously according to the type of filter special efficacy in the optional embodiment Superposition corresponding relationship between effect establishes superposition corresponding relationship that is, between the two kinds of filter special efficacy types that will not be clashed, To show that these two types of filter special efficacys will not clash, it can be superimposed load simultaneously on the same image.Preset kind set It is established according to the superposition corresponding relationship.In actual application, it can not be deposited by matching with filter special efficacy type to be loaded Conflict corresponding relationship filter special efficacy type, with determine loaded filter special efficacy type whether with filter special efficacy to be loaded Type comflict, when there is conflict, removal has loaded filter special efficacy.
In an optional embodiment, filter special efficacy has been loaded described in the removal may include:
Rendering chained list is updated, has recorded the corresponding item of filter special efficacy so that removal is described from the rendering chained list.
In the optional embodiment, in image special effect processing system, when carrying out special effect processing to image each time, all can A rendering chained list is first established, then image is rendered according to rendering chained list, to realize special effect processing.Include in rendering chained list Institute's operation to be performed when rendering in order to image, each single item rendered in chained list include on-unit and hold Row sequence.When executing rendering, Rendering operations are carried out to image according to the execution sequence in rendering chained list.Due to having loaded filter Special efficacy is already contained in the rendering chained list of foundation, therefore when loading special effects data packet, is removed and has been loaded from rendering chained list Filter special efficacy it is corresponding that, and by special effects data packet filter special efficacy and other special efficacy elements be supplemented in come, later Image is rendered further according to rendering chained list.
In an alternative embodiment, when step S3 includes filter special efficacy to be loaded in the special effects data packet, The step of special effect processing is carried out to described image according to the filter of the load special efficacy in the special effects data packet and described image Can also include:
Special effect processing is carried out to described image according to the rendering chained list.
In the optional embodiment, when loading special effects data packet, need to render image again primary.And render chained list Be also required to be updated according to the content in special effects data packet, after update further according to rendering chained list in each single item to image into Row processing.If the filter special efficacy in special effects data packet to be loaded conflicts with the presence of filter special efficacy has been loaded, rendered updating When chained list, that the corresponding removal of special efficacy filter can will be loaded, and by the filter special efficacy to be loaded in special effects data packet And other corresponding items of special efficacy element are supplemented in and.If filter special efficacy in special effects data packet to be loaded and having loaded filter Special efficacy there is no conflict, then update render chained list when, can directly by special effects data packet filter special efficacy to be loaded and Other corresponding items of special efficacy element are added to rendering chained list.
In an alternative embodiment, when step S3 includes filter special efficacy to be loaded in the special effects data packet, The step of special effect processing is carried out to described image according to the filter of the load special efficacy in the special effects data packet and described image Can also include:
Filter has been loaded by described there is no when conflicting with the filter special efficacy that loaded in the filter special efficacy to be loaded Special efficacy is overlapped with the filter special efficacy to be loaded.
It, can if loaded in the case that filter special efficacy do not conflict with filter special efficacy to be loaded in the optional embodiment Filter special efficacy has been loaded not remove, on the image by the two superposition load, resource can have been saved in this way, and two kinds are not rushed Prominent filter special efficacy is applied on an image simultaneously, additionally it is possible to be generated super expected effect, be improved user experience effect.
In an optional embodiment, the filter special efficacy that loaded is the filter special efficacy locally saved;The special efficacy number It is the special effects data packet of cloud downloading according to packet.
In the optional embodiment, a kind of common application scenarios are users when opening camera and obtaining image, in advance It has been loaded with a kind of local filter special efficacy, such as skin makeup.And after an image is acquired or before, user has selected one kind again Complicated special efficacy (under normal conditions, in order to which the corresponding special effects data packet of the special efficacy for saving resource complexity all saves beyond the clouds), example The face of such as image adds beard.Selected event of the image special effect processing system in the complicated special efficacy for receiving user's selection Afterwards, corresponding special effects data packet is downloaded from cloud.In this case, disclosure reality can be executed before loading special effects data packet It applies example and proposes that image special effect processing method may deposit to solve to have loaded the filter special efficacy in filter special efficacy and special effects data packet The problem of conflicting, user experience effect is improved.
Hereinbefore, although describing each step in image special effect processing method embodiment according to above-mentioned sequence, It will be apparent to one skilled in the art that the step in the embodiment of the present disclosure not necessarily executes in the order described above, can also fall Other sequences such as sequence, parallel, intersection execute, moreover, those skilled in the art can also add on the basis of above-mentioned steps The mode of other steps, these obvious variants or equivalent replacement should also be included within the protection scope of the disclosure, herein no longer It repeats.
It is below embodiment of the present disclosure, embodiment of the present disclosure can be used for executing embodiments of the present disclosure realization The step of, for ease of description, part relevant to the embodiment of the present disclosure is illustrated only, it is disclosed by specific technical details, it asks Referring to embodiments of the present disclosure.
In order to solve the technical issues of how improving user experience effect, the embodiment of the present disclosure is provided at a kind of image special effect Manage device.The device can execute above-mentioned image special effect processing method step as described in the examples.As shown in figure 4, the device It specifically includes that and obtains module 41, determining module 42 and processing module 43.Wherein, module 41 is obtained for obtaining special effects data packet; Whether determining module 42 is for determining in the special effects data packet comprising filter special efficacy to be loaded;Processing module 43 is used for described When in special effects data packet including filter special efficacy to be loaded, according to the load filter in the special effects data packet and described image Special efficacy carries out special effect processing to described image.
Wherein, special effects data packet may include the various elements that special effect treatment is carried out to image, such as filter, paster Deng, filter for realizing the various special-effects of image, such as: black and white is missed old times or old friends, cloud, distortion, woodcut, lighting effect, tone Separation etc..Paster can be the small-sized image with certain figure or image, can be affixed on image to be processed.
Wherein it is determined that whether module 42 can be checked in special effects data packet by parsing special effects data packet comprising filter to be loaded Mirror special efficacy.Different elements can be described by different fields in special effects data packet, therefore can be corresponding by matching filter Whether field includes filter to determine in special effects data packet.
Filter to be loaded and to have loaded filter be all filter, it may be possible to same type, in some instances it may even be possible to it is the same filter, It could also be possible that different types of filter.Having loaded filter is to be already loaded on image, namely have already passed through to image The special effect processing of filter is loaded, and filter to be loaded is then wait the filter on image to be loaded into.
In order to make it easy to understand, being described in detail below with the process that specific embodiment handles image special effect.
In the present embodiment, image special effect processing unit can be applied to take pictures, image processing function and touch screen In the intelligent terminals such as smart phone, smart camera, palm PC, tablet computer, e-book, laptop computer, computer, figure is realized The special effect processing of picture.
In the present embodiment, module 41 is obtained after getting special effects data packet, determining module 42 can be to special effects data It wraps corresponding code to be parsed, and matches and check in code whether include filter field, if comprising, then it is assumed that including to be added Filter special efficacy is carried, if it does not exist, then not including filter to be loaded.Special effects data packet can only include filter special efficacy or only wrap The data packet for including other special efficacys such as paster is also possible to the data packet that other special efficacys such as filter special efficacy and paster are composed.
In the present embodiment, when determining module 42 includes filter special efficacy to be loaded in determining special effects data packet, processing module 43 can carry out image according to the filter special efficacy to be loaded in the filter special efficacy and special effects data packet being loaded on image Special effect processing.It is, of course, understood that in the case where for not including filter special efficacy to be loaded in special effects data packet, it can be with Special effect processing is carried out by normal process flow, the disclosure is without limitation.
In an alternative embodiment, the acquisition module, comprising:
Submodule is downloaded, the special efficacy for selecting according to user downloads corresponding special effects data packet from cloud.
In the optional embodiment, in order to save resource, special effects data packet can be stored in cloud under initial situation In the special effects data library at end, user can think special efficacy to be added by the page selection that image special effect processing system provides, and Corresponding special effects data packet can be downloaded from cloud according to the user's choice by downloading submodule, and be stored in local special effects data library In.If the selected corresponding special effects data packet of special efficacy added of user is already present on local special effects data library, can be straight It connects and is obtained from local special effects data library.
In an alternative embodiment, the determining module may include:
Analyzing sub-module, for parsing the special effects data packet;
First determines submodule, for determining whether in the special effects data packet after parsing include the filter to be loaded The corresponding filter field of mirror special efficacy.
In the optional embodiment, in terms of application, special effects data packet may include other spies such as filter special efficacy, paster Element is imitated, and in terms of specific data Layer, special effects data packet may include realizing that the special effects data packet corresponds to the code portions of special efficacy Point, picture etc., code section may include field and relevant parameter of filter special efficacy and/or other special efficacy elements etc., right Before image carries out special effect processing, analyzing sub-module can parse special effects data packet, and first determines that submodule can be according to special efficacy number Determine the special effect processing mode to image according to the corresponding field of special efficacy element in code section in packet, and according to field followed by With value determine processing parameter when carrying out the special effect processing mode to image.
In an alternative embodiment, the processing module 43 may include:
First remove submodule, for the filter special efficacy to be loaded with it is described loaded filter special efficacy presence conflict When, removal is described to have loaded filter special efficacy.
In the optional embodiment, if in special effects data packet including filter special efficacy to be loaded, and in image also In the case where being loaded with filter special efficacy, it can also first judge filter special efficacy to be loaded and load filter special efficacy with the presence or absence of punching Prominent, if there is conflict, the first removal submodule will then load the removal of filter special efficacy, namely restore to have loaded filter special efficacy pair Image contributions.
The embodiment of the present disclosure whether there is between filter special efficacy and special efficacy filter to be loaded by judging to have loaded on image Conflict, will that is, when having loaded the presence of filter special efficacy and filter special efficacy to be loaded and conflicting image to be further processed It loads filter image to remove, to solve in prior art regardless of whether conflicting, all directly be superimposed upon filter special efficacy to be loaded It loads in filter special efficacy, and makes in some cases, the special efficacy Overlay of image is bad, influences asking for user experience effect Topic.
In an optional embodiment, the first removal submodule may include:
Second determines submodule, for determining the type of the filter special efficacy to be loaded;
Second removes submodule, for the type and the class for having loaded filter special efficacy in the filter special efficacy to be loaded When type conflicts, removal is described to have loaded filter special efficacy.
In the optional embodiment, filter special efficacy to be loaded can be determined according to the type of filter special efficacy and has loaded filter Whether conflict can be generated between special efficacy.Under normal conditions, conflict will not be generated between the identical filter special efficacy of type, and type phase Between close filter special efficacy generate conflict a possibility that it is smaller, and type differ between biggish filter special efficacy generate conflict can Energy property is larger.Therefore, it may be predetermined that the conflict possibility size of different types of filter special efficacy, and the root in practical operation Whether judge to have loaded according to conflict possibility size can produce between the type of filter special efficacy and the type of filter special efficacy to be loaded Raw conflict.
In an optional embodiment, the second removal submodule may include:
Third removes submodule, for the type and the class for having loaded filter special efficacy in the filter special efficacy to be loaded When type is not identical, removal is described to have loaded filter special efficacy.
In the optional embodiment, since same type of filter special efficacy will not usually clash, in order to enable The effect of filter special efficacy to be loaded reaches most preferably, can be by the type that judges filter special efficacy to be loaded Yu loaded filter special efficacy Whether identical both determine whether conflict can be generated.If the type of the two is different, the shifting of filter special efficacy will have directly been loaded It removes, influences the expression effect of filter special efficacy to be loaded to avoid filter special efficacy has been loaded.The optional embodiment can be applied Some scenes pre-defined, such as the filter special efficacy that provides of image special effect processing system, the combination in special effects data packet are special More independent situation between effect, that is to say, that can not be superimposed two kinds of filter special efficacys some and realize super expected special efficacy effect It in the scene of fruit, can directly be operated in a manner of the optional embodiment, this mode of operation is simple and easy to do, implements Too many resource will not be expended, can be improved the real-time of real-time image special effect processing.
In an alternative embodiment, the second removal submodule may include:
First matched sub-block, for matching the type for having loaded filter special efficacy with preset kind set; The preset kind set includes at least one preset kind with the type comflict of the filter special efficacy to be loaded;
4th removes submodule, for having loaded filter special efficacy described in removal in successful match.
In the optional embodiment, in actual application, the first matched sub-block can by matching with it is to be loaded Filter special efficacy type exist conflict corresponding relationship filter special efficacy type, with determine loaded filter special efficacy type whether with to The type comflict for loading filter special efficacy, when there is conflict, the 4th removal submodule removal has loaded filter special efficacy.
In an optional embodiment, the second removal submodule may include:
Second matched sub-block, for matching the type for having loaded filter special efficacy with preset kind set; The preset kind set includes at least one preset kind not conflicted with the type of the filter special efficacy to be loaded;
5th removes submodule, for having loaded filter special efficacy described in removal when matching unsuccessful.
In the optional embodiment, in actual application, the second matched sub-block can by matching with it is to be loaded Filter special efficacy type there is no conflict corresponding relationship filter special efficacy type, with determine loaded filter special efficacy type whether with The type comflict of filter special efficacy to be loaded, when there is conflict, the 5th removal submodule removal has loaded filter special efficacy.
In an optional embodiment, it is described first remove submodule, second remove submodule, third remove submodule, 4th, which removes submodule and the 5th, removes any of submodule, may include:
Submodule is updated, for updating rendering chained list, has recorded filter special efficacy so that removal is described from the rendering chained list Corresponding item.
In the optional embodiment, it is already contained in the rendering chained list of foundation due to having loaded filter special efficacy, When loading special effects data packet, update submodule removed from rendering chained list loaded filter special efficacy it is corresponding that, and will be special Filter special efficacy and other special efficacy elements in effect data packet are supplemented in, and carry out wash with watercolours to image further according to rendering chained list later Dye.
In an alternative embodiment, the processing module 43 can also include:
Submodule is handled, for carrying out special effect processing to described image according to the rendering chained list.
In the optional embodiment, when loading special effects data packet, need to render image again primary.And render chained list It is also required to be updated according to the content in special effects data packet, the post-processing submodule of update is further according to each in rendering chained list Item handles image.
In an alternative embodiment, the processing module 43 can also include:
Be superimposed submodule, for the filter special efficacy to be loaded with it is described loaded filter special efficacy be not present conflict when, It has loaded filter special efficacy by described and has been overlapped with the filter special efficacy to be loaded.
It, can if loaded in the case that filter special efficacy do not conflict with filter special efficacy to be loaded in the optional embodiment Filter special efficacy has been loaded not remove, the two superposition load on the image, can be saved resource by superposition submodule in this way, and And two kinds of filter special efficacys not conflicted while applying on an image, additionally it is possible to generate super expected effect, improve user Experience effect.
In an optional embodiment, the filter special efficacy that loaded is the filter special efficacy locally saved;The special efficacy number It is the special effects data packet of cloud downloading according to packet.
The detailed descriptions such as the technical effect of working principle, realization in relation to image special effect processing device embodiment can refer to Related description in aforementioned image effect processing method embodiment, details are not described herein.
Fig. 5 is the hardware block diagram of diagram image special effect processing hardware device according to an embodiment of the present disclosure.Such as Fig. 5 institute Show, handling hardware device 50 according to the image special effect of the embodiment of the present disclosure includes memory 51 and processor 52.
The memory 51 is for storing non-transitory computer-readable instruction.Specifically, memory 51 may include one Or multiple computer program products, the computer program product may include various forms of computer readable storage mediums, example Such as volatile memory and/or nonvolatile memory.The volatile memory for example may include random access memory (RAM) and/or cache memory (cache) etc..The nonvolatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..
The processor 52 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution energy The processing unit of the other forms of power, and can control other components in image special effect processing hardware device 50 to execute the phase The function of prestige.In one embodiment of the present disclosure, the processor 52 is for running the computer stored in the memory 51 Readable instruction, so that image special effect processing hardware device 50 executes the image special effect processing side of each embodiment of the disclosure above-mentioned The all or part of the steps of method.
Those skilled in the art will be understood that solve the technical issues of how obtaining good user experience effect, this It also may include structure well known to communication bus, interface etc. in embodiment, these well known structures should also be included in this public affairs Within the protection scope opened.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
Fig. 6 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in fig. 6, root According to the computer readable storage medium 60 of the embodiment of the present disclosure, it is stored thereon with non-transitory computer-readable instruction 61.When this When non-transitory computer-readable instruction 61 is run by processor, the image special effect processing of each embodiment of the disclosure above-mentioned is executed The all or part of the steps of method.
Above-mentioned computer readable storage medium 60 includes but is not limited to: and optical storage media (such as: CD-ROM and DVD), magnetic Optical storage media (such as: MO), magnetic storage medium (such as: tape or mobile hard disk), with built-in rewritable nonvolatile The media (such as: storage card) of memory and media (such as: ROM box) with built-in ROM.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
Fig. 7 is the hardware structural diagram for illustrating the terminal device according to the embodiment of the present disclosure.As shown in fig. 7, the image Special effect processing terminal 70 includes above-mentioned image special effect processing device embodiment.
The terminal device can be implemented in a variety of manners, and the terminal device in the disclosure can include but is not limited to such as Mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device, vehicle-mounted terminal equipment, vehicle-mounted display terminal, vehicle electronics rearview mirror etc. Mobile terminal device and such as number TV, desktop computer etc. fixed terminal equipment.
As the embodiment of equivalent replacement, which can also include other assemblies.As shown in fig. 7, the image special effect Processing terminal 70 may include power supply unit 71, wireless communication unit 72, A/V (audio/video) input unit 73, user's input Unit 74, sensing unit 75, interface unit 76, controller 77, output unit 78 and storage unit 79 etc..Fig. 7 shows tool There is the terminal of various assemblies, it should be understood that being not required for implementing all components shown, can also alternatively implement more More or less component.
Wherein, wireless communication unit 72 allows the radio communication between terminal 70 and wireless communication system or network.A/V Input unit 73 is for receiving audio or video signal.It is defeated that the order that user input unit 74 can be inputted according to user generates key Enter data with the various operations of controlling terminal equipment.Sensing unit 75 detects the current state of terminal 70, the position of terminal 70, use Family is mobile for the acceleration or deceleration of the orientation of the presence or absence of touch input of terminal 70, terminal 70, terminal 70 and direction etc., and And generate order or the signal for the operation for being used for controlling terminal 70.Interface unit 76 is used as at least one external device (ED) and terminal 70 Connection can by interface.Output unit 78 is configured to provide output signal with vision, audio and/or tactile manner.It deposits Storage unit 79 can store the software program etc. of the processing and control operation that are executed by controller 77, or can temporarily deposit Store up oneself data through exporting or will export.Storage unit 79 may include the storage medium of at least one type.Moreover, terminal 70 can cooperate with the network storage device for the store function for executing storage unit 79 by network connection.Controller 77 is usually controlled The overall operation of terminal device processed.In addition, controller 77 may include for reproducing or the multimedia mould of multimedia playback data Block.The handwriting input executed on the touchscreen or picture can be drawn input with execution pattern identifying processing by controller 77 It is identified as character or image.Power supply unit 71 receives external power or internal power under the control of controller 77 and provides behaviour Make electric power appropriate needed for each element and component.
The various embodiments for the image special effect processing method that the disclosure proposes can be to use such as computer software, hard The computer-readable medium of part or any combination thereof is implemented.Hardware is implemented, the image special effect processing side that the disclosure proposes The various embodiments of method can be believed by using application-specific IC (ASIC), digital signal processor (DSP), number It is number processing unit (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, micro- Controller, microprocessor is designed to execute at least one of electronic unit of function described herein to implement, some In the case of, the various embodiments for the image special effect processing method that the disclosure proposes can be implemented in controller 77.For soft Part implement, the disclosure propose image special effect processing method various embodiments can with allow to execute at least one function or The individual software module of operation is implemented.Software code can be by the software application journey write with any programming language appropriate Sequence (or program) is implemented, and software code can store in storage unit 79 and executed by controller 77.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
The basic principle of the disclosure is described in conjunction with specific embodiments above, however, it is desirable to, it is noted that in the disclosure The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the disclosure Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand With, rather than limit, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the disclosure,.
Device involved in the disclosure, device, equipment, system block diagram only as illustrative example and be not intended to It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that , it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool " etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above "or" and "and" refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
In addition, as used herein, the "or" instruction separation used in the enumerating of the item started with "at least one" It enumerates, so that enumerating for such as " at least one of A, B or C " means A or B or C or AB or AC or BC or ABC (i.e. A and B And C).In addition, wording " exemplary " does not mean that the example of description is preferred or more preferable than other examples.
It may also be noted that in the system and method for the disclosure, each component or each step are can to decompose and/or again Combination nova.These decompose and/or reconfigure the equivalent scheme that should be regarded as the disclosure.
The technology instructed defined by the appended claims can not departed from and carried out to the various of technology described herein Change, replace and changes.In addition, the scope of the claims of the disclosure is not limited to process described above, machine, manufacture, thing Composition, means, method and the specific aspect of movement of part.Can use carried out to corresponding aspect described herein it is essentially identical Function or realize essentially identical result there is currently or later to be developed processing, machine, manufacture, event group At, means, method or movement.Thus, appended claims include such processing, machine, manufacture, event within its scope Composition, means, method or movement.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this It is open.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein General Principle can be applied to other aspect without departing from the scope of the present disclosure.Therefore, the disclosure is not intended to be limited to Aspect shown in this, but according to principle disclosed herein and the consistent widest range of novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the disclosure It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill Its certain modifications, modification, change, addition and sub-portfolio will be recognized in art personnel.

Claims (20)

1. a kind of image special effect processing method characterized by comprising
Obtain special effects data packet;
It whether determines in the special effects data packet comprising filter special efficacy to be loaded;
When including filter special efficacy to be loaded in the special effects data packet, according in the special effects data packet and described image It has loaded filter special efficacy and special effect processing is carried out to described image.
2. the method according to claim 1, wherein obtaining special effects data packet, comprising:
Corresponding special effects data packet is downloaded from cloud according to the special efficacy that user selectes.
3. the method according to claim 1, wherein whether determine in the special effects data packet includes filter to be loaded Mirror special efficacy, comprising:
Parse the special effects data packet;
It whether include the corresponding filter field of the filter special efficacy to be loaded in the special effects data packet after determining parsing.
4. the method according to claim 1, wherein including filter special efficacy to be loaded in the special effects data packet When, special effect processing, packet are carried out to described image according to the filter of the load special efficacy in the special effects data packet and described image It includes:
The filter special efficacy to be loaded with it is described loaded filter special efficacy exist conflict when, remove that described to have loaded filter special Effect.
5. according to the method described in claim 4, it is characterized in that, having loaded filter with described in the filter special efficacy to be loaded When special efficacy has conflict, removal is described to have loaded filter special efficacy, comprising:
Determine the type of the filter special efficacy to be loaded;
In type and the type comflict for having loaded filter special efficacy of the filter special efficacy to be loaded, described loaded is removed Filter special efficacy.
6. according to the method described in claim 5, it is characterized in that, the type in the filter special efficacy to be loaded has added with described When carrying the type comflict of filter special efficacy, removal is described to have loaded filter special efficacy, comprising:
In the type and the not identical type for having loaded filter special efficacy of the filter special efficacy to be loaded, described has added is removed Carry filter special efficacy.
7. according to the method described in claim 5, it is characterized in that, the type in the filter special efficacy to be loaded has added with described When carrying the type comflict of filter special efficacy, removal is described to have loaded filter special efficacy, comprising:
The type for having loaded filter special efficacy is matched with preset kind set;The preset kind set includes and institute State at least one preset kind of the type comflict of filter special efficacy to be loaded;
In successful match, removal is described to have loaded filter special efficacy.
8. according to the method described in claim 5, it is characterized in that, the type in the filter special efficacy to be loaded has added with described When carrying the type comflict of filter special efficacy, removal is described to have loaded filter special efficacy, comprising:
The type for having loaded filter special efficacy is matched with preset kind set;The preset kind set includes and institute State at least one preset kind that the type of filter special efficacy to be loaded does not conflict;
When matching unsuccessful, removal is described to have loaded filter special efficacy.
9. according to the described in any item methods of claim 4-8, which is characterized in that filter special efficacy has been loaded described in the removal, Include:
Rendering chained list is updated, has recorded the corresponding item of filter special efficacy so that removal is described from the rendering chained list;
When including filter special efficacy to be loaded in the special effects data packet, according in the special effects data packet and described image It has loaded filter special efficacy and special effect processing is carried out to described image, further includes:
Special effect processing is carried out to described image according to the rendering chained list.
10. a kind of image special effect processing unit characterized by comprising
Module is obtained, for obtaining special effects data packet;
Determining module, for whether determining in the special effects data packet comprising filter special efficacy to be loaded;
Processing module, in the special effects data packet include filter special efficacy to be loaded when, according to the special effects data packet with And the filter of the load special efficacy in described image carries out special effect processing to described image.
11. device according to claim 10, which is characterized in that the acquisition module, comprising:
Submodule is downloaded, the special efficacy for selecting according to user downloads corresponding special effects data packet from cloud.
12. device according to claim 10, which is characterized in that the determining module, comprising:
Analyzing sub-module, for parsing the special effects data packet;
Whether first determines submodule, for including that the filter to be loaded is special in the special effects data packet after determining parsing Imitate corresponding filter field.
13. device according to claim 10, which is characterized in that the processing module, comprising:
First remove submodule, for the filter special efficacy to be loaded with it is described loaded filter special efficacy exist conflict when, shifting Filter special efficacy has been loaded except described.
14. device according to claim 13, which is characterized in that described first removes submodule, comprising:
Second determines submodule, for determining the type of the filter special efficacy to be loaded;
Second removes submodule, for the type and the type for having loaded filter special efficacy in the filter special efficacy to be loaded When conflict, removal is described to have loaded filter special efficacy.
15. device according to claim 14, which is characterized in that described second removes submodule, comprising:
Third remove submodule, in the filter special efficacy to be loaded type and the type for having loaded filter special efficacy not When identical, removal is described to have loaded filter special efficacy.
16. device according to claim 14, which is characterized in that described second removes submodule, comprising:
First matched sub-block, for matching the type for having loaded filter special efficacy with preset kind set;It is described Preset kind set includes at least one preset kind with the type comflict of the filter special efficacy to be loaded;
4th removes submodule, for having loaded filter special efficacy described in removal in successful match.
17. device according to claim 14, which is characterized in that described second removes submodule, comprising:
Second matched sub-block, for matching the type for having loaded filter special efficacy with preset kind set;It is described Preset kind set includes at least one preset kind not conflicted with the type of the filter special efficacy to be loaded;
5th removes submodule, for having loaded filter special efficacy described in removal when matching unsuccessful.
18. the described in any item devices of 3-17 according to claim 1, which is characterized in that described first removes submodule, the second shifting Except submodule, third remove submodule, the 4th removal submodule and the 5th removes any of submodule, comprising:
Submodule is updated, is used to update rendering chained list, is corresponded to removing the filter special efficacy of having recorded from the rendering chained list Item;
The processing module, comprising:
Submodule is handled, for carrying out special effect processing to described image according to the rendering chained list.
19. a kind of image special effect handles hardware device, comprising:
Memory, for storing non-transitory computer-readable instruction;And
Processor, for running the computer-readable instruction, so that realizing according to claim 1-9 when the processor executes Any one of described in image special effect processing method.
20. a kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory meter When calculation machine readable instruction is executed by computer, so that the computer perform claim requires image described in any one of 1-9 Effect processing method.
CN201810697083.2A 2018-06-29 2018-06-29 Image special effect processing method, device and computer readable storage medium Active CN108986017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810697083.2A CN108986017B (en) 2018-06-29 2018-06-29 Image special effect processing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810697083.2A CN108986017B (en) 2018-06-29 2018-06-29 Image special effect processing method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108986017A true CN108986017A (en) 2018-12-11
CN108986017B CN108986017B (en) 2023-06-20

Family

ID=64539127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810697083.2A Active CN108986017B (en) 2018-06-29 2018-06-29 Image special effect processing method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108986017B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109731337A (en) * 2018-12-28 2019-05-10 北京金山安全软件有限公司 Method and device for creating special effect of particles in Unity, electronic equipment and storage medium
WO2020173211A1 (en) * 2019-02-28 2020-09-03 北京字节跳动网络技术有限公司 Method and apparatus for triggering special image effects and hardware device
WO2021031847A1 (en) * 2019-08-16 2021-02-25 北京字节跳动网络技术有限公司 Image processing method and apparatus, electronic device and computer-readable storage medium
CN113643411A (en) * 2020-04-27 2021-11-12 北京达佳互联信息技术有限公司 Image special effect adding method and device, electronic equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010036316A1 (en) * 2000-04-27 2001-11-01 Fuji Xerox Co, Ltd. Image processor, image processing method and storage medium
US20140212057A1 (en) * 2013-01-29 2014-07-31 Documill Oy Methods for visual content processing , and systems and computer program codes thereto
CN104322050A (en) * 2012-05-22 2015-01-28 株式会社尼康 Electronic camera, image display device, and image display program
US20150287160A1 (en) * 2012-12-28 2015-10-08 Fujitsu Limited Image processing apparatus and feature detection method
CN105261053A (en) * 2014-06-19 2016-01-20 江苏睿泰数字产业园有限公司 Image rendering method
CN105282626A (en) * 2014-06-10 2016-01-27 腾讯科技(北京)有限公司 Video sharing application-based video file processing method and device
CN105763885A (en) * 2014-12-19 2016-07-13 艾迪普(北京)文化科技股份有限公司 Three-dimensional graphics and text information real-time distribution method and device
CN106060581A (en) * 2016-07-05 2016-10-26 广州华多网络科技有限公司 Video real-time transmission data processing method, device and system
CN106303493A (en) * 2015-05-27 2017-01-04 深圳超多维光电子有限公司 Image processing method and device
CN106296785A (en) * 2016-08-09 2017-01-04 腾讯科技(深圳)有限公司 A kind of picture rendering intent and picture rendering apparatus
CN106375660A (en) * 2016-09-13 2017-02-01 乐视控股(北京)有限公司 Photographic processing method and device
CN106780663A (en) * 2016-11-22 2017-05-31 维沃移动通信有限公司 A kind of processing method and processing device of Form board frame word
CN107613046A (en) * 2017-08-22 2018-01-19 阿里巴巴集团控股有限公司 Filter pipe-line system, image processing method, device and electronic equipment
CN108171653A (en) * 2017-12-31 2018-06-15 广州二元科技有限公司 A kind of method for accelerating more filter combined treatment digital pictures

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010036316A1 (en) * 2000-04-27 2001-11-01 Fuji Xerox Co, Ltd. Image processor, image processing method and storage medium
CN104322050A (en) * 2012-05-22 2015-01-28 株式会社尼康 Electronic camera, image display device, and image display program
US20150287160A1 (en) * 2012-12-28 2015-10-08 Fujitsu Limited Image processing apparatus and feature detection method
US20140212057A1 (en) * 2013-01-29 2014-07-31 Documill Oy Methods for visual content processing , and systems and computer program codes thereto
CN105282626A (en) * 2014-06-10 2016-01-27 腾讯科技(北京)有限公司 Video sharing application-based video file processing method and device
CN105261053A (en) * 2014-06-19 2016-01-20 江苏睿泰数字产业园有限公司 Image rendering method
CN105763885A (en) * 2014-12-19 2016-07-13 艾迪普(北京)文化科技股份有限公司 Three-dimensional graphics and text information real-time distribution method and device
CN106303493A (en) * 2015-05-27 2017-01-04 深圳超多维光电子有限公司 Image processing method and device
CN106060581A (en) * 2016-07-05 2016-10-26 广州华多网络科技有限公司 Video real-time transmission data processing method, device and system
CN106296785A (en) * 2016-08-09 2017-01-04 腾讯科技(深圳)有限公司 A kind of picture rendering intent and picture rendering apparatus
CN106375660A (en) * 2016-09-13 2017-02-01 乐视控股(北京)有限公司 Photographic processing method and device
CN106780663A (en) * 2016-11-22 2017-05-31 维沃移动通信有限公司 A kind of processing method and processing device of Form board frame word
CN107613046A (en) * 2017-08-22 2018-01-19 阿里巴巴集团控股有限公司 Filter pipe-line system, image processing method, device and electronic equipment
CN108171653A (en) * 2017-12-31 2018-06-15 广州二元科技有限公司 A kind of method for accelerating more filter combined treatment digital pictures

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
刘晓荣;: "CSS滤镜在网页设计中的应用", 中小企业管理与科技(上旬刊), no. 07 *
刘景云;: "轻松实现图片的完美"修饰"", 电脑知识与技术(经验技巧), no. 05 *
孔长征等: "《Dreamweaver 4.03实用教程 中文版》", 30 November 2002, pages: 50 *
徐 琪: "图像增强算法的综合实验教学研究", 计算机教育, no. 11 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109731337A (en) * 2018-12-28 2019-05-10 北京金山安全软件有限公司 Method and device for creating special effect of particles in Unity, electronic equipment and storage medium
CN109731337B (en) * 2018-12-28 2023-02-21 超级魔方(北京)科技有限公司 Method and device for creating special effect of particles in Unity, electronic equipment and storage medium
WO2020173211A1 (en) * 2019-02-28 2020-09-03 北京字节跳动网络技术有限公司 Method and apparatus for triggering special image effects and hardware device
US11595591B2 (en) 2019-02-28 2023-02-28 Beijing Bytedance Network Technology Co., Ltd. Method and apparatus for triggering special image effects and hardware device
WO2021031847A1 (en) * 2019-08-16 2021-02-25 北京字节跳动网络技术有限公司 Image processing method and apparatus, electronic device and computer-readable storage medium
US11516411B2 (en) 2019-08-16 2022-11-29 Beijing Bytedance Network Technology Co., Ltd. Image processing method and apparatus, electronic device and computer-readable storage medium
CN113643411A (en) * 2020-04-27 2021-11-12 北京达佳互联信息技术有限公司 Image special effect adding method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108986017B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN108986017A (en) Image special effect processing method, device and computer readable storage medium
CN108055320B (en) Processing method, terminal device and the computer readable storage medium of resource downloading
CN104462516B (en) A kind of information cuing method and mobile terminal
CN108153505A (en) Display methods, electronic equipment and the computer storage media of handwriting input content
CN108595200A (en) Code update method, figure update method, device, storage medium and terminal
CN107430520A (en) Preview technology for the enhancing of application plug-in
CN104850428A (en) Method and device for updating user interface of mobile client
CN109033393B (en) Sticker processing method, device, storage medium and electronic equipment
CN114185508A (en) Method for left-right screen splitting on Linux compatible android system
CN102193806B (en) Upgrade the method and apparatus of animation
CN110070592A (en) Generation method, device and the hardware device of special efficacy packet
CN109815424A (en) Web page picture display methods and terminal device
CN108399605A (en) Image processing method, terminal device and computer readable storage medium
CN104317561A (en) Method of interface operation
CN109951732A (en) The method that Android intelligent television prevents boot LOGO Yu application switching blank screen
CN107885543A (en) The function management method, apparatus and intelligent terminal of a kind of application program
CN108389153A (en) A kind of method and terminal device of view load
CN106802812A (en) A kind of method of load document, device and electronic equipment
CN114168219B (en) Cross-layer scheduling method and system based on OSG rendering 3DTiles model and electronic equipment
CN104392408A (en) Image display system and method
CN109254803A (en) Application program launching control method, device, terminal and readable storage medium storing program for executing
CN104461615A (en) Skin resource processing method and electronic equipment
CN108037860A (en) A kind of methods of exhibiting and device of video upload/download progress
CN113542847A (en) Image display method, device, equipment and storage medium
CN110287437A (en) Webpage capture method, apparatus, storage medium and terminal

Legal Events

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