CN106372664A - Picture aggregation method and device - Google Patents
Picture aggregation method and device Download PDFInfo
- Publication number
- CN106372664A CN106372664A CN201610781008.5A CN201610781008A CN106372664A CN 106372664 A CN106372664 A CN 106372664A CN 201610781008 A CN201610781008 A CN 201610781008A CN 106372664 A CN106372664 A CN 106372664A
- Authority
- CN
- China
- Prior art keywords
- time
- pictures
- aggregated
- picture
- place
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000002776 aggregation Effects 0.000 title claims abstract description 58
- 238000004220 aggregation Methods 0.000 title claims abstract description 58
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000009191 jumping Effects 0.000 claims description 10
- 238000005516 engineering process Methods 0.000 abstract description 6
- 230000004931 aggregating effect Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000006116 polymerization reaction Methods 0.000 description 4
- 241000282414 Homo sapiens Species 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Studio Devices (AREA)
Abstract
The present invention discloses a picture aggregation method and device, and relates to the data processing technology field. The objective of the invention is to solve the problem that the user browse experience is bad through picture aggregation according to the shooting time or the shooting place. The method comprises: obtaining pictures to be aggregated; collecting the pictures to be aggregated in a plurality of time sets according to the shooting time of the pictures to be aggregated; collecting the pictures to the aggregated in a plurality of place sets according to the shooting places of the pictures to be aggregated and the time sets; and outputting the results of the place sets of the pictures to be aggregated. The picture aggregation method and device are mainly applied in the picture aggregation process.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for picture aggregation.
Background
With the development of science and technology and the progress of technology, photographing equipment is more and more popular, and the shooting quantity of pictures is also more and more large. When pictures are stored in the terminal, the pictures are usually arranged according to the shooting sequence, and if more pictures are displayed on one display page, the display page looks disordered, and the picture desired by the user is difficult to find from the display page.
At present, a picture aggregation technology is applied to software existing in the market, so that a user can be helped to sort pictures shot within a period of time, the pictures are shown to the user by taking a day as a node, and the user is helped to browse or edit the pictures according to a time sequence. Some technologies can also show the shooting location of the picture to the user, so as to help the user know which pictures are shot at which place and which place.
If the picture of the user goes to a plurality of places in a short time, the picture cannot be distinguished, for example, the user drives a car or takes a plane to go to another city, and the position of the user is greatly changed in a short time. The time span of the user's pictures is divided into two days to be shown to the user if the time span exceeds one day, such as the time span of year activities like the year-round of the New year's day, the spring festival, etc. When too many pictures are taken in one place in one day, the pictures cannot be aggregated again, so that the pictures in one day are all displayed together, and the browsing experience of a user is influenced.
Disclosure of Invention
The invention aims to provide a method and a device for aggregating pictures, which can solve the problem that browsing experience of a user is poor due to aggregation of pictures according to shooting time or shooting places.
According to an embodiment of the present invention, in one aspect, a method for picture aggregation is provided, including:
step S100: acquiring a picture to be aggregated;
step S200: according to the shooting time of the pictures to be aggregated, the pictures to be aggregated are placed in a plurality of time sets;
step S300: according to the shooting place and the time set of the picture to be aggregated, the picture to be aggregated is placed in a plurality of place sets;
step S400: outputting a place set result of the picture to be aggregated;
wherein, the step S200 specifically includes:
step S210, arranging the pictures to be aggregated according to the time sequence according to the shooting time of the pictures to be aggregated;
step S220, setting the shooting time of each picture in the pictures to be aggregated into a time set, wherein the number of the time sets is equal to that of the pictures to be aggregated, and the central time of the time set is the shooting time of each picture in the pictures to be aggregated;
step S230, calculating the time difference between the shooting time of each picture in the pictures to be aggregated and the center time of each time set according to the arrangement sequence;
step S240, if the time difference is smaller than a preset time, placing the to-be-aggregated picture in the corresponding time set, and recalculating the time set center time;
step S250, if the time difference is not less than the preset time, setting a new time set according to the shooting time of the picture to be aggregated, and arranging the picture to be aggregated into the new time set, and adding the new time set into the time set;
step S260, deleting the time set of the picture to be aggregated which is not placed after the picture to be aggregated is placed;
and step S270, if the time set is changed or the aggregation times are less than the first preset aggregation times, jumping back to the step S200.
In another aspect, an apparatus for aggregating pictures is provided, where the apparatus includes:
the acquiring unit is used for acquiring a picture to be aggregated;
the control unit is used for arranging the pictures with aggregation into a plurality of time sets according to the shooting time of the pictures to be aggregated;
the control unit is also used for arranging the pictures to be aggregated into a plurality of place sets according to the shooting places and the time sets of the pictures to be aggregated;
the output unit is used for outputting the location set result of the picture to be aggregated;
wherein the control unit includes:
the sorting module is used for sorting the pictures to be aggregated according to the shooting time of the pictures to be aggregated according to the time sequence;
the first setting module is used for setting the shooting time of each picture in the pictures to be aggregated into a time set, the number of the time sets is equal to that of the pictures to be aggregated, and the central time of the time set is the shooting time of each picture in the pictures to be aggregated;
the first calculation module is used for calculating the time difference between the shooting time of each picture in the pictures to be aggregated and the center time of each time set according to the arrangement sequence;
the first homing module is used for homing the to-be-aggregated picture into the corresponding time set and recalculating the central time of the time set if the time difference is smaller than the preset time;
the first resetting module is used for setting a new time set according to the shooting time of the picture to be aggregated if the time difference is not less than the preset time, and arranging the picture to be aggregated into the new time set and adding the new time set into the time set;
the first deleting module is used for deleting the time set of the picture to be aggregated which is not placed after the picture to be aggregated is placed;
and the first jumping module is used for jumping back to the control unit if the time set is changed or the aggregation times are less than a first preset aggregation times.
According to the technical scheme, the method and the device for aggregating the pictures, provided by the invention, comprise the steps of obtaining the pictures to be aggregated, arranging the pictures to be aggregated into a plurality of time sets according to the shooting time of the pictures to be aggregated, arranging the pictures to be aggregated into a plurality of place sets according to the places and the time sets of the pictures to be aggregated, and finally outputting the place set results of the pictures to be aggregated. Compared with the prior art, the method and the device can divide the pictures to be aggregated by time periods according to the shooting time of the pictures to be aggregated, and put the pictures with similar shooting time into the same time set. And then according to the shooting place of the pictures, placing the pictures which are already placed in the time set into a plurality of place sets again to be aggregated, and generating a final aggregation result. The final aggregation result can aggregate pictures with short time intervals and time spans exceeding one day into one set, and can also aggregate pictures with large changes in points in a short time into different sets. The output location collection result of the pictures to be aggregated is more in line with the browsing requirements of the user, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow diagram illustrating a method for picture aggregation in accordance with a preferred embodiment;
FIG. 2 is a flowchart illustrating a method of step S200 of FIG. 1 in accordance with a preferred embodiment;
FIG. 3 is a flowchart illustrating a method of step S300 shown in FIG. 1 in accordance with a preferred embodiment;
FIG. 4 is a block diagram illustrating an apparatus for picture aggregation in accordance with a preferred embodiment;
FIG. 5 is a block diagram of a control unit according to an embodiment of the present invention;
FIG. 6 is a block diagram illustrating the components of a control unit according to an embodiment of the present invention;
fig. 7 is a block diagram illustrating a control unit according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a method for aggregating pictures, as shown in fig. 1, the method comprises:
s100, acquiring a picture to be aggregated;
and acquiring the pictures to be aggregated from the picture database, wherein the pictures to be aggregated can be all pictures in the picture database or partial pictures in the picture database. Before the picture to be aggregated is obtained, an obtaining rule is set, and then the picture to be aggregated is obtained according to the preset obtaining rule. The obtaining rule may be set according to time, or according to location, or according to whether the pictures are aggregated, and the device manner of obtaining the rule is not limited in the embodiment of the present invention.
Acquiring a picture to be aggregated, specifically including acquiring attribute information and content information of the picture to be aggregated; and acquiring the shooting time and the shooting place of the picture to be aggregated according to the attribute information, wherein the shooting place is recorded in a longitude and latitude mode.
The attribute information refers to characteristic information of the pictures to be aggregated, including picture size, shooting time, shooting location, storage format, resolution, and the like. The content information is picture information of the picture to be aggregated and is necessary data for displaying the complete picture. And acquiring attribute information of the to-be-aggregated picture to be subsequently aggregated to be conveniently aggregated.
S200, arranging the pictures to be aggregated into a plurality of time sets according to the shooting time of the pictures to be aggregated;
the shooting time refers to the time for generating the picture, and the time for generating the picture can be the time for shooting the picture, can also be the time for downloading the picture, or can be the time for drawing the picture, and in the embodiment of the invention, the shooting time is related to the source of the picture. And arranging the pictures to be aggregated into a plurality of time sets according to the time difference of the shooting time of different pictures. If the time span of the user's photos exceeds one day, such as the time span of the year activities like the New year's day and the spring festival, the photos of the user cannot be displayed in two days because the time set is put in the process of putting the to-be-aggregated photos according to the time difference of the shooting time of the photos, which accords with the common thinking habit of human beings and improves the user experience.
Step S300, arranging the pictures to be aggregated into a plurality of place sets according to the shooting places and the time sets of the pictures to be aggregated;
the shooting location refers to a location where a picture is generated. After the pictures to be aggregated are all placed in the time set, the pictures to be aggregated are re-aggregated according to the shooting places and the time set of the pictures to be aggregated, and the pictures to be aggregated are placed in a plurality of place sets. If the user goes to a plurality of places in a short time, such as driving a car or sitting an airplane to another city, the positions change greatly in a short time, and the different places cannot be distinguished by being classified into the same time set according to the shooting time. According to the method in the step, the time sets which are already put in order are put in order again, so that the photos in different places in a short time can be separated, the common thinking habits of human beings are met, and the user experience is improved.
S400, outputting a place set result of the picture to be aggregated;
and outputting the aggregated place aggregation result after the step S200 and the step S300 so as to display the place aggregation result on a display screen of the client. Before outputting the result of the location set, the method further includes generating identification information of the location set, where the identification information may be information of a first picture in the location set, may also be an average value of information of all pictures in the location set, and may also be information manually input by a user.
As shown in fig. 2, the step S200 specifically includes:
step S210, arranging the pictures to be aggregated according to the time sequence according to the shooting time of the pictures to be aggregated;
the pictures to be aggregated are arranged according to a time sequence, which may be arranged in a forward direction or a reverse direction, and the embodiments of the present invention are not limited.
Step S220, setting the shooting time of each picture in the pictures to be aggregated into a time set, wherein the number of the time sets is equal to that of the pictures to be aggregated, and the central time of the time set is the shooting time of each picture in the pictures to be aggregated;
step S230, calculating the time difference between the shooting time of each picture in the pictures to be aggregated and the center time of each time set according to the arrangement sequence;
step 240, if the time difference is smaller than a preset time, the pictures to be aggregated are placed in the corresponding time set, and the time set center time is recalculated;
and by comparing the time difference with the preset time, the pictures to be aggregated, of which the time difference is smaller than the preset time, are classified into a corresponding time set, and the pictures to be aggregated in the similar time periods are aggregated into the same time set. And recalculating the time set center time, namely the intermediate time between the picture taking time farthest from the current time and the picture taking time closest to the current time in the time set, wherein for example, the picture taking time farthest from the current time is 10 points at 5 and 10 months in 2016, the picture taking time closest to the current time is 16 points at 5 and 10 months in 2016, and then the intermediate time is 13 points at 5 and 10 months in 2016.
Step S250, if the time difference is not less than the preset time, setting a new time set according to the shooting time of the picture to be aggregated, and arranging the picture to be aggregated into the new time set, and adding the new time set into the time set;
because there are time sets corresponding to the pictures to be aggregated in the initially set time sets, however, as the pictures to be aggregated are placed in different time sets one by one, the central time of the time sets also changes, which may cause some pictures not to be placed in the existing sets, and new time sets need to be set to store the pictures that are not placed in the existing sets.
Step S260, deleting the time set of the picture to be aggregated which is not placed after the picture to be aggregated is placed;
because the central time of the time set is constantly changed, the time set which is initially set may not contain the pictures to be aggregated, and the time set which is not classified into the pictures to be aggregated is deleted, so that the phenomenon that the empty time set is output and browsing trouble is caused to a user is avoided.
And step S270, if the time set is changed or the aggregation times are less than the first preset aggregation times, jumping back to the step S200.
The step is to set the jumping-out condition of the cyclic polymerization process of the pictures to be polymerized so as to avoid the situation of infinite cycle in the polymerization process. The step comprises two jumping-out conditions, and the completion of the time aggregation of the pictures to be aggregated is indicated as long as any one of the two jumping-out conditions is met.
According to the technical scheme, the method and the device for aggregating the pictures, provided by the invention, comprise the steps of obtaining the pictures to be aggregated, arranging the pictures to be aggregated into a plurality of time sets according to the shooting time of the pictures to be aggregated, arranging the pictures to be aggregated into a plurality of place sets according to the places and the time sets of the pictures to be aggregated, and finally outputting the place set results of the pictures to be aggregated. Compared with the prior art, the method and the device can divide the pictures to be aggregated by time periods according to the shooting time of the pictures to be aggregated, and put the pictures with similar shooting time into the same time set. And then according to the shooting place of the pictures, placing the pictures which are already placed in the time set into a plurality of place sets again to be aggregated, and generating a final aggregation result. The final aggregation result can aggregate pictures with short time intervals and time spans exceeding one day into one set, and can also aggregate pictures with large changes in points in a short time into different sets. The output location collection result of the pictures to be aggregated is more in line with the browsing requirements of the user, and the user experience is improved.
As shown in fig. 3, the step S300 specifically includes:
step S310, setting a place set for the shooting place of each set picture in the time set, wherein the center of the place set is the longitude and latitude of the shooting place of the set picture;
the time set in this step is the intermediate aggregation result of the to-be-aggregated picture processed in step S200. In the step, the pictures are collected again by collecting one time set and collecting one time set. The shooting place of the collective picture refers to the geographical position of the picture when the picture is shot, the geographical position of the picture is accurately determined by taking the longitude and the latitude as coordinates. The shooting location refers to a location where the picture is generated.
Step S320, calculating the geographical distance between the shooting place of the set picture in each time set and the center of each place set;
calculating the geographic distance, specifically comprising: calculating the latitude difference between the shooting place of the set picture and the center of the set of places; calculating the longitude difference between the shooting place of the set picture and the center of the set of places; and calculating the geographic distance according to the latitude difference and the longitude difference, wherein the geographic distance is a Euclidean distance.
Calculating the geographical distance, calculating the geographical distance between the shooting place of one set of pictures and the center of the set of places, and then performing the next step, or calculating the geographical distances between all the set of pictures in the time set and the center of the set of places, and then performing the next step.
Step S330, if the geographic distance is smaller than a preset distance, the collected pictures are placed in the corresponding place set according to the set picture, and the place set center is recalculated;
similar to step S240 shown in fig. 2, the collective picture is put in place, and the location center is recalculated.
Step S340, if the geographic distance is not less than the preset distance, setting a new place set according to the shooting places of the set pictures, arranging the set pictures into the new place set, and adding the new place set into the place set;
step S350, deleting the place sets of the non-set pictures after the set pictures are set;
step S360, if the place set is changed or the aggregation times are less than a second preset aggregation times, returning to step S300.
The step is to set the jumping-out condition of the cyclic polymerization process of the pictures to be polymerized so as to avoid the situation of infinite cycle in the polymerization process. The step comprises two jumping-out conditions, and the completion of the place aggregation of the pictures to be aggregated is indicated as long as any one of the two jumping-out conditions is met.
Step S200 is similar to the steps of the method described in step S300, and the above steps are repeated until all time sets are put together again.
Step S370, counting the number of pictures in the place set if the place set is not changed or the aggregation times are equal to a second preset aggregation times;
and counting the number of the pictures in the place sets, namely counting the picture data in each place set.
Step 380, if the number of the pictures is larger than a preset number, splitting the place set into a plurality of sub-place sets;
if the number of pictures in one set is too large, the user needs to repeatedly slide and browse the pictures when browsing one set, which brings certain trouble to the user, so that the place set needs to be split. Splitting the place set into a plurality of sub-place sets, splitting the place set according to a preset number, starting from a first picture according to the sequence of the pictures, and generating the first sub-place set when the number of the pictures reaches the preset number, so as to generate the plurality of sub-place sets.
And step 390, if the number of the pictures is not greater than the preset number, sending the current aggregated picture.
When too many photos are taken in one place in one time period, the photos cannot be aggregated again, so that the photos in one day are all displayed together, and the browsing experience of a user is influenced. By aggregating the pictures in the location sets again, the number of pictures in each set is not too large, so as to meet the browsing experience of the user.
As a specific implementation of the method shown in fig. 1 to fig. 3, the present invention further provides an apparatus for picture aggregation, which includes an obtaining unit 41, a control unit 42, and an output unit 43, as shown in fig. 4. Wherein,
an obtaining unit 41, configured to obtain a picture to be aggregated;
the control unit 42 is configured to group the to-be-aggregated pictures into a plurality of time sets according to the shooting time of the to-be-aggregated pictures;
the control unit 42 is further configured to group the pictures to be aggregated into a plurality of location sets according to the locations of the pictures to be aggregated and the time sets;
an output unit 43, configured to output a location aggregation result of the to-be-aggregated picture;
as shown in fig. 5, the control unit 42 includes:
a sorting module 4201, configured to arrange the pictures to be aggregated in a time sequence according to the shooting time of the pictures to be aggregated;
a first setting module 4202, configured to set a time set for the shooting time of each of the pictures to be aggregated, where the number of the time sets is equal to the number of the pictures to be aggregated, and the center time of the time set is the shooting time of each of the pictures to be aggregated;
a first calculating module 4203, configured to calculate, according to the arrangement order, a time difference between a shooting time of each picture in the pictures to be aggregated and a center time of each time set;
a first arranging module 4204, configured to arrange the to-be-aggregated picture in the corresponding time set if the time difference is smaller than a preset time, and recalculate the center time of the time set;
a first resetting module 4205, configured to set a new time set according to the shooting time of the to-be-aggregated picture if the time difference is not less than a preset time, place the to-be-aggregated picture in the new time set, and add the new time set to the time set;
a first deleting module 4206, configured to delete the time set in which the to-be-aggregated picture is not placed after the to-be-aggregated picture is placed;
a first skipping module 4207, configured to skip back to the control unit 42 if the time set changes or the aggregation times are smaller than a first preset aggregation times.
Further, as shown in fig. 6, the control unit 42 further includes:
a second setting module 4208, configured to set a location set for each shooting location of the set pictures in the time set, where the center of the location set is the longitude and latitude of the shooting location of the set picture;
a second calculation module 4209, configured to calculate a geographic distance between a location where the collection picture in each of the time collections is taken and a center of each of the location collections;
a second homing module 4210, configured to, if the geographic distance is smaller than a preset distance, home the set pictures to the corresponding location set according to the set picture, and recalculate the location set center;
a second resetting module 4211, configured to set a new location set according to the shooting locations of the set pictures if the geographic distance is not less than the preset distance, place the set pictures in the new location set, and add the new location set to the location set;
a second deleting module 4212, configured to delete a location set where the set picture is not set after the set picture is set;
a second jumping module 4213, configured to jump back to the control unit 42 if the location set changes or the aggregation times is smaller than a second preset aggregation time.
Further, the obtaining unit 41 is further configured to:
acquiring attribute information and content information of the picture to be aggregated;
and acquiring the shooting time and the shooting place of the picture to be aggregated according to the attribute information, wherein the shooting place is recorded in a longitude and latitude mode.
Further, the second computing module 4209 is further configured to:
calculating the latitude difference between the shooting place of the set picture and the center of the set of places;
calculating the longitude difference between the shooting place of the set picture and the center of the set of places;
and calculating the geographic distance according to the latitude difference and the longitude difference, wherein the geographic distance is a Euclidean distance.
Further, as shown in fig. 7, the control unit 42 further includes:
a counting module 4214, configured to count, after the place set in which the set pictures are not included is deleted, the number of pictures in the place set if the place set is not changed or the number of times of aggregation is equal to a second preset number of times of aggregation;
a splitting module 4215, configured to split the location set into a plurality of sub-location sets if the number of pictures is greater than a preset number;
a sending module 4216, configured to send the current aggregated picture if the number of pictures is not greater than the preset number.
According to the technical scheme, the method and the device for aggregating the pictures, provided by the invention, comprise the steps of obtaining the pictures to be aggregated, arranging the pictures to be aggregated into a plurality of time sets according to the shooting time of the pictures to be aggregated, arranging the pictures to be aggregated into a plurality of place sets according to the places and the time sets of the pictures to be aggregated, and finally outputting the place set results of the pictures to be aggregated. Compared with the prior art, the method and the device can divide the pictures to be aggregated by time periods according to the shooting time of the pictures to be aggregated, and put the pictures with similar shooting time into the same time set. And then according to the shooting place of the pictures, placing the pictures which are already placed in the time set into a plurality of place sets again to be aggregated, and generating a final aggregation result. The final aggregation result can aggregate pictures with short time intervals and time spans exceeding one day into one set, and can also aggregate pictures with large changes in points in a short time into different sets. The output location collection result of the pictures to be aggregated is more in line with the browsing requirements of the user, and the user experience is improved.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (10)
1. A method for picture aggregation, the method comprising:
s100, acquiring a picture to be aggregated;
s200, arranging the pictures to be aggregated into a plurality of time sets according to the shooting time of the pictures to be aggregated;
step S300, arranging the pictures to be aggregated into a plurality of place sets according to the shooting places and the time sets of the pictures to be aggregated;
s400, outputting a place set result of the picture to be aggregated;
wherein, the step S200 specifically includes:
step S210, arranging the pictures to be aggregated according to the time sequence according to the shooting time of the pictures to be aggregated;
step S220, setting the shooting time of each picture in the pictures to be aggregated into a time set, wherein the number of the time sets is equal to that of the pictures to be aggregated, and the central time of the time set is the shooting time of each picture in the pictures to be aggregated;
step S230, calculating the time difference between the shooting time of each picture in the pictures to be aggregated and the center time of each time set according to the arrangement sequence;
step 240, if the time difference is smaller than a preset time, the pictures to be aggregated are placed in the corresponding time set, and the time set center time is recalculated;
step S250, if the time difference is not less than the preset time, setting a new time set according to the shooting time of the picture to be aggregated, and arranging the picture to be aggregated into the new time set, and adding the new time set into the time set;
step S260, deleting the time set of the picture to be aggregated which is not placed after the picture to be aggregated is placed;
and step S270, if the time set is changed or the aggregation times are less than the first preset aggregation times, jumping back to the step S200.
2. The method for picture aggregation according to claim 1, wherein the step S300 specifically includes:
step S310, setting a place set for the shooting place of each set picture in the time set, wherein the center of the place set is the longitude and latitude of the shooting place of the set picture;
step S320, calculating the geographical distance between the shooting place of the set picture in each time set and the center of each place set;
step S330, if the geographic distance is smaller than a preset distance, the collected pictures are placed in the corresponding place set according to the set picture, and the place set center is recalculated;
step S340, if the geographic distance is not less than the preset distance, setting a new place set according to the shooting places of the set pictures, arranging the set pictures into the new place set, and adding the new place set into the place set;
step S350, deleting the place sets of the non-set pictures after the set pictures are set;
step S360, if the place set is changed or the aggregation times are less than a second preset aggregation times, returning to step S300.
3. The method according to claim 1, wherein the obtaining the picture to be aggregated comprises:
acquiring attribute information and content information of the picture to be aggregated;
and acquiring the shooting time and the shooting place of the picture to be aggregated according to the attribute information, wherein the shooting place is recorded in a longitude and latitude mode.
4. The method of claim 2, wherein said calculating the geographical distance between the location of the collection picture in each of the time collections and the center of each of the location collections comprises:
calculating the latitude difference between the shooting place of the set picture and the center of the set of places;
calculating the longitude difference between the shooting place of the set picture and the center of the set of places;
and calculating the geographic distance according to the latitude difference and the longitude difference, wherein the geographic distance is a Euclidean distance.
5. The method of claim 2, wherein after the deleting the set of places for which the set picture is not included, the method further comprises:
if the place set is not changed or the aggregation times are equal to second preset aggregation times, counting the number of pictures in the place set;
if the number of the pictures is larger than the preset number, splitting the place set into a plurality of sub-place sets;
and if the number of the pictures is not more than the preset number, sending the aggregated pictures.
6. An apparatus for picture aggregation, the apparatus comprising:
the acquiring unit is used for acquiring a picture to be aggregated;
the control unit is used for arranging the pictures with aggregation into a plurality of time sets according to the shooting time of the pictures to be aggregated;
the control unit is also used for arranging the pictures to be aggregated into a plurality of place sets according to the shooting places and the time sets of the pictures to be aggregated;
the output unit is used for outputting the location set result of the picture to be aggregated;
wherein the control unit includes:
the sorting module is used for sorting the pictures to be aggregated according to the shooting time of the pictures to be aggregated according to the time sequence;
the first setting module is used for setting the shooting time of each picture in the pictures to be aggregated into a time set, the number of the time sets is equal to that of the pictures to be aggregated, and the central time of the time set is the shooting time of each picture in the pictures to be aggregated;
the first calculation module is used for calculating the time difference between the shooting time of each picture in the pictures to be aggregated and the center time of each time set according to the arrangement sequence;
the first homing module is used for homing the to-be-aggregated picture into the corresponding time set and recalculating the central time of the time set if the time difference is smaller than the preset time;
the first resetting module is used for setting a new time set according to the shooting time of the picture to be aggregated if the time difference is not less than the preset time, and arranging the picture to be aggregated into the new time set and adding the new time set into the time set;
the first deleting module is used for deleting the time set of the picture to be aggregated which is not placed after the picture to be aggregated is placed;
and the first jumping module is used for jumping back to the control unit if the time set is changed or the aggregation times are less than a first preset aggregation times.
7. The apparatus of claim 6, wherein the control unit further comprises:
the second setting module is used for setting a place set for the shooting place of each set picture in the time set, and the center of the place set is the longitude and latitude of the shooting place of the set picture;
the second calculation module is used for calculating the geographical distance between the shooting place of the set picture in each time set and the center of each place set;
the second homing module is used for homing the set pictures into the corresponding place sets and recalculating the place set center if the geographic distance is smaller than a preset distance;
a second resetting module, configured to set a new location set according to the shooting locations of the set pictures if the geographic distance is not less than the preset distance, place the set pictures in the new location set, and add the new location set to the location set;
the second deleting module is used for deleting the place set of the non-set pictures after the set pictures are set;
and the second jumping module is used for jumping back to the control unit if the place set is changed or the aggregation times are less than a second preset aggregation times.
8. The apparatus of claim 7, wherein the obtaining unit is further configured to:
acquiring attribute information and content information of the picture to be aggregated;
and acquiring the shooting time and the shooting place of the picture to be aggregated according to the attribute information, wherein the shooting place is recorded in a longitude and latitude mode.
9. The apparatus of claim 6, wherein the second computing module is further configured to:
calculating the latitude difference between the shooting place of the set picture and the center of the set of places;
calculating the longitude difference between the shooting place of the set picture and the center of the set of places;
and calculating the geographic distance according to the latitude difference and the longitude difference, wherein the geographic distance is a Euclidean distance.
10. The apparatus of claim 7, wherein the control unit further comprises:
the counting module is used for counting the number of the pictures in the place set if the place set is not changed or the aggregation times are equal to a second preset aggregation times after the place set of the pictures which are not put in the set is deleted;
the splitting module is used for splitting the place set into a plurality of sub-place sets if the number of the pictures is larger than a preset number;
and the sending module is used for sending the aggregated pictures if the number of the pictures is not more than the preset number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610781008.5A CN106372664A (en) | 2016-08-30 | 2016-08-30 | Picture aggregation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610781008.5A CN106372664A (en) | 2016-08-30 | 2016-08-30 | Picture aggregation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106372664A true CN106372664A (en) | 2017-02-01 |
Family
ID=57898743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610781008.5A Pending CN106372664A (en) | 2016-08-30 | 2016-08-30 | Picture aggregation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106372664A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832377A (en) * | 2017-10-30 | 2018-03-23 | 北京小米移动软件有限公司 | Image information indication method, apparatus and system, storage medium |
CN115037729A (en) * | 2022-04-21 | 2022-09-09 | 中国建设银行股份有限公司 | Data aggregation method and device, electronic equipment and computer readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070065044A1 (en) * | 2005-09-21 | 2007-03-22 | Samsung Electronics Co., Ltd. | Method, medium, and system with a combinational photograph thumbnail |
CN104111778A (en) * | 2014-06-25 | 2014-10-22 | 小米科技有限责任公司 | Method and device for picture display |
CN104598932A (en) * | 2015-02-13 | 2015-05-06 | 成都品果科技有限公司 | Method and system for photograph classification based on event information |
CN104866501A (en) * | 2014-02-24 | 2015-08-26 | 腾讯科技(深圳)有限公司 | Electronic travel photo album generation method and system |
CN105391807A (en) * | 2015-12-23 | 2016-03-09 | 北京奇虎科技有限公司 | Photo album reminding function realization method and apparatus based on positioning system |
-
2016
- 2016-08-30 CN CN201610781008.5A patent/CN106372664A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070065044A1 (en) * | 2005-09-21 | 2007-03-22 | Samsung Electronics Co., Ltd. | Method, medium, and system with a combinational photograph thumbnail |
CN104866501A (en) * | 2014-02-24 | 2015-08-26 | 腾讯科技(深圳)有限公司 | Electronic travel photo album generation method and system |
CN104111778A (en) * | 2014-06-25 | 2014-10-22 | 小米科技有限责任公司 | Method and device for picture display |
CN104598932A (en) * | 2015-02-13 | 2015-05-06 | 成都品果科技有限公司 | Method and system for photograph classification based on event information |
CN105391807A (en) * | 2015-12-23 | 2016-03-09 | 北京奇虎科技有限公司 | Photo album reminding function realization method and apparatus based on positioning system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832377A (en) * | 2017-10-30 | 2018-03-23 | 北京小米移动软件有限公司 | Image information indication method, apparatus and system, storage medium |
CN107832377B (en) * | 2017-10-30 | 2021-09-21 | 北京小米移动软件有限公司 | Image information display method, device and system, and storage medium |
CN115037729A (en) * | 2022-04-21 | 2022-09-09 | 中国建设银行股份有限公司 | Data aggregation method and device, electronic equipment and computer readable medium |
CN115037729B (en) * | 2022-04-21 | 2024-05-28 | 中国建设银行股份有限公司 | Data aggregation method, device, electronic equipment and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104866501B (en) | Electronic travel photo album generating method and system | |
US11409785B2 (en) | Media file processing method and device, and media file sharing method and device in social media application | |
WO2017193897A1 (en) | Data recommendation method and device therefor, and storage medium | |
CN108897757B (en) | Photo storage method, storage medium and server | |
EP2933780A1 (en) | Reality augmenting method, client device and server | |
US20170214646A1 (en) | Systems and methods for providing social media location information | |
US20160203137A1 (en) | Imputing knowledge graph attributes to digital multimedia based on image and video metadata | |
CN105302890A (en) | Multimedia content online recommendation method and multimedia content online recommendation auxiliary method and apparatus | |
CN111340131A (en) | Image annotation method and device, readable medium and electronic equipment | |
CN107077507B (en) | Information pushing method, device and system | |
CN110472154A (en) | A kind of resource supplying method, apparatus, electronic equipment and readable storage medium storing program for executing | |
CN110659581A (en) | Image processing method, device, equipment and storage medium | |
CN105760380A (en) | Database query method, device and system | |
JP2015513723A (en) | Method and system for displaying microblog topics | |
CN111581421B (en) | Image retrieval method, image retrieval device, and image retrieval system | |
CN106372664A (en) | Picture aggregation method and device | |
CN107153702A (en) | A kind of data processing method and device | |
CN109086932A (en) | A kind of prediction technique, system and the device of media information prevalence degree | |
CN108536695B (en) | Aggregation method and device of geographic position information points | |
CN112241485A (en) | Tourism data management method, recommendation method, system, storage medium and device | |
CN104424345A (en) | Photo classification method based on time and system thereof | |
CN112465565B (en) | User portrait prediction method and device based on machine learning | |
JP6336807B2 (en) | Information processing apparatus and grouping method | |
CN108764021B (en) | Cheating video identification method and device | |
CN105472405A (en) | Reminder generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170201 |
|
RJ01 | Rejection of invention patent application after publication |