Summary of the invention
In view of above content, be necessary to provide a kind of photo management method and system, it can be sorted out by comparison film, the photo of automatic leading subscriber.
A kind of photo management method, be applied in electronic installation, the method comprises: receiving step, receives the photo that will be stored in the memory device of electronic installation; Calculation procedure, calculates the weights of described photo according to the geography information of the kind of described photo, the quality of described photo and described photo; Classifying step, carries out the classification classifying to obtain described photo by described photo according to the weights of described photo; Storing step, when in the memory device not needing to delete electronic installation during photo, according to the classification of described photo by described photo storage in memory device.
A kind of photo management systems, run in electronic installation, this system comprises: receiver module, for receiving the photo that will be stored in the memory device of electronic installation; Computing module, calculates the weights of described photo for the quality of the kind according to described photo, described photo and the geography information of described photo; Sort module, for the classification of being carried out by described photo classifying to obtain described photo according to the weights of described photo; Memory module, for when in the memory device not needing to delete electronic installation during photo, according to the classification of described photo by described photo storage in memory device.
Compared to prior art, described photo management method and system, it can calculate the weights of photo according to the geography information of the quality of the kind of photo, photo and photo, and divides the classification of photo according to the weights of photo, comparison film is sorted out, the photo of automatic leading subscriber.
Embodiment
As shown in Figure 1, be the applied environment figure of photo management systems 30 of the present invention preferred embodiment.Photo management systems 30 is applied in electronic installation 1, and described electronic installation 1 also comprises the memory device 10, treatment facility 20, display device 40 and the input equipment 50 that are connected with data line through signal wire.Be appreciated that described electronic installation 1 also should comprise the assembly of other necessity further, as battery etc.
Described electronic installation 1 can be the devices such as mobile phone, computer, camera, panel computer.Image unit can be comprised in described electronic installation 1.Described memory device 10 is for storage picture, and this photo can be the photo that electronic installation 1 is taken, and also can be captured by other electronic installation, but be stored in the photo in electronic installation 1.Described photo comprises the geography information of photo.The geography information of photo can be obtained by the positioning chip of electronic installation 1, namely when taking described photo, starting positioning chip in electronic installation 1 simultaneously and positioning the geography information obtaining described photo.When not obtaining the geography information of photo by positioning chip, user oneself can be allowed to set the geography information of described photo.
As shown in Figure 2, be the module map of preferred embodiment of photo management systems 30.In the present embodiment, described photo management systems 30 comprises receiver module 300, computing module 301, sort module 302, judge module 303, removing module 304, reminding module 305 and memory module 306.Module alleged by the present invention refers to that a kind of equipment 20 of can being processed is performed and can complete the series of computation machine program segment of fixed function, and it is stored in memory device 10.In the present embodiment, the function about each module will specifically describe in the flowchart of fig. 3.
As shown in Figure 3, be the process flow diagram of preferred embodiment of photo management method of the present invention.According to different demands, in this process flow diagram, the order of step can change, and some step can be omitted.
Step S10, receiver module 300 receives the photo that will be stored in the memory device 10 of electronic installation 1.
Step S11, computing module 301 calculates the weights of described photo according to the geography information of the kind of described photo, the quality of described photo and described photo.
In the present embodiment, the process calculating the weights of photo comprises:
A () computing module 301 utilizes face recognition technology automatically to identify the kind of described photo, and arrange the kind weights of described photo according to the kind of described photo.
The kind of photo comprises portrait class and landscape class, and such kind weights are just divided into portrait class weights and landscape class weights.User can according to self liking Lookup protocol portrait class weights and landscape class weights on a user interface.If such as user prefers the photo of landscape class, then can landscape class weights be arranged higher.When computing module 301 utilizes face recognition technology to automatically identify in described photo to have face, the kind weights of described photo are set to portrait class weights, when computing module 301 utilizes face recognition technology to automatically identify in described photo not have face, the kind weights of described photo are set to landscape class weights.
B pixel analyze of () computing module 301 to described photo obtains brightness and the resolution of described photo, and arrange the Quality Weight of described photo according to the brightness of described photo and resolution.
Be Three Estate according to the brightness of photo and resolution by the quality settings of photo: quality is fine, the general and poor quality of quality.The corresponding brightness of photo of each grade and the scope of resolution are different, and weights, quality fine corresponding mass first weights, quality general corresponding mass second weights and poor quality corresponding mass the 3rd weights that each grade is corresponding different.Namely Quality Weight is divided into the weights of Three Estate, namely quality first weights, quality second weights and quality the 3rd weights, and also the weights of this Three Estate have been set by the user in advance, quality first weights are higher than quality second weights, and quality second weights are higher than quality the 3rd weights.
When computing module 301 to judge that according to the brightness of described photo and resolution the brightness of described photo and resolution are in the quality brightness of photo corresponding very well and the scope of resolution, then the weights that the Quality Weight of described photo are set to that quality first; When computing module 301 judges that the brightness of described photo and resolution are in the general corresponding brightness of photo of quality and the scope of resolution, then the Quality Weight of described photo is set to quality second weights; When computing module 301 judges that the brightness of described photo and resolution are in the brightness of the photo corresponding to poor quality and the scope of resolution, then the Quality Weight of described photo is set to quality the 3rd weights.
C () computing module 301 arranges the geographical weights of described photo according to the geography information of described photo.
The geographical weights of photo can be divided into Three Estate by the geography information according to photo, i.e. geographical first weights, its corresponding favorite region; Geographical second weights, the region that its correspondence is generally liked; Geographical 3rd weights, the region that its correspondence is not liked.Geographical first weights are higher than geographical second weights, and geographical second weights are higher than geographical 3rd weights.
When according to the geography information of described photo, computing module 301 judges that the geography information of described photo is in favorite region, the geographical weights of described photo are set to geographical first weights; When according to the geography information of described photo, computing module 301 judges that the geography information of described photo is in the region of generally liking, the geographical weights of described photo are set to geographical second weights; When according to the geography information of described photo, computing module 301 judges that the geography information of described photo is in the region of not liking, the geographical weights of described photo are set to geographical 3rd weights.
D the kind weights of photo, Quality Weight and geographical weights carry out cumulative with the weights obtaining photo by () computing module 301.
Step S12, described photo is carried out the classification classifying to obtain described photo by sort module 302 according to the weights of described photo.
The classification of photo is divided into Three Estate: be delithted with classification, generally likes classification and does not like classification.In each classification, all photos sort from high to low according to the weights of photo.Each classification correspond to the weights scope of different photos.All photos of identical category are put in identical file folder.
Step S13, whether judge module 303 is greater than preset value to judge whether according to the size of the storage space of memory device 10 photo will deleted in memory device 10.
When the size of the storage space of memory device 10 is greater than preset value, namely to delete the photo in memory device 10, perform step S14; When the size of the storage space of memory device 10 is not more than preset value, namely do not delete the photo in memory device 10, perform step S17.Step S14, whether judge module 303 is that sky judges whether there is the photo not liking classification in memory device 10 according to not liking the file corresponding to classification in memory device 10.
When not liking the file corresponding to classification not in memory device 10 for time empty, namely the photo not liking classification is stored in memory device 10, perform step S15, removing module 304 deletes in memory device 10 all photos not liking classification, then performs step S17.When not liking the file corresponding to classification for time empty in memory device 10, namely not having in memory device 10 to store the photo not liking classification, performing step S16.
Step S16, reminding module 305 points out user to delete photo in memory device 10, until delete photo success.
In the present embodiment, photo in memory device 10 carries out sorting to facilitate user to delete photo according to the weights of photo by reminding module 305 from high to low.
In another embodiment, when not having storage not like the photo of classification in memory device 10, also can by removing module 304 from generally liking the photo of weights lower than preset weights deleting photo the photo of classification.
Step S17, memory module 306 according to the classification of described photo by described photo storage in memory device 10.Such as, when the classification of described photo is for being delithted with classification, by described photo storage being delithted with in the file of classification in memory device 10.
It should be noted last that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.