CN109167936A - A kind of image processing method, terminal and storage medium - Google Patents
A kind of image processing method, terminal and storage medium Download PDFInfo
- Publication number
- CN109167936A CN109167936A CN201811270837.2A CN201811270837A CN109167936A CN 109167936 A CN109167936 A CN 109167936A CN 201811270837 A CN201811270837 A CN 201811270837A CN 109167936 A CN109167936 A CN 109167936A
- Authority
- CN
- China
- Prior art keywords
- special
- special efficacy
- effect processing
- processing program
- image
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Abstract
The embodiment of the present application discloses a kind of image processing method, terminal and storage medium, and this method may include: to obtain special efficacy to execute library;Wherein, special efficacy, which executes, stores the corresponding special effect processing program of each special efficacy and special efficacy mark in library, special effect processing program includes preset data structural element;Obtain the first image and the corresponding target special efficacy mark of target special efficacy;It is executed in library in special efficacy, searches target special efficacy and identify corresponding target special effect processing program;Invocation target special effect processing program, handles the first image, obtains the second image, wherein the second image has target special efficacy.
Description
Technical field
The invention relates to technical field of image processing more particularly to a kind of image processing methods, terminal and storage
Medium.
Background technique
With the continuous development of electronic technology, the terminals such as smart phone, tablet computer are not limited solely to provide already single
One communication function, but integrate the functions of the different affairs of a variety of processing, for example, terminal image can be carried out U.S. face,
The special effect processings such as filter and high dynamic illumination rendering (High-Dynamic Range, HDR) need to obtain and be more in line with user
The image asked.
However, since terminal carries out the processing of different special efficacys to image, based on processing framework be different, therefore, no
Only the maintenance and expansion difficulty of terminal progress image processing function is larger, moreover, when carrying out a variety of special efficacy superposition processings to image
When, it is complex, it takes a long time.
Summary of the invention
The embodiment of the present application provides a kind of image processing method, terminal and storage medium, passes through the spy for managing special efficacy
Effect executes library, to support to carry out the calling of corresponding special effect processing program when carrying out different special effect processings to image, not only reduces
Terminal carries out the difficulty of the maintenance and expansion of image processing function, and can quickly carry out at a variety of special efficacy superpositions to image
Reason.
The technical solution of the embodiment of the present application is achieved in that
The embodiment of the present application provides a kind of image processing method, is applied to terminal, which comprises
It obtains special efficacy and executes library;Wherein, the special efficacy executes in library and stores the corresponding special effect processing program of each special efficacy
It is identified with special efficacy, the special effect processing program includes preset data structural element;
Obtain the first image and the corresponding target special efficacy mark of target special efficacy;
It is executed in library in the special efficacy, searches the target special efficacy and identify corresponding target special effect processing program;
The target special effect processing program is called, the first image is handled, obtains the second image, wherein institute
It states the second image and has the target special efficacy.
In the above scheme, the target special efficacy includes at least two special efficacys, correspondingly, target special efficacy mark includes
At least two special efficacys mark;It is described to be executed in library in the special efficacy, it searches the target special efficacy and identifies at corresponding target special efficacy
Manage program, comprising:
It is executed in library in the special efficacy, searches at least two special efficacy and identify corresponding at least two special effect processings journey
Sequence;At least two special effect processings program is the target special effect processing program.
In the above scheme, described to be executed in library in the special efficacy, it is corresponding extremely to search at least two special efficacys mark
Few two special effect processing programs, comprising:
The storage order in library is executed based on the special efficacy, searches at least two special effect processings program.
In the above scheme, at least two special efficacys mark includes: that the first special efficacy mark and the second special efficacy identify, described
The target special effect processing program is called, the first image is handled, obtains the second image, comprising:
When the storage order for executing library based on the special efficacy, first finds the first special efficacy mark corresponding first
When special effect processing program, the first special effect processing program is called to handle the first image, obtains target image;
When call complete the first special effect processing program after, based on the special efficacy execute library storage order, second
It is a when finding second special efficacy and identifying corresponding second special effect processing program, call the second special effect processing program to institute
It states target image to be handled, obtains second image.
In the above scheme, described to be executed in library in the special efficacy, it is corresponding extremely to search at least two special efficacys mark
Few two special effect processing programs, comprising:
Obtain default mark sequence;
Based on the default mark sequence, at least two special effect processings program is searched.
In the above scheme, at least two special efficacys mark includes: third special efficacy mark and the 4th special efficacy mark, in institute
It states in default mark sequence, the sequence of the third special efficacy mark is identified prior to the 4th special efficacy, described to call the mesh
Special effect processing program is marked, the first image is handled, obtains the second image, comprising:
When based on the default mark sequence, first is searched the corresponding third special effect processing journey of the third special efficacy mark
Sequence, and when finding the third special effect processing program, call the third special effect processing program to carry out the first image
Processing obtains target image;
After calling the completion third special effect processing program, based on the default mark sequence, second lookup institute
When stating the 4th special efficacy and identify corresponding 4th special effect processing program, and finding the 4th special effect processing program, described in calling
4th special effect processing program handles the target image, obtains second image.
The embodiment of the present application provides a kind of terminal, and the terminal includes:
First acquisition unit executes library for obtaining special efficacy;Wherein, the special efficacy executes in library and stores each special efficacy pair
Special effect processing program and the special efficacy mark answered, the special effect processing program includes preset data structural element;
Second acquisition unit, for obtaining the first image and the corresponding target special efficacy mark of target special efficacy;
Searching unit is searched the target special efficacy and is identified at corresponding target special efficacy for executing in library in the special efficacy
Manage program;
Processing unit handles the first image, obtains second for calling the target special effect processing program
Image, wherein second image has the target special efficacy.
In above-mentioned terminal, the target special efficacy includes at least two special efficacys, correspondingly, target special efficacy mark includes
At least two special efficacys mark;
The searching unit is specifically used for executing in library in the special efficacy, searches at least two special efficacys mark and corresponds to
At least two special effect processing programs;At least two special effect processings program is the target special effect processing program.
In above-mentioned terminal, the searching unit searches institute specifically for executing the storage order in library based on the special efficacy
State at least two special effect processing programs.
In above-mentioned terminal, at least two special efficacys mark includes: that the first special efficacy mark and the second special efficacy identify,
The processing unit, specifically for when the searching unit based on the special efficacy execute library storage order, first
It is a when finding first special efficacy and identifying corresponding first special effect processing program, call the first special effect processing program to institute
It states the first image to be handled, obtains target image;After calling completion the first special effect processing program, the lookup is single
Member executes the storage order in library based on the special efficacy, and second finds second special efficacy and identify corresponding second special effect processing
When program, the second special effect processing program is called to handle the target image, obtains second image.
In above-mentioned terminal, the searching unit is specifically used for obtaining default mark sequence;It is suitable based on the default mark
Sequence searches at least two special effect processings program.
In above-mentioned terminal, at least two special efficacys mark includes: third special efficacy mark and the 4th special efficacy mark, in institute
It states in default mark sequence, the sequence of the third special efficacy mark is identified prior to the 4th special efficacy,
The processing unit is specifically used for being based on the default mark sequence, first lookup institute when the searching unit
When stating third special efficacy and identify corresponding third special effect processing program, and finding the third special effect processing program, described in calling
Third special effect processing program handles the first image, obtains target image;
After calling the completion third special effect processing program, the searching unit is based on the default mark sequence,
It searches the 4th special efficacy for second and identifies corresponding 4th special effect processing program, and find the 4th special effect processing program
When, it calls the 4th special effect processing program to handle the target image, obtains second image.
The embodiment of the present application provides a kind of terminal, and the terminal includes: processor, memory and communication bus;
The communication bus is for realizing the communication connection between the processor and the memory;
The processor is for executing the image processing program stored in the memory, to realize above-mentioned image processing method
Method.
The embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with computer program, is applied to
Terminal, the computer program realize above-mentioned image processing method when being executed by processor.
The embodiment of the present application provides a kind of image processing method, and terminal obtains special efficacy and executes library;Wherein, special efficacy executes library
The corresponding special effect processing program of middle each special efficacy of storage and special efficacy mark, special effect processing program includes preset data structural elements
Element;Obtain the first image and the corresponding target special efficacy mark of target special efficacy;It is executed in library in special efficacy, searches target special efficacy mark
Know corresponding target special effect processing program;Invocation target special effect processing program, handles the first image, obtains the second figure
Picture, wherein the second image has target special efficacy.That is, in embodiments herein, since the special efficacy of management special efficacy is held
The corresponding special efficacy mark of each special efficacy and special effect processing program are stored in row library, also, each special effect processing program is equal
Including preset data structural element, therefore, terminal only needs to identify based on special efficacy, when can search and call different special effect processings
Corresponding image procossing is carried out, when needing to extend and safeguarding image processing function, it is only necessary to which extension and maintenance special efficacy execute library
, so that the difficulty of image processing function maintenance and expansion is reduced, additionally it is possible to quickly carry out a variety of special efficacys to image
Superposition processing.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of image processing method provided by the embodiments of the present application;
Fig. 2 is the schematic diagram that a kind of illustrative special efficacy provided by the embodiments of the present application executes library;
Fig. 3 is a kind of illustrative special effect processing schematic diagram provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram one of terminal provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram two of terminal provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description.It is understood that specific embodiment described herein is used only for explaining related application, rather than to this application
Restriction.It also should be noted that illustrating only part relevant to related application for ease of description, in attached drawing.
Embodiment one
The embodiment of the present application provides a kind of image processing method, is applied to terminal.Fig. 1 is provided by the embodiments of the present application one
The flow diagram of kind image processing method.As shown in Figure 1, mainly comprising the steps that
S101, special efficacy execution library is obtained;Wherein, special efficacy executes in library and stores the corresponding special effect processing program of each special efficacy
It is identified with special efficacy, special effect processing program includes preset data structural element.
In embodiments herein, the available special efficacy of terminal executes library, special efficacy execute library for manage it is various can be with
Handle the special efficacy of image.Specifically, special efficacy, which executes, stores the corresponding special effect processing program of each special efficacy and special efficacy mark in library,
Each special effect processing program includes preset data structural element.
Specifically, special efficacy is identified as flag in embodiments herein, for distinguishing different special efficacys, preset data
Structural element include the following:
.stream --- the algorithm of required race when for distinguishing preview and take pictures;
.init --- initialization special efficacy;
.uninit --- destroy special efficacy;
.process --- processing special efficacy;
.updateparameters --- update parameter required for special efficacy;
.callback --- return to special effect processing result.
It should be noted that in embodiments herein, preset data structural element can also for developer according to
Other data structure elements of setting are actually needed, specific preset data structural element the embodiment of the present application is not construed as limiting.
It is understood that in the prior art, terminal carries out the processing of different-effect to image, based on processing framework
It is different, the data structure element that different special effect processing programs includes has differences, and therefore, terminal carries out image procossing function
The maintenance and expansion difficulty of energy is larger.In embodiments herein, the corresponding special effect processing program of each special efficacy includes
Data structure element is consistent, when terminal needs to extend and safeguard, so that it may the multiplexing of correlative code is realized, to reduce
Terminal carries out the difficulty of the maintenance and expansion of image processing function.
It is understood that terminal carries out the extension of image processing function, actually in embodiments herein
It extends special efficacy and executes library, that is, increase and store a kind of corresponding special effect processing program of special efficacy and special efficacy mark, also, the special effect processing
Program includes above-mentioned preset data structural element.
It should be noted that terminal can exist according to the storage order that developer indicates in embodiments herein
Special efficacy, which executes, stores the corresponding special effect processing program of each special efficacy and special efficacy mark in library, specific storage order the application is real
Example is applied to be not construed as limiting.
Fig. 2 is the schematic diagram that a kind of illustrative special efficacy provided by the embodiments of the present application executes library.As shown in Fig. 2, special efficacy
Execute in library includes: special effect processing program A1+ special efficacy mark B1, special effect processing program A2+ special efficacy mark B2, special effect processing program
A3+ special efficacy identifies B3, special effect processing program A4+ special efficacy mark B4, special effect processing program A5+ special efficacy and identifies B5.Wherein, at special efficacy
It includes upper for managing program A1, special effect processing program A2, special effect processing program A3, special effect processing program A4 and special effect processing program A5
Preset data structural element is stated, special efficacy 1 may be implemented in special effect processing program A1, and special efficacy 2 may be implemented in special effect processing program A2, special
Special efficacy 3 may be implemented in effect processing routine A3, and special efficacy 4 may be implemented in special effect processing program A4, and special effect processing program A5 may be implemented
Special efficacy 5, default to put in order as special efficacy 3, special efficacy 1, special efficacy 4, special efficacy 5, special efficacy 2, therefore, special efficacy executes in library, according to special efficacy
Processing routine A3+ special efficacy identifies B3, special effect processing program A1+ special efficacy mark B1, special effect processing program A4+ special efficacy and identifies B4, spy
The sequence that effect processing routine A5+ special efficacy mark B5, special effect processing program A2+ special efficacy identify B2 is arranged.
S102, the first image and the corresponding target special efficacy mark of target special efficacy are obtained.
In embodiments herein, terminal is after obtaining special efficacy and executing library, available first image and target
The corresponding target special efficacy mark of special efficacy.
It should be noted that in embodiments herein, the first image is to be processed into the image for having target special efficacy,
Specific first image the embodiment of the present application is not construed as limiting.
It should be noted that it also may include at least that target special efficacy, which can be a kind of special efficacy, in embodiments herein
Two kinds of special efficacys, i.e. terminal may finally be by the first image procossings at the image for having a kind of special efficacy, can also will be at the first image
Manage into the image for having at least two special efficacys.Specific target special efficacy the embodiment of the present application is not construed as limiting.
It should be noted that each special efficacy has corresponding special efficacy mark, i.e. step in embodiments herein
Flag in S101, terminal are available to the corresponding target special efficacy mark of target special efficacy.For example, user needs terminal by first
Image procossing can send terminal at the image for having HDR special efficacy and U.S. face special efficacy and carry out HDR special effect processing to the first image
With the instruction of U.S. face special effect processing, after terminal receives instruction, HDR special efficacy mark and U.S. face special efficacy mark can be obtained.Tool
The target special efficacy of body identifies the embodiment of the present application and is not construed as limiting.
S103, it is executed in library in special efficacy, searches target special efficacy and identify corresponding target special effect processing program.
In embodiments herein, terminal executes library after obtaining the first image and target special efficacy mark, in special efficacy
In, it searches target special efficacy and identifies corresponding target special effect processing program.
It is understood that special efficacy executes in library and stores the corresponding special efficacy of each special efficacy in embodiments herein
Processing routine and special efficacy mark, therefore, terminal can be identified directly according to target special efficacy, executed in library and searched in special efficacy,
It finds target special efficacy and identifies corresponding target special effect processing program.
It should be noted that terminal can be by executing preset search program in special efficacy in embodiments herein
It executes and is searched in library, for example, being preset with for cyclic program in terminal, terminal can call the program to execute library in special efficacy
Middle lookup target special efficacy identifies corresponding target special effect processing program.
Specifically, in embodiments herein, if target special efficacy is a kind of special efficacy, correspondingly, target special efficacy mark is only
It is identified for a special efficacy, terminal executes in library in special efficacy, directly searches the target special efficacy and identifies corresponding target special effect processing
Program.
Illustratively, in embodiments herein, target special efficacy is HDR special efficacy, correspondingly, target special efficacy is identified as
HDR special efficacy mark, terminal execute in library in special efficacy, search HDR special efficacy and identify corresponding HDR special effect processing program, HDR special efficacy
Processing routine is target special efficacy program.
Specifically, in embodiments herein, if target special efficacy includes at least two special efficacys, correspondingly, target special efficacy
Mark includes that at least two special efficacys identify, and terminal executes in library in special efficacy, and it is corresponding at least to search at least two special efficacys mark
Two special effect processing programs, wherein at least two special effect processings program is target special effect processing program.
Illustratively, in embodiments herein, target special efficacy includes HDR special efficacy and U.S. face special efficacy, correspondingly, target
Special efficacy mark includes HDR special efficacy mark and U.S. face special efficacy mark, and terminal executes in library in special efficacy, and searching respectively includes HDR special
Criterion knows corresponding HDR special effect processing program, and the corresponding U.S. face special effect processing program of U.S. face special efficacy mark, wherein HDR is special
Imitate processing routine and U.S. face special effect processing program, as target special efficacy program.
It is understood that target special efficacy includes at least two special efficacys in embodiments herein, i.e., not only can wrap
Two kinds of special efficacys are included, can also include three kinds, four kinds, even more a variety of special efficacy, correspondingly, target special efficacy mark includes at least two
A special efficacy mark not only may include two special efficacy marks, can also include three, four, even more special efficacy marks
Know, terminal executes in library in special efficacy, searches each special efficacy and identifies corresponding special effect processing program, which is
Target special effect processing program.
It should be noted that in embodiments herein, if target special efficacy includes at least two special efficacys, correspondingly, mesh
Marking special efficacy mark includes that at least two special efficacys identify, and terminal executes in library in special efficacy, and it is corresponding to search at least two special efficacys mark
When at least two special effect processing programs, it can be searched based on different methods.
Specifically, terminal can execute the storage order in library based on special efficacy in embodiments herein, at least two are searched
A special effect processing program, alternatively, obtaining default mark sequence;Based on default mark sequence, at least two special effect processing journeys are searched
Sequence.
Illustratively, in embodiments herein, target special efficacy mark includes special efficacy mark B1, special efficacy mark B3 and spy
Criterion knows B5, executes in library in special efficacy, and special effect processing program A1+ special efficacy mark B1 is stored in special effect processing program A3+ special efficacy mark
Before knowing B3, special effect processing program A3+ special efficacy mark B3 is stored in front of special effect processing program A5+ special efficacy mark B5, terminal base
The storage order in library is executed in special efficacy, successively searches the corresponding special effect processing program A1 of special efficacy mark B1, it is corresponding that special efficacy identifies B3
Special effect processing program A3 and special efficacy mark B5 corresponding special effect processing program A5 when, it is inevitable first to find special effect processing journey
Sequence A1, and then special effect processing program A3 is found, finally find special effect processing program A3.
Illustratively, in embodiments herein, target special efficacy mark includes special efficacy mark B2, special efficacy mark B4 and spy
Criterion knows B6, and the available default mark sequence of terminal, in default mark sequence, special efficacy identifies the sequence of B2 prior to special efficacy
B4 is identified, the sequence that special efficacy identifies B4 identifies B6 prior to special efficacy, and therefore, terminal is first searched at the corresponding special efficacy of special efficacy mark B2
Program A2 is managed, and then searches the corresponding special effect processing program A4 of special efficacy mark B4, finally, it is corresponding to search special efficacy mark B6
Special effect processing program A6.
It should be noted that in embodiments herein, if target special efficacy includes at least two special efficacys, correspondingly, mesh
Marking special efficacy mark includes that at least two special efficacys identify, and terminal executes in library in special efficacy, and it is corresponding to search at least two special efficacys mark
When at least two special effect processing programs, at least two special effect processing programs will be called to handle the first image simultaneously, specifically
Call method be described in detail in the next step.
S104, invocation target special effect processing program, handle the first image, obtain the second image, wherein the second figure
As having target special efficacy.
In embodiments herein, terminal, can invocation target special efficacy after finding target special effect processing program
Processing routine handles the first image, to obtain the second image.
It is understood that in embodiments herein, terminal invocation target special efficacy program to the first image at
Reason, and target special efficacy program can be realized target special efficacy, therefore, the second image of acquisition has target special efficacy.
Specifically, in embodiments herein, if target special efficacy is a kind of special efficacy, correspondingly, target special efficacy mark is only
It is identified for a special efficacy, the target special effect processing program that terminal is found includes a special effect processing program, and therefore, terminal is direct
The target special effect processing program is called to handle the first image, to obtain the second image, the second image has target spy
Effect, i.e., only have a kind of special efficacy.
Illustratively, in embodiments herein, target special efficacy is U.S. face special efficacy, correspondingly, target special efficacy is identified as
U.S. face special efficacy mark, terminal execute in library in special efficacy, search the corresponding U.S. face special effect processing program of U.S. face special efficacy mark, the U.S. face
Special effect processing program is target special effect processing program, and calls the U.S. face special effect processing program, is handled the first image,
To obtain the second image for having U.S. face special efficacy.
Specifically, in embodiments herein, if target special efficacy includes at least two special efficacys, correspondingly, target special efficacy
Mark includes that at least two special efficacys identify, and terminal executes in library in special efficacy, and it is corresponding at least to find at least two special efficacys mark
Two special effect processing programs, the i.e. at least two special effect processings program are target special effect processing program, and terminal needs to call this extremely
Few two special effect processing programs handle the first image, obtain the second image, and the second image has target special efficacy and includes
At least two special efficacys.
It should be noted that being at least two special efficacys for target special effect processing program in embodiments herein
The case where managing program, when terminal searches at least two special effect processings program, that is, calls at least two special effect processings program,
The lookup mode provided in the sequence of calling and step S103 is related.
Specifically, in embodiments herein, in step S103, terminal is suitable based on the storage that special efficacy executes library
The case where sequence, at least two special effect processing program of lookup, if at least two special efficacys mark includes: that the first special efficacy mark and second are special
Criterion is known, then terminal invocation target special effect processing program, handles the first image, obtains the second image, comprising: when being based on
Special efficacy executes the storage order in library, and first when finding the first special efficacy and identifying corresponding first special effect processing program, is called the
One special effect processing program handles the first image, obtains target image;After calling the first special effect processing program of completion,
Based on special efficacy execute library storage order, second find the second special efficacy identify corresponding second special effect processing program when, adjust
Target image is handled with the second special effect processing program, obtains the second image.
It is understood that, if terminal executes the storage order in library based on special efficacy, being searched extremely in embodiments herein
Few two special effect processing programs correspond to then terminal can first find some special efficacy mark at least two special effect processings mark
Some special effect processing program, at this point, terminal will not continue to search, but call directly some special effect processing found
Program handles the first image, and processing is completed and then continues to search other special efficacys at least two special efficacys mark down
Corresponding special effect processing program is identified, is just called immediately when finding one, treated that image is continued with to last, directly
It is found to whole, and all calls and complete, that is, obtain the second image.
Specifically, in step S103, terminal is based on default mark sequence, being searched extremely in embodiments herein
The case where few two special effect processing programs, if at least two special efficacys mark includes: that third special efficacy mark and the 4th special efficacy identify,
Terminal invocation target special effect processing program, handles the first image, obtains the second image, comprising: when based on default mark
Sequentially, first lookup third special efficacy identifies corresponding third special effect processing program, and when finding third special effect processing program,
It calls third special effect processing program to handle the first image, obtains target image;Third special effect processing journey is completed when calling
After sequence, based on default mark sequence, second the 4th special efficacy of lookup identifies corresponding 4th special effect processing program, and finds
When the 4th special effect processing program, the 4th special effect processing program is called to handle target image, obtains the second image.
It is understood that, if terminal is based on default mark sequence, it is special to search at least two in embodiments herein
Processing routine is imitated, then terminal can first search spy sequentially most preceding in default mark sequence at least two special effect processings mark
Criterion knows corresponding special effect processing program and calls handle the first image immediately after finding, and then searches
The special efficacy of sequence second identifies corresponding special effect processing program in default mark sequence at least two special effect processings mark, together
Sample calls immediately, and the image obtained to last processing continues with, and so on, it to the last searches at least two special efficacys
The last special efficacy of sequence identifies corresponding special effect processing program in default mark sequence in reason mark, and calls last place
Obtained image procossing is managed, it is final to obtain the second image.
It should be noted that in embodiments herein, it is above-mentioned to only illustrate at least two special effect processing programs
Calling process when including two special effect processing programs, at least two special effect processing programs can also be including three, four, even
More special effect processing programs, method of calling with the above process be it is identical, it is numerous to list herein.
It is understood that terminal executes the storage order in library based on special efficacy, alternatively, base in embodiments herein
In default mark sequence, carries out at least two special efficacys and identify corresponding at least two special effect processings program, as long as being essentially all
As soon as finding the special effect processing program at least two special effect processing programs, call immediately, and then searches at least two spies
Other special effect processing programs in processing routine are imitated, i.e., is successively searched and is called, finally calling at least two special efficacys
After all special effect processing programs in processing routine, the image of acquisition, as the second image.
It is understood that being at least two special efficacys for target special effect processing program in embodiments herein
The case where managing program, i.e. target special efficacy include at least two special efficacys, therefore, in terminal invocation target special effect processing program, i.e., extremely
After few two special effect processing programs, the second image of acquisition has at least two special efficacys that target special efficacy includes.
Fig. 3 is a kind of illustrative special effect processing schematic diagram provided by the embodiments of the present application.As shown in figure 3, target special efficacy
It include: that HDR special efficacy and U.S. face special efficacy are preset correspondingly, target special efficacy mark includes: HDR special efficacy mark and U.S. face special efficacy mark
The sequence that HDR special efficacy identifies in mark sequence is identified prior to U.S. face special efficacy, and therefore, terminal executes in library in special efficacy and searches HDR
Special efficacy identifies corresponding HDR special effect processing program, after finding, HDR special effect processing program is called to handle the first image,
Target image is obtained, later, terminal executes in special efficacy and searches the corresponding U.S. face special effect processing program of U.S. face special efficacy mark in library, looks for
To later, calling U.S. face special effect processing program to handle target image, the second image is obtained, the second image has HDR spy
Effect and U.S. face special efficacy, wherein HDR special effect processing program is target special effect processing program with U.S. face special effect processing program.
The embodiment of the present application provides a kind of image processing method, and terminal obtains special efficacy and executes library;Wherein, special efficacy executes library
The corresponding special effect processing program of middle each special efficacy of storage and special efficacy mark, special effect processing program includes preset data structural elements
Element;Obtain the first image and the corresponding target special efficacy mark of target special efficacy;It is executed in library in special efficacy, searches target special efficacy mark
Know corresponding target special effect processing program;Invocation target special effect processing program, handles the first image, obtains the second figure
Picture, wherein the second image has target special efficacy.That is, in embodiments herein, since the special efficacy of management special efficacy is held
The corresponding special efficacy mark of each special efficacy and special effect processing program are stored in row library, also, each special effect processing program is equal
Including preset data structural element, therefore, terminal only needs to identify based on special efficacy, when can search and call different special effect processings
Corresponding image procossing is carried out, when needing to extend and safeguarding image processing function, it is only necessary to which extension and maintenance special efficacy execute library
, so that the difficulty of image processing function maintenance and expansion is reduced, additionally it is possible to quickly carry out a variety of special efficacys to image
Superposition processing.
Embodiment two
The embodiment of the present application provides a kind of terminal, and Fig. 4 is a kind of structural representation of terminal provided by the embodiments of the present application
Figure one.As shown in figure 4, the terminal includes:
First acquisition unit 401 executes library for obtaining special efficacy;Wherein, the special efficacy, which executes, stores each spy in library
Corresponding special effect processing program and special efficacy mark are imitated, the special effect processing program includes preset data structural element;
Second acquisition unit 402, for obtaining the first image and the corresponding target special efficacy mark of target special efficacy;
Searching unit 403 searches the target special efficacy and identifies corresponding target special efficacy for executing in library in the special efficacy
Processing routine;
Processing unit 404 handles the first image, obtains for calling the target special effect processing program
Second image, wherein second image has the target special efficacy.
Optionally, the target special efficacy includes at least two special efficacys, correspondingly, target special efficacy mark includes at least two
A special efficacy mark;
The searching unit 403 is specifically used for executing in library in the special efficacy, searches at least two special efficacys mark pair
At least two special effect processing programs answered;At least two special effect processings program is the target special effect processing program.
Optionally, the searching unit 403, specifically for executing the storage order in library based on the special efficacy, described in lookup
At least two special effect processing programs.
Optionally, at least two special efficacys mark includes: that the first special efficacy mark and the second special efficacy identify,
The processing unit 404, it is suitable specifically for working as the storage that the searching unit 403 executes library based on the special efficacy
Sequence, first when finding first special efficacy and identifying corresponding first special effect processing program, is called first special effect processing
Program handles the first image, obtains target image;After calling completion the first special effect processing program, institute
The storage order that searching unit executes library based on the special efficacy is stated, second finds the second special efficacy mark corresponding second
When special effect processing program, the second special effect processing program is called to handle the target image, obtains second figure
Picture.
Optionally, the searching unit 404 is specifically used for obtaining default mark sequence;Sequentially based on the default mark,
Search at least two special effect processings program.
Optionally, at least two special efficacys mark includes: third special efficacy mark and the 4th special efficacy mark, described default
In mark sequence, the sequence of the third special efficacy mark is identified prior to the 4th special efficacy,
The processing unit 404 is specifically used for being based on the default mark sequentially when the searching unit 403, first
When searching the third special efficacy and identify corresponding third special effect processing program, and finding the third special effect processing program, adjust
The first image is handled with the third special effect processing program, obtains target image;
After calling the completion third special effect processing program, the searching unit is based on the default mark sequence,
It searches the 4th special efficacy for second and identifies corresponding 4th special effect processing program, and find the 4th special effect processing program
When, it calls the 4th special effect processing program to handle the target image, obtains second image.
Fig. 5 is a kind of structural schematic diagram two of terminal provided by the embodiments of the present application.As shown in figure 5, the terminal includes:
Processor 501, memory 502 and communication bus 503;
The communication bus 503 is for realizing the communication connection between the processor 501 and the memory 502;
The processor 501 is for executing the image processing program stored in the memory 502, to realize above-mentioned image
Processing method.
The embodiment of the present application provides a kind of terminal, obtains special efficacy and executes library;Wherein, special efficacy executes in library and stores each
The corresponding special effect processing program of special efficacy and special efficacy mark, special effect processing program includes preset data structural element;Obtain the first figure
Picture and the corresponding target special efficacy mark of target special efficacy;It is executed in library in special efficacy, searches target special efficacy and identify corresponding target spy
Imitate processing routine;Invocation target special effect processing program, handles the first image, obtains the second image, wherein the second image
Has target special efficacy.That is, in the terminal that the application proposes, it is each due to being stored in the special efficacy execution library of management special efficacy
The corresponding special efficacy mark of kind special efficacy and special effect processing program, also, each special effect processing program includes preset data structure
Element, therefore, terminal only need to identify based on special efficacy, carry out at corresponding image when can search and call different special effect processings
Reason, when needing to extend and safeguarding image processing function, it is only necessary to which extension and maintenance special efficacy execute library, to reduce figure
As the difficulty of processing function maintenance and expansion, additionally it is possible to quickly carry out a variety of special efficacy superposition processings to image.
The embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with computer program, the program quilt
Processor is realized above-mentioned when executing.Computer readable storage medium can be volatile memory (volatile memory), example
Such as random access memory (Random-Access Memory, RAM);Or nonvolatile memory (non-volatile
Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk
(Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD);It is also possible to include above-mentioned memory
One of or any combination respective equipment, such as mobile phone, computer, tablet device, personal digital assistant.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the application
Formula.Moreover, the application, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The application is realization of the reference according to the method, equipment (system) and computer program product of the embodiment of the present application
Flow diagram and/or block diagram describe.It should be understood that flow diagram and/or box can be realized by computer program instructions
The combination of each flow and/or block in figure and the process in implementation process schematic diagram and/or block diagram and/or box.
These computer program instructions be can provide to general purpose computer, special purpose computer, Embedded Processor or other programmable datas
The processor of processing equipment is to generate a machine, so that passing through computer or the processor of other programmable data processing devices
The instruction of execution generate for realizing in one box of implementation process schematic diagram one process or multiple processes and/or block diagrams or
The device for the function of being specified in multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
The manufacture of device is enabled, which realizes in implementation process schematic diagram one process or multiple processes and/or block diagrams one
The function of being specified in a box or multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction that is executed on other programmable devices provide for realizing in one process of implementation process schematic diagram or multiple processes and/or
The step of function of being specified in one or more blocks of the block diagram.
The above, the only preferred embodiment of the application, are not intended to limit the protection scope of the application.
Claims (14)
1. a kind of image processing method is applied to terminal, which is characterized in that the described method includes:
It obtains special efficacy and executes library;Wherein, the special efficacy executes in library and stores the corresponding special effect processing program of each special efficacy and spy
Criterion is known, and the special effect processing program includes preset data structural element;
Obtain the first image and the corresponding target special efficacy mark of target special efficacy;
It is executed in library in the special efficacy, searches the target special efficacy and identify corresponding target special effect processing program;
The target special effect processing program is called, the first image is handled, obtains the second image, wherein described the
Two images have the target special efficacy.
2. the method according to claim 1, wherein the target special efficacy include at least two special efficacys, correspondingly,
The target special efficacy mark includes that at least two special efficacys identify;It is described to be executed in library in the special efficacy, search the target special efficacy
Identify corresponding target special effect processing program, comprising:
It is executed in library in the special efficacy, searches at least two special efficacy and identify corresponding at least two special effect processings program;Institute
Stating at least two special effect processing programs is the target special effect processing program.
3. according to the method described in claim 2, lookup is described at least it is characterized in that, described execute in library in the special efficacy
Two special efficacys identify corresponding at least two special effect processings program, comprising:
The storage order in library is executed based on the special efficacy, searches at least two special effect processings program.
4. according to the method described in claim 3, it is characterized in that, at least two special efficacy mark includes: the first special efficacy mark
Know and the second special efficacy mark, the calling target special effect processing program handle the first image, obtain second
Image, comprising:
When the storage order for executing library based on the special efficacy, first finds first special efficacy and identifies corresponding first special efficacy
When processing routine, the first special effect processing program is called to handle the first image, obtains target image;
After calling completion the first special effect processing program, the storage order in library is executed based on the special efficacy, second is looked into
When finding the corresponding second special effect processing program of the second special efficacy mark, call the second special effect processing program to the mesh
Logo image is handled, and second image is obtained.
5. according to the method described in claim 2, lookup is described at least it is characterized in that, described execute in library in the special efficacy
Two special efficacys identify corresponding at least two special effect processings program, comprising:
Obtain default mark sequence;
Based on the default mark sequence, at least two special effect processings program is searched.
6. according to the method described in claim 5, it is characterized in that, at least two special efficacy mark includes: third special efficacy mark
Know and the 4th special efficacy identifies, in the default mark sequence, the sequence of the third special efficacy mark is special prior to the described 4th
Criterion is known, described to call the target special effect processing program, handles the first image, obtains the second image, comprising:
It sequentially, searches the third special efficacy when based on the default mark for first and identifies corresponding third special effect processing program,
And when finding the third special effect processing program, call the third special effect processing program to the first image at
Reason obtains target image;
When call complete the third special effect processing program after, based on the default mark sequence, second is searched described the
Four special efficacys identify corresponding 4th special effect processing program, and when finding the 4th special effect processing program, call the described 4th
Special effect processing program handles the target image, obtains second image.
7. a kind of terminal, which is characterized in that the terminal includes:
First acquisition unit executes library for obtaining special efficacy;Wherein, the special efficacy executes that store each special efficacy in library corresponding
Special effect processing program and special efficacy mark, the special effect processing program includes preset data structural element;
Second acquisition unit, for obtaining the first image and the corresponding target special efficacy mark of target special efficacy;
Searching unit searches the target special efficacy and identifies corresponding target special effect processing journey for executing in library in the special efficacy
Sequence;
Processing unit handles the first image, obtains the second figure for calling the target special effect processing program
Picture, wherein second image has the target special efficacy.
8. terminal according to claim 7, which is characterized in that the target special efficacy includes at least two special efficacys, correspondingly,
The target special efficacy mark includes that at least two special efficacys identify;
The searching unit is specifically used for executing in library in the special efficacy, and it is corresponding extremely to search at least two special efficacys mark
Few two special effect processing programs;At least two special effect processings program is the target special effect processing program.
9. terminal according to claim 8, which is characterized in that
The searching unit is searched at least two special efficacy specifically for being executed the storage order in library based on the special efficacy
Manage program.
10. the terminal according to claim, which is characterized in that at least two special efficacys mark includes: the first special efficacy mark
Know and the second special efficacy identify,
The processing unit, specifically for when storage order of the searching unit based on special efficacy execution library, first is looked into
When finding first special efficacy and identifying corresponding first special effect processing program, call the first special effect processing program to described the
One image is handled, and target image is obtained;After calling completion the first special effect processing program, the searching unit base
The storage order in library is executed in the special efficacy, second finds second special efficacy and identify corresponding second special effect processing program
When, it calls the second special effect processing program to handle the target image, obtains second image.
11. terminal according to claim 8, which is characterized in that
The searching unit is specifically used for obtaining default mark sequence;Based on the default mark sequence, described at least two are searched
A special effect processing program.
12. terminal according to claim 11, which is characterized in that at least two special efficacys mark includes: third special efficacy
Mark and the 4th special efficacy mark, in the default mark sequence, the sequence of the third special efficacy mark is prior to the described 4th
Special efficacy mark,
The processing unit is specifically used for being based on the default mark sequence when the searching unit, and first is searched described the
Three special efficacys identify corresponding third special effect processing program, and when finding the third special effect processing program, call the third
Special effect processing program handles the first image, obtains target image;
After calling the completion third special effect processing program, the searching unit is based on the default mark sequentially, and second
It is a to search the 4th special efficacy and identify corresponding 4th special effect processing program, and when finding the 4th special effect processing program,
It calls the 4th special effect processing program to handle the target image, obtains second image.
13. a kind of terminal, which is characterized in that the terminal includes: processor, memory and communication bus;
The communication bus is for realizing the communication connection between the processor and the memory;
The processor is for executing the image processing program stored in the memory, to realize any one of claim 1-6
The method.
14. a kind of computer readable storage medium, is stored thereon with computer program, it is applied to terminal, which is characterized in that the meter
Calculation machine program realizes as the method according to claim 1 to 6 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811270837.2A CN109167936A (en) | 2018-10-29 | 2018-10-29 | A kind of image processing method, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811270837.2A CN109167936A (en) | 2018-10-29 | 2018-10-29 | A kind of image processing method, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109167936A true CN109167936A (en) | 2019-01-08 |
Family
ID=64876268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811270837.2A Pending CN109167936A (en) | 2018-10-29 | 2018-10-29 | A kind of image processing method, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109167936A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111626258A (en) * | 2020-06-03 | 2020-09-04 | 上海商汤智能科技有限公司 | Sign-in information display method and device, computer equipment and storage medium |
CN112767241A (en) * | 2021-01-29 | 2021-05-07 | 北京达佳互联信息技术有限公司 | Image processing method and device |
CN113240578A (en) * | 2021-05-13 | 2021-08-10 | 北京达佳互联信息技术有限公司 | Image special effect generation method and device, electronic equipment and storage medium |
CN113326709A (en) * | 2021-06-17 | 2021-08-31 | 北京市商汤科技开发有限公司 | Display method, device, equipment and computer readable storage medium |
CN113345110A (en) * | 2021-06-30 | 2021-09-03 | 北京市商汤科技开发有限公司 | Special effect display method and device, electronic equipment and storage medium |
WO2023273501A1 (en) * | 2021-06-30 | 2023-01-05 | 上海商汤智能科技有限公司 | Ar interaction method and apparatus, and electronic device, medium and program |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11328435A (en) * | 1998-05-13 | 1999-11-30 | Hitachi Ltd | Method for synthesizing image and medium for recording image synthetic data structure |
CN103544051A (en) * | 2012-07-17 | 2014-01-29 | 中兴通讯股份有限公司 | Operation method and device |
CN104703043A (en) * | 2015-03-26 | 2015-06-10 | 努比亚技术有限公司 | Video special effect adding method and device |
CN105261053A (en) * | 2014-06-19 | 2016-01-20 | 江苏睿泰数字产业园有限公司 | Image rendering method |
CN105491441A (en) * | 2015-11-26 | 2016-04-13 | 广州华多网络科技有限公司 | Special effect management control method and device |
CN107402985A (en) * | 2017-07-14 | 2017-11-28 | 广州爱拍网络科技有限公司 | Special video effect output control method, device and computer-readable recording medium |
CN107993191A (en) * | 2017-11-30 | 2018-05-04 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN108388434A (en) * | 2018-02-08 | 2018-08-10 | 北京市商汤科技开发有限公司 | The generation of special efficacy program file packet and special efficacy generation method and device, electronic equipment |
CN108711180A (en) * | 2018-05-02 | 2018-10-26 | 北京市商汤科技开发有限公司 | Makeups/generation and makeups of special efficacy of changing face program file packet/special efficacy of changing face generation method and device |
-
2018
- 2018-10-29 CN CN201811270837.2A patent/CN109167936A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11328435A (en) * | 1998-05-13 | 1999-11-30 | Hitachi Ltd | Method for synthesizing image and medium for recording image synthetic data structure |
CN103544051A (en) * | 2012-07-17 | 2014-01-29 | 中兴通讯股份有限公司 | Operation method and device |
CN105261053A (en) * | 2014-06-19 | 2016-01-20 | 江苏睿泰数字产业园有限公司 | Image rendering method |
CN104703043A (en) * | 2015-03-26 | 2015-06-10 | 努比亚技术有限公司 | Video special effect adding method and device |
CN105491441A (en) * | 2015-11-26 | 2016-04-13 | 广州华多网络科技有限公司 | Special effect management control method and device |
CN107402985A (en) * | 2017-07-14 | 2017-11-28 | 广州爱拍网络科技有限公司 | Special video effect output control method, device and computer-readable recording medium |
CN107993191A (en) * | 2017-11-30 | 2018-05-04 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN108388434A (en) * | 2018-02-08 | 2018-08-10 | 北京市商汤科技开发有限公司 | The generation of special efficacy program file packet and special efficacy generation method and device, electronic equipment |
CN108711180A (en) * | 2018-05-02 | 2018-10-26 | 北京市商汤科技开发有限公司 | Makeups/generation and makeups of special efficacy of changing face program file packet/special efficacy of changing face generation method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111626258A (en) * | 2020-06-03 | 2020-09-04 | 上海商汤智能科技有限公司 | Sign-in information display method and device, computer equipment and storage medium |
CN111626258B (en) * | 2020-06-03 | 2024-04-16 | 上海商汤智能科技有限公司 | Sign-in information display method and device, computer equipment and storage medium |
CN112767241A (en) * | 2021-01-29 | 2021-05-07 | 北京达佳互联信息技术有限公司 | Image processing method and device |
CN113240578A (en) * | 2021-05-13 | 2021-08-10 | 北京达佳互联信息技术有限公司 | Image special effect generation method and device, electronic equipment and storage medium |
CN113326709A (en) * | 2021-06-17 | 2021-08-31 | 北京市商汤科技开发有限公司 | Display method, device, equipment and computer readable storage medium |
CN113345110A (en) * | 2021-06-30 | 2021-09-03 | 北京市商汤科技开发有限公司 | Special effect display method and device, electronic equipment and storage medium |
WO2023273501A1 (en) * | 2021-06-30 | 2023-01-05 | 上海商汤智能科技有限公司 | Ar interaction method and apparatus, and electronic device, medium and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109167936A (en) | A kind of image processing method, terminal and storage medium | |
CN109697133A (en) | ID generation method, apparatus and system | |
CN107196900A (en) | A kind of method and device for verification of knowing together | |
CN105701762B (en) | Picture processing method and electronic equipment | |
CN110784659B (en) | Exposure control method and device and storage medium | |
CN110458940A (en) | The processing method and processing unit of motion capture | |
CN105678710A (en) | Color correction and restoration system and color correction and restoration method | |
CN108495043A (en) | Image processing method and relevant apparatus | |
CN111158800B (en) | Method and device for constructing task DAG based on mapping relation | |
CN108156384A (en) | Image processing method, device, electronic equipment and medium | |
CN107392316B (en) | Network training method and device, computing equipment and computer storage medium | |
CN104754224A (en) | Information processing method and electronic equipment | |
CN109859314B (en) | Three-dimensional reconstruction method, three-dimensional reconstruction device, electronic equipment and storage medium | |
CN109377383A (en) | Product data synchronous method, device, computer equipment and storage medium | |
CN106648839A (en) | Method and device for processing data | |
CN105183459B (en) | A kind of data modification method and device | |
CN110310359A (en) | The transform method and device of object state in a kind of game | |
CN107193619B (en) | Method and device for automatically updating compiled version | |
CN106294530A (en) | The method and system of rule match | |
CN105893578A (en) | Method and device for selecting photos | |
CN107239298A (en) | Application program adjustment method and device | |
CN104092946B (en) | Image-pickup method and image collecting device | |
CN110163194A (en) | A kind of image processing method, device and storage medium | |
CN108769667A (en) | Camera module, electronic equipment and burning information call method | |
CN105824608B (en) | Processing, plug-in unit generation method and the device of process object |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190108 |