Method, system, device and storage medium for preventing mistransmission and tampering of photos

By obtaining operation and maintenance task orders and positioning information in the target APP of the mobile terminal, and collecting and encrypting on-site photos when within the verification distance range, the problem of mistransmission and tampering of photos during the operation and maintenance process is solved, and the authenticity of the operation and maintenance work traces and the accuracy of the data of the environmental air quality monitoring station are ensured.

CN119128942BActive Publication Date: 2025-09-09CHINA NAT ENVIRONMENTAL MONITORING CENT +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411246328.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-09-09
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

During the operation and maintenance of ambient air quality monitoring sites, operation and maintenance personnel may mistransmit or tamper with on-site photos, affecting the accuracy and effectiveness of monitoring data.

Method used

Obtain operation and maintenance task orders and positioning information through the target APP on the mobile terminal, enable the photo collection function when within the verification distance range, generate and encrypt on-site photos, upload them to the operation and maintenance platform, and verify the unique code and hash value match of the photos before uploading to ensure the authenticity of the photos.

Benefits of technology

Effectively prevent the mistransmission and tampering of photos, ensure the authenticity of the traces left by operation and maintenance work, prevent human interference, and ensure the accuracy of monitoring data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119128942B_ABST
    Figure CN119128942B_ABST
Patent Text Reader

Abstract

The present application proposes a method, system, device and storage medium for preventing mistransmission and tampering of photos, which can avoid the mistransmission and tampering of on-site operation and maintenance photos of environmental air quality monitoring sites. The method includes: obtaining an operation and maintenance task work order of the environmental air quality monitoring site through a target APP; obtaining second positioning information of the location of the mobile terminal; when verifying that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range, turning on the photo collection function of the target APP; collecting and generating on-site operation and maintenance photos of the environmental air quality monitoring site through the target APP; performing hash value calculation on the on-site operation and maintenance photos to obtain a first photo hash value; using an encryption algorithm to generate encrypted ciphertext based on unique coding information and the first photo hash value; adding the encrypted ciphertext to the attribute information of the on-site operation and maintenance photos, obtaining and uploading the on-site operation and maintenance encrypted photos to the operation and maintenance platform through the target APP.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent environmental monitoring technology, and in particular to a method, system, device and storage medium for preventing mistransmission and tampering of photos. Background Art

[0002] The operation and maintenance of ambient air quality monitoring sites is crucial for ensuring the accuracy, timeliness, and effectiveness of monitoring data. With the rapid development of information technology, a terminal app and operation and maintenance platform have been introduced to improve the timeliness and standardization of operation and maintenance management, enabling online reporting and traceability. Operation and maintenance personnel can perform site operations and submit work orders based on task requirements. The terminal app also collects, stores, and uploads relevant operation and maintenance photos. Auditors then review the work based on the photos and the personnel's reports, promptly identifying any anomalies during the operation and maintenance process.

[0003] Site operations and maintenance are often conducted in remote locations with poor network conditions, requiring the frequent collection and uploading of numerous on-site photos. When collecting site photos, operators typically temporarily save the photos they take to the local photo albums on their personal devices. Upon completing their work and returning to offices or urban areas with better network conditions, they then upload the photos. Consequently, operators may mistakenly upload site photos or process collected photos before uploading them to conceal issues encountered during operations, impacting the quality of data collected by ambient air quality monitoring stations.

[0004] Therefore, it is necessary to propose a solution that can effectively prevent problems such as mistransmission and tampering of photos during the operation and maintenance of environmental air quality monitoring stations. Summary of the Invention

[0005] The present invention provides a method, system, device, and storage medium for preventing mistransmission and tampering of photos to solve the problems existing in related technologies. The technical solutions are as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for preventing mistransmission and tampering of photos, which is applied to a mobile terminal, wherein the mobile terminal has a target app installed. The method includes:

[0007] Obtaining, through the target APP, an operation and maintenance task work order for the ambient air quality monitoring site, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site;

[0008] Acquire second positioning information of the location of the mobile terminal;

[0009] When verifying that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold, enabling the photo acquisition function of the target APP;

[0010] Collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP;

[0011] Performing a hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value;

[0012] Generate an encrypted ciphertext based on the unique coding information and the hash value of the first photo using an encryption algorithm;

[0013] Adding the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo;

[0014] The on-site operation and maintenance encrypted photos are uploaded to the operation and maintenance platform through the target APP.

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

[0016] When it is verified that the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, the photo collection function is prohibited from being enabled.

[0017] In one embodiment, the photo collection function is embedded in the operation and maintenance task work order in the form of a component.

[0018] In one embodiment, collecting and generating on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP includes:

[0019] Collect on-site photos of the ambient air quality monitoring site through the target APP;

[0020] Obtaining the acquisition time information of the on-site photo, the unique coding information of the ambient air quality monitoring site, and the first positioning information;

[0021] The on-site operation and maintenance photo is generated by adopting a watermark embedding method according to the on-site photo, the acquisition time information, the unique coding information and the first positioning information.

[0022] In one embodiment, generating an encrypted ciphertext using an encryption algorithm according to the unique coding information and the hash value of the first photo includes:

[0023] Construct a photo string in the form of the unique coding information + the first photo hash value;

[0024] The photo character string is encrypted using the encryption algorithm to generate the encrypted ciphertext.

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

[0026] Before uploading the encrypted photos of on-site operation and maintenance to the operation and maintenance platform, obtaining attribute information of the encrypted photos of on-site operation and maintenance;

[0027] Decrypting the encrypted ciphertext in the attribute information using a decryption algorithm to obtain a decrypted plaintext;

[0028] Calculating a second photo hash value of the on-site operation and maintenance encrypted photo;

[0029] Obtain the unique coding information and determine the character length N of the unique coding information;

[0030] When it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo is not mistransmitted or tampered with, and the on-site operation and maintenance encrypted photo is uploaded to the operation and maintenance platform through the target APP.

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

[0032] When it is determined that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, a prompt message is output through the target APP to warn the on-site operation and maintenance that the encrypted photo has been mistransmitted and / or tampered with, and an alarm log is generated and uploaded to the operation and maintenance platform.

[0033] In a second aspect, embodiments of the present application further provide a system for preventing mistransmission and tampering of photos, the system comprising:

[0034] A task information module is used to obtain an operation and maintenance task work order of an ambient air quality monitoring site through a target APP installed on a mobile terminal, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site;

[0035] A positioning acquisition module, configured to obtain second positioning information of the location of the mobile terminal;

[0036] A restriction module is used to verify that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range, and then enable the photo collection function of the target app;

[0037] A photo generation module, configured to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP;

[0038] A hash calculation module, configured to perform hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value;

[0039] an encryption module, configured to generate an encrypted ciphertext based on the unique coding information and the hash value of the first photo using an encryption algorithm;

[0040] A ciphertext adding module, configured to add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain an on-site operation and maintenance encrypted photo;

[0041] The photo uploading module is used to upload the on-site operation and maintenance encrypted photos to the operation and maintenance platform through the target APP.

[0042] In one embodiment, the usage restriction module is further configured to:

[0043] When it is verified that the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, the photo collection function is prohibited from being enabled.

[0044] In one embodiment, the system further includes a photo acquisition module, which is embedded in the operation and maintenance task work order in the form of a component.

[0045] In one embodiment, when the photo generation module is used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP, it is specifically used to:

[0046] Calling the target APP through the photo collection module to collect on-site photos of the ambient air quality monitoring site;

[0047] Obtaining the acquisition time information of the on-site photo, the unique coding information of the ambient air quality monitoring site, and the first positioning information;

[0048] The on-site operation and maintenance photo is generated by adopting a watermark embedding method according to the on-site photo, the acquisition time information, the unique coding information and the first positioning information.

[0049] In one embodiment, when the encryption module is used to generate an encrypted ciphertext based on the unique coding information and the first photo hash value using an encryption algorithm, it is specifically used to:

[0050] Construct a photo string in the form of the unique coding information + the first photo hash value;

[0051] The photo character string is encrypted using the encryption algorithm to generate the encrypted ciphertext.

[0052] In one embodiment, the system further includes a decryption module and a plaintext matching module;

[0053] The decryption module is used to obtain attribute information of the encrypted on-site operation and maintenance photo before uploading it to the operation and maintenance platform; decrypt the encrypted ciphertext in the attribute information using a decryption algorithm to obtain decrypted plaintext;

[0054] The hash calculation module is further used to calculate a second photo hash value of the on-site operation and maintenance encrypted photo;

[0055] The plaintext matching module is used to obtain the unique coding information and determine the character length N of the unique coding information; when it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo is not mistransmitted or tampered with, and the target APP is called through the photo upload module to upload the on-site operation and maintenance encrypted photo to the operation and maintenance platform.

[0056] In one embodiment, the system further comprises an alarm module;

[0057] When the plaintext matching module determines that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, the target APP is called through the alarm module to output a prompt message for warning the on-site operation and maintenance encrypted photo that there is a mistransmission and / or tampering situation, and an alarm log is generated and uploaded to the operation and maintenance platform.

[0058] In a third aspect, an embodiment of the present application further provides a computer device comprising: a memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement a method in any one of the above-mentioned embodiments, wherein the memory and the processor communicate with each other through an internal connection path.

[0059] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is implemented.

[0060] The advantages or beneficial effects of the above technical solution include at least:

[0061] This application can take into account the needs of operation and maintenance personnel to collect operation and maintenance photos in an environment with poor network conditions at the environmental air quality monitoring site, and temporarily store on-site operation and maintenance photos of the environmental air quality monitoring site. At the same time, it avoids the situation of mistransmission and tampering of photos during the on-site operation and maintenance of the environmental air quality monitoring site, ensures the authenticity of the traces left by the operation and maintenance work of the environmental air quality monitoring site, and effectively prevents the occurrence of human interference.

[0062] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in this application and should not be construed as limiting the scope of this application.

[0064] Figure 1 This is a flowchart illustrating a method for preventing mistransmission and tampering of photos provided in an embodiment of the present application;

[0065] Figure 2 This is a flowchart illustrating another method for preventing mistransmission and tampering of photos provided in an embodiment of the present application;

[0066] Figure 3 A structural block diagram of a system for preventing mistransmission and tampering of photos provided in an embodiment of the present application;

[0067] Figure 4 This is an example diagram of an operation and maintenance task work order provided in an embodiment of the present application;

[0068] Figure 5 This is a structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] Hereinafter, only certain exemplary embodiments are briefly described. As will be appreciated by those skilled in the art, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and description are to be regarded as illustrative in nature and not restrictive.

[0070] Figure 1The flowchart of the method for preventing mistransmission and tampering of photos according to an embodiment of the present application is shown. The method can be used in a mobile terminal, that is, the execution subject of the method can be a mobile terminal, wherein the mobile terminal can be installed with a target APP, and the target APP can be an APP dedicated to collecting and uploading site operation and maintenance photos. Figure 1 As shown, the method may include the following steps:

[0071] S101. Obtain the operation and maintenance task order of the ambient air quality monitoring site through the target APP.

[0072] In one embodiment, the operation and maintenance task work order may include, but is not limited to: unique coding information and first positioning information of the ambient air quality monitoring site.

[0073] As an example, a mobile terminal can obtain an operation and maintenance task work order for an ambient air quality monitoring station dispatched by the central end through the target app. The operation and maintenance task work order can be preset with operation and maintenance task information, as well as the unique coding information and first positioning information of the ambient air quality monitoring station. The user can go to the ambient air quality monitoring station to carry out operation and maintenance and collect operation and maintenance photos based on the operation and maintenance task information in the operation and maintenance task work order.

[0074] In one embodiment, the unique code information of the ambient air quality monitoring station can be set as a fixed-length code according to coding rules, such as a 9-digit code. The administrative district code plus an additional three-digit code can be used to ensure the uniqueness of the ambient air quality monitoring station code and the standardization and convenience of management. For example, the unique code information of the ambient air quality monitoring station can be 110000001.

[0075] In one embodiment, the first positioning information may be GPS positioning information, which may adopt the WGS-84 coordinate system. The first positioning information may include longitude and latitude coordinate values, and the precision of the longitude and latitude coordinate values ​​may be set to 4 decimal places. For example, the first positioning information may be expressed as (40.0302, 116.4085).

[0076] S102: Acquire second positioning information of the mobile terminal.

[0077] In one embodiment, the second positioning information of the mobile terminal can be obtained before the target APP starts collecting on-site operation and maintenance photos. For example, the second positioning information of the mobile terminal can be obtained by the target APP using the positioning function of the mobile terminal.

