Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of picture splicing implementation method that overcomes the problems referred to above or address the above problem at least in part is provided, and a kind of picture processing system.
According to one aspect of the present invention, a kind of picture processing system is provided, has comprised: the device of one or more realization pictures splicings, and one or more figure film source, wherein, one or more in the described figure film source are the picture database of local figure film source or server end; The device of described realization picture splicing comprises: template base unit, picture extraction unit, matching unit and jigsaw puzzle units;
Described template base unit is suitable for preserving multiple picture mosaic template;
Described picture extraction unit is suitable for extracting the picture of specifying number and preserve from the figure film source, and each picture of preserving is classified, and obtains notifying described matching unit behind the classification results; Also be suitable for when receiving the notice of described matching unit, the picture of deletion predetermined number from the picture of preserving, or the picture that obtains again predetermined number from the figure film source preserves, and then the picture of preserving re-started classification, notifies described matching unit with classification results;
Described matching unit, be suitable for when receiving the classification results of described picture extraction unit notice, from described template base unit, search the picture mosaic template with described classification results coupling, if do not find the picture mosaic template of coupling, then send notice to described picture extraction unit, if find the picture mosaic template of more than one coupling, then therefrom select a picture mosaic template, notify described jigsaw puzzle units with selected picture mosaic template;
Described jigsaw puzzle units, each picture that is suitable for preserving in the described picture extraction unit overlap in each picture frame of using in the picture mosaic template that matching unit notifies by type, generate spliced picture.
Alternatively, described picture extraction unit is suitable for each picture of preserving is classified according to size and horizontal figure and/or perpendicular figure, obtains the horizontal number of graphs of every kind of size and/or the perpendicular number of graphs of every kind of size, and notifies described matching unit.
Alternatively, described matching unit, be suitable for when the perpendicular number of graphs of the horizontal number of graphs of receiving every kind of size that described picture extraction unit is notified and/or every kind of size, from described template base unit, search the horizontal picture frame number of correspondingly-sized more than or equal to the horizontal figure number of the correspondingly-sized of picture extraction unit notice, and/or the perpendicular picture frame number of correspondingly-sized is more than or equal to the picture mosaic template of the perpendicular figure number of the correspondingly-sized of acquiring unit notice.
Alternatively, described figure film source is the picture database of local figure film source or server end; Described picture extraction unit, the picture and the preservation that are suitable for from local figure film source or extract the appointment number in the picture database on the server.
According to another aspect of the invention, provide a kind of picture splicing implementation method, wherein, the method comprises:
From the figure film source, extract the picture of specifying number;
Each picture that has obtained is classified, obtain classification results;
From the default template base that comprises multiple picture mosaic template, search the picture mosaic template with described classification results coupling;
If do not find the picture mosaic template of coupling, the then picture of deletion predetermined number from the picture that has obtained, or the picture that obtains again predetermined number from the figure film source is increased in the picture that has obtained, and returns the described step that each picture that has obtained is classified;
If find the picture mosaic template of more than one coupling, then from the picture mosaic template of described more than one coupling, select a picture mosaic template, each picture that has obtained is overlapped in each picture frame of using in the selected picture mosaic template by type, generate spliced picture;
Repeat the described picture of appointment number that from the figure film source, extracts to the step of the spliced picture of described generation, generate a plurality of spliced pictures, and play described a plurality of spliced picture by specified order.
Alternatively, described each picture that has obtained is classified, obtains classification results and comprise:
Each picture of having obtained is classified according to size and horizontal figure and/or perpendicular figure, obtain the horizontal number of graphs of every kind of size and/or the perpendicular number of graphs of every kind of size.
Alternatively, the described picture mosaic template of mating with described classification results of searching from the default template base that comprises multiple picture mosaic template comprises:
Search from template base, the horizontal picture frame number of correspondingly-sized is more than or equal to the horizontal figure number of obtaining the correspondingly-sized in the picture, and/or the perpendicular picture frame number of correspondingly-sized is more than or equal to the picture mosaic template of the perpendicular figure number of obtaining the correspondingly-sized in the picture.
Alternatively, described figure film source is local figure film source; Perhaps, the described figure film source picture database that is server end.
Alternatively, the described extraction from the figure film source specifies the picture of number to comprise: the picture of specifying number from the figure film source by specified order and/or random extraction.
Alternatively, after generating spliced picture, the method further comprises: the picture of described generation is set to the desktop background of system.
Alternatively, the method further comprises: after generating spliced picture, the picture of described generation is set to the desktop background lantern slide of system, returns the described step of extracting the picture of specifying number from the figure film source behind the Preset Time.
According to this picture of specifying number that from the figure film source, extracts of the present invention, each picture that has obtained is classified, obtain classification results, from the default template base that comprises multiple picture mosaic template, search the picture mosaic template with described classification results coupling; If do not find the picture mosaic template of coupling, the then picture of deletion predetermined number from the picture that has obtained, or the picture that obtains again predetermined number from the figure film source is increased in the picture that has obtained, and returns the described step that each picture that has obtained is classified; If find the picture mosaic template of more than one coupling, then from the picture mosaic template of described more than one coupling, select a picture mosaic template, each picture that has obtained is overlapped in each picture frame of using in the selected picture mosaic template by type, generate the technical scheme of spliced picture, can realize intelligent adaptation picture and template, generate spliced picture, solved thus the problem that can only show individual picture in the application such as existing desktop setting and lantern slide broadcast, and need manually coupling picture and template, the problem that takes time and effort when adopting the template provide to carry out picture mosaic.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
Fig. 2 shows a kind of according to an embodiment of the invention process flow diagram of picture splicing implementation method.As shown in Figure 2, the method comprises:
Step S210 extracts the picture of specifying number from the figure film source.
In one embodiment of the invention, described figure film source can be the figure film source of this locality, as being the local folders that arranges, comprises picture in this document folder.For example, can be the file of placing about the photo of a certain activity, such as the photos folder about tourism, the file of wedding photography etc.Perhaps, in another embodiment of the present invention, described figure film source also can be the picture database of server end.
In one embodiment of the invention, from the figure film source, extract the picture of specifying number by specified order; Perhaps, the random picture of specifying number that extracts from the figure film source; Again or, from the figure film source, extract a part of picture by specified order, random another part picture that extracts from the figure film source.
Step S220 classifies to each picture that has obtained, and obtains classification results.
In one embodiment of the invention, can classify according to size and horizontal figure and/or perpendicular figure to each picture of having obtained, obtain the horizontal number of graphs of every kind of size and/or the perpendicular number of graphs of every kind of size.Specifically:
(1) if the picture that obtains all is horizontal figure, then classifies according to dimension of picture and horizontal figure.For example classification results is: the horizontal figure number that is of a size of a1*b1 is that x1 opens, and the horizontal figure number that is of a size of c1*d1 is that y1 opens, and the horizontal figure number that is of a size of e1*f1 is that z1 opens.
(2) if the picture that obtains all is perpendicular figure, then classify according to dimension of picture and perpendicular figure.For example classification results is: the perpendicular figure number that is of a size of a2*b2 is that x2 opens, and the perpendicular figure number that is of a size of c2*d2 is that y2 opens, and the perpendicular figure number that is of a size of e2*f2 is that z2 opens.
(3) if existing horizontal figure has again perpendicular figure in the picture that obtains, then classify according to dimension of picture and horizontal figure and perpendicular figure.For example classification results is: the horizontal figure number that is of a size of a1*b1 is that x3 opens, and the perpendicular figure number that is of a size of c2*d2 is that y3 opens, and the perpendicular figure number that is of a size of e2*f2 is that z3 opens.
Step S230 searches the picture mosaic template with described classification results coupling from the default template base that comprises multiple picture mosaic template.
In one embodiment of the invention, searching the picture mosaic template of mating with described classification results from the default template base that comprises multiple picture mosaic template is specifically as follows: search from template base, the horizontal picture frame number of correspondingly-sized is more than or equal to the horizontal figure number of obtaining the correspondingly-sized in the picture, and/or the perpendicular picture frame number of correspondingly-sized is more than or equal to the picture mosaic template of the perpendicular figure number of obtaining the correspondingly-sized in the picture.
For example, classification results is: the horizontal figure number that is of a size of a1*b1 is that x1 opens, and the horizontal figure number that is of a size of c1*d1 is that y1 opens, and the horizontal figure number that is of a size of e1*f1 is that z1 opens.Then from picture library, search, be of a size of the horizontal frame number of a1*b1 more than or equal to x1, be of a size of the horizontal frame number of c1*d1 more than or equal to y1, the horizontal frame number that is of a size of e1*f1 greater than or the picture mosaic template that equals z1.
Again for example, classification results is: the horizontal figure number that is of a size of a1*b1 is that x3 opens, and the perpendicular figure number that is of a size of c2*d2 is that y3 opens, and the perpendicular figure number that is of a size of e2*f2 is that z3 opens.Then from picture library, search, be of a size of the horizontal frame number of a1*b1 more than or equal to x3, be of a size of the munnion number of c2*d2 more than or equal to y3, be of a size of the munnion number of e2*f2 more than or equal to the picture mosaic template of z3.
Here, the template of coupling is divided into " full matching template " and " subset matching template "." full matching template " refers to that the picture frame number of template mates fully with the number of corresponding picture, for example the classification results of picture is: 3 horizontal figure and 2 perpendicular figure that are of a size of e2*f2 that are of a size of a1*b1, then " full matching template " just in time is comprised of with 2 munnions that are of a size of e2*f2 3 horizontal frames that are of a size of a1*b1." subset matching template " refers to that a picture frame number is more than the number of corresponding picture in the template, for example the classification results of picture is 2 horizontal figure and 1 perpendicular figure that are of a size of e2*f2 that are of a size of a1*b1, then is " subset matching template " by 3 horizontal frames that are of a size of a1*b1 with the template that 2 munnions that are of a size of e2*f2 form.For the subset matching template, a pictures can allow to appear in a plurality of picture frames, namely repeats to be inserted in picture in additional picture frame.
Step S240 judges whether to find the picture mosaic template of more than one coupling, is execution in step S260 then, otherwise execution in step S250.
Step S250, if do not find the picture mosaic template of coupling, the then picture of deletion predetermined number from the picture that has obtained, or the picture that obtains again predetermined number from the figure film source is increased in the picture that has obtained, and returns step S220.
In one embodiment of the invention, predetermined number can be set to 1.If namely do not find the picture mosaic template of coupling, deletion 1 pictures from the picture that has obtained then, or from the figure film source, obtain again 1 pictures and be increased in the picture that has obtained.
Step S260, if find the picture mosaic template of more than one coupling, then from the picture mosaic template of described more than one coupling, select a picture mosaic template, each picture that has obtained is overlapped in each picture frame of using in the selected picture mosaic template by type, generate spliced picture.
In one embodiment of the invention, can from the picture mosaic template of described more than one coupling, select at random a picture mosaic template.
In one embodiment of the invention, presetting diversified picture mosaic template in template base, is 1 picture mosaic template comprising picture frame quantity, as includes only the picture mosaic template and the picture mosaic template that includes only 1 munnion of 1 horizontal frame.Can guarantee like this to have at least a template is suitable for.
Method by the splicing of the realization picture among the present invention can realize automatic picture splicing, and the user can not participate in any editing just can obtain gorgeous picture mosaic.
After obtaining spliced picture by method shown in Figure 2, new picture after the splicing can be outputed to and call the source, such as lantern slide, the preview of creation wallpaper etc.For example:
(1) in one embodiment of the invention, generate after the spliced picture according to method shown in Figure 2, the picture that generates is set to the desktop background of system.
(2) or, in one embodiment of the invention, repeatedly repeat the picture that from the figure film source, extracts the appointment number of method shown in Figure 2 to the step that generates spliced picture, generate a plurality of spliced pictures, play these a plurality of spliced pictures by specified order, realize the lantern slide broadcast.
(3) or, in yet another embodiment of the present invention, generate after the spliced picture according to method shown in Figure 2, the picture that generates is set to the desktop background lantern slide of system, return the method shown in Figure 2 of carrying out behind the Preset Time, a newly-generated spliced picture again, this newly-generated picture is set to the desktop background magic lantern of system, so circulation.
Method by above-mentioned realization picture splicing of the present invention, can realize automatic picture mosaic, utilize the method user that the desktop background that many figure form can be set, all right many chart-patterns playing lantern slides, compare former free hand drawing play mode, visual effect is abundanter, and content revealing is more diversified, greatly promotes user's experience with the aid of pictures.The method of above-mentioned realization picture splicing of the present invention from the manual editing, becomes automatic acquisition with the mode of operation of picture mosaic.This is a kind of operator scheme of brand-new picture mosaic, has greatly simplified reciprocal process, thereby becomes possibility so that this minority's function of existing picture mosaic becomes popular an application.This is highly beneficial for the customer group that expands this type of application.
Fig. 3 shows a kind of according to an embodiment of the invention structural drawing of realizing the device of picture splicing.As shown in Figure 3, the device 300 of this realization picture splicing comprises: template base unit 301, picture extraction unit 302, matching unit 303 and jigsaw puzzle units 304.
Template base unit 301 is suitable for preserving multiple picture mosaic template.
Picture extraction unit 302 is suitable for extracting the picture of specifying number and preserve from the figure film source, and each picture of preserving is classified, and obtains notifying matching unit 303 behind the classification results; Picture extraction unit 302 also is suitable for when receiving the notice of matching unit 303, the picture of deletion predetermined number from the picture of preserving, or the picture that obtains again predetermined number from the figure film source is preserved, then the picture of preserving is re-started classification, notify matching unit 303 with classification results.
Matching unit 303 is suitable for when receiving the classification results of picture extraction unit 302 notices, from template base unit 301, search the picture mosaic template with the classification results coupling, if do not find the picture mosaic template of coupling, then send notice to picture extraction unit 302, if find the picture mosaic template of more than one coupling, then therefrom select a picture mosaic template, with selected picture mosaic template notice jigsaw puzzle units 304.
Each picture that jigsaw puzzle units 304 is suitable for will be in the picture extraction unit 302 preserving overlaps in each picture frame of using in the picture mosaic template that matching unit 303 notifies by type, generates spliced picture.
In Fig. 3, picture extraction unit 302 is suitable for each picture of preserving is classified according to size and horizontal figure and/or perpendicular figure, obtains the horizontal number of graphs of every kind of size and/or the perpendicular number of graphs of every kind of size, and the notice matching unit.
In Fig. 3, matching unit 303 is suitable for when the perpendicular number of graphs of the horizontal number of graphs of every kind of size receiving picture extraction unit notice and/or every kind of size, from the template base unit, search the horizontal picture frame number of correspondingly-sized more than or equal to the horizontal figure number of the correspondingly-sized of picture extraction unit notice, and/or the perpendicular picture frame number of correspondingly-sized is more than or equal to the picture mosaic template of the perpendicular figure number of the correspondingly-sized of acquiring unit notice.
In Fig. 3, picture extraction unit 302 is suitable for from local figure film source or extracts picture and the preservation of specifying number in the database of server end.
Fig. 4 shows the composition frame chart of a kind of according to an embodiment of the invention picture processing system.As shown in Figure 4, this picture processing system comprises: device 300 and one or more figure film source of one or more realization picture splicings.Wherein, one or more in the figure film source are the picture database 401 of local figure film source 402 or server end.Local figure film source 402 specifically can be the file of this locality of setting, comprises picture in this document folder.Illustrated among Fig. 4 that three are realized the device 300 of picture splicing, picture database 401 and a local figure film source 402 of two server ends, but this can not be as the restriction to the number of the ingredient of the picture processing system among the present invention.
Referring to Fig. 4, the device 300 of realizing the picture splicing is devices of the realization picture splicing described in embodiment illustrated in fig. 3, and its function and form structure referring to the description of front is no longer repeated here.
The device 300 of realizing the picture splicing can be by the picture database 401 extraction pictures of wired or wireless mode from server end, therefore its annexation of with dashed lines in Fig. 4.The device 300 of realizing the picture splicing also can extract picture from local figure film source 402, and the solid line annexation among Fig. 4 represents that this locality obtains.
Fig. 5 shows the effect schematic diagram of the picture mosaic of adopting the solution of the present invention realization.Referring to Fig. 5, adopt method, device and the picture processing system of the realization picture splicing among the present invention, all can realize intelligent adaptation picture and template, generate picture mosaic shown in Figure 5.In picture mosaic shown in Figure 5, the picture frame perfect matching in picture and the template does not have picture by the problem of excessive cutting, does not more need the user manually to adjust.
Method and apparatus of the present invention can be applied in the various client for the user.Such as being applied in PC computer, smart mobile phone, panel computer and other portable terminals.In addition, client preferably can be connected by cable network or wireless network with various picture library servers on the internet, is used for access and obtains image data.Client also can be accessed the picture of storing in the local folders, corresponding realization technical scheme of the present invention.
In sum, according to this picture of specifying number that from the figure film source, extracts of the present invention, each picture that has obtained is classified, obtain classification results, from the default template base that comprises multiple picture mosaic template, search the picture mosaic template with described classification results coupling; If do not find the picture mosaic template of coupling, the then picture of deletion predetermined number from the picture that has obtained, or the picture that obtains again predetermined number from the figure film source is increased in the picture that has obtained, and returns the described step that each picture that has obtained is classified; If find the picture mosaic template of more than one coupling, then from the picture mosaic template of described more than one coupling, select a picture mosaic template, each picture that has obtained is overlapped in each picture frame of using in the selected picture mosaic template by type, generate the technical scheme of spliced picture, can realize intelligent adaptation picture and template, generate spliced picture, solved thus the problem that can only show individual picture in the application such as existing desktop setting and lantern slide broadcast, and need manually coupling picture and template, the problem that takes time and effort when adopting the template provide to carry out picture mosaic.
Need to prove:
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the instructions that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be in the situation that there be these details to put into practice.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this instructions (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize according to the device of the realization picture of embodiment of the invention splicing and some or all some or repertoire of parts in the picture processing system.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.