CN111698296A - Method and device for uploading photos, computer equipment and storage medium - Google Patents

Method and device for uploading photos, computer equipment and storage medium Download PDF

Info

Publication number
CN111698296A
CN111698296A CN202010462258.9A CN202010462258A CN111698296A CN 111698296 A CN111698296 A CN 111698296A CN 202010462258 A CN202010462258 A CN 202010462258A CN 111698296 A CN111698296 A CN 111698296A
Authority
CN
China
Prior art keywords
instruction
preset
photos
uploaded
photo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010462258.9A
Other languages
Chinese (zh)
Other versions
CN111698296B (en
Inventor
许超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202010462258.9A priority Critical patent/CN111698296B/en
Publication of CN111698296A publication Critical patent/CN111698296A/en
Application granted granted Critical
Publication of CN111698296B publication Critical patent/CN111698296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and a device for uploading photos, computer equipment and a storage medium. The method belongs to the technical field of electronic photo albums, and comprises the following steps: receiving a command of uploading a photo sent by a user; acquiring a preset leading instruction, wherein the preset leading instruction comprises a camera leading instruction and an album leading instruction; judging whether a preset operation instruction is received or not; if the preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction; and if the number of the photos to be uploaded is not larger than the preset threshold value, uploading the photos to be uploaded to a server side. According to the embodiment of the application, the camera and the photo album are integrated, so that the operation steps and times of uploading the photos are reduced, and the uploading efficiency is improved.

Description

Method and device for uploading photos, computer equipment and storage medium
Technical Field
The invention relates to the technical field of electronic photo albums, in particular to a method and a device for uploading photos, computer equipment and a storage medium.
Background
In the era of comprehensive popularization of mobile terminals such as smart phones and tablet computers, people often take photos through the mobile terminals and upload the taken photos, and the current photo uploading process is relatively complex on one hand and requires multiple steps for repeated operation; on the other hand, in the existing operation path, the uploading and the shooting of the photos do not support the parallel operation, which is not beneficial to the quick and efficient uploading of the photos.
Disclosure of Invention
The embodiment of the invention provides a method and a device for uploading photos, computer equipment and a storage medium, and aims to solve the problems of complicated photo uploading steps and low efficiency in the prior art.
In a first aspect, an embodiment of the present invention provides a method for uploading a photo, including:
receiving a command of uploading a photo sent by a user;
acquiring a preset leading instruction, wherein the preset leading instruction comprises a camera leading instruction and an album leading instruction;
judging whether a preset operation instruction is received or not;
if a preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction;
and if the number of the photos to be uploaded is not larger than a preset threshold value, uploading the photos to be uploaded to a server side.
In a second aspect, an embodiment of the present invention further provides an apparatus for uploading photos, which includes:
the receiving unit is used for receiving a command of uploading the photos sent by a user;
the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a preset leading instruction, and the preset leading instruction comprises a camera leading instruction and an album leading instruction;
the judging unit is used for judging whether a preset operation instruction is received or not;
the second acquisition unit is used for acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction if a preset operation instruction is not received;
and the uploading unit is used for uploading the photos to be uploaded to the server side if the number of the photos to be uploaded is not larger than a preset threshold value.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when being executed by a processor.
The embodiment of the invention provides a method and a device for uploading photos, computer equipment and a storage medium. Wherein the method comprises the following steps: receiving a command of uploading a photo sent by a user; acquiring a preset leading instruction, wherein the preset leading instruction comprises a camera leading instruction and an album leading instruction; judging whether a preset operation instruction is received or not; if a preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction; and if the number of the photos to be uploaded is not larger than a preset threshold value, uploading the photos to be uploaded to a server side. According to the technical scheme of the embodiment of the invention, the camera and the photo album are integrated, so that the operation steps and times of uploading the photos are reduced, and the uploading efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 some embodiments of the present invention, 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 schematic scene diagram of a method for uploading a photo according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for uploading a photo according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow chart of a method for uploading photos according to an embodiment of the present invention;
fig. 4 is a schematic sub-flow chart of a method for uploading photos according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for uploading a photo according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for uploading a photo according to another embodiment of the present invention;
fig. 7 is a schematic block diagram of an apparatus for uploading photos according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a second obtaining unit of the apparatus for uploading photos according to the embodiment of the present invention;
fig. 9 is a schematic block diagram of an uploading unit of an apparatus for uploading photos, provided by an embodiment of the present invention;
fig. 10 is a schematic block diagram of an apparatus for uploading photos according to another embodiment of the present invention;
fig. 11 is a schematic block diagram of an apparatus for uploading photos according to yet another embodiment of the present invention; and
fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Referring to fig. 1, fig. 1 is a scene schematic diagram of a method for uploading a photo according to an embodiment of the present invention. The method for uploading the photos can be applied to the terminal, and for example, the method for uploading the photos can be realized through a software program configured on the terminal. The terminal is communicated with the server, receives a photo uploading instruction sent by a user, acquires a preset leading instruction corresponding to the photo uploading instruction, and then acquires the photo to be uploaded after a series of processing and uploads the photo to be uploaded to the server, so that the photo is uploaded. The terminal is a smart phone, a portable computer, or the like having a photographing function, and is not particularly limited herein. In addition, in fig. 1, the number of the terminal and the user is one, and it is understood that in the actual application process, the number of the terminal and the user may be multiple, and fig. 1 only serves for the purpose of schematic illustration.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for uploading a photo according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S100-S140.
And S100, receiving a command of uploading the photo sent by the user.
Specifically, if an instruction that a user triggers a terminal to upload a photo is detected, a related application program on the terminal is started. For example, the camera and album integrated application program developed by the embodiment of the invention integrates the functions of photographing and album uploading photos, is convenient for a user to operate, saves the operation steps and is beneficial to the rapid and efficient uploading of the photos. In a specific application scene, the instruction for uploading the photos is an action of clicking to enter the camera album integrated application program by the user, and after the user enters the camera album integrated application program, the user can take photos and upload the photos obtained by taking the photos, and understandably, the user can also select the photos in the photo album to upload.
S110, acquiring a preset leading instruction, wherein the preset leading instruction comprises a camera leading instruction and an album leading instruction.
In the embodiment of the invention, after receiving a photo uploading instruction sent by a user, a preset leading instruction is obtained, wherein the preset leading instruction specifically comprises a camera leading instruction and an album leading instruction. The camera leading instruction indicates that the application program of the camera album integration is in a camera leading mode; and the album leading instruction indicates that the application program integrated with the camera and the album is in the album leading mode. Specifically, after the user enters the camera album integrated application program, the corresponding dominant mode is displayed according to the dominant mode selected by the user last time, or the user can set the corresponding dominant mode by himself; if the user is a new user, the camera dominant mode is defined by default.
In a specific application scene, if a camera leading instruction corresponding to the uploaded photos is obtained, a user can see that the camera occupies a main interface on an interface integrated with a camera and an album, the album occupies a column of positions at the bottom of the same interface, and the photos are turned over to be horizontal screens, so that the user can turn over the screens left and right to select more photos to be uploaded; the latest photographed picture can be automatically placed at the upper left corner, the selected state is defaulted, and then the pictures are sequentially sequenced according to the photographing time sequence, so that the selection is convenient. If the photo album leading instruction corresponding to the uploaded photo is acquired, the user can see that the size of the camera is reduced to a photo thumbnail on an integrated interface of the camera and fix the photo thumbnail at the upper left corner of a terminal screen, the photo thumbnail can be turned up and down when the photo is turned over to be a vertical screen, the user can display the large image by clicking the photo thumbnail, the thumbnail and the detailed image can be clicked, and the user can confirm submission after clicking is completed. It should be noted that, because the obtained preset dominant commands are different, the presentation of the camera album integration interface is also different, and the implementation principle in the camera album integration interface is well known to those skilled in the art and is not described herein again.
And S120, judging whether a preset operation instruction is received or not.
In the embodiment of the present invention, after the preset leader instruction corresponding to the uploaded photo is obtained, that is, after whether the album leader instruction or the camera leader instruction is determined, it is determined whether a preset operation instruction is received. The preset operation instruction is, for example, an up-slide operation instruction and a down-slide operation instruction on the terminal screen. Specifically, if the preset leading instruction is a camera leading instruction, the camera and album integrated application program can enter an album leading mode by receiving an upward sliding operation instruction; understandably, if the preset leading instruction is the album leading instruction, the application program integrated with the camera and the album can enter a camera leading mode by receiving the downward sliding operation instruction. The camera leading mode and the album leading mode can be switched back and forth through a preset operation instruction, and the operation is simple and convenient.
It should be noted that, if the application program for camera and album integration is switched to enter the album leading mode from the camera leading mode through the downward sliding operation instruction, the thumbnail of the camera is always fixed at the upper left corner and is in a floating state, and the camera leading mode can be entered by clicking the thumbnail.
And S130, if the preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction.
In the embodiment of the present invention, if a preset operation instruction is not received, that is, an up-sliding operation instruction and a down-sliding operation instruction are not received, which indicates that an obtained preset leading instruction corresponding to the uploaded photo is not changed, the uploaded photo with a preset mark is obtained based on the preset leading instruction and is used as a photo to be uploaded for uploading.
It should be noted that the preset mark is in the selected state, and the check is displayed in the lower right corner of the photo. Understandably, in other embodiments, the selected state can be displayed in other manners, and only two different states of differential selection and non-selection are needed.
Referring to fig. 3, in an embodiment, for example, in the embodiment of the present invention, the step S130 includes the following steps S131 to S135.
S131, if a preset operation instruction is not received, judging whether a preset uploading instruction is received, if the preset uploading instruction is received, executing the step S132, otherwise executing the step S133;
s132, acquiring the uploaded photos with preset marks as the photos to be uploaded based on the camera leading instruction or the album leading instruction;
s133, judging whether a preset photographing instruction is received or not, if so, executing a step S134, otherwise, executing a step S135;
s134, taking the camera leading instruction as the preset leading instruction and returning to execute the step S131;
and S135, taking the album leading instruction as the preset leading instruction and returning to execute the step S131.
In the embodiment of the invention, if a preset operation instruction is not received, that is, an upward sliding operation instruction and a downward sliding operation instruction are not received, whether a preset uploading instruction is received or not is judged, and if the preset uploading instruction is received, the uploading photo with a preset mark is obtained as the photo to be uploaded. In a specific application scene, an uploading instruction is preset as a confirmation submission button on an application program interface integrated with a camera and an album, and after a user selects a certain number of photos, the confirmation submission button is clicked, so that the photos selected by the user can be uploaded. Understandably, if a preset uploading instruction is not received, it is indicated that the user does not determine the photos that need to be uploaded finally, at this time, it needs to be determined which dominant mode the application program of the camera album integration is currently in, and if a preset photographing instruction is received, it is indicated that the application program of the camera album integration is in the camera dominant mode, and after the user takes the photos each time, the photos are automatically stored in the album and defaulted to the selected state. At the moment, if the preset uploading instruction is not received, the user can continue to take pictures, and after the number of the pictures meets the user requirement, a confirmation submitting button can be clicked to upload the pictures. The setting can reduce the steps of repeated operation of uploading the photos, thereby reducing the uploading times and improving the uploading efficiency.
It should be noted that, the album and the camera are on the same screen and located below the camera, the photo that has just been shot appears in the upper left corner of the album, and if the user does not want to upload the photo that has just been shot, the user can cancel the click.
And S140, if the number of the photos to be uploaded is not larger than a preset threshold value, uploading the photos to be uploaded to a server side.
In the embodiment of the present invention, after the uploaded photo with the preset mark is obtained as the to-be-uploaded photo based on the preset leader instruction, it is first determined whether the number of the to-be-uploaded photos is greater than a preset threshold, and if the number of the to-be-uploaded photos is not greater than the preset threshold, it indicates that the number of the to-be-uploaded photos does not exceed the maximum sending capacity each time, and the to-be-uploaded photos are uploaded to the server. In a specific application scenario, in both the camera-dominated mode and the album-dominated mode, when a user clicks a photo and the number of the photos does not exceed a preset threshold value, and clicks a confirmation submission button, the selected photo to be uploaded is uploaded to a server side.
In some embodiments, such as the present invention, as shown in FIG. 4, the step S140 may include the following steps S141-S148.
S141, judging whether the number of the photos to be uploaded is greater than a preset threshold value, if so, executing a step S142, otherwise, executing a step S143;
s142, sending a prompt that the number of the photos to be uploaded exceeds the preset threshold value;
s143, sending a request for uploading the photo to be uploaded to a server side;
s144, receiving the photo information stored in the server side and sent by the server side;
s145, judging whether the photo to be uploaded has the same photo as the photo stored by the server side or not according to the received photo information, if not, executing the step S146, otherwise, executing the step S147;
s146, uploading the photo to be uploaded to a server side;
s147, reading and displaying the same photo in the photo to be uploaded so as to remind a user to avoid repeated uploading;
and S148, retrieving the photo with the preset mark as the photo to be uploaded, and returning to execute the step S146.
In the embodiment of the present invention, after acquiring the uploaded photo with a preset mark as a to-be-uploaded photo based on the preset leading instruction, it is first determined whether the number of the to-be-uploaded photos is greater than a preset threshold, and if the number of the to-be-uploaded photos is greater than the preset threshold, it indicates that the number of the to-be-uploaded photos exceeds the maximum capacity allowed to be sent each time, and the number of the to-be-uploaded photos is likely to fail in the sending process; if the number of the photos to be uploaded is not larger than a preset threshold value, indicating that the number of the photos to be uploaded does not exceed the maximum sending capacity of each time, sending a request for uploading the photos to the server, wherein specifically, the request for uploading the photos carries the characteristic information of the photos to be uploaded; the server receives the request and sends stored photo information to the terminal, wherein the photo information is specifically information capable of uniquely identifying the photo, such as combination information of a photo name and a storage path of the photo; the terminal receives the photo information which is sent by the server and stored in the server, judges whether the photo which is the same as the photo stored in the server exists in the photo to be uploaded or not according to the received photo information, if the photo which is the same as the photo stored in the server does not exist in the photo to be uploaded, the photo to be uploaded is uploaded to the server, otherwise, the same photo is read and displayed in the photo to be uploaded, so that a user can click and cancel the existing photo of the server, then the uploaded photo with a preset mark is obtained again to serve as the photo to be uploaded, and the photo to be uploaded is uploaded to the server.
Fig. 5 is a flowchart illustrating a method for uploading photos according to another embodiment of the present invention, as shown in fig. 5, in this embodiment, the method includes steps S100 to S150. That is, in the present embodiment, after step S120 of the above embodiment, the method further includes step S150.
S150, if a preset operation instruction is received, the preset leading instruction is obtained again, and a photo with a preset mark is obtained as a photo to be uploaded based on the preset leading instruction.
In the embodiment of the invention, if a preset operation instruction is received, that is, an up-sliding operation instruction and a down-sliding operation instruction are received, it is indicated that the preset dominant mode has changed, the preset dominant instruction needs to be re-acquired to re-determine the dominant mode, and then the uploaded photo with the preset mark is acquired as the photo to be uploaded based on the re-acquired preset dominant instruction for uploading.
Fig. 6 is a flowchart illustrating a method for uploading photos according to another embodiment of the present invention, as shown in fig. 6, in this embodiment, the method includes steps S100 to S160. That is, in the present embodiment, after step S140 of the above embodiment, the method further includes step S160.
And S160, receiving a receiving success instruction sent by the server side.
In the embodiment of the present invention, after the to-be-uploaded photo is uploaded to the server, the server sends a command of successful reception to the terminal, and after the terminal receives the command, the to-be-uploaded photo is not sent to the server. If the server side does not receive the photos to be uploaded or the number of the received photos to be uploaded is not correct, the server side can send a receiving failure instruction to the terminal, and the terminal can resend the photos to be uploaded to the server side after receiving the receiving failure instruction sent by the server side, and the steps are sequentially circulated until receiving a receiving success instruction sent by the server side.
Fig. 7 is a schematic block diagram of an apparatus 200 for uploading photos according to an embodiment of the present invention. As shown in fig. 7, the present invention also provides an apparatus 200 for uploading photos, corresponding to the above method for uploading photos. The apparatus for uploading photos 200 includes means for performing the above-described method of uploading photos, and the apparatus may be configured in a terminal. Specifically, referring to fig. 7, the apparatus 200 for uploading photos includes a receiving unit 201, a first obtaining unit 202, a determining unit 203, a second obtaining unit 204, and an uploading unit 205.
The receiving unit 201 is configured to receive an instruction sent by a user to upload a photo; the first obtaining unit 202 is configured to obtain a preset dominant instruction, where the preset dominant instruction includes a camera dominant instruction and an album dominant instruction; the judging unit 203 is configured to judge whether a preset operation instruction is received; the second obtaining unit 204 is configured to obtain, based on the camera leader instruction or the album leader instruction, a photo with a preset mark as a photo to be uploaded if a preset operation instruction is not received;
the uploading unit 205 is configured to upload the photos to be uploaded to a server side if the number of the photos to be uploaded is not greater than a preset threshold.
In some embodiments, for example, in the present embodiment, as shown in fig. 8, the second obtaining unit 204 includes a first determining subunit 2041, a first obtaining subunit 2042, a second determining subunit 2043, and a returning unit 2044.
The first determining subunit 2041 is configured to determine whether a preset upload instruction is received if the preset operation instruction is not received; the first obtaining subunit 2042 is configured to, if the preset upload instruction is received, obtain, based on the camera leader instruction or the album leader instruction, a photo with a preset mark as a photo to be uploaded; the second judging subunit 2043 is configured to, if the preset uploading instruction is not received, judge whether a preset photographing instruction is received; the returning unit 2044 is configured to, if the preset photographing instruction is received, take the camera leader instruction as the preset leader instruction and return to execute the step of determining whether a preset uploading instruction is received.
In some embodiments, for example, in the present embodiment, as shown in fig. 9, the uploading unit 205 includes a third determining sub-unit 2051, a sending unit 2052, a receiving unit 2053, a fourth determining sub-unit 2054, an uploading sub-unit 2055, a display unit 2056, and an obtaining uploading unit 2057.
The third judging subunit 2051 is configured to judge whether the number of the photos to be uploaded is greater than a preset threshold; the sending unit 2052 is configured to send a request for uploading the photos to be uploaded to the server side if the number of the photos to be uploaded is not greater than a preset threshold; the receiving unit 2053 is configured to receive the photo information stored in the server side and sent by the server side; the fourth judging subunit 2054 is configured to judge, according to the received photo information, whether a photo that is the same as the photo stored in the server exists in the photo to be uploaded; the uploading sub-unit 2055 is configured to upload the to-be-uploaded photo to the server if the to-be-uploaded photo does not have a photo that is the same as a photo stored by the server; the display unit 2056 is configured to, if a photo that is the same as the photo stored by the server exists in the photos to be uploaded, read and display the same photo in the photos to be uploaded to remind the user of avoiding repeated uploading; the acquisition uploading unit 2057 is configured to acquire a photo with a preset mark as a photo to be uploaded, and upload the photo to be uploaded to the server.
In some embodiments, such as this embodiment, the apparatus 200 further includes a third obtaining unit 206, as shown in fig. 10.
The third obtaining unit 206 is configured to, if a preset operation instruction is received, obtain the preset dominant instruction again, and obtain, based on the preset dominant instruction, a photo with a preset mark as a photo to be uploaded.
In some embodiments, such as this embodiment, the apparatus 200 further includes a receiving unit 207, as shown in fig. 11.
The receiving unit 207 is configured to receive a receiving success instruction sent by the server.
The above-mentioned means for uploading photos may be implemented in the form of a computer program, which may be run on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 300 is a terminal, and the terminal may be an electronic device having a communication function, such as a smart phone, a tablet computer, a personal digital assistant, and a wearable device.
Referring to fig. 12, the computer device 300 includes a processor 302, memory, and a network interface 305 connected by a system bus 301, wherein the memory may include a non-volatile storage medium 503 and an internal memory 304.
The nonvolatile storage medium 303 may store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, may cause the processor 302 to perform a method of uploading photographs.
The processor 302 is used to provide computing and control capabilities to support the operation of the overall computer device 300.
The internal memory 304 provides an environment for the execution of the computer program 3032 in the non-volatile storage medium 303, and the computer program 3032, when executed by the processor 302, causes the processor 302 to perform a method for uploading photos.
The network interface 305 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 12 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer apparatus 300 to which the present application is applied, and that a particular computer apparatus 300 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 302 is configured to run a computer program 3032 stored in the memory to implement the following steps: receiving a command of uploading a photo sent by a user; acquiring a preset leading instruction, wherein the preset leading instruction comprises a camera leading instruction and an album leading instruction; judging whether a preset operation instruction is received or not; if a preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction;
and if the number of the photos to be uploaded is not larger than a preset threshold value, uploading the photos to be uploaded to a server side.
In some embodiments, for example, in this embodiment, when the step of obtaining a photo with a preset mark as a photo to be uploaded based on the camera leader instruction or the album leader instruction is implemented by the processor 302 if the preset operation instruction is not received, the following steps are specifically implemented: if the preset operation instruction is not received, judging whether a preset uploading instruction is received, and if the preset uploading instruction is received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction; if the preset uploading instruction is not received, judging whether a preset photographing instruction is received or not, if the preset photographing instruction is received, taking the camera leading instruction as the preset leading instruction and returning to execute the step of judging whether the preset uploading instruction is received or not; and if the preset photographing instruction is not received, taking the album leading instruction as the preset leading instruction and returning to execute the step of judging whether a preset uploading instruction is received or not.
In some embodiments, for example, in this embodiment, when the step of uploading the to-be-uploaded photos to the server side is implemented by the processor 302, specifically, the following steps are implemented: judging whether the number of the photos to be uploaded is greater than a preset threshold value or not, and if so, sending a prompt that the number of the photos to be uploaded exceeds the preset threshold value; if the number of the photos to be uploaded is not larger than a preset threshold value, sending a request for uploading the photos to be uploaded to a server; receiving photo information which is sent by a server and stored in the server; judging whether the photos to be uploaded have photos which are the same as the photos stored by the server side or not according to the received photo information, and if the photos to be uploaded do not have photos which are the same as the photos stored by the server side, uploading the photos to be uploaded to the server side; if the photos to be uploaded have the same photos as the photos stored by the server; reading and displaying the same photo in the photo to be uploaded to remind a user to avoid repeated uploading; and re-acquiring the uploaded photos with preset marks as the photos to be uploaded, and uploading the photos to be uploaded to a server side.
In some embodiments, for example, in this embodiment, after the step of determining whether the preset operation instruction is received is implemented by the processor 302, the specific implementation further includes the following steps: and if a preset operation instruction is received, re-acquiring the preset leading instruction, and acquiring a photo with a preset mark as a photo to be uploaded based on the preset leading instruction.
In some embodiments, for example, in this embodiment, after the step of uploading the to-be-uploaded photos to the server side if the number of the to-be-uploaded photos is not greater than the preset threshold is implemented by the processor 302, the implementation further includes the following steps: and receiving a receiving success instruction sent by the server side.
It should be understood that, in the embodiment of the present Application, the Processor 302 may be a Central Processing Unit (CPU), and the Processor 302 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of: receiving a command of uploading a photo sent by a user; acquiring a preset leading instruction, wherein the preset leading instruction comprises a camera leading instruction and an album leading instruction; judging whether a preset operation instruction is received or not; if a preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction;
and if the number of the photos to be uploaded is not larger than a preset threshold value, uploading the photos to be uploaded to a server side.
In some embodiments, for example, in this embodiment, when the processor executes the computer program to implement the step of obtaining a photo with a preset mark as a photo to be uploaded based on the camera master instruction or the album master instruction if a preset operation instruction is not received, the following steps are specifically implemented: if the preset operation instruction is not received, judging whether a preset uploading instruction is received, and if the preset uploading instruction is received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction; if the preset uploading instruction is not received, judging whether a preset photographing instruction is received or not, if the preset photographing instruction is received, taking the camera leading instruction as the preset leading instruction and returning to execute the step of judging whether the preset uploading instruction is received or not; and if the preset photographing instruction is not received, taking the album leading instruction as the preset leading instruction and returning to execute the step of judging whether a preset uploading instruction is received or not.
In some embodiments, for example, in this embodiment, when the processor executes the computer program to implement the step of uploading the photo to be uploaded to the server side if the number of the photos to be uploaded is not greater than the preset threshold, the following steps are specifically implemented: judging whether the number of the photos to be uploaded is greater than a preset threshold value or not, and if so, sending a prompt that the number of the photos to be uploaded exceeds the preset threshold value; if the number of the photos to be uploaded is not larger than a preset threshold value, sending a request for uploading the photos to be uploaded to a server; receiving photo information which is sent by a server and stored in the server; judging whether the photos to be uploaded have photos which are the same as the photos stored by the server side or not according to the received photo information, and if the photos to be uploaded do not have photos which are the same as the photos stored by the server side, uploading the photos to be uploaded to the server side; if the photos to be uploaded have the same photos as the photos stored by the server; reading and displaying the same photo in the photo to be uploaded to remind a user to avoid repeated uploading; and re-acquiring the uploaded photos with preset marks as the photos to be uploaded, and uploading the photos to be uploaded to a server side.
In some embodiments, for example, in this embodiment, after the processor executes the computer program to implement the step of determining whether the preset operation instruction is received, the specific implementation further includes the following steps: and if a preset operation instruction is received, re-acquiring the preset leading instruction, and acquiring a photo with a preset mark as a photo to be uploaded based on the preset leading instruction.
In some embodiments, for example, in this embodiment, after the processor executes the computer program to implement the step of determining whether the preset operation instruction is received, the specific implementation further includes the following steps: and if a preset operation instruction is received, re-acquiring the preset leading instruction, and acquiring a photo with a preset mark as a photo to be uploaded based on the preset leading instruction.
In some embodiments, for example, in this embodiment, after the processor executes the computer program to implement the step of uploading the photos to be uploaded to the server side if the number of the photos to be uploaded is not greater than the preset threshold, the specific implementation further includes the following steps: and receiving a receiving success instruction sent by the server side.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of uploading a photograph, comprising:
receiving a command of uploading a photo sent by a user;
acquiring a preset leading instruction, wherein the preset leading instruction comprises a camera leading instruction and an album leading instruction;
judging whether a preset operation instruction is received or not;
if a preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction;
and if the number of the photos to be uploaded is not larger than a preset threshold value, uploading the photos to be uploaded to a server side.
2. The method according to claim 1, wherein after determining whether the preset operation instruction is received, the method further comprises:
and if a preset operation instruction is received, re-acquiring the preset leading instruction, and acquiring a photo with a preset mark as a photo to be uploaded based on the preset leading instruction.
3. The method according to claim 1, wherein if a preset operation instruction is not received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leader instruction or the album leader instruction comprises:
if the preset operation instruction is not received, judging whether a preset uploading instruction is received or not;
and if the preset uploading instruction is received, acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction.
4. The method according to claim 3, wherein after determining whether the preset upload instruction is received, the method further comprises:
if the preset uploading instruction is not received, judging whether a preset photographing instruction is received or not;
and if the preset photographing instruction is received, taking the camera leading instruction as the preset leading instruction and returning to execute the step of judging whether a preset uploading instruction is received or not.
5. The method of claim 1, wherein uploading the photos to be uploaded to a server side if the number of the photos to be uploaded is not greater than a preset threshold comprises:
judging whether the number of the photos to be uploaded is greater than a preset threshold value;
if the number of the photos to be uploaded is not larger than a preset threshold value, sending a request for uploading the photos to be uploaded to a server;
receiving photo information which is sent by a server and stored in the server;
judging whether the photos to be uploaded have photos which are the same as the photos stored by the server side or not according to the received photo information;
and if the photos to be uploaded do not have the photos identical to the photos stored by the server, uploading the photos to be uploaded to the server.
6. The method according to claim 5, wherein after determining whether the photo to be uploaded is the same as the photo stored by the server, the method further comprises:
if the photos to be uploaded have the same photos as the photos stored by the server, reading and displaying the same photos in the photos to be uploaded so as to remind a user of avoiding repeated uploading;
and acquiring a photo with a preset mark as a photo to be uploaded, and uploading the photo to be uploaded to a server side.
7. The method according to claim 1, wherein if the number of the photos to be uploaded is not greater than a preset threshold, after the uploading the photos to be uploaded to the server, the method further comprises:
and receiving a receiving success instruction sent by the server side.
8. An apparatus for uploading photographs, comprising:
the receiving unit is used for receiving a command of uploading the photos sent by a user;
the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a preset leading instruction, and the preset leading instruction comprises a camera leading instruction and an album leading instruction;
the judging unit is used for judging whether a preset operation instruction is received or not;
the second acquisition unit is used for acquiring a photo with a preset mark as a photo to be uploaded based on the camera leading instruction or the album leading instruction if a preset operation instruction is not received;
and the uploading unit is used for uploading the photos to be uploaded to the server side if the number of the photos to be uploaded is not larger than a preset threshold value.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202010462258.9A 2020-05-27 2020-05-27 Method, device, computer equipment and storage medium for uploading photo Active CN111698296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010462258.9A CN111698296B (en) 2020-05-27 2020-05-27 Method, device, computer equipment and storage medium for uploading photo

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010462258.9A CN111698296B (en) 2020-05-27 2020-05-27 Method, device, computer equipment and storage medium for uploading photo

Publications (2)

Publication Number Publication Date
CN111698296A true CN111698296A (en) 2020-09-22
CN111698296B CN111698296B (en) 2024-04-12

Family

ID=72478559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010462258.9A Active CN111698296B (en) 2020-05-27 2020-05-27 Method, device, computer equipment and storage medium for uploading photo

Country Status (1)

Country Link
CN (1) CN111698296B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902615A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Photo processing method, photo processing device and mobile terminal
CN109040474A (en) * 2018-10-26 2018-12-18 Oppo广东移动通信有限公司 Photo display methods, device, terminal and storage medium
CN109710337A (en) * 2018-12-17 2019-05-03 深圳壹账通智能科技有限公司 Picture upload method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902615A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Photo processing method, photo processing device and mobile terminal
CN109040474A (en) * 2018-10-26 2018-12-18 Oppo广东移动通信有限公司 Photo display methods, device, terminal and storage medium
CN109710337A (en) * 2018-12-17 2019-05-03 深圳壹账通智能科技有限公司 Picture upload method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111698296B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US10587773B2 (en) Adaptive enhancement of scanned document pages
US6538698B1 (en) Method and system for sorting images in an image capture unit to ease browsing access
US6445460B1 (en) Method and system for providing and utilizing file attributes with digital images
US20180205882A1 (en) Method and system for remote control of photo-taking by a bluetooth smart watch, a smart terminal and spp thereof
KR20170019823A (en) Method for processing image and electronic device supporting the same
JP2002511717A (en) Method and system for a digital imaging device
CN103685815A (en) Image classifying apparatus, electronic album creating apparatus, image classifying method, and program
US8768377B2 (en) Portable electronic device and method of providing location-based information associated with an image
WO2018000643A1 (en) Method and device for sorting photographs
EP2812847A1 (en) Automated notification of images showing common content
US6564282B1 (en) Method and system for increasing storage capacity in a digital image capture device
JP2015198300A (en) Information processor, imaging apparatus, and image management system
JP2014052915A (en) Electronic apparatus, display control method, and program
JP6396798B2 (en) RECOMMENDATION DEVICE, METHOD, AND PROGRAM
KR20200101036A (en) Electronic device and method providing content associated with image to application
CN111698296A (en) Method and device for uploading photos, computer equipment and storage medium
KR100785617B1 (en) System for transmitting a photograph using multimedia messaging service and method therefor
CN116134828A (en) Photographing method, related equipment and computer readable storage medium
JP2011119832A (en) Image display device and image display method
US20230128643A1 (en) Photographing program
JP5664285B2 (en) Information processing apparatus and camera
KR20160094307A (en) Apparatus and method for managing photos
JP2005252469A (en) Photographing date information correction system of image data file
JP5979205B2 (en) Information processing apparatus and camera
JP4102933B2 (en) Captured image management apparatus, captured image management method, and captured image management program

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