CN111104371A - Method and device for uploading photos of mobile terminal and computer-readable storage medium - Google Patents

Method and device for uploading photos of mobile terminal and computer-readable storage medium Download PDF

Info

Publication number
CN111104371A
CN111104371A CN201911330228.6A CN201911330228A CN111104371A CN 111104371 A CN111104371 A CN 111104371A CN 201911330228 A CN201911330228 A CN 201911330228A CN 111104371 A CN111104371 A CN 111104371A
Authority
CN
China
Prior art keywords
photo
control logic
photos
target control
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911330228.6A
Other languages
Chinese (zh)
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tcl Mobile Communication Technology Ningbo Co Ltd
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
Tcl Mobile Communication Technology Ningbo 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 Tcl Mobile Communication Technology Ningbo Co Ltd filed Critical Tcl Mobile Communication Technology Ningbo Co Ltd
Priority to CN201911330228.6A priority Critical patent/CN111104371A/en
Publication of CN111104371A publication Critical patent/CN111104371A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • G06F16/166File name conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a method and a device for uploading photos of a mobile terminal and a computer readable storage medium, wherein the uploading method is applied to the mobile terminal and comprises the following steps: receiving a signal of a first pin of a rear cover interface; determining a first target control logic according to a signal of a first pin; outputting an amplitude signal to a second pin of the rear cover interface according to the first target control logic; determining a second target control logic according to a signal of a second pin; acquiring signal amplitude according to the second target control logic, and determining a third target control logic and a fourth target control logic according to the signal amplitude; enabling the mobile terminal according to the third target control logic, and disabling the mobile terminal according to the fourth target control logic. Through a relatively perfect rear cover identification method, the difficulty of imitating the rear cover is greatly increased, so that the correct rear cover is ensured to be used when a user replaces the rear cover, and the performance of the mobile terminal is perfected.

Description

Method and device for uploading photos of mobile terminal and computer-readable storage medium
Technical Field
The invention relates to the technical field of mobile terminal application, in particular to a method and a device for uploading a photo of a mobile terminal and a computer-readable storage medium.
Background
With the development of internet technology, the concept of network cloud is deeply enjoyed at present, and cloud storage is a professional network storage tool, namely a personal network hard disk, and can safely store data and important data anytime and anywhere. Compared with the traditional physical disk, the cloud storage is more convenient, and a user does not need to bring the physical disk storing important data onto the body. But can easily read the information stored by the user from the cloud through the Internet. A new generation of storage services with flexibility and on-demand functionality is provided, thereby preventing cost runaway and meeting the diverse needs created by ever changing business centers of gravity and regulatory requirements. The internet service provider constructs a network disk at the server side, and the user can upload the photos in the mobile terminal to the network disk, so that the storage burden of the storage in the mobile terminal on the photos can be greatly reduced. In the prior art, the picture uploading process between the mobile terminal and the cloud storage is to compare pictures between the mobile terminal and the cloud storage, and then select pictures without the cloud storage according to a comparison result to upload the pictures by the mobile terminal, wherein when the number of the pictures is large, the comparison speed is slow.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The invention provides a mobile terminal photo uploading method, a mobile terminal rear cover detection device and a computer readable storage medium, which can upload photos immediately when networking is realized without photo comparison between a mobile terminal and a cloud storage after the mobile terminal establishes contact with the cloud storage constructed by an internet service provider, thereby improving the efficiency and providing convenience for users.
In order to solve the above problem, in a first aspect, the present application provides an uploading method for a photo of a mobile terminal, where the uploading method is applied to the mobile terminal, and the uploading method includes:
recording the operation of the photos in the local photo library or the storage path of the photos;
determining a target control logic according to the operation;
and uploading the photos in the local photo library according to the target control logic.
Wherein the recording operation on the photos in the local photo library or the storage paths of the photos comprises:
acquiring an operation type;
judging whether a pre-stored record format matched with the operation type is stored or not, wherein different operation types correspond to different pre-stored record formats;
if a pre-stored recording format matched with the operation type is stored, determining a target recording format according to the pre-stored recording format;
and recording the operation of the photos in the local photo library or the storage path of the photos according to the target recording format.
Wherein the recording operation on the photos in the local photo library or the storage paths of the photos further comprises:
and recording multiple operations in multiple lines in sequence according to the target recording format, and respectively generating line numbers of the multiple operations.
The target record format comprises a plurality of object names and operation modes.
The photos are absolute paths of the photos, and the storage paths of the photos are absolute paths of the storage paths of the photos.
Wherein said determining target control logic from said operation comprises:
acquiring variables stored in a server;
searching a row number equal to the variable;
judging whether the photo of the operation after the line where the line number equal to the variable is located exists in the server;
determining as a first target control logic if a photograph of an operation from a line subsequent to a line where a line number equal to the variable exists in the server;
and if the photo of the operation after the row with the row number equal to the variable does not exist in the server, determining the photo as a second target control logic, wherein the target control logic comprises a first target control logic and a second target control logic.
Wherein the uploading of the photos in the local photo library according to the target control logic comprises:
updating photos of operations after the row where the row number equal to the variable is located to photos already existing in the server according to the first target control logic, and assigning the row number of the last row to the variable;
and uploading the photos of the operations after the row with the row number equal to the variable to the server according to the second target control logic, and assigning the row number of the last row to the variable.
In order to solve the above problem, in a second aspect, the present application provides an uploading apparatus for photos of a mobile terminal, where the uploading apparatus is applied to the mobile terminal, and the uploading apparatus includes:
the recording module is used for recording the operation of the photos in the local photo library or the storage paths of the photos;
a first determining module for determining a target control logic according to the operation;
and the uploading module is used for uploading the photos in the local photo library according to the target control logic.
The uploading device further comprises a type obtaining module, a first judging module, a storage module, a second determining module, a line number generating module, a variable obtaining module, a searching module, a second judging module and a value assigning module;
the type acquisition module is used for acquiring the operation type;
the first judgment module is used for judging whether a pre-stored record format matched with the operation type is stored or not;
the storage module is used for storing different pre-stored record formats corresponding to different operation types;
the second determining module is used for determining a target recording format according to a pre-stored recording format when the pre-stored recording format matched with the operation type is stored;
the recording module is also used for recording the operation of the photos in the local photo library or the storage paths of the photos according to the target recording format; the target record format comprises a plurality of object names and operation modes; the picture is an absolute path of the picture, and the storage path of the picture is an absolute path of the storage path of the picture;
the line number generating module is used for recording multiple operations in multiple lines in sequence according to the target recording format and respectively generating line numbers of the multiple operations;
the variable acquisition module is used for acquiring the variable stored in the server;
the searching module is used for searching the line number equal to the variable;
a second judgment module for judging whether the photo of the operation after the row where the row number equal to the variable is located already exists in the server;
the first determination module is further configured to determine as a first target control logic when a photograph of an operation from a line subsequent to the line where the line number equal to the variable exists in the server; determining as a second target control logic when a photo of an operation from a line subsequent to the line where the line number equal to the variable is present does not exist in the server, wherein the target control logic includes a first target control logic and a second target control logic;
the uploading module is further used for updating the photos of the operations after the row with the row number equal to the variable to the photos already existing in the server according to the first target control logic; uploading a photo of an operation subsequent to a row where a row number equal to the variable is located to the server according to the second target control logic;
and the assignment module is used for assigning the line number of the last line to the variable.
In order to solve the above problem, in a third aspect, the present application provides a computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the uploading method described above.
The beneficial effect of this application is:
after the mobile terminal is in contact with the cloud storage constructed by the internet service provider, the photo can be uploaded immediately when networking is realized without performing photo comparison between the mobile terminal and the cloud storage, so that the efficiency is improved, and convenience is provided for a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first embodiment of a method for uploading a photo of a mobile terminal according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a second embodiment of a method for uploading a photo of a mobile terminal according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an uploading device for photos of a mobile terminal according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The application provides an uploading method of a mobile terminal photo, a mobile terminal rear cover detection device and a computer readable storage medium, wherein the uploading method is applied to the mobile terminal and comprises the following steps: recording an operation on a photo in the local photo library 613 or a storage path of the photo; determining a target control logic according to the operation; uploading the photos in the local photo library 613 according to the target control logic. The following are detailed below.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for uploading a photo of a mobile terminal according to a first embodiment of the present disclosure. The uploading method can be applied to the mobile terminal, and the mobile terminal can be an intelligent device such as a smart phone, a smart watch, an ipad, a tablet computer and the like, which is not limited in the application. The specific process of the uploading method can be as follows:
s11, recording the operation on the photos or the storage paths of the photos in the local photo repository 613.
In this embodiment, the mobile terminal stores a recording Folder (FILE) of the local photo repository 613 for recording the operation of storing the respective photos or photo storage paths in the local photos of the mobile terminal.
And S12, determining target control logic according to the operation.
In this embodiment, when the photo system is uploaded to the server 614 (cloud), the mobile terminal determines whether the server 614 has a photo stored therein.
S13, uploading the photos in the local photo library 613 according to the target control logic.
In this embodiment, if the server 614 does not store the photos, the photo system upload with the mobile terminal is performed for the first time by the cloud, and all the local photos of the mobile terminal are copied to the cloud. If the server 614 already has a stored photo, the modified photo is updated or a new photo is uploaded.
Different from the prior art, the application provides an uploading method of a mobile terminal photo, the uploading method is applied to a mobile terminal, and the uploading method comprises the following steps: recording an operation on a photo in the local photo library 613 or a storage path of the photo; determining a target control logic according to the operation; uploading the photos in the local photo library 613 according to the target control logic. According to the method and the device, after the mobile terminal is in contact with the cloud storage established by the internet service provider, the photo can be uploaded immediately when networking is realized without performing photo comparison between the mobile terminal and the cloud storage, so that the efficiency is improved, and convenience is brought to users.
For a more clear description of the uploading method of the present application, please refer to fig. 2, and fig. 2 is a flowchart illustrating a second embodiment of the uploading method of the mobile terminal photos according to the present application.
As shown in fig. 2, the specific flow of the uploading method is as follows:
s201, obtaining the operation type.
In the present embodiment, the operation types include: creating a photo or photo storage path, deleting a photo or photo storage path, renaming a photo or photo storage path, modifying a photo.
S202, judging whether a pre-stored record format matched with the operation type is stored or not, wherein different operation types correspond to different pre-stored record formats. If the pre-stored record format matching with the operation type is stored, step S203 is executed, and if the pre-stored record format matching with the operation type is not stored, step S204 is executed.
In this embodiment, the target record format includes a plurality of object names and operation modes, and the specific record format of the operation is as follows:
object name 1, operation mode, object name 2
Specifically, the present application provides several operations:
1) and if a new photo or a photo storage path is created, then:
object name 1: when the air conditioner is empty, the air conditioner is started,
the operation mode is as follows: the new construction is carried out,
object name 2: the newly created photo or photo storage path name,
for example,/SDCARD/BAIDU/abc/"indicates that a photo storage path named abc is newly created under/SDCARD/BAIDU/;
2) and deleting the photo or the photo storage path, then:
object name 1: the photo or photo storage pathname needs to be deleted,
the operation mode is as follows: the deletion is carried out by the user,
object name 2: when the air conditioner is empty, the air conditioner is started,
for example, "/SDCARD/BAIDU/abce, delete," means delete a photo named abce under/SDCARD/BAIDU/;
3) renaming the photo or the photo storage path, then:
object name 1: a renamed photo or photo storage pathname is required,
the operation mode is as follows: the name is re-named,
object name 2: the renamed picture or picture stores a pathname,
for example, "/SDCARD/BAIDU/abce/, renamed,/SDCARD/BAIDU/abc/" indicates that a picture storage path named abce at/SDCARD/BAIDU/, renames abc;
4) and modifying the photo, then:
object name 1: the name of the photo that needs to be modified,
the operation mode is as follows: and (3) modifying the original shape of the original shape,
object name 2: when the air conditioner is empty, the air conditioner is started,
for example, "/SDCARD/BAIDU/abc, modified," the photograph named abc at/SDCARD/BAIDU/has been modified.
S203, determining a target recording format according to the pre-stored recording format.
In this embodiment, if the recording format is one of the four recording formats, the target recording format is determined according to the recording format.
And S204, sending out prompt information.
In this embodiment, if a pre-stored record format matching the operation type is not stored, it indicates that the operation type is not in the stored operation type, and the operation is considered not to be uploaded, and a prompt message is sent.
In a specific embodiment, the manner of sending the prompt message may be a voice prompt, a blinking prompt, a vibration prompt, and the like, which is not limited in this application.
S205, recording the operation on the photos in the local photo library 613 or the storage path of the photos according to the target recording format.
In this embodiment, the corresponding embodiment of the recording operation is as follows:
with regard to "newly creating a photo or a photo storage path" specifically, "newly created,/sdcd/BAIDU/abc/" means that a photo storage path named abc is newly created under/sdcd/BAIDU/.
Regarding "delete a photo or a photo storage path" specifically "/sdcd/BAIDU/abce, delete" means that a photo named abce is deleted under/sdcd/BAIDU/below.
With respect to "renaming a photo or photo storage path" specifically "/SDCARD/BAIDU/abce/, renaming,/SDCARD/BAIDU/abc/" means that the photo storage path named abce at/SDCARD/BAIDU/is renamed to abc.
With respect to "modified photos" specifically "/SDCARD/BAIDU/abc, modified" photos named abc at/SDCARD/BAIDU/are indicated to have been modified.
The photo is an absolute path of the photo, and the storage path of the photo is an absolute path of the storage path of the photo. Pictures ending with a "/" indicate a picture storage path, and pictures not ending with a "/" indicate pictures.
And S206, recording multiple operations in multiple lines in sequence according to the target recording format, and generating line numbers of the multiple operations respectively.
In this embodiment, each line in the recording Folder (FILE) represents an operation, and the operations are arranged according to the operation time sequence, with earlier operation arranged in front and later operation arranged in back; each line of the recording Folder (FILE) records one operation.
S207, acquiring the variable stored in the server 614.
In this embodiment, the server 614 stores a variable X, which is used by the server 614 to record a row number in a record Folder (FILE) that is used by the server 614 to upload a photo system with the mobile terminal for the last time; for example, there are 20 current rows in the record Folder (FILE), and if the mobile terminal photo is uploaded to the cloud at this time, the variable X and the variable value in the server 614 will become 20; more particularly, the variable X is 0 when the server 614 never uploads a photo system with the mobile terminal.
And S208, searching a row number equal to the variable.
In this embodiment, by checking the variable X stored in the server 614, that is, whether there is a previous picture uploaded to the server 614, if there is a previous picture uploaded to the server 614, the row number equal to the variable may be found, and if there is no picture uploaded to the server 614, X is 0.
S209 determines whether or not the photograph of the operation subsequent to the row having the row number equal to the variable already exists on the server 614. If the photos of the operations from the row after the row with the line number equal to the variable already exist in the server 614, steps S210-211 are performed, and if the photos of the operations from the row after the row with the line number equal to the variable do not exist in the server 614, steps S212-213 are performed, wherein the target control logic comprises a first target control logic and a second target control logic.
In this embodiment, it is determined whether the photo that needs to be uploaded exists on the server 614.
And S210, determining the target as a first target control logic.
In this embodiment, the first target control logic is that the corresponding photo has been uploaded before.
S211, updating the photos from the operation after the row where the row number equal to the variable is located to the photos already existing in the server 614 according to the first target control logic, and assigning the row number of the last row to the variable.
In this embodiment, operations after the X-th line in the recording Folder (FILE) are sequentially updated; specifically, each line of the recording Folder (FILE) records one operation, and the processing for each line is as follows, and after the processing is completed, the line number of the current last line of the recording Folder (FILE) is assigned to the variable X and stored in the server 614:
1) for the operation, creating a PATH, and if the PATH exists in the local photo of the mobile terminal, copying the PATH to the cloud storage local photo;
wherein, the PATH is a newly-created photo or a photo storage PATH name;
2) for operation "PATH, delete," if there is a PATH in the cloud storage local photo, delete PATH;
wherein, the PATH is a photo or a photo storage PATH name which needs to be deleted;
3) for operation "PATH 1, rename, PATH 2", delete a PATH1 in the cloud storage local photo if present, copy a PATH2 in the mobile terminal local photo to the cloud storage local photo if a PATH2 in the mobile terminal local photo is present;
wherein, the PATH1 is a picture or a picture storage PATH name which needs to be renamed, and the PATH2 is a renamed picture or a picture storage PATH name;
4) for the operation "PATH, modify," delete the PATH if the PATH exists in the cloud storage local photo, and then copy the PATH in the mobile terminal local photo to the cloud storage local photo if the PATH exists in the mobile terminal local photo;
wherein the PATH stores the pathname for the modified photograph or photograph.
And S212, determining the target control logic as the second target control logic.
In this embodiment, the second target control logic is that the photos that need to be uploaded this time have not been uploaded before.
S213, uploading the photos of the operations after the row with the row number equal to the variable to the server 614 according to the second target control logic, and assigning the row number of the last row to the variable.
In this embodiment, operations after the xth line in the recording Folder (FILE) are sequentially uploaded; specifically, each line of the recording Folder (FILE) records one operation, and after the processing is completed, the line number of the current last line of the recording Folder (FILE) is assigned to the variable X and stored in the server 614.
Different from the prior art, the application provides an uploading method of a mobile terminal photo, the uploading method is applied to a mobile terminal, and the uploading method comprises the following steps: recording an operation on a photo in the local photo library 613 or a storage path of the photo; determining a target control logic according to the operation; uploading the photos in the local photo library 613 according to the target control logic. According to the method and the device, after the mobile terminal is in contact with the cloud storage established by the internet service provider, the photo can be uploaded immediately when networking is realized without performing photo comparison between the mobile terminal and the cloud storage, so that the efficiency is improved, and convenience is brought to users.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an uploading device for photos of a mobile terminal according to an embodiment of the present application. As shown in fig. 3, the apparatus 600 for uploading a photo of a mobile terminal is applied to a mobile terminal, and the apparatus 600 for uploading a photo of a mobile terminal includes: the device comprises a type acquisition module 601, a first judgment module 602, a first determination module 610, a second determination module 604, a storage module 603, a recording module 605, a line number generation module 606, a variable acquisition module 607, a search module 608, a second judgment module 609, an upload module 611 and a value assignment module 612; wherein:
the type obtaining module 601 is configured to obtain an operation type.
In the present embodiment, the operation types include: creating a photo or photo storage path, deleting a photo or photo storage path, renaming a photo or photo storage path, modifying a photo.
A first determining module 602, configured to determine whether a pre-stored record format matching the operation type is stored.
In this embodiment, the target record format includes a plurality of object names and operation modes, and the specific record format of the operation is as follows:
object name 1, operation mode, object name 2
Specifically, the present application provides the following four operations:
1) and if a new photo or a photo storage path is created, then:
object name 1: when the air conditioner is empty, the air conditioner is started,
the operation mode is as follows: the new construction is carried out,
object name 2: the newly created photo or photo storage path name,
for example,/SDCARD/BAIDU/abc/"indicates that a photo storage path named abc is newly created under/SDCARD/BAIDU/;
2) and deleting the photo or the photo storage path, then:
object name 1: the photo or photo storage pathname needs to be deleted,
the operation mode is as follows: the deletion is carried out by the user,
object name 2: when the air conditioner is empty, the air conditioner is started,
for example, "/SDCARD/BAIDU/abce, delete," means delete a photo named abce under/SDCARD/BAIDU/;
3) renaming the photo or the photo storage path, then:
object name 1: a renamed photo or photo storage pathname is required,
the operation mode is as follows: the name is re-named,
object name 2: the renamed picture or picture stores a pathname,
for example, "/SDCARD/BAIDU/abce/, renamed,/SDCARD/BAIDU/abc/" indicates that a picture storage path named abce at/SDCARD/BAIDU/, renames abc;
4) and modifying the photo, then:
object name 1: the name of the photo that needs to be modified,
the operation mode is as follows: and (3) modifying the original shape of the original shape,
object name 2: when the air conditioner is empty, the air conditioner is started,
for example, "/SDCARD/BAIDU/abc, modified," the photograph named abc at/SDCARD/BAIDU/has been modified.
The storage module 603 is configured to store different pre-stored record formats corresponding to different operation types.
In this embodiment, the storage operation types include: creating a photo or photo storage path, deleting the photo or photo storage path, renaming the photo or photo storage path, and modifying different recording formats corresponding to the photo.
A second determining module 604, configured to determine a target record format according to a pre-stored record format when the pre-stored record format matched with the operation type is stored.
In this embodiment, if the recording format is one of the four recording formats, the target recording format is determined according to the recording format.
The recording module 605 is configured to record an operation on a photo in the local photo library 613 or a storage path of the photo according to the target recording format; the target record format comprises a plurality of object names and operation modes; the photo is an absolute path of the photo, and the storage path of the photo is an absolute path of the storage path of the photo.
In this embodiment, the corresponding embodiment of the recording operation is as follows:
with regard to "newly creating a photo or a photo storage path" specifically, "newly created,/sdcd/BAIDU/abc/" means that a photo storage path named abc is newly created under/sdcd/BAIDU/.
Regarding "delete a photo or a photo storage path" specifically "/sdcd/BAIDU/abce, delete" means that a photo named abce is deleted under/sdcd/BAIDU/below.
With respect to "renaming a photo or photo storage path" specifically "/SDCARD/BAIDU/abce/, renaming,/SDCARD/BAIDU/abc/" means that the photo storage path named abce at/SDCARD/BAIDU/is renamed to abc.
With respect to "modified photos" specifically "/SDCARD/BAIDU/abc, modified" photos named abc at/SDCARD/BAIDU/are indicated to have been modified.
The photo is an absolute path of the photo, and the storage path of the photo is an absolute path of the storage path of the photo. Pictures ending with a "/" indicate a picture storage path, and pictures not ending with a "/" indicate pictures.
A line number generating module 606, configured to record multiple operations in multiple lines in sequence according to the target recording format, and generate line numbers of the multiple operations respectively.
Each line in the record Folder (FILE) represents an operation, the operations are arranged according to the operation time sequence, the operation earlier is arranged in the front, and the operation later is arranged in the back; each line of the recording Folder (FILE) records one operation.
The variable obtaining module 607 is configured to obtain the variable stored in the server 614.
In this embodiment, the server 614 stores a variable X, which is used by the server 614 to record a row number in a record Folder (FILE) that is used by the server 614 to upload a photo system with the mobile terminal for the last time; for example, there are 20 current rows in the record Folder (FILE), and if the mobile terminal photo is uploaded to the cloud at this time, the variable X and the variable value in the server 614 will become 20; more particularly, the variable X is 0 when the server 614 never uploads a photo system with the mobile terminal.
And a searching module 608 for searching the line number equal to the variable.
In this embodiment, by checking the variable X stored in the server 614, that is, whether there is a previous picture uploaded to the server 614, if there is a previous picture uploaded to the server 614, the row number equal to the variable may be found, and if there is no picture uploaded to the server 614, X is 0.
A second determination module 609 is used for determining whether the photo of the operation after the row where the row number equal to the variable is located already exists in the server 614.
In this embodiment, it is determined whether the photo that needs to be uploaded exists on the server 614.
A first determination module 610 for determining as a first target control logic when a photograph of an operation from a line subsequent to the line where the line number equal to the variable exists at the server 614; determining as a second target control logic when a photo of an operation from a row subsequent to the row of the row number equal to the variable does not exist in the server 614, wherein the target control logic includes a first target control logic and a second target control logic;
in this embodiment, the first target control logic is that the corresponding photo has been uploaded before, and the second target control logic is that the photo that needs to be uploaded this time has not been uploaded before.
The uploading module 611 is configured to update, according to the first target control logic, a photo of an operation subsequent to the row with the row number equal to the variable to a photo already existing in the server 614; uploading a photograph of the operation from the row after the row with the row number equal to the variable to the server 614 in accordance with the second target control logic.
In this embodiment, operations after the xth line in the recording Folder (FILE) are updated or uploaded in sequence; specifically, each line of the recording Folder (FILE) records one operation, and the processing for each line is as follows, and after the processing is completed, the line number of the current last line of the recording Folder (FILE) is assigned to the variable X and stored in the server 614:
1) for the operation, creating a PATH, and if the PATH exists in the local photo of the mobile terminal, copying the PATH to the cloud storage local photo;
wherein, the PATH is a newly-created photo or a photo storage PATH name;
2) for operation "PATH, delete," if there is a PATH in the cloud storage local photo, delete PATH;
wherein, the PATH is a photo or a photo storage PATH name which needs to be deleted;
3) for operation "PATH 1, rename, PATH 2", delete a PATH1 in the cloud storage local photo if present, copy a PATH2 in the mobile terminal local photo to the cloud storage local photo if a PATH2 in the mobile terminal local photo is present;
wherein, the PATH1 is a picture or a picture storage PATH name which needs to be renamed, and the PATH2 is a renamed picture or a picture storage PATH name;
4) for the operation "PATH, modify," delete the PATH if the PATH exists in the cloud storage local photo, and then copy the PATH in the mobile terminal local photo to the cloud storage local photo if the PATH exists in the mobile terminal local photo;
wherein the PATH stores the pathname for the modified photograph or photograph.
And the assigning module 612 is configured to assign the line number of the last line to the variable.
In this embodiment, after the processing is completed, the line number of the last line of the record Folder (FILE) is assigned to the variable X and stored in the server 614.
Be different from prior art, this application provides an uploading device of mobile terminal photo, and this uploading device is applied to mobile terminal, and this uploading device includes: a recording module, configured to record an operation on a photo in the local photo library 613 or a storage path of the photo; a first determining module for determining a target control logic according to the operation; and an uploading module, configured to upload photos in the local photo library 613 according to the target control logic. According to the method and the device, after the mobile terminal is in contact with the cloud storage established by the internet service provider, the photo can be uploaded immediately when networking is realized without performing photo comparison between the mobile terminal and the cloud storage, so that the efficiency is improved, and convenience is brought to users.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. The mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 4, the mobile terminal 400 includes a processor 401, a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the mobile terminal 400, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 401 in the mobile terminal 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
recording the operation of the photos in the local photo library or the storage path of the photos;
determining a target control logic according to the operation;
and uploading the photos in the local photo library according to the target control logic.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. Fig. 5 is a block diagram illustrating a specific structure of a mobile terminal provided in an embodiment of the present application, where the mobile terminal 300 may be used to implement the uploading method provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.1 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n standards), Voice over Internet Protocol (VoIP), world wide interoperability for Microwave, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the uploading method and the terminal positioning apparatus in the foregoing embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of positioning the terminal. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 5, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 includes at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
recording the operation of the photos in the local photo library or the storage path of the photos;
determining a target control logic according to the operation;
and uploading the photos in the local photo library according to the target control logic.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities, and specific implementations of the above modules and units may refer to the foregoing method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the uploading methods provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any uploading method provided in the embodiments of the present application, beneficial effects that any uploading method provided in the embodiments of the present application can achieve may be achieved, for details, see the foregoing embodiments, and are not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. The uploading method of the mobile terminal photo is characterized in that the uploading method is applied to the mobile terminal and comprises the following steps:
recording the operation of the photos in the local photo library or the storage path of the photos;
determining a target control logic according to the operation;
and uploading the photos in the local photo library according to the target control logic.
2. The uploading method according to claim 1, wherein the recording operation on the photos or the storage paths of the photos in the local photo library comprises:
acquiring an operation type;
judging whether a pre-stored record format matched with the operation type is stored or not, wherein different operation types correspond to different pre-stored record formats;
if a pre-stored recording format matched with the operation type is stored, determining a target recording format according to the pre-stored recording format;
and recording the operation of the photos in the local photo library or the storage path of the photos according to the target recording format.
3. The uploading method according to claim 2, wherein the recording operation on the photos or the storage paths of the photos in the local photo library further comprises:
and recording multiple operations in multiple lines in sequence according to the target recording format, and respectively generating line numbers of the multiple operations.
4. The uploading method according to claim 2, wherein the target record format comprises a plurality of object names and operation modes.
5. The uploading method according to any of claims 1-4, wherein the photo is an absolute path of the photo, and the storage path of the photo is an absolute path of the storage path of the photo.
6. The upload method of claim 3, wherein the determining target control logic according to the operation comprises:
acquiring variables stored in a server;
searching a row number equal to the variable;
judging whether the photo of the operation after the line where the line number equal to the variable is located exists in the server;
determining as a first target control logic if a photograph of an operation from a line subsequent to a line where a line number equal to the variable exists in the server;
and if the photo of the operation after the row with the row number equal to the variable does not exist in the server, determining the photo as a second target control logic, wherein the target control logic comprises a first target control logic and a second target control logic.
7. The uploading method according to claim 6, wherein the uploading photos in the local photo library according to the target control logic comprises:
updating photos of operations after the row where the row number equal to the variable is located to photos already existing in the server according to the first target control logic, and assigning the row number of the last row to the variable;
and uploading the photos of the operations after the row with the row number equal to the variable to the server according to the second target control logic, and assigning the row number of the last row to the variable.
8. The utility model provides an upload device of mobile terminal photo, its characterized in that, upload device is applied to mobile terminal, upload device includes:
the recording module is used for recording the operation of the photos in the local photo library or the storage paths of the photos;
a first determining module for determining a target control logic according to the operation;
and the uploading module is used for uploading the photos in the local photo library according to the target control logic.
9. The uploading device according to claim 8, further comprising a type obtaining module, a first judging module, a storage module, a second determining module, a row number generating module, a variable obtaining module, a searching module, a second judging module and a value assigning module;
the type acquisition module is used for acquiring the operation type;
the first judgment module is used for judging whether a pre-stored record format matched with the operation type is stored or not;
the storage module is used for storing different pre-stored record formats corresponding to different operation types;
the second determining module is used for determining a target recording format according to a pre-stored recording format when the pre-stored recording format matched with the operation type is stored;
the recording module is also used for recording the operation of the photos in the local photo library or the storage paths of the photos according to the target recording format; the target record format comprises a plurality of object names and operation modes; the picture is an absolute path of the picture, and the storage path of the picture is an absolute path of the storage path of the picture;
the line number generating module is used for recording multiple operations in multiple lines in sequence according to the target recording format and respectively generating line numbers of the multiple operations;
the variable acquisition module is used for acquiring the variable stored in the server;
the searching module is used for searching the line number equal to the variable;
a second judgment module for judging whether the photo of the operation after the row where the row number equal to the variable is located already exists in the server;
the first determination module is further configured to determine as a first target control logic when a photograph of an operation from a line subsequent to the line where the line number equal to the variable exists in the server; determining as a second target control logic when a photo of an operation from a line subsequent to the line where the line number equal to the variable is present does not exist in the server, wherein the target control logic includes a first target control logic and a second target control logic;
the uploading module is further used for updating the photos of the operations after the row with the row number equal to the variable to the photos already existing in the server according to the first target control logic; uploading a photo of an operation subsequent to a row where a row number equal to the variable is located to the server according to the second target control logic;
and the assignment module is used for assigning the line number of the last line to the variable.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the upload method of any of claims 1 to 7.
CN201911330228.6A 2019-12-20 2019-12-20 Method and device for uploading photos of mobile terminal and computer-readable storage medium Pending CN111104371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330228.6A CN111104371A (en) 2019-12-20 2019-12-20 Method and device for uploading photos of mobile terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330228.6A CN111104371A (en) 2019-12-20 2019-12-20 Method and device for uploading photos of mobile terminal and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN111104371A true CN111104371A (en) 2020-05-05

Family

ID=70422778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330228.6A Pending CN111104371A (en) 2019-12-20 2019-12-20 Method and device for uploading photos of mobile terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111104371A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521076A (en) * 2011-12-01 2012-06-27 浪潮电子信息产业股份有限公司 Intelligent real-time file backup method
CN102857570A (en) * 2012-09-13 2013-01-02 清华大学 Cloud synchronized method of files and cloud storage server
CN104834749A (en) * 2015-05-27 2015-08-12 惠州Tcl移动通信有限公司 File synchronization method and synchronization system for mobile terminal and PC terminal
US20190245903A1 (en) * 2018-02-05 2019-08-08 Mcgraw-Hill Global Education Holdings, Llc Web-based content recording and adaptive streaming

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521076A (en) * 2011-12-01 2012-06-27 浪潮电子信息产业股份有限公司 Intelligent real-time file backup method
CN102857570A (en) * 2012-09-13 2013-01-02 清华大学 Cloud synchronized method of files and cloud storage server
CN104834749A (en) * 2015-05-27 2015-08-12 惠州Tcl移动通信有限公司 File synchronization method and synchronization system for mobile terminal and PC terminal
US20190245903A1 (en) * 2018-02-05 2019-08-08 Mcgraw-Hill Global Education Holdings, Llc Web-based content recording and adaptive streaming

