CN107249022B - Image backup method and device - Google Patents
Image backup method and device Download PDFInfo
- Publication number
- CN107249022B CN107249022B CN201710393334.3A CN201710393334A CN107249022B CN 107249022 B CN107249022 B CN 107249022B CN 201710393334 A CN201710393334 A CN 201710393334A CN 107249022 B CN107249022 B CN 107249022B
- Authority
- CN
- China
- Prior art keywords
- image
- cloud server
- target
- stored
- target image
- 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.)
- Active
Links
Images
Classifications
-
- 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/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- 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/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- 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/10—Protocols in which an application is distributed across nodes in the network
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 Transfer Between Computers (AREA)
Abstract
The disclosure relates to an image backup method and device. The method comprises the following steps: the method comprises the steps of extracting a target image corresponding to a target feature in a complete image to be saved by obtaining the complete image to be saved, and uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image. The target image with small occupied space is uploaded by using the mobile communication network, so that the flow of the mobile communication network is effectively saved, namely, the expense is effectively saved, the transmission time is shortened, and the transmission reliability is improved.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an image backup method and apparatus.
Background
At present, a mobile phone is a relatively common mobile communication terminal device, and a photographing function in the mobile phone becomes a standard configuration of a multimedia function in a daily mobile phone. In order to improve user experience, pixels of a mobile phone camera are upgraded to 800W from 30W, and to some extent, the mobile phone can basically replace a common digital camera, but with the increase of the pixels of the mobile phone camera, the occupied space of a picture shot by the camera is correspondingly increased, and in the limited storage space of the mobile phone, the picture shot by a user cannot be randomly stored by the user, but because the storage space of a cloud server is large, the user can back up the shot picture to the cloud server.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide an image backup method and apparatus. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an image backup method, including:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored;
and uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of extracting a target image corresponding to a target feature in a complete image to be saved by obtaining the complete image to be saved, and uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image. The target image with small occupied space is uploaded by using the mobile communication network, so that the flow of the mobile communication network is effectively saved, namely, the expense is effectively saved, the transmission time is shortened, and the transmission reliability is improved.
In one embodiment, the uploading the target image to a cloud server through a mobile communication network includes:
detecting a network type of a connection;
after the network type of the connection is detected to be a wireless local area network, the complete image to be stored is uploaded to the cloud server through the wireless local area network;
and after detecting that the connected network type is a mobile communication network, uploading the target image to the cloud server through the mobile communication network.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the uploading flexibility is improved by detecting the network type connected with the terminal equipment and determining whether the image uploaded to the server is a complete image to be stored or a target image according to the connected network type.
In one embodiment, the extracting a target image corresponding to a target feature in the complete image to be saved includes:
extracting at least two images corresponding to the target features in the complete image to be stored;
arranging the at least two images according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: at least two target images are arranged, so that the occupied space can be effectively reduced.
In one embodiment, after uploading the target image to a cloud server, the method further includes:
and uploading the complete image to be stored to the cloud server through a wireless local area network so that the cloud server backs up the complete image to be stored.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the complete image to be stored is uploaded to the cloud server through the wireless local area network, so that the problem of image loss caused by loss of terminal equipment or insufficient storage space of the terminal equipment is solved.
In one embodiment, the method further comprises: and sending the corresponding relation between the target image and the complete image to be saved to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relation after receiving the complete image to be saved, and replaces the target image with the complete image to be saved.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and sending the corresponding relation between the target image and the complete image to be stored to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relation after receiving the complete image to be stored, and replaces the target image with the complete image to be stored, thereby improving the user experience.
In one embodiment, the acquiring the complete image to be saved includes:
and acquiring the complete image to be stored through image acquisition equipment.
In one embodiment, the target feature is a human avatar feature.
According to a second aspect of the embodiments of the present disclosure, there is provided an image backup apparatus including:
the acquisition module is used for acquiring a complete image to be stored;
the extraction module is used for extracting a target image corresponding to the target feature in the complete image to be stored, which is acquired by the acquisition module;
the first uploading module is used for uploading the target image extracted by the extracting module to a cloud server through a mobile communication network so that the cloud server backs up the target image.
In one embodiment, the first upload module comprises: the detection sub-module, the first uploading sub-module and the second uploading sub-module;
the detection submodule is used for detecting the type of the connected network;
the first uploading submodule is used for uploading the complete image to be stored to the cloud server through the wireless local area network after the detection submodule detects that the connected network type is the wireless local area network;
the second uploading sub-module is configured to, after the detection sub-module detects that the connected network type is a mobile communication network, upload the target image to the cloud server through the mobile communication network.
In one embodiment, the extraction module comprises: extracting sub-modules and arranging the sub-modules;
the extraction submodule is used for extracting at least two images corresponding to the target features in the complete image to be stored, which is acquired by the acquisition module;
the arrangement submodule is used for arranging the at least two images extracted by the extraction submodule according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
In one embodiment, the apparatus further comprises: a second upload module;
the second uploading module is configured to upload the to-be-saved complete image acquired by the acquiring module to the cloud server through a wireless local area network, so that the cloud server backs up the to-be-saved complete image.
In one embodiment, the apparatus further comprises: a sending module;
the sending module is configured to send the corresponding relationship between the target image extracted by the extracting module and the to-be-saved complete image to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relationship after receiving the to-be-saved complete image, and replaces the target image with the to-be-saved complete image.
In one embodiment, the obtaining module comprises: a first obtaining submodule;
the first obtaining submodule is used for obtaining the complete image to be stored through image obtaining equipment.
In one embodiment, the target feature is a human avatar feature.
According to a third aspect of the embodiments of the present disclosure, there is provided an image backup apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored;
and uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored;
and uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating an image backup method according to an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating a complete image to be saved according to an exemplary embodiment.
FIG. 3 is a schematic diagram illustrating a target image according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating step S102 in an image backup method according to an exemplary embodiment.
FIG. 5 is a diagram illustrating a complete image to be saved according to an example embodiment two.
FIG. 6 is a schematic diagram of a target image shown in accordance with an exemplary embodiment two.
FIG. 7 is a schematic diagram of a target image shown in accordance with an exemplary embodiment.
FIG. 8 is a diagram of a target image shown in accordance with an exemplary embodiment.
FIG. 9 is a schematic diagram of a target image shown in accordance with an exemplary embodiment.
FIG. 10 is a flowchart illustrating an image backup method according to an example embodiment two.
Fig. 11 is a block diagram illustrating an image backup apparatus according to an exemplary embodiment.
Fig. 12 is a block diagram illustrating a first upload module 13 in an image backup apparatus according to an exemplary embodiment.
Fig. 13 is a block diagram illustrating an extraction module 12 in an image backup apparatus according to an exemplary embodiment.
Fig. 14 is a block diagram illustrating an image backup apparatus according to a second exemplary embodiment.
Fig. 15 is a block diagram of an image backup apparatus according to a third exemplary embodiment.
Fig. 16 is a block diagram illustrating the acquisition module 11 in an image backup apparatus according to an exemplary embodiment.
Fig. 17 is a block diagram illustrating an apparatus 80 for image backup according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
At present, with the rise of cloud services, more and more users need to backup photos taken by themselves to a cloud server. In order to achieve the purpose of improving user experience, the resolution of the photographing device in the terminal device is higher and higher, so that the occupied space of the photographed picture is larger and larger, if the picture is backed up through the cloud server under the condition that no wireless local area network exists, on one hand, the mobile communication network flow of the terminal device is excessively consumed, on the other hand, the uploading speed is very low, and the user experience is poor. In order to improve user experience, most of current strategies for photo backup products are to start backup only when a Wireless Fidelity (WIFI) network exists, that is, to upload photos to a cloud server only when the WIFI network exists.
Although the method can achieve the purpose of backing up the photos, if the photographing equipment is lost when the photos are not backed up, the photos which are in the future and backed up do not have the opportunity to be backed up.
According to the method and the device, the complete image to be stored is obtained, the target image corresponding to the target feature in the complete image to be stored is extracted, and the target image is uploaded to the cloud server through the mobile communication network, so that the cloud server backs up the target image. Since the mobile communication network in the user terminal equipment is tariff, and the network speed of the mobile communication network is slow and unstable, when the photos occupying large space are transmitted, the expenses of the user are wasted, the transmission time is too long, and the problem of transmission failure caused by network interruption is likely to occur in the transmission process, in the present disclosure, by extracting the target image in the complete image to be saved, at this time, the occupied space of the target image will be smaller than that of the complete image to be saved, and because the target image is also important information in the complete image to be saved, the aim of backing up the photos is also achieved, therefore, compared with the complete image to be stored, the flow of the mobile communication network is effectively saved in the process of uploading the target image to the cloud server through the mobile communication network, namely, the cost is effectively saved, the transmission time is shortened, and the transmission reliability is improved.
Fig. 1 is a flowchart illustrating an image backup method according to an exemplary embodiment, which includes the following steps S101-S103, as shown in fig. 1:
in step S101, a complete image to be saved is acquired.
For example, the full image to be saved may be acquired by an image acquisition device.
The image acquisition device may be a camera in a mobile phone, a camera, or a video camera, and the disclosure does not limit the type of the image acquisition device.
For example: when the image acquisition device can be a camera in a mobile phone, the complete image to be stored can be a picture shot by a user through the camera in the mobile phone.
In step S102, a target image corresponding to the target feature in the complete image to be saved is extracted.
When the terminal equipment is not connected with the wireless local area network, the flow consumed by uploading the complete image to be stored through the mobile communication network is large, so that partial images which are considered to be important by users in the complete image to be stored can be backed up by the cloud server when only the mobile communication network exists, the images are also stored while the data flow of the mobile communication network is saved, and the images are still stored at the cloud server even if the terminal equipment is lost at the later stage.
For example: the occupation space of the picture shot by the user through the camera of the mobile phone is 600M, the occupation space of the important part in the picture is 50M, and the flow of the mobile communication network required for transmitting the 50M image is far smaller than that for transmitting the 600M image, and the time required for transmitting the 50M image is far smaller than that for transmitting the 600M image, so that the flow of the mobile communication network can be effectively saved, the cost of the user is saved, and the transmission time is reduced.
For example, for a photo, the photo that the person is taken is most often and most emotional to the person in the camera, so in one implementation, the target feature in the present disclosure is a person avatar feature, that is, the target image is an image with only person avatar features. At this time, the image of the character avatar feature in the complete image to be saved may be extracted by a face recognition method.
For example: as shown in fig. 2, the photo taken by the camera of the mobile phone occupies a space of 700M, and after the photo shown in fig. 2 is obtained, the image of the character avatar feature in the photo is extracted, that is, the image shown in fig. 3 is extracted, and the space occupied by the obtained picture in fig. 3 is 70M, which is obviously smaller than that of the photo in fig. 2.
It is noted that the target feature in the present disclosure may also be a landscape, a plant, a person, etc., which the present disclosure does not limit. And the target feature in the disclosure may be set manually by a user, or may be preset, and the disclosure does not limit the manner of obtaining the target feature.
In an implementation manner, a target image corresponding to a target feature in a complete image to be saved may be extracted by an image recognition method, where the image recognition method is the same as that in the related art, and is not described herein again.
In step S103, the target image is uploaded to the cloud server through the mobile communication network, so that the cloud server backs up the target image.
The mobile communication network includes but is not limited to: general Packet Radio Service (General Packet Radio Service, abbreviated as GPRS), third Generation mobile communication (3 rd-Generation, abbreviated as 3G), fourth Generation mobile communication (4 rd-Generation, abbreviated as 4G), fifth Generation mobile communication (5 rd-Generation, abbreviated as 5G), and so on.
And after the target image with smaller occupied space is obtained, the target image is uploaded to a cloud server through a mobile communication network so that the cloud server backs up the target image.
According to the method and the device, the complete image to be stored is obtained to extract the target image corresponding to the target feature in the complete image to be stored, and the target image is uploaded to the cloud server through the mobile communication network, so that the cloud server backs up the target image. The target image with small occupied space is uploaded by using the mobile communication network, so that the flow of the mobile communication network is effectively saved, namely, the expense is effectively saved, the transmission time is shortened, and the transmission reliability is improved.
In an implementation mode, after a complete image to be stored is obtained, the network type connected with the terminal equipment is detected; after detecting that the terminal equipment is connected with a wireless local area network, transmitting a complete image to be stored to a cloud server through the wireless local area network; and after detecting that the terminal equipment is connected with the mobile communication network, uploading the target image to a cloud server through the mobile communication network.
The step of extracting the target image corresponding to the target feature in the complete image to be saved may be executed after the complete image to be saved is obtained, or may be executed after the terminal device is detected to be connected to the mobile communication network.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the uploading flexibility is improved by detecting the network type connected with the terminal equipment and determining whether the image uploaded to the server is a complete image to be stored or a target image according to the connected network type.
In one implementation, when there is only one target image corresponding to the target feature, as shown in fig. 2 and fig. 3, the obtained target image may be directly uploaded to the cloud server, and in another implementation, when the target feature corresponds to at least two images, as shown in fig. 4, the above-mentioned extracting the target image corresponding to the target feature in the to-be-saved complete image includes the following steps S1021 to S1022:
in step S1021, at least two images corresponding to the target feature in the complete image to be saved are extracted.
In step S1022, at least two images are arranged according to a preset rule to obtain a target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
Continuing to explain by taking the example that the target features are the features of the character avatar, when the obtained photo is the photo shown in fig. 5, the character avatar features in the photo at this time correspond to two target character avatars, at this time, the two obtained target character avatars may be arranged according to the positions of the two target character avatars in the original photo to obtain the target image shown in fig. 6, at this time, the target image shown in fig. 6 is uploaded to the cloud server through the mobile communication network, or the two obtained target character avatars are arranged in sequence according to a preset order, for example: arranged sequentially from left to right as shown in fig. 7, from top to bottom as shown in fig. 8, and diagonally as shown in fig. 9. At this time, the space occupied by fig. 7, 8 and 9 may be smaller than the arrangement shown in fig. 6.
It should be noted that the above-mentioned arrangement is only an example, and the practical application is not limited thereto.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: at least two target images are arranged, so that the occupied space can be effectively reduced.
In an embodiment, after the user transmits the target image, if the wireless local area network is connected, the to-be-saved complete image may be further uploaded to the cloud server through the wireless local area network, so that the cloud server backs up the to-be-saved complete image.
The wireless local area network includes but is not limited to: wireless Fidelity (WIFI) network.
When the terminal equipment can use the wireless local area network to be networked, the to-be-stored complete image corresponding to the target image can be uploaded to the cloud server for backup through the wireless local area network, and the to-be-stored complete image is stored after the cloud server receives the to-be-stored complete image. Therefore, the problem of image loss caused by terminal equipment loss or insufficient storage space of the terminal equipment is avoided.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the complete image to be stored is uploaded to the cloud server through the wireless local area network, so that the problem of image loss caused by loss of terminal equipment or insufficient storage space of the terminal equipment is solved.
In an implementation manner, after receiving the to-be-saved complete image, the cloud server may delete a target image corresponding to the to-be-saved complete image that is saved before, and at this time, send a corresponding relationship between the target image and the to-be-saved complete image to the cloud server, so that after receiving the to-be-saved complete image, the cloud server determines a backed-up target image according to the mapping relationship, and replaces the target image with the to-be-saved complete image.
For example, the hash value of the to-be-saved complete image may be named as the target image while the target image is sent to the cloud server, and after the to-be-saved complete image is received, the target image corresponding to the to-be-saved complete image may be found by using the hash value of the to-be-saved complete image, and the target image may be replaced by the to-be-saved complete image.
For example, an identifier corresponding to the target image may be set for the complete image to be saved, so that the target image is found according to the identifier of the complete image to be saved, and the target image is replaced.
For example: an identifier 1231 may be set for the complete image to be saved, the identifier of the target image is also 1231, and after the complete image to be saved is received, the target image identified as 1231 is searched according to the identifier 1231 of the image to be saved, and then the target image is replaced with the image to be saved.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and sending the corresponding relation between the target image and the complete image to be stored to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relation after receiving the complete image to be stored, and replaces the target image with the complete image to be stored, thereby improving the user experience.
Fig. 10 is a flowchart illustrating an image backup method according to an exemplary embodiment, which includes the following steps S201 to S207, as shown in fig. 10:
in step S201: and shooting a photo containing a portrait by a camera of the mobile phone.
In step S202: detecting the network type of the mobile phone connection, and executing the step S203-the step S207 when detecting that the network type of the mobile phone connection is 4G; and executing step S207 when the network type connected to the mobile phone is detected to be WIFI.
In step S203: all face images in the photo containing the portrait are extracted.
In step S204: and arranging all the extracted face images according to a left-to-right arrangement mode to obtain a new target photo.
In step S205: and uploading the target photo to a cloud server through 4G.
In step S206: and continuously detecting the network type of the mobile phone connection, and uploading the photo containing the portrait to the cloud server when the network type of the mobile phone connection is detected to be WIFI, so that the cloud server backs up the photo containing the portrait and deletes the target photo.
In step S207, the photo containing the portrait is uploaded to the cloud server through WIFI.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 11 is a block diagram illustrating an image backup apparatus, which may be implemented as part or all of an electronic device by software, hardware, or a combination thereof, according to an example embodiment. As shown in fig. 11, the image backup apparatus includes:
the acquisition module 11 is used for acquiring a complete image to be stored;
an extracting module 12, configured to extract a target image corresponding to a target feature in the to-be-saved complete image acquired by the acquiring module 11;
a first uploading module 13, configured to upload the target image extracted by the extracting module 12 to a cloud server through a mobile communication network, so that the cloud server backs up the target image.
In one embodiment, as shown in fig. 12, the first upload module 13 includes: a detection submodule 131, a first upload submodule 132 and a second upload submodule 133;
the detection submodule 131 is configured to detect a connected network type;
the first uploading submodule 132 is configured to, after the detection submodule 131 detects that the connected network type is a wireless local area network, upload the to-be-stored complete image to the cloud server through the wireless local area network;
the second uploading submodule 133 is configured to, after the detection submodule 131 detects that the connected network type is a mobile communication network, upload the target image to the cloud server through the mobile communication network.
In one embodiment, as shown in fig. 13, the extraction module 12 includes: an extraction sub-module 121 and an arrangement sub-module 122;
the extracting submodule 121 is configured to extract at least two images corresponding to the target feature in the to-be-saved complete image acquired by the acquiring module 11;
the arrangement submodule 122 is configured to arrange the at least two images extracted by the extraction submodule 121 according to a preset rule, so as to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
In one embodiment, as shown in fig. 14, the apparatus further comprises: a second upload module 14;
the second uploading module 14 is configured to upload the to-be-saved complete image acquired by the acquiring module 11 to the cloud server through a wireless local area network, so that the cloud server backs up the to-be-saved complete image.
In one embodiment, as shown in fig. 15, the apparatus further comprises: a transmission module 15;
the sending module 15 is configured to send the corresponding relationship between the target image extracted by the extracting module 12 and the to-be-saved complete image to the cloud server, so that after the cloud server receives the to-be-saved complete image, the cloud server determines the backed-up target image according to the mapping relationship, and replaces the target image with the to-be-saved complete image.
In one embodiment, as shown in fig. 16, the obtaining module 11 includes: a first acquisition submodule 111;
the first obtaining submodule 11 is configured to obtain the complete image to be saved through an image obtaining device.
In one embodiment, the target feature is a human avatar feature.
According to a third aspect of the embodiments of the present disclosure, there is provided an image backup apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored;
and uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image.
The processor may be further configured to:
in one embodiment, the uploading the target image to a cloud server through a mobile communication network includes:
detecting a network type of a connection;
after the network type of the connection is detected to be a wireless local area network, the complete image to be stored is uploaded to the cloud server through the wireless local area network;
and after detecting that the connected network type is a mobile communication network, uploading the target image to the cloud server through the mobile communication network.
In one embodiment, the extracting a target image corresponding to a target feature in the complete image to be saved includes:
extracting at least two images corresponding to the target features in the complete image to be stored;
arranging the at least two images according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
In one embodiment, after uploading the target image to a cloud server, the method further includes:
and uploading the complete image to be stored to the cloud server through a wireless local area network so that the cloud server backs up the complete image to be stored.
In one embodiment, the method further comprises: and sending the corresponding relation between the target image and the complete image to be saved to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relation after receiving the complete image to be saved, and replaces the target image with the complete image to be saved.
In one embodiment, the acquiring the complete image to be saved includes:
and acquiring the complete image to be stored through image acquisition equipment.
In one embodiment, the target feature is a human avatar feature.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 17 is a block diagram illustrating an image backup apparatus 80 adapted for use with a terminal device according to an exemplary embodiment. For example, the apparatus 80 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 80 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 80, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 80. Examples of such data include instructions for any application or method operating on the device 80, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the device 80. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 80.
The multimedia component 808 includes a screen that provides an output interface between the device 80 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 80 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 80 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 80. For example, the sensor assembly 814 may detect the open/closed status of the device 80, the relative positioning of the components, such as a display and keypad of the device 80, the change in position of the device 80 or a component of the device 80, the presence or absence of user contact with the device 80, the orientation or acceleration/deceleration of the device 80, and the change in temperature of the device 80. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 80 and other devices. The device 80 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 80 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 80 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 80, enable the apparatus 80 to perform the above-described method of image backup, the method comprising:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored;
and uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image.
In one embodiment, the uploading the target image to a cloud server through a mobile communication network includes:
detecting a network type of a connection;
after the network type of the connection is detected to be a wireless local area network, the complete image to be stored is uploaded to the cloud server through the wireless local area network;
and after detecting that the connected network type is a mobile communication network, uploading the target image to the cloud server through the mobile communication network.
In one embodiment, the extracting a target image corresponding to a target feature in the complete image to be saved includes:
extracting at least two images corresponding to the target features in the complete image to be stored;
arranging the at least two images according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
In one embodiment, after uploading the target image to a cloud server, the method further includes:
and uploading the complete image to be stored to the cloud server through a wireless local area network so that the cloud server backs up the complete image to be stored.
In one embodiment, the method further comprises: and sending the corresponding relation between the target image and the complete image to be saved to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relation after receiving the complete image to be saved, and replaces the target image with the complete image to be saved.
In one embodiment, the acquiring the complete image to be saved includes:
and acquiring the complete image to be stored through image acquisition equipment.
In one embodiment, the target feature is a human avatar feature.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. An image backup method, comprising:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored; the target image is a partial image which is regarded as important by a user in the complete image to be stored; the target features are human head portrait features, and the images considered important by the user are human images;
uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image;
the uploading the target image to a cloud server through a mobile communication network comprises:
detecting a network type of a connection;
after the network type of the connection is detected to be a wireless local area network, the complete image to be stored is uploaded to the cloud server through the wireless local area network;
after detecting that the connected network type is a mobile communication network, uploading the target image to the cloud server through the mobile communication network;
the extracting of the target image corresponding to the target feature in the complete image to be saved includes:
extracting at least two images corresponding to the target features in the complete image to be stored;
arranging the at least two images according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
2. The method of claim 1, wherein after uploading the target image to a cloud server, further comprising:
and uploading the complete image to be stored to the cloud server through a wireless local area network so that the cloud server backs up the complete image to be stored.
3. The method of claim 2, further comprising: and sending the mapping relation between the target image and the to-be-saved complete image to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relation after receiving the to-be-saved complete image, and replaces the target image with the to-be-saved complete image.
4. The method of claim 1, wherein the obtaining the full image to be saved comprises:
and acquiring the complete image to be stored through image acquisition equipment.
5. An image backup apparatus, comprising:
the acquisition module is used for acquiring a complete image to be stored;
the extraction module is used for extracting a target image corresponding to the target feature in the complete image to be stored, which is acquired by the acquisition module; the target image is a partial image which is regarded as important by a user in the complete image to be stored; the target features are human head portrait features, and the images considered important by the user are human images;
the first uploading module is used for uploading the target image extracted by the extracting module to a cloud server through a mobile communication network so that the cloud server can backup the target image;
the first upload module comprises: the detection sub-module, the first uploading sub-module and the second uploading sub-module;
the detection submodule is used for detecting the type of the connected network;
the first uploading submodule is used for uploading the complete image to be stored to the cloud server through the wireless local area network after the detection submodule detects that the connected network type is the wireless local area network;
the second uploading sub-module is used for uploading the target image to the cloud server through the mobile communication network after the detection sub-module detects that the connected network type is the mobile communication network;
the extraction module comprises: extracting sub-modules and arranging the sub-modules;
the extraction submodule is used for extracting at least two images corresponding to the target features in the complete image to be stored, which is acquired by the acquisition module;
the arrangement submodule is used for arranging the at least two images extracted by the extraction submodule according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
6. The apparatus of claim 5, further comprising: a second upload module;
the second uploading module is configured to upload the to-be-saved complete image acquired by the acquiring module to the cloud server through a wireless local area network, so that the cloud server backs up the to-be-saved complete image.
7. The apparatus of claim 6, further comprising: a sending module;
the sending module is configured to send the mapping relationship between the target image extracted by the extracting module and the to-be-saved complete image to the cloud server, so that the cloud server determines the backed-up target image according to the mapping relationship after receiving the to-be-saved complete image, and replaces the target image with the to-be-saved complete image.
8. The apparatus of claim 5, wherein the obtaining module comprises: a first obtaining submodule;
the first obtaining submodule is used for obtaining the complete image to be stored through image obtaining equipment.
9. An image backup apparatus, comprising:
a processor;
a memory for storing a processor executable program;
wherein the processor is configured to:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored; the target image is a partial image which is regarded as important by a user in the complete image to be stored; the target features are human head portrait features, and the images considered important by the user are human images;
uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image;
the uploading the target image to a cloud server through a mobile communication network comprises:
detecting a network type of a connection;
after the network type of the connection is detected to be a wireless local area network, the complete image to be stored is uploaded to the cloud server through the wireless local area network;
after detecting that the connected network type is a mobile communication network, uploading the target image to the cloud server through the mobile communication network;
the extracting of the target image corresponding to the target feature in the complete image to be saved includes:
extracting at least two images corresponding to the target features in the complete image to be stored;
arranging the at least two images according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
10. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
acquiring a complete image to be stored;
extracting a target image corresponding to the target feature in the complete image to be stored; the target image is a partial image which is regarded as important by a user in the complete image to be stored; the target features are human head portrait features, and the images considered important by the user are human images;
uploading the target image to a cloud server through a mobile communication network so that the cloud server backs up the target image;
the uploading the target image to a cloud server through a mobile communication network comprises:
detecting a network type of a connection;
after the network type of the connection is detected to be a wireless local area network, the complete image to be stored is uploaded to the cloud server through the wireless local area network;
after detecting that the connected network type is a mobile communication network, uploading the target image to the cloud server through the mobile communication network;
the extracting of the target image corresponding to the target feature in the complete image to be saved includes:
extracting at least two images corresponding to the target features in the complete image to be stored;
arranging the at least two images according to a preset rule to obtain the target image; wherein the preset rule comprises at least one of the following rules: and arranging the images at the positions of the complete images to be stored or arranging the images in sequence according to a preset sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710393334.3A CN107249022B (en) | 2017-05-27 | 2017-05-27 | Image backup method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710393334.3A CN107249022B (en) | 2017-05-27 | 2017-05-27 | Image backup method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107249022A CN107249022A (en) | 2017-10-13 |
CN107249022B true CN107249022B (en) | 2020-12-18 |
Family
ID=60017778
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710393334.3A Active CN107249022B (en) | 2017-05-27 | 2017-05-27 | Image backup method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107249022B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013183320A (en) * | 2012-03-02 | 2013-09-12 | Sharp Corp | Image processor |
CN104092749A (en) * | 2014-07-01 | 2014-10-08 | 小米科技有限责任公司 | Method and device for synchronizing photos |
CN104967634A (en) * | 2014-05-21 | 2015-10-07 | 腾讯科技(北京)有限公司 | File upload method and apparatus thereof |
CN105760390A (en) * | 2014-12-17 | 2016-07-13 | 富泰华工业(深圳)有限公司 | Image retrieval system and method |
-
2017
- 2017-05-27 CN CN201710393334.3A patent/CN107249022B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013183320A (en) * | 2012-03-02 | 2013-09-12 | Sharp Corp | Image processor |
CN104967634A (en) * | 2014-05-21 | 2015-10-07 | 腾讯科技(北京)有限公司 | File upload method and apparatus thereof |
CN104092749A (en) * | 2014-07-01 | 2014-10-08 | 小米科技有限责任公司 | Method and device for synchronizing photos |
CN105760390A (en) * | 2014-12-17 | 2016-07-13 | 富泰华工业(深圳)有限公司 | Image retrieval system and method |
Also Published As
Publication number | Publication date |
---|---|
CN107249022A (en) | 2017-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100829B (en) | Video content intercept method and device | |
EP3125135A1 (en) | Picture processing method and device | |
CN106657780B (en) | Image preview method and device | |
CN104834665A (en) | Target picture acquiring method and device | |
EP3125547A1 (en) | Method and device for switching color gamut mode | |
CN107423386B (en) | Method and device for generating electronic card | |
CN104869308A (en) | Picture taking method and device | |
CN105245775A (en) | Method and device for camera imaging, and mobile terminal | |
CN107820006A (en) | Control the method and device of camera shooting | |
CN108122195B (en) | Picture processing method and device | |
CN105678266A (en) | Method and device for combining photo albums of human faces | |
CN107426489A (en) | Processing method, device and terminal during shooting image | |
CN104850643B (en) | Picture comparison method and device | |
CN107123078A (en) | The method and device of display image | |
CN107222576B (en) | Photo album synchronization method and device | |
CN107105311B (en) | Live broadcasting method and device | |
CN108027821B (en) | Method and device for processing picture | |
CN106506808B (en) | Method and device for prompting communication message | |
CN104780256A (en) | Address book management method and device and intelligent terminal | |
CN105653623B (en) | Picture collection method and device | |
CN109245992B (en) | Request processing method and device, electronic equipment and storage medium | |
CN108769513B (en) | Camera photographing method and device | |
CN108108668B (en) | Age prediction method and device based on image | |
CN107169042B (en) | Method and device for sharing pictures and computer readable storage medium | |
CN107885464B (en) | Data storage method, device and computer readable storage medium |
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 |