CN110262925A - Remote backup method, apparatus, terminal device and the medium of picture - Google Patents
Remote backup method, apparatus, terminal device and the medium of picture Download PDFInfo
- Publication number
- CN110262925A CN110262925A CN201910379833.6A CN201910379833A CN110262925A CN 110262925 A CN110262925 A CN 110262925A CN 201910379833 A CN201910379833 A CN 201910379833A CN 110262925 A CN110262925 A CN 110262925A
- Authority
- CN
- China
- Prior art keywords
- picture
- target photo
- component
- predetermined level
- effective
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000000354 decomposition reaction Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 15
- 238000004422 calculation algorithm Methods 0.000 claims description 8
- 239000002131 composite material Substances 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 239000002699 waste material Substances 0.000 description 3
- 230000004069 differentiation Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000006116 polymerization reaction Methods 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention is suitable for technical field of data processing, provides remote backup method, apparatus, terminal device and the medium of a kind of picture, and by the clarity of the picture stored in computing terminal equipment, the picture using clarity not less than clear threshold value is as effective picture;Effective picture that the interval for generating the time is less than prefixed time interval is combined into a picture set according to the generation time of each effective picture;The similarity for calculating picture two-by-two in picture set, determines redundancy picture based on similarity;Using the picture in addition to redundancy picture as Target Photo;Using the application program for generating Target Photo as destination application and transfer the predetermined level of each destination application;The Target Photo that the destination application that predetermined level is higher than predetermined level threshold value generates is decomposed into multiple Target Photo components, each Target Photo component of the same Target Photo is uploaded to different remote servers to back up, to reduce the data volume remotely stored and guarantee data security.
Description
Technical field
The invention belongs to remote backup method, apparatus, the terminals of technical field of data processing more particularly to a kind of picture to set
Standby and medium.
Background technique
In daily life, the picture that people are shot or downloaded by mobile terminal is typically stored in local storage
In, sometimes, in order to avoid losing, damaging because of situations such as mobile terminal caused by picture the problem of losing, it is many mobile
The picture being locally stored can be uploaded to remote server by terminal, to carry out remote backup to photo.
But the picture stored in mobile terminal usually contains many fuzzy or redundancy pictures, and such as: due to mistake bat
The blurred picture of generation or due to similar picture of the multiple groups shot under a background etc..Obviously, it will be stored in mobile terminal
Picture be all uploaded to far field server and will result in the waste of unnecessary storage resource, while it is low to will also result in storage efficiency
The problem of.On the other hand, the remote backup of photo also exists simultaneously the wind usurped, intercepted by hacker or server internal personnel
Danger.
Summary of the invention
In view of this, the embodiment of the invention provides remote backup method, apparatus, terminal device and the Jie of a kind of picture
Matter, to solve the problems, such as that the prior art existing storage resource waste and safety during remote backup are poor.
The first aspect of the embodiment of the present invention provides a kind of remote backup method of picture, comprising:
The clarity is not less than the figure of preset clear threshold value by the clarity of the picture stored in computing terminal equipment
Piece is set as effective picture;According to the generation time of each effective picture, the effective picture that will be generated in preset time period
It distributes to more than one picture set, wherein in each picture set comprising more than two effective pictures, two-by-two
The time interval of the generation time of effective picture is respectively less than prefixed time interval;Calculate in each picture set picture two-by-two
Similarity, the redundancy picture in each picture set is determined based on the similarity, and will generate in the preset time period
The picture in addition to the redundancy picture as Target Photo;The application program of each Target Photo will be generated as each
The corresponding destination application of a Target Photo, and transfer the predetermined level of each destination application;By the predetermined level
The Target Photo generated higher than the destination application of predetermined level threshold value is decomposed into multiple Target Photo components, and will be same
Each Target Photo component of Target Photo is uploaded to multiple and different remote servers respectively and is backed up.
The second aspect of the embodiment of the present invention provides a kind of remote backup device of picture, comprising:
Computing module, the clarity of the picture for being stored in computing terminal equipment, by the clarity not less than default
The picture of clear threshold value be set as effective picture;Composite module will be preset for the generation time according to each effective picture
The effective picture generated in period is distributed to more than one picture set, wherein includes more than two institutes each
It states in the picture set of effective picture, the time interval of the generation time of effective picture is respectively less than between preset time two-by-two
Every;Molality block is deleted, for calculating in each picture set the similarity of picture two-by-two, each picture is determined based on the similarity
Redundancy picture in set, and using the picture in addition to the redundancy picture generated in the preset time period as target figure
Piece;Module is transferred, for answering the application program for generating each Target Photo as the corresponding target of each Target Photo
With program, and transfer the predetermined level of each destination application;Backup module, it is default etc. for the predetermined level to be higher than
The Target Photo that the destination application of grade threshold value generates is decomposed into multiple Target Photo components, and by the same Target Photo
Each Target Photo component is uploaded to multiple and different remote servers respectively and is backed up.
The third aspect of the embodiment of the present invention provides a kind of terminal device, comprising: memory, processor and is stored in
In the memory and the computer program that can run on the processor, which is characterized in that described in the processor executes
The step of method that the first aspect of the embodiment of the present invention provides is realized when computer program.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, which is characterized in that the computer program realizes the embodiment of the present invention when being executed by processor
First aspect provide method the step of.
In embodiments of the present invention, by the clarity of the picture stored in computing terminal equipment, clarity is not less than
The picture of preset clear threshold value is set as effective picture, thus avoid in the follow-up process due to will be more fuzzy picture into
The wasting of resources caused by row remote backup;According to the generation time of each effective picture, described in being generated in preset time period
Effective picture is distributed calculates in each picture set the similarity of picture two-by-two to more than one picture set, based on described
Similarity determines the redundancy picture in each picture set, to more promptly select redundancy picture, avoids more useless
Similarity calculation;The generation time stored in the terminal device is removed into the redundancy picture in the preset time period
Picture in addition is as Target Photo;The application program for generating each Target Photo is corresponding as each Target Photo
Destination application, and transfer the predetermined level of each destination application;Predetermined level is higher than to the mesh of predetermined level threshold value
The Target Photo that mark application program generates is decomposed into multiple Target Photo components, and by each target figure of the same Target Photo
Piece component is uploaded to multiple and different remote servers respectively and is backed up, so that stored in the remote server of part
When Target Photo component is stolen, appropriator can not recover Target Photo, and the final embodiment of the present invention can reduce to the greatest extent
While the unnecessary data volume remotely stored, guarantee the data safety remotely stored.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the remote backup method of picture provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the remote backup method S105 of picture provided in an embodiment of the present invention;
Fig. 3 is the specific implementation flow chart of the remote backup method S106 of picture provided in an embodiment of the present invention;
Fig. 4 is the structural block diagram of the remote backup device of picture provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the remote backup method of picture provided in an embodiment of the present invention, this method process packet
Include step S101 to S107.The specific implementation principle of each step is as follows.
In S101, the clarity of the picture stored in computing terminal equipment is clear not less than preset by the clarity
The picture of clear threshold value is set as effective picture.
It is to be appreciated that in daily life, terminal device may be careless in user due to the maloperation of user
In the case of have taken some photos, these photos generally can be non-norm paste and the photo useless to user;User may also be
It downloads multiple pictures in batches from webpage in some cases, some very blurred image is also likely to be present in these photos.It is aobvious
So, if when user carries out remote backup to the picture stored in terminal device, if these blurred image also carried out
Remote backup will result in the waste of the storage resource of remote server.
For these reasons, the embodiment of the present invention needs to calculate the clarity of picture first, and clarity is not less than
The picture of preset clear threshold value is set as effective picture, and the picture that clarity is less than preset clear threshold value is set as invalid
Picture.
Optionally, the step of clarity of the picture stored in specific computing terminal equipment, comprising:
Step 1, the picture is converted into gray level image, and processing is sharpened to the gray level image, described in generation
The corresponding sharpening image of picture.
Specifically, under normal circumstances, the picture stored in terminal device is color image, for the ease of subsequent calculating,
This needs that colored picture (including the picture of 3 channels (RGB)) is converted to the gray scale picture (figure comprising 1 channel first
Piece).It is alternatively possible to the average value of the corresponding 3 channel rgb values of each pixel in colored picture is calculated, respectively as
The gray value of each pixel, so that the picture stored in terminal device is converted to gray level image.
Further, processing is sharpened to above-mentioned gray level image by preset image sharpening program, generates and sharpens
Image, thus the profile in more prominent gray level image, although avoiding not clear enough substantially identifiable picture setting
For invalid picture.It is alternatively possible to be sharpened processing to gray level image using OpenCV computer vision library.
Step 2, the standard of the corresponding gray value of each pixel in the corresponding sharpening image of the picture is calculated
Difference, the clarity as the picture.
It is to be appreciated that the standard deviation of one group of data can be used for reacting the differentiation degree of this group of data, therefore sharpen figure
The standard deviation of the corresponding gray value of each pixel can reflect the whole differentiation journey of a pixel in sharpening image as in
Degree.In embodiments of the present invention, it is assumed that standard deviation is too small, then reflects the picture of terminal device storage after Edge contrast
Difference between each object for being included is still too small, then obviously the picture is more fuzzy, therefore can incite somebody to action during subsequent
The picture is determined as invalid picture.
In S102, according to the generation time of each effective picture, the effective picture that will be generated in preset time period
It distributes to more than one picture set, wherein in each picture set comprising more than two effective pictures, two-by-two
The time interval of the generation time of effective picture is respectively less than prefixed time interval.
It is to be appreciated that during user takes pictures, it is understood that there may be the case where continuous shooting occurs, and downloads from webpage in user
When picture, it is also possible to download multiple very approximate pictures.Obviously, for above situation, if to the figure in terminal device
When piece carries out remote backup, all effective photos are all uploaded, can still exist and cause remote server storage resource unrestrained
The problem of taking.
For these reasons, after the clarity according to picture filters out effective picture, the embodiment of the present invention also need from
This dimension of effective picture similarity further screens effective picture, thus very high in every group of repetition or similarity
A picture is filtered out in effective picture and carries out upload backup, to reduce the data volume of upload, improves uploading rate, is saved remote
The memory space of journey server.
Notably, since terminal device may generate a large amount of picture within a preset period of time, so if dividing
The similarity between the picture two-by-two generated within a preset period of time is not calculated, then calculation amount can be very big, this can serious shadow
Ring the computational efficiency of terminal device.Therefore, the embodiment of the present invention is in view of under normal circumstances, the higher picture of similarity is basic
On be all to be generated due to continuous shooting or continuous downloading, so the generation time of the higher picture of similarity is often closely spaced.
So in embodiments of the present invention, being based on this principle, a polymerization is carried out first and is calculated.The method that polymerization calculates is exactly: root
According to the generation time of each effective picture, the effective picture generated in preset time period is distributed to more than one picture
Set, wherein in each picture set comprising more than two effective pictures, two-by-two when the generation of effective picture
Between time interval be respectively less than prefixed time interval.
Illustratively, the effective picture generated in 6 hours is distributed to multiple pictures and is closed, and if guaranteeing a figure
Piece set includes 2 or more effective pictures, then the interval of the generation time of effective picture two-by-two in the picture set
Less than 5 seconds.It is to be appreciated that in subsequent calculating, it is only necessary to calculate the phase of the picture effective two-by-two inside a picture set
Like degree, without calculating the similarity for the picture effective two-by-two for including in different picture set, to substantially reduce about similar
The calculation amount of degree.
In S103, the similarity of picture two-by-two is calculated in each picture set, each figure is determined based on the similarity
Redundancy picture in piece set, and using the picture in addition to the redundancy picture generated in the preset time period as target
Picture.
Specifically, in embodiments of the present invention, according to the rgb value of pixel each in each picture, characterization picture is generated
Eigenmatrix, and pass through the calculation formula meter of Euclidean distance calculation formula, cosine similarity formula or other picture similarities
Calculate the similarity of the corresponding eigenmatrix of picture two-by-two, the similarity as picture two-by-two.
Notably, as described above, the embodiment of the present invention only calculates the picture two-by-two inside each picture set
Similarity, without calculating in different picture set the similarity of picture two-by-two, so as to greatly reduce the calculating of similarity
Amount.
Optionally, multiple similarities in each picture set are higher than the picture of preset similarity threshold as a son
Set;A highest picture of clarity is chosen from each subclass, it will be unselected in the subclass
Picture is as the redundancy picture.
Understandably, it is assumed that have the similarity of part picture very high in a picture set, in order to save long-range clothes
The storage resource of business device, only selection one is uploaded the embodiment of the present invention from the very high picture of degree similar to each other, so i.e.
It can guarantee that the relevant information of user's shooting is not lost, and the data volume of upload can be reduced to greatest extent.
In S104, answered the application program for generating each Target Photo as the corresponding target of each Target Photo
With program, and transfer the predetermined level of each destination application.
It is to be appreciated that there may be the risks of loss of data for the remote backup of picture, and the embodiment of the present invention is different
The possible importance of the picture of application program generation (including shooting or downloading) or sensitivity be not identical, so the present invention is implemented
Example is that the application program of picture can be generated to have preset a predetermined level, so as in the follow-up process, according to
The predetermined level of application program determines the significance level for the picture that it is generated.
Optionally, the predetermined level of application program can be manually set by user, can also be automatic by terminal device
Setting.If being set automatically by terminal device, terminal device can be by presetting for the application program that operating system when factory carries etc.
Grade is set as higher level, and the application setting that user was downloaded to installation later is lower grade.
In S105, the Target Photo that the destination application that the predetermined level is higher than predetermined level threshold value generates is divided
Solution is multiple Target Photo components.
Notably, often being encrypted to picture in the not stolen method to leak of traditional guarantee picture
Processing, but encrypted picture still has the risk decoded after whole usurp.Especially in server
When internal staff usurps the picture of encryption, since it is familiar with Encryption Algorithm used in terminal device and server, very
It is easy to decode the picture of encryption.
Therefore, the embodiment of the present invention is remote in view of often there is more during remote backup, in distributed system
Journey server, and a Target Photo in fact can generate multiple Target Photo components after repeatedly decomposing, and when only
After having partial target picture component to be intercepted, interceptor is in fact the information that can not identify former Target Photo, so will
Target Photo carries out distributed storage after decomposing again, advantageously ensures that Target Photo after stolen, includes in Target Photo
The not stolen user's identification of information and understanding ground, to guarantee the safety of remote backup.When user needs by under terminal device
After the Target Photo backed up before carrying, each Target Photo component can be downloaded according to the ID of different target picture, be gone forward side by side
These Target Photo components are reconstructed by picture reconstruction technology for one step, to generate Target Photo.
As an embodiment of the present invention, as shown in Fig. 2, above-mentioned S105 includes:
The predetermined level is higher than the target application journey of predetermined level threshold value by Algorithms of Discrete Wavelet Transform by S1051
The Target Photo that sequence generates is decomposed into the high frequency picture component of multiple first layers and the low frequency picture component of 1 first layer.
Optionally, target image is decomposed by haar wavelet transform algorithm, since this step is to target image
First time decompose, therefore generate be the high frequency picture component of horizontal direction of first layer, vertical direction high frequency picture point
The low frequency picture component of amount, the high frequency picture component in diagonal direction and 1 first layer.
S1052 repeats the decomposition operation of preset times since the low frequency picture component of the first layer, described
Decomposition operation includes: that upper one layer of low frequency picture component is decomposed into multiple next layer of high frequencies by Algorithms of Discrete Wavelet Transform
Picture component and 1 next layer of low frequency picture component.
Optionally, it is assumed that preset times 2, then on the basis of the low frequency picture component of the S1051 first layer generated again
It is secondary to carry out 2 decomposition, generate third layer and the 4th layer of high frequency picture component and low frequency picture component.
S1053 regard each layer of the high frequency picture component and the low frequency picture component as the target figure
Piece component.
It is to be appreciated that include in high frequency picture component is the high-frequency information of object edge in Target Photo, low frequency figure
The information for changing more gentle part in Target Photo is contained in piece component, therefore any one Target Photo component is only
Comprising the partial information in Target Photo, during remote backup, even if there is partial target picture component to be intercepted, interceptor
Also the complete information of Target Photo can not be identified.
In S106, each Target Photo component of the same Target Photo is uploaded to multiple and different long-range clothes respectively
Business device is backed up.
Notably, any one of embodiment of the present invention Target Photo component has its corresponding Image ID, divides
It solves classification and decomposes level, wherein decomposing classification for indicating that Target Photo component is low frequency picture component or high frequency picture
Component decomposes level for indicating Target Photo component is which level to generate (example in the decomposable process of Target Photo
First layer, second layer in this way etc.), Image ID is for showing that the Target Photo component is being decomposed by which Target Photo
's.
Optionally, the embodiment of the present invention Target Photo component be uploaded to respectively multiple and different remote server carry out it is standby
When part, the Image ID of each Target Photo component, decomposition classification and decomposition level are uploaded to remote server together, in this way
It just can guarantee when terminal device needs to restore picture, after having downloaded each Target Photo component, pass through each Target Photo
Recovery is reconstructed to Target Photo in Image ID, decomposition classification and the decomposition level of component.
It is to be appreciated that Target Photo component is directly marked its upper corresponding Image ID, decomposes classification and decomposition layer
It is uploaded after grade and still has certain security risks.For example, the information content of Target Photo is relatively simple or interceptor is primary
Property interception or usurped a large amount of Target Photo components stored in multiple remote servers, then the Target Photo usurped according to it point
The Image ID of amount decomposes classification and decomposes level, may still reconstruct or restore Target Photo out.It is asked to solve this
Topic, the embodiment of the invention also provides another implementation processes of S106, as shown in figure 3, details are as follows:
S1061 determines the corresponding decomposition classification of each Target Photo component and decomposes level, and the decomposition classification is used for
Indicate that the Target Photo component is the low frequency picture component or the high frequency picture component, the decomposition level is for indicating
Level when the Target Photo component generates in the decomposable process of the Target Photo.
As described above, the introduction decomposed classification and decompose level corresponding for Target Photo component is detailed above
It states.
S1062 by preset decomposition level, decomposes classification and the corresponding relationship of watermark data three, according to each
The decomposition classification and decomposition level of Target Photo component, search for the corresponding watermark data of each Target Photo component.
In embodiments of the present invention, after the corresponding decomposition level of a known Target Photo component, decomposition classification, according to
Preset corresponding relationship can determine the corresponding watermark data of Target Photo component.
It, will not be with reference to should notably, the embodiment of the present invention is when determining the corresponding watermark data of Target Photo component
The Image ID of Target Photo component can not generate different watermarks because the quantity of Image ID is excessive according to different Image IDs
Data.
S1063 adds its corresponding watermark data for each Target Photo component, generates watermark picture component, and will be each
A watermark picture component is uploaded to different remote servers and is backed up.
It obviously, also can be according to the Target Photo point for generating the watermark picture component when watermark picture component is opened in upload one
It measures corresponding Image ID the watermark picture component is marked, so that judgement should when Target Photo being reconstructed future
Watermark picture component is for which Target Photo to be reconstructed.
It is to be appreciated that in this way, on the one hand downloading can be verified when future Target Photo being reconstructed
Watermark picture component in watermark data, to judge whether watermark picture component is tampered in remote server;Separately
On the one hand according to preset decomposition level, classification and water can be decomposed after extracting watermark data in watermark picture component
Printing determines the corresponding decomposition level of watermark picture component, decomposes classification according to the corresponding relationship of three, then just can be right
Target Photo is reconstructed.
Notably, by adding watermark data into Target Photo component, and establish watermark data and decomposition layer
Grade, the corresponding relationship for decomposing classification, so that even if hacker or server internal personnel have intercepted whole watermark picture components,
In the case where not knowing watermark data and decomposing the corresponding relationship of level, decomposition classification, each water just can not be clearly determined
Impression piece component is specifically to characterize low frequency picture component or high frequency picture component, can not also determine that watermark picture component is to decompose
The corresponding data of picture component which layer generates in the process, so natural can not accurately remove multiple watermark picture components
Except being reconstructed after watermark data, Target Photo can not be generated, to ensure that the information in Target Photo is not leaked.
In S107, by the predetermined level not higher than the Target Photo that the destination application of predetermined level threshold value generates
Directly it is uploaded to the remote server.
Understandably, it is assumed that the predetermined level of a destination application is lower, then proves its Target Photo generated
Sensibility it is lower, in order to reduce the calculation amount of terminal device, these Target Photos are not decomposed, are directly uploaded to one
It is backed up in remote server.
In embodiments of the present invention, by the clarity of the picture stored in computing terminal equipment, clarity is not less than
The picture of clear threshold value is as effective picture;The interval for generating the time is less than according to the generation time of each effective picture and is preset
Effective picture of time interval is combined into a picture set;The similarity for calculating picture two-by-two in picture set, based on similar
It spends and determines redundancy picture;Using the picture in addition to redundancy picture as Target Photo;The application program for generating Target Photo is made
For destination application and transfer the predetermined level of each destination application;Predetermined level is higher than to the mesh of predetermined level threshold value
The Target Photo that mark application program generates is decomposed into multiple Target Photo components, by each Target Photo of the same Target Photo
Component is uploaded to different remote servers and is backed up, to reduce the data volume remotely stored and guarantee data security.
Corresponding to the remote backup method of picture described in foregoing embodiments, Fig. 4 shows provided in an embodiment of the present invention
The structural block diagram of the remote backup device of picture, for ease of description, only parts related to embodiments of the present invention are shown.
Referring to Fig. 4, which includes:
Computing module 401, the clarity of the picture for being stored in computing terminal equipment, by the clarity not less than pre-
If the picture of clear threshold value be set as effective picture;
Composite module 402, for the generation time according to each effective picture, will be generated in preset time period described in have
Effect picture is distributed to more than one picture set, wherein in each picture set comprising more than two effective pictures
In, the time interval of the generation time of effective picture is respectively less than prefixed time interval two-by-two;
Molality block 403 is deleted, for calculating in each picture set the similarity of picture two-by-two, is determined based on the similarity
Redundancy picture in each picture set, and the picture in addition to the redundancy picture generated in the preset time period is made
For Target Photo;
Module 404 is transferred, the application program for that will generate each Target Photo is corresponding as each Target Photo
Destination application, and transfer the predetermined level of each destination application;
Backup module 405, the mesh that the destination application for the predetermined level to be higher than to predetermined level threshold value generates
Piece of marking on a map is decomposed into multiple Target Photo components, and each Target Photo component of the same Target Photo is uploaded to respectively more
A different remote server is backed up.
Optionally, the computing module, is specifically used for:
The picture is converted into gray level image, and processing is sharpened to the gray level image, generates the picture pair
The sharpening image answered;
The standard deviation for calculating the corresponding gray value of each pixel in the corresponding sharpening image of the picture, as
The clarity of the picture.
Optionally, described to delete molality block, it is specifically used for: multiple similarities in each picture set is higher than preset similar
The picture for spending threshold value is closed as a subset;A highest picture of clarity is chosen from each subclass, it will
Unselected picture is as the redundancy picture in the subclass.
Optionally, the backup module, is specifically used for:
The destination application that the predetermined level is higher than predetermined level threshold value is generated by Algorithms of Discrete Wavelet Transform
Target Photo be decomposed into the high frequency picture component of multiple first layers and the low frequency picture component of 1 first layer;
Since the low frequency picture component of the first layer, the decomposition operation of preset times, the decomposition fortune are repeated
Calculation includes: the high frequency picture point that upper one layer of low frequency picture component is decomposed into multiple next layers by Algorithms of Discrete Wavelet Transform
Amount and 1 next layer of low frequency picture component;
It regard each layer of the high frequency picture component and the low frequency picture component as the Target Photo component.
Optionally, the backup module, is also used to:
It determines the corresponding decomposition classification of each Target Photo component and decomposes level, the decomposition classification is for indicating institute
Stating Target Photo component is the low frequency picture component or the high frequency picture component, and the decomposition level is for indicating the mesh
Level when piece component of marking on a map generates in the decomposable process of the Target Photo;
By preset decomposition level, classification and the corresponding relationship of watermark data three are decomposed, according to each target figure
The decomposition classification and decomposition level of piece component, search for the corresponding watermark data of each Target Photo component;
Its corresponding watermark data is added for each Target Photo component, generates watermark picture component, and will be each described
Watermark picture component is uploaded to different remote servers and is backed up.
Optionally, the backup module, is also used to: the predetermined level is not higher than to the target application of predetermined level threshold value
The Target Photo of Program Generating is directly uploaded to the remote server.
In embodiments of the present invention, by the clarity of the picture stored in computing terminal equipment, clarity is not less than
The picture of clear threshold value is as effective picture;The interval for generating the time is less than according to the generation time of each effective picture and is preset
Effective picture of time interval is combined into a picture set;The similarity for calculating picture two-by-two in picture set, based on similar
It spends and determines redundancy picture;Using the picture in addition to redundancy picture as Target Photo;The application program for generating Target Photo is made
For destination application and transfer the predetermined level of each destination application;Predetermined level is higher than to the mesh of predetermined level threshold value
The Target Photo that mark application program generates is decomposed into multiple Target Photo components, by each Target Photo of the same Target Photo
Component is uploaded to different remote servers and is backed up, to reduce the data volume remotely stored and guarantee data security.
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 5, the terminal of the embodiment is set
Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50
Calculation machine program 52, such as the remote backup program of picture.The processor 50 is realized above-mentioned when executing the computer program 52
Step in the remote backup embodiment of the method for each picture, such as step 101 shown in FIG. 1 is to 107.Alternatively, the processing
Device 50 realizes the function of each module/unit in above-mentioned each Installation practice when executing the computer program 52, such as shown in Fig. 4
The function of unit 401 to 405.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud terminal device and set
It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5
The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5
It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit,
It can be each unit to physically exist alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Partly or completely unit therein can be selected to realize this embodiment scheme according to the actual needs
Purpose.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of process in example method, can also instruct relevant hardware to complete by computer program, described
Computer program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of remote backup method of picture characterized by comprising
The clarity of the picture stored in computing terminal equipment, the picture by the clarity not less than preset clear threshold value are set
It is set to effective picture;
According to the generation time of each effective picture, the effective picture generated in preset time period is distributed to more than one
Picture set, wherein in each picture set comprising more than two effective pictures, effective picture two-by-two
The time interval for generating the time is respectively less than prefixed time interval;
The similarity of picture two-by-two is calculated in each picture set, the redundancy in each picture set is determined based on the similarity
Picture, and using the picture in addition to the redundancy picture generated in the preset time period as Target Photo;
The application program of each Target Photo will be generated as the corresponding destination application of each Target Photo, and transferred
The predetermined level of each destination application;
The Target Photo that the destination application that the predetermined level is higher than predetermined level threshold value generates is decomposed into multiple targets
Picture component, and by each Target Photo component of the same Target Photo be uploaded to respectively multiple and different remote servers into
Row backup.
2. the remote backup method of picture as described in claim 1, which is characterized in that stored in the computing terminal equipment
The clarity of picture, comprising:
The picture is converted into gray level image, and processing is sharpened to the gray level image, it is corresponding to generate the picture
Sharpening image;
The standard deviation for calculating the corresponding gray value of each pixel in the corresponding sharpening image of the picture, as described
The clarity of picture.
3. the remote backup method of picture as described in claim 1, which is characterized in that described to be determined often based on the similarity
Redundancy picture in a picture set, comprising:
The picture that multiple similarities in each picture set are higher than preset similarity threshold is closed as a subset;
A highest picture of clarity is chosen from each subclass, by figure unselected in the subclass
Piece is as the redundancy picture.
4. the remote backup method of picture as described in claim 1, which is characterized in that described to be higher than the predetermined level in advance
If the Target Photo that the destination application of grade threshold generates is decomposed into multiple Target Photo components, comprising:
The mesh for being generated the destination application that the predetermined level is higher than predetermined level threshold value by Algorithms of Discrete Wavelet Transform
Piece of marking on a map is decomposed into the high frequency picture component of multiple first layers and the low frequency picture component of 1 first layer;
Since the low frequency picture component of the first layer, the decomposition operation of preset times, the decomposition operation packet are repeated
Include: by upper one layer of low frequency picture component by Algorithms of Discrete Wavelet Transform be decomposed into multiple next layers of high frequency picture component with
And 1 next layer of low frequency picture component;
It regard each layer of the high frequency picture component and the low frequency picture component as the Target Photo component.
5. the remote backup method of picture as claimed in claim 4, which is characterized in that described by each of the same Target Photo
A Target Photo component is uploaded to multiple and different remote terminal equipment respectively and is backed up, comprising:
It determines the corresponding decomposition classification of each Target Photo component and decomposes level, the decomposition classification is for indicating the mesh
Piece component of marking on a map is the low frequency picture component or the high frequency picture component, and the decomposition level is for indicating the target figure
Level when piece component generates in the decomposable process of the Target Photo;
By preset decomposition level, classification and the corresponding relationship of watermark data three are decomposed, according to each Target Photo point
The decomposition classification and decomposition level of amount, search for the corresponding watermark data of each Target Photo component;
Its corresponding watermark data is added for each Target Photo component, generates watermark picture component, and by each watermark
Picture component is uploaded to different remote servers and is backed up.
6. the remote backup method of picture as described in claim 1, which is characterized in that further include:
The Target Photo that the predetermined level is generated not higher than the destination application of predetermined level threshold value is directly uploaded to institute
State remote server.
7. a kind of remote backup device of picture, which is characterized in that described device includes:
Computing module, the clarity of the picture for storing in computing terminal equipment are clear not less than preset by the clarity
The picture of clear threshold value is set as effective picture;
Composite module, for the generation time according to each effective picture, the effective picture that will be generated in preset time period
It distributes to more than one picture set, wherein in each picture set comprising more than two effective pictures, two-by-two
The time interval of the generation time of effective picture is respectively less than prefixed time interval;
Molality block is deleted, for calculating in each picture set the similarity of picture two-by-two, each figure is determined based on the similarity
Redundancy picture in piece set, and using the picture in addition to the redundancy picture generated in the preset time period as target
Picture;
Module is transferred, for answering the application program for generating each Target Photo as the corresponding target of each Target Photo
With program, and transfer the predetermined level of each destination application;
Backup module, the Target Photo point that the destination application for the predetermined level to be higher than to predetermined level threshold value generates
Solution is multiple Target Photo components, and each Target Photo component of the same Target Photo is uploaded to respectively multiple and different
Remote server is backed up.
8. the remote backup device of picture as claimed in claim 7, which is characterized in that the computing module is specifically used for:
The picture is converted into gray level image, and processing is sharpened to the gray level image, it is corresponding to generate the picture
Sharpening image;
The standard deviation for calculating the corresponding gray value of each pixel in the corresponding sharpening image of the picture, as described
The clarity of picture.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910379833.6A CN110262925B (en) | 2019-05-08 | 2019-05-08 | Remote backup method, device, terminal equipment and medium for pictures |
PCT/CN2019/118540 WO2020224225A1 (en) | 2019-05-08 | 2019-11-14 | Picture remote backup method and apparatus, and terminal device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910379833.6A CN110262925B (en) | 2019-05-08 | 2019-05-08 | Remote backup method, device, terminal equipment and medium for pictures |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110262925A true CN110262925A (en) | 2019-09-20 |
CN110262925B CN110262925B (en) | 2024-01-30 |
Family
ID=67914446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910379833.6A Active CN110262925B (en) | 2019-05-08 | 2019-05-08 | Remote backup method, device, terminal equipment and medium for pictures |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110262925B (en) |
WO (1) | WO2020224225A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110956149A (en) * | 2019-12-06 | 2020-04-03 | 中国平安财产保险股份有限公司 | Pet identity verification method, device and equipment and computer readable storage medium |
WO2020224225A1 (en) * | 2019-05-08 | 2020-11-12 | 平安科技(深圳)有限公司 | Picture remote backup method and apparatus, and terminal device and medium |
CN112269675A (en) * | 2020-09-22 | 2021-01-26 | 宇龙计算机通信科技(深圳)有限公司 | Data backup method and device and terminal equipment |
CN114641807A (en) * | 2019-11-01 | 2022-06-17 | 微软技术许可有限责任公司 | Image data segmentation and transmission |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105262810A (en) * | 2015-09-29 | 2016-01-20 | 北京金山安全软件有限公司 | Cloud backup method and device for picture and electronic equipment |
CN105701834A (en) * | 2016-02-26 | 2016-06-22 | 努比亚技术有限公司 | Picture automatic backup device and method |
CN105808380A (en) * | 2016-02-26 | 2016-07-27 | 北京金山安全软件有限公司 | Picture backup method and device and electronic equipment |
CN109298971A (en) * | 2018-08-28 | 2019-02-01 | 维沃移动通信有限公司 | A kind of picture backup method and terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9146816B2 (en) * | 2012-06-14 | 2015-09-29 | International Business Machines Corporation | Managing system image backup |
CN110262925B (en) * | 2019-05-08 | 2024-01-30 | 平安科技(深圳)有限公司 | Remote backup method, device, terminal equipment and medium for pictures |
-
2019
- 2019-05-08 CN CN201910379833.6A patent/CN110262925B/en active Active
- 2019-11-14 WO PCT/CN2019/118540 patent/WO2020224225A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105262810A (en) * | 2015-09-29 | 2016-01-20 | 北京金山安全软件有限公司 | Cloud backup method and device for picture and electronic equipment |
CN105701834A (en) * | 2016-02-26 | 2016-06-22 | 努比亚技术有限公司 | Picture automatic backup device and method |
CN105808380A (en) * | 2016-02-26 | 2016-07-27 | 北京金山安全软件有限公司 | Picture backup method and device and electronic equipment |
WO2017143846A1 (en) * | 2016-02-26 | 2017-08-31 | 北京金山安全软件有限公司 | Picture backup method and apparatus, and electronic device |
CN109298971A (en) * | 2018-08-28 | 2019-02-01 | 维沃移动通信有限公司 | A kind of picture backup method and terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020224225A1 (en) * | 2019-05-08 | 2020-11-12 | 平安科技(深圳)有限公司 | Picture remote backup method and apparatus, and terminal device and medium |
CN114641807A (en) * | 2019-11-01 | 2022-06-17 | 微软技术许可有限责任公司 | Image data segmentation and transmission |
CN110956149A (en) * | 2019-12-06 | 2020-04-03 | 中国平安财产保险股份有限公司 | Pet identity verification method, device and equipment and computer readable storage medium |
CN112269675A (en) * | 2020-09-22 | 2021-01-26 | 宇龙计算机通信科技(深圳)有限公司 | Data backup method and device and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110262925B (en) | 2024-01-30 |
WO2020224225A1 (en) | 2020-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110262925A (en) | Remote backup method, apparatus, terminal device and the medium of picture | |
He et al. | A splitting method for separable convex programming | |
CN114528304A (en) | Federal learning method, system and storage medium for updating self-adaptive client parameters | |
CN108256443A (en) | A kind of personnel positioning method, system and terminal device | |
CN104951680A (en) | Biological characteristic information processing method, storage method and device | |
CN109948347A (en) | A kind of date storage method and device, server and readable storage medium storing program for executing | |
CN108961141A (en) | Dual Zero watermarking method, system, storage medium and the server of map vector | |
CN110933040B (en) | Block chain based data uplink method, device, equipment and medium | |
CN105260639A (en) | Face recognition system data update method and device | |
CN111783982A (en) | Attack sample acquisition method, device, equipment and medium | |
CN107832169A (en) | Internal storage data moving method, device, terminal device and storage medium | |
CN110751490A (en) | Fraud identification method and device, electronic equipment and computer-readable storage medium | |
CN111626311A (en) | Heterogeneous graph data processing method and device | |
CN110473136B (en) | Image processing method and device based on SURF-DCT (speeded Up robust features-discrete cosine transform) mixing | |
CN110069445A (en) | Face image processing process, server and computer readable storage medium | |
CN107277108A (en) | Message treatment method, apparatus and system at a kind of node of block chain | |
CN116228544A (en) | Image processing method and device and computer equipment | |
CN113343577B (en) | Parameter optimization method, device, equipment and medium based on machine learning | |
Liu et al. | Wavelet‐Based Color Pathological Image Watermark through Dynamically Adjusting the Embedding Intensity | |
CN107885617A (en) | Export method, system, computer equipment and the readable storage medium storing program for executing of business datum | |
Bini et al. | Secure image deduplication using SPIHT compression | |
CN206833441U (en) | A kind of textile machine apparatus for distributing parameter preset self-resetting devices | |
Vasudevan et al. | A basic study of image processing and its application areas | |
CN111382286B (en) | Data processing method and related product | |
CN114860390B (en) | Container data management method, device, program product, medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |