Camera collection material uploading method and device, computer equipment and storage medium

By implementing data compression and encryption of camera-acquisitioned materials on mobile terminals, and selecting storage addresses based on the authentication results for uploading, the problems of inefficient and low security of traditional camera-acquisitioned materials upload methods are solved, and a more efficient and secure upload process is achieved.

CN119922181APending Publication Date: 2025-05-02BEIJING BAILONG MAYUN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411996648.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-02

Smart Images

  • Figure CN119922181A_ABST
    Figure CN119922181A_ABST
Patent Text Reader

Abstract

The invention relates to a camera collection material uploading method and device, computer equipment and a storage medium. The method comprises the following steps: in response to a first selection operation performed on each to-be-uploaded material, adding each target to-be-uploaded material and corresponding material file information to a material uploading queue; in response to a second selection operation performed on the uploading object, determining a target uploading object according to a result of the second selection operation; in response to the fact that the target uploading object is the cloud storage service platform, obtaining first login input information of the cloud storage service platform, and performing identity verification according to the first login input information to obtain a first identity verification result; and in response to the fact that the first identity verification result is successful verification and first configuration operation is carried out on the storage address of the cloud storage service platform, the target to-be-uploaded materials and the corresponding material file information are sequentially uploaded to the first target storage address according to the material uploading queue. By adopting the method, the efficiency and the safety can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of material processing, and in particular to a method, device, computer equipment and storage medium for uploading material captured by a camera. Background Art

[0002] The working principle of a camera is to convert optical image signals into electrical signals for storage or transmission. When we shoot an object, the light reflected from the object is collected by the camera lens and focused on the light-receiving surface of the camera device. The camera device then converts the light into electrical energy, and the corresponding camera acquisition material is obtained.

[0003] However, the traditional method of uploading materials collected by cameras has problems such as low efficiency and low security. Summary of the invention

[0004] Based on this, it is necessary to provide a camera acquisition material uploading method, device, computer equipment and storage medium that can improve efficiency and security in response to the above technical problems.

[0005] In a first aspect, a method for uploading material captured by a camera is provided, the method being applied to a mobile terminal using an IOS operating system, the method comprising:

[0006] In response to the completion of the initialization operation of the mobile terminal and the network connection state of the mobile terminal being in a successfully connected state, obtaining and displaying a material collection directory information list of the camera of the mobile terminal; the material collection directory information list includes material file information of each material to be uploaded;

[0007] In response to performing a first selection operation on each material to be uploaded, determining a corresponding target material to be uploaded according to a result of the first selection operation, and adding each target material to be uploaded and corresponding material file information to a material upload queue;

[0008] In response to performing a second selection operation on the upload object, determining a target upload object according to a result of the second selection operation; wherein the target upload object includes a cloud storage service platform, a custom server, or a local network storage device;

[0009] In response to the target upload object being a cloud storage service platform, first login input information of the cloud storage service platform is obtained, and a first identity authentication result is obtained after identity authentication is performed according to the first login input information; the first login input information includes a user account and a user password; and the first identity authentication result includes an authentication success or an authentication failure;

[0010] In response to the first identity authentication result being successful and a first configuration operation being performed on the storage address of the cloud storage service platform, a first target storage address is determined according to the first configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the first target storage address in sequence according to the material upload queue.

[0011] In one of the embodiments, each target material to be uploaded and the corresponding material file information are added to the material upload queue, including: performing data compression processing on each target material to be uploaded and the corresponding material file information to obtain the corresponding compressed target material to be uploaded and the corresponding compressed material file information; performing data encryption processing on each compressed target material to be uploaded and the corresponding compressed material file information to obtain the corresponding encrypted target material to be uploaded and the corresponding encrypted material file information; adding each encrypted target material to be uploaded as the corresponding target material to be uploaded to the material upload queue, and determining the encrypted material file information corresponding to each encrypted target material to be uploaded as the material file information of the corresponding target material to be uploaded and adding it to the material upload queue.

[0012] In one of the embodiments, the method includes: when uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue, detecting a first connection state between the mobile terminal and the cloud storage service platform; the first connection state includes a normal connection state or an abnormal connection state; in response to the first connection state being an abnormal connection state, terminating the step of uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue and setting a first breakpoint, and returning to the step of detecting the first connection state between the mobile terminal and the cloud storage service platform; in response to the first connection state switching from the abnormal connection state to the normal connection state, re-executing the step of uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue from the first breakpoint.

[0013] In one of the embodiments, the method includes: in response to the target upload object being a custom server, obtaining second login input information of the custom server, and obtaining a second identity authentication result after identity authentication based on the second login input information; the second login input information includes a server address, a server target port, a server login account and a server login password; the second identity authentication result includes a successful authentication or a failed authentication; in response to the second identity authentication result being a successful authentication, detecting the connection status between the mobile terminal and the custom server; the connection status includes a normal connection status or an abnormal connection status; in response to the connection status being a normal connection status and performing a second configuration operation on the storage address of the custom server, determining a second target storage address based on the second configuration operation, and uploading each target material to be uploaded and the corresponding material file information to the second target storage address in sequence according to the material upload queue.

[0014] In one of the embodiments, the method also includes: in response to the target upload object being a local network storage device, searching for each local network storage device to be uploaded within the local area network; in response to performing a third selection operation on each local network storage device to be uploaded, determining the target local network storage device to be uploaded according to the result of the third selection operation; obtaining login credential information of the target local network storage device to be uploaded, and obtaining a third identity authentication result after performing identity authentication based on the login credential information; the third identity authentication result includes successful authentication or failed authentication; in response to the third identity authentication result being successful authentication and performing a third configuration operation on the storage address of the target local network storage device to be uploaded, determining a third target storage address according to the third configuration operation, and uploading each target material to be uploaded and the corresponding material file information to the third target storage address in sequence according to the material upload queue.

[0015] In one of the embodiments, the method further includes: recording a material upload progress ratio and material upload error information; wherein the material upload error information includes file read error information, network connection timeout information, and error code information returned by the target upload object.

[0016] In one of the embodiments, the method further includes: judging whether the material upload queue has completed uploading according to the material upload progress ratio; if the material upload queue has not completed uploading, generating an abnormal upload log according to the material upload error information, and performing a re-upload operation according to the abnormal upload log, and returning to the step of recording the material upload progress ratio and the material upload error information; if the material upload queue has completed uploading, clearing the material upload queue.

[0017] In a second aspect, a device for uploading material captured by a camera is provided, which is applied to a mobile terminal using an IOS operating system, and includes a data acquisition module, a material selection module, an object selection module, an identity authentication module and a material uploading module.

[0018] Among them, the data acquisition module is used to respond to the completion of the initialization operation of the mobile terminal and the network connection status of the mobile terminal is in a successful connection state, and obtain and display the material collection directory information list of the camera of the mobile terminal; the material collection directory information list includes the material file information of each material to be uploaded; the material selection module is used to respond to the first selection operation on each material to be uploaded, determine the corresponding target material to be uploaded according to the result of the first selection operation, and add each target material to be uploaded and the corresponding material file information to the material upload queue; the object selection module is used to respond to the second selection operation on the upload object, and determine the target upload object according to the result of the second selection operation; wherein the target upload object includes a cloud storage service platform, custom server or local network storage device; the identity authentication module is used to respond to the target upload object being a cloud storage service platform, obtain the first login input information of the cloud storage service platform, and obtain the first identity authentication result after identity authentication based on the first login input information; the first login input information includes a user account and a user password; the first identity authentication result includes a successful authentication or a failed authentication; the material upload module is used to respond to the first identity authentication result being a successful authentication and perform a first configuration operation on the storage address of the cloud storage service platform, determine the first target storage address according to the first configuration operation, and upload the target materials to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue.

[0019] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.

[0020] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.

[0021] The above-mentioned camera acquisition material uploading method, device, computer equipment and storage medium, in response to the completion of the mobile terminal initialization operation and the network connection status of the mobile terminal being in a successfully connected state, obtains and displays the material acquisition directory information list of the mobile terminal's camera; the material acquisition directory information list includes the material file information of each material to be uploaded; then, in response to a first selection operation on each material to be uploaded, the corresponding target material to be uploaded is determined according to the result of the first selection operation, and each target material to be uploaded and the corresponding material file information are added to the material upload queue; then, in response to a second selection operation on the upload object, the target upload object is determined according to the result of the second selection operation; wherein the target upload object includes a cloud storage service platform, A custom server or a local network storage device; then, in response to the target upload object being a cloud storage service platform, obtaining the first login input information of the cloud storage service platform, and obtaining a first identity authentication result after identity authentication is performed based on the first login input information; the first login input information includes a user account and a user password; the first identity authentication result includes a successful authentication or a failed authentication; finally, in response to the first identity authentication result being a successful authentication and a first configuration operation being performed on the storage address of the cloud storage service platform, determining the first target storage address based on the first configuration operation, and uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue, thereby improving the efficiency and security of uploading the material captured by the camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A diagram of an application environment of a method for uploading material collected by a camera in one embodiment;

[0023] Figure 2 A schematic diagram of a first process of a method for uploading material captured by a camera in one embodiment;

[0024] Figure 3 It is a flowchart of adding each target material to be uploaded and the corresponding material file information to the material upload queue in one embodiment;

[0025] Figure 4 A schematic diagram of a second process of a method for uploading material captured by a camera in one embodiment;

[0026] Figure 5 It is a schematic diagram of the third process of the method for uploading material collected by a camera in one embodiment;

[0027] Figure 6 It is a schematic diagram of the fourth process of the method for uploading material collected by a camera in one embodiment;

[0028] Figure 7 It is a structural block diagram of a device for uploading material collected by a camera in one embodiment;

[0029] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0031] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0033] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0034] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0035] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.

[0036] The camera acquisition material uploading method provided in this application can be applied to Figure 1In the application environment shown. The mobile terminal 102 communicates with the server 104 through the network. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 can be implemented as an independent server or a server cluster composed of multiple servers. In addition, the mobile terminal 102 uses the IOS operating system.

[0037] In one embodiment, Figure 2 As shown, a method for uploading material collected by a camera is provided, and the method is applied to Figure 1 The mobile terminal 102 in the example is used for explanation, and the steps include the following steps 201 to 205.

[0038] Step 201, in response to the completion of the initialization operation of the mobile terminal and the network connection status of the mobile terminal being in a successfully connected state, a material collection directory information list of the camera of the mobile terminal is obtained and displayed.

[0039] The material collected by the camera may include, but is not limited to, image material and video material. The material collection directory information list includes material file information of each material to be uploaded. In response to the completion of the mobile terminal initialization operation and the network connection status of the mobile terminal being in a successful connection state, the mobile terminal 102 obtains and displays the material collection directory information list of the camera of the mobile terminal.

[0040] In a specific example, the material file information includes basic file information, media parameters and storage path. Among them, the basic file information includes the file name, file format type and file size. The file name is used to uniquely identify each collected product file, which is convenient for subsequent display, search and operation. The file format type is convenient for determining how to perform corresponding processing, such as common formats such as MOV or MP4 for video materials, and common formats such as JPG and PNG for image materials. The file size is used to understand the storage space occupied by the file, and it is also helpful to estimate resource occupancy, transmission time, etc. in operations such as uploading. Media parameters include one or more of resolution, frame rate, duration, encoding format and color mode. The storage path is used to clarify the specific storage location of the file in the local storage device. The above is only a specific example. In actual applications, it is flexibly set according to user needs and is not limited here.

[0041] Step 202, in response to performing a first selection operation on each material to be uploaded, determining a corresponding target material to be uploaded according to a result of the first selection operation, and adding each target material to be uploaded and corresponding material file information to a material upload queue.

[0042] Specifically, in response to performing the first selection operation on each material to be uploaded, the mobile terminal 102 determines the corresponding target material to be uploaded according to the result of the first selection operation, and adds each target material to be uploaded and the corresponding material file information to the material upload queue.

[0043] In a specific example, determining the corresponding target material to be uploaded according to the result of the first selection operation includes:

[0044] The result of the first selection operation is confirmed, and the corresponding target material to be uploaded is determined according to the result of the confirmation operation. The above is only a specific example, and it can be flexibly set according to user needs in actual applications, and is not limited here.

[0045] In one embodiment, if Figure 3 As shown, each target material to be uploaded and the corresponding material file information are added to the material upload queue, including steps 301 to 303.

[0046] Step 301, performing data compression processing on each target material to be uploaded and the corresponding material file information to obtain the corresponding compressed target material to be uploaded and the corresponding compressed material file information;

[0047] Step 302, performing data encryption processing on each compressed target material to be uploaded and the corresponding compressed material file information to obtain the corresponding encrypted target material to be uploaded and the corresponding encrypted material file information;

[0048] Step 303: adding each encrypted target material to be uploaded as a corresponding target material to be uploaded to a material upload queue, and determining the encrypted material file information corresponding to each encrypted target material to be uploaded as the material file information of the corresponding target material to be uploaded to add to the material upload queue.

[0049] Specifically, the mobile terminal 102 performs data compression processing on each target material to be uploaded and the corresponding material file information to obtain the corresponding compressed target material to be uploaded and the corresponding compressed material file information; then, performs data encryption processing on each compressed target material to be uploaded and the corresponding compressed material file information to obtain the corresponding encrypted target material to be uploaded and the corresponding encrypted material file information; then, each encrypted target material to be uploaded is added to the material upload queue as the corresponding target material to be uploaded, and the encrypted material file information corresponding to each encrypted target material to be uploaded is determined as the material file information of the corresponding target material to be uploaded and added to the material upload queue, thereby improving the efficiency and security of data transmission.

[0050] In this embodiment, data compression processing is performed on each target material to be uploaded and the corresponding material file information to obtain the corresponding compressed target material to be uploaded and the corresponding compressed material file information; then, data encryption processing is performed on each compressed target material to be uploaded and the corresponding compressed material file information to obtain the corresponding encrypted target material to be uploaded and the corresponding encrypted material file information; then, each encrypted target material to be uploaded is added to the material upload queue as the corresponding target material to be uploaded, and the encrypted material file information corresponding to each encrypted target material to be uploaded is determined as the material file information of the corresponding target material to be uploaded and added to the material upload queue, thereby improving the efficiency and security of data transmission.

[0051] Step 203: In response to performing a second selection operation on the upload object, determining a target upload object according to a result of the second selection operation.

[0052] The target upload object includes a cloud storage service platform, a custom server or a local network storage device. Specifically, in response to performing a second selection operation on the upload object, the mobile terminal 102 determines the target upload object according to the result of the second selection operation.

[0053] Step 204, in response to the target upload object being a cloud storage service platform, first login input information of the cloud storage service platform is obtained, and a first identity authentication result is obtained after identity authentication is performed according to the first login input information.

[0054] The first login input information includes a user account and a user password; and the first identity verification result includes a verification success or a verification failure. Specifically, in response to the target upload object being a cloud storage service platform, the mobile terminal 102 obtains the first login input information of the cloud storage service platform, and obtains the first identity verification result after performing identity verification based on the first login input information.

[0055] Step 205, in response to the first identity authentication result being successful and the first configuration operation being performed on the storage address of the cloud storage service platform, the first target storage address is determined according to the first configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the first target storage address in sequence according to the material upload queue.

[0056] Specifically, the mobile terminal 102 responds to the first identity authentication result being successful and performs a first configuration operation on the storage address of the cloud storage service platform, determines the first target storage address according to the first configuration operation, and uploads each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue, thereby improving the efficiency and security of uploading materials captured by the camera.

[0057] In a specific example, the method further includes: in response to the first identity authentication result being an authentication failure, outputting an identity authentication failure prompt message. The above are only specific examples, which can be flexibly set according to user needs in actual applications and are not limited here.

[0058] In a specific example, uploading the target materials to be uploaded and the corresponding material file information in sequence to the first target storage address according to the material upload queue includes:

[0059] Obtaining permission information corresponding to the first login input information;

[0060] Performing permission verification of the first target storage address according to the permission information to obtain a permission verification result; wherein the permission verification result includes a verification success or a verification failure;

[0061] In response to the result of the authority verification being successful, uploading the target materials to be uploaded and the corresponding material file information in sequence according to the material upload queue and the first target storage address;

[0062] In response to the result of the permission verification being a verification failure, a permission verification failure prompt message is output. The above is only a specific example, and in actual applications, it is flexibly set according to user needs and is not limited here.

[0063] Based on this, the above-mentioned camera acquisition material uploading method, in response to the completion of the mobile terminal initialization operation and the network connection status of the mobile terminal being in a successfully connected state, obtains and displays the material acquisition directory information list of the mobile terminal's camera; the material acquisition directory information list includes the material file information of each material to be uploaded; then, in response to a first selection operation on each material to be uploaded, the corresponding target material to be uploaded is determined according to the result of the first selection operation, and each target material to be uploaded and the corresponding material file information are added to the material upload queue; then, in response to a second selection operation on the upload object, the target upload object is determined according to the result of the second selection operation; wherein the target upload object includes a cloud storage service platform, a custom service or a local network storage device; then, in response to the target upload object being a cloud storage service platform, first login input information of the cloud storage service platform is obtained, and a first identity authentication result is obtained after identity authentication is performed according to the first login input information; the first login input information includes a user account and a user password; the first identity authentication result includes a successful authentication or a failed authentication; finally, in response to the first identity authentication result being a successful authentication and a first configuration operation is performed on the storage address of the cloud storage service platform, a first target storage address is determined according to the first configuration operation, and each target material to be uploaded and the corresponding material file information are sequentially uploaded to the first target storage address according to the material upload queue, thereby improving the efficiency and security of uploading the material collected by the camera.

[0064] In one embodiment, if Figure 4 As shown, the method includes steps 401 to 403.

[0065] Step 401, when each target to-be-uploaded material and the corresponding material file information are sequentially uploaded to the first target storage address according to the material upload queue, detecting a first connection state between the mobile terminal and the cloud storage service platform;

[0066] Step 402, in response to the first connection state being an abnormal connection state, terminating the step of sequentially uploading each target to-be-uploaded material and the corresponding material file information to the first target storage address according to the material upload queue and setting a first breakpoint, and returning to the step of detecting the first connection state between the mobile terminal and the cloud storage service platform;

[0067] Step 403, in response to the first connection state switching from the abnormal connection state to the normal connection state, the step of sequentially uploading each target to-be-uploaded material and the corresponding material file information to the first target storage address according to the material upload queue is re-executed from the first breakpoint.

[0068] Among them, the first connection state includes a normal connection state or an abnormal connection state. Specifically, when the mobile terminal 102 uploads each target to-be-uploaded material and the corresponding material file information to the first target storage address in sequence according to the material upload queue, the mobile terminal 102 detects the first connection state between the mobile terminal and the cloud storage service platform; then, in response to the first connection state being an abnormal connection state, the step of uploading each target to-be-uploaded material and the corresponding material file information to the first target storage address in sequence according to the material upload queue is terminated and the first breakpoint is set, and the step of detecting the first connection state between the mobile terminal and the cloud storage service platform is returned; then, in response to the first connection state switching from the abnormal connection state to the normal connection state, the step of uploading each target to-be-uploaded material and the corresponding material file information to the first target storage address in sequence according to the material upload queue is re-executed from the first breakpoint, realizing the intelligent breakpoint resume function, without the need for manual intervention by the user, and improving the efficiency and stability of the camera's acquisition and uploading of materials.

[0069] In this embodiment, when each target material to be uploaded and the corresponding material file information are uploaded to the first target storage address in sequence according to the material upload queue, the first connection state between the mobile terminal and the cloud storage service platform is detected; then, in response to the first connection state being an abnormal connection state, the step of uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue is terminated and a first breakpoint is set, and the step of detecting the first connection state between the mobile terminal and the cloud storage service platform is returned; then, in response to the first connection state switching from the abnormal connection state to the normal connection state, the step of uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue is re-executed from the first breakpoint, thereby realizing the intelligent breakpoint resumption function without the need for manual intervention by the user, thereby improving the efficiency and stability of uploading the camera's captured materials.

[0070] In one embodiment, if Figure 5 As shown, the method includes steps 501 to 503.

[0071] Step 501, in response to the target upload object being a custom server, obtaining second login input information of the custom server, and performing identity authentication according to the second login input information to obtain a second identity authentication result;

[0072] Step 502, in response to the second identity authentication result being successful, detecting a connection status between the mobile terminal and the custom server;

[0073] Step 503, in response to the connection status being a normal connection status and performing a second configuration operation on the storage address of the custom server, determining a second target storage address according to the second configuration operation, and uploading each target to-be-uploaded material and the corresponding material file information to the second target storage address in sequence according to the material upload queue.

[0074] Among them, the second login input information includes the server address, server target port, server login account and server login password; the second identity authentication result includes verification success or verification failure; the connection status includes normal connection status or abnormal connection status.

[0075] Specifically, in response to the target upload object being a custom server, the mobile terminal 102 obtains second login input information of the custom server, and obtains a second identity authentication result after identity authentication based on the second login input information; then, in response to the second identity authentication result being a successful verification, the connection status between the mobile terminal and the custom server is detected; then, in response to the connection status being a normal connection status and a second configuration operation being performed on the storage address of the custom server, a second target storage address is determined based on the second configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the second target storage address in sequence according to the material upload queue, thereby improving the efficiency and convenience of uploading materials collected by the camera and broadening the scope of upload objects.

[0076] In a specific example, the method further includes: in response to the second identity authentication result being an authentication failure, outputting an identity authentication failure prompt message. The above are only specific examples, which can be flexibly set according to user needs in actual applications and are not limited here.

[0077] In a specific example, the method further includes:

[0078] When each target to-be-uploaded material and the corresponding material file information are sequentially uploaded to the second target storage address according to the material upload queue, detecting a second connection state between the mobile terminal and the custom service platform;

[0079] In response to the second connection state being an abnormal connection state, the step of sequentially uploading the target materials to be uploaded and the corresponding material file information to the second target storage address according to the material upload queue is terminated, a second breakpoint is set, and the process returns to the step of detecting the second connection state between the mobile terminal and the custom service platform;

[0080] In response to the second connection state switching from the abnormal connection state to the normal connection state, the step of uploading each target to-be-uploaded material and the corresponding material file information to the second target storage address in sequence according to the material upload queue is re-executed from the second breakpoint. The above is only a specific example, and it is flexibly set according to user needs in actual applications and is not limited here.

[0081] In this embodiment, in response to the target upload object being a custom server, second login input information of the custom server is obtained, and a second identity authentication result is obtained after identity authentication is performed based on the second login input information; then, in response to the second identity authentication result being a successful authentication, the connection status between the mobile terminal and the custom server is detected; then, in response to the connection status being a normal connection status and a second configuration operation being performed on the storage address of the custom server, a second target storage address is determined based on the second configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the second target storage address in sequence according to the material upload queue, thereby improving the efficiency and convenience of uploading materials collected by the camera and broadening the scope of upload objects.

[0082] In one embodiment, if Figure 6 As shown, the method also includes steps 601 to 604.

[0083] Step 601, in response to the target upload object being a local network storage device, searching for local network storage devices to be uploaded in the local area network.

[0084] Step 602, in response to performing a third selection operation on each local network storage device to be uploaded, determining a target local network storage device to be uploaded according to a result of the third selection operation;

[0085] Step 603, obtaining login credential information of the target local network storage device to be uploaded, and performing identity authentication according to the login credential information to obtain a third identity authentication result;

[0086] Step 604, in response to the third identity authentication result being successful and a third configuration operation being performed on the storage address of the target local network storage device to be uploaded, a third target storage address is determined according to the third configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the third target storage address in sequence according to the material upload queue.

[0087] The third identity authentication result includes a successful authentication or a failed authentication. Specifically, in response to the target upload object being a local network storage device, the mobile terminal 102 searches for each local network storage device to be uploaded in the local area network; then, in response to performing a third selection operation on each local network storage device to be uploaded, the target local network storage device to be uploaded is determined according to the result of the third selection operation; then, the login credential information of the target local network storage device to be uploaded is obtained, and the third identity authentication result is obtained after identity authentication is performed according to the login credential information; finally, in response to the third identity authentication result being a successful authentication and performing a third configuration operation on the storage address of the target local network storage device to be uploaded, the third target storage address is determined according to the third configuration operation, and each target to-be-uploaded material and the corresponding material file information are sequentially uploaded to the third target storage address according to the material upload queue, thereby improving the efficiency and convenience of uploading the camera's captured material and broadening the scope of the uploaded object.

[0088] In a specific example, the method further includes: in response to the third identity authentication result being an authentication failure, outputting an identity authentication failure prompt message. The above are only specific examples, which can be flexibly set according to user needs in actual applications and are not limited here.

[0089] In a specific example, the method further includes:

[0090] When each target to-be-uploaded material and the corresponding material file information are sequentially uploaded to the third target storage address according to the material upload queue, detecting a third connection state between the mobile terminal and the target to-be-uploaded local network storage device;

[0091] In response to the third connection state being an abnormal connection state, terminating the step of sequentially uploading each target to-be-uploaded material and the corresponding material file information to the third target storage address according to the material upload queue and setting a third breakpoint, and returning to the step of detecting the third connection state between the mobile terminal and the target to-be-uploaded local network storage device;

[0092] In response to the third connection state switching from the abnormal connection state to the normal connection state, the step of uploading each target to-be-uploaded material and the corresponding material file information to the third target storage address in sequence according to the material upload queue is re-executed from the third breakpoint. The above is only a specific example, and it is flexibly set according to user needs in actual applications and is not limited here.

[0093] In this embodiment, in response to the target upload object being a local network storage device, each local network storage device to be uploaded within the local area network is searched; then, in response to performing a third selection operation on each local network storage device to be uploaded, the target local network storage device to be uploaded is determined according to the result of the third selection operation; then, the login credential information of the target local network storage device to be uploaded is obtained, and a third identity authentication result is obtained after identity authentication is performed based on the login credential information; finally, in response to the third identity authentication result being successful and a third configuration operation is performed on the storage address of the target local network storage device to be uploaded, a third target storage address is determined according to the third configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the third target storage address in sequence according to the material upload queue, thereby improving the efficiency and convenience of uploading material collected by the camera and broadening the scope of upload objects.

[0094] In one embodiment, the method further comprises:

[0095] Record the material upload progress ratio and material upload error information.

[0096] The material upload error information includes file read error information, network connection timeout information and error code information returned by the target upload object. Specifically, the mobile terminal 102 records the material upload progress ratio and the material upload error information, which improves the visibility of the material upload progress and the query convenience of the material upload error information.

[0097] In this embodiment, the material upload progress ratio and the material upload error information are recorded, which improves the visibility of the material upload progress and the query convenience of the material upload error information.

[0098] In one embodiment, the method further comprises:

[0099] Determine whether the material upload queue has completed uploading based on the material upload progress ratio;

[0100] If the material upload queue has not completed uploading, an abnormal upload log is generated according to the material upload error information, and the re-upload operation is performed according to the abnormal upload log, and the process returns to the step of recording the material upload progress ratio and the material upload error information;

[0101] If the material upload queue has completed uploading, clear the material upload queue.

[0102] Specifically, the mobile terminal 102 determines whether the material upload queue has completed uploading according to the material upload progress ratio; then, if the material upload queue has not completed uploading, an abnormal upload log is generated according to the material upload error information, and a re-upload operation is performed according to the abnormal upload log, and the process returns to the step of recording the material upload progress ratio and the material upload error information; then, if the material upload queue has completed uploading, the material upload queue is cleared, thereby improving the data integrity and fault tolerance of the material upload.

[0103] In this embodiment, whether the material upload queue has completed uploading is determined according to the material upload progress ratio; then, if the material upload queue has not completed uploading, an abnormal upload log is generated according to the material upload error information, and a re-upload operation is performed according to the abnormal upload log, and the process returns to the step of recording the material upload progress ratio and the material upload error information; then, if the material upload queue has completed uploading, the material upload queue is cleared, thereby improving the data integrity and fault tolerance of the material upload.

[0104] It should be understood that although Figure 2-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0105] Second, as Figure 7 As shown, a device for uploading material captured by a camera is provided, which is applied to a mobile terminal using an IOS operating system. The device includes a data acquisition module 710, a material selection module 720, an object selection module 730, an identity authentication module 740 and a material upload module 750.

[0106] The data acquisition module 710 is used to respond to the completion of the initialization operation of the mobile terminal and the network connection status of the mobile terminal being in a successfully connected state, and to acquire and display the material collection directory information list of the camera of the mobile terminal; the material collection directory information list includes the material file information of each material to be uploaded; the material selection module 720 is used to respond to the first selection operation on each material to be uploaded, determine the corresponding target material to be uploaded according to the result of the first selection operation, and add each target material to be uploaded and the corresponding material file information to the material upload queue; the object selection module 730 is used to respond to the second selection operation on the upload object, and determine the target upload object according to the result of the second selection operation; wherein the target upload object includes the cloud storage service service platform, custom server or local network storage device; the identity authentication module 740 is used to respond to the target upload object being a cloud storage service platform, obtain the first login input information of the cloud storage service platform, and obtain the first identity authentication result after identity authentication based on the first login input information; the first login input information includes a user account and a user password; the first identity authentication result includes a successful authentication or a failed authentication; the material upload module 750 is used to respond to the first identity authentication result being a successful authentication and performing a first configuration operation on the storage address of the cloud storage service platform, determine the first target storage address according to the first configuration operation, and upload each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue.

[0107] In one embodiment, the material selection module 720 includes a material selection unit.

[0108] Among them, the material selection unit is used to perform data compression processing on each target material to be uploaded and the corresponding material file information to obtain the corresponding compressed target material to be uploaded and the corresponding compressed material file information; the material selection unit is used to perform data encryption processing on each compressed target material to be uploaded and the corresponding compressed material file information to obtain the corresponding encrypted target material to be uploaded and the corresponding encrypted material file information; the material selection unit is used to add each encrypted target material to be uploaded as the corresponding target material to be uploaded to the material upload queue, and determine the encrypted material file information corresponding to each encrypted target material to be uploaded as the material file information of the corresponding target material to be uploaded and add it to the material upload queue.

[0109] In one embodiment, the material upload module 750 is used to detect a first connection state between the mobile terminal and the cloud storage service platform when uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue; the first connection state includes a normal connection state or an abnormal connection state; the material upload module 750 is used to, in response to the first connection state being an abnormal connection state, terminate the step of uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue and set a first breakpoint, and return to the step of detecting the first connection state between the mobile terminal and the cloud storage service platform; the material upload module 750 is used to, in response to the first connection state switching from the abnormal connection state to the normal connection state, re-execute the step of uploading each target material to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue from the first breakpoint.

[0110] In one of the embodiments, the material upload module 750 is used to obtain second login input information of the custom server in response to the target upload object being a custom server, and obtain a second identity authentication result after identity authentication based on the second login input information; the second login input information includes the server address, the server target port, the server login account and the server login password; the second identity authentication result includes successful authentication or failed authentication; the material upload module 750 is used to detect the connection status between the mobile terminal and the custom server in response to the second identity authentication result being successful authentication; the connection status includes a normal connection status or an abnormal connection status; the material upload module 750 is used to determine the second target storage address according to the second configuration operation in response to the connection status being a normal connection status and performing a second configuration operation on the storage address of the custom server, and upload each target material to be uploaded and the corresponding material file information to the second target storage address in sequence according to the material upload queue.

[0111] In one embodiment, the material upload module 750 is used to search for each local network storage device to be uploaded within the local area network in response to the target upload object being a local network storage device; the material upload module 750 is used to determine the target local network storage device to be uploaded according to the result of the third selection operation in response to a third selection operation performed on each local network storage device to be uploaded; the material upload module 750 is used to obtain the login credential information of the target local network storage device to be uploaded, and obtain a third identity authentication result after performing identity authentication based on the login credential information; the third identity authentication result includes successful authentication or failed authentication; the material upload module 750 is used to determine the third target storage address according to the third configuration operation in response to the third identity authentication result being successful authentication and performing a third configuration operation on the storage address of the target local network storage device to be uploaded, and upload each target material to be uploaded and the corresponding material file information to the third target storage address in sequence according to the material upload queue.

[0112] In one embodiment, the material upload module 750 is used to record the material upload progress ratio and material upload error information; wherein the material upload error information includes file read error information, network connection timeout information and error code information returned by the target upload object;

[0113] In one of the embodiments, the material upload module 750 is used to determine whether the material upload queue has completed uploading based on the material upload progress ratio; the material upload module 750 is used to generate an abnormal upload log based on the material upload error information if the material upload queue has not completed uploading, and perform a re-upload operation based on the abnormal upload log, and return to the step of recording the material upload progress ratio and the material upload error information; the material upload module 750 is used to clear the material upload queue if the material upload queue has completed uploading.

[0114] The specific definition of the device for uploading the material collected by the camera can refer to the definition of the method for uploading the material collected by the camera mentioned above, which will not be repeated here. Each module in the above-mentioned device for uploading the material collected by the camera can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0115] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store a material acquisition directory information list of the camera of the mobile terminal. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for uploading camera acquisition materials is implemented.

[0116] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.

[0118] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.

[0119] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0120] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0121] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for uploading material collected by a camera, the method being applied to a mobile terminal using an IOS operating system, the method comprising: In response to the completion of the initialization operation of the mobile terminal and the network connection state of the mobile terminal being in a successfully connected state, obtaining and displaying a material collection directory information list of the camera of the mobile terminal; the material collection directory information list includes material file information of each material to be uploaded; In response to performing a first selection operation on each of the materials to be uploaded, determining a corresponding target material to be uploaded according to a result of the first selection operation, and adding each of the target materials to be uploaded and the corresponding material file information to a material upload queue; In response to performing a second selection operation on the upload object, determining a target upload object according to a result of the second selection operation; wherein the target upload object includes a cloud storage service platform, a custom server, or a local network storage device; In response to the target upload object being the cloud storage service platform, first login input information of the cloud storage service platform is obtained, and a first identity authentication result is obtained after identity authentication is performed according to the first login input information; the first login input information includes a user account and a user password; the first identity authentication result includes an authentication success or an authentication failure; In response to the first identity authentication result being successful and a first configuration operation being performed on the storage address of the cloud storage service platform, a first target storage address is determined according to the first configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the first target storage address in sequence according to the material upload queue.

2. The method according to claim 1, characterized in that The step of adding each of the target materials to be uploaded and the corresponding material file information to the material upload queue includes: Performing data compression processing on each of the target materials to be uploaded and the corresponding material file information to obtain the corresponding compressed target materials to be uploaded and the corresponding compressed material file information; Performing data encryption processing on each of the compressed target materials to be uploaded and the corresponding compressed material file information to obtain the corresponding encrypted target materials to be uploaded and the corresponding encrypted material file information; Each of the encrypted target materials to be uploaded is added to the material upload queue as the corresponding target material to be uploaded, and the encrypted material file information corresponding to each of the encrypted target materials to be uploaded is determined as the material file information of the corresponding target material to be uploaded and added to the material upload queue.

3. The method according to claim 1, characterized in that The method comprises: When uploading each of the target materials to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue, detecting a first connection state between the mobile terminal and the cloud storage service platform; the first connection state includes a normal connection state or an abnormal connection state; In response to the first connection state being the abnormal connection state, terminating the step of sequentially uploading each of the target materials to be uploaded and the corresponding material file information to the first target storage address according to the material upload queue and setting a first breakpoint, and returning to the step of detecting the first connection state between the mobile terminal and the cloud storage service platform; In response to the first connection state switching from the abnormal connection state to the normal connection state, the step of sequentially uploading each target material to be uploaded and the corresponding material file information to the first target storage address according to the material upload queue is re-executed from the first breakpoint.

4. The method according to claim 1, characterized in that: The method comprises: In response to the target upload object being the custom server, obtaining second login input information of the custom server, and performing identity authentication according to the second login input information to obtain a second identity authentication result; the second login input information includes a server address, a server target port, a server login account, and a server login password; the second identity authentication result includes the authentication success or the authentication failure; In response to the second identity authentication result being the authentication success, detecting a connection state between the mobile terminal and the custom server; the connection state includes a normal connection state or an abnormal connection state; In response to the connection status being the normal connection status and performing a second configuration operation on the storage address of the custom server, a second target storage address is determined according to the second configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the second target storage address in sequence according to the material upload queue.

5. The method according to claim 1, characterized in that The method further comprises: In response to the target upload object being the local network storage device, searching for each local network storage device to be uploaded in the local area network; In response to performing a third selection operation on each of the local network storage devices to be uploaded, determining a target local network storage device to be uploaded according to a result of the third selection operation; Obtaining the login credential information of the target local network storage device to be uploaded, and performing identity authentication according to the login credential information to obtain a third identity authentication result; the third identity authentication result includes the authentication success or the authentication failure; In response to the third identity authentication result being successful verification and a third configuration operation being performed on the storage address of the target local network storage device to be uploaded, a third target storage address is determined according to the third configuration operation, and each target material to be uploaded and the corresponding material file information are uploaded to the third target storage address in sequence according to the material upload queue.

6. The method according to claim 1, characterized in that The method further comprises: Record the material upload progress ratio and material upload error information; wherein the material upload error information includes file read error information, network connection timeout information and error code information returned by the target upload object.

7. The method according to claim 6, characterized in that The method further comprises: Determining whether the material upload queue has completed uploading according to the material upload progress ratio; If the material upload queue has not completed uploading, an abnormal upload log is generated according to the material upload error information, and a re-upload operation is performed according to the abnormal upload log, and the process returns to the step of recording the material upload progress ratio and the material upload error information; If the material upload queue completes uploading, clear the material upload queue.

8. A device for uploading material collected by a camera, characterized in that: The device is applied to a mobile terminal using an IOS operating system, and the device comprises: A data acquisition module, configured to acquire and display a material collection directory information list of a camera of the mobile terminal in response to completion of the initialization operation of the mobile terminal and the network connection state of the mobile terminal being in a successfully connected state; the material collection directory information list includes material file information of each material to be uploaded; A material selection module, configured to, in response to a first selection operation being performed on each of the materials to be uploaded, determine a corresponding target material to be uploaded according to a result of the first selection operation, and add each of the target materials to be uploaded and the corresponding material file information to a material upload queue; An object selection module, configured to, in response to a second selection operation on the upload object, determine a target upload object according to a result of the second selection operation; wherein the target upload object includes a cloud storage service platform, a custom server, or a local network storage device; an identity authentication module, configured to obtain first login input information of the cloud storage service platform in response to the target upload object being the cloud storage service platform, and obtain a first identity authentication result after performing identity authentication according to the first login input information; the first login input information includes a user account and a user password; and the first identity authentication result includes a successful authentication or a failed authentication; The material uploading module is used to respond to the first identity authentication result being the successful authentication and perform a first configuration operation on the storage address of the cloud storage service platform, determine a first target storage address according to the first configuration operation, and upload each of the target materials to be uploaded and the corresponding material file information to the first target storage address in sequence according to the material upload queue.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Material receiving method, device and system

    CN109214855A

  • Material uploading method and related equipment

    CN114780003A

  • Network camera data storage method, device and equipment and storage medium

    CN117271814A