CN105701834A - Picture automatic backup device and method - Google Patents

Picture automatic backup device and method Download PDF

Info

Publication number
CN105701834A
CN105701834A CN201610107759.9A CN201610107759A CN105701834A CN 105701834 A CN105701834 A CN 105701834A CN 201610107759 A CN201610107759 A CN 201610107759A CN 105701834 A CN105701834 A CN 105701834A
Authority
CN
China
Prior art keywords
picture
backup
edge contour
definition
graphic template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610107759.9A
Other languages
Chinese (zh)
Other versions
CN105701834B (en
Inventor
张翘
吴晓妮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Dahengqin Technology Development Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610107759.9A priority Critical patent/CN105701834B/en
Publication of CN105701834A publication Critical patent/CN105701834A/en
Application granted granted Critical
Publication of CN105701834B publication Critical patent/CN105701834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Image Analysis (AREA)

Abstract

The present invention discloses a picture automatic backup device. The picture automatic backup device comprises: an edge contour processing module configured to perform edge contour processing of a picture to be processed; a matching module configured to perform matching processing of the picture after edge contour processing and a picture corresponding to a preset picture backup type; and an uploading module configured to upload the picture to be processed to a server for the server to store the picture when the picture after edge contour processing matches the picture corresponding to the preset picture backup type. The present invention further discloses a picture automatic backup method. A terminal is able to select a picture, consistent to the preset picture backup type, from the pictures to be processed at present to perform backup processing, so that the operation steps of picture backup may be effectively simplified, important pictures may automatically backup in the server and the storage safety of the important pictures may be improved.

Description

Picture automatic backup device and method
Technical field
The present invention relates to communication technical field, particularly relate to a kind of picture automatic backup device and method。
Background technology
At present, people are in live and work, and the terminal such as commonly used mobile phone, flat board is taken pictures, and the picture shot is generally stored in tag memory。If terminal is once lose or damaging, then its internal picture preserved also is lost in the lump, particularly with the picture that some are more precious, reduction is will be unable to after loss, cause the user is difficult to the cost made up, and therefore, is only stored in terminal by the picture shot and there is insecurity。
In order to prevent the picture that terminal taking completes from losing, the important picture shot can be manually uploaded in Dropbox by user, but the method is comparatively laborious, and user is it is easy to forget that upload important picture, thus causing that important picture yet suffers from the risk lost, relatively unreliable。
Summary of the invention
Present invention is primarily targeted at a kind of picture automatic backup device of offer and method, it is intended to realize automated back-up important picture, simplify the operating procedure of important picture backup, and improve the safety that important picture preserves。
Picture automatic backup device provided by the invention includes:
Edge contour processing module, for carrying out edge contour process to pending picture;
Matching module, for carrying out matching treatment by the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup;
Upper transmission module, when mating for the graphic template storehouse that the described picture after processing through edge contour is corresponding with default picture type of backup, uploads onto the server described pending picture, preserves described picture for described server。
Optionally, described picture automatic backup device also includes:
Judge module, whether the definition for judging the described pending picture of coupling reaches to preset definition;
Wherein, when described judge module judges that the definition of described picture reaches to preset definition, described pending picture is uploaded onto the server by described upper transmission module。
Optionally, described judge module is additionally operable to calculate the width of the profile in the described pending picture after edge contour processes, and when the width of described profile is more than the first predetermined threshold value, then judge that the definition of described pending picture is not up to default definition。
Optionally, described pending picture is the local unlabelled picture preserved;Described picture automatic backup device also includes mark module, and described mark module carries out labelling process for the picture completing to upload that this locality is preserved。
Optionally, described matching module includes:
Subtraction process unit, for carrying out the subtraction process between the pixel of each correspondence position between each graphic template in the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup respectively, it is thus achieved that the absolute difference that the pixel of each position of graphic template is corresponding;
Identifying unit, for when each described absolute difference sum corresponding at least one described graphic template is less than the second predetermined threshold value, it is determined that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated。
Additionally, the picture automatic backup method that the present invention further provides includes:
Pending picture is carried out edge contour process;
The graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is carried out matching treatment;
When the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, described pending picture is uploaded onto the server, preserves described picture for described server。
Optionally, described picture automatic backup method also includes:
Judge whether the definition of the described pending picture of coupling reaches to preset definition;
When definition at described picture reaches to preset definition, then perform the described step uploaded onto the server by described pending picture
Optionally, whether the described definition of described pending picture judging coupling reaches to preset the step of definition and includes:
The width of the profile in the calculating described pending picture after edge contour processes;
When the width of described profile is more than the first predetermined threshold value, then judge that the definition of described pending picture is not up to default definition。
Optionally, described pending picture is the local unlabelled picture preserved;
After the described step uploaded onto the server by described pending picture, described picture automatic backup method also includes: the picture completing to upload that this locality is preserved carries out labelling process。
Optionally, described the step that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup carries out mating is included:
The subtraction process between the pixel of each correspondence position is carried out respectively, it is thus achieved that the absolute difference that the pixel of each position of graphic template is corresponding between each graphic template in graphic template storehouse corresponding with default picture type of backup by the described picture after edge contour processes;
When each described absolute difference sum corresponding at least one described graphic template is less than the second predetermined threshold value, it is determined that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated。
The picture automatic backup device of present invention proposition and method, by pending picture is carried out edge contour process, and the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup is carried out matching treatment, when the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, described pending picture is uploaded onto the server, described picture is preserved for described server, thus user does not need manual backup important picture, terminal can be chosen the picture consistent with default picture type of backup automatically from currently pending picture and be backed-up processing, effectively simplify the operating procedure of picture backup, achieve and automatically important picture is backed up in server, improve the safety that important picture preserves。
Accompanying drawing explanation
Fig. 1 is the optional system architecture schematic diagram that each embodiment of the present invention relates to;
Fig. 2 is the hardware architecture diagram of the optional terminal that each embodiment of the present invention relates to;
Fig. 3 is the high-level schematic functional block diagram of picture automatic backup device first embodiment of the present invention;
Fig. 4 is the schematic diagram of picture automated back-up control of the present invention;
Fig. 5 is the schematic diagram that picture type of backup of the present invention selects interface;
Fig. 6 is the high-level schematic functional block diagram of picture automatic backup device the second embodiment of the present invention;
Fig. 7 is the refinement high-level schematic functional block diagram of the matching module in picture automatic backup device the 3rd embodiment of the present invention;
Fig. 8 is the schematic flow sheet of picture automatic backup method first embodiment of the present invention;
Fig. 9 is the refinement schematic flow sheet of the coupling step in picture automatic backup method the 3rd embodiment of the present invention。
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing。
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention。
The system architecture realizing each embodiment of the present invention is described referring now to accompanying drawing。In follow-up description, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for being conducive to the explanation of the present invention, itself do not have specific meaning。Therefore, " module " and " parts " can mixedly use。
Specifically, as it is shown in figure 1, the system architecture that the present embodiment scheme relates to includes terminal and server。Terminal can be implemented in a variety of manners。Such as, the terminal described in the present invention can include the mobile terminal of such as mobile phone, smart phone, notebook computer, PAD (panel computer) etc. and the fixed terminal of such as numeral TV, desk computer etc.。Each embodiment illustrates for terminal for mobile phone below。Picture automatic backup device in each embodiment of the present invention is based on above-mentioned terminal and realizes。Above-mentioned server can be cloud server。
Pending picture is carried out edge contour process by terminal;The graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated;When the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, described pending picture is uploaded onto the server;
Server, when receiving the picture that terminal is uploaded, preserves described picture。Optionally, terminal iidentification is associated preservation by server with picture。
As a kind of implementation, the hardware configuration of above-mentioned terminal can be as shown in Figure 2。
With reference to Fig. 2, this terminal can include camera unit 110, user input unit 120, memorizer 130, processor 140 and communication bus 150 etc.。Fig. 2 illustrates the terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated。Can alternatively implement more or less of assembly。Each assembly of terminal described in detail below。
The photographic head that camera unit 110 can carry for this terminal, it is possible to take pictures。
User input unit 120 can receive the picture automated back-up instruction etc. of user's input。
Memorizer 130 can be high-speed RAM memorizer, it is also possible to be stable memorizer (non-volatilememory), for instance disk memory。Memorizer 130 optionally can also is that the storage device independent of aforementioned processor 140。As the memorizer 130 of a kind of computer-readable storage medium can store picture automated back-up program, it is also possible to multiple picture type of backups that storage is preset, and the graphic template storehouse corresponding with each picture type of backup。
Processor 140 can call the picture automated back-up program of storage in memorizer 130, and performs following operation:
Pending picture is carried out edge contour process;
The graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated;
When the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, described pending picture is uploaded onto the server, preserves described picture for described server。
Processor 140 may call upon the picture automated back-up program of storage in memorizer 130, and performs following operation:
Judge whether the definition of the described pending picture of coupling reaches to preset definition;
When definition at described picture reaches to preset definition, then perform the described step uploaded onto the server by described pending picture。
Processor 140 may call upon the picture automated back-up program of storage in memorizer 130, and performs following operation:
The width of the profile in the calculating described pending picture after edge contour processes;
When the width of described profile is more than the second predetermined threshold value, then judge that the definition of described pending picture is not up to default definition。
Processor 140 may call upon the picture automated back-up program of storage in memorizer 130, and performs following operation:
After the described step uploaded onto the server by described pending picture, described picture automatic backup method also includes: the picture completing to upload that this locality is preserved carries out labelling process。
Processor 140 may call upon the picture automated back-up program of storage in memorizer 130, and performs following operation:
Each graphic template in graphic template storehouse corresponding with default picture type of backup by the described picture after edge contour processes carries out subtraction process respectively, it is thus achieved that the absolute difference that each pixel is corresponding;
When each described absolute difference sum corresponding at least one described graphic template is less than the second predetermined threshold value, it is determined that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated。
Each embodiment of picture automatic backup device of the present invention is proposed based on said system framework and hardware structure。
With reference to the high-level schematic functional block diagram that Fig. 3, Fig. 3 are picture automatic backup device first embodiment of the present invention。It is emphasized that, to one skilled in the art, functional block diagram shown in Fig. 3 is only the exemplary plot of a preferred embodiment, and those skilled in the art, around the functional module of the picture automatic backup device shown in Fig. 3, can carry out supplementing of new functional module easily;The title of each functional module is self-defined title, only for assisting each program function block understanding this picture automatic backup device, being not used in restriction technical scheme, the core of technical solution of the present invention is, the function that the functional module of each self-defined title to be reached。
The present embodiment proposes a kind of picture automatic backup device, and this picture automatic backup device can be arranged in above-mentioned terminal, and the present embodiment and following example illustrate for terminal for mobile phone。Described picture automatic backup device includes:
Edge contour processing module 210, for carrying out edge contour process to pending picture;
In the present embodiment, mobile phone can arrange some fixed times, when current time arrives the fixed time arranged, then start pending picture is carried out edge contour process, such as, fixed time can be 23 points of every night, therefore, at 23 points of every night, the picture starting automatically to treat process is carried out edge contour process by mobile phone。Or, mobile phone can detecting real-time photographing operation, it is possible to for the photographing operation carried out based on the camera applications of mobile phone, it is also possible to for the photographing operation carried out based on application such as the wechat of mobile phone, QQ。When above-mentioned photographing operation generates the picture of shooting, then start pending picture is carried out edge contour process。Or, whether mobile phone currently can also be connected to WIFI by detecting real-time, when having detected in mobile phone connection WIFI, then starts pending picture is carried out edge contour process。
Above-mentioned pending picture can be locally stored picture, and this picture can be what shot by camera, it is also possible to for what downloaded by network, it is also possible to for what received by chat software and preserve。
In the present embodiment, it is possible to adopt the contours extract function in OpenCV that pending picture is carried out edge contour process, obtain the bianry image corresponding with pending picture。
Optionally, it is also possible to above-mentioned bianry image is smoothed, denoising etc. processes, thus obtaining the main body thing profile become apparent from pending picture。
Matching module 220, for carrying out matching treatment by the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup;
In the present embodiment, picture type of backup can be classified according to image content, for instance, picture type of backup can be divided into the types such as portrait, plant, animal, building, food, landscape, word。Each picture type of backup can be preset with a graphic template storehouse, and graphic template storehouse includes some graphic templates。User can pre-set described default picture type of backup。Such as, if user thinks that the picture of portrait type is important picture, then can be set to portrait type by default picture type of backup。If user thinks that the picture of building and landscape type is important picture, then default picture type of backup can be set to building type and landscape type。
Optionally, mobile phone when receiving picture automated back-up instruction, then can open picture automated back-up pattern, i.e. start pending picture is carried out edge contour process。
Optionally, it is also possible to arrange one for receiving control or the button of picture automated back-up instruction, when triggering this control or button, namely can be considered and have received picture automated back-up instruction。The present embodiment illustrates to arrange a control。As shown in Figure 4, Fig. 4 is the schematic diagram of picture automated back-up control of the present invention, when user triggers the picture backup control shown in Fig. 4, namely can be considered and have received picture automated back-up instruction, then open picture automatic backup function。
Optionally, when mobile phone receives picture automated back-up instruction, mobile phone automatic spring one picture type of backup can select interface。As it is shown in figure 5, Fig. 5 is the schematic diagram that picture type of backup of the present invention selects interface, Fig. 5 illustrates six kinds of picture type of backups such as portrait, plant, animal, building, food, landscape, selects for user。User can choose one of them, two or more picture type of backup, namely the picture type of backup that user chooses may be configured as described default picture type of backup。
Optionally, the graphic template in above-mentioned graphic template storehouse can be bianry image。The similarity between described picture and each graphic template in graphic template storehouse after profile processes can be calculated, preset value is reached with the similarity of described picture after profile processes, then it is assumed that coupling between the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup at least one graphic template。
Upper transmission module 230, when mating for the graphic template storehouse that the described picture after processing through edge contour is corresponding with default picture type of backup, uploads onto the server described pending picture, preserves described picture for described server。
In the present embodiment, when the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, this the pending picture then thinking currently processed is the important picture that user thinks, therefore, is uploaded onto the server by this picture。Optionally, in uploading pictures at the same time it can also be terminal iidentification is uploaded onto the server, for server, this picture associated with terminal iidentification preservation。
In the present embodiment, when not mating in the graphic template storehouse that the described picture after edge contour process is corresponding with default picture type of backup, this the pending picture then thinking currently processed is not the important picture that user thinks, therefore, this picture need not be carried out upload process by mobile phone。
Optionally, described pending picture is the local unlabelled picture preserved。Described picture automatic backup device also includes mark module, and described mark module carries out labelling process for the picture completing to upload that this locality is preserved。
In the present embodiment, described mark module can also carry out the picture that matching treatment crosses carry out labelling process to all。The picture processed is the picture through matching treatment, including coupling and unmatched。After picture is uploaded onto the server, it is possible to this picture is carried out labelling process, for instance, it is possible to it is set to upload labelling。Can also be in the matching process, the unmatched picture in graphic template storehouse that result of determination is corresponding with default picture type of backup carries out labelling process, to show that this photo does not meet default picture type of backup, therefore, can be set to this picture corresponding with current preset picture type of backup not upload labelling, not upload the picture type of backup that labelling is corresponding with it showing that this picture does not meet。
After the picture crossed through matching treatment is carried out labelling process, then when predetermined time reaches again, all pictures not carrying out labelling process preserved scanning this locality, now pending picture is the unlabelled picture of local preservation。
It is understandable that, after user have changed default picture type of backup, then pending picture can be different, all be labeled as the picture uploaded will not as pending picture, for being labeled as the picture do not uploaded, needing to judge that whether the picture type of backup not uploading the picture of labelling corresponding is consistent with current default picture type of backup, when inconsistent, then this picture is pending picture;When consistent, then this picture will not as pending picture。
Picture automatic backup device provided by the invention, pending picture is being carried out edge contour process, and the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup is carried out matching treatment, when the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, described pending picture is uploaded onto the server, described picture is preserved for described server, thus user does not need manual backup important picture, terminal can be chosen the picture consistent with default picture type of backup automatically from currently pending picture and be backed-up processing, effectively simplify the operating procedure of picture backup, achieve and automatically important picture is backed up in server, improve the safety that important picture preserves。
Further, in order to improve the quality of the picture of automated back-up, first embodiment based on picture automatic backup device of the present invention, the invention allows for the second embodiment of picture automatic backup device, with reference to Fig. 6, Fig. 6 is the high-level schematic functional block diagram of picture automatic backup device the second embodiment of the present invention, and described picture automatic backup device also includes:
Judge module 240, whether the definition for judging the described pending picture of coupling reaches to preset definition;
Wherein, when described judge module 240 judges that the definition of described picture reaches to preset definition, described pending picture is uploaded onto the server by described upper transmission module 230。
In the present embodiment, when carrying out picture automated back-up, it is possible to first pending picture is carried out definition judgement, and when the definition of pending picture reaches to preset definition, pending picture is carried out edge contour process and matching treatment again, and when coupling, picture is uploaded。First pending picture can also be carried out edge contour process and matching treatment, and when coupling, more pending picture is carried out definition judgement, picture is uploaded when reaching to preset definition by the definition at pending picture。In a word, it is necessary under two conditions that coupling and definition meet, just think that this picture is the important picture that user thinks, and this picture is uploaded。When any one condition can not meet, it will be considered that this picture is not the important picture that user thinks, this picture will not be carried out upload process。Process at this point it is possible to this picture to be carried out above-mentioned labelling of not uploading。
When picture is carried out definition judgement, it is possible to adopt the image definition in OpenCV to calculate function and directly calculate the definition of image。Optionally, following methods can also be adopted: described judge module 240 is additionally operable to calculate the width of the profile in the described pending picture after edge contour processes, and when the width of described profile is more than the first predetermined threshold value, then judge that the definition of described pending picture is not up to default definition。
For example, it is possible to choose some sampling sections through edge contour on the contour line obtained after processing, and calculating the width of each sampling section, this width can be pixel number。When the width of at least one sampling section is more than the first predetermined threshold value, it is possible to determine that for the definition of pending picture not up to default definition。Or the meansigma methods of width of each sampling section can also be calculated, when described meansigma methods is more than the first predetermined threshold value, then can be determined that the definition into pending picture is not up to default definition。
The present embodiment is by carrying out definition judgement taking a step forward of uploading pictures to picture, thus ensureing that the picture uploaded onto the server is the picture of fine definition, thus being effectively improved the quality of backup picture。
Further, in order to improve the accuracy of backup picture further, the picture making backup more conforms to the demand of user, first or second embodiments based on picture automatic backup device of the present invention, the invention allows for the 3rd embodiment of picture automatic backup device, with reference to the refinement high-level schematic functional block diagram that Fig. 7, Fig. 7 are the matching module in picture automatic backup device the 3rd embodiment of the present invention, described matching module 220 includes:
Subtraction process unit 221, for carrying out the subtraction process between the pixel of each correspondence position between each graphic template in the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup respectively, it is thus achieved that the absolute difference that the pixel of each position of graphic template is corresponding;
Owing to size or the angle of the profile in graphic template is likely to from pending picture obtains profile are different, optionally, in order to improve the accuracy of picture match further, described picture after edge contour processes can also be amplified, reduce and/or after the operation such as rotation, then each graphic template in its graphic template storehouse corresponding with default picture type of backup is carried out subtraction process respectively。
When carrying out subtraction process operation each time, the absolute difference that each pixel is corresponding all can be obtained。Such as, if picture size is M*N, then can obtain M*N absolute difference corresponding to pixel respectively。
Identifying unit 222, for when each described absolute difference sum corresponding at least one described graphic template is less than the second predetermined threshold value, it is determined that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated。
The absolute difference that during subtraction process each time is operated, M*N pixel of acquisition is corresponding is sued for peace, and compares with the second predetermined threshold value。When the absolute difference sum obtained in subtraction process at least one times operates is less than the second predetermined threshold value, then it is assumed that the described picture graphic template storehouse corresponding with default picture type of backup after edge contour processes is mated。
The present invention further provides a kind of picture automatic backup method, this picture automatic backup method can realize based on above-mentioned terminal, and the present embodiment and following example illustrate for terminal for mobile phone。With reference to the schematic flow sheet that Fig. 8, Fig. 8 are picture automatic backup method first embodiment of the present invention, described picture automatic backup method includes:
Step S10, carries out edge contour process to pending picture;
In the present embodiment, mobile phone can arrange some fixed times, when current time arrives the fixed time arranged, then start pending picture is carried out edge contour process, such as, fixed time can be 23 points of every night, therefore, at 23 points of every night, the picture starting automatically to treat process is carried out edge contour process by mobile phone。Or, mobile phone can detecting real-time photographing operation, it is possible to for the photographing operation carried out based on the camera applications of mobile phone, it is also possible to for the photographing operation carried out based on application such as the wechat of mobile phone, QQ。When above-mentioned photographing operation generates the picture of shooting, then start pending picture is carried out edge contour process。Or, whether mobile phone currently can also be connected to WIFI by detecting real-time, when having detected in mobile phone connection WIFI, then starts pending picture is carried out edge contour process。
Above-mentioned pending picture can be locally stored picture, and this picture can be what shot by camera, it is also possible to for what downloaded by network, it is also possible to for what received by chat software and preserve。
In the present embodiment, it is possible to adopt the contours extract function in OpenCV that pending picture is carried out edge contour process, obtain the bianry image corresponding with pending picture。
Optionally, it is also possible to above-mentioned bianry image is smoothed, denoising etc. processes, thus obtaining the main body thing profile become apparent from pending picture。
Step S20, carries out matching treatment by the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup;
In the present embodiment, picture type of backup can be classified according to image content, for instance, picture type of backup can be divided into the types such as portrait, plant, animal, building, food, landscape, word。Each picture type of backup can be preset with a graphic template storehouse, and graphic template storehouse includes some graphic templates。User can pre-set described default picture type of backup。Such as, if user thinks that the picture of portrait type is important picture, then can be set to portrait type by default picture type of backup。If user thinks that the picture of building and landscape type is important picture, then default picture type of backup can be set to building type and landscape type。
Optionally, mobile phone when receiving picture automated back-up instruction, then can open picture automated back-up pattern, i.e. start pending picture is carried out edge contour process。
Optionally, it is also possible to arrange one for receiving control or the button of picture automated back-up instruction, when triggering this control or button, namely can be considered and have received picture automated back-up instruction。The present embodiment illustrates to arrange a control。As shown in Figure 4, when user triggers the picture backup control shown in Fig. 4, namely can be considered and have received picture automated back-up instruction, then open picture automatic backup function。
Optionally, when mobile phone receives picture automated back-up instruction, mobile phone automatic spring one picture type of backup can select interface。As it is shown in figure 5, Fig. 5 illustrates six kinds of picture type of backups such as portrait, plant, animal, building, food, landscape, select for user。User can choose one of them, two or more picture type of backup, namely the picture type of backup that user chooses may be configured as described default picture type of backup。
Optionally, the graphic template in above-mentioned graphic template storehouse can be bianry image。The similarity between described picture and each graphic template in graphic template storehouse after profile processes can be calculated, preset value is reached with the similarity of described picture after profile processes, then it is assumed that coupling between the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup at least one graphic template。
Step S30, when the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, uploads onto the server described pending picture, preserves described picture for described server。
In the present embodiment, when the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, this the pending picture then thinking currently processed is the important picture that user thinks, therefore, is uploaded onto the server by this picture。Optionally, in uploading pictures at the same time it can also be terminal iidentification is uploaded onto the server, for server, this picture associated with terminal iidentification preservation。
In the present embodiment, when not mating in the graphic template storehouse that the described picture after edge contour process is corresponding with default picture type of backup, this the pending picture then thinking currently processed is not the important picture that user thinks, therefore, this picture need not be carried out upload process by mobile phone。
Optionally, described pending picture is the local unlabelled picture preserved。After the described step uploaded onto the server by described pending picture, described picture automatic backup method also includes: the picture completing to upload that this locality is preserved carries out labelling process。
In the present embodiment, it is also possible to carry out the picture that matching treatment crosses carry out labelling process to all。The picture processed is the picture through matching treatment, including coupling and unmatched。After picture is uploaded onto the server, it is possible to this picture is carried out labelling process, for instance, it is possible to it is set to upload labelling。Can also be in the matching process, the unmatched picture in graphic template storehouse that result of determination is corresponding with default picture type of backup carries out labelling process, to show that this photo does not meet default picture type of backup, therefore, can be set to this picture corresponding with current preset picture type of backup not upload labelling, not upload the picture type of backup that labelling is corresponding with it showing that this picture does not meet。
After the picture crossed through matching treatment is carried out labelling process, then when predetermined time reaches again, all pictures not carrying out labelling process preserved scanning this locality, now pending picture is the unlabelled picture of local preservation。
It is understandable that, after user have changed default picture type of backup, then pending picture can be different, all be labeled as the picture uploaded will not as pending picture, for being labeled as the picture do not uploaded, needing to judge that whether the picture type of backup not uploading the picture of labelling corresponding is consistent with current default picture type of backup, when inconsistent, then this picture is pending picture;When consistent, then this picture will not as pending picture。
Picture automatic backup method provided by the invention, by pending picture is carried out edge contour process, and the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup is carried out matching treatment, when the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, described pending picture is uploaded onto the server, described picture is preserved for described server, thus user does not need manual backup important picture, terminal can be chosen the picture consistent with default picture type of backup automatically from currently pending picture and be backed-up processing, effectively simplify the operating procedure of picture backup, achieve and automatically important picture is backed up in server, improve the safety that important picture preserves。
Further, in order to improve the quality of the picture of automated back-up, based on the first embodiment of picture automatic backup method of the present invention, the invention allows for the second embodiment of picture automatic backup method, described picture automatic backup device also includes: described picture automatic backup method also includes:
Judge whether the definition of the described pending picture of coupling reaches to preset definition;
When definition at described picture reaches to preset definition, then perform the described step uploaded onto the server by described pending picture。
In the present embodiment, when carrying out picture automated back-up, it is possible to first pending picture is carried out definition judgement, and when the definition of pending picture reaches to preset definition, pending picture is carried out edge contour process and matching treatment again, and when coupling, picture is uploaded。First pending picture can also be carried out edge contour process and matching treatment, and when coupling, more pending picture is carried out definition judgement, picture is uploaded when reaching to preset definition by the definition at pending picture。In a word, it is necessary under two conditions that coupling and definition meet, just think that this picture is the important picture that user thinks, and this picture is uploaded。When any one condition can not meet, it will be considered that this picture is not the important picture that user thinks, this picture will not be carried out upload process。Process at this point it is possible to this picture to be carried out above-mentioned labelling of not uploading。
When picture is carried out definition judgement, it is possible to adopt the image definition in OpenCV to calculate function and directly calculate the definition of image。Optionally, it is also possible to adopt following methods: whether the definition of the described described pending picture judging coupling reaches to preset the step of definition includes: the width of the profile in the calculating described pending picture after edge contour processes;When the width of described profile is more than the first predetermined threshold value, then judge that the definition of described pending picture is not up to default definition。
For example, it is possible to choose some sampling sections through edge contour on the contour line obtained after processing, and calculating the width of each sampling section, this width can be pixel number。When the width of at least one sampling section is more than the first predetermined threshold value, it is possible to determine that for the definition of pending picture not up to default definition。Or the meansigma methods of width of each sampling section can also be calculated, when described meansigma methods is more than the first predetermined threshold value, then can be determined that the definition into pending picture is not up to default definition。
The present embodiment is by carrying out definition judgement taking a step forward of uploading pictures to picture, thus ensureing that the picture uploaded onto the server is the picture of fine definition, thus being effectively improved the quality of backup picture。
Further, in order to improve the accuracy of backup picture further, the picture making backup more conforms to the demand of user, first or second embodiments based on picture automatic backup method of the present invention, the invention allows for the 3rd embodiment of picture automatic backup method, with reference to the refinement schematic flow sheet that Fig. 9, Fig. 9 are the coupling step in picture automatic backup method the 3rd embodiment of the present invention, step S20 includes:
Step S21, the subtraction process between the pixel of each correspondence position is carried out respectively, it is thus achieved that the absolute difference that the pixel of each position of graphic template is corresponding between each graphic template in graphic template storehouse corresponding with default picture type of backup by the described picture after edge contour processes;
Owing to size or the angle of the profile in graphic template is likely to from pending picture obtains profile are different, optionally, in order to improve the accuracy of picture match further, described picture after edge contour processes can also be amplified, reduce and/or after the operation such as rotation, then each graphic template in its graphic template storehouse corresponding with default picture type of backup is carried out subtraction process respectively。
When carrying out subtraction process operation each time, the absolute difference that each pixel is corresponding all can be obtained。Such as, if picture size is M*N, then can obtain M*N absolute difference corresponding to pixel respectively。
Step S22, when each described absolute difference sum corresponding at least one described graphic template is less than the second predetermined threshold value, it is determined that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated。
The absolute difference that during subtraction process each time is operated, M*N pixel of acquisition is corresponding is sued for peace, and compares with the second predetermined threshold value。When the absolute difference sum obtained in subtraction process at least one times operates is less than the second predetermined threshold value, then it is assumed that the described picture graphic template storehouse corresponding with default picture type of backup after edge contour processes is mated。
It should be noted that, in this article, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or device not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or device。When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of this key element, method, article or device。
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment。
Through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to above-described embodiment method and realize, hardware can certainly be passed through, but in a lot of situation, the former is embodiment more preferably。Based on such understanding, the part that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, server, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention。
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention。

Claims (10)

1. a picture automatic backup device, it is characterised in that described picture automatic backup device includes:
Edge contour processing module, for carrying out edge contour process to pending picture;
Matching module, for carrying out matching treatment by the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup;
Upper transmission module, when mating for the graphic template storehouse that the described picture after processing through edge contour is corresponding with default picture type of backup, uploads onto the server described pending picture, preserves described picture for described server。
2. picture automatic backup device as claimed in claim 1, it is characterised in that described picture automatic backup device also includes:
Judge module, whether the definition for judging the described pending picture of coupling reaches to preset definition;
Wherein, when described judge module judges that the definition of described picture reaches to preset definition, described pending picture is uploaded onto the server by described upper transmission module。
3. picture automatic backup device as claimed in claim 2, it is characterized in that, described judge module is additionally operable to calculate the width of the profile in the described pending picture after edge contour processes, and when the width of described profile is more than the first predetermined threshold value, then judge that the definition of described pending picture is not up to default definition。
4. the picture automatic backup device as described in any one of claims 1 to 3, it is characterised in that described pending picture is the local unlabelled picture preserved;Described picture automatic backup device also includes mark module, and described mark module carries out labelling process for the picture completing to upload that this locality is preserved。
5. the picture automatic backup device as described in any one of claims 1 to 3, it is characterised in that described matching module includes:
Subtraction process unit, for carrying out the subtraction process between the pixel of each correspondence position between each graphic template in the graphic template storehouse that the described picture after edge contour processes is corresponding with default picture type of backup respectively, it is thus achieved that the absolute difference that the pixel of each position of graphic template is corresponding;
Identifying unit, for when each described absolute difference sum corresponding at least one described graphic template is less than the second predetermined threshold value, it is determined that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated。
6. a picture automatic backup method, it is characterised in that described picture automatic backup method includes:
Pending picture is carried out edge contour process;
The graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is carried out matching treatment;
When the graphic template storehouse coupling that the described picture after edge contour process is corresponding with default picture type of backup, described pending picture is uploaded onto the server, preserves described picture for described server。
7. picture automatic backup method as claimed in claim 6, it is characterised in that described picture automatic backup method also includes:
Judge whether the definition of the described pending picture of coupling reaches to preset definition;
When definition at described picture reaches to preset definition, then perform the described step uploaded onto the server by described pending picture。
8. picture automatic backup method as claimed in claim 7, it is characterised in that whether the definition of the described described pending picture judging coupling reaches to preset the step of definition includes:
The width of the profile in the calculating described pending picture after edge contour processes;
When the width of described profile is more than the first predetermined threshold value, then judge that the definition of described pending picture is not up to default definition。
9. the picture automatic backup method as described in any one of claim 6 to 8, it is characterised in that described pending picture is the local unlabelled picture preserved;
After the described step uploaded onto the server by described pending picture, described picture automatic backup method also includes: the picture completing to upload that this locality is preserved carries out labelling process。
10. the picture automatic backup method as described in any one of claim 6 to 8, it is characterised in that described the step that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup carries out mating is included:
The subtraction process between the pixel of each correspondence position is carried out respectively, it is thus achieved that the absolute difference that the pixel of each position of graphic template is corresponding between each graphic template in graphic template storehouse corresponding with default picture type of backup by the described picture after edge contour processes;
When each described absolute difference sum corresponding at least one described graphic template is less than the second predetermined threshold value, it is determined that the graphic template storehouse that described picture after edge contour processes is corresponding with default picture type of backup is mated。
CN201610107759.9A 2016-02-26 2016-02-26 Automatic picture backup device and method Active CN105701834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610107759.9A CN105701834B (en) 2016-02-26 2016-02-26 Automatic picture backup device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610107759.9A CN105701834B (en) 2016-02-26 2016-02-26 Automatic picture backup device and method

Publications (2)

Publication Number Publication Date
CN105701834A true CN105701834A (en) 2016-06-22
CN105701834B CN105701834B (en) 2020-07-10

Family

ID=56223295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610107759.9A Active CN105701834B (en) 2016-02-26 2016-02-26 Automatic picture backup device and method

Country Status (1)

Country Link
CN (1) CN105701834B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484226A (en) * 2016-09-27 2017-03-08 北京奇虎科技有限公司 The renewal method of calibration of icon and device
CN107291577A (en) * 2017-06-19 2017-10-24 腾讯科技(深圳)有限公司 file backup method, device and storage medium
CN108021866A (en) * 2017-11-03 2018-05-11 百度在线网络技术(北京)有限公司 Photo management method, device, equipment and storage medium
CN108260242A (en) * 2018-01-10 2018-07-06 广东美的厨房电器制造有限公司 Microwave cooking equipment and its protection control method and device
CN109447938A (en) * 2017-08-31 2019-03-08 宁波方太厨具有限公司 A kind of detection method and detection device of oven baking performance
CN110262925A (en) * 2019-05-08 2019-09-20 平安科技(深圳)有限公司 Remote backup method, apparatus, terminal device and the medium of picture
CN111027578A (en) * 2018-10-09 2020-04-17 厦门雅迅网络股份有限公司 Method and device for preventing loss and replacement of photos
CN113015963A (en) * 2018-12-04 2021-06-22 深圳迈瑞生物医疗电子股份有限公司 Automatic backup method, equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605957A (en) * 2013-11-05 2014-02-26 天脉聚源(北京)传媒科技有限公司 Image identification method and device thereof
CN104270593A (en) * 2014-10-09 2015-01-07 厦门美图之家科技有限公司 Portable backup storage device suitable for shooting terminal
US20150089028A1 (en) * 2012-06-01 2015-03-26 Tencent Technology (Shenzhen) Company Limited Method, system and client for uploading image, network server and computer storage medium
CN104657972A (en) * 2013-11-25 2015-05-27 北京大学 Ambiguity judging method and system of image block

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150089028A1 (en) * 2012-06-01 2015-03-26 Tencent Technology (Shenzhen) Company Limited Method, system and client for uploading image, network server and computer storage medium
CN103605957A (en) * 2013-11-05 2014-02-26 天脉聚源(北京)传媒科技有限公司 Image identification method and device thereof
CN104657972A (en) * 2013-11-25 2015-05-27 北京大学 Ambiguity judging method and system of image block
CN104270593A (en) * 2014-10-09 2015-01-07 厦门美图之家科技有限公司 Portable backup storage device suitable for shooting terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484226A (en) * 2016-09-27 2017-03-08 北京奇虎科技有限公司 The renewal method of calibration of icon and device
CN107291577A (en) * 2017-06-19 2017-10-24 腾讯科技(深圳)有限公司 file backup method, device and storage medium
CN109447938A (en) * 2017-08-31 2019-03-08 宁波方太厨具有限公司 A kind of detection method and detection device of oven baking performance
CN109447938B (en) * 2017-08-31 2022-01-25 宁波方太厨具有限公司 Detection method and detection device for baking performance of oven
CN108021866A (en) * 2017-11-03 2018-05-11 百度在线网络技术(北京)有限公司 Photo management method, device, equipment and storage medium
CN108260242A (en) * 2018-01-10 2018-07-06 广东美的厨房电器制造有限公司 Microwave cooking equipment and its protection control method and device
CN111027578A (en) * 2018-10-09 2020-04-17 厦门雅迅网络股份有限公司 Method and device for preventing loss and replacement of photos
CN111027578B (en) * 2018-10-09 2024-01-12 厦门雅迅网络股份有限公司 Method and device for preventing photo from being lost and replaced
CN113015963A (en) * 2018-12-04 2021-06-22 深圳迈瑞生物医疗电子股份有限公司 Automatic backup method, equipment and computer storage medium
CN110262925A (en) * 2019-05-08 2019-09-20 平安科技(深圳)有限公司 Remote backup method, apparatus, terminal device and the medium of picture
CN110262925B (en) * 2019-05-08 2024-01-30 平安科技(深圳)有限公司 Remote backup method, device, terminal equipment and medium for pictures

Also Published As

Publication number Publication date
CN105701834B (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN105701834A (en) Picture automatic backup device and method
CN108665373B (en) Interactive processing method and device for vehicle loss assessment, processing equipment and client
CN106558025B (en) Picture processing method and device
US20190206031A1 (en) Facial Contour Correcting Method and Device
KR102547104B1 (en) Electronic device and method for processing plural images
CN107277615B (en) Live broadcast stylization processing method and device, computing device and storage medium
CN107729901B (en) Image processing model establishing method and device and image processing method and system
WO2022042573A1 (en) Application control method and apparatus, electronic device, and readable storage medium
CN112367466A (en) Video shooting method and device, electronic equipment and readable storage medium
CN103327246B (en) A kind of multimedia shooting processing method, device and intelligent terminal
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN113794834A (en) Image processing method and device and electronic equipment
CN111080665B (en) Image frame recognition method, device, equipment and computer storage medium
CN112926369A (en) Face image processing method and device, computer equipment and medium
CN112312021B (en) Shooting parameter adjusting method and device
CN109495778B (en) Film editing method, device and system
CN111800574B (en) Imaging method and device and electronic equipment
CN112734661A (en) Image processing method and device
CN111567034A (en) Exposure compensation method, device and computer readable storage medium
CN111950562A (en) Picture processing method and device, terminal equipment and storage medium
CN104125487A (en) Method and device for uploading image data
CN106095617A (en) A kind of file backup method and file backup device
CN111199182A (en) Lost object method, system and storage medium based on intelligent community
CN112106347A (en) Image generation method, image generation equipment, movable platform and storage medium
CN112822393B (en) Image processing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200612

Address after: Room 105-67309, No. 6, Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: ZHUHAI DAHENGQIN TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant