CN107193913A - The searching method and system of cartoon material - Google Patents
The searching method and system of cartoon material Download PDFInfo
- Publication number
- CN107193913A CN107193913A CN201710338302.3A CN201710338302A CN107193913A CN 107193913 A CN107193913 A CN 107193913A CN 201710338302 A CN201710338302 A CN 201710338302A CN 107193913 A CN107193913 A CN 107193913A
- Authority
- CN
- China
- Prior art keywords
- cartoon material
- cartoon
- search
- search keyword
- edited
- 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
- 239000000463 material Substances 0.000 title claims abstract description 324
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000013507 mapping Methods 0.000 claims description 14
- 238000007619 statistical method Methods 0.000 claims description 6
- 230000009466 transformation Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 9
- 238000006073 displacement reaction Methods 0.000 description 8
- 230000018109 developmental process Effects 0.000 description 6
- 241000234295 Musa Species 0.000 description 5
- 235000018290 Musa x paradisiaca Nutrition 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 241000406668 Loxodonta cyclotis Species 0.000 description 3
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 238000005538 encapsulation Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 239000007787 solid Substances 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000010422 painting Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 241000092161 Pithys Species 0.000 description 1
- 238000012300 Sequence Analysis Methods 0.000 description 1
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/93—Document management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/80—2D [Two Dimensional] animation, e.g. using sprites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a kind of searching method of cartoon material and system, method is:The searching request of user's input is obtained, searching request includes the searching request and cartoon material document search request of single cartoon material;According to searching request, corresponding search keyword is obtained;According to search keyword, corresponding cartoon material is searched for by the index list in the cartoon material plug-in unit that pre-establishes, cartoon material to be edited is obtained;Cartoon material to be edited is loaded into cartoon making picture, the search to cartoon material is realized.The cartoon material plug-in unit that the present invention is set up, the plug-in unit being capable of entirely autonomous independent operating, stable and safe in operation effective percentage.It is easy to operate, improve the operating efficiency and user experience of user.
Description
Technical field
The present invention relates to the searching method and system in computer information technology field, more particularly to cartoon material.
Background technology
Usual two-dimension cartoon making personnel use flash softwares, now only several services and flash animation software
Plug-in unit is not animated the real practical application of producer, and reason is that flash versions are more, and plug-in unit installs complicated and pole not
It is stable.Also no a plug-in unit really solves flash softwares and makes a plug-in unit in timesaving of saving trouble for cartoon, also simultaneously
Not from basic for animation personnel drawing material saving time and efforts.
Therefore, defect of the prior art is that existing plug-in unit and the flash software compatibilitys are bad, installs complicated, stable
Property it is poor, cartoon making is implemented in combination with by plug-in unit and flash softwares, wasted time and energy, user experience is poor.
The content of the invention
For above-mentioned technical problem, the present invention provides the searching method and system of a kind of cartoon material, sets up cartoon material
Plug-in unit, the plug-in unit being capable of entirely autonomous independent operating, stable and safe in operation effective percentage.It is easy to operate, improve the work of user
Efficiency and user experience.
In order to solve the above technical problems, the technical scheme that the present invention is provided is:
In a first aspect, the present invention provides a kind of searching method of cartoon material, including:
Step S1, obtains the searching request of user's input, and the searching request includes the searching request of single cartoon material
With cartoon material document search request;
Step S2, according to the searching request, obtains corresponding search keyword;
Step S3, according to the search keyword, is searched for by the index list in the cartoon material plug-in unit that pre-establishes
Corresponding cartoon material, obtains cartoon material to be edited;
Step S4, the cartoon material to be edited is loaded into cartoon making picture, realizes the search to cartoon material.
The searching method for the cartoon material that the present invention is provided, its technical scheme is:Obtain the searching request of user's input, institute
State searching request and cartoon material document search request of the searching request including single cartoon material;According to the searching request,
Obtain corresponding search keyword;According to the search keyword, pass through the index column in the cartoon material plug-in unit that pre-establishes
Table searches for corresponding cartoon material, obtains cartoon material to be edited;The cartoon material to be edited is loaded into cartoon making to draw
In face, the search to cartoon material is realized.
The searching method of the cartoon material of the present invention, sets up cartoon material plug-in unit, and the plug-in unit being capable of entirely autonomous independent fortune
OK, stable and safe in operation is efficient.Allow animator to utilize the function of search of the plug-in unit, input " keyword ", quickly look for
Prescribed a time limit to it the cartoon materials of needs.Mouse is directly dragged among the flash softwares used and is made and processed.Behaviour
Facilitate, improve the operating efficiency and user experience of user.
Further, the index list is set up by inverted index method, is specially:
A large amount of cartoon materials are obtained, a large amount of cartoon materials include multiple documents and multiple words;
Statistical analysis is carried out to the multiple document and the multiple word, the multiple word and the multiple text is obtained
Relation between shelves, forms mapping relations;
According to the numbering of the multiple document, with reference to the mapping relations, index list is generated.
Further, the step S3, be specially:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search is found crucial
The corresponding cartoon material of word, wherein, the type of cartoon material cartoon material type one corresponding with the search keyword
Cause;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is changed
Into the second dimension vector;
Calculate the angular deviation between the vectorial vector with second dimension of first dimension;
The angular deviation is compared with condition set in advance, condition is met, then judges to search animation element to be edited
Material, otherwise, it is determined that not searching cartoon material to be edited.
Further, the step S3, be specially:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search is found crucial
The corresponding cartoon material of word, wherein, the type of cartoon material cartoon material type one corresponding with the search keyword
Cause;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is changed
Into the second dimension vector;
Calculate the included angle cosine value between the vectorial vector with second dimension of first dimension;
According to the included angle cosine value, judge whether to search cartoon material to be edited:
When the included angle cosine value is not equal to zero, judgement searches the cartoon material to be edited;
When the included angle cosine value is equal to zero, judgement does not search the cartoon material to be edited.
Further, the step S3, be specially:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search is found crucial
The corresponding cartoon material of word, wherein, the search keyword is word, and the corresponding cartoon material of the search keyword is text
Shelves;
The search keyword is converted into the first dimension vector;
Whether according to the vector value of first dimension vector, it is to search to judge the corresponding cartoon material of the search keyword
The cartoon material to be edited that rope is arrived:
When the vector value of first dimension vector is not zero, judge that the corresponding cartoon material of the search keyword is to search
Rope is to the cartoon material to be edited;
When the vector value of first dimension vector is not zero, judge that the corresponding cartoon material of the search keyword is not
Search the cartoon material to be edited.
Second aspect, the invention provides a kind of search system of cartoon material, including:
Searching request acquisition module, the searching request for obtaining user's input, the searching request includes single animation
The searching request and cartoon material document search request of material;
Search keyword acquisition module, for according to the searching request, obtaining corresponding search keyword;
Cartoon material generation module to be edited, for according to the search keyword, passing through the cartoon material pre-established
Index list in plug-in unit searches for corresponding cartoon material, obtains cartoon material to be edited;
Cartoon material search completes module, for the cartoon material to be edited to be loaded into cartoon making picture, real
Now to the search of cartoon material.
The search system for the cartoon material that the present invention is provided, its technical scheme is:By searching request acquisition module, obtain
The searching request of user's input, the searching request and cartoon material document searching that the searching request includes single cartoon material please
Ask;By search keyword acquisition module, according to the searching request, corresponding search keyword is obtained;By to be edited dynamic
Picture element material generation module, according to the search keyword, is searched for by the index list in the cartoon material plug-in unit that pre-establishes
Corresponding cartoon material, obtains cartoon material to be edited;By cartoon material search complete module, for will it is described it is to be edited move
Picture element material is loaded into cartoon making picture, realizes the search to cartoon material.
The present invention cartoon material search system, set up cartoon material plug-in unit, the plug-in unit can entirely autonomous independent operating,
Stable and safe in operation is efficient.Allow animator to utilize the function of search of the plug-in unit, input " keyword ", quickly find it
The cartoon material needed in limited time.Mouse is directly dragged among the flash softwares used and is made and processed.Operation side
Just, the operating efficiency and user experience of user is improved.
Further, in addition to index list sets up module, for setting up the index list by inverted index method:
A large amount of cartoon materials are obtained, a large amount of cartoon materials include multiple documents and multiple words;
Statistical analysis is carried out to the multiple document and the multiple word, the multiple word and the multiple text is obtained
Relation between shelves, forms mapping relations;
According to the numbering of the multiple document, with reference to the mapping relations, index list is generated.
Further, the cartoon material generation module to be edited, specifically for:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search is found crucial
The corresponding cartoon material of word, the type of cartoon material cartoon material type corresponding with the search keyword is consistent;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is changed
Into the second dimension vector;
Calculate the angular deviation between the vectorial vector with second dimension of first dimension;
The angular deviation is compared with condition set in advance, condition is met, then judges to search animation element to be edited
Material, otherwise, it is determined that not searching cartoon material to be edited.
Further, the cartoon material generation module to be edited, specifically for:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search is found crucial
The corresponding cartoon material of word, the type of cartoon material cartoon material type corresponding with the search keyword is consistent;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is changed
Into the second dimension vector;
Calculate the included angle cosine value between the vectorial vector with second dimension of first dimension;
According to the included angle cosine value, judge whether to search cartoon material to be edited:
When the included angle cosine value is not equal to zero, judgement searches the cartoon material to be edited;
When the included angle cosine value is equal to zero, judgement does not search the cartoon material to be edited.
Further, the cartoon material generation module to be edited, specifically for:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search is found crucial
The corresponding cartoon material of word, wherein, the search keyword is word, and the corresponding cartoon material of the search keyword is text
Shelves;
The search keyword is converted into the first dimension vector;
Whether according to the vector value of first dimension vector, it is to search to judge the corresponding cartoon material of the search keyword
The cartoon material to be edited that rope is arrived:
When the vector value of first dimension vector is not zero, judge that the corresponding cartoon material of the search keyword is to search
Rope is to the cartoon material to be edited;
When the vector value of first dimension vector is not zero, judge that the corresponding cartoon material of the search keyword is not
Search the cartoon material to be edited.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical scheme of the prior art
The accompanying drawing used required in embodiment or description of the prior art is briefly described.
Fig. 1 shows a kind of flow chart of the searching method for cartoon material that the embodiment of the present invention is provided;
Fig. 2 shows a kind of schematic diagram of the search system for cartoon material that the embodiment of the present invention is provided.
Embodiment
The embodiment of technical solution of the present invention is described in detail below in conjunction with accompanying drawing.Following examples are only used for
Clearly illustrate technical scheme, therefore be intended only as example, and the protection of the present invention can not be limited with this
Scope.
Embodiment one
Fig. 1 shows a kind of flow chart of the searching method for cartoon material that the embodiment of the present invention is provided;Such as Fig. 1 institutes
Show, a kind of searching method for cartoon material that embodiment one is provided, including:
Step S1, obtains the searching request of user's input, and searching request includes the searching request of single cartoon material and moved
Picture element material document search request;
Step S2, according to searching request, obtains corresponding search keyword;
Step S3, according to search keyword, correspondence is searched for by the index list in the cartoon material plug-in unit that pre-establishes
Cartoon material, obtain cartoon material to be edited;
Step S4, cartoon material to be edited is loaded into cartoon making picture, realizes the search to cartoon material.
The searching method for the cartoon material that the present invention is provided, its technical scheme is:The searching request of user's input is obtained, is searched
Rope request includes the searching request and cartoon material document search request of single cartoon material;According to searching request, corresponded to
Search keyword;According to search keyword, search for corresponding by the index list in the cartoon material plug-in unit that pre-establishes
Cartoon material, obtains cartoon material to be edited;Cartoon material to be edited is loaded into cartoon making picture, realized to animation element
The search of material.
The searching method of the cartoon material of the present invention, sets up cartoon material plug-in unit, and the plug-in unit being capable of entirely autonomous independent fortune
OK, stable and safe in operation is efficient.Immediately search input Chinese character, phonetic, English, oneself desired file can be found at once
Material, then using the simple motion and flash perfect adaptations and convenient use of mouse drag, because the software departs from flash
Software and can independent operating, so flash softwares for cartoon make aspect, fundamentally solve animator
The operating efficiency and time cost of member, the process for greatly reducing repetition drawing allows cartoon making personnel's energy to be transferred to again
Creation, the animation so produced not only improving productivity 50%, and make animation fresher, exquisite, careful, complete.
It is exemplified below:
Each flash animation material sets up multiple associated, long-tail keywords, such as:" elephant " and flash materials text
Part, it is desirable to search for and find " it ", it is necessary to design several keywords.For example:Elephant, as, xiang, daxiang, elephant;
After cartoon material plug-in component operation in the present invention, the Chinese character of search input immediately, phonetic, English, it can look at once
To the cartoon material that oneself is wanted, present before eyes.
Searching out the result come is:The dynamic thumbnail of cartoon material file+swf forms;
Directly the file of fla forms can be dragged into each version flash softwares and used, because its file material
Flash minimum version forms are converted to, compatibility is good.
Preferably, the cartoon material file in plug-in unit is set to a reading mode.It can only be added, deleted by backstage password
Remove, change, alternate file.Ensure the stability and security of cartoon material file.
Preferably, cartoon material file can voluntarily upgrade in plug-in unit, carry out every half a year arranging to collect drawing material, meet dynamic
Needed for picture producer.
The cartoon material plug-in unit of the present invention is developed by vs2008+MFC.It is divided into data mart modeling software and search software two
Point.
Wherein, Visual C++ include mfc appwizard, the application program available for compatible MFC.In ATL programs
In can also add manually MFC support.There are various options in guide with the function for the program for customizing generation, such as interface wind
Lattice, languages, database development are supported, print and support, automate support, ActiveX supports, network support, the side based on HTML
Help document to support etc..
In terms of COM exploitations, for ATL, MFC component is than larger, and code is not short and pithy enough, but supports
Function also compare it is many, for example have the encapsulation class to ActiveX Document.
In terms of interface development, MFC provides the encapsulation to message loop, and opening for Virtual Function is avoided using message mapping
Pin.MFC also provides the encapsulation class of conventional Windows common controls.
The interface of MFC Extension DLLs allows MFC programs to directly invoke the MFC classes in MFC Extension DLLs.MFC is also supported
Used in standard DLL.
MFC major advantage is that Windows API can be called with Object--oriented method, and application development
It is convenient.MFC automates the function of being commonly used in many application developments, and there is provided document frame view structure and work
It is easy to customized application framework as dynamic document.Meanwhile, it is also built-in much to MFC's inside Visual C++
Such as class wizard is such to be supported, to reduce the time of software development, to generate from hello world so using class wizard
Simple program to active document server as complicated process.MFC message map mechanism it also avoid performance compared with
Low huge virtual table.
Perform the formula of full-text search task, commonly referred to as Search engine, the word that it arbitrarily inputs user, it is intended to
From database, the content met is found.Functionally, there is text retrieval system core foundation index, processing inquiry to return and tie
Fruit collection, increase index, optimum indexing structure etc. function.
Search engine is efficient in the design of search program, as far as possible by macrooperation amount when being operated in index and setting up
Complete, computing pressure during retrieval is born.
Search engine in the present invention is set up using inverted index method, and index list is set up by inverted index method,
Specially:
A large amount of cartoon materials are obtained, a large amount of cartoon materials include multiple documents and multiple words;
Statistical analysis is carried out to multiple documents and multiple words, the relation between multiple words and multiple documents is obtained, is formed
Mapping relations;
According to the numbering of multiple documents, with reference to mapping relations, index list is generated.
Wherein, mapping relations include position and occurrence number of each word in correspondence document.
Inverted index (Inverted index), also commonly known as reverse indexing, archives or reverse archives are inserted, be a kind of
Indexing means, are used to be stored in reflecting for storage location of some word in a document or one group of document under full-text search
Penetrate.
There are following two different reverse indexing forms:
The list of the document of horizontal reverse indexing (or reversely file index) comprising each reference words of one record.
The horizontal reverse indexing (or being completely reversed index) of one word but comprising each word in a document
Position.
The form of the latter is provided more compatible (such as phrase searches), but needs more times and space
Create.
By taking English as an example, here is text to be indexed:
T0=" it is what it is "
T1=" what is it "
T2=" it is a banana "
Following inverted file is can obtain by the above method to index:
"a":{2}
"banana":{2}
"is":{0,1,2}
"it":{0,1,2}
"what":{0,1}
The condition " what " of retrieval, " is " and " it " will this corresponding set:
{ 0,1 } ∩ { 0,1,2 } ∩ { 0,1,2 }={ 0,1 }
To identical word, obtain below these be completely reversed index, have number of documents and the word result of current queries
The paired data of composition.Equally, number of documents and the word result of current queries are all started from scratch.So, " banana ":
{ (2,3) } are that is " banana " (T in the 3rd document2), and be the 4th word (in the position of the 3rd document
3) location is.
"a":{(2,2)}
"banana":{(2,3)}
"is":{(0,1),(0,4),(1,1),(2,1)}
"it":{(0,0),(0,3),(1,2),(2,0)}
"what":{(0,2),(1,0)}
If execution phrase searches for " what is it ", document where the respective result of whole words of this phrase is obtained
For document 0 and document 1.But the continuous condition of this phrase retrieval is only obtained in document 1.
Vector space model (or phrase vector model) is one and is used for table as the identifier (such as indexing) of vector
Show the algebraic model of text.It is applied to information filtering, information retrieval, index and correlation rule.Used in the present invention
Vector space model carries out the search of cartoon material.
Specially:
According to search keyword, by the index list in cartoon material plug-in unit, the corresponding animation of search keyword is found
Material, wherein, the type cartoon material type corresponding with search keyword of cartoon material is consistent;
Search keyword is converted into the first dimension vector, the corresponding cartoon material of search keyword is converted into the second dimension
Degree vector;
Calculate the angular deviation between the first dimension vector and the second dimension vector;
Angular deviation is compared with condition set in advance, condition is met, then judges to search cartoon material to be edited, it is no
Then, judge not searching cartoon material to be edited.
As the preferred embodiments of the present invention, step S3 is specially:
According to search keyword, by the index list in cartoon material plug-in unit, the corresponding animation of search keyword is found
Material, wherein, the type cartoon material type corresponding with search keyword of cartoon material is consistent;
Search keyword is converted into the first dimension vector, the corresponding cartoon material of search keyword is converted into the second dimension
Degree vector;
Calculate the included angle cosine value between the first dimension vector and the second dimension vector;
According to included angle cosine value, judge whether to search cartoon material to be edited:
When included angle cosine value is not equal to zero, judgement searches cartoon material to be edited;
When included angle cosine value is equal to zero, judgement does not search cartoon material to be edited.
The cosine value of angle is simpler in itself than directly calculating angle between calculating vector.
Wherein, the cosine value calculation formula of angle is between vector:
Wherein d2Q is the dot product of cartoon material document vector sum search keyword vector.||d2| | it is vectorial d2 mould,
And | | q | | it is that vectorial q mould vector field homoemorphisms are calculated by following formula:
By institute's directed quantity that this model considers all is strict non-negative, if its cosine value is zero, then it represents that search
Rope keyword and cartoon material document vector are orthogonal, that is, are not met (in other words, as the search keyword is in animation element
Do not found in material document).It is exactly that the search keyword is found in cartoon material document if otherwise its cosine value is more than zero
.
Relative to boolean's mathematical modeling of standard, vector space model has the following advantages that:
1st, the naive model based on linear algebra;
2nd, the weight of phrase is not binary;
3rd, allow to calculate the continuous similarity degree between document and index;
4th, allow it according to possible correlation to carry out file ordering;
5th, local matching is allowed.
Therefore, the search of cartoon material is carried out based on vector space model, is more easy to be realization and maintenance.
Preferably, the search of cartoon material can also be realized by following method:
According to search keyword, by the index list in cartoon material plug-in unit, the corresponding animation of search keyword is found
Material, wherein, search keyword is word, and the corresponding cartoon material of search keyword is document;
Search keyword is converted into the first dimension vector;
Whether according to the vector value of the first dimension vector, it is treating of searching to judge the corresponding cartoon material of search keyword
Edit cartoon material:
When the vector value of the first dimension vector is not zero, judge that the corresponding cartoon material of search keyword is to search to wait to compile
Collect cartoon material;
When the vector value of the first dimension vector is not zero, judge that the corresponding cartoon material of search keyword is not to search to treat
Edit cartoon material.
Cartoon material document in plug-in unit is packaged into a dat file bag.Index list should meet:A.fla, A.swf,
A.txt, B.fla, B.swf, B.txt ....Correspondence keyword is deposited in txt, swf and thumbnail is browsed, fla is flash texts
Part.
User is imported after the dat packets in plug-in unit, and input keyword can be carried out retrieval, when satisfactory record
During more than 10, system can Pagination Display data.When user does not input keyword, system performs " browsing " behaviour with regard to default user
Make, it will all record Pagination Displays are come out.User double-clicks or pulled thumbnail, it is possible to open file material.
Second aspect, the invention provides a kind of search system 10 of cartoon material, including:
Searching request acquisition module 101, the searching request for obtaining user's input, searching request includes single animation element
The searching request and cartoon material document search request of material;
Search keyword acquisition module 102, for according to searching request, obtaining corresponding search keyword;
Cartoon material generation module 103 to be edited, for according to search keyword, being inserted by the cartoon material pre-established
Index list in part searches for corresponding cartoon material, obtains cartoon material to be edited;
Cartoon material search completes module 104, for cartoon material to be edited to be loaded into cartoon making picture, realizes
Search to cartoon material.
The search system 10 for the cartoon material that the present invention is provided, its technical scheme is:Pass through searching request acquisition module
101, the searching request of user's input is obtained, the searching request and cartoon material document that searching request includes single cartoon material are searched
Rope is asked;By search keyword acquisition module 102, according to searching request, corresponding search keyword is obtained;By to be edited
Cartoon material generation module 103, according to search keyword, is searched for by the index list in the cartoon material plug-in unit that pre-establishes
Corresponding cartoon material, obtains cartoon material to be edited;Module 104 is completed by cartoon material search, for that to be edited will move
Picture element material is loaded into cartoon making picture, realizes the search to cartoon material.
The cartoon material search system 10 of the present invention, sets up cartoon material plug-in unit, and the plug-in unit being capable of entirely autonomous independent fortune
OK, stable and safe in operation is efficient.The Chinese character of search input in time, phonetic, English, oneself desired file can be found at once
Material, then using the simple motion and flash perfect adaptations and convenient use of mouse drag, because the software departs from flash
Software and can independent operating, so flash softwares for cartoon make aspect, fundamentally solve animator
The operating efficiency and time cost of member, the process for greatly reducing repetition drawing allows cartoon making personnel's energy to be transferred to again
Creation, the animation so produced not only improving productivity 50%, and make animation fresher, exquisite, careful, complete.
Preferably, in addition to index list sets up module, for setting up index list by inverted index method:
A large amount of cartoon materials are obtained, a large amount of cartoon materials include multiple documents and multiple words;
Statistical analysis is carried out to multiple documents and multiple words, the relation between multiple words and multiple documents is obtained, is formed
Mapping relations;
According to the numbering of multiple documents, with reference to mapping relations, index list is generated.
Preferably, cartoon material generation module 103 to be edited, specifically for:
According to search keyword, by the index list in cartoon material plug-in unit, the corresponding animation of search keyword is found
Material, the type cartoon material type corresponding with search keyword of cartoon material is consistent;
Search keyword is converted into the first dimension vector, the corresponding cartoon material of search keyword is converted into the second dimension
Degree vector;
Calculate the angular deviation between the first dimension vector and the second dimension vector;
Angular deviation is compared with condition set in advance, condition is met, then judges to search cartoon material to be edited, it is no
Then, judge not searching cartoon material to be edited.
As the preferred embodiments of the present invention, cartoon material generation module 103 to be edited, specifically for:
According to search keyword, by the index list in cartoon material plug-in unit, the corresponding animation of search keyword is found
Material, the type cartoon material type corresponding with search keyword of cartoon material is consistent;
Search keyword is converted into the first dimension vector, the corresponding cartoon material of search keyword is converted into the second dimension
Degree vector;
Calculate the included angle cosine value between the first dimension vector and the second dimension vector;
According to included angle cosine value, judge whether to search cartoon material to be edited:
When included angle cosine value is not equal to zero, judgement searches cartoon material to be edited;
When included angle cosine value is equal to zero, judgement does not search cartoon material to be edited.
As the preferred embodiments of the present invention, cartoon material generation module 103 to be edited, specifically for:
According to search keyword, by the index list in cartoon material plug-in unit, the corresponding animation of search keyword is found
Material, wherein, search keyword is word, and the corresponding cartoon material of search keyword is document;
Search keyword is converted into the first dimension vector;
Whether according to the vector value of the first dimension vector, it is treating of searching to judge the corresponding cartoon material of search keyword
Edit cartoon material:
When the vector value of the first dimension vector is not zero, judge that the corresponding cartoon material of search keyword is to search to wait to compile
Collect cartoon material;
When the vector value of the first dimension vector is not zero, judge that the corresponding cartoon material of search keyword is not to search to treat
Edit cartoon material.
Embodiment two
Based on the cartoon material searching method and system in embodiment one, it is contemplated that in actual application scenarios, animation
When producer carries out cartoon making, the cartoon material of flash forms is not only needed to, may be according to the making need of actual animation
The cartoon material, it is necessary to different-format is sought, if the cartoon material file of only a kind of form, can make user experience low, shadow
Ring Consumer's Experience of the user to cartoon material plug-in unit.Based on this, the present embodiment provides a kind of conversion method of animated format, specifically
Scheme is:
Any flash animation to be converted is determined, and obtains the dynamic data of flash animation to be converted, wherein, dynamic
Data include the coordinate information of predeterminated position in each animation frame in flash animation to be converted;
Determine target format transformation;
By the routine interface of target format transformation, each moved in the flash animation to be converted that dynamic data is included
The coordinate information of predeterminated position on frame is drawn, is added in the default template of target format transformation, obtains the mesh of target format transformation
Style formula animation.
Wherein, include that the dynamic data of the every terms of information of the flash animation can be represented in each flash animation, such as
The coordinate information of object in each animation frame.Specifically, according to the dynamic data of each flash animation, system can redraw this
Animation.It can include presetting position in each animation frame of the flash animation in practical application, in the dynamic data of flash animation
The coordinate information put, is such as defined as predeterminated position, the dynamic data of acquisition by some position of some personage in the flash animation
In can include the coordinate information of the predeterminated position.In addition, the timestamp that can also include the flash animation in dynamic data is believed
There is each frame information of element of dynamic effect etc. on breath, the flash animation.
Wherein it is determined that target format transformation, including:
Predefine the running environment of object format animation;
According to running environment, the target format transformation of running environment is determined for compliance with.
Wherein it is determined that target format transformation is exactly the animated format that flash animation to be converted will convert into.
A kind of mode, can be possible to run on all animated formats on senior browser and be defined as target conversion lattice
Formula.That is, the flash animation to be converted to be respectively converted into the animation of the various forms of determination.Follow-up system can be with
According to demand, the animation of above-mentioned different-format is called respectively.
Another way, user can provide a kind of running environment, such as run on version of the IE browser below 9.0, then
System can be according to the running environment of predetermined object format animation, and selection meets the target format transformation of running environment.
Running environment such as version of the IE browser below 9.0 can support js animations, canvas animations, but css3 can not be supported to move
Draw.
Preferably, in addition to:
Calculate the data volume of dynamic data;
According to data volume, in the target format transformation of running environment is met, the target that selection meets data volume requirement turns
Change form.
Because the data volume of the dynamic data in flash animation also contributes to the determination of target format transformation, therefore can base
Target format transformation is determined in the data volume of dynamic data.
For example, how to determine that target turns according to the data volume of dynamic data and the running environment of object format animation
Form is changed, it is as follows:
The 1st, if flash animation is included less than 20 DOM daughter element original papers, and need to run on senior browser or
On person's mobile device, then target format transformation can be defined as to css3 animated formats;
If the 2, object format animation needs to run on the senior browser at pc ends, and requires the simultaneous of object format animation
Capacitive is high, then target format transformation can be defined as to js animated formats;
If the 3, object format animation needs to run on the senior browser at pc ends, and requires the simultaneous of object format animation
Capacitive is low, then target format transformation can be defined as to canvas animations;
If the 4, flash animation is included more than 20 DOM daughter element original papers, and run on mobile device, then can be with
Target format transformation is defined as canvas animated formats.
Preferably, in addition to:
The logical control interface of invocation target form animation, sets the control logic of object format animation.
After flash animation is converted into object format animation, calling logic control interface, and be the object format animation
Control logic is set, to realize the control function to object format animation, such as suspends, play, memory consumption reclaims function.
It should be noted that the senior browser in the embodiment of the present invention is supports Android1.6 browser, generally
Third party's browser on the market is senior browser, such as QQ browsers, sogou browser.In addition, mobile terminal, such as intelligence
Energy mobile phone, tablet personal computer etc., the browser of installation is senior browser.
The above method is by the way that flash animation to be converted to the target lattice that can be run on senior browser and mobile terminal
Formula animation, the development efficiency of senior browser and mobile terminal form animation can be run on by improving, and improve Consumer's Experience.
Embodiment three
Based on the cartoon material searching method and system in embodiment one, it is contemplated that in actual application scenarios, animation
, it is necessary to which the cartoon material to flash forms is rendered during producer's progress cartoon making, but common rendering intent is rendered
Process is slow, it is impossible to meet the real-time demand of cartoon making personnel, and the cartoon material plug-in unit in by embodiment one is quickly searched
When rope is to the cartoon material needed, during progress animation is rendered, because rendering speed is slow, user is directly affected to animation
The Consumer's Experience of material plug-in unit.Based on this, the present embodiment provides a kind of fast and accurately animation rendering intent, and concrete scheme is:
Analyze the resource in the swf files of input, extraction document;
Analyzed pattern resource, obtains classification, deformation data, colour switching, color displacement and the position of each figure;
The figure of identical category is merged, and records deformation data, colour switching, color displacement and the position of each artwork shape
Put;
Figure is rendered in designated frame according to the deformation data of artwork shape, colour switching, color displacement and position.
Wherein, analyzed pattern resource, obtains classification, deformation data, colour switching, color displacement and the position of each figure
Put, including:
Recursive analysis constitutes the spirte of each figure;
Obtain classification, deformation data, colour switching, color displacement and the relative position of each figure and its spirte.
Specifically, in each entity procedure is analyzed, can be performed according to specific entity type one of following operation or
It is multiple:
1. record entity type.
2. the sub- content of sequence analysis entity.
3. recursive analysis fructification.
4. associated entity id and entity.
5. the deformation data (matrix information) of analyzed pattern, colour switching (multiplying factor), color displacement (plus coefficient).
6. analysis message bit pattern (according to image storage format, the RGBA images of zlib compressions can be divided into, zlib compressions
RGBA pre-multiplied alpha images, the RGB image of jpeg compressions compresses the RGBA pre-multiplied alpha that transparency, jpeg compress with zlib
Image), save as temporary file.
Preferably, during the swf files of analysis input, painting canvas information, frame per second are also obtained.
Wherein, figure is rendered to by designated frame according to the deformation data of artwork shape, colour switching, color displacement and position
In, including:
Classification based on figure, and colour switching, color displacement and the position of artwork shape generate corresponding texture entity;
The deformation data generation container entity of composition structure and artwork shape based on figure;
Texture entity and container entity are rendered in cocos2dx.
Preferably, container entity by artwork shape deformation data, and constitute the figure all spirtes it is corresponding hold
Device entity is constituted.
Specifically, individual set texture is exported:Conjunction graphic operation is carried out to the temporary file of all preservations of previous step, phase
Same texture resource merges, and records the position in each piece of whole texture in artwork place.
Specifically, the resource in the swf files of analysis input, extraction document, be specially:
A binary system csp file is exported for each swf file, exporting information therein includes:
1. animation essential information:The wide height of painting canvas, frame per second, texture name, file size, sequence of characters string start offset, definition
The skew of class solid data, the skew of entrance entity.
2. sequence of characters string data:Sequence of characters string be by multistage with 0 string-concatenation ended up form, in order in text
Facilitate the storage of character string in part, therefore string content is stored separately on together, and 16 are stored in the position of reference
Skew.
3. define class solid data.
4. entrance solid data.
The mode for realizing animation editor using the method for the present embodiment is:
1. designer edits animation using any Flash animations edit tool;
2. export to swf files
3. swf files are converted into csp files
4. import and play in game engine.
Separated with it, animation is split as into pel and deformation (including position movement, rotation, scaling, stretching etc.)
Storage, operationally calculates the actual position of image, improves rendering speed, further increases user and carries out cartoon material search
And the user experience made;And by this method multiframe can be avoided to be stored in repeatedly in image, cause texture storage empty
Between it is not enough the problem of.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme, it all should cover among the claim of the present invention and the scope of specification.
Claims (10)
1. a kind of searching method of cartoon material, it is characterised in that including:
Step S1, obtains the searching request of user's input, and the searching request includes the searching request of single cartoon material and moved
Picture element material document search request;
Step S2, according to the searching request, obtains corresponding search keyword;
Step S3, according to the search keyword, correspondence is searched for by the index list in the cartoon material plug-in unit that pre-establishes
Cartoon material, obtain cartoon material to be edited;
Step S4, the cartoon material to be edited is loaded into cartoon making picture, realizes the search to cartoon material.
2. the searching method of cartoon material according to claim 1, it is characterised in that
The index list is set up by inverted index method, is specially:
A large amount of cartoon materials are obtained, a large amount of cartoon materials include multiple documents and multiple words;
Statistical analysis is carried out to the multiple document and the multiple word, obtained between the multiple word and the multiple document
Relation, formed mapping relations;
According to the numbering of the multiple document, with reference to the mapping relations, index list is generated.
3. the searching method of cartoon material according to claim 1, it is characterised in that
The step S3, be specially:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search keyword pair is found
The cartoon material answered, wherein, the type of cartoon material cartoon material type corresponding with the search keyword is consistent;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is converted into the
Two-dimensionses vector;
Calculate the angular deviation between the vectorial vector with second dimension of first dimension;
The angular deviation is compared with condition set in advance, condition is met, then it represents that cartoon material to be edited is searched, it is no
Then, represent not searching cartoon material to be edited.
4. the searching method of cartoon material according to claim 1, it is characterised in that
The step S3, be specially:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search keyword pair is found
The cartoon material answered, wherein, the type of cartoon material cartoon material type corresponding with the search keyword is consistent;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is converted into the
Two-dimensionses vector;
Calculate the included angle cosine value between the vectorial vector with second dimension of first dimension;
According to the included angle cosine value, judge whether to search cartoon material to be edited:
When the included angle cosine value is not equal to zero, judgement searches the cartoon material to be edited;
When the included angle cosine value is equal to zero, judgement does not search the cartoon material to be edited.
5. the searching method of cartoon material according to claim 1, it is characterised in that
The step S3, be specially:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search keyword pair is found
The cartoon material answered, wherein, the search keyword is word, and the corresponding cartoon material of the search keyword is document;
The search keyword is converted into the first dimension vector;
Whether according to the vector value of first dimension vector, it is to search to judge the corresponding cartoon material of the search keyword
Cartoon material to be edited:
When the vector value of first dimension vector is not zero, judge that the corresponding cartoon material of the search keyword is to search
The cartoon material to be edited;
When the vector value of first dimension vector is not zero, it is not search to judge the corresponding cartoon material of the search keyword
To the cartoon material to be edited.
6. the search system of cartoon material, it is characterised in that including:
Searching request acquisition module, the searching request for obtaining user's input, the searching request includes single cartoon material
Searching request and cartoon material document search request;
Search keyword acquisition module, for according to the searching request, obtaining corresponding search keyword;
Cartoon material generation module to be edited, for according to the search keyword, passing through the cartoon material plug-in unit pre-established
In index list search for corresponding cartoon material, obtain cartoon material to be edited;
Cartoon material search completes module, for the cartoon material to be edited to be loaded into cartoon making picture, realization pair
The search of cartoon material.
7. the search system of cartoon material according to claim 6, it is characterised in that
Module also is set up including index list, for setting up the index list by inverted index method:
A large amount of cartoon materials are obtained, a large amount of cartoon materials include multiple documents and multiple words;
Statistical analysis is carried out to the multiple document and the multiple word, obtained between the multiple word and the multiple document
Relation, formed mapping relations;
According to the numbering of the multiple document, with reference to the mapping relations, index list is generated.
8. the search system of cartoon material according to claim 6, it is characterised in that
The cartoon material generation module to be edited, specifically for:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search keyword pair is found
The cartoon material answered, wherein, the type of cartoon material cartoon material type corresponding with the search keyword is consistent;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is converted into the
Two-dimensionses vector;
Calculate the angular deviation between the vectorial vector with second dimension of first dimension;
The angular deviation is compared with condition set in advance, condition is met, then it represents that cartoon material to be edited is searched, it is no
Then, represent not searching cartoon material to be edited.
9. the search system of cartoon material according to claim 6, it is characterised in that
The cartoon material generation module to be edited, specifically for:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search keyword pair is found
The cartoon material answered, wherein, the type of cartoon material cartoon material type corresponding with the search keyword is consistent;
The search keyword is converted into the first dimension vector, the corresponding cartoon material of the search keyword is converted into the
Two-dimensionses vector;
Calculate the included angle cosine value between the vectorial vector with second dimension of first dimension;
According to the included angle cosine value, judge whether to search cartoon material to be edited:
When the included angle cosine value is not equal to zero, judgement searches the cartoon material to be edited;
When the included angle cosine value is equal to zero, judgement does not search the cartoon material to be edited.
10. the search system of cartoon material according to claim 6, it is characterised in that
The cartoon material generation module to be edited, specifically for:
According to the search keyword, by the index list in the cartoon material plug-in unit, the search keyword pair is found
The cartoon material answered, wherein, the search keyword is word, and the corresponding cartoon material of the search keyword is document;
The search keyword is converted into the first dimension vector;
Whether according to the vector value of first dimension vector, it is to search to judge the corresponding cartoon material of the search keyword
Cartoon material to be edited:
When the vector value of first dimension vector is not zero, judge that the corresponding cartoon material of the search keyword is to search
The cartoon material to be edited;
When the vector value of first dimension vector is not zero, it is not search to judge the corresponding cartoon material of the search keyword
To the cartoon material to be edited.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710338302.3A CN107193913A (en) | 2017-05-15 | 2017-05-15 | The searching method and system of cartoon material |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710338302.3A CN107193913A (en) | 2017-05-15 | 2017-05-15 | The searching method and system of cartoon material |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107193913A true CN107193913A (en) | 2017-09-22 |
Family
ID=59873615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710338302.3A Pending CN107193913A (en) | 2017-05-15 | 2017-05-15 | The searching method and system of cartoon material |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107193913A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992348A (en) * | 2017-10-31 | 2018-05-04 | 厦门宜弘电子科技有限公司 | Dynamic caricature plug-in unit processing method and system based on intelligent terminal |
CN109522439A (en) * | 2018-10-17 | 2019-03-26 | 东软集团股份有限公司 | Design label search method, apparatus, storage medium and the equipment of resource |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682082A (en) * | 2012-04-07 | 2012-09-19 | 山东师范大学 | Network Flash searching system and network Flash searching method based on content structure characteristics |
CN102819858A (en) * | 2012-07-30 | 2012-12-12 | 北京中科盘古科技发展有限公司 | Method for organizing and applying cartoon material |
CN105447016A (en) * | 2014-08-18 | 2016-03-30 | 北大方正集团有限公司 | Assembly fast search and reuse method |
US20170031875A1 (en) * | 2012-12-24 | 2017-02-02 | Tencent Technology (Shenzhen) Company Limited | Network Media Information Display System, Method, Apparatus and Server |
-
2017
- 2017-05-15 CN CN201710338302.3A patent/CN107193913A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682082A (en) * | 2012-04-07 | 2012-09-19 | 山东师范大学 | Network Flash searching system and network Flash searching method based on content structure characteristics |
CN102819858A (en) * | 2012-07-30 | 2012-12-12 | 北京中科盘古科技发展有限公司 | Method for organizing and applying cartoon material |
US20170031875A1 (en) * | 2012-12-24 | 2017-02-02 | Tencent Technology (Shenzhen) Company Limited | Network Media Information Display System, Method, Apparatus and Server |
CN105447016A (en) * | 2014-08-18 | 2016-03-30 | 北大方正集团有限公司 | Assembly fast search and reuse method |
Non-Patent Citations (1)
Title |
---|
陈为满: "基于本体的动画素材语义检索引擎设计与排序研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992348A (en) * | 2017-10-31 | 2018-05-04 | 厦门宜弘电子科技有限公司 | Dynamic caricature plug-in unit processing method and system based on intelligent terminal |
CN107992348B (en) * | 2017-10-31 | 2020-09-11 | 厦门宜弘电子科技有限公司 | Dynamic cartoon plug-in processing method and system based on intelligent terminal |
CN109522439A (en) * | 2018-10-17 | 2019-03-26 | 东软集团股份有限公司 | Design label search method, apparatus, storage medium and the equipment of resource |
CN109522439B (en) * | 2018-10-17 | 2021-07-09 | 东软集团股份有限公司 | Label retrieval method, device, storage medium and equipment for design resources |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Choo et al. | Utopian: User-driven topic modeling based on interactive nonnegative matrix factorization | |
CA2508500C (en) | An architecture for ink annotations on web documents | |
Ellson et al. | Graphviz and dynagraph—static and dynamic graph drawing tools | |
KR101031700B1 (en) | Programming interface to computer platform | |
Mitchell et al. | Digital design media | |
US7426734B2 (en) | Facilitating presentation functionality through a programming interface media namespace | |
CN113377373B (en) | Page loading method, device, computer equipment and medium based on parsing engine | |
US20060031755A1 (en) | Sharing inking during multi-modal communication | |
WO2018226621A1 (en) | Methods and systems for an application system | |
CN103955549A (en) | Web GIS system based on SVG and data input and search method thereof | |
CN102682082B (en) | Network Flash searching system and network Flash searching method based on content structure characteristics | |
JP2007128523A (en) | IMAGE SUMMARIZING METHOD, IMAGE DISPLAY DEVICE, k-TREE DISPLAY SYSTEM, k-TREE DISPLAY PROGRAM AND k-TREE DISPLAY METHOD | |
WO2009117714A2 (en) | File access via conduit application | |
CN111367514B (en) | Page card development method and device, computing device and storage medium | |
CN111340920B (en) | Semantic-driven two-dimensional animation automatic generation method | |
Roudaki et al. | A classification of web browsing on mobile devices | |
CN100429643C (en) | Realization Method for Multimedia Network Electronic Publication Production | |
Han et al. | Tree-based visualization and optimization for image collection | |
CN115665120A (en) | Cloud CAD processing method and system, computer equipment and storage medium | |
CN107193913A (en) | The searching method and system of cartoon material | |
JP7344256B2 (en) | Rendering methods, devices, electronic equipment and computer programs | |
Yang et al. | Search for flash movies on the web | |
Sánchez-Zamora et al. | Visualizing tags as a network of relatedness | |
Jiang et al. | Information retrieval through SVG-based vector images using an original method | |
Rajatheva | Performance Challenges with Data Visualizations in Browser Environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170922 |
|
RJ01 | Rejection of invention patent application after publication |