CN105488074A - Photo clustering method and device - Google Patents

Photo clustering method and device Download PDF

Info

Publication number
CN105488074A
CN105488074A CN201410509608.7A CN201410509608A CN105488074A CN 105488074 A CN105488074 A CN 105488074A CN 201410509608 A CN201410509608 A CN 201410509608A CN 105488074 A CN105488074 A CN 105488074A
Authority
CN
China
Prior art keywords
photo
photos
group
cluster
location information
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.)
Granted
Application number
CN201410509608.7A
Other languages
Chinese (zh)
Other versions
CN105488074B (en
Inventor
余军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410509608.7A priority Critical patent/CN105488074B/en
Publication of CN105488074A publication Critical patent/CN105488074A/en
Application granted granted Critical
Publication of CN105488074B publication Critical patent/CN105488074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a photo clustering method and device. The method comprises the following steps: obtaining the shooting information of each photo, wherein the shooting information comprises the shooting position information of the photos; clustering the photos into at least one photo group according to the shooting position information; and displaying the photos according to the photo group. Through the photo clustering method and device, the photos are clustered according to the shooting position information of the photos, and the photos are displayed to the users according to the clustered photo group, so that the users can conveniently class to browse and search the photos and the user experience is enhanced.

Description

The method of photo cluster and device
Technical field
The disclosure relates to image processing field, particularly relates to a kind of method and device of photo cluster.
Background technology
Along with popularizing of intelligent terminal, terminal is used to take pictures and by the photo on photo management class application software browsing terminal, become a part for people's daily life.Because the photo amount that terminal stores is comparatively large, comparison film is therefore needed to carry out classification display.In correlation technique, some photo management class application software only can carry out according to the date comparison film of taking pictures classifying and showing, such as, put together by the photo that today newly takes as a cluster, and the photo that yesterday claps is then another cluster.
But this method of only carrying out cluster according to date comparison film still cannot realize effective cluster of photo.First, the granularity of cluster may be too large, when in same date, user takes pictures more, then cannot be the effective cluster photo of user, but photos all in this date is all in a cluster, very inconvenient when user leaies through or searches.Secondly, the granularity underaction of cluster, the foundation of above-mentioned cluster photo method is only the date, and do not consider other factors, the place of such as taking pictures, when user in the date of two relatively far apart, take pictures in identical or close place time, because the date is different, then can cluster in different groups, and relatively far apart, user cannot be checked continuously to these two groups of photos, when user wants to switch to another group photo, then need just can be checked by loaded down with trivial details operation, very inconvenient, reduce the Experience Degree of user.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of method and device of photo cluster.
According to the first aspect of disclosure embodiment, a kind of method of photo cluster is provided, comprises:
Obtain the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
According to described taking location information, be at least one group of photos by described photo cluster;
Described photo is shown according to described group of photos.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the taking location information comparison film according to photo carries out cluster, and present to user according to the mode of the group of photos after cluster, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
Optionally, the shooting time of described photo is also comprised in described photographing information;
Described according to described taking location information, be at least one group of photos by described photo cluster, comprise:
Described photo is sorted according to described shooting time, obtain sort after N open photo, N be greater than 1 integer;
From the photo of second in the photo after described sequence, according to n-th photo after the taking location information calculating sequence of described photo and the distance between the camera site of all photos before it or group of photos, until travel through all photos, wherein, n is the integer being greater than 1 and being less than or equal to N;
According to described result of calculation, determine the first photo that distance between the camera site of n-th photo after described sequence is minimum or the first group of photos;
When distance between the photo of n-th after described sequence and the camera site of described first photo or the first group of photos is less than or equal to predeterminable range, determine that described n-th photo and described first photo belong to same group of photos or belong to described first group of photos.
In possibility, photo is sorted according to shooting time, and according to the taking location information of photo, user will be presented in photo cluster to the group of photos nearest with it according to the mode of the group of photos after cluster, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
Optionally, described according to described taking location information, after described photo cluster is at least one group of photos, described method also comprises:
Photo in a described kth group of photos is sorted according to described shooting time, wherein, k be more than or equal to 1 integer;
When the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, obtain the shooting time interval of first photo and last photo in a described kth group of photos;
When described shooting time interval is less than prefixed time interval, according to the taking location information of the photo in a described kth group of photos, the photo cluster in a described kth group of photos is become large group of at least two sub-photos.
In possibility, for the group of photos after cluster, if the number of pictures in one of them group of photos is still larger, then by judging that further cluster photo is carried out at the shooting time interval of photo in group of photos, when the shooting time of photo in group of photos is comparatively concentrated, then again segment according to the camera site of photo, make the cluster of photo more accurately careful, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
Optionally, described when the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, after obtaining the shooting time interval of first photo and last photo in a described kth group of photos, described method also comprises:
When described shooting time interval is more than or equal to prefixed time interval, according to the shooting time of the photo in a described kth group of photos, be large group of at least two sub-photos by the photo cluster in a described kth group of photos.
In possibility, for the group of photos after cluster, if the number of pictures in one of them group of photos is still larger, then by judging that further cluster photo is carried out at the shooting time interval of photo in group of photos, when in group of photos, the shooting time of photo comparatively disperses, then first segment according to the shooting time comparison film of photo, make the cluster of photo more accurately careful, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
Optionally, described method also comprises:
When the number of pictures in m large group of sub-photo is greater than the second predetermined threshold value, according to the taking location information of the photo in described m large group of sub-photo, be at least Liang Gezi photo group by the photo cluster in described m large group of sub-photo, wherein, m be more than or equal to 1 integer.
In possibility, time still more for the number of pictures in large group of sub-photo, can continue to carry out cluster according to the taking location information comparison film of photo, thus make the group of photos after cluster more accurately careful, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
Optionally, described taking location information comprises the camera site of described photo and the gps coordinate information of described camera site, describedly shows described photo according to described group of photos, comprising:
According to the gps coordinate information of described camera site, choose the center of the camera site of the photo in each group of photos;
Obtain the location name of described center, as the label of described each group of photos;
Show the label that described each group of photos is corresponding.
In possibility, by the center title of the camera site of photo in each group of photos, user presented to by the label as group of photos, makes user can understand the information of group of photos according to label, more convenient when browsing and search photo, promote the Experience Degree of user.
According to the second aspect of disclosure embodiment, a kind of device of photo cluster is provided, comprises:
First acquisition module, for obtaining the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
Described photo cluster, for according to described taking location information, is at least one group of photos by the first cluster module;
Display module, for showing described photo according to described group of photos.
Optionally, described first cluster module comprises:
Sorting sub-module, for described photo is sorted according to described shooting time, obtain sort after N open photo, N be greater than 1 integer;
Calculating sub module, for from the photo of second in the photo after described sequence, according to n-th photo after the taking location information calculating sequence of described photo and the distance between the camera site of all photos before it or group of photos, until travel through all photos, wherein, n is the integer being greater than 1 and being less than or equal to N;
First determines submodule, for according to described result of calculation, determines the first photo that distance between the camera site of n-th photo after described sequence is minimum or the first group of photos;
Second determines submodule, when being less than or equal to predeterminable range for the distance between the photo of n-th after described sequence and the camera site of described first photo or the first group of photos, determine that described n-th photo and described first photo belong to same group of photos or belong to described first group of photos.
Optionally, described device also comprises:
Order module, for according to described taking location information, after described photo cluster is at least one group of photos, sorts the photo in a described kth group of photos according to described shooting time, wherein, k be more than or equal to 1 integer;
Second acquisition module, for when the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, obtains the shooting time interval of first photo and last photo in a described kth group of photos;
Second cluster module, for when described shooting time interval is less than prefixed time interval, according to the taking location information of the photo in a described kth group of photos, becomes large group of at least two sub-photos by the photo cluster in a described kth group of photos.
Optionally, described device also comprises:
Photo cluster in a described kth group of photos, for when described shooting time interval is more than or equal to prefixed time interval, according to the shooting time of the photo in a described kth group of photos, is large group of at least two sub-photos by the 3rd cluster module.
Optionally, described device also comprises:
4th cluster module, for when the number of pictures in m large group of sub-photo is greater than the second predetermined threshold value, according to the taking location information of the photo in described m large group of sub-photo, it is at least Liang Gezi photo group by the photo cluster in described m large group of sub-photo, wherein, m be more than or equal to 1 integer.
Optionally, described display module comprises:
Choose submodule, for the gps coordinate information according to described camera site, choose the center of the camera site of the photo in each group of photos;
Obtain submodule, for obtaining the location name of described center, as the label of described each group of photos;
Display sub-module, for showing label corresponding to described each group of photos.
According to the third aspect of disclosure embodiment, a kind of device of photo cluster is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
According to described taking location information, be at least one group of photos by described photo cluster;
Described photo is shown according to described group of photos.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of the method for a kind of photo cluster according to an exemplary embodiment;
Fig. 2 is the process flow diagram of the method for a kind of photo cluster according to another exemplary embodiment;
Fig. 3 is the process flow diagram of the method for a kind of photo cluster Gen Ju an exemplary embodiment again;
Fig. 4 is the block diagram of the device of a kind of photo cluster according to an exemplary embodiment;
Fig. 5 is the block diagram of the first cluster module in the device of a kind of photo cluster according to an exemplary embodiment;
Fig. 6 is the block diagram of the device of a kind of photo cluster according to an exemplary embodiment;
Fig. 7 is the block diagram of display module in the device of a kind of photo cluster according to an exemplary embodiment;
Fig. 8 is the block diagram of a kind of device according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of the method for a kind of photo cluster according to an exemplary embodiment, and as shown in Figure 1, a kind of method of photo cluster is used for, in terminal, comprising the following steps S11-S13:
Step S11, obtain the photographing information of often opening photo, photographing information comprises the taking location information of photo;
Photo cluster, according to taking location information, is at least one group of photos by step S12;
Step S13, according to group of photos display photo.
The technical scheme that the present embodiment provides can comprise following beneficial effect: the taking location information comparison film according to photo carries out cluster, and present to user according to the mode of the group of photos after cluster, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
Optionally, also comprise the shooting time of photo in photographing information, then step S12 can be embodied as following steps S121-124:
Step S121, sorts photo according to shooting time, obtain sort after N open photo, N be greater than 1 integer; That is, photo is sorted according to order from the old to the new;
Step S122, from second photo in the photo after sequence, according to n-th photo after the taking location information calculating sequence of photo and the distance between the camera site of all photos before it or group of photos, until travel through all photos, wherein, n is the integer being greater than 1 and being less than or equal to N;
Step S123, according to result of calculation, determines the first photo that distance between the camera site of n-th photo after sorting is minimum or the first group of photos;
Step S124, when the distance between n-th photo after sorting and the camera site of the first photo or the first group of photos is less than or equal to predeterminable range, determines that n-th photo and the first photo belong to same group of photos or belong to the first group of photos.
In step S122, the distance between n-th photo and the camera site of all photos before it or group of photos can be calculated according to the gps coordinate information in the taking location information of photo, wherein, gps coordinate information obtains by the GPS (GlobalPositioningSystem, GPS) in terminal.When the distance of calculating n-th between photo and the camera site of group of photos, distance between the camera site that can calculate the whole photos in n-th photo and this group of photos respectively, then from all distance values result of calculation, select minimum value as n-th distance between photo and the camera site of this group of photos; Or, the photo corresponding to center of this group of photos is selected according to the gps coordinate information in taking location information, calculate the distance between n-th photo and the camera site of the photo corresponding to center, be n-th distance between photo and the camera site of this group of photos.
Said method, relative to step S124, when distance between n-th photo after sorting and the camera site of the first photo or the first group of photos is greater than predeterminable range, then n-th photo neither belongs in any one group of photos before it, does not also belong to same group with any photo before it.
Such as, 500 photos are arranged according to time sequencing, predetermined threshold value is 500 meters, when n value is 100, front 99 photos cluster are: 1-20 opens photo and belongs to the 1st group of photos, and the 21st photo is an independent photo (namely not belonging to any one group of photos), and 22-40 opens photo and belongs to the 3rd group of photos, 41-60 opens photo and belongs to the 4th group of photos, and 61-99 opens photo and belongs to the 5th group of photos.Calculate the distance between the 100th photo and the camera site of the 21st photo and the 1st, 3,4,5 group of photos respectively, in result of calculation, if the distance between the 100th photo and the camera site of the 4th group of photos is minimum, if this distance value is less than or equal to predetermined threshold value 500 meters, then determine that the 100th photo belongs to the 4th group of photos, if this distance value is greater than predetermined threshold value 500 meters, then the 100th photo is an independent photo; If the distance between the 100th photo and the camera site of the 21st photo is minimum, and is less than predetermined threshold value 500 meters, then determine that the 100th photo and the 21st photo belong to same group of photos (the 2nd group of photos).
Optionally, after step s 12, the further comprising the steps of A11-A13 of said method:
Steps A 11, sorts the photo in a kth group of photos according to shooting time, wherein, k be more than or equal to 1 integer;
Steps A 12, when the number of pictures in a kth group of photos is greater than the first predetermined threshold value, obtains the shooting time interval of first photo and last photo in a kth group of photos;
Steps A 13, when shooting time interval is less than prefixed time interval, according to the taking location information of the photo in a kth group of photos, becomes large group of at least two sub-photos by the photo cluster in a kth group of photos.
After steps A 12, when in the kth group of photos got, the shooting time interval of first photo and last photo is more than or equal to prefixed time interval, the steps A 13 in said method can be embodied as following steps A130:
Photo cluster in a kth group of photos, when shooting time interval is more than or equal to prefixed time interval, according to the shooting time of the photo in a kth group of photos, is large group of at least two sub-photos by steps A 130.
When in the kth group of photos got, the shooting time interval of first photo and last photo is more than or equal to prefixed time interval, after implementation step A130, if when the number of pictures in large group of sub-photo is still more, can continue to implement following steps A131:
Steps A 131, when the number of pictures in m large group of sub-photo is greater than the second predetermined threshold value, according to the taking location information of the photo in m large group of sub-photo, be at least Liang Gezi photo group by the photo cluster in m large group of sub-photo, wherein, m be more than or equal to 1 integer.
Optionally, the further comprising the steps of S14-S16 of said method:
Step S14, according to the gps coordinate information of camera site, chooses the center of the camera site of the photo in each group of photos;
Step S15, obtains the location name of center, as the label of each group of photos;
Step S16, shows the label that each group of photos is corresponding.
Wherein, in step S15, the title of center can be found out according to the gps coordinate information of center, the such as geographic name such as sight name or building name from Geographic Information System.The location name of center is presented to user as the label of group of photos, makes user can understand the information of group of photos according to label, more convenient when browsing and search photo, promote the Experience Degree of user.
The method of a kind of photo cluster that the disclosure provides is described below by way of specific embodiment.
Embodiment one
In this embodiment, the photo in terminal has 1000, according to the taking location information of 1000 photos, is 5 group of photos by all photo clusters.Fig. 2 is the process flow diagram of the method for a kind of photo cluster according to this specific embodiment, comprises the following steps S201-S208:
Step S201, obtain the photographing information of often opening photo, photographing information comprises the taking location information of photo;
Step S202, sorts photo according to shooting time;
Step S203, from second photo in the photo after sequence, the distance between the camera site calculating n-th photo and all photos before it or group of photos according to the gps coordinate information of camera site, until travel through all photos;
Step S204, according to result of calculation, determines the photo that distance between the camera site of n-th photo is minimum or group of photos; Such as, and n-th (n is greater than 200) photo camera site between nearest be the 1st group of photos that 1-200 opens photo place;
Step S205, judges whether the spacing of the camera site of n-th photo and the photo nearest apart from it or group of photos is less than predetermined threshold value; Such as, predetermined threshold value is 500 meters; If the spacing of the camera site of n-th photo and the photo nearest apart from it or group of photos is less than 500 meters, then perform step S206; If the spacing of the camera site of n-th photo and the photo nearest apart from it or group of photos is not less than 500 meters, then perform step S207;
Step S206, determines that n-th photo and the photo nearest apart from it belong to same group or belong to the group of photos nearest apart from it; Continue to perform step S203, until travel through all photos;
Step S207, determine n-th photo not with its before any photo belong to same group, and any one group of photos before not belonging to it; Continue to perform step S203, until travel through all photos;
Step S208, the group of photos after display cluster.
Adopt the technical scheme of the present embodiment, can by the photo cluster of same place together, it is convenient when user checks, such as, user went back home last year captured photo and captured photo of going back home this year can cluster in same group, and present to user simultaneously, make user to want to leaf through when going back home the photo of shooting time, without the need to carrying out multi-pass operations, facilitating user to browse, promoting the Experience Degree of user.
Embodiment two
In this embodiment, the photo in terminal has 1000, according to the taking location information of 1000 photos, is 5 group of photos by all photo clusters.In addition, in 5 group of photos after cluster, when the number of pictures in one of them group of photos is more, can continue to carry out cluster according to photographing information comparison film.Figure 3 shows that the process flow diagram of the method being a kind of photo cluster according to this specific embodiment, comprise the following steps S301-S311:
Step S301, obtain the photographing information of often opening photo, photographing information comprises the taking location information of photo;
Step S302, sorts photo according to shooting time;
All photo clusters, according to taking location information, are at least one group of photos by step S303;
Step S304, judges whether the photo in each group of photos is greater than the first predetermined threshold value successively; In this embodiment, the first predetermined threshold value is 500, if the photo of one of them group of photos is greater than 500, then performs step S305; If the photo in 5 group of photos is all not more than 500, then perform step S310; Such as, number of pictures in the 3rd group of photos is 600, and the number of pictures in all the other 4 group of photos is all less than 500;
Step S305, sorts the photo in group of photos according to shooting time;
Step S306, obtains the shooting time interval of first photo and last photo in group of photos;
Step S307, judges whether the shooting time interval of first photo and last photo in group of photos is greater than prefixed time interval; In this embodiment, prefixed time interval is 1 day, if the shooting time interval of first photo and last photo is greater than 1 day in the 3rd group of photos, then performs step S308; If the shooting time interval of first photo and last photo is less than or equal to 1 day in the 3rd group of photos, then return step S303;
Photo cluster in group of photos, according to the shooting time of the photo in group of photos, is at least two sub-group of photos by step S308; In this embodiment, the 3rd group of photos comprises the photo of shooting yesterday and the photo of shooting today, then photo cluster to sub-group of photos yesterday can taken, the photo of shooting today then cluster to another sub-group of photos;
Step S309, judges whether the number of pictures in sub-group of photos is greater than the second predetermined threshold value successively; In this embodiment, the second predetermined threshold value is 300, if the number of pictures in one of them sub-group of photos is greater than 300, then returns step S303; If the number of pictures in 2 sub-group of photos is all less than or equal to 300, then perform step S310;
Step S310, the group of photos after display cluster.
In this embodiment, during if desired circulation implementation step S303, then can reduce the value of predeterminable range successively.Such as, when cluster is carried out to 1000 photos, be that photo is clustered into 5 group of photos by 50 kms according to predeterminable range, wherein, the photo in the 3rd group of photos is greater than the first predetermined threshold value 300, and shooting time is comparatively concentrated, all taking on the same day, then need again to carry out cluster according to the taking location information of photo, now can arrange predeterminable range is 10 kms, by that analogy, till the number of pictures in the group of photos gone out until cluster or sub-group of photos is suitable.
The technical scheme that the present embodiment provides can comprise following beneficial effect: the taking location information comparison film according to photo carries out cluster, for the group of photos after cluster, if the number of pictures in one of them group of photos is still larger, then by judging that further cluster photo is carried out at the shooting time interval of photo in group of photos, when in group of photos, the shooting time of photo comparatively disperses, then first segment according to the shooting time comparison film of photo, make the cluster of photo more accurately careful, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
Fig. 4 is the device block diagram of a kind of photo cluster according to an exemplary embodiment.With reference to Fig. 4, this device comprises:
First acquisition module 41, for obtaining the photographing information of often opening photo, photographing information comprises the taking location information of photo;
Photo cluster, for according to taking location information, is at least one group of photos by the first cluster module 42;
Display module 43, for showing photo according to group of photos.
Optionally, the first cluster module 42 comprises following submodule, as shown in Figure 5:
Sorting sub-module 421, for photo is sorted according to described shooting time, obtain sort after N open photo, N be greater than 1 integer;
Calculating sub module 422, for from second photo in the photo after sequence, according to n-th photo after the taking location information calculating sequence of photo and the distance between the camera site of all photos before it or group of photos, until travel through all photos, wherein, n is the integer being greater than 1 and being less than or equal to N;
First determines submodule 423, for according to result of calculation, determines the first photo that distance between the camera site of n-th photo after sorting is minimum or the first group of photos;
Second determines submodule 424, when being less than or equal to predeterminable range for the distance between n-th photo after sorting and the camera site of the first photo or the first group of photos, determine that n-th photo and the first photo belong to same group of photos or belong to the first group of photos.
Optionally, said apparatus also comprises with lower module, as shown in Figure 6:
Order module 44, for according to taking location information, after photo cluster is at least one group of photos, sorts the photo in a kth group of photos according to shooting time, wherein, k be more than or equal to 1 integer;
Second acquisition module 45, for when the number of pictures in a kth group of photos is greater than the first predetermined threshold value, obtains the shooting time interval of first photo and last photo in a kth group of photos;
Second cluster module 46, for when shooting time interval is less than prefixed time interval, according to the taking location information of the photo in a kth group of photos, becomes large group of at least two sub-photos by the photo cluster in a kth group of photos;
Photo cluster in a kth group of photos, for when shooting time interval is more than or equal to prefixed time interval, according to the shooting time of the photo in a kth group of photos, is large group of at least two sub-photos by the 3rd cluster module 47;
4th cluster module 48, for when the number of pictures in m large group of sub-photo is greater than the second predetermined threshold value, according to the taking location information of the photo in m large group of sub-photo, it is at least Liang Gezi photo group by the photo cluster in m large group of sub-photo, wherein, m be more than or equal to 1 integer.
Optionally, display module 43 comprises following submodule, as shown in Figure 7:
Choose submodule 431, for the gps coordinate information according to camera site, choose the center of the camera site of the photo in each group of photos;
Obtain submodule 432, for obtaining the location name of center, as the label of each group of photos;
Display sub-module 433, for showing label corresponding to each group of photos.
The technical scheme that the present embodiment provides can comprise following beneficial effect: the taking location information comparison film according to photo carries out cluster, and present to user according to the mode of the group of photos after cluster, facilitate user browse disaggregatedly and search photo, promote the Experience Degree of user.
In the exemplary embodiment, the disclosure also provides a kind of device of photo cluster, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
According to described taking location information, be at least one group of photos by described photo cluster;
Described photo is shown according to described group of photos.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 8 is the block diagram of a kind of device 800 for photo cluster according to an exemplary embodiment.Such as, device 800 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 8, device 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing element 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensor, for providing the state estimation of various aspects for device 800.Such as, sensor module 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right pick-up unit 800 of sensor module 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the temperature variation of device 800 orientation or acceleration/deceleration and device 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of photo cluster, described method comprises:
Obtain the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
According to described taking location information, be at least one group of photos by described photo cluster;
Described photo is shown according to described group of photos.
The shooting time of described photo is also comprised in described photographing information;
Described according to described taking location information, be at least one group of photos by described photo cluster, comprise:
Described photo is sorted according to described shooting time, obtain sort after N open photo, N be greater than 1 integer;
From the photo of second in the photo after described sequence, according to n-th photo after the taking location information calculating sequence of described photo and the distance between the camera site of all photos before it or group of photos, until travel through all photos, wherein, n is the integer being greater than 1 and being less than or equal to N;
According to described result of calculation, determine the first photo that distance between the camera site of n-th photo after described sequence is minimum or the first group of photos;
When distance between the photo of n-th after described sequence and the camera site of described first photo or the first group of photos is less than or equal to predeterminable range, determine that described n-th photo and described first photo belong to same group of photos or belong to described first group of photos.
Described according to described taking location information, after described photo cluster is at least one group of photos, described method also comprises:
Photo in a described kth group of photos is sorted according to described shooting time, wherein, k be more than or equal to 1 integer;
When the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, obtain the shooting time interval of first photo and last photo in a described kth group of photos;
When described shooting time interval is less than prefixed time interval, according to the taking location information of the photo in a described kth group of photos, the photo cluster in a described kth group of photos is become large group of at least two sub-photos.
Described when the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, after obtaining the shooting time interval of first photo and last photo in a described kth group of photos, described method also comprises:
When described shooting time interval is more than or equal to prefixed time interval, according to the shooting time of the photo in a described kth group of photos, be large group of at least two sub-photos by the photo cluster in a described kth group of photos.
Described method also comprises:
When the number of pictures in m large group of sub-photo is greater than the second predetermined threshold value, according to the taking location information of the photo in described m large group of sub-photo, be at least Liang Gezi photo group by the photo cluster in described m large group of sub-photo, wherein, m be more than or equal to 1 integer.
Described taking location information comprises the camera site of described photo and the gps coordinate information of described camera site, describedly shows described photo according to described group of photos, comprising:
According to the gps coordinate information of described camera site, choose the center of the camera site of the photo in each group of photos;
Obtain the location name of described center, as the label of described each group of photos;
Show the label that described each group of photos is corresponding.
Those skilled in the art, at consideration instructions and after putting into practice disclosure herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. a method for photo cluster, is characterized in that, comprising:
Obtain the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
According to described taking location information, be at least one group of photos by described photo cluster;
Described photo is shown according to described group of photos.
2. method according to claim 1, is characterized in that, also comprises the shooting time of described photo in described photographing information;
Described according to described taking location information, be at least one group of photos by described photo cluster, comprise:
Described photo is sorted according to described shooting time, obtain sort after N open photo, N be greater than 1 integer;
From the photo of second in the photo after described sequence, according to n-th photo after the taking location information calculating sequence of described photo and the distance between the camera site of all photos before it or group of photos, until travel through all photos, wherein, n is the integer being greater than 1 and being less than or equal to N;
According to described result of calculation, determine the first photo that distance between the camera site of n-th photo after described sequence is minimum or the first group of photos;
When distance between the photo of n-th after described sequence and the camera site of described first photo or the first group of photos is less than or equal to predeterminable range, determine that described n-th photo and described first photo belong to same group of photos or belong to described first group of photos.
3. method according to claim 2, is characterized in that, described according to described taking location information, and after described photo cluster is at least one group of photos, described method also comprises:
Photo in a described kth group of photos is sorted according to described shooting time, wherein, k be more than or equal to 1 integer;
When the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, obtain the shooting time interval of first photo and last photo in a described kth group of photos;
When described shooting time interval is less than prefixed time interval, according to the taking location information of the photo in a described kth group of photos, the photo cluster in a described kth group of photos is become large group of at least two sub-photos.
4. method according to claim 3, it is characterized in that, described when the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, after obtaining the shooting time interval of first photo and last photo in a described kth group of photos, described method also comprises:
When described shooting time interval is more than or equal to prefixed time interval, according to the shooting time of the photo in a described kth group of photos, be large group of at least two sub-photos by the photo cluster in a described kth group of photos.
5. method according to claim 4, is characterized in that, described method also comprises:
When the number of pictures in m large group of sub-photo is greater than the second predetermined threshold value, according to the taking location information of the photo in described m large group of sub-photo, be at least Liang Gezi photo group by the photo cluster in described m large group of sub-photo, wherein, m be more than or equal to 1 integer.
6. method according to claim 1, is characterized in that, described taking location information comprises the camera site of described photo and the gps coordinate information of described camera site, describedly shows described photo according to described group of photos, comprising:
According to the gps coordinate information of described camera site, choose the center of the camera site of the photo in each group of photos;
Obtain the location name of described center, as the label of described each group of photos;
Show the label that described each group of photos is corresponding.
7. a device for photo cluster, is characterized in that, comprising:
First acquisition module, for obtaining the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
Described photo cluster, for according to described taking location information, is at least one group of photos by the first cluster module;
Display module, for showing described photo according to described group of photos.
8. device according to claim 7, is characterized in that, described first cluster module comprises:
Sorting sub-module, for described photo is sorted according to described shooting time, obtain sort after N open photo, N be greater than 1 integer;
Calculating sub module, for from the photo of second in the photo after described sequence, according to n-th photo after the taking location information calculating sequence of described photo and the distance between the camera site of all photos before it or group of photos, until travel through all photos, wherein, n is the integer being greater than 1 and being less than or equal to N;
First determines submodule, for according to described result of calculation, determines the first photo that distance between the camera site of n-th photo after described sequence is minimum or the first group of photos;
Second determines submodule, when being less than or equal to predeterminable range for the distance between the photo of n-th after described sequence and the camera site of described first photo or the first group of photos, determine that described n-th photo and described first photo belong to same group of photos or belong to described first group of photos.
9. device according to claim 8, is characterized in that, described device also comprises:
Order module, for according to described taking location information, after described photo cluster is at least one group of photos, sorts the photo in a described kth group of photos according to described shooting time, wherein, k be more than or equal to 1 integer;
Second acquisition module, for when the number of pictures in a described kth group of photos is greater than the first predetermined threshold value, obtains the shooting time interval of first photo and last photo in a described kth group of photos;
Second cluster module, for when described shooting time interval is less than prefixed time interval, according to the taking location information of the photo in a described kth group of photos, becomes large group of at least two sub-photos by the photo cluster in a described kth group of photos.
10. device according to claim 9, is characterized in that, described device also comprises:
Photo cluster in a described kth group of photos, for when described shooting time interval is more than or equal to prefixed time interval, according to the shooting time of the photo in a described kth group of photos, is large group of at least two sub-photos by the 3rd cluster module.
11. devices according to claim 10, is characterized in that, described device also comprises:
4th cluster module, for when the number of pictures in m large group of sub-photo is greater than the second predetermined threshold value, according to the taking location information of the photo in described m large group of sub-photo, it is at least Liang Gezi photo group by the photo cluster in described m large group of sub-photo, wherein, m be more than or equal to 1 integer.
12. devices according to claim 7, is characterized in that, described display module comprises:
Choose submodule, for the gps coordinate information according to described camera site, choose the center of the camera site of the photo in each group of photos;
Obtain submodule, for obtaining the location name of described center, as the label of described each group of photos;
Display sub-module, for showing label corresponding to described each group of photos.
The device of 13. 1 kinds of photo clusters, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the photographing information of often opening photo, described photographing information comprises the taking location information of described photo;
According to described taking location information, be at least one group of photos by described photo cluster;
Described photo is shown according to described group of photos.
CN201410509608.7A 2014-09-28 2014-09-28 Photo clustering method and device Active CN105488074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410509608.7A CN105488074B (en) 2014-09-28 2014-09-28 Photo clustering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410509608.7A CN105488074B (en) 2014-09-28 2014-09-28 Photo clustering method and device

Publications (2)

Publication Number Publication Date
CN105488074A true CN105488074A (en) 2016-04-13
CN105488074B CN105488074B (en) 2020-09-01

Family

ID=55675052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410509608.7A Active CN105488074B (en) 2014-09-28 2014-09-28 Photo clustering method and device

Country Status (1)

Country Link
CN (1) CN105488074B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI628626B (en) * 2017-07-18 2018-07-01 劉謹銘 Multiple image source processing methods
WO2019034151A1 (en) * 2017-08-17 2019-02-21 深圳市万普拉斯科技有限公司 Picture management method, apparatus, electronic device and readable storage medium
CN110413817A (en) * 2019-07-30 2019-11-05 腾讯科技(武汉)有限公司 Method and apparatus for being clustered to picture
CN112732966A (en) * 2020-12-31 2021-04-30 北京华安信联通信技术有限公司 Method for adding shooting place to photo

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437096A (en) * 2007-11-16 2009-05-20 深圳富泰宏精密工业有限公司 System and method for classifying mobile equipment photograph
CN101510205A (en) * 2009-03-16 2009-08-19 广州市有福数码科技有限公司 Method for implementing automatically clustering photographs, apparatus and system
CN102314515A (en) * 2011-09-22 2012-01-11 宇龙计算机通信科技(深圳)有限公司 Photo classification method and device
CN102609431A (en) * 2010-10-19 2012-07-25 苹果公司 Presenting media content items using geographical data
CN103064937A (en) * 2012-12-25 2013-04-24 广东欧珀移动通信有限公司 Method and device for storing photos and based on shooting address and shooting time
CN103167395A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Picture positioning method and system based on mobile terminal navigation function
CN103945134A (en) * 2014-05-16 2014-07-23 深圳市东方拓宇科技有限公司 Method and terminal for taking and viewing photos

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437096A (en) * 2007-11-16 2009-05-20 深圳富泰宏精密工业有限公司 System and method for classifying mobile equipment photograph
CN101510205A (en) * 2009-03-16 2009-08-19 广州市有福数码科技有限公司 Method for implementing automatically clustering photographs, apparatus and system
CN102609431A (en) * 2010-10-19 2012-07-25 苹果公司 Presenting media content items using geographical data
CN102314515A (en) * 2011-09-22 2012-01-11 宇龙计算机通信科技(深圳)有限公司 Photo classification method and device
CN103167395A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Picture positioning method and system based on mobile terminal navigation function
CN103064937A (en) * 2012-12-25 2013-04-24 广东欧珀移动通信有限公司 Method and device for storing photos and based on shooting address and shooting time
CN103945134A (en) * 2014-05-16 2014-07-23 深圳市东方拓宇科技有限公司 Method and terminal for taking and viewing photos

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI628626B (en) * 2017-07-18 2018-07-01 劉謹銘 Multiple image source processing methods
WO2019034151A1 (en) * 2017-08-17 2019-02-21 深圳市万普拉斯科技有限公司 Picture management method, apparatus, electronic device and readable storage medium
CN110413817A (en) * 2019-07-30 2019-11-05 腾讯科技(武汉)有限公司 Method and apparatus for being clustered to picture
CN110413817B (en) * 2019-07-30 2023-06-16 腾讯科技(武汉)有限公司 Method and device for clustering pictures
CN112732966A (en) * 2020-12-31 2021-04-30 北京华安信联通信技术有限公司 Method for adding shooting place to photo

Also Published As

Publication number Publication date
CN105488074B (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN103955481B (en) image display method and device
CN104820675A (en) Photo album displaying method and device
CN106528709A (en) Social information recommendation method and apparatus
CN106202194A (en) The storage method and device of screenshot picture
CN104717366A (en) Method and device for recommending contact photos
CN105488111A (en) Image search method and device
CN104731880A (en) Image ordering method and device
CN107145270A (en) Emotion icons sort method and device
CN104899610A (en) Picture classification method and device
CN104112119A (en) Face identification-based communication method and apparatus
CN104636453A (en) Illegal user data identification method and device
CN104615663A (en) File sorting method and device and terminal
CN104735243A (en) Method and device for displaying contact list
CN104537038A (en) Information display method, device and terminal
CN104991910A (en) Album creation method and apparatus
CN106919629A (en) The method and device of information sifting is realized in group chat
CN104461236A (en) Method and device for displaying application icons
CN105335714A (en) Photograph processing method, device and apparatus
CN105095868A (en) Picture matching method and apparatus
CN104809204A (en) Picture processing method and picture processing device
CN105511777A (en) Session display method and device of touch display screen
CN105278836B (en) The method, apparatus and terminal of switch contents
CN105205093B (en) The method and device that picture is handled in picture library
CN105488074A (en) Photo clustering method and device
CN105808647A (en) Message editing processing 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
GR01 Patent grant
GR01 Patent grant