[0078] In one embodiment, the second positioning information may be GPS positioning information, which may adopt the WGS-84 coordinate system. The second positioning information may include longitude and latitude coordinate values, and the precision of the longitude and latitude coordinate values ​​may be set to 4 decimal places. For example, the second positioning information may be expressed as (40.0300, 116.4084).

[0079] S103: Verify whether the distance difference between the first positioning information and the second positioning information is within a preset distance threshold. If the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold, execute step S104; otherwise, execute step S105.

[0080] In one embodiment, when the distance difference between the first positioning information and the second positioning information is not within a preset distance threshold range, it indicates that the distance range between the user and the ambient air quality monitoring site is not within the permitted range. In this case, step S104 is executed and the user is not allowed to collect operation and maintenance photos. When the distance difference between the first positioning information and the second positioning information is within the preset distance threshold range, it indicates that the distance range between the user and the ambient air quality monitoring site is within the permitted range. In this case, step S105 can be executed and the user is allowed to collect operation and maintenance photos.

[0081] During specific implementation, the preset distance threshold range can be set according to actual needs, and the embodiments of the present application do not limit this.

[0082] S104: Disable the photo collection function of the target APP.

[0083] S105: Enable the photo collection function of the target APP.

[0084] In one embodiment, the photo collection function of the target APP can be embedded in the operation and maintenance task work order in the form of a component.

[0085] In an embodiment of the present application, by executing steps S103-S105, it is possible to ensure that the user goes to the environmental air quality monitoring site to carry out operation and maintenance and collect operation and maintenance photos before collecting photos through the target APP. This can ensure that the on-site operation and maintenance photos collected through the target APP are of the environmental air quality monitoring site specified in the operation and maintenance task work order, thereby avoiding human interference and falsification from the source.

[0086] S106. Collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP.

[0087] In one embodiment, the implementation process of step S106 may include the following steps:

[0088] S1061. Collect on-site photos of the ambient air quality monitoring site through the target APP.

[0089] S1062. Obtain the acquisition time information of the on-site photo and the unique coding information and first positioning information of the ambient air quality monitoring site.

[0090] S1063: Generate the on-site operation and maintenance photo by using a watermark embedding method based on the on-site photo and its acquisition time information, the unique coding information, and the first positioning information.

[0091] It can be understood that the on-site operation and maintenance photo contains watermark information such as the acquisition time information, the unique coding information, and the first positioning information.

[0092] In an embodiment of the present application, by executing steps S1061 to S1063, the on-site operation and maintenance photos can be prevented from being tampered with while the work order reviewers can quickly understand the detailed information of the on-site operation and maintenance photos.

[0093] S107: Calculate a hash value for the on-site operation and maintenance photo to obtain a first photo hash value.

[0094] During specific implementation, the existing hash calculation method can be used to calculate the hash value of the on-site operation and maintenance photos, and this embodiment of the present application does not limit this.

[0095] S108. Generate an encrypted ciphertext using an encryption algorithm based on the unique coding information and the hash value of the first photo.

[0096] In one embodiment, a photo string can be constructed according to the unique coding information and the first photo hash value in the form of unique coding information + first photo hash value; and then the photo string can be encrypted using an encryption algorithm to generate the encrypted ciphertext.

[0097] For example, it is assumed that the unique encoding information and the hash value of the first photo are as follows:

[0098] Unique coding information: 110000001;

[0099] First photo hash value: 24254c6607d1fc21d9159f4ed4d6e505;

[0100] The constructed photo string is: 11000000124254c6607d1fc21d9159f4ed4d6e505;

[0101] Assume the encryption key is:

[0102] 5aSn5a626KaB5rOo5oSP6Lqr5L2T77yM5LiN6KaB54as5aSc5YaZ5Luj56CB;

[0103] Then encrypt the photo string and generate the encrypted ciphertext as follows:

[0104] Iju1qBo6ipCQ7Va+J3eEC9t9Zypj2yPJJ+SP1a+3bi61uSpBXh0nOvkdQTEXAI j7.

[0105] As an example, the encryption algorithm may be a DES symmetric encryption algorithm.

[0106] S109: Add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo.

[0107] In one implementation, the encrypted ciphertext may be used as a title in the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo.

[0108] In one embodiment, the on-site operation and maintenance encrypted photo can be stored in a mobile terminal.

[0109] S110. Upload the encrypted photos of on-site operation and maintenance to the operation and maintenance platform through the target APP.

[0110] In one embodiment, the photo upload function of the target APP can be embedded in the operation and maintenance task work order in the form of a component to facilitate the selection and upload of photos stored in the mobile terminal.

[0111] In an embodiment of the present application, by installing the target APP in the mobile terminal (i.e., the user device), based on the unique coding information of the environmental air quality monitoring site in the operation and maintenance task work order distributed by the central end, the first positioning and the first photo hash value of the on-site operation and maintenance photos of the environmental air quality monitoring site, by verifying whether the distance difference between the mobile terminal and the environmental air quality monitoring site is within the preset distance threshold range, and by encrypting the on-site operation and maintenance photos to generate on-site operation and maintenance encrypted photos, it is possible to prevent the mistransmission and tampering of photos on the mobile terminal (i.e., the user end), while taking into account the needs of operation and maintenance personnel to carry out operation and maintenance photo collection work in an environment with poor network conditions at the environmental air quality monitoring site, and temporarily store on-site operation and maintenance photos, while avoiding the mistransmission and tampering of photos in on-site operation and maintenance, ensuring the authenticity of the operation and maintenance work traces of the environmental air quality monitoring site, and effectively preventing the occurrence of human interference.

[0112] In one applicable scenario of this application, combined with Figure 1 and Figure 2As shown, the method for preventing mistransmission and tampering of photos provided in the embodiment of the present application may also include the following steps:

[0113] S111. Before uploading the encrypted photos of on-site operation and maintenance to the operation and maintenance platform, obtain attribute information of the encrypted photos of on-site operation and maintenance.

[0114] S112. Decrypt the encrypted ciphertext in the attribute information using a decryption algorithm to obtain a decrypted plaintext.

[0115] As an example, the encrypted ciphertext in the attribute information can be decrypted using the DES symmetric encryption algorithm to obtain the decrypted plaintext. For example, the decrypted plaintext obtained can be represented as: 11000000124254c6607d1fc21d9159f4ed4d6e505, which is the photo string in the above example.

[0116] S113. Calculate a second photo hash value of the on-site operation and maintenance encrypted photo.

[0117] During specific implementation, the existing hash calculation method can be used to calculate the hash value of the on-site operation and maintenance encrypted photos, and this embodiment of the present application does not limit this.

[0118] In one embodiment, the second photo hash value is the same as the first photo hash value.

[0119] S114. Obtain unique coding information of the ambient air quality monitoring site and determine the character length N of the unique coding information.

[0120] As an example, when the unique coding information of the ambient air quality monitoring site is 110000001, it can be determined that the character length N of the unique coding information is 9.

[0121] S115. Determine whether the decrypted plaintext matches the second photo's hash value and unique encoding information. If it is determined that the first N characters in the decrypted plaintext match the unique encoding information, and the characters from the N+1th character to the last character in the decrypted plaintext match the second photo's hash value, execute step S116. Alternatively, if it is determined that the first N characters in the decrypted plaintext do not match the unique encoding information, and / or the characters from the N+1th character to the last character in the decrypted plaintext do not match the second photo's hash value, execute step S117.

[0122] In one embodiment, the following two judgment processes may be performed simultaneously or in a corresponding order:

[0123] The first judgment process: match the first N characters in the decrypted plaintext with the unique encoding information to determine whether the two are consistent.

[0124] In the first judgment process, a string extraction function may be called to extract the first N characters in the decrypted plaintext as first extracted characters, and then the first extracted characters are matched with the unique encoding information to determine whether the two are consistent.

[0125] The second judgment process: match the N+1th character to the last character in the decrypted plaintext with the hash value of the second photo to determine whether the two are consistent.

[0126] In the second judgment process, the string extraction function is called to extract the N+1th character to the last character in the decrypted plaintext as the second extracted character, and then the second extracted character is matched with the hash value of the second photo to determine whether the two are consistent.

[0127] After the above two judgment processes, if it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, step S116 can be executed.

[0128] After the above two judgment processes, if only the first N characters in the decrypted plaintext do not match the unique encoding information, it is determined that the on-site operation and maintenance encrypted photo was mistransmitted, and step S117 can be executed. In this case, the prompt information output by the target app is used to warn that the on-site operation and maintenance encrypted photo has been mistransmitted.

