CN104462422A - Object processing method and device - Google Patents

Object processing method and device Download PDF

Info

Publication number
CN104462422A
CN104462422A CN201410771851.6A CN201410771851A CN104462422A CN 104462422 A CN104462422 A CN 104462422A CN 201410771851 A CN201410771851 A CN 201410771851A CN 104462422 A CN104462422 A CN 104462422A
Authority
CN
China
Prior art keywords
data
objects
difference data
mark
corresponding relation
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
Application number
CN201410771851.6A
Other languages
Chinese (zh)
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410771851.6A priority Critical patent/CN104462422A/en
Publication of CN104462422A publication Critical patent/CN104462422A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention provides an object processing method and device. The method includes determining a plurality of objects to be stored and sorting the objects according a preset indicator;sequentially judging whether the adjacent two objects meet the preset conditions or not after being sorted and adding all objects meeting the preset conditions to the corresponding preset collection;in the case of each preset collection, choosing any object to be a current object from the current preset collection, and obtaining data and identification of the current object and difference value data and corresponding relation between any two objects in the current preset collection to save the data and identification of acquiring the current object and difference value data and corresponding relation of any two objects in the current preset collection. By application of an embodiment of the object processing method and device, server storage space occupied by objects is decreased, and cost of storage is reduced.

Description