Similar Documents

Publication Publication Date Title
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
US10320719B2 (en) Message withdrawal method, apparatus and storage medium
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
US10817255B2 (en) Scene sound effect control method, and electronic device
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN103279288B (en) Data transmission method, device and terminal unit
CN108763316B (en) Audio list management method and mobile terminal
US20160337279A1 (en) Information interaction method and terminal
US10675541B2 (en) Control method of scene sound effect and related products
EP3429176B1 (en) Scenario-based sound effect control method and electronic device
WO2020182035A1 (en) Image processing method and terminal device
US20210382850A1 (en) Album display method, electronic device, and storage medium
WO2019076377A1 (en) Image viewing method and mobile terminal
CN106303616B (en) Play control method, device and terminal
CN107979688B (en) application program management method and mobile terminal
CN111027406B (en) Picture identification method and device, storage medium and electronic equipment
US10853412B2 (en) Scenario-based sound effect control method and electronic device
CN109451295A (en) A kind of method and system obtaining virtual information
CN111104371A (en) Method and device for uploading photos of mobile terminal and computer-readable storage medium
CN111324578A (en) File processing method and electronic equipment
CN106572163B (en) A kind of method and terminal of Data Migration
CN104424321A (en) File directory obtainment method and file directory obtainment device
CN111221782B (en) File searching method and device, storage medium and mobile terminal
CN109522071B (en) Photo management method and terminal equipment
CN108959073B (en) Method and device for testing algorithm library, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination