CN105677731B - Show method, apparatus, terminal and the server of preview picture figure - Google Patents

Show method, apparatus, terminal and the server of preview picture figure Download PDF

Info

Publication number
CN105677731B
CN105677731B CN201511017075.1A CN201511017075A CN105677731B CN 105677731 B CN105677731 B CN 105677731B CN 201511017075 A CN201511017075 A CN 201511017075A CN 105677731 B CN105677731 B CN 105677731B
Authority
CN
China
Prior art keywords
preview
picture
group
graph
preview graph
Prior art date
Application number
CN201511017075.1A
Other languages
Chinese (zh)
Other versions
CN105677731A (en
Inventor
王百超
侯文迪
龙飞
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to CN201511017075.1A priority Critical patent/CN105677731B/en
Publication of CN105677731A publication Critical patent/CN105677731A/en
Application granted granted Critical
Publication of CN105677731B publication Critical patent/CN105677731B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Abstract

The disclosure provides a kind of method, apparatus, terminal and server for showing preview picture figure, and a specific embodiment of the method includes: to obtain to preview picture;It is determining and described to the matched preview graph arrangement mode of preview picture;The preview graph to preview picture is shown according to the preview graph arrangement mode.This embodiment improves the efficiency of user's using terminal browsing pictures preview graph.

Description

Show method, apparatus, terminal and the server of preview picture figure

Technical field

This disclosure relates to field of computer technology, in particular to a kind of method, apparatus for showing preview picture figure, terminal and Server.

Background technique

With the continuous development of science and technology, terminal technology becomes improved day by day and mature, and terminal device is more next It is more widely used in daily life and work, keeps people's lives more and more convenient.Currently, many terminals all have There is the function of display picture, in general, when (such as photograph album stores the file of picture to some picture library during user opens a terminal Deng) when, or open webpage on picture library (photograph album uploaded in such as personal space) when, interface can show picture in picture library Figure is reduced, and the diminution figure of these pictures is arranged, the diminution figure of the picture can be used as the preview graph of above-mentioned picture.With Family can be browsed to select picture without opening picture one by one by browsing preview graph.

In the related art, the preview graph of plurality of pictures generallys use the arrangement mode of tiling, i.e. every preview graph occupies Same size, is arranged successively, so if picture number is more, is not easy to user's browsing, it is clear to reduce user's using terminal Look at the efficiency of preview picture figure.

Summary of the invention

For above-mentioned technical problem, present disclose provides a kind of method, apparatus, terminal and services for showing preview picture figure Device.

According to the first aspect of the embodiments of the present disclosure, a kind of method showing preview picture figure is provided, comprising:

It obtains to preview picture;

It is determining and described to the matched preview graph arrangement mode of preview picture;

The preview graph to preview picture is shown according to the preview graph arrangement mode.

Optionally, the determination and described to the matched preview graph arrangement mode of preview picture, comprising:

It is divided into described in will acquire to preview picture one or more groups of;

Based on preset multiple preview graphs arrangement templates determine every group respectively described in the matched preview graph row of preview picture Mode for cloth.

Optionally, for, to preview picture, being determined as follows matched preview graph arrangement described in any one group Mode:

Determine every preview graph desired size to preview picture in the group;

Multiple test template groups are obtained, to generate the test template group set for corresponding to the group, wherein each test Template group includes one or more preset preview graphs arrangement templates;

By the group to preview picture preview graph according to each of the test template group set test template group Traverse different preview graph arrangement modes;

The corresponding expectation difference parameter of every kind of preview graph arrangement mode is obtained respectively based on the desired size;

The preview graph arrangement mode corresponding to minimum expectation difference parameter is found out, as matched preview graph arrangement side Formula.

Optionally, every preview graph desired size to preview picture in the determination group, comprising:

One or more classifications will be divided into preview picture in the group;

Obtain the corresponding original dimension grade of the preview graph to preview picture in the group;

Based on the original dimension grade, every preview graph desired size to preview picture of each classification is determined respectively Grade, to obtain every preview graph desired size class to preview picture in the group;

Corresponding preview graph desired size is determined according to the preview graph desired size class to preview picture.

It is optionally, described to be divided into one or more classifications to preview picture in the group, comprising:

Every is calculated in the group to other similarities to preview picture in preview picture and the group;

The similarity is more than or equal to two of predetermined threshold to preview picture as mutual similar picture, counts this Every similar number to preview picture to preview picture in group;

Using the corresponding number it is most be used as cluster centre to preview picture, progress clustering will be in the group Be divided into one or more classifications to preview picture.

Optionally, the corresponding original dimension grade of the preview graph to preview picture obtained in the group, comprising:

Obtain the picture reconnaissance in the group to preview picture;

Each picture reconnaissance to preview picture is added with reference grade, at the beginning of the corresponding preview graph of determination Beginning desired size class.

Optionally, for the described to preview picture of any one classification, it is determined as follows corresponding preview Figure desired size class:

Judge whether the quantity to preview picture of the category is more than or equal to predetermined threshold;It, will if being less than predetermined threshold The category to the corresponding preview graph original dimension grade of preview picture as preview graph desired size class;If it is greater than or equal to pre- Determine threshold value, then needs to be modified the preview graph original dimension grade to preview picture of the category;

When determination is needed to the category when preview graph original dimension grade of preview picture is modified, based on such Other size to the corresponding preview graph original dimension grade of preview picture is initial to the preview graph to preview picture of the category Size grades are modified, to obtain every preview graph desired size class to preview picture of the category.

Optionally, the size to the corresponding preview graph original dimension grade of preview picture based on the category is to such Other preview graph original dimension grade to preview picture is modified, comprising:

Compare the size to the corresponding preview graph original dimension grade of preview picture of the category;

According to the sequence acquisition predetermined number of the original dimension grade from big to small to preview picture, as master map Piece, the other of the category are used as time picture to preview picture;

The preview graph desired size class of the main picture is modified to highest level, by the preview graph phase of the secondary picture Size grades are hoped to be modified to the lowest class.

Optionally, for any one preview graph arrangement mode, corresponding expectation difference parameter is obtained in the following way:

When obtaining according to preview graph arrangement mode arrangement, every preview graph actual size to preview picture in the group;

Determine every preview graph actual size to preview picture and the difference of corresponding desired size in the group;

Calculate every preview graph actual size to preview picture and the absolute value of the difference of corresponding desired size in the group The sum of, as corresponding expectation difference parameter.

According to the second aspect of an embodiment of the present disclosure, a kind of device showing preview picture figure is provided, comprising:

Module is obtained, is configured as obtaining to preview picture;

Determining module is configured to determine that with described to the matched preview graph arrangement mode of preview picture;

Display module is configured as the preview graph shown according to the preview graph arrangement mode Suo Shu to preview picture.

Optionally, the determining module includes:

Be grouped submodule, be configured as will acquire described in be divided into preview picture it is one or more groups of;

Matched sub-block, be configured as determining every group respectively based on preset multiple preview graphs arrangement templates described in preview The preview graph arrangement mode of picture match.

Optionally, the matched sub-block includes: that desired size determines submodule, generates submodule, traverses submodule, phase It hopes difference parameter acquisition submodule, searches submodule;

For described in any one group to preview picture:

Desired size determines submodule, is configured to determine that every preview graph desired size to preview picture in the group;

Submodule is generated, is configured as obtaining multiple test template groups, to generate the test template group collection for corresponding to the group It closes, wherein each test template group includes one or more preset preview graphs arrangement templates;

Traverse submodule, be configured as by the group to preview picture preview graph according in the test template group set Each test template group traverses different preview graph arrangement modes;

It is expected that difference parameter acquisition submodule, is configured as obtaining every kind of preview graph arrangement respectively based on the desired size The corresponding expectation difference parameter of mode;

Submodule is searched, is configured as finding out the preview graph arrangement mode corresponding to minimum expectation difference parameter, as Matched preview graph arrangement mode.

Optionally, the desired size determines that submodule includes:

Classification submodule, is configured as that one or more classifications will be divided into preview picture in the group;

Original dimension grade acquisition submodule, the preview graph to preview picture for being configured as obtaining in the group are corresponding just Beginning size grades;

Desired size class acquisition submodule is configured as determining each classification respectively based on the original dimension grade Every preview graph desired size class to preview picture, it is expected ruler to obtain in the group every preview graph to preview picture Very little grade;

Desired size determines submodule, is configured as being determined according to the preview graph desired size class to preview picture Corresponding preview graph desired size.

Optionally, the classification submodule includes:

Computational submodule is configured as calculating in the group every to preview picture and the phases to preview picture other in the group Like degree;

Statistic submodule is configured as two using the similarity more than or equal to predetermined threshold to preview picture as phase Mutual similar picture, counts every similar number to preview picture to preview picture in the group;

Cluster submodule, be configured as using the corresponding number it is most to preview picture as cluster centre, progress Clustering will be divided into one or more classifications to preview picture in the group.

Optionally, the original dimension grade acquisition submodule, comprising:

Quality factor acquisition submodule is configured as obtaining the picture reconnaissance in the group to preview picture;

Cumulative submodule, is configured as each picture reconnaissance to preview picture being added with reference grade, With the initial desired size class of the corresponding preview graph of determination.

Optionally, the desired size class acquisition submodule includes: judging submodule, corrects submodule;

For the described to preview picture of any one classification:

Judging submodule, is configured as judging whether the quantity to preview picture of the category is more than or equal to predetermined threshold; If being less than predetermined threshold, the category it is expected into ruler as preview graph to the corresponding preview graph original dimension grade of preview picture Very little grade;If it is greater than or equal to predetermined threshold, then need to carry out the preview graph original dimension grade to preview picture of the category Amendment;

Submodule is corrected, is configured as when the determining preview graph original dimension grade to preview picture needed to the category When being modified, the size to the corresponding preview graph original dimension grade of preview picture based on the category is to the category to pre- The preview graph original dimension grade of picture of looking at is modified, and it is expected ruler to obtain every preview graph to preview picture of the category Very little grade.

Optionally, the amendment submodule includes:

Comparative sub-module, be configured as comparing the category to the big of the corresponding preview graph original dimension grade of preview picture It is small;

Primary and secondary picture determines submodule, is configured as obtaining according to the sequence of the original dimension grade from big to small predetermined Number to preview picture, as main picture, the category it is other to preview picture as time picture;

Grade corrects submodule, is configured as the preview graph desired size class of the main picture being modified to most high Grade, is modified to the lowest class for the preview graph desired size class of the secondary picture.

Optionally, it is expected that difference parameter acquisition submodule, comprising: actual size acquisition submodule, size difference obtain submodule Block, parameter acquisition submodule;

For any one preview graph arrangement mode:

Actual size acquisition submodule, when being configured as obtaining according to preview graph arrangement mode arrangement, every in the group Preview graph actual size to preview picture;

Size difference acquisition submodule, be configured to determine that in the group every preview graph actual size to preview picture with it is right The difference for the desired size answered;

Parameter acquisition submodule, be configured as calculating in the group every preview graph actual size to preview picture with it is corresponding The sum of the absolute value of the difference of desired size, as corresponding expectation difference parameter.

According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, comprising:

Processor;

Memory for storage processor executable instruction;

Wherein, the processor is configured to:

It obtains to preview picture;

It is determining and described to the matched preview graph arrangement mode of preview picture;

The preview graph to preview picture is shown according to the preview graph arrangement mode.

According to a fourth aspect of embodiments of the present disclosure, a kind of server is provided, comprising:

Processor;

Memory for storage processor executable instruction;

Wherein, the processor is configured to:

It obtains to preview picture;

It is determining and described to the matched preview graph arrangement mode of preview picture;

The preview graph to preview picture is shown according to the preview graph arrangement mode.

The technical scheme provided by this disclosed embodiment can include the following benefits:

A kind of method for display preview picture figure that embodiment of the disclosure provides is matched by determining with to preview picture Preview graph arrangement mode, and show the above-mentioned preview graph to preview picture according to the preview graph arrangement mode.So as to side Just user's preview picture improves the efficiency of user's using terminal browsing pictures preview graph.

The method for another display preview picture figure that embodiment of the disclosure provides, by will acquire to preview graph Piece is divided into one or more groups of, and determines that every group is waited for the matched preview graph arrangement mode of preview picture respectively, so that it is determined that with all To the matched total preview graph arrangement mode of preview picture, and the preview graph to preview picture is shown according to the arrangement mode.Energy Enough facilitate user's preview picture, further increases the efficiency of user's using terminal browsing pictures preview graph.

The method for another display preview picture figure that embodiment of the disclosure provides, by by the group to preview picture Preview graph traverses different preview graph arrangement modes according to each test template group in test template group set, based on getting Preview graph desired size obtain the corresponding expectation difference parameter of every kind of preview graph arrangement mode respectively, and find out correspond to most The preview graph arrangement mode of small expectation difference parameter, as matched preview graph arrangement mode, and according to the preview graph arrangement side Formula shows the preview graph to preview picture, so as to facilitate user's preview picture, helps to improve user's using terminal browsing The efficiency of preview picture figure.

It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.

Detailed description of the invention

The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.

Fig. 1 is a kind of disclosure flow chart for the method for showing preview picture figure shown according to an exemplary embodiment;

Fig. 2 is the process of the method for the disclosure another display preview picture figure shown according to an exemplary embodiment Figure;

Fig. 3 is a kind of disclosure method for determining matched preview graph arrangement mode shown according to an exemplary embodiment Flow chart;

Fig. 4 is a kind of disclosure schematic diagram of two figures arrangement template shown according to an exemplary embodiment;

Fig. 5 is a kind of disclosure schematic diagram of three figures arrangement template shown according to an exemplary embodiment;

Fig. 6 is a kind of disclosure block diagram for the device for showing preview picture figure shown according to an exemplary embodiment;

Fig. 7 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Fig. 8 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Fig. 9 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Figure 10 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Figure 11 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Figure 12 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Figure 13 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Figure 14 is the block diagram of the device of the disclosure another display preview picture figure shown according to an exemplary embodiment;

Figure 15 is an a kind of disclosure structure of the device for showing preview picture figure shown according to an exemplary embodiment Schematic diagram.

Specific embodiment

Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.

It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.

It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".

As shown in Figure 1, Fig. 1 is a kind of process of method for showing preview picture figure shown according to an exemplary embodiment Figure, this method can be applied in terminal, also can be applied in server.In the present embodiment, in order to make it easy to understand, in conjunction with With display screen and it can show the terminal device of picture and illustrate.It will be understood by those skilled in the art that the terminal device Mobile terminal device, intelligent wearable equipment, tablet computer, the individual digital that can include but is not limited to such as smart phone help Reason, E-book reader, laptop and desktop computer etc..Method includes the following steps:

In a step 101, it obtains to preview picture.

In general, when some picture library (such as photograph album stores the file etc. of picture) during user opens a terminal, or When opening picture library (photograph album uploaded in such as personal space) on webpage, interface can show the diminution figure of picture in picture library, and The diminution figure of these pictures is arranged, the diminution figure of the picture can be used as the preview graph of above-mentioned picture.User can lead to Browsing preview graph is crossed, to select picture, is browsed without opening picture one by one.

In the present embodiment, when the picture library as user into terminal copies large quantities of pictures, or the picture library on webpage The picture of equipment shooting when uploading large quantities of pictures, or with camera function is stored to picture library one by one reaches certain amount When, the picture of these large quantities of deposit picture libraries can be used as to preview picture.When user opens picture library preview interface, need to show Show that these wait for the preview graph of preview picture, therefore, it is necessary to be obtained first to preview picture, further treats preview picture and divided Analysis processing, to show preview graph according to certain arrangement mode.

In a step 102, determining and above-mentioned to the matched preview graph arrangement mode of preview picture.

In the present embodiment, preview graph arrangement mode embodies location relationship between preview graph, can will meet The preview graph arrangement mode of scheduled principle is used as to the matched preview graph arrangement mode of preview picture.For example, to preview picture In it is possible that multiple similar pictures (when general photograph, may be to a scene capture multiple pictures, or adopt Taken pictures with identical background to multiple people), at this moment, can using similar plurality of pictures as a kind of picture, then from Select top-quality picture as main picture in this kind of pictures, other pictures in this kind of pictures as time picture, When preview graph is arranged, the preview graph of main picture is set to account for biggish area as far as possible, the preview graph of secondary picture accounts for lesser area.

In step 103, the above-mentioned preview graph to preview picture is shown according to above-mentioned preview graph arrangement mode.

In the present embodiment, it is arranged according to above-mentioned preview graph arrangement mode to the above-mentioned preview graph to preview picture, Make preview graph seamless connection in arrangement.In order to enable preview graph seamless connection in arrangement, need to contract to preview graph It puts.In general, the depth-width ratio of the preview graph of picture and the depth-width ratio of the picture are consistent, when zooming in and out to preview graph, need It is noted that being consistent the depth-width ratio of preview graph and the depth-width ratio of corresponding picture, to avoid preview graph distortion.It can basis Above-mentioned preview graph arrangement mode and depth-width ratio to preview picture readily calculate every preview graph to preview picture Display size (as unit of pixel).Then it shows according to above-mentioned preview graph arrangement mode and display size to preview picture Preview graph.

The method of the display preview picture figure provided by the above embodiment of the disclosure is matched by determining with to preview picture Preview graph arrangement mode, and show the above-mentioned preview graph to preview picture according to the preview graph arrangement mode.So as to side Just user's preview picture improves the efficiency of user's using terminal browsing pictures preview graph.

As shown in Fig. 2, the process of the method for Fig. 2 another display preview picture figure shown according to an exemplary embodiment The determining and above-mentioned process to the matched preview graph arrangement mode of preview picture is described in detail in figure, the embodiment, and this method can To be applied in terminal, also can be applied in server, comprising the following steps:

In step 201, it obtains to preview picture.

In step 202, will acquire it is above-mentioned be divided into preview picture it is one or more groups of.

In the present embodiment, if it is above-mentioned to preview picture small number, it can be disposably to above-mentioned to preview picture It is handled, if above-mentioned relatively more to preview picture quantity, batch processing can be carried out to preview picture to above-mentioned.Therefore, It can be divided into preview picture one or more groups of by above-mentioned, every group includes multiple (e.g., can be 10, be also possible to 15 etc.) To preview picture.It is appreciated that every group is waited for that the number of preview picture can be any amount, also, different groups to preview graph The number of piece may be the same or different, and not limit in terms of the number to preview picture that the disclosure includes to every group.

In the present embodiment, it in order to reach better effect, when preview picture is grouped, can will created to above-mentioned It builds the picture of time relatively and assigns to identical group.For example, what can be will acquire is above-mentioned when preview picture is according to creation Between sequence arranged, then the picture of predetermined number is successively taken to be grouped.Alternatively, in another example, it can also will create The picture that time is in identical predetermined amount of time (e.g., some period in one day, or on the same day etc.) is divided into one group.

In step 203, determine that every group is waited for that preview picture is matched respectively based on preset multiple preview graph arrangement templates Preview graph arrangement mode.

In the present embodiment, determine that every group is waited for the matched preview graph arrangement side of preview picture respectively in the same way Formula integrates these preview graph arrangement modes, so that it is determined that with to the matched preview graph arrangement mode of preview picture.

In step 204, the above-mentioned preview graph to preview picture is shown according to above-mentioned preview graph arrangement mode.

It should be noted that no longer going to live in the household of one's in-laws on getting married in above-mentioned Fig. 2 embodiment for the step identical with Fig. 1 embodiment It states, related content can be found in Fig. 1 embodiment.

The method of the display preview picture figure provided by the above embodiment of the disclosure, by will acquire to preview picture It is divided into one or more groups of, and determines that every group is waited for the matched preview graph arrangement mode of preview picture respectively, so that it is determined that with being needed The matched total preview graph arrangement mode of preview picture, and show according to the preview graph arrangement mode preview to preview picture Figure.So as to facilitate user's preview picture, the efficiency of user's using terminal browsing pictures preview graph is further increased.

As shown in figure 3, Fig. 3 is shown according to an exemplary embodiment a kind of to determine matched preview graph arrangement mode The flow chart of method, which, which is described in detail, waits for preview picture for any one group, determines matched preview graph arrangement side The process of formula, this method can be used in terminal, also can be applied in server, comprising the following steps:

In step 301, every preview graph desired size to preview picture in the group is determined.

In general, in preview picture it is possible that multiple similar pictures, for example, to a scene capture Multiple pictures, or the plurality of pictures etc. comprising same background difference personage.At this moment, more wishing will be similar to quality in picture The preview graph of preferable picture shows more larger.Therefore, in the present embodiment, first can by the group to preview graph Piece is divided into one or more classifications.

In the present embodiment, can the similarity based on picture to classifying in the group to preview picture.Specifically, Every can first be calculated in the group to other similarities to preview picture in preview picture and the group.In the present embodiment, may be used To calculate in the group every to other to preview picture in preview picture and the group by the Similarity Algorithm based on Hamming distance Similarity, above-mentioned similarity can also be calculated by the Similarity Algorithm based on Euclidean distance, can also be by being based on cosine The Similarity Algorithm of distance calculates above-mentioned similarity, it will be understood that can also be calculated by other methods in the group every to Other similarities to preview picture in preview picture and the group, the disclosure to not limiting in this respect.Then, count every in the group Open the similar number to preview picture to preview picture.In the present embodiment, the threshold value of a similarity can be preset, Similarity is more than or equal to two pictures of the predetermined threshold as mutual similar picture.Can will mutually similar two to Any one picture is known as another to the similar to preview picture of preview picture in preview picture.It is again that corresponding number is most To preview picture as cluster centre, carry out clustering, one or more classes will be divided into preview picture in the group Not.

Then, obtain in the group to the corresponding preview graph original dimension grade of preview picture.It in the present embodiment, can be with The display size section an of preview graph is preset, when showing preview graph, the display size of preview graph should be in the section In, display size section is then divided into multiple grades, the corresponding display size of each grade.Grade (can use numerical tabular Show) it is higher, corresponding display size is bigger.For example, it is assumed that the display size section of preview graph is [a, b], by the display size Section is divided into 1,2,3,4,5 five grade, the corresponding display size of each grade.Wherein, 1 grade of grade is minimum, corresponding aobvious Show having a size of a, 5 grades of grade highests, corresponding to show dimensions as b, 2,3,4 be intermediate grade, corresponding display size For m, n, s, these display sizes are all fallen in section [a, b].It should be noted that the display size of picture is equal in the present embodiment It can be as unit of pixel.

In the present embodiment, all there is a corresponding preview graph original dimension grade to preview picture, at the beginning of the preview graph Beginning size grades can be related with the corresponding picture quality to preview picture.Picture quality can by the clarity of picture, The noise of contrast, brightness and picture is measured.Specifically, the picture reconnaissance in the group to preview picture is obtained, so Each picture reconnaissance to preview picture is added with reference grade afterwards, with the initial desired size of the corresponding preview graph of determination Grade.

In the present embodiment, picture reconnaissance is a parameter for measuring picture quality, and the parameter is by picture matter Amount determines, and the parameter is identical as the unit of above-mentioned size grades.For example, clarity threshold, contrast can be preset Section, brightness section and noise threshold of picture etc..Assuming that the unit of above-mentioned size grades is 1, it is clear that clarity is less than The clarity factor for spending the picture of threshold value is set as -1, and the clarity factor more than or equal to the picture of clarity threshold is set as 1; The contrast factor for the picture that contrast is fallen in outside contrast section is set as -1, contrast falls in the figure in contrast section The contrast factor of piece is set as 1;The luminance factor for the picture that brightness is fallen in outside brightness section is set as -1, brightness falls in bright The luminance factor of picture in degree section is set as 1;The noise factor that noise is greater than the picture of noise threshold is set as -1, it is small It is set as 1 in the noise factor for the picture for being equal to noise threshold.For one to preview picture, by the picture clarity factor, Contrast factor, luminance factor and noise factor are added, and obtain the picture reconnaissance for measuring picture quality.

In the present embodiment, reference grade can be an intermediate grade, for example, it is assumed that sharing 5 grades, then can incite somebody to action 3rd grade is as intermediate grade, it is assumed that share 9 grades, then can using the 5th grade as intermediate grade, etc..

It should be noted that can also be using the quality of other parameters or the combination metric picture of parameter, the disclosure The specific setting aspect of picture reconnaissance is not limited.

Then, it is based on above-mentioned original dimension grade, determines every preview graph phase to preview picture of each classification respectively Size grades are hoped, to obtain every preview graph desired size class to preview picture in the group.Specifically, for any one Classification to preview picture, corresponding preview graph desired size class can be determined as follows: first judging the category Whether the quantity to preview picture is more than or equal to predetermined threshold (can be such as 2 to the predetermined threshold of the quantity of preview picture), if Less than predetermined threshold, then using the category to the corresponding preview graph original dimension grade of preview picture as preview graph desired size Grade.If it is greater than or equal to predetermined threshold, then need to repair the preview graph original dimension grade to preview picture of the category Just.When determination is needed to the category when preview graph original dimension grade of preview picture is modified, based on the category Size to the corresponding preview graph original dimension grade of preview picture is to the preview graph original dimension to preview picture of the category Grade is modified, to obtain every preview graph desired size class to preview picture of the category.

It in the present embodiment, can be in the following way to the preview graph original dimension grade to preview picture of the category It is modified: firstly, comparing the size to the corresponding preview graph original dimension grade of preview picture of the category, according to above-mentioned first Beginning size grades sequence from big to small obtain predetermined number (e.g., 1 or 2) to preview picture, as main picture, The other of the category are used as time picture to preview picture.The preview graph desired size class of main picture is modified to highest level (such as, it is assumed that be divided into 1,2,3,4,5 five grade, then no matter the preview graph original dimension grade of main picture be it is how many, by master map The preview graph desired size class of piece is modified to 5 grades of highest level), the preview graph desired size class of secondary picture is modified to most Inferior grade (such as, it is assumed that be divided into 1,2,3,4,5 five grade, then no matter the preview graph original dimension grade of secondary picture be it is how many, The preview graph desired size class of secondary picture is modified to low 1 grade most high).

Finally, determining corresponding preview graph desired size according to the preview graph desired size class to preview picture.Because The corresponding preview graph desired size of one grade of preview graph desired size therefore can be according to preview graph desired size etc. Grade determines corresponding preview graph desired size with the corresponding relationship of preview graph desired size.

In step 302, multiple test template groups are obtained, to generate the test template group set for corresponding to the group, wherein Each test template group includes one or more preset preview graphs arrangement templates.

In the present embodiment, preview graph arrangement template is used to define the arrangement mode of the preview graph of predetermined quantity, Ke Yiyong The predetermined quantity classifies to above-mentioned template, for example, the template of the arrangement mode for defining two preview graphs can be made For two figures arrange template, as shown in figure 4, template 401 and template 402 be two figures arrangement template.For defining three previews The template of the arrangement mode of figure can be used as three figures arrangement template, as shown in figure 5, template 501,502 template of template, 503 templates, 504 templates, 505 and template 506 are three figures arrangement template.

It should be noted that preview graph arrangement template is only capable of determining the arrangement position of preview graph, but it cannot determine preview graph Size because each preview graph has fixed the ratio of width to height (identical as corresponding the ratio of width to height to preview picture).Due to The width of preview graph arrangement template is fixed and (is highly not fixed), and can arrange the width of template, the width of preview graph according to preview graph Height ratio and preview graph arrangement mode calculate the size of the preview graph under the arrangement mode (by display size as unit of pixel). It is arranged for example, it is assumed that A, B, C tri- opens preview graph using the arrangement mode of template 501, also, A is located at upper left, B is located at A Lower section, C is located at right half part, if the ratio of width to height of A is RA, the ratio of width to height of B is RB, the ratio of width to height of C is RC, the width of template 501 For W.Because left-half two opens the equivalent width of figure, left-half depth-width ratio RAB=RA+RB.Again because of left and right two parts Height is consistent, so template depth-width ratio RABC=1/ (1/RAB+1/RC).Since the width of preview graph arrangement template is fixed as W, then The height h=W*R of preview graph arrangement templateABC, this is highly consistent with the height after C arrangement, therefore according to the ratio of width to height R of CCIt can To find out the width after C arrangement.Further, it is possible to find out the width after the arrangement of A and B, and can be according to the ratio of width to height of A and B Height after finding out A and B arrangement, to calculate the size of the preview graph under the arrangement mode (by display ruler as unit of pixel It is very little).It is appreciated that can also be calculated using with above-mentioned similar method in the arrangement side under the arrangement mode of other templates The size of preview graph under formula.

In the present embodiment, multiple preview graph arrangement templates can be preset, may include two figures arrangement template, three figures Arrangement template, four figures arrangement template etc..Then, one or more preview graph arrangements are obtained from preset preview graph arrangement template Template carries out any splicing, as test template group.Choose preview graph arrangement template when, be referred to the group to preview graph The quantity of piece, so that the quantity for the display area that test template group is distributed is exactly equal to the quantity to preview picture.Meet and surveys The quantity for the display area that die trial board group is distributed is equal to the test template group of the quantity term to preview picture, can be used as Test template group corresponding to the group.For example, it is assumed that the quantity to preview picture of a group is 8, then one can be arbitrarily chosen A two figures arrangement template, two three figures arrangement templates, constitutes the test template group for corresponding to the group.One can also arbitrarily be chosen Four figures arrangement template, two two figures arrangement templates, constitutes the test template group for corresponding to the group.Two four can also arbitrarily be chosen Figure arrangement template, constitutes the test template group for corresponding to the group.Multiple test template groups corresponding to the group may be constructed one Test template group set corresponding to the group.

In step 303, by the group to preview picture preview graph according to each survey in above-mentioned test template group set Die trial board group traverses different preview graph arrangement modes.

In the present embodiment, since one group is waited for that there are many quantity of preview picture, if being arranged according to a test template group Cloth can arrange for example, it is assumed that there is M, N two to open figure according to template 401 there are many kinds of arrangement mode, and just there are two types of rows Mode for cloth, one is M on a left side, and N is on the right side, and another kind is N on a left side, and M is on the right side.Therefore, it waits for that the quantity of preview picture is more for one group, presses The arrangement mode arranged according to a test template group is more (method of permutation and combination is more).It can be by the group to preview The preview graph of picture successively traverses different preview graphs according to each test template group in above-mentioned test template group set and arranges Mode.

In step 304, the corresponding expectation difference of every kind of preview graph arrangement mode is obtained based on above-mentioned desired size respectively Parameter.

In the present embodiment, it is expected that difference parameter is preview graph desired size and the preview graph reality embodied to preview picture A parameter of difference between size.The parameter is smaller, shows corresponding preview graph arrangement mode and the group to preview picture Matching degree is higher, and the preview graph arrangement mode is closer to ideal arrangement mode.

Specifically, for any one preview graph arrangement mode, corresponding expectation difference can be obtained in the following way Parameter: obtaining when arranging according to the preview graph arrangement mode, and every preview graph actual size to preview picture (can be in the group Obtain above-mentioned preview graph actual size according to method described in step 302), then, it is determined that in the group every to preview picture The difference of actual size and corresponding desired size, finally, calculate in the group every to preview picture actual size with it is corresponding The sum of absolute value of the difference of desired size, as corresponding expectation difference parameter.

In step 305, the preview graph arrangement mode corresponding to minimum expectation difference parameter is found out, as matched pre- Look at figure arrangement mode.

The method of the display preview picture figure provided by the above embodiment of the disclosure, by by the group to the pre- of preview picture Figure of looking at according to each test template group in test template group set traverses different preview graph arrangement modes, based on what is got Preview graph desired size obtains the corresponding expectation difference parameter of every kind of preview graph arrangement mode respectively, and finds out and correspond to minimum It is expected that the preview graph arrangement mode of difference parameter, as matched preview graph arrangement mode, and according to the preview graph arrangement mode Show that the preview graph to preview picture helps to improve user's using terminal browse graph so as to facilitate user's preview picture The efficiency of piece preview graph.

It should be noted that although describing the operation of the method for the present invention in the accompanying drawings with particular order, this is not required that Or hint must execute these operations in this particular order, or have to carry out operation shown in whole and be just able to achieve the phase The result of prestige.On the contrary, the step of describing in flow chart can change and execute sequence.Additionally or alternatively, it is convenient to omit certain Multiple steps are merged into a step and executed, and/or a step is decomposed into execution of multiple steps by step.

Corresponding with the aforementioned display embodiment of the method for preview picture figure, the disclosure additionally provides display preview picture figure The embodiment of device and its applied terminal and server.

As shown in fig. 6, Fig. 6 is a kind of disclosure device for showing preview picture figure shown according to an exemplary embodiment Block diagram, the device include: to obtain module 601, determining module 602, display module 603.

Wherein, module 601 is obtained, is configured as obtaining to preview picture.

Determining module 602 is configured to determine that and to the matched preview graph arrangement mode of preview picture.

Display module 603 is configured as showing the above-mentioned preview graph to preview picture according to above-mentioned preview graph arrangement mode.

As shown in fig. 7, Fig. 7 is the dress of the disclosure another display preview picture figure shown according to an exemplary embodiment Block diagram is set, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, determining module 602 may include: grouping submodule 701, Matched sub-block 702.

Wherein, be grouped submodule 701, be configured as will acquire it is above-mentioned be divided into preview picture it is one or more groups of.

Matched sub-block 702, be configured as determining respectively based on preset multiple preview graphs arrangement templates every group it is above-mentioned to The matched preview graph arrangement mode of preview picture.

As shown in figure 8, Fig. 8 is the dress of the disclosure another display preview picture figure shown according to an exemplary embodiment Block diagram is set, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 7, matched sub-block 702 may include: that desired size determines Submodule 801 generates submodule 802, traverses submodule 803, it is expected that difference parameter acquisition submodule 804, searches submodule 805。

Wherein, preview picture is waited for for any one group:

Desired size determines submodule 801, is configured to determine that in the group that every preview graph to preview picture it is expected ruler It is very little.

Submodule 802 is generated, is configured as obtaining multiple test template groups, to generate the test template group for corresponding to the group Set, wherein each above-mentioned test template group includes one or more preset preview graphs arrangement templates.

Traverse submodule 803, be configured as by the group to preview picture preview graph according to above-mentioned test template group set In each test template group traverse different preview graph arrangement modes.

It is expected that difference parameter acquisition submodule 804, is configured as obtaining every kind of preview graph respectively based on above-mentioned desired size The corresponding expectation difference parameter of arrangement mode.

Submodule 805 is searched, is configured as finding out the preview graph arrangement mode corresponding to minimum expectation difference parameter, is made For matched preview graph arrangement mode.

As shown in figure 9, Fig. 9 is the dress of the disclosure another display preview picture figure shown according to an exemplary embodiment Block diagram is set, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 8, desired size determines that submodule 801 may include: classification Submodule 901, original dimension grade acquisition submodule 902, desired size class acquisition submodule 903, desired size determine son Module 904.

Wherein, classification submodule 901, is configured as that one or more classifications will be divided into preview picture in the group.

Original dimension grade acquisition submodule 902, the preview graph to preview picture for being configured as obtaining in the group are corresponding Original dimension grade.

Desired size class acquisition submodule 903 is configured as determining each class respectively based on above-mentioned original dimension grade The other every preview graph desired size class to preview picture it is expected with obtaining every preview graph to preview picture in the group Size grades.

Desired size determines submodule 904, is configured as according to the above-mentioned preview graph desired size class to preview picture Determine corresponding preview graph desired size.

As shown in Figure 10, Figure 10 is the disclosure another display preview picture figure shown according to an exemplary embodiment Device block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 9, classification submodule 901 may include: computational submodule 1001, statistic submodule 1002 clusters submodule 1003.

Wherein, computational submodule 1001, be configured as calculating in the group every to preview picture with it is other to pre- in the group Look at the similarity of picture.

Statistic submodule 1002, two for being configured as above-mentioned similarity being more than or equal to predetermined threshold make to preview picture For mutual similar picture, every similar number to preview picture to preview picture in the group is counted.

Cluster submodule 1003, be configured as using corresponding number it is most to preview picture as cluster centre, progress Clustering will be divided into one or more classifications to preview picture in the group.

As shown in figure 11, Figure 11 is the disclosure another display preview picture figure shown according to an exemplary embodiment Device block diagram, on the basis of aforementioned embodiment illustrated in fig. 10, original dimension grade acquisition submodule 902 can wrap the embodiment Include: quality factor acquisition submodule 1101, add up submodule 1102.

Wherein, quality factor acquisition submodule 1101, be configured as obtaining in the group to the picture quality of preview picture because Son.

Cumulative submodule 1102, is configured as each above-mentioned picture reconnaissance to preview picture and reference grade phase Add, with the initial desired size class of the corresponding preview graph of determination.

As shown in figure 12, Figure 12 is the disclosure another display preview picture figure shown according to an exemplary embodiment Device block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 9, desired size determines that submodule 904 may include: to sentence Disconnected submodule 1201, corrects submodule 1202.

Wherein, for any one classification to preview picture:

Judging submodule 1201, is configured as judging whether the quantity to preview picture of the category is more than or equal to predetermined threshold Value.If being less than predetermined threshold, using the category to the corresponding preview graph original dimension grade of preview picture as the preview graph phase Hope size grades.If it is greater than or equal to predetermined threshold, then the preview graph original dimension grade to preview picture to the category is needed It is modified.

Submodule 1202 is corrected, is configured as when the determining preview graph original dimension to preview picture needed to the category When grade is modified, the size to the corresponding preview graph original dimension grade of preview picture based on the category is to the category Preview graph original dimension grade to preview picture is modified, to obtain every preview graph phase to preview picture of the category Hope size grades.

As shown in figure 13, Figure 13 is the disclosure another display preview picture figure shown according to an exemplary embodiment Device block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 12, amendment submodule 1202 may include: to compare submodule Block 1301, primary and secondary picture determine submodule 1302, and grade corrects submodule 1303.

Wherein, Comparative sub-module 1301, be configured as comparing the category to the initial ruler of the corresponding preview graph of preview picture The size of very little grade.

Primary and secondary picture determines submodule 1302, is configured as obtaining according to the sequence of above-mentioned original dimension grade from big to small Predetermined number to preview picture, as main picture, the category it is other to preview picture as time picture.

Grade corrects submodule 1303, is configured as the preview graph desired size class of main picture being modified to most high Grade, is modified to the lowest class for the preview graph desired size class of secondary picture.

As shown in figure 14, Figure 14 is the disclosure another display preview picture figure shown according to an exemplary embodiment Device block diagram, the embodiment is on the basis of aforementioned embodiment illustrated in fig. 8, it is expected that difference parameter acquisition submodule 804 can wrap It includes: actual size acquisition submodule 1401, size difference acquisition submodule 1402, parameter acquisition submodule 1403.

Wherein, for any one preview graph arrangement mode:

Actual size acquisition submodule 1401, when being configured as obtaining according to preview graph arrangement mode arrangement, in the group Every preview graph actual size to preview picture.

Size difference acquisition submodule 1402 is configured to determine that every preview graph actual size to preview picture in the group With the difference of corresponding desired size.

Parameter acquisition submodule 1403, be configured as calculating in the group every preview graph actual size to preview picture with The sum of the absolute value of the difference of corresponding desired size, as corresponding expectation difference parameter.

It should be appreciated that above-mentioned apparatus can be set in advance in terminal or server, the modes such as downloading can also be passed through It is loaded into terminal or server.Corresponding module in above-mentioned apparatus can cooperate with the module in terminal or server with Realize the scheme of display preview picture figure.

For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The modular unit of explanation may or may not be physically separated, the component shown as modular unit can be or Person may not be physical module unit, it can and it is in one place, or may be distributed over multiple network units.It can The purpose of disclosure scheme is realized to select some or all of the modules therein according to the actual needs.The common skill in this field Art personnel can understand and implement without creative efforts.

Correspondingly, the disclosure also provides a kind of terminal, which includes processor;For the executable finger of storage processor The memory of order;Wherein, which is configured as:

It obtains to preview picture;

It is determining and described to the matched preview graph arrangement mode of preview picture;

The preview graph to preview picture is shown according to the preview graph arrangement mode.

Correspondingly, the disclosure also provides a kind of server, which includes processor;It can be held for storage processor The memory of row instruction;Wherein, which is configured as:

It obtains to preview picture;

It is determining and described to the matched preview graph arrangement mode of preview picture;

The preview graph to preview picture is shown according to the preview graph arrangement mode.

Figure 15 is that an a kind of structure of device 1500 for showing preview picture figure shown according to an exemplary embodiment is shown It is intended to.For example, device 1500 can be mobile phone, and computer, digital broadcasting terminal, messaging device, game console, Tablet device, Medical Devices, body-building equipment, personal digital assistant etc..

Referring to Fig.1 5, device 1500 may include following one or more components: processing component 1502, memory 1504, Power supply module 1506, multimedia component 1508, audio component 1510, the interface 1512 of input/output (I/O), sensor module 1514 and communication component 1516.

The integrated operation of the usual control device 1500 of processing component 1502, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing element 1502 may include one or more processors 1520 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1502 may include one or more moulds Block, convenient for the interaction between processing component 1502 and other assemblies.For example, processing component 1502 may include multi-media module, To facilitate the interaction between multimedia component 1508 and processing component 1502.

Memory 1504 is configured as storing various types of data to support the operation in device 1500.These data Example includes the instruction of any application or method for operating on device 1500, contact data, telephone book data, Message, picture, video etc..Memory 1504 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.

Power supply module 1506 provides electric power for the various assemblies of device 1500.Power supply module 1506 may include power management System, one or more power supplys and other with for device 1500 generate, manage, and distribute the associated component of electric power.

Multimedia component 1508 includes the screen of one output interface of offer between described device 1500 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1508 includes a front camera and/or rear camera.When device 1500 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.

Audio component 1510 is configured as output and/or input audio signal.For example, audio component 1510 includes a wheat Gram wind (MIC), when device 1500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1504 or via communication Component 1516 is sent.In some embodiments, audio component 1510 further includes a loudspeaker, is used for output audio signal.

I/O interface 1512 provides interface, above-mentioned peripheral interface module between processing component 1502 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.

Sensor module 1514 includes one or more sensors, and the state for providing various aspects for device 1500 is commented Estimate.For example, sensor module 1514 can detecte the state that opens/closes of device 1500, the relative positioning of component, such as institute The display and keypad that component is device 1500 are stated, sensor module 1514 can be with detection device 1500 or device 1,500 1 The position change of a component, the existence or non-existence that user contacts with device 1500,1500 orientation of device or acceleration/deceleration and dress Set 1500 temperature change.Sensor module 1514 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1514 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor, microwave remote sensor or temperature sensor.

Communication component 1516 is configured to facilitate the communication of wired or wireless way between device 1500 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1500,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1516 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1516 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.

In the exemplary embodiment, device 1500 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.

In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1504 of instruction, above-metioned instruction can be executed by the processor 1520 of device 1500 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..

Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.

It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of method for showing preview picture figure, which is characterized in that the described method includes:
It obtains to preview picture;
It is determining and described to the matched preview graph arrangement mode of preview picture;
The preview graph to preview picture is shown according to the preview graph arrangement mode;
Wherein, the determination and described to the matched preview graph arrangement mode of preview picture, comprising:
It is divided into described in will acquire to preview picture one or more groups of;
Based on preset multiple preview graphs arrangement templates determine every group respectively described in the matched preview graph arrangement side of preview picture Formula;
Wherein, for, to preview picture, being determined as follows matched preview graph arrangement mode described in any one group:
Determine every preview graph desired size to preview picture in the group;
Multiple test template groups are obtained, to generate the test template group set for corresponding to the group, wherein each test template Group includes one or more preset preview graphs arrangement templates;
Preview graph by the group to preview picture is traversed according to each of the test template group set test template group Different preview graph arrangement modes;
The corresponding expectation difference parameter of every kind of preview graph arrangement mode is obtained respectively based on the desired size;
The preview graph arrangement mode corresponding to minimum expectation difference parameter is found out, as matched preview graph arrangement mode;
Wherein, every preview graph desired size to preview picture in the determination group, comprising:
One or more classifications will be divided into preview picture in the group;
Obtain the corresponding original dimension grade of the preview graph to preview picture in the group;
Based on the original dimension grade, every preview graph desired size etc. to preview picture of each classification is determined respectively Grade, to obtain every preview graph desired size class to preview picture in the group;
Corresponding preview graph desired size is determined according to the preview graph desired size class to preview picture.
2. the method according to claim 1, wherein described will be divided into one or more to preview picture in the group A classification, comprising:
Every is calculated in the group to other similarities to preview picture in preview picture and the group;
The similarity is more than or equal to two of predetermined threshold to preview picture as mutually similar picture, is counted in the group Every similar number to preview picture to preview picture;
Using the corresponding number it is most to preview picture be used as cluster centre, progress clustering, by the group to Preview picture is divided into one or more classifications.
3. the method according to claim 1, wherein the preview graph pair to preview picture obtained in the group The original dimension grade answered, comprising:
Obtain the picture reconnaissance in the group to preview picture;
Each picture reconnaissance to preview picture is added with reference grade, with the corresponding preview graph initial period of determination Hope size grades.
4. the method according to claim 1, wherein for the described to preview picture of any one classification, It is determined as follows corresponding preview graph desired size class:
Judge whether the quantity to preview picture of the category is more than or equal to predetermined threshold;If being less than predetermined threshold, by such It is other to the corresponding preview graph original dimension grade of preview picture as preview graph desired size class;If it is greater than or equal to predetermined threshold Value, then need to be modified the preview graph original dimension grade to preview picture of the category;
When determination is needed to the category when preview graph original dimension grade of preview picture is modified, based on the category Size to the corresponding preview graph original dimension grade of preview picture is to the preview graph original dimension to preview picture of the category Grade is modified, to obtain every preview graph desired size class to preview picture of the category.
5. according to the method described in claim 4, it is characterized in that, it is described based on the category to the corresponding preview of preview picture The size of figure original dimension grade is modified the preview graph original dimension grade to preview picture of the category, comprising:
Compare the size to the corresponding preview graph original dimension grade of preview picture of the category;
It is somebody's turn to do to preview picture as main picture according to the sequence acquisition predetermined number of the original dimension grade from big to small The other of classification are used as time picture to preview picture;
The preview graph desired size class of the main picture is modified to highest level, the preview graph of the secondary picture it is expected into ruler Very little grade is modified to the lowest class.
6. the method according to claim 1, wherein
For any one preview graph arrangement mode, corresponding expectation difference parameter is obtained in the following way:
When obtaining according to preview graph arrangement mode arrangement, every preview graph actual size to preview picture in the group;
Determine every preview graph actual size to preview picture and the difference of corresponding desired size in the group;
The sum of every preview graph actual size to preview picture and the absolute value of the difference of corresponding desired size in the group are calculated, As corresponding expectation difference parameter.
7. a kind of device for showing preview picture figure, which is characterized in that described device includes:
Module is obtained, is configured as obtaining to preview picture;
Determining module is configured to determine that with described to the matched preview graph arrangement mode of preview picture;
Display module is configured as the preview graph shown according to the preview graph arrangement mode Suo Shu to preview picture;
Wherein, the determining module includes:
Be grouped submodule, be configured as will acquire described in be divided into preview picture it is one or more groups of;
Matched sub-block, be configured as determining every group respectively based on preset multiple preview graphs arrangement templates described in preview picture Matched preview graph arrangement mode;
Wherein, the matched sub-block includes: that desired size determines submodule, generates submodule, submodule is traversed, it is expected that difference Parameter acquisition submodule searches submodule;
For described in any one group to preview picture:
Desired size determines submodule, is configured to determine that every preview graph desired size to preview picture in the group;
Submodule is generated, is configured as obtaining multiple test template groups, to generate the test template group set for corresponding to the group, In, each test template group includes one or more preset preview graphs arrangement templates;
Traverse submodule, be configured as by the group to preview picture preview graph according to each of described test template group set The test template group traverses different preview graph arrangement modes;
It is expected that difference parameter acquisition submodule, is configured as obtaining every kind of preview graph arrangement mode respectively based on the desired size Corresponding expectation difference parameter;
Submodule is searched, is configured as finding out the preview graph arrangement mode corresponding to minimum expectation difference parameter, as matching Preview graph arrangement mode;
Wherein, the desired size determines that submodule includes:
Classification submodule, is configured as that one or more classifications will be divided into preview picture in the group;
Original dimension grade acquisition submodule is configured as obtaining the corresponding initial ruler of the preview graph to preview picture in the group Very little grade;
Desired size class acquisition submodule is configured as determining the every of each classification respectively based on the original dimension grade The preview graph desired size class to preview picture is opened, to obtain every preview graph desired size etc. to preview picture in the group Grade;
Desired size determines submodule, is configured as determining correspondence according to the preview graph desired size class to preview picture Preview graph desired size.
8. device according to claim 7, which is characterized in that the classification submodule includes:
Computational submodule, be configured as calculating in the group every it is other to the similar of preview picture to the group to preview picture Degree;
Statistic submodule is configured as two using the similarity more than or equal to predetermined threshold to preview picture as mutually mutual As picture, count every similar number to preview picture to preview picture in the group;
Cluster submodule, be configured as using the corresponding number it is most to preview picture as cluster centre, clustered Analysis, will be divided into one or more classifications to preview picture in the group.
9. device according to claim 7, which is characterized in that the original dimension grade acquisition submodule, comprising:
Quality factor acquisition submodule is configured as obtaining the picture reconnaissance in the group to preview picture;
Cumulative submodule, is configured as each picture reconnaissance to preview picture being added with reference grade, with true The fixed corresponding initial desired size class of preview graph.
10. device according to claim 7, which is characterized in that the desired size class acquisition submodule includes: judgement Submodule corrects submodule;
For the described to preview picture of any one classification:
Judging submodule, is configured as judging whether the quantity to preview picture of the category is more than or equal to predetermined threshold;If small In predetermined threshold, then using the category to the corresponding preview graph original dimension grade of preview picture as preview graph desired size etc. Grade;If it is greater than or equal to predetermined threshold, then need to be modified the preview graph original dimension grade to preview picture of the category;
Submodule is corrected, is configured as needing to carry out the preview graph original dimension grade to preview picture of the category when determining When amendment, the size to the corresponding preview graph original dimension grade of preview picture based on the category is to the category to preview graph The preview graph original dimension grade of piece is modified, to obtain every preview graph desired size etc. to preview picture of the category Grade.
11. device according to claim 10, which is characterized in that the amendment submodule includes:
Comparative sub-module is configured as comparing the size to the corresponding preview graph original dimension grade of preview picture of the category;
Primary and secondary picture determines submodule, is configured as obtaining predetermined number according to the sequence of the original dimension grade from big to small To preview picture, as main picture, the category it is other to preview picture as time picture;
Grade corrects submodule, is configured as the preview graph desired size class of the main picture being modified to highest level, will The preview graph desired size class of the secondary picture is modified to the lowest class.
12. device according to claim 7, which is characterized in that expectation difference parameter acquisition submodule, comprising: practical ruler Very little acquisition submodule, size difference acquisition submodule, parameter acquisition submodule;
For any one preview graph arrangement mode:
Actual size acquisition submodule is configured as obtaining when arranging according to the preview graph arrangement mode, in the group every to pre- Look at the preview graph actual size of picture;
Size difference acquisition submodule, be configured to determine that in the group every preview graph actual size to preview picture with it is corresponding The difference of desired size;
Parameter acquisition submodule is configured as calculating every preview graph actual size to preview picture and corresponding phase in the group The sum of the absolute value of the difference for hoping size, as corresponding expectation difference parameter.
13. a kind of terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It obtains to preview picture;
It is determining and described to the matched preview graph arrangement mode of preview picture;
The preview graph to preview picture is shown according to the preview graph arrangement mode;
Wherein, the determination and described to the matched preview graph arrangement mode of preview picture, comprising:
It is divided into described in will acquire to preview picture one or more groups of;
Based on preset multiple preview graphs arrangement templates determine every group respectively described in the matched preview graph arrangement side of preview picture Formula;
Wherein, for, to preview picture, being determined as follows matched preview graph arrangement mode described in any one group:
Determine every preview graph desired size to preview picture in the group;
Multiple test template groups are obtained, to generate the test template group set for corresponding to the group, wherein each test template Group includes one or more preset preview graphs arrangement templates;
Preview graph by the group to preview picture is traversed according to each of the test template group set test template group Different preview graph arrangement modes;
The corresponding expectation difference parameter of every kind of preview graph arrangement mode is obtained respectively based on the desired size;
The preview graph arrangement mode corresponding to minimum expectation difference parameter is found out, as matched preview graph arrangement mode;
Wherein, every preview graph desired size to preview picture in the determination group, comprising:
One or more classifications will be divided into preview picture in the group;
Obtain the corresponding original dimension grade of the preview graph to preview picture in the group;
Based on the original dimension grade, every preview graph desired size etc. to preview picture of each classification is determined respectively Grade, to obtain every preview graph desired size class to preview picture in the group;
Corresponding preview graph desired size is determined according to the preview graph desired size class to preview picture.
14. a kind of server characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It obtains to preview picture;
It is determining and described to the matched preview graph arrangement mode of preview picture;
The preview graph to preview picture is shown according to the preview graph arrangement mode;
Wherein, the determination and described to the matched preview graph arrangement mode of preview picture, comprising:
It is divided into described in will acquire to preview picture one or more groups of;
Based on preset multiple preview graphs arrangement templates determine every group respectively described in the matched preview graph arrangement side of preview picture Formula;
Wherein, for, to preview picture, being determined as follows matched preview graph arrangement mode described in any one group:
Determine every preview graph desired size to preview picture in the group;
Multiple test template groups are obtained, to generate the test template group set for corresponding to the group, wherein each test template Group includes one or more preset preview graphs arrangement templates;
Preview graph by the group to preview picture is traversed according to each of the test template group set test template group Different preview graph arrangement modes;
The corresponding expectation difference parameter of every kind of preview graph arrangement mode is obtained respectively based on the desired size;
The preview graph arrangement mode corresponding to minimum expectation difference parameter is found out, as matched preview graph arrangement mode;
Wherein, every preview graph desired size to preview picture in the determination group, comprising:
One or more classifications will be divided into preview picture in the group;
Obtain the corresponding original dimension grade of the preview graph to preview picture in the group;
Based on the original dimension grade, every preview graph desired size etc. to preview picture of each classification is determined respectively Grade, to obtain every preview graph desired size class to preview picture in the group;
Corresponding preview graph desired size is determined according to the preview graph desired size class to preview picture.
CN201511017075.1A 2015-12-29 2015-12-29 Show method, apparatus, terminal and the server of preview picture figure CN105677731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511017075.1A CN105677731B (en) 2015-12-29 2015-12-29 Show method, apparatus, terminal and the server of preview picture figure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511017075.1A CN105677731B (en) 2015-12-29 2015-12-29 Show method, apparatus, terminal and the server of preview picture figure

Publications (2)

Publication Number Publication Date
CN105677731A CN105677731A (en) 2016-06-15
CN105677731B true CN105677731B (en) 2019-05-21

Family

ID=56297944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511017075.1A CN105677731B (en) 2015-12-29 2015-12-29 Show method, apparatus, terminal and the server of preview picture figure

Country Status (1)

Country Link
CN (1) CN105677731B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770577A (en) * 2016-08-16 2018-03-06 北京优朋普乐科技有限公司 For the method and apparatus of setting of the programs picture
CN106780314A (en) * 2016-12-29 2017-05-31 维沃移动通信有限公司 The method and mobile terminal of a kind of picture mosaic preview
CN107016124B (en) * 2017-04-27 2018-11-30 维沃移动通信有限公司 A kind of image processing method, mobile terminal and Cloud Server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955481A (en) * 2014-04-03 2014-07-30 小米科技有限责任公司 Picture displaying method and device
CN104123339A (en) * 2014-06-24 2014-10-29 小米科技有限责任公司 Method and device for image management
CN104239315A (en) * 2013-06-09 2014-12-24 北京三星通信技术研究有限公司 Picture correlation method
CN104461300A (en) * 2014-12-15 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Picture preview method and picture preview system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8429530B2 (en) * 2009-06-11 2013-04-23 Apple Inc. User interface for media playback
US20150052136A1 (en) * 2013-08-19 2015-02-19 Qin Zhang Image Categorization Database and Related Applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239315A (en) * 2013-06-09 2014-12-24 北京三星通信技术研究有限公司 Picture correlation method
CN103955481A (en) * 2014-04-03 2014-07-30 小米科技有限责任公司 Picture displaying method and device
CN104123339A (en) * 2014-06-24 2014-10-29 小米科技有限责任公司 Method and device for image management
CN104461300A (en) * 2014-12-15 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Picture preview method and picture preview system

Also Published As

Publication number Publication date
CN105677731A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
US8605221B2 (en) Determining key video snippets using selection criteria to form a video summary
US8766984B2 (en) Graphics rendering methods for satisfying minimum frame rate requirements
US8571358B2 (en) Methods and apparatuses for facilitating content-based image retrieval
US20110022982A1 (en) Display processing device, display processing method, and display processing program
JP5934653B2 (en) Image classification device, image classification method, program, recording medium, integrated circuit, model creation device
EP2173089A2 (en) Information processing apparatus and method and computer program
US8869198B2 (en) Producing video bits for space time video summary
CN104104823A (en) Mobile terminal and tag editing method thereof
WO2008103412A1 (en) Representative image selection based on hierarchical clustering
KR20150034724A (en) Image identification and organisation according to a layout without user intervention
RU2637474C2 (en) Method and device for controlling background application and terminal device
KR101906827B1 (en) Apparatus and method for taking a picture continously
US20090324098A1 (en) Mobile phone with selective photographic system and method
WO2015169061A1 (en) Image segmentation method and device
KR20160132810A (en) Methods and apparatus for album display
JP5872142B2 (en) UI providing method and display device using the same
KR101759453B1 (en) Automated image cropping and sharing
CN104216632A (en) Method and device for displaying application icons
CN104615769B (en) Picture classification method and device
CN104063123A (en) Icon displaying method and device
EP3135028B1 (en) Realtime capture exposure adjust gestures
US8996983B2 (en) Device and a method for annotating content
CN103310005A (en) Thumbnail display method and device
JP6267363B2 (en) Method and apparatus for taking images
CN103914523A (en) Page rollback controlling method and page rollback controlling device

Legal Events

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