Watermark camera system and method capable of verifying KML geographic data
Generating verifiable KML geographic data through hashing and blockchain technology solves the problem of easy tampering and process fragmentation of photo geographic information, and realizes high-reliability KML data generation, which is suitable for a variety of application scenarios.
Patent Information
- Application Number
- CN202510829558.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-06-20
AI Technical Summary
In the prior art, the geographical location information of the photos is easily tampered with, and the verification process is fragmented, making it difficult to generate high-reliability KML geographical data, and cannot meet the high requirements of application scenarios such as on-site investigation, asset verification and insurance loss determination.
Hash algorithm and blockchain technology are used to generate verifiable KML geographic data, superimpose watermarks through the image acquisition module, calculate hash value by the data processing module, save proof of blockchain interaction module, and verify KML generation module to ensure that the data is not tampered with and generate KML files.
It improves the authenticity and integrity of photo geolocation information, simplifies the process from taking photos to generating KML, is suitable for a variety of high-confidence scenarios, and enhances the adaptability and scalability of the system.
Smart Images

Figure CN120358311A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of camera technology, and particularly relates to a watermark camera system and method for generating verifiable KML geographic data based on hashing and blockchain. Background Art
[0002] Currently, there are various ways to record and share geographical location information. Photos taken by smartphones or cameras usually record information such as shooting time and GPS coordinates in EXIF metadata. In various scenarios such as surveying and mapping, there are various "watermark camera" applications that can directly superimpose information such as time and location on the photo image as visible watermarks. There are also many tools or applications that can extract GPS information from photos to generate geographic data files in formats such as KML or GPX for display on maps or recording trajectories. In addition, hashing algorithms are widely used to verify data integrity, and blockchain technology is used for data deposit and timestamp services to prove that a certain data exists at a specific time point and has not been tampered with. Some independent blockchain deposit services or applications allow users to upload files (including photos) to obtain deposit certificates.
[0003] However, the existing technologies have the following defects: 1. Information is easily tampered with and has low credibility: Whether it is photo EXIF metadata or visible photo watermarks, they are relatively easy to be modified by technical means, resulting in the authenticity of time and location information not being guaranteed. When this information is used to generate geographic data such as KML, its credibility is also correspondingly reduced, making it difficult to be used as strong evidence.
[0004] 2. Verification process is fragmented and operation is cumbersome: Although independent blockchain services can be used to deposit photos, this usually occurs after the photos are taken, and the operation process is separated from photo shooting and geographic data generation. Users need to manually upload and obtain deposit information, and then separately extract the geographical location to generate KML. The whole process is cumbersome, and it is difficult to ensure a strong correlation between the deposit link and the original shooting time and location.
[0005] 3. Lack of an end-to-end trusted geographic data generation solution: The existing technologies lack an integrated solution that ensures the authenticity of time and location information from the photo shooting source and seamlessly transfers this credibility to the finally generated geographic data (such as KML). Especially for application scenarios that require highly credible geographical information (such as on-site investigation, asset verification, insurance loss assessment, environmental monitoring, evidence collection, etc.), the existing methods are difficult to meet the requirements.
[0006] It can be seen that the existing watermark camera systems can no longer meet the high requirements of the current and future fields for watermark technology means, and how to improve the security of watermark technology means has become a key point. Summary of the Invention
[0007] The present invention aims to solve at least one of the technical problems in the above related technologies to a certain extent.
[0008] To this end, the object of the present invention is to provide a watermark camera system and method for generating verifiable KML geographical data based on hash and blockchain, which can generate a watermark of verifiable KML geographical data based on the hash algorithm and blockchain technology, provide high-strength and tamper-proof evidence storage, and significantly improve the authenticity, integrity and non-deniability of the geographical location information of photos.
[0009] In order to solve the above technical problems, the present invention is implemented as follows: An embodiment of the present invention provides a watermark camera system for verifiable KML geographical data, and the system includes: A user interface module, configured to be able to provide functions of taking pictures and human-computer interaction; An image acquisition module, configured to be able to obtain the data of the user interface module and the metadata required for the watermark, and superimpose it on the taken photo in the form of a visual watermark; A data processing and hash module, configured to be able to integrate key data and calculate a hash value, and the integration of key data includes integrating key metadata into a data packet to be processed, and generating a unique hash digest according to the integrated data packet; A blockchain interaction module, configured to be able to provide an automatic configuration or a selectable blockchain connection, and be able to submit the hash digest and optional metadata digest as transaction data to the blockchain for recording, and obtain a certificate of evidence; and A KML generation and verification module, configured to be able to verify the hash value when the user requests to generate a KML to ensure that the data has not been tampered with; for the data that has not been tampered with, extract the trusted data to generate a KML file.
[0010] In addition, according to the watermark camera system for verifiable KML geographical data of the present invention, it may also have the following additional technical features: In some embodiments, the system further includes a secure storage module, configured to be able to provide a storage policy configuration, encrypt the original photo file, complete metadata, hash value and blockchain certificate of evidence using a strong encryption algorithm and store them in a secure storage area of the device locally, and also be able to upload the corresponding data to the cloud database according to the level of data privacy requirements and backup needs.
[0011] In some embodiments, the metadata required for the watermark includes configuration data, geographical location information, timestamp information, device unique identifier, hash data, blockchain data and custom text information.
[0012] In some of these embodiments, the optional metadata digest in the blockchain interaction module includes: time, location digest, or a pointer or content address pointing to an off-chain storage system.
[0013] In some of these embodiments, the evidence storage certificate in the blockchain interaction module includes the transaction ID, block number, and block timestamp returned by the blockchain.
[0014] In some of these embodiments, the data combination method of the data packet to be processed is that the serialized metadata is appended to a specific area of the image file, or an independent and structured metadata file is formed and associated with the photo.
[0015] In some of these embodiments, the specific method for the KML generation and verification module to perform hash value verification is: when the user requests to generate KML, retrieve the corresponding photo, metadata, and blockchain evidence information from the configured storage location according to the selected photo by the user; force or optionally execute the verification step, and the verification step includes: recalculating the hash value of the stored data, and querying the corresponding hash value recorded on the chain through the blockchain interaction module connecting to the configured blockchain network for comparison. If they are the same, it is determined that the data has not been tampered with, otherwise it is determined that the data has been tampered with, and the verification result is displayed to the user.
[0016] In some of these embodiments, the secure storage module can also perform hybrid storage, storing small-sized metadata, hashes, and certificates locally on the device, and storing the original photos in the cloud database.
[0017] The embodiment of the present invention also provides a usage method of a watermark camera system for verifying KML geographic data as described in any one of the above, and the method includes: S1. Start the system and perform a configuration check; S2. Follow the shutter press action to obtain photo data and watermark data; S3. Generate a visual watermark based on the obtained data and overlay it on the photo; S4. Integrate the photo data and key metadata into a data packet in a specified format, and calculate its hash value using the currently configured hash algorithm; S5. Through the blockchain interaction module, submit the hash value to the configured blockchain network for on-chain storage, and obtain the returned evidence storage certificate; S6. Store the original photo, complete metadata, hash value, and blockchain evidence storage certificate in an associated manner at a storage location selected according to the configured policy; S7. Select one or more photos that have completed evidence storage in the system and initiate a request to generate a KML file; S8. Retrieve relevant data from the storage area, and connect to the configured blockchain network to verify the data integrity through the blockchain; S9. Extract the verified geographical coordinate data and time information; S10. Generate a KML file containing the information in S9 according to the KML standard; S11. Provide the generated KML file to the user.
[0018] In addition, according to the usage method of the watermark camera system for verifiable KML geographical data of the present invention, the following additional technical features may also be included: In some of the embodiments, the watermark data in S2 includes location coordinate data, a trusted timestamp, and a device ID.
[0019] Compared with the prior art, the watermark camera system and method for generating verifiable KML geographical data based on hashing and blockchain provided by the present invention have at least the following beneficial effects: 1. Improve the credibility of geographical information: fundamentally solve the problem that the geographical information of traditional photos is easily tampered with, and provide time and location information with strong evidentiary effect; 2. Generate highly credible KML data: be able to generate verifiable and tamper-proof KML geographical data files, which are suitable for scenarios with high requirements for data authenticity, such as: a. Field work and survey: engineering acceptance, asset inventory, environmental monitoring sampling point records, on-site photos for insurance claims, market research, etc.; b. Evidence collection: location and time proof in scenarios such as traffic evidence collection, urban management patrols, and judicial evidence collection; c. Personal applications: reliable travel trajectory records, outdoor activity check-ins, marking of locations of personal important events, etc.; 3. Simplify the process of obtaining trusted data: users can complete the whole process from taking photos to obtaining trusted KML files through one App, with convenient operations; 4. Lay a foundation for expansion: based on verifiable geographical information, more applications can be expanded in the future, such as generating trusted QR codes for quick retrieval or navigation, or docking with other systems that require trusted geographical data; 5. Enhance the system adaptability: by providing configuration options such as hashing algorithms, blockchain types, and storage methods, the system can better adapt to the specific needs and restrictive conditions of different users, improving the universality and competitiveness of the solution.
[0020] The additional aspects and advantages of the present invention will be partially given in the following description, partially will become obvious from the following description, or be understood through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a system architecture diagram disclosed in an embodiment of the present invention; Figure 2 The system operation flowchart disclosed in an embodiment of the present invention. Detailed implementation manners
[0022] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0023] Next, the embodiments of the present invention will be described in detail through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0024] Please refer to Figure 1 As shown, in some embodiments of the present invention, a watermark camera system and method for generating verifiable KML geographic data based on hash and blockchain are provided. The system (mainly embodied as a mobile application App) can, while taking pictures, use an optional hash algorithm and a configurable blockchain technology to provide high-strength and tamper-proof evidence for the photos and their contained key metadata (especially accurate time and geographical location), and based on this trusted data, conveniently generate a KML geographic data file with verification information and high credibility. At the same time, the present invention also provides a basis for future extended functions (such as generating two-dimensional codes containing verifiable geographical information). Its core purpose is to significantly improve the authenticity, integrity and non-deniability of the photo geographical location information, simplify the generation and application process of trusted geographical data, and at the same time adapt to different security requirements, cost considerations and technical environments.
[0025] In some embodiments of the present invention, the watermark camera system for generating verifiable KML geographic data based on hash and blockchain mainly includes the following functional modules: 1. User interface module: Provide operation interfaces such as taking pictures, browsing photos and verification information, configuring system options (such as hash algorithm, blockchain node, storage strategy, etc.), selecting to generate KML, sharing, etc.
[0026] 2. Image acquisition module: Call the camera of the mobile device to take pictures. It mainly includes the following two sub-modules: a. Data acquisition sub-module: Real-time and highly accurately acquire metadata such as geographical location information (configured positioning accuracy requirements through multi-source fusion of GPS, Beidou, base station positioning, etc.), accurate timestamp (preferably use the network time protocol server time or a trusted third-party time source, and when the network is unavailable, the device secure time can be used as an alternative and the source can be marked), and device unique identifier (such as IMEI, device serial number or unique ID generated by the application) when taking pictures. b. Visual Watermark Sub-module: According to the configuration, generate a visual watermark with information such as time, location, hash value summary, blockchain transaction ID, custom text, etc., and overlay it on the captured photo.
[0027] 3. Data Processing and Hashing Module, mainly including the following two sub-modules: a. Integrate key data: Combine the original photo data with key metadata (accurate timestamp, GPS coordinates, device ID, etc.) into a data packet to be processed; clearly define the data combination method (for example: after serializing the metadata, append it to a specific area of the image file, or form an independent, structured metadata file associated with the photo, such as using JSON or XML format); b. Calculate hash value: Provide multiple hash algorithm options for users to choose or configure according to policies (for example, the default is SHA-256, and SHA-3 series, national cipher SM3, etc. are optional to meet different security compliance requirements or performance needs), and calculate the above integrated data packet or key parts to generate a unique hash summary.
[0028] 4. Blockchain Interaction Module, mainly including the following parts: a. Configurable blockchain connection: The system is designed to access different types of blockchain networks; the target blockchain node API address, authentication method, etc. can be specified through configuration files or user settings; b. Support multiple blockchain types: It can access public blockchains, consortium blockchains, or private blockchains. The selection is determined based on the trust requirements, cost budget, performance requirements, and regulatory compliance of the application scenario; c. Data on-chain: Submit the calculated hash summary, and optionally metadata summary (such as time, location summary, or pointer / content address to an off-chain storage system, such as IPFS CID), as transaction data to the selected blockchain for recording; d. Obtain the evidence storage certificate: Record the evidence storage information such as the transaction ID (TxID), block number, block timestamp, etc. returned by the blockchain.
[0029] 5. Secure Storage Module: a. Provide flexible storage strategy configuration: Allow users to select a data storage solution according to their needs.
[0030] b. Local storage: Encrypt the associated data such as the original photo file, complete metadata, hash value, blockchain evidence storage certificate, etc. using a strong encryption algorithm and store it in a secure storage area on the local device; applicable to scenarios with extremely high requirements for data privacy and no desire for data to go offline.
[0031] c. Cloud storage: Encrypt the data (especially large photo files) and upload them to the cloud storage service specified by the user or integrated into the system; the metadata and the evidence vouchers can be optionally stored in the cloud database or still retained locally; applicable to scenarios where data backup, cross-device access, or limited storage space is required.
[0032] d. Hybrid storage: Store the small-sized metadata, hashes, and vouchers locally and store the original photos in the cloud.
[0033] e. Data association and integrity: Regardless of the storage method adopted, it is necessary to ensure a strong association between the photos, metadata, hashes, and blockchain vouchers (e.g., through database records, naming conventions, or metadata embedding), and have a verification mechanism to prevent association errors or data loss.
[0034] 6. KML generation and verification module: a. Data retrieval and verification: When the user requests to generate a KML, retrieve the corresponding photos, metadata, and blockchain evidence information from the configured storage location (local / cloud) according to the photos selected by the user. Mandatory or optional verification steps: Recalculate the hash value of the stored data, and connect to the configured blockchain network through the blockchain interaction module to query the hash value recorded on the chain for comparison to ensure that the data has not been tampered with. The verification result should be clearly presented to the user.
[0035] b. Extract trusted data: Only when the data verification passes (or the user chooses to trust the unverified data and bear the risk), extract the verified (or marked as evidenced) information such as geographical coordinates and timestamps.
[0036] c. Generate a KML file: Organize and generate a KML file according to the KML standard format with the extracted one or more geographical coordinate points, timestamps, photo file names, and optional verification information.
[0037] d. File output: Provide the generated KML file to the user for saving, sharing, or importing into GIS software / map applications.
[0038] The present invention has the function of instant associated evidence storage: while or within a very short time after a photo is taken, the hash calculation of key data (photo + time + location) and the blockchain evidence storage request are completed, ensuring the originality and timeliness of the data to the greatest extent. The present invention applies the tamper-proof feature of the blockchain to the verification of geographical information, and transmits this credibility from the source (the moment of taking the photo) to the final application output (KML file or QR code, etc.), forming a complete trust chain. Integrating functions such as photo taking, evidence storage, verification, and generation of geographical data into one App (system) simplifies the user operation and improves the efficiency and user experience. The geographical information contained in the generated KML file (or QR code) is based on blockchain verification and has high credibility and evidentiary effect. The system supports the configuration of core links (such as hash algorithms, blockchain types, storage schemes) to adapt to different application scenarios, cost considerations, security levels, and compliance requirements, enhancing the applicability and future expandability of the system.
[0039] In some embodiments of the present invention, a working method of a watermark camera system for verifying KML geographical data includes the following steps: Step 1, startup and configuration check: The user starts the camera function through the App of the present invention. The App checks the current configuration (hash algorithm, blockchain node, storage policy, etc.).
[0040] Step 2, data collection: While or within a very short time after the user presses the shutter, the App automatically obtains metadata such as photo data, high-precision GPS coordinates, trusted timestamp, and device ID.
[0041] Step 3, (optional) watermark generation: The App superimposes a visual watermark on the photo preview or the final image according to the settings.
[0042] Step 4, data integration and hash calculation: The App integrates the photo data and key metadata into a data packet in a specified format and calculates its hash value using the currently configured hash algorithm.
[0043] Step 5, blockchain evidence storage: The App submits the hash value (and optional metadata summary) to the configured blockchain network for on-chain storage through the blockchain interaction module and obtains return evidence storage vouchers such as transaction IDs.
[0044] Step 6, data storage: The App stores the original photo, complete metadata, hash value, and blockchain evidence storage vouchers in an associated manner at a storage location (local / cloud / mixed) selected according to the configuration policy.
[0045] Step 7, KML generation request: The user selects one or more photos that have completed evidence storage in the App and initiates a request to generate a KML file.
[0046] Step 8, Data Retrieval and Verification: The App retrieves relevant data from storage and (optionally) connects to a configured blockchain network to verify data integrity through the blockchain.
[0047] Step 9, Extraction and Formatting: The App extracts information such as the verified geographical coordinates and time.
[0048] Step 10, Generate KML File: The App generates a.kml file containing the above information according to the KML standard.
[0049] Step 11, File Output: The App provides the KML file to the user.
[0050] For the parts not described in detail in the present invention, reference may be made to the prior art or the well-known technology in the art. This embodiment does not make any limitations in this regard and will not be described in detail here.
[0051] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the spirit of the present invention and the scope protected by the claims, and all of them fall within the protection scope of the present invention.
Claims
1. A watermark camera system for verifying KML geographical data, characterized in that, The system includes: A user interface module configured to provide functions of taking pictures and human-computer interaction; An image acquisition module configured to obtain data of the user interface module and metadata required for watermarking, and overlay it on the taken photo in the form of a visual watermark; A data processing and hashing module configured to integrate key data and calculate a hash value. The integration of key data includes integrating key metadata into a data packet to be processed, and generating a unique hash digest based on the integrated data packet; A blockchain interaction module configured to provide an automatic configuration or a selectable blockchain connection, and be able to submit the hash digest and optional metadata digest as transaction data to the blockchain for recording, and obtain a deposition certificate; and A KML generation and verification module configured to verify the hash value when the user requests to generate KML to ensure that the data has not been tampered with; for the data that has not been tampered with, extract the trusted data to generate a KML file.
2. The watermark camera system for verifying KML geographic data according to claim 1, characterized in that, The system further includes a secure storage module configured to provide storage policy configuration, encrypt the original photo file, complete metadata, hash value, and blockchain deposition certificate using a strong encryption algorithm and store them in a secure storage area local to the device, and also be able to upload the corresponding data to the cloud database according to the level of data privacy requirements and backup needs.
3. The watermark camera system for verifying KML geographical data according to claim 1, characterized in that, The metadata required for the watermark includes configuration data, geographical location information, timestamp information, device unique identifier, hash data, blockchain data, and custom text information.
4. The watermark camera system for verifying KML geographic data according to claim 1, wherein, The optional metadata digest in the blockchain interaction module includes: time, location digest, or a pointer or content address pointing to an off-chain storage system.
5. The watermark camera system for verifying KML geographic data according to claim 1, characterized in that, The deposition certificate in the blockchain interaction module includes the transaction ID, block number, and block timestamp returned by the blockchain.
6. The watermark camera system for verifying KML geographical data according to claim 1, wherein The data combination method of the data packet to be processed is that the metadata is serialized and appended to a specific area of the image file, or an independent and structured metadata file is formed and associated with the photo.
7. The watermark camera system for verifying KML geographic data according to claim 1, wherein The specific method for the KML generation and verification module to verify the hash value is: when the user requests to generate KML, retrieve the corresponding photo, metadata, and blockchain deposition information from the configured storage location according to the photo selected by the user; Forcibly or optionally execute the verification step. The verification step includes: recalculating the hash value of the stored data, and querying the corresponding hash value recorded on the chain through the blockchain interaction module connecting to the configured blockchain network for comparison. If they are the same, it is determined that the data has not been tampered with, otherwise it is determined that the data has been tampered with, and the verification result is displayed to the user.
8. The watermark camera system for verifying KML geographic data according to claim 2, wherein The secure storage module can also perform hybrid storage, storing small-sized metadata, hashes, and certificates locally on the device, and storing the original photos in the cloud database.
9. A method for using a watermark camera system for verifiable KML geographic data according to any one of claims 1-8, characterized in that, The method includes: S1. Start the system and perform a configuration check; S2. Follow the shutter press action to obtain photo data and watermark data; S3. Generate a visual watermark based on the obtained data and overlay it on the photo; S4. Integrate the photo data and key metadata into a data packet in a specified format, and calculate its hash value using the currently configured hash algorithm; S5. Submit the hash value to the configured blockchain network for on-chain storage through the blockchain interaction module, and obtain the returned deposit certificate; S6. Associatively store the original photo, complete metadata, hash value, and blockchain deposit certificate at the storage location selected according to the configured policy; S7. Select one or more photos that have completed deposit in the system and initiate a request to generate a KML file; S8. Retrieve relevant data from the storage area and connect to the configured blockchain network to verify data integrity through the blockchain; S9. Extract the verified geographic coordinate data and time information; S10. Generate a KML file containing the information in S9 according to the KML standard; S11. Provide the generated KML file to the user.
10. The method of using a watermark camera system for verifiable KML geographic data according to claim 9, characterized in that The watermark data in S2 includes location coordinate data, trusted timestamp, and device ID.
Citation Information
Patent Citations
Method, apparatus and system for obtaining watermarking picture
CN105005960A
Embedding blockchain information in digital images
CN110619592A
System for automatic management and depositing of documents (images) hash in block-chain technology
CN113169978A
Retrieval method and system for encrypted information evidence based on block chain and electronic equipment
CN113468549A
Blockchain presence verification method and device, computer equipment and storage medium
CN114090588A
Cited By
Method and system for preventing file tampering based on CAD layer management
CN121256868A
A method and system for preventing file tampering based on CAD layer management
CN121256868B