[0129] After the above two judgment processes, if only the characters from the N+1th to the last character in the decrypted plaintext do not match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo has been tampered with. In this case, step S117 can be executed. In this case, the prompt information output by the target app is used to warn that the on-site operation and maintenance encrypted photo has been tampered with.

[0130] After the above two judgment processes, if it is determined that the first N characters in the decrypted plaintext do not match the unique encoding information, and the characters from the N+1th to the last in the decrypted plaintext do not match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo has been both mistransmitted and tampered with. In this case, step S117 can be executed. In this case, the prompt information output by the target app is used to warn that the on-site operation and maintenance encrypted photo has been mistransmitted and tampered with.

[0131] S116. Determine that the encrypted photos of on-site operation and maintenance are not mis-transmitted or tampered with, and upload the encrypted photos of on-site operation and maintenance to the operation and maintenance platform through the target APP.

[0132] S117. Outputting a prompt message through the target APP to warn the on-site operation and maintenance that the encrypted photo has been mis-transmitted and / or tampered with, and generating an alarm log to upload to the operation and maintenance platform.

[0133] As an example, in step S117, uploading of the encrypted on-site operation and maintenance photo to the operation and maintenance platform may also be prohibited.

[0134] In an embodiment of the present application, by executing steps S111-S117, the attribute information of the on-site operation and maintenance encrypted photo can be verified with the unique coding information of the environmental air quality monitoring site and the matching of the second photo hash value of the on-site operation and maintenance encrypted photo, so that when the on-site operation and maintenance photos are mistransmitted and / or tampered with on the user side, the user can be promptly prompted, further avoiding the mistransmission and tampering of photos in the on-site operation and maintenance of the environmental air quality monitoring site, ensuring the authenticity of the operation and maintenance work traces of the environmental air quality monitoring site, and effectively preventing the occurrence of human interference.

[0135] In summary, the method for preventing mistransmission and tampering of photos provided in the embodiments of the present application can take into account the needs of operation and maintenance personnel to carry out operation and maintenance photo collection work in an environment with poor network conditions at the environmental air quality monitoring site, and temporarily store on-site operation and maintenance photos of the environmental air quality monitoring site. At the same time, it avoids the mistransmission and tampering of photos in the on-site operation and maintenance of the environmental air quality monitoring site, ensures the authenticity of the traces left by the operation and maintenance work of the environmental air quality monitoring site, and effectively prevents the occurrence of human interference.

[0136] Figure 3 FIG. 1 shows a structural block diagram of a system for preventing mistransmission and tampering of photos according to an embodiment of the present application. Figure 3 As shown, the system may include:

[0137] The task information module 201 is used to obtain an operation and maintenance task work order of the ambient air quality monitoring site through a target APP installed on the mobile terminal, where the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site;

[0138] The positioning acquisition module 202 is used to obtain second positioning information of the mobile terminal;

[0139] The use restriction module 203 is configured to enable a photo acquisition function of the target APP when verifying that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold range;

[0140] A photo generation module 204 is used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP;

[0141] A hash calculation module 205 is used to perform hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value;

[0142] An encryption module 206 is configured to generate an encrypted ciphertext based on the unique coding information and the hash value of the first photo using an encryption algorithm;

[0143] The ciphertext adding module 207 is used to add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo;

[0144] The photo uploading module 208 is used to upload the encrypted photos of on-site operation and maintenance to the operation and maintenance platform through the target APP.

[0145] In one embodiment, the usage restriction module 203 is further configured to:

[0146] When it is verified that the distance difference between the first positioning information and the second positioning information is not within a preset distance threshold range, the photo collection function is prohibited from being enabled.

[0147] In one embodiment, Figure 4 As shown, the system further includes a photo collection module 209, which is embedded in the operation and maintenance task work order in the form of a component.

[0148] In one embodiment, when the photo generation module 204 is used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP, it is specifically used to:

[0149] The target APP is called by the photo collection module 209 to collect on-site photos of the ambient air quality monitoring site;

[0150] Obtain the collection time information of the on-site photos and the unique coding information and first positioning information of the ambient air quality monitoring site;

[0151] Using watermark embedding, on-site operation and maintenance photos are generated based on on-site photos, collection time information, unique coding information and first positioning information.