The disposal route of object and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of disposal route and device of object.
Background technology
Along with high Qinghua development of camera in intelligent terminal (such as smart mobile phone, panel computer etc.), the photo that user is taken by smart machine is more and more clear, storage space needed for photo also constantly increases, in order to reduce photo taking storage space in intelligent terminal, the photo storage of shooting can be in Cloud Server by user beyond the clouds, existing various cloud stores service, such as Baidu's cloud, 115 net dishes etc., all provide high in the clouds to store the function of the photo captured by user.
When user needs cloud to store the photo of shooting, user selects the photo needing Cloud Server to preserve, user needs each storage to open photo individually by Cloud Server, intactly store, but, along with number of pictures increase and often open the increase of storage space needed for photo, the cost of Cloud Server storage picture presents explosive growth, and the proportion of its storage resources cost shared in cloud stores service is also continuing to increase.
Summary of the invention
The present invention is intended to solve one of technical matters in correlation technique at least to a certain extent.For this reason, first aspect present invention embodiment is the disposal route proposing a kind of object, and the method can reduce object taking server storage, reduces the cost of storage resources.
A second aspect of the present invention embodiment is the treating apparatus proposing a kind of object.
To achieve these goals, the disposal route of the object of first aspect present invention embodiment, comprising: determine multiple objects to be stored, and sorts to described multiple object according to pre-set level; After judging sequence successively, whether two adjacent objects meet pre-conditioned, and by all default set meeting described pre-conditioned object and add correspondence; And for each default set, from described current preset set, select arbitrary object as existing object, and the difference data obtained in the data of described existing object and mark and described current preset set between any two objects and corresponding relation, to preserve difference data in the data of the described existing object of acquisition and mark and described current preset set between any two objects and corresponding relation.
According to the disposal route of the object of the embodiment of the present invention, first multiple objects to be stored are determined, and according to pre-set level, multiple object is sorted, then after judging sequence successively, whether two adjacent objects meet pre-conditioned, and by all default set meeting pre-conditioned object and add correspondence, and for each default set, from current preset set, select arbitrary object as existing object, and obtain the data of existing object and mark and the difference data preset in set between any two objects and corresponding relation, to preserve difference data in the data of existing object and mark and current preset set that obtain between any two objects and corresponding relation, this embodiment processes multiple objects to be stored, make server without the need to intactly preserving separately the data of each object, decrease object taking server storage, reduce the cost of storage resources.
To achieve these goals, the treating apparatus of the object of second aspect present invention embodiment, comprising: order module, for determining multiple objects to be stored, and sorts to described multiple object according to pre-set level; Judge module, for judging whether rear two the adjacent objects of sequence meet pre-conditioned successively, and by all default set meeting described pre-conditioned object and add correspondence; And processing module, for for each default set, from described current preset set, select arbitrary object as existing object, and the difference data obtained in the data of described existing object and mark and described current preset set between any two objects and corresponding relation, to preserve difference data in the data of the described existing object of acquisition and mark and described current preset set between any two objects and corresponding relation.
According to the treating apparatus of the object of the embodiment of the present invention, multiple objects to be stored are determined by order module, and according to pre-set level, multiple object is sorted, after judge module judges sequence successively, whether two adjacent objects meet pre-conditioned, and by all default set meeting pre-conditioned object and add correspondence, and processing module is for each default set, from current preset set, select arbitrary object as existing object, and the difference data obtained between the data of existing object and mark and any two objects and corresponding relation, to preserve difference data in the data of existing object and mark and current preset set that obtain between any two objects and corresponding relation.This embodiment processes needing the multiple objects preserved in the server, difference data in only preserving in the server between the data of existing object and mark and any two objects and corresponding relation, without the need to intactly preserving separately the data of each object, object taking server storage can be greatly reduced, decrease the cost of storage resources.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the disposal route of object according to an embodiment of the invention.
Fig. 2 is the process flow diagram of the disposal route of object in accordance with another embodiment of the present invention.
Fig. 3 is the process flow diagram of the disposal route of object according to another embodiment of the present invention.
Fig. 4 is the structural representation of the treating apparatus of object according to an embodiment of the invention.
Fig. 5 is the structural representation of the treating apparatus of object in accordance with another embodiment of the present invention.
Fig. 6 is the structural representation of the treating apparatus of object according to another embodiment of the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
Below with reference to the accompanying drawings disposal route and the device of the object of the embodiment of the present invention are described.
Fig. 1 is the process flow diagram of the disposal route of object according to an embodiment of the invention, and as shown in Figure 1, the disposal route of this object comprises:
S101, determines multiple objects to be stored, and sorts to multiple object according to pre-set level.
Wherein, above-mentioned object can be picture, also can be video or audio frequency etc.
Such as, above-mentioned object is picture, determines plurality of pictures to be stored, and sorts to plurality of pictures to be stored according to temporal information.Specifically, can sort according to the sequencing of shooting time to plurality of pictures to be stored, wherein, the shooting time of picture can read from the file header of picture data files.
It should be noted that, above-mentioned pre-set level can be temporal information, and can also be similarity information etc., such as, above-mentioned object be video, can sort according to similarity information to multiple video.
S102, judges after sorting, whether two objects of arbitrary neighborhood meet pre-conditioned, and by all default set meeting pre-conditioned object and add correspondence.
Such as, current object to be stored is plurality of pictures, after plurality of pictures being sorted according to temporal information, mistiming between two pictures that can judge arbitrary neighborhood after sorting whether in the first preset range and similarity whether in the second preset range, and all pictures satisfied condition to be added in corresponding default set.Wherein, the first preset range and the second preset range can pre-set, and such as, the first preset range can be set to 0 ~ 25 second, and the second preset range can be set to 95% ~ 100%.
In addition, in this embodiment, after judging to sort two objects of arbitrary neighborhood whether meet pre-conditioned after, the data not meeting pre-conditioned object can also be uploaded, the data not meeting pre-conditioned object that server receiving terminal is uploaded, and intactly preserve the data of corresponding objects in the server.
Again such as, current object to be stored is multiple video, after multiple video being sorted according to video memory information, similarity between two videos that can calculate arbitrary neighborhood, and whether the similarity judging any two adjacent video is in the second preset range, and according to judged result, the video of correspondence is added in corresponding default set.
S103, for each default set, from current preset set, select arbitrary object as existing object, and the difference data obtained between the data of existing object and mark and any two objects and corresponding relation, to preserve difference data in the data of the existing object of acquisition and mark and current preset set between any two objects and corresponding relation.
In this embodiment, for each default set, from current preset set, select arbitrary object as existing object, and obtain the difference data and the corresponding relation that remain object and existing object in the data of existing object and mark and current preset set.Specifically, because the similarity between the object in set is very high, therefore, most of byte in the difference data obtained is zero or the very little value of numerical value, in order to reduce data taking server storage further, the difference data remaining object and existing object in current preset set can be compressed, and obtain the difference data after compression.
In addition, in this embodiment, after selecting arbitrary object as existing object from current preset set, difference data between two objects that can also obtain arbitrary neighborhood in the data of existing object and mark and current preset set and corresponding relation, particularly, the difference data between two objects of arbitrary neighborhood in current preset set can be compressed, and obtain the difference data after compression, thus, data taking server storage can be reduced further.
In this embodiment, if the above-mentioned process processed object to be stored is by client executing, after the difference data obtained in the data of existing object and mark and current preset set between any two objects and corresponding relation, user end to server uploads difference data in the data of obtained existing object and mark and current preset set between any two objects and corresponding relation, and server receives and preserves the above-mentioned information that client sends.If above-mentioned, the process that object to be stored processes is performed by server, then server is after the difference data obtained in the data of existing object and mark and current preset set between any two objects and corresponding relation, directly preserves the difference data in the data of the existing object obtained and mark and current preset set between any two objects and corresponding relation.
Such as, client processes multiple objects to be stored, and current object to be stored is 6 pictures, uses P 1, P 2, P 3, P 4, P 5and P 6represent sequence after picture, according to pre-conditioned to sequence after picture process after, the set obtained is { P 2, P 3, P 4, { P 5, P 6, this two set expressions picture P 2, P 3, P 4be one group of picture of taking pictures continuously, picture P 5, P 6it is one group of picture of taking pictures continuously.After obtaining corresponding set, can from set { P 2, P 3, P 4middle selection picture P 2as photo current, and obtain picture P 2data and mark, then calculate picture P respectively 2with P 3, P 2with P 4between difference data, then by picture P 2data and mark and P 2with P 3, P 2with P 4between difference data and corresponding relation upload onto the server.For set { P 5, P 6picture P can be selected 5as photo current, and obtain picture P 5data and mark, then calculate picture P 5with picture P 6between difference data, and to server uploading pictures P 5data and mark and picture P 5with picture P 6between difference data and picture P 5with picture P 6between corresponding relation, the information that server receiving terminal is uploaded, and preserve picture P in the server 5data, picture P 5with picture P 6between difference data and preserve picture P in a database 5with picture P 6corresponding relation.It should be noted that, due to picture P 1do not meet pre-conditioned, terminal is by picture P 1image data upload server, server receives picture P 1image data, and complete preservation picture P in the server 1image data.
This embodiment is when storing multiple object, first multiple object is processed, obtain corresponding default set then for each default set, obtain the existing object in current collection, and the difference data obtained between the data of existing object and mark and any two objects and corresponding relation, relative to individually existing, intactly preserve the mode of each object, storage space shared by difference data is far smaller than the storage space shared by the data of object, therefore, this embodiment can reduce the storage space required for server stores object, decrease the cost of storage resources.
The disposal route of object of the invention process, first multiple objects to be stored are determined, and according to pre-set level, multiple object is sorted, then after judging sequence successively, whether two adjacent objects meet pre-conditioned, and by all default set meeting pre-conditioned object and add correspondence, and for each default set, from current preset set, select arbitrary object as existing object, and obtain the data of existing object and mark and the difference data preset in set between any two objects and corresponding relation, to preserve difference data in the data of existing object and mark and current preset set that obtain between any two objects and corresponding relation, this embodiment processes multiple objects to be stored, make server without the need to intactly preserving separately the data of each object, decrease object taking server storage, reduce the cost of storage resources.
Fig. 2 is the process flow diagram of the disposal route of object in accordance with another embodiment of the present invention, and this embodiment take object as picture for example is described, and as shown in Figure 2, the disposal route of this object comprises:
S201, determines multiple pictures to be stored, and sorts to multiple picture according to pre-set level.
Particularly, obtain multiple pictures to be stored, and according to pre-set level such as temporal information, plurality of pictures to be stored is sorted, specifically, can sort to plurality of pictures to be stored according to the sequencing of shooting time, wherein, the shooting time of picture can read from the file header of picture data files.
S202, judges after sorting, whether two pictures of arbitrary neighborhood meet pre-conditioned, and by all default set meeting pre-conditioned picture and add correspondence.
Particularly, after multiple pictures to be stored being sorted according to pre-set level such as temporal information, the mistiming between two pictures that can judge arbitrary neighborhood after sorting whether in the first preset range and similarity whether in the second preset range.Wherein, the first preset range and the second preset range can pre-set, and such as, the first preset range can be set to 0 ~ 25 second, and the second preset range can be set to 95% ~ 100%.
In addition, in this embodiment, after judging to sort two pictures of arbitrary neighborhood whether meet pre-conditioned after, the data not meeting pre-conditioned picture can also be preserved.
Such as, the first preset range is 0 ~ 25 second, and the second preset range is 95% ~ 100%, assuming that after sorting to N pictures to be stored according to shooting time, the picture sequence after sequence is P 1, P 2, P 3p n-1, P n, can from picture P 1start traversal, detect to obtain the plurality of pictures of taking pictures continuously.Wherein, to the process that picture carries out identifying for the first time be: judge picture P 1and P 2the mistiming of shooting time whether at 0 ~ 25 second, assuming that picture P 1and P 2the mistiming of shooting time is 30 seconds, then obtain picture P 1image data, and upload corresponding image data to server, preserve picture P to make server 1total data, and to picture carry out second time identify.
The process of picture being carried out to second time identification is: judge picture P 2and P 3the mistiming of shooting time whether at 0 ~ 25 second, assuming that picture P 2and P 3the mistiming of shooting time is 12 seconds, thus, can determine picture P 2and P 3the mistiming of shooting time, in 0 ~ 25 second, now, can calculate picture P according to existing image similarity algorithm 2and P 3similarity, and judge that whether the similarity that calculates is 95% ~ 100%, the similarity that assumed calculation goes out is 96%, thus, can determine picture P 2and P 3for the picture of taking pictures continuously, and the picture of correspondence is added in corresponding set.
To the process that picture carries out identifying for i-th time be: judge picture P iand P i+1the mistiming of shooting time whether at 0 ~ 25 second, if picture P iand P i+1the mistiming of shooting time in 0 ~ 25 second, then calculates picture P according to existing image similarity algorithm iand P i+1similarity, and judge that whether the similarity that calculates is 95% ~ 100%, if picture P iand P i+1similarity 95% ~ 100%, by the P of correspondence iand P i+1add in corresponding default set (picture in set is the picture of taking pictures continuously), and the i-th+1 time identification is carried out to picture, wherein, i<=N-1.
Assuming that N=6, after being identified by pre-conditioned 6 pictures stored needs, the set obtained is { P 2, P 3, P 4, { P 5, P 6.That is, P in 6 pictures stored is needed current 2, P 3and P 4be one group of picture of taking pictures continuously, P 5and P 6it is one group of picture of taking pictures continuously.
The executive agent of above-mentioned steps S201-S202 can be client, also can be server, when the executive agent of above-mentioned S201-S202 is client, after S202, can also comprise step S203a-S205a.
S203a, for each default set, from current preset set, select any picture as photo current, and the difference data obtained between the data of photo current and mark and any two pictures and corresponding relation, upload the information of acquisition to server, preserve information to make server.
In this embodiment, for each default set, from current preset set, select any picture as photo current, and obtain the difference data and the corresponding relation that remain picture and photo current in the data of photo current and mark and current preset set.Specifically, because the similarity between the picture in set is very high, therefore, most of byte in the difference data obtained is zero or the very little value of numerical value, in order to reduce data taking server storage further, before the information uploading acquisition to server, the difference data remaining picture and photo current can be compressed in current preset set, and preserve the difference data after compression.
In addition, in this embodiment, after selecting any picture as photo current from current preset set, difference data between two pictures that can also obtain arbitrary neighborhood in the data of photo current and mark and current preset set and corresponding relation, particularly, before the above-mentioned information uploading acquisition to server, the difference data between two pictures of arbitrary neighborhood in current preset set can be compressed, and obtain the difference data after compression.
Such as, there is the picture that 6 to be stored at present, use P 1, P 2, P 3, P 4, P 5and P 6represent the picture after sequence, and after identifying this six pictures, institute obtains that to meet pre-conditioned set be { P 2, P 3, P 4, { P 5, P 6, when to the relevant information of server uploading pictures, the image data of picture P1 can be uploaded, for set { P 2, P 3, P 4and { P 5, P 6, because the picture in set is the picture of taking pictures continuously, between picture, there is similarity relation, therefore, for set { P 2, P 3, P 4, can by the picture P in set 2as photo current, obtain picture P 2data and mark, then calculate picture P by existing image difference algorithm 2with P 3between difference data, and adopt the lossless compression algorithm such as existing LZ77 algorithm, RLE (run-length encoding, Run-Length Coding) algorithm to compress difference data, and to server uploading pictures P 2data and mark and picture P 2with P 3, P 2with P 4between compression after difference data and corresponding relation, to make server preserve the above-mentioned information uploaded, by the corresponding relation between the picture in server, picture concerned can be recovered easily.
In addition, for set { P 2, P 3, P 4, at selection picture P 2for photo current, and obtain picture P 2data and after representing, calculate adjacent picture P by existing image difference algorithm 2with P 3, P 3with P 4between difference data, and adopt the compression algorithms such as existing LZ77 algorithm, RLE algorithm to compress corresponding difference data, and to server uploading pictures P 2data and mark and picture P 2with P 3, P 3with P 4between compression after difference data and corresponding relation, to make server preserve the above-mentioned information uploaded, by the corresponding relation between the picture preserved in server, picture P can be recovered easily 3and P 4.
For set { P 5, P 6the processing mode that adopts and set { P 2, P 3, P 4identical, do not repeat herein.
By client, multiple objects to be stored are processed, only by the data after server specimens preserving, relative to existing mode of individually, intactly preserving each picture, storage space shared by difference data is far smaller than the storage space shared by the data of picture, therefore, this embodiment can reduce the storage space required for picture, decreases the cost of storage resources.
S204a, receives user to the trigger action recovering image data, and sends data recovery request according to trigger action to server.
Particularly, when user needs the picture of taking pictures continuously uploaded at local recovery, receive user to the trigger action recovering image data, and send data recovery request according to the trigger action of user to server.
S205a, the difference data between the data of preserving picture that reception server returns and mark and any two pictures and corresponding relation, and according to the data of the corresponding picture of the Information recovering returned.
Particularly, the data recovery request of client transmission is received at server, server based on data recovery request obtains the difference data between data and mark and any two pictures and corresponding relation of having preserved picture, and returns obtained information to terminal.
The information that terminal reception server returns, and the data corresponding according to the information-reply returned, and on the interface of terminal, show corresponding picture.
Such as, assuming that terminal uploading pictures P 2data and mark and picture P 2with P 3, P 2with P 4between difference data and corresponding relation, the information that server is uploaded according to terminal preserves relevant information in the server.Recover picture P receiving user 2, P 3and P 4trigger action after, terminal receives the trigger action of user, and sends data recovery request based on the trigger action of user to server, the data recovery request that server receiving terminal sends, and obtains picture P according to data recovery request 2data and mark, then obtain with picture P 2mark there is the mark of the picture of corresponding relation, namely according to picture P 2mark obtain picture P 3mark and P 4mark.At acquisition and picture P 2mark there is the mark of the picture of corresponding relation after, can according to picture P 3mark and P 4mark obtain picture P 3and P 4with picture P 2difference data, and the information of acquisition is returned to terminal.The information that terminal reception server returns, and according to the data of the corresponding picture of the Information recovering that returns, and on the interface of terminal, show the picture of recovery.
Again such as, assuming that terminal uploading pictures P 2data and mark and picture P 2with P 3, P 2with P 4between difference data and corresponding relation, the information that server is uploaded according to terminal preserves relevant information in the server.Recover picture P receiving user 4trigger action after, terminal receives the trigger action of user, and sends data recovery request based on the trigger action of user to server, the data recovery request that server receiving terminal sends, and obtains picture P according to data recovery request 4mark, then according to picture P 4mark obtain the mark of the picture that to there is corresponding relation with it, namely according to picture P 4mark obtain picture P 2mark.At acquisition picture P 2mark after, can according to picture P 2mark obtain picture P 2data, and by picture P 2data and picture P 2with P 4between difference data, and by obtain above-mentioned information return to terminal.The information that terminal reception server returns, and according to the data of the corresponding picture of the Information recovering that returns, and on the interface of terminal, show the picture of recovery.
Alternatively, when the executive agent of above-mentioned S201-S202 is server, as shown in Figure 3, after S202, step S203b and S204b can also be comprised.
S203b, for each default set, from current preset set, select any picture as photo current, and the difference data obtained in the data of photo current and mark and current preset set between two pictures and corresponding relation, and the difference data directly preserved in the data of the photo current obtained and mark and current preset set between two pictures and corresponding relation.
In this embodiment, for each default set, from current preset set, select any picture as photo current, and obtain the difference data and the corresponding relation that remain picture and photo current in the data of photo current and mark and current preset set.Specifically, because the similarity between the picture in set is very high, therefore, most of byte in the difference data obtained is zero or the very little value of numerical value, in order to reduce data taking server storage further, before the above-mentioned information of preservation, the difference data remaining picture and photo current can be compressed in current preset set, and preserve the difference data after compression.
In addition, in this embodiment, after selecting any picture as photo current from current preset set, the difference data between two pictures that can also obtain arbitrary neighborhood in the data of photo current and mark and current preset set and corresponding relation, and preserve the above-mentioned information obtained.Before the above-mentioned information of preservation, the difference data between two pictures of arbitrary neighborhood in current preset set can also be compressed, and obtain the difference data after compression, thus, above-mentioned information taking server storage can be reduced.
S204b, extracts the difference data between data and mark and two pictures and corresponding relation of preserving picture, and according to the data of the corresponding picture of the Information recovering that extracts.
Particularly, the data recovery request of client transmission is received at server, server based on data recovery request extracts the difference data between data and mark and two pictures and corresponding relation of preserving picture, and according to the data of the corresponding picture of the Information recovering that extracts, then the data recovering corresponding picture are returned client, the data that client reception server returns, and on the interface of client, show corresponding picture.
The disposal route of object of the invention process, first multiple objects to be stored are determined, and according to pre-set level, multiple object is sorted, then after judging sequence successively, whether two adjacent objects meet pre-conditioned, and by all default set meeting pre-conditioned object and add correspondence, and for each default set, from current preset set, select arbitrary object as existing object, and the difference data obtained in the data of existing object and mark and current preset set between any two objects and corresponding relation, to preserve difference data in the data of existing object and mark and current preset set that obtain between any two objects and corresponding relation.This embodiment processes needing the multiple objects preserved in the server, difference data in only preserving in the server in the data of existing object and mark and current preset set between any two objects and corresponding relation, without the need to data corresponding for multiple object are all preserved, the storage space of server stores object can be greatly reduced, decrease the cost of storage resources.
In order to realize above-described embodiment, the present invention also proposes a kind for the treatment of apparatus of object.
Fig. 4 is the structural representation of the treating apparatus of object according to an embodiment of the invention.As shown in Figure 4, the treating apparatus of this object comprises: order module 100, judge module 200 and processing module 300, wherein:
Order module 100 for determining multiple objects to be stored, and sorts to multiple object according to pre-set level; Whether judge module 200 meets pre-conditioned for two the adjacent objects afterwards that judge successively to sort, and by all default set meeting pre-conditioned object and add correspondence; And processing module 300 is for for each default set, from current preset set, select arbitrary object as existing object, and the difference data obtained in the data of existing object and mark and current preset set between any two objects and corresponding relation, to preserve difference data in the data of the existing object of acquisition and mark and current preset set between any two objects and corresponding relation.
Wherein, above-mentioned object can be picture, and also can be video or audio frequency etc., above-mentioned pre-set level can be temporal information, and can also be similarity information etc., such as, above-mentioned object be video, can sort according to similarity information to multiple video.
Judge module 200 specifically for: judge mistiming after sorting between adjacent two objects whether in the first preset range; And/or after judging to sort arbitrary neighborhood two objects between similarity whether in the second preset range.Wherein, the first preset range and the second preset range can pre-set, and such as, the first preset range can be set to 0 ~ 25 second, and the second preset range can be set to 95% ~ 100%.
In this embodiment, if above-mentioned processing module 300 is arranged in client, judge module 200 judge successively sequence after two adjacent objects whether meet pre-conditioned after, above-mentioned processing module 300 can also upload to server the data not meeting pre-conditioned object, preserves to make server the data not meeting pre-conditioned object.
Such as, object to be stored is multiple pictures, by order module 100 pairs of multiple pictures according to time sequencing sequence after, whether the mistiming after processing module 300 can judge to sort between adjacent two objects in the first preset range; If in the first preset range, whether the similarity between two objects then judging arbitrary neighborhood after sorting is in the second preset range, if in the second preset range, then the photo of correspondence is added and preset in set, if not in the second preset range, then processing module 300 uploads the data not meeting pre-conditioned photo to server, intactly preserves separately to make server the data not meeting pre-conditioned photo.
For each default set, above-mentioned processing module 300 selects arbitrary object as existing object from current preset set, and difference data between two objects obtaining arbitrary neighborhood in the difference data and corresponding relation that remain object and existing object in the data of existing object and mark and current preset set or the data obtaining existing object and mark and current preset set and corresponding relation, then the above-mentioned information obtained is sent to server, server receives and preserves above-mentioned information, as shown in Figure 5.
In addition, above-mentioned processing module 300 is before sending the above-mentioned information obtained to server, in order to reduce the consumption to server resource, processing module 300 can also to can compressing the difference data remaining object and existing object in current preset set, and upload in the data of obtained existing object and mark and current preset set to server and remain the difference data after the compression of object and existing object and corresponding relation.
Accordingly, if processing module 300 obtains difference data between two objects of arbitrary neighborhood in the data of existing object and mark and current preset set and corresponding relation, processing module 300 is before sending the above-mentioned information obtained to server, in order to reduce the consumption to server resource, processing module 300 can be compressed the difference data between two adjacent objects all in current preset set, and the difference data obtained after compression, and difference data after uploading in the data of obtained existing object and mark and current preset set between all two adjacent objects from compression to server and corresponding relation.
In addition, as shown in Figure 6, when said apparatus is arranged in server, after judge module 200 judges sequence successively two adjacent objects whether meet pre-conditioned after, processing module 300 can be used for: directly preservation does not meet the data of pre-conditioned object.
For each default set, above-mentioned processing module 300 selects arbitrary object as existing object from current preset set, and obtain the difference data and the corresponding relation that remain object and existing object in the data of existing object and mark and current preset set, or the difference data between two objects obtaining arbitrary neighborhood in the data of existing object and mark and current preset set and corresponding relation, and preserve the above-mentioned information obtained.
In addition, above-mentioned processing module 300 is before preserving the above-mentioned information obtained, in order to reduce the consumption to server resource, processing module 300 can to can compressing the difference data remaining object and existing object in current preset set, and preserve in the data of existing object and mark and current preset set the difference data after remaining the compression of object and existing object and corresponding relation.
Accordingly, if processing module 300 obtains difference data between two objects of arbitrary neighborhood in the data of existing object and mark and current preset set and corresponding relation, and preserve the above-mentioned information obtained, before preserving the above-mentioned information obtained, processing module 300 can be compressed the difference data between two adjacent objects all in current preset set, and the difference data obtained after compression, and difference data after the compression of preserving in the data of existing object and mark and current preset set between all two adjacent objects and corresponding relation.
Comprise order module 100, judge module 200, processing module 300 the treating apparatus of object the processing procedure of object see the text description of Fig. 1, Fig. 2 or Fig. 3 and correspondence, can not repeated herein.
The treating apparatus of object of the invention process, multiple objects to be stored are determined by order module, and according to pre-set level, multiple object is sorted, after judge module judges sequence successively, whether two adjacent objects meet pre-conditioned, and by all default set meeting pre-conditioned object and add correspondence, and processing module is for each default set, from current preset set, select arbitrary object as existing object, and the difference data obtained between the data of existing object and mark and any two objects and corresponding relation, to preserve difference data in the data of existing object and mark and current preset set that obtain between any two objects and corresponding relation.This embodiment processes needing the multiple objects preserved in the server, difference data in only preserving in the server between the data of existing object and mark and any two objects and corresponding relation, without the need to intactly preserving separately the data of each object, object taking server storage can be greatly reduced, decrease the cost of storage resources.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (12)

1. a disposal route for object, is characterized in that, comprising:
Determine multiple objects to be stored, and according to pre-set level, described multiple object is sorted;
After judging sequence successively, whether two adjacent objects meet pre-conditioned, and by all default set meeting described pre-conditioned object and add correspondence; And
For each default set, from described current preset set, select arbitrary object as existing object, and the difference data obtained in the data of described existing object and mark and described current preset set between any two objects and corresponding relation, to preserve difference data in the data of the described existing object of acquisition and mark and described current preset set between any two objects and corresponding relation.
2. method according to claim 1, is characterized in that, the difference data between the data of the described existing object of described acquisition and mark and any two objects and corresponding relation, comprising:
Obtain the difference data and the corresponding relation that remain object and described existing object in the data of described existing object and mark and described current preset set; Or
Obtain the difference data in the data of described existing object and mark and described current preset set between all two adjacent objects and corresponding relation.
3. method according to claim 2, it is characterized in that, difference data and the corresponding relation of object and described existing object is remained in the data of the described existing object of described acquisition and mark and described current preset set, comprise: the difference data remaining object and described existing object in described current preset set is compressed, and obtain the difference data after compression; Or
Difference data in the data of the described existing object of described acquisition and mark and described current preset set between all two adjacent objects and corresponding relation, comprise: the difference data between two adjacent objects all in described current preset set is compressed, and obtain the difference data after compression.
4. method according to claim 1, is characterized in that, described judge successively sequence after two adjacent objects whether meet pre-conditioned after, also comprise:
Upload the data not meeting described pre-conditioned object to server, preserve to make described server the data not meeting described pre-conditioned object; Or
Direct preservation does not meet the data of described pre-conditioned object.
5. method according to claim 1, is characterized in that, described pre-set level comprises temporal information, and whether described two the adjacent objects afterwards that judge successively to sort meet pre-conditioned, comprising:
Judge mistiming after sorting between adjacent two objects whether in the first preset range; And/or
Judge similarity after sorting between adjacent two objects whether in the second preset range.
6. the method according to any one of claim 1-5, is characterized in that, described with the difference data in the data of preserving the described existing object obtained and mark and described current preset set between any two objects and corresponding relation, comprising:
Upload the difference data in the data of the described existing object of acquisition and mark and described current preset set between any two objects and corresponding relation to server, preserve difference data in the data of described existing object and mark and described current preset set between any two objects and corresponding relation to make described server; Or
Difference data in the data of the described existing object of direct preservation and mark and described current preset set between any two objects and corresponding relation.
7. a treating apparatus for object, is characterized in that, comprising:
Order module, for determining multiple objects to be stored, and sorts to described multiple object according to pre-set level;
Judge module, for judging whether rear two the adjacent objects of sequence meet pre-conditioned successively, and by all default set meeting described pre-conditioned object and add correspondence; And
Processing module, for for each default set, from described current preset set, select arbitrary object as existing object, and the difference data obtained in the data of described existing object and mark and described current preset set between any two objects and corresponding relation, to preserve difference data in the data of the described existing object of acquisition and mark and described current preset set between any two objects and corresponding relation.
8. device according to claim 7, is characterized in that, described processing module, specifically for:
Obtain the difference data and the corresponding relation that remain object and described existing object in the data of described existing object and mark and described current preset set; Or
Obtain the difference data in the data of described existing object and mark and described current preset set between all two adjacent objects and corresponding relation.
9. device according to claim 8, is characterized in that, described processing module, specifically for: the difference data remaining object and described existing object in described current preset set is compressed, and obtains the difference data after compression; Or
Described processing module, specifically for: the difference data between two adjacent objects all in described current preset set is compressed, and obtains the difference data after compression.
10. device according to claim 7, is characterized in that, described processing module, also for:
After described judge module judges sequence successively two adjacent objects whether meet pre-conditioned after, upload the data not meeting described pre-conditioned object to server, preserve to make described server and do not meet the data of described pre-conditioned object; Or directly preservation does not meet the data of described pre-conditioned object.
11. devices according to claim 7, is characterized in that, described pre-set level comprises temporal information, described judge module, specifically for:
Judge mistiming after sorting between adjacent two objects whether in the first preset range; And/or
Judge similarity after sorting between adjacent two objects whether in the second preset range.
12. devices according to any one of claim 7-11, is characterized in that, described processing module, also for:
Upload the difference data in the data of the described existing object of acquisition and mark and described current preset set between any two objects and corresponding relation to server, preserve difference data in the data of described existing object and mark and described current preset set between any two objects and corresponding relation to make described server; Or
Difference data in the data of the described existing object of direct preservation and mark and described current preset set between any two objects and corresponding relation.
CN201410771851.6A 2014-12-15 2014-12-15 Object processing method and device Pending CN104462422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410771851.6A CN104462422A (en) 2014-12-15 2014-12-15 Object processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410771851.6A CN104462422A (en) 2014-12-15 2014-12-15 Object processing method and device

Publications (1)

Publication Number Publication Date
CN104462422A true CN104462422A (en) 2015-03-25

Family

ID=52908457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410771851.6A Pending CN104462422A (en) 2014-12-15 2014-12-15 Object processing method and device

Country Status (1)

Country Link
CN (1) CN104462422A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027615A (en) * 2016-05-10 2016-10-12 乐视控股(北京)有限公司 Object storage method and system
CN109947965A (en) * 2017-09-04 2019-06-28 阿里巴巴集团控股有限公司 Object identifying, the update of data acquisition system, data processing method and device
CN111083933A (en) * 2018-08-21 2020-04-28 华为技术有限公司 Data storage and acquisition method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335819A (en) * 2008-08-06 2008-12-31 中兴通讯股份有限公司 Continuous photo processing apparatus, method and image processing apparatus
US20100114891A1 (en) * 2007-04-13 2010-05-06 Nec Corporation Photograph grouping device, photograph grouping method and photograph grouping program
CN102521235A (en) * 2010-10-28 2012-06-27 微软公司 Burst mode image compression and decompression
CN102571709A (en) * 2010-12-16 2012-07-11 腾讯科技(北京)有限公司 Method for uploading file, client, server and system
CN103559236A (en) * 2013-10-25 2014-02-05 华为终端有限公司 Image displaying method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100114891A1 (en) * 2007-04-13 2010-05-06 Nec Corporation Photograph grouping device, photograph grouping method and photograph grouping program
CN101335819A (en) * 2008-08-06 2008-12-31 中兴通讯股份有限公司 Continuous photo processing apparatus, method and image processing apparatus
CN102521235A (en) * 2010-10-28 2012-06-27 微软公司 Burst mode image compression and decompression
CN102571709A (en) * 2010-12-16 2012-07-11 腾讯科技(北京)有限公司 Method for uploading file, client, server and system
CN103559236A (en) * 2013-10-25 2014-02-05 华为终端有限公司 Image displaying method and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027615A (en) * 2016-05-10 2016-10-12 乐视控股(北京)有限公司 Object storage method and system
CN109947965A (en) * 2017-09-04 2019-06-28 阿里巴巴集团控股有限公司 Object identifying, the update of data acquisition system, data processing method and device
CN109947965B (en) * 2017-09-04 2023-09-05 阿里巴巴集团控股有限公司 Object recognition, data set updating and data processing method and device
CN111083933A (en) * 2018-08-21 2020-04-28 华为技术有限公司 Data storage and acquisition method and device
CN111083933B (en) * 2018-08-21 2023-02-03 华为技术有限公司 Data storage and acquisition method and device
US11960467B2 (en) 2018-08-21 2024-04-16 Huawei Technologies Co., Ltd. Data storage method, data obtaining method, and apparatus

Similar Documents

Publication Publication Date Title
JP6833842B2 (en) Optimized media fingerprint retention to improve system resource utilization
CN109360028B (en) Method and device for pushing information
CN107864405B (en) Viewing behavior type prediction method, device and computer readable medium
CN104216956B (en) The searching method and device of a kind of pictorial information
CN110149529B (en) Media information processing method, server and storage medium
CN110059225B (en) Video classification method and device, terminal equipment and storage medium
CN103294667A (en) Method and system for tracing homologous image through watermark
CN106897454B (en) File classification method and device
CN110532405B (en) Multimedia file processing method, communication device and computer readable storage medium
CN112163468A (en) Image processing method and device based on multiple threads
CN102118451B (en) Method and device for handling uploaded user resources
CN111598176B (en) Image matching processing method and device
CN103702134A (en) Image processing device, image processing method and program
CN104462422A (en) Object processing method and device
CN103187083B (en) A kind of storage means based on time domain video fusion and system thereof
CN110399344A (en) Choose the method and device of multiimage
CN110288666B (en) Data compression method and device
CN109597566B (en) Data reading and storing method and device
CN111337133B (en) Infrared data generation method and device and infrared data analysis method and device
CN104469069A (en) Picture synchronization method and device
CN115080843A (en) Monitoring scene video recommendation method, system, device and storage medium
CN114241350A (en) Video coding test sequence determination method, related device and computer program product
CN108347451B (en) Picture processing system, method and device
WO2021178643A1 (en) An encoding device and method for utility-driven video compression
CN112668504A (en) Action recognition method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication