Disclosure of Invention
In view of the above problems in the prior art, the present invention provides a method and an apparatus for determining a task execution result carrying image information, so that a task distribution system determines whether a task executor completes a task according to an image uploaded by the task executor after leaving a task execution location.
The invention provides a method for determining a task execution result carrying image information, which is applied to a client device side.
The method comprises the steps of responding to uploading operation of a target image used for reflecting an execution result of a target task, generating an identification character string of the target image according to image attribute information of the target image, determining whether the identification character string accords with file naming standards of a client side according to the identification character string, determining local storage naming information of task execution metadata of the target task on the client side according to the identification character string, wherein the task execution metadata comprise identification information of an executor of the target task, execution time information of the target task and execution position information of the target task, acquiring and storing the task execution metadata at an execution position of the target task, determining whether the task execution metadata are stored locally on the client side according to the storage naming information, and uploading the target image and the task execution metadata to a service side to request the service side if the task execution metadata are stored locally on the client side so as to determine the execution result of the target task according to the target image and the task execution metadata.
The method for determining the task execution result carrying the image information comprises the steps of responding to shooting operation related to the target task execution result, acquiring task execution metadata of the target task by using camera equipment, generating an identification character string of the target image according to image attribute information of the target image, determining storage naming information of the task execution metadata at the local side of the client according to the identification character string, and storing the task execution metadata at the local side of the client according to the storage naming information.
The method for determining the task execution result carrying the image information comprises the steps of utilizing a preset abstract algorithm to process image attribute information to obtain the identification character string, and determining the storage naming information of the task execution metadata of the target task at the client according to the identification character string, wherein the identification character string is used as a file name for storing the task execution metadata, or the identification character string is used as a file name for storing the task execution metadata.
The method for determining the task execution result carrying the image information comprises the steps of processing the image attribute information by a preset abstract algorithm to obtain the identification character string, wherein the image attribute information comprises first attribute information, the first attribute information comprises at least one of content of a target image and exif information of the target image, and the step of processing the image attribute information by the preset abstract algorithm to obtain the identification character string comprises the step of processing the first attribute information by the preset abstract algorithm to obtain the identification character string.
According to the method for determining the task execution result carrying the image information, the image attribute information further comprises second attribute information; the second attribute information comprises at least one of a storage path of the target image and identification information of a photographer of the target image, wherein the processing of the image attribute information by using a preset abstract algorithm to obtain the identification character string comprises the processing of the first attribute information and the second attribute information by using the preset abstract algorithm to obtain the identification character string.
According to the method for determining the task execution result carrying the image information provided by the invention, the task execution metadata is stored in the local client in a ciphertext.
The invention also provides a method for determining the task execution result carrying the image information, which is applied to the server, and comprises the following steps:
The method comprises the steps of responding to receiving a target image used for reflecting a target task execution result from a client and task execution metadata of the target task, determining the execution result of the target task according to the target image and the task execution metadata, wherein the task execution metadata comprise identification information of an executor of the target task, execution time information of the target task and execution position information of the target task, the task execution metadata are obtained from the client according to storage naming information of the task execution metadata on the local side of the client, the storage naming information is determined by the client according to an identification character string of the target image, and the identification character string is generated according to image attribute information of the target image.
The invention also provides a device for determining the task execution result carrying the image information, which comprises the following modules:
The system comprises a client device, a generation module, a first determination module and an uploading module, wherein the generation module is used for responding to the uploading operation of a target image used for reflecting the execution result of the target task, the identification character string of the target image is generated according to the image attribute information of the target image, the identification character string accords with the file naming specification of the client device, the first determination module is used for determining the local storage naming information of the task execution metadata of the target task at the client device according to the identification character string, the task execution metadata comprises the identification information of an executor of the target task, the execution time information of the target task and the execution position information of the target task, the task execution metadata is acquired and stored at the execution position of the target task, the second determination module is used for determining whether the task execution metadata is stored at the local client device according to the storage naming information, and the uploading module is used for uploading the target image and the task execution metadata to a server terminal if the task execution metadata is stored at the local client device so as to request the server terminal and the target image and the task execution result is determined according to the target image and the task execution metadata.
The device for determining the task execution result carrying the image information further comprises a camera module, an acquisition module, a second generation module, a third determination module and a storage module, wherein the camera module is used for acquiring a target image by utilizing camera equipment in response to a shooting operation related to the target task execution result, the acquisition module is used for acquiring task execution metadata of the target task, the second generation module is used for generating an identification character string of the target image according to image attribute information of the target image, the third determination module is used for determining storage naming information of the task execution metadata at the local side of the client equipment according to the identification character string, and the storage module is used for storing the task execution metadata at the local side of the client equipment according to the storage naming information.
According to the determination device of the task execution result carrying the image information provided by the invention, the task execution metadata is stored in a file or a special folder; the method comprises the steps of utilizing a preset abstract algorithm to process the image attribute information to obtain the identification character string, and determining the local storage naming information of the task execution metadata of the target task at the client according to the identification character string, wherein the identification character string is used as a file name for storing the task execution metadata or used as a folder name for storing the task execution metadata.
The device for determining the task execution result carrying the image information comprises first attribute information, wherein the first attribute information comprises at least one of content of a target image and exif information of the target image, the image attribute information is processed by a preset abstract algorithm to obtain the identification character string, and the first attribute information is processed by the preset abstract algorithm to obtain the identification character string.
The device for determining the task execution result carrying the image information comprises second attribute information, wherein the second attribute information comprises at least one of a storage path of the target image and identification information of a photographer of the target image, the image attribute information is processed by a preset abstract algorithm to obtain the identification character string, and the first attribute information and the second attribute information are processed by the preset abstract algorithm to obtain the identification character string.
According to the device for determining the task execution result carrying the image information provided by the invention, the task execution metadata is stored in the local client in the form of ciphertext.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the method for determining the task execution result carrying the image information when executing the computer program.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of determining a result of execution of a task carrying image information as described in any one of the above.
The method for determining the task execution result carrying the image information comprises the steps that when a user uploads a target image for reflecting the target task execution result, a client side generates an identification character string of the target image according to image attribute information of the target image, determines that task execution metadata of the target task are stored in the local of the client side according to the identification character string, determines whether the task execution metadata are stored in the local of the client side according to the stored naming information, and uploads the target image and the task execution metadata to a server side to request the server side if the task execution metadata are stored in the local of the client side, and determines the execution result of the target task according to the target image and the task execution metadata. Because the task execution metadata is acquired and stored at the execution position of the target task, the execution position and the execution time of the target task can be accurately reflected. Because the local storage naming information of the task execution metadata of the target task at the client device is determined according to the image attribute information of the target image, the target image of the target task and the task execution metadata can be accurately associated, so that a task executor can shoot the target image first, then upload the target image and the task execution metadata associated with the target image to the server under the condition of permission (such as good network condition), and the server can accurately determine the execution result of the target task according to the target image and the task execution metadata. .
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The method for determining the execution result of the task carrying the image information provided by the invention is described below with reference to fig. 1 to 5.
Fig. 1 is a schematic flow chart of a method for determining a task execution result carrying image information according to the present invention.
The method is applied to the client device, as shown in fig. 1, and comprises the following steps:
step 101, in response to an uploading operation of a target image for reflecting a target task execution result, generating an identification character string of the target image according to image attribute information of the target image.
The method for determining the task execution result provided by the invention can be applied to various scenes including but not limited to house intermediary business scenes, electric business scenes, financial business scenes and the like.
The target task may be a task assigned to a task executor by the task assignment system under different application scenarios. The target task execution result may include whether the task executor has completed the target task or an execution effect of the task executor executing the target task.
For example, in a house intermediation scenario, the target tasks are to collect the construction progress of a new house, the execution results are that the broker has checked the construction progress of the new house, and the target images are to be site photos of the new house.
For another example, in a financial business scenario, the target task is to conduct an in-field investigation and evaluation of the loan applicant's property, the execution result is to complete the property evaluation to obtain an evaluation result, and the target image is an in-field photograph of the loan applicant's property (e.g., house property, vehicle, etc.).
For another example, in the home administration service scenario, the target task is to clean the indoor environment, the execution result is whether the indoor environment is clean or not, and the target image is a field photograph of the indoor environment.
In the implementation process, a user can interact with the task allocation system through application software on the client equipment side, and the target image is uploaded to the system.
The image attribute information is information for describing the image characteristics. The image attribute information may include, but is not limited to, image content, exif (ExchangeableImage File Format ) information, an image storage path, and the like.
The identification string is used to identify the target image, which needs to follow the naming convention of the client-side file system.
In the implementation process, the identification character string of the target image can be generated according to the image attribute information of the target image in various modes. For example, the image attribute information may be processed by using a digest algorithm, a verification algorithm, an encryption algorithm, a custom algorithm, or the like, to obtain a digest or a verification value of the image attribute information, which is used as an identification string of the target image. For another example, a part of content (for example, shooting time information in exif information) of a preset length may be extracted from the image attribute information, and the part of content may be processed by using a preset encoding algorithm (for example, a hash function) to obtain an identification string of the target image.
Step 102, determining the local storage naming information of the task execution metadata of the target task at the client device according to the identification character string.
The task execution metadata comprises identification information of an executor of the target task, execution time information of the target task and execution position information of the target task, and the task execution metadata is acquired and stored at the execution position of the target task.
In the specific implementation process, the task execution metadata can be acquired and stored in various ways, and is not limited by the expression of the present specification. For example, an application on the client device side may set an acquisition control (e.g., button) for the task execution metadata. When the control is triggered, the application program can acquire the current time, the positioning information and the identification information of the task executor through the client equipment end, and the information is stored as the task execution metadata.
In some embodiments, a customized set of photo taking functions may be implemented within an application program on the client device side. As shown in fig. 4, after the shooting operation associated with the target task execution result is triggered, the application program acquires a target image by using the image capturing device, acquires task execution metadata of the target task, generates an identification string of the target image according to image attribute information of the target image by using the method in step 101, determines storage naming information of the task execution metadata at the local client according to the identification string, and stores the task execution metadata at the local client according to the storage naming information.
In the specific implementation process, when shooting is carried out, the application program can collect shooting time and position information during shooting at the same time, and in addition, the application program can also obtain the identification of the task executor through login information of the task executor, so that task execution metadata is obtained. "
In the implementation process, task execution metadata of the target task can be determined according to the identification character string, and naming information can be stored locally at the client device side.
The task execution metadata is stored in a file or a dedicated folder.
When the task execution metadata is stored as a single file, the name of the file is the storage naming information. If the time information, the position information and the task executor identifier in the task execution metadata are respectively stored as independent files and are placed in the same folder, the name of the folder is the storage naming information of the task execution metadata.
In some embodiments, to prevent unauthorized modification of task execution metadata by a task executor, the task execution metadata is stored locally at the client device in ciphertext.
Step 103, determining whether task execution metadata is stored locally at the client device according to the stored naming information.
In a specific implementation process, a file or a folder storing task execution metadata can be searched locally at the client device according to the storage naming information.
In the case where a file or folder storing task execution metadata exists locally at the client device side, it is determined that the task execution metadata is stored locally at the client device side.
In the case where there is no file or folder storing the task execution metadata locally at the client device side, it is determined that there is no task execution metadata stored locally at the client device side.
For an embodiment of determining that the task execution metadata is locally stored naming information on the client device, see relevant content in fig. 2, which is not described in detail herein.
Step 104, if the client side locally stores the task execution metadata, uploading the target image and the task execution metadata to the server side to request the server side, and determining an execution result of the target task according to the target image and the task execution metadata.
The task distribution system is arranged at the server side, and the client equipment side uploads the target image and the task execution metadata to the server side.
Regarding the server, detailed descriptions of the execution result of the target task are determined according to the target image and the task execution metadata, refer to relevant contents in fig. 3, and are not repeated here.
Fig. 2 is a flow chart of a method for determining that task execution metadata stores naming information locally at a client device according to the present invention. As shown in fig. 2, the method comprises the steps of:
step 201, processing the image attribute information by using a preset abstract algorithm to obtain an identification character string.
The preset Digest Algorithm may include, but is not limited to, message Digest Algorithm 5 (md5), RIPEMD Algorithm, etc.
In some embodiments, the image attribute information includes first attribute information including at least one of content of the target image, exif information of the target image. In this embodiment, the first attribute information may be processed by using a preset summary algorithm to obtain the identification string. For example, the content of the target image may be processed using the md5 algorithm to obtain the identification string. For another example, the exif information of the target image may be processed by using the md5 algorithm to obtain the identification string. For another example, the content of the target image and exif information may be processed by using an md5 algorithm to obtain the identification string.
In some embodiments, the image attribute information further includes second attribute information including at least one of a storage path of the target image, and identification information of a photographer of the target image. In this embodiment, the first attribute information and the second attribute information may be processed using a preset digest algorithm to obtain the identification string. For example, the identification character string may be obtained by processing the content of the target image, exif information of the target image, the storage path of the target image, and identification information of the photographer of the target image by using the md5 algorithm. For another example, the identification character string may be obtained by processing exif information of the target image, a storage path of the target image, and/or identification information of a photographer of the target image using an md5 algorithm. For another example, the content of the target image, the storage path of the target image, and/or the identification information of the photographer of the target image may be processed using an md5 algorithm to obtain the identification character string.
Step 202, using the identification character string as a file name of the storage task execution metadata, or using the identification character string as a folder name of the storage task execution metadata.
When the task execution metadata is stored as a single file, the identification character string is regarded as the name of the file. If the time information, the position information and the task executor identification in the task execution metadata are respectively stored as independent files and are placed in the same folder, the identification character string is used as the name of the folder.
In the embodiment provided by the invention, the image attribute information is processed by using a preset abstract algorithm to obtain the identification character string, the identification character string is used as the file name of the storage task execution metadata, or the identification character string is used as the file name of the storage task execution metadata. Because the target image is associated with the storage naming information of the task execution metadata through the identification character string, after the target image is shot and stored in the local client, the corresponding task execution metadata can be accurately found according to the image attribute information of the target image, and technical support is provided for a task executor to shoot a photo first and upload the photo later.
Fig. 3 is a second flowchart of a method for determining a task execution result carrying image information according to the present invention.
The method is applied to the server, as shown in fig. 3, and comprises the following steps:
Step 301, in response to receiving a target image reflecting a target task execution result and task execution metadata of a target task from a client, determining an execution result of the target task according to the target image and the task execution metadata.
The task execution metadata comprise identification information of an executor of the target task, execution time information of the target task and execution position information of the target task, wherein the task execution metadata are locally acquired from a client according to storage naming information of the task execution metadata at the client, the storage naming information is determined by the client according to an identification character string of a target image, and the identification character string is generated according to image attribute information of the target image.
For detailed descriptions of the target image, task execution metadata of the target task, storage naming information, identification strings of the target image, and image attribute information, refer to relevant contents in fig. 1 and 2, and are not described herein.
In the implementation process, the server side can determine the execution result of the target task according to the target image and the task execution metadata received from the client device. And under the condition that the task execution metadata is ciphertext, the server decrypts the task execution metadata according to a decryption mode corresponding to the encryption mode of the client, and determines an execution result of the target task based on the plaintext of the task execution metadata obtained by decryption.
The execution result of the target task includes whether the target task has been executed by the executor of the target task or the effect of the task executor executing the target task. For example, for a task that is collected on a new building construction progress, the execution of the target task results in the broker having reviewed the new building construction progress. For another example, the indoor environment is cleaned, and the execution result of the target task is whether the cleaned indoor environment is clean or not, which accords with the acceptance specification.
By way of example only, the server may determine whether the target image is captured by the task executor within a preset range of the actual execution position of the target task by comparing the execution position information of the target task in the task execution metadata to determine whether the target task is executed by the executor of the target task or whether the effect of the target task executed by the task executor is achieved by the target image.
The determining device for the task execution result carrying the image information, which is described below, and the determining method for the task execution result carrying the image information, which is described above, can be referred to correspondingly.
Fig. 5 is a schematic structural diagram of a determining device for a task execution result carrying image information according to the present invention. As shown in fig. 5, the apparatus 500 includes the following modules.
And the generating module 510 is configured to generate an identification string of the target image according to the image attribute information of the target image in response to an uploading operation of the target image for reflecting the execution result of the target task, where the identification string conforms to the file naming specification of the client.
The first determining module 520 is configured to determine, according to the identification string, task execution metadata of the target task, where the task execution metadata includes identification information of an executor of the target task, execution time information of the target task, and execution location information of the target task, and the task execution metadata is acquired and stored at an execution location of the target task.
A second determining module 530, configured to determine whether the task execution metadata is stored locally at the client device according to the storage naming information.
And an uploading module 540, configured to upload the target image and the task execution metadata to a server to request the server if the task execution metadata is stored locally in the client, and determine an execution result of the target task according to the target image and the task execution metadata.
In some embodiments, the apparatus 500 further comprises:
and the image pickup module is used for responding to the shooting operation related to the target task execution result and acquiring the target image by using the image pickup equipment.
And the acquisition module is used for acquiring the task execution metadata of the target task.
And the second generation module is used for generating an identification character string of the target image according to the image attribute information of the target image.
And the third determining module is used for determining the local storage naming information of the task execution metadata at the client equipment according to the identification character string.
And the storage module is used for storing the task execution metadata in the local of the client equipment according to the storage naming information.
In some embodiments, the task execution metadata is stored in a file or a special folder, the generating of the identification character string of the target image according to the image attribute information of the target image comprises processing the image attribute information by using a preset summary algorithm to obtain the identification character string, and the determining of the storage naming information of the task execution metadata of the target task on the client side according to the identification character string comprises using the identification character string as a file name for storing the task execution metadata or using the identification character string as a file name for storing the task execution metadata.
In some embodiments, the image attribute information comprises first attribute information, the first attribute information comprises at least one of content of the target image and exif information of the target image, and the processing the image attribute information by using a preset abstract algorithm to obtain the identification character string comprises processing the first attribute information by using the preset abstract algorithm to obtain the identification character string.
In some embodiments, the image attribute information further comprises second attribute information, wherein the second attribute information comprises at least one of a storage path of the target image and identification information of a photographer of the target image, and the processing the image attribute information by using a preset summary algorithm to obtain the identification character string comprises processing the first attribute information and the second attribute information by using the preset summary algorithm to obtain the identification character string.
In some embodiments, the task execution metadata is stored locally at the client device in ciphertext.
Fig. 6 illustrates a physical schematic diagram of an electronic device, which may include a processor 610, a communication interface Communications Interface, a memory 630, and a communication bus 640, as shown in fig. 6, where the processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call a logic instruction in the memory 630 to execute a method for determining a task execution result carrying image information, where the method includes generating an identification string of a target image according to image attribute information of the target image in response to an uploading operation of the target image for reflecting the target task execution result, where the identification string conforms to a file naming specification of the client, determining, according to the identification string, storage naming information of task execution metadata of the target task local to the client, where the task execution metadata includes identification information of an executor of the target task, execution time information of the target task, and execution location information of the target task, where the task execution metadata is acquired and stored at an execution location of the target task, determining, according to the storage naming information, whether the task execution metadata is stored locally at the client, if the task execution metadata is stored locally at the client, uploading the target image and the task execution metadata to a server, and determining, according to the target image and the target execution result, the task execution metadata is requested.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In another aspect, the invention further provides a computer program product, the computer program product comprises a computer program, the computer program can be stored on a non-transitory computer readable storage medium, when the computer program is executed by a processor, the computer program can execute the method for determining the task execution result carrying image information provided by the method, the method comprises the steps of responding to the uploading operation of a target image for reflecting the target task execution result, generating an identification character string of the target image according to the image attribute information of the target image, wherein the identification character string accords with the file naming specification of the client, determining that task execution metadata of the target task is stored in the client according to the identification character string, determining that the task execution metadata of the target task comprises identification information of an executor of the target task, execution time information of the target task and execution position information of the target task, determining whether the task execution metadata is acquired and stored in the execution position of the target task, determining whether the client has the local task execution metadata and the target task execution result, and requesting the client to execute the target image according to the storage naming information, and determining that the task execution metadata is executed in the client.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program being implemented when executed by a processor to perform a method for determining a task execution result carrying image information provided by the above methods, where the method includes generating, in response to an upload operation of a target image for reflecting a target task execution result, an identification string of the target image according to image attribute information of the target image, where the identification string conforms to a file naming specification of the client, determining, in accordance with the identification string, storage naming information of task execution metadata of the target task local to the client, where the task execution metadata includes identification information of an executor of the target task, execution time information of the target task, and execution location information of the target task, where the task execution metadata is acquired and stored at an execution location of the target task, determining, in accordance with the storage naming information, whether the task execution metadata is stored locally at the client, and if the client locally stores the task execution metadata and the task execution metadata, requesting the task execution result, and the task execution result are requested from the client.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the embodiments or the methods described in some parts of the embodiments.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.