[0152] In one embodiment, when the encryption module 206 is used to generate the encrypted ciphertext based on the unique coding information and the hash value of the first photo using the encryption algorithm, it is specifically used to:

[0153] Construct a photo string using the unique encoding information + the hash value of the first photo;

[0154] The photo character string is encrypted using an encryption algorithm to generate an encrypted ciphertext.

[0155] In one embodiment, the system further includes a decryption module 210 and a plaintext matching module 211;

[0156] The decryption module 210 is used to obtain attribute information of the encrypted on-site operation and maintenance photos before uploading them to the operation and maintenance platform; decrypt the encrypted ciphertext in the attribute information using a decryption algorithm to obtain decrypted plaintext;

[0157] The hash calculation module 205 is further used to calculate a second photo hash value of the on-site operation and maintenance encrypted photo;

[0158] The plaintext matching module 211 is used to obtain unique coding information and determine the character length N of the unique coding information; when it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo is not mistransmitted or tampered with, and the target APP is called through the photo upload module 208 to upload the on-site operation and maintenance encrypted photo to the operation and maintenance platform.

[0159] In one embodiment, the system further includes an alarm module 212;

[0160] When the plaintext matching module 211 determines that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, the alarm module 212 calls the target APP to output a prompt message to warn the on-site operation and maintenance that the encrypted photos are mistransmitted and / or tampered with, and generates an alarm log and uploads it to the operation and maintenance platform.

[0161] The functions of each module in the system for preventing mistransmission and tampering of photos in the embodiment of the present application can be found in the corresponding description in the above method and will not be repeated here.

[0162] Figure 5 FIG. 1 shows a block diagram of a computer device according to an embodiment of the present application. Figure 5 As shown, the computer device includes: a memory 301 and a processor 302. The memory 301 stores instructions, which are loaded and executed by the processor 302 to implement the method for preventing mistransmission and tampering of photos in the above embodiment. The number of memory 301 and processor 302 can be one or more.

[0163] The computer device also includes:

[0164] The communication interface 303 is used to communicate with external devices and perform data exchange transmission.

[0165] If the memory 301, processor 302, and communication interface 303 are implemented independently, the memory 301, processor 302, and communication interface 303 can be connected to each other via a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0166] Optionally, in a specific implementation, if the memory 301, the processor 302 and the communication interface 303 are integrated on a chip, the memory 301, the processor 302 and the communication interface 303 can communicate with each other through an internal interface.

[0167] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method provided in the embodiment of the present application is implemented.

[0168] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in a memory, so that a communication device equipped with the chip executes the method provided in the embodiment of the present application.

[0169] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory. The input interface, the output interface, the processor and the memory are connected through an internal connection path. The processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.

[0170] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.

[0171] Furthermore, optionally, the above-mentioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory may include random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).

[0172] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.

[0173] In the description of this specification, the reference terms "one embodiment," "some embodiments," "example," "specific example," or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described may be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification, as well as features of different embodiments or examples, unless they are mutually inconsistent.

[0174] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the description of this application, "plurality" means two or more, unless otherwise specifically defined.

[0175] Any process or method description in a flow chart or otherwise described herein can be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process. The scope of the preferred embodiments of the present application includes additional implementations in which the functions may be performed in a different order than shown or discussed, including in a substantially simultaneous manner or in a reverse order depending on the functions involved.

[0176] The logic and / or steps represented in the flowchart or otherwise described herein may be considered, for example, as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device).

[0177] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0178] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the aforementioned integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, or an optical disk, etc.

[0179] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A method for preventing mistransmission and tampering of photos, characterized in that: Applied to a mobile terminal, the mobile terminal having a target APP installed, the method includes: Obtaining, through the target APP, an operation and maintenance task work order for the ambient air quality monitoring site, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site; Acquire second positioning information of the location of the mobile terminal; When verifying that the distance difference between the first positioning information and the second positioning information is within a preset distance threshold, enabling the photo collection function of the target APP, allowing the user to carry out operation and maintenance photo collection; Collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP; Performing a hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value; Generate an encrypted ciphertext based on the unique coding information and the hash value of the first photo using an encryption algorithm; Adding the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain the on-site operation and maintenance encrypted photo; Uploading the encrypted on-site operation and maintenance photos to the operation and maintenance platform through the target APP; The on-site operation and maintenance photos of the ambient air quality monitoring site collected and generated by the target APP include: Collect on-site photos of the ambient air quality monitoring site through the target APP; Obtaining the acquisition time information of the on-site photo, the unique coding information of the ambient air quality monitoring site, and the first positioning information; Generate the on-site operation and maintenance photo by using a watermark embedding method based on the on-site photo, the acquisition time information, the unique coding information, and the first positioning information; The method further comprises: When it is verified that the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, the photo collection function is prohibited from being enabled, and the user is not allowed to carry out operation and maintenance photo collection work.

2. The method according to claim 1, characterized in that The photo collection function is embedded in the operation and maintenance task work order in the form of a component.

3. The method according to claim 1 or 2, characterized in that Generating an encrypted ciphertext using an encryption algorithm according to the unique coding information and the hash value of the first photo includes: Construct a photo string in the form of the unique coding information + the first photo hash value; The photo character string is encrypted using the encryption algorithm to generate the encrypted ciphertext.

4. The method according to claim 3, wherein The method further comprises: Before uploading the encrypted photos of on-site operation and maintenance to the operation and maintenance platform, obtaining attribute information of the encrypted photos of on-site operation and maintenance; Decrypting the encrypted ciphertext in the attribute information using a decryption algorithm to obtain a decrypted plaintext; Calculating a second photo hash value of the on-site operation and maintenance encrypted photo; Obtain the unique coding information and determine the character length N of the unique coding information; When it is determined that the first N characters in the decrypted plaintext match the unique coding information, and the N+1th character to the last character in the decrypted plaintext match the hash value of the second photo, it is determined that the on-site operation and maintenance encrypted photo is not mistransmitted or tampered with, and the on-site operation and maintenance encrypted photo is uploaded to the operation and maintenance platform through the target APP.

5. The method according to claim 4, characterized in that The method further comprises: When it is determined that the first N characters in the decrypted plaintext do not match the unique coding information, and / or when the N+1th character to the last character in the decrypted plaintext do not match the hash value of the second photo, a prompt message is output through the target APP to warn the on-site operation and maintenance that the encrypted photo has been mistransmitted and / or tampered with, and an alarm log is generated and uploaded to the operation and maintenance platform.

6. A system for preventing mistransmission and tampering of photos, characterized in that: The system comprises: A task information module is used to obtain an operation and maintenance task work order of an ambient air quality monitoring site through a target APP installed on a mobile terminal, wherein the operation and maintenance task work order includes unique coding information and first positioning information of the ambient air quality monitoring site; A positioning acquisition module, configured to obtain second positioning information of the location of the mobile terminal; A restriction module is used to verify that when the distance difference between the first positioning information and the second positioning information is within a preset distance threshold, the photo collection function of the target app is enabled, allowing the user to carry out operation and maintenance photo collection; A photo generation module, configured to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP; A hash calculation module, configured to perform hash value calculation on the on-site operation and maintenance photo to obtain a first photo hash value; an encryption module, configured to generate an encrypted ciphertext based on the unique coding information and the hash value of the first photo using an encryption algorithm; A ciphertext adding module, configured to add the encrypted ciphertext to the attribute information of the on-site operation and maintenance photo to obtain an on-site operation and maintenance encrypted photo; A photo uploading module is used to upload the encrypted photos of on-site operation and maintenance to the operation and maintenance platform through the target APP; Among them, when the photo generation module is used to collect and generate on-site operation and maintenance photos of the ambient air quality monitoring site through the target APP, it is specifically used to: collect on-site photos of the ambient air quality monitoring site through the target APP; obtain the collection time information of the on-site photos and the unique coding information and the first positioning information of the ambient air quality monitoring site; use a watermark embedding method to generate the on-site operation and maintenance photos based on the on-site photos, the collection time information, the unique coding information and the first positioning information; The usage restriction module is further configured to: when verifying that the distance difference between the first positioning information and the second positioning information is not within the preset distance threshold range, prohibit the photo collection function from being enabled, and prohibit the user from carrying out operation and maintenance photo collection work.

7. A computer device, characterized in that: include: A memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is run on a computer, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Urban man-machine perception interaction system and method based on big data

    CN110287359A

  • Picture-based virtual resource transmission method and apparatus, and program product

    CN118413347A