Collected image geographic information coding method of road surface detection robot

Through Geohash algorithm and blockchain technology, the problem of low coding efficiency of geographic information of road surface detection robot images is solved, rapid encoding and data immutability are achieved, and data flexibility and management efficiency are improved.

CN118939844AInactive Publication Date: 2024-11-12SU ZHOU SU HE XIN YU KE JI YOU XIAN GONG SI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310523443.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2024-11-12
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the geographic information encoding collected by the road surface detection robot has problems such as excessive coding, redundant effectiveness, and slow retrieval speed, resulting in huge processing volume when the number of photos taken is huge.

Method used

The Geohash algorithm is used for 10-bit encoding, and the binary encoding of longitude and latitude is generated. The hash value is generated through the SHA-256 algorithm and added it to the blockchain label. The image hash value is calculated in combination with the PIL library, and the image hash value is calculated on the blockchain. Create new block storage on it to form an untamperable record.

Benefits of technology

It realizes fast image information encoding, prevents data tampering, improves data flexibility and usage flexibility, and supports cross-platform management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939844A_ABST
    Figure CN118939844A_ABST
Patent Text Reader

Abstract

The invention relates to image geographic information coding, in particular to a method for coding collected image geographic information of a pavement detection robot, which comprises the following specific steps of: coding an image geographic position collected by the pavement detection robot by adopting a 10-bit coding mode of a Geohash algorithm to obtain a longitude code and a latitude code; combining the codes of the longitude and the latitude to form a string of new binary codes, and performing re-coding according to Base32 to obtain a Geohash character string; a Hash value is generated from the obtained Geohash character string by using an SHA-256 algorithm, and then the Hash value is added into a block chain label to obtain a block chain label with a specific prefix; processing an image acquired by a pavement detection robot in a Python code by using a PIL library, and calculating to obtain a hash value of the image; and creating a new block on the block chain, storing the hash value of the image and the hash value of the geographic position code, and adding the new block into the block chain to form a non-tampering record. Rapid picture information coding can be realized according to specific features and parameters of acquired images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to image geographic information coding, in particular to a method for coding geographic information of collected images of a road surface detection robot. Background Art

[0002] The automated road surface inspection robot is a special robot system developed for precise inspection of airports, highways, and municipal roads. It can combine the results of the road network-level census to conduct full coverage and precise inspection of road and subgrade diseases in key areas. The system is flexible in movement and can complete U-turns and other actions on a single lane. Combined with a high-precision positioning and navigation system, the entire road section can be fully automatically inspected. The system is equipped with a 2D and 3D visual fusion system, as well as three-dimensional ground-penetrating radars of different frequency bands, which simultaneously collect road surface and internal structure information. Various types of data are accurately aligned based on geographic location information, combined with computer-aided analysis technologies such as machine learning, to correlate road surface and internal information for on-screen fusion analysis. In order to improve the authority of detection data, blockchain technology can be used to ensure the security and immutability of data.

[0003] like Figure 1 As shown in the figure, the ground map taken by the detection robot is a set of 2×2 meter square shapes, and the position coordinates of the photos taken are based on the zero point in the lower left corner as the starting point of the coordinates. Since the geographic information provided by the collected photos is a combined output of GPS (Global Positioning System) + IMU (Inertial Measurement Unit), the WSG-84 longitude and latitude coordinates are used. Therefore, there are disadvantages such as long encoding, validity redundancy, and slow retrieval speed.

[0004] The specific WSG-84 longitude and latitude encoding method is: within a certain error range, the conversion between longitude and latitude and meters is: 0.00001 degrees of longitude or latitude is approximately equal to 1 meter. For each 2×2 area of ​​a photo taken by the detection robot, 4 sets of coordinate data of the top corners are required to mark the geographic information of the photo. When the number of photos taken is huge, the processing volume of retrieving this information is also huge. Summary of the invention

[0005] The technical problem to be solved by the present invention is: to overcome the deficiencies in the prior art and to provide a method for encoding geographic information of collected images of a road surface inspection robot, which can realize rapid image information encoding according to the specific features and parameters of the collected images.

[0006] The technical solution adopted by the present invention to solve the technical problem is: a method for encoding geographic information of collected images of a road surface detection robot, comprising the following steps:

[0007] S1. Encode the geographical location of the image collected by the road surface inspection robot using the 10-bit encoding method of the Geohash algorithm to obtain the longitude code and the latitude code, combine the longitude and latitude codes to form a new binary code, and re-encode according to Base32 to obtain the Geohash string;

[0008] S2. Use the SHA-256 algorithm to generate a hash value for the Geohash string obtained in step S1, and then add the hash value to the blockchain tag to obtain a blockchain tag with a specific prefix;

[0009] S3, using the PIL library in Python code to process the image collected by the road surface inspection robot and calculate the hash value of the image;

[0010] S4. Create a new block on the blockchain, store the hash value of the image in step S3 and the hash value of the geographic location code in step S2, and add the new block to the blockchain to form an unalterable record.

[0011] In the above scheme, the 10-bit encoding method of the Geohash algorithm in step S1 is specifically as follows: first, the latitude range (-90, 90) is divided into two intervals (-90, 0) and (0, 90). If the target latitude is in the interval (-90, 0), it is encoded as 0, otherwise it is encoded as 1. Then, according to the interval in which the target latitude falls, it is divided into two intervals for encoding, and so on, until the accuracy requirement is met. Similarly, the longitude range (-180, 180) is subdivided in turn.

[0012] In the above scheme, the encoding accuracy is ≤ 1 meter.

[0013] In the above scheme, in the binary encoding of step S1, the latitude code is placed on the odd bits, and the longitude code is placed on the even bits.

[0014] In the above scheme, the Geohash algorithm of step S2 adopts Python code, the prefix of the blockchain tag is defined in the Python code, and a variable is set in the Python code, which is any string, and the generated tag is used where needed in the Python code.

[0015] In the above scheme, the PIL library in step S3 includes an Image object and an imagehash library, and the hash value of the image is calculated by the average_hash method.

[0016] In the above scheme, the blockchain in step S4 adopts the Ethereum blockchain, and interacts through Remix based on the Solidity smart contract.

[0017] A new block is created on the blockchain, which contains the hash value of the image and geolocation code. In this way, the geolocation data can be securely stored and shared without being tampered with or deleted. Use Solidity smart contracts to query, expand and even trade geolocation data. Solidity smart contracts can use Geohash to query geolocation data based on query conditions and return the query results to the user. At the same time, smart contracts can also expand geolocation data to achieve more flexible data sharing and management.

[0018] The beneficial effects of the present invention are:

[0019] 1. It can prevent the detected data from being tampered with or deleted, thus ensuring the authority of the detection;

[0020] 2. It can realize distributed access based on blockchain and improve data flexibility;

[0021] 3. It can realize decentralized retrieval across users and improve the flexibility of using detection data;

[0022] 4. It can realize cross-platform retrieval based on web3.0, which is convenient for management by superior departments. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0024] Figure 1 It is the geographic information of the ground map taken by the detection robot in the prior art.

[0025] Figure 2 It is the hash value in the blockchain generated after encoding by the present invention. DETAILED DESCRIPTION

[0026] The present invention will now be further described in conjunction with the accompanying drawings and preferred embodiments. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0027] Geographic information coding of collected images of road surface inspection robots: First, the 10-bit coding method of the Geohash algorithm is used. The coding rule is: first, the latitude range (-90, 90) is divided into two intervals (-90, 0) and (0, 90). If the target dimension is in the former interval, it is encoded as 0, otherwise it is encoded as 1. Then, according to the interval where the target latitude falls, it is evenly divided into two intervals for encoding, and so on, until the accuracy meets the requirements. The longitude is also divided into (-180, 180) in turn using the same algorithm, and then the longitude and latitude codes are combined, with odd-numbered digits for latitude and even-numbered digits for longitude to form a new binary code. Encoding is performed according to Base32, the encoding level is level 10, and the encoding accuracy is better than 1 meter.

[0028] Hash the Geohash string and convert it into a unique hash value as a label. Specifically, use the SHA-256 algorithm to generate a hash value for the Geohash string, then append the hash value to the blockchain label, and finally output a blockchain label with a specific prefix. You can also set a variable to any string and use the generated label where needed.

[0029] The collected images of the road surface inspection robot are synchronously hashed; a common method for obtaining the hash value of the inspection image is to use a hash algorithm; among them, popular hash algorithms include MD5, SHA-1, CRC32, etc.; this embodiment uses the PIL library in Python to process the image and calculate the hash value. Specifically, the Image object and the imagehash library in the PIL library are used to calculate the hash value of the image through the average_hash method;

[0030] Create a new block on the blockchain, which contains the hash value of the image and geolocation code; add the new block to the blockchain to form an immutable record; when the geolocation information of the image needs to be verified, the hash value can be used to check the record in the blockchain and ensure the integrity and accuracy of the data; based on Solidity smart contracts, strings and image hash values ​​can be stored.

[0031] Among them, the Geohash algorithm is an algorithm that divides the earth's surface into a grid. It encodes the longitude and latitude coordinates of the earth's surface into a string, which can be used to quickly search for nearby locations. The Geohash algorithm was invented by Gustavo Niemeyer in 2008 and has been widely used in geographic location search and query. The core idea of ​​the Geohash algorithm is to divide the earth's surface into a grid, and each grid is represented by a binary code. The length of the code determines the size and accuracy of the grid. The longer the code, the smaller the grid and the higher the accuracy. The Geohash algorithm encodes the longitude and latitude into binary series respectively, and then alternately combines them to form a binary string. Finally, the string is converted into a Base32-encoded string to represent a location on the earth's surface. The advantages of the Geohash algorithm are that it can efficiently process spatial data on the earth's surface, support efficient spatial query and aggregation operations, and have good scalability and precision control capabilities.

[0032] The Base32 encoding comparison table is:

[0033]

[0034] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the content of the present invention and implement it. They cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for encoding geographic information of collected images of a road surface inspection robot, characterized in that: The following steps are involved: S1. Encode the geographical location of the image collected by the road surface inspection robot using the 10-bit encoding method of the Geohash algorithm to obtain the longitude code and the latitude code, combine the longitude and latitude codes to form a new binary code, and re-encode according to Base32 to obtain the Geohash string; S2. Use the SHA-256 algorithm to generate a hash value for the Geohash string obtained in step S1, and then add the hash value to the blockchain tag to obtain a blockchain tag with a specific prefix; S3, using the PIL library in Python code to process the image collected by the road surface inspection robot and calculate the hash value of the image; S4. Create a new block on the blockchain, store the hash value of the image in step S3 and the hash value of the geographic location code in step S2, and add the new block to the blockchain to form an unalterable record.

2. The method for encoding geographic information of collected images of a road surface inspection robot according to claim 1, characterized in that: The 10-bit encoding method of the Geohash algorithm in step S1 is specifically as follows: first, the latitude range (-90, 90) is divided equally into two intervals (-90, 0) and (0, 90); if the target latitude is in the interval (-90, 0), it is encoded as 0, otherwise it is encoded as 1; and then the interval in which the target latitude falls is divided into two intervals for encoding, and so on, until the accuracy requirement is met. Similarly, the longitude range (-180, 180) is subdivided in turn.

3. The method for encoding geographic information of collected images of a road surface inspection robot according to claim 2, characterized in that: Coding accuracy ≤ 1 meter.

4. The method for encoding geographic information of collected images of a road surface inspection robot according to claim 1, characterized in that: In the binary encoding of step S1, the latitude code is placed on the odd bits, and the longitude code is placed on the even bits.

5. The method for encoding geographic information of collected images of a road surface inspection robot according to claim 1, characterized in that: The Geohash algorithm of step S2 adopts Python code, the prefix of the blockchain tag is defined in the Python code, and a variable is set in the Python code, which is any string and is used to generate the tag where needed in the Python code.

6. The method for encoding geographic information of collected images of a road surface inspection robot according to claim 1, characterized in that: The PIL library in step S3 includes an Image object and an imagehash library, and the hash value of the image is calculated by the average_hash method.

7. The method for encoding geographic information of collected images of a road surface inspection robot according to claim 1, characterized in that: The blockchain in step S4 adopts the Ethereum blockchain, and interacts through Remix based on the Solidity smart contract.

Citation Information

Cited By

  • Entity coding method and system based on digital twinning, terminal and medium

    CN120597837A