WO2023030553A2 - Distributed highway image storage method and apparatus, and distributed highway image search method and apparatus - Google Patents

Distributed highway image storage method and apparatus, and distributed highway image search method and apparatus Download PDF

Info

Publication number
WO2023030553A2
WO2023030553A2 PCT/CN2022/131010 CN2022131010W WO2023030553A2 WO 2023030553 A2 WO2023030553 A2 WO 2023030553A2 CN 2022131010 W CN2022131010 W CN 2022131010W WO 2023030553 A2 WO2023030553 A2 WO 2023030553A2
Authority
WO
WIPO (PCT)
Prior art keywords
road image
hash value
character string
road
image
Prior art date
Application number
PCT/CN2022/131010
Other languages
French (fr)
Chinese (zh)
Other versions
WO2023030553A3 (en
Inventor
崔玉萍
张艳红
侯芸
董元帅
钱振宇
周晶
仝鑫隆
李宇轩
张蕴灵
杨璇
孙天成
宋张亮
李旺
Original Assignee
中国公路工程咨询集团有限公司
中咨公路养护检测技术有限公司
中咨数据有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国公路工程咨询集团有限公司, 中咨公路养护检测技术有限公司, 中咨数据有限公司 filed Critical 中国公路工程咨询集团有限公司
Publication of WO2023030553A2 publication Critical patent/WO2023030553A2/en
Priority to ZA2023/04009A priority Critical patent/ZA202304009B/en
Publication of WO2023030553A3 publication Critical patent/WO2023030553A3/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Definitions

  • the invention relates to the field of computer technology, in particular to a distributed storage method, search method and device for road images.
  • the system needs to support users in the GIS system to conveniently perform functions such as network-wide display, designated display, and comparison display of road image information and road surface information in the GIS system, and supports users to conveniently click GIS A specific point in the system to query the front image and historical image corresponding to the position.
  • the current storage and search methods are all performed in a character string matching manner, resulting in a decrease in storage and search efficiency.
  • the object of the present invention is to provide a road image distributed storage method, search method and device, which are used to solve the defect of storage and search efficiency reduction in the prior art, and improve storage and search efficiency.
  • the present invention provides the following scheme:
  • the present invention provides a method for distributed storage of road images, including:
  • the first character string is used to characterize the content to be stored of the road image
  • the mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
  • the content to be stored of the road image includes at least one of the following:
  • the starting position information of the road image
  • the terminal location information of the road image is the terminal location information of the road image
  • Lane information of the road image is Lane information of the road image.
  • the road image includes at least one of the following:
  • the first character string is a character string of variable length.
  • the present invention provides a distributed search method for road images, including:
  • the first character string is used to characterize the stored content of the road image to be searched;
  • the road image to be searched is acquired.
  • the searching for the road image based on the mapping hash value includes:
  • the road image to be searched is obtained from all road images corresponding to the mapping hash value.
  • the stored content of the road image to be searched includes at least one of the following:
  • the starting position information of the road image
  • the terminal location information of the road image is the terminal location information of the road image
  • Lane information of the road image is Lane information of the road image.
  • the road image includes at least one of the following:
  • the first character string is a character string of variable length.
  • the present invention provides a road image distributed storage device, including:
  • the first acquisition module is configured to acquire a first character string corresponding to the road image to be stored, and the first character string is used to characterize the content to be stored of the road image;
  • a first determining module configured to determine a first hash value corresponding to the first character string
  • a second determining module configured to determine a mapping hash value of the first hash value mapping
  • a storage module configured to use the mapping hash value as a distributed index of the first character string, and store the mapping hash value and the first character string.
  • the present invention provides a road image distributed search device, including:
  • the second acquisition module is configured to acquire a first character string corresponding to the road image to be searched, and the first character string is used to characterize the stored content of the road image to be searched;
  • a third determining module configured to determine a first hash value corresponding to the first character string
  • a fourth determining module configured to determine a mapping hash value of the first hash value mapping
  • a third obtaining module configured to obtain the road image to be searched based on the mapping hash value.
  • the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the program, the computer program described in the first aspect is implemented.
  • an electronic device including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the program, the computer program described in the first aspect is implemented.
  • the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the road image distributed storage method as described in the first aspect is implemented, or the A distributed search method for road images as described in the second aspect.
  • the present invention also provides a computer program product, including a computer program.
  • the computer program When the computer program is executed by a processor, it realizes the road image distributed storage method as described in the first aspect, or realizes the road image distributed search as described in the second aspect. method.
  • the road image distributed storage method, search method and device provided by the present invention can ensure that a large number of road images are distributed evenly Storage, which in turn can prevent the image retrieval efficiency from decreasing due to unbalanced data storage, and effectively improve the efficiency of storage and search.
  • Fig. 1 is a schematic flow chart of a road image distributed storage method provided by the present invention
  • Fig. 2 is a schematic flow chart of the road image distributed search method provided by the present invention.
  • Fig. 3 is one of schematic diagrams of searching road images
  • Fig. 4 is the second schematic diagram of searching road images
  • Fig. 5 is a schematic structural diagram of a road image distributed storage device provided by the present invention.
  • Fig. 6 is a schematic structural diagram of a road image distributed search device provided by the present invention.
  • Fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
  • Fig. 1 is a schematic flow chart of the road image distributed storage method provided by the present invention, as shown in Fig. 1, the method includes the following steps:
  • step 100 a first character string corresponding to the road image to be stored is obtained, and the first character string is used to characterize the content to be stored of the road image.
  • Step 110 determining a first hash value corresponding to the first character string.
  • Step 120 determine the mapping hash value of the first hash value mapping.
  • Step 130 using the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string.
  • the road maintenance department can establish a business-related geographic information system (GIS system) to comprehensively display the historical state data of road objects under its jurisdiction .
  • GIS system geographic information system
  • users can upload the collected high-definition image photos of the road surface and front to the file system of the server where the GIS system is deployed, and store the image path information into the database system of the GIS platform.
  • the amount of historical image data stored in the GIS system will increase significantly, which will lead to a rapid decline in image storage efficiency and even affect the user experience of the system.
  • the invention provides a road image distributed storage method based on a character string value Hash algorithm to realize distributed storage of road image historical data.
  • determining the first hash value corresponding to the first character string may be implemented by the following algorithm:
  • mapping hash value of the first hash value mapping may be implemented by the following algorithm:
  • Mapping hash value first hash value %N, where N is the number of distributed data storage units, usually determined by the overall design scheme of the existing data storage system.
  • mapping hash value may be used as an index of the first string and saved together with the first string;
  • the first character string of a road image (that is, the road image) only corresponds to one mapping hash value; one mapping hash value corresponds to multiple road images, but the number of road images corresponding to each mapping hash value is relatively small.
  • each mapping hash value corresponds to a very small number of road images, and the number of road images corresponding to different mapping hash values is relatively uniform, that is, the distributed storage of a large number of road images is realized.
  • the hash algorithm that specifically implements the above steps can be exemplified as follows, based on the output of the algorithm, the distributed storage of the collected road surface images and the front image can be realized, and the images can be evenly stored in each In storage unit:
  • the road image distributed storage method provided by the present invention by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapped hash value, can ensure a large number of road images are stored in a balanced distributed manner, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
  • the content to be stored of the road image includes at least one of the following:
  • the road image is usually named with a first character string including road name, data collection year, uplink and downlink directions, starting point location information, and end point location information.
  • the content to be stored of the road image can be reflected by the first character string corresponding to the road image, which can be called the name of the road image, and can specifically reflect any one or more of the following:
  • this method can be applied to various types of image naming strategies, and has good applicability, for example, it is applicable to the naming method of stake number information, and can also be applied to the naming method of encoder pulse number, which is not limited in the present invention;
  • the naming method can be expressed as CFCS01A-001+328000-001+324000-2022, where the meanings of each field are as follows:
  • A indicates the uplink and downlink information of the highway, if it is “A”, it means uplink (increasing direction of stake number), if it is “B”, it means downlink (increasing direction of stake number).
  • the road image may also reflect information about road maintenance such as disease information of the road, and the user may obtain relevant information of the road through the display of the road image for road detection.
  • road maintenance such as disease information of the road
  • the present invention can use the proposed Hash algorithm based on the character string value to calculate a hash value for the character string, and store the image in the corresponding memory unit according to the hash value result, so as to realize the distribution of the image format storage.
  • the road image includes at least one of the following: a road surface image of the road; a front image of the road.
  • the present invention analyzes the first character string (such as the name) and/or The first string (such as the name) of the image ahead of the road.
  • the present invention realizes convenient and fast storage of road surface images and forward images based on the hash method of string values, and can be comprehensively displayed in the GIS system after the user searches.
  • the first character string is a character string of variable length.
  • the road route name is usually a character string of variable length
  • the first character string of the stored road image is also a character string of variable length.
  • the hash algorithm-based storage method provided by the present invention is suitable for strings of variable length, and avoids the defect of low efficiency caused by string matching storage of strings of variable length.
  • the road image distributed storage method provided by the present invention by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapped hash value, can ensure a large number of road images are stored in a balanced distributed manner, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
  • Fig. 2 is a schematic flow chart of the road image distributed search method provided by the present invention, as shown in Fig. 2, the method includes the following steps:
  • step 200 a first character string corresponding to the road image to be searched is obtained, and the first character string is used to characterize the stored content of the road image to be searched.
  • Step 210 determine a first hash value corresponding to the first character string.
  • Step 220 determine the mapping hash value of the first hash value mapping.
  • Step 230 Obtain the road image to be searched based on the mapping hash value.
  • the road maintenance department can establish a business-related geographic information system (GIS system) to comprehensively display the historical state data of road objects under its jurisdiction .
  • GIS system geographic information system
  • users can upload the collected high-definition image photos of the road surface and front to the server file system where the GIS system is deployed, and store the image path information in the GIS platform database system.
  • Users can search for images through the GIS system. Complete the search.
  • the invention provides a road image distributed search method based on a character string value Hash algorithm, and realizes the distributed search of road image historical data.
  • determining the first hash value corresponding to the first character string may be implemented by the following algorithm:
  • mapping hash value of the first hash value mapping may be implemented by the following algorithm:
  • Mapping hash value first hash value %N, where N is the number of distributed data storage units, usually determined by the overall design scheme of the existing data storage system.
  • the mapping hash value may be used as an index of the first string and stored together with the first string.
  • the first character string of a road image (that is, the road image) only corresponds to one mapping hash value; one mapping hash value corresponds to multiple road images, but the number of road images corresponding to each mapping hash value is relatively small. Few; in the scene of a large number of road images, each mapping hash value corresponds to a very small number of road images, and the number of road images corresponding to different mapping hash values is relatively uniform.
  • searching the first string corresponding to After the mapping hash value, the number of character strings corresponding to the mapping hash value is small, and the road image to be searched can be searched very quickly and conveniently, that is, the distributed search of a large number of road images can be realized.
  • the road image distributed search method provided by the present invention by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapping hash value, can ensure a large number of road images are stored in a balanced distributed manner, thereby preventing Image retrieval efficiency decreases due to unbalanced data storage, effectively improving search efficiency.
  • the searching the road image based on the mapping hash value includes:
  • mapping hash value corresponding to the first character string after determining the mapping hash value corresponding to the first character string, all road images corresponding to the mapping hash value can be determined, and then the string corresponding to the first character string and the mapping hash value can be combined into a string match, and obtain the road image to be searched.
  • the number of road images corresponding to each mapped hash value is small, the number of character string matching is small when searching for the first character string, which further improves the efficiency and difficulty of searching.
  • the stored content of the road image to be searched includes at least one of the following:
  • the road image is usually named with a first character string including road name, data collection year, uplink and downlink directions, starting point location information, and end point location information.
  • the content to be stored of the road image can be reflected by the first character string corresponding to the road image, which can be called the name of the road image, and can specifically reflect any one or more of the following:
  • this method can be applied to various types of image naming strategies, and has good applicability, for example, it is applicable to the naming method of stake number information, and can also be applied to the naming method of encoder pulse number, which is not limited in the present invention;
  • the naming method can be expressed as CFCS01A-001+328000-001+324000-2022, where the meanings of each field are as follows:
  • A indicates the uplink and downlink information of the highway, if it is “A”, it means uplink (increasing direction of stake number), if it is “B”, it means downlink (increasing direction of stake number).
  • the road image may also reflect information about road maintenance such as disease information of the road, and the user may obtain relevant information of the road through the display of the road image for road detection.
  • road maintenance such as disease information of the road
  • Fig. 3 is one of the schematic diagrams of searching for road images
  • Fig. 4 is the second diagram of searching for road images
  • information such as the name or year of the road image to be searched can be input (The information can be represented by the first character string); then the system can obtain the first character string of the road image to be searched, and then obtain the first hash value corresponding to the first character string, and map to obtain the first hash value
  • the corresponding mapping hash value that is, all road images corresponding to the mapping hash value can be determined, and finally the road image that the user needs to search is determined and displayed by string matching.
  • the present invention can use the proposed Hash algorithm based on the character string value to calculate a hash value for the character string, and search according to the result of the hash value, so as to realize the distributed search of the image.
  • the road image includes at least one of the following: a road surface image of the road; a front image of the road.
  • the present invention uses a method for distributed storage of road images based on a string value Hash algorithm, based on a string value Hash algorithm to analyze the first character string (such as a name) of the road surface image containing the road and/or the image in front of the road.
  • the first string (such as a name).
  • the present invention realizes convenient and quick query of road surface images and forward images based on string numerical hash method, and can be comprehensively displayed in the GIS system.
  • the first character string is a character string of variable length.
  • the hash algorithm-based search method provided by the present invention is applicable to strings of variable length, and avoids the defect of low efficiency caused by string matching and storage of strings of variable length.
  • the road image distributed search method by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapped hash value, a large number of road images can be guaranteed to be stored in a balanced manner. , which in turn can prevent the image retrieval efficiency from decreasing due to unbalanced data storage, and effectively improve the efficiency of storage and search.
  • the road image distributed storage device provided by the present invention is described below, and the road image distributed storage device described below and the road image distributed storage method described above can be referred to in correspondence.
  • FIG. 5 is a schematic structural diagram of a road image distributed storage device provided by the present invention.
  • the device 500 includes: a first acquisition module 510, a first determination module 520, a second determination module 530, and a storage module 540 . in:
  • the first acquiring module 510 is configured to acquire a first character string corresponding to the road image to be stored, and the first character string is used to characterize the content to be stored of the road image.
  • the first determining module 520 is configured to determine a first hash value corresponding to the first character string.
  • the second determining module 530 is configured to determine a mapping hash value of the first hash value mapping.
  • the storage module 540 is configured to use the mapping hash value as a distributed index of the first character string, and store the mapping hash value and the first character string.
  • the road image distributed storage device provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, obtains the corresponding mapping hash value, which can ensure a balanced distributed storage of a large number of road images, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
  • the road image distributed search device provided by the present invention is described below, and the road image distributed search device described below and the road image distributed search method described above can be referred to in correspondence.
  • Fig. 6 is a schematic structural diagram of a road image distributed search device provided by the present invention.
  • the device 600 includes: a second obtaining module 610, a third determining module 620, a fourth determining module 630, and a third obtaining Module 640; where:
  • the second acquiring module 610 is configured to acquire a first character string corresponding to the road image to be searched, and the first character string is used to characterize the stored content of the road image to be searched.
  • the third determining module 620 is configured to determine a first hash value corresponding to the first character string.
  • the fourth determining module 630 is configured to determine a mapping hash value of the first hash value mapping.
  • the third acquiring module 640 is configured to acquire the road image to be searched based on the mapping hash value.
  • the road image distributed search device provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, obtains the corresponding mapped hash value, which can ensure a balanced distributed storage of a large number of road images, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
  • FIG. 7 illustrates a schematic diagram of the physical structure of an electronic device.
  • the electronic device may include: a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730 and a communication bus 740, Wherein, the processor 710 , the communication interface 720 , and the memory 730 communicate with each other through the communication bus 740 .
  • the processor 710 can invoke logic instructions in the memory 730 to execute a method for distributed storage of road images, and the method includes:
  • a mapping hash value of the first hash value mapping is determined.
  • the mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
  • the method includes:
  • a first character string corresponding to the road image to be searched is acquired, and the first character string is used to characterize the stored content of the road image to be searched.
  • a mapping hash value of the first hash value mapping is determined.
  • the road image to be searched is acquired.
  • the above-mentioned logic instructions in the memory 730 may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as an independent product.
  • the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the present invention also provides a computer program product.
  • the computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium.
  • the computer program When executed by a processor, the computer can Executing the road image distributed storage method provided by each of the above methods, the method includes:
  • a mapping hash value of the first hash value mapping is determined.
  • the mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
  • the method includes:
  • a first character string corresponding to the road image to be searched is acquired, and the first character string is used to characterize the stored content of the road image to be searched.
  • a mapping hash value of the first hash value mapping is determined.
  • the road image to be searched is acquired.
  • the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the road image distributed storage method provided by the above-mentioned methods.
  • Methods include:
  • a mapping hash value of the first hash value mapping is determined.
  • the mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
  • the method includes:
  • a first character string corresponding to the road image to be searched is acquired, and the first character string is used to characterize the stored content of the road image to be searched.
  • a mapping hash value of the first hash value mapping is determined.
  • the road image to be searched is acquired.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
  • each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware.
  • the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to a distributed highway image storage method and apparatus, and a distributed highway image search method and apparatus, which relate to the technical field of computers. The distributed highway image storage method comprises: acquiring a first character string which corresponds to a highway image to be stored, wherein the first character string is used for representing content to be stored of the highway image; determining a first hash value which corresponds to the first character string; determining a mapped hash value to which the first hash value is mapped; and taking the mapped hash value as a distributed index of the first character string, and then storing the mapped hash value and the first character string. By means of the present invention, hash calculation is executed on the basis of first character strings corresponding to highway images to be stored, so as to acquire corresponding mapped hash values, such that the balanced distributed storage of a large number of highway images can be ensured, and therefore a reduction in the image retrieval efficiency caused by unbalanced data storage can be prevented, thereby effectively improving the storage and search efficiency.

Description

公路图像分布式存储方法、搜索方法及装置Road image distributed storage method, search method and device
本申请要求于2022年6月9日提交中国专利局、申请号为202210651900.7、发明名称为“公路图像分布式存储方法、搜索方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202210651900.7 and the title of the invention "Distributed storage method, search method and device for road images" filed with the China Patent Office on June 9, 2022, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本发明涉及计算机技术领域,具体涉及一种公路图像分布式存储方法、搜索方法及装置。The invention relates to the field of computer technology, in particular to a distributed storage method, search method and device for road images.
背景技术Background technique
为了便捷公路养护巡检工作,支持用户查询公路路面历史状态信息。In order to facilitate the road maintenance and inspection work, users are supported to query the historical state information of the road surface.
用户可以将已采集的公路路面和前方高清图像照片上传至部署GIS***的服务器文件***中,并将图像路径信息存储入GIS平台数据库***。在公路路面图像和前方图像的历史数据导入***后,***需要支持用户在GIS***中便捷对路面前方图像信息和路面信息进行全网显示、指定显示和对比显示等功能,支持用户通过便捷点击GIS***中的特定点来查询该位置对应的前方图像和历史图像。目前的存储和搜索方法均是采用字符串匹配的方式进行,导致存储和搜索效率下降。Users can upload the collected road surface and high-definition image photos ahead to the server file system where the GIS system is deployed, and store the image path information into the GIS platform database system. After the historical data of road surface images and front images are imported into the system, the system needs to support users in the GIS system to conveniently perform functions such as network-wide display, designated display, and comparison display of road image information and road surface information in the GIS system, and supports users to conveniently click GIS A specific point in the system to query the front image and historical image corresponding to the position. The current storage and search methods are all performed in a character string matching manner, resulting in a decrease in storage and search efficiency.
发明内容Contents of the invention
本发明的目的是提供一种公路图像分布式存储方法、搜索方法及装置,用以解决现有技术中存储和搜索效率下降的缺陷,提高存储和搜索的效率。The object of the present invention is to provide a road image distributed storage method, search method and device, which are used to solve the defect of storage and search efficiency reduction in the prior art, and improve storage and search efficiency.
为实现上述目的,本发明提供了如下方案:To achieve the above object, the present invention provides the following scheme:
第一方面,本发明提供一种公路图像分布式存储方法,包括:In a first aspect, the present invention provides a method for distributed storage of road images, including:
获取待存储的公路图像对应的第一字符串;所述第一字符串用于表征所述公路图像的待存储内容;Acquiring a first character string corresponding to the road image to be stored; the first character string is used to characterize the content to be stored of the road image;
确定所述第一字符串对应的第一哈希值;determining a first hash value corresponding to the first character string;
确定所述第一哈希值映射的映射哈希值;determining a mapping hash value of said first hash value mapping;
将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。The mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
可选地,根据本发明提供的公路图像分布式存储方法,所述公路图像的待 存储内容包括以下至少一项:Optionally, according to the road image distributed storage method provided by the present invention, the content to be stored of the road image includes at least one of the following:
所述公路图像的名称;the name of the road image;
所述公路图像的采集年份;The collection year of the road image;
所述公路图像的路线方向;the route direction of the road image;
所述公路图像的起点位置信息;The starting position information of the road image;
所述公路图像的终点位置信息;The terminal location information of the road image;
所述公路图像的车道信息。Lane information of the road image.
可选地,根据本发明提供的公路图像分布式存储方法,所述公路图像包括以下至少一项:Optionally, according to the road image distributed storage method provided by the present invention, the road image includes at least one of the following:
公路的路面图像;pavement images of highways;
公路的前方图像。Image of the road ahead.
可选地,根据本发明提供的公路图像分布式存储方法,所述第一字符串为不定长字符串。Optionally, according to the road image distributed storage method provided by the present invention, the first character string is a character string of variable length.
第二方面,本发明提供一种公路图像分布式搜索方法,包括:In a second aspect, the present invention provides a distributed search method for road images, including:
获取待搜索的公路图像对应的第一字符串;所述第一字符串用于表征所述待搜索的公路图像的已存储的内容;Acquiring a first character string corresponding to the road image to be searched; the first character string is used to characterize the stored content of the road image to be searched;
确定所述第一字符串对应的第一哈希值;determining a first hash value corresponding to the first character string;
确定所述第一哈希值映射的映射哈希值;determining a mapping hash value of said first hash value mapping;
基于所述映射哈希值,获取所述待搜索的公路图像。Based on the mapping hash value, the road image to be searched is acquired.
可选地,根据本发明提供的公路图像分布式搜索方法,所述基于所述映射哈希值,搜索所述公路图像,包括:Optionally, according to the road image distributed search method provided in the present invention, the searching for the road image based on the mapping hash value includes:
确定所述映射哈希值对应的所有公路图像;determining all road images corresponding to the mapping hash value;
从所述映射哈希值对应的所有公路图像中获取所述待搜索的公路图像。The road image to be searched is obtained from all road images corresponding to the mapping hash value.
可选地,根据本发明提供的公路图像分布式搜索方法,所述待搜索的公路图像的已存储的内容包括以下至少一项:Optionally, according to the road image distributed search method provided in the present invention, the stored content of the road image to be searched includes at least one of the following:
所述公路图像的名称;the name of the road image;
所述公路图像的采集年份;The collection year of the road image;
所述公路图像的路线方向;the route direction of the road image;
所述公路图像的起点位置信息;The starting position information of the road image;
所述公路图像的终点位置信息;The terminal location information of the road image;
所述公路图像的车道信息。Lane information of the road image.
可选地,根据本发明提供的公路图像分布式搜索方法,所述公路图像包括以下至少一项:Optionally, according to the road image distributed search method provided in the present invention, the road image includes at least one of the following:
公路的路面图像;pavement images of highways;
公路的前方图像。Image of the road ahead.
可选地,根据本发明提供的公路图像分布式搜索方法,所述第一字符串为不定长字符串。Optionally, according to the road image distributed search method provided by the present invention, the first character string is a character string of variable length.
第三方面,本发明提供一种公路图像分布式存储装置,包括:In a third aspect, the present invention provides a road image distributed storage device, including:
第一获取模块,用于获取待存储的公路图像对应的第一字符串,所述第一字符串用于表征所述公路图像的待存储内容;The first acquisition module is configured to acquire a first character string corresponding to the road image to be stored, and the first character string is used to characterize the content to be stored of the road image;
第一确定模块,用于确定所述第一字符串对应的第一哈希值;A first determining module, configured to determine a first hash value corresponding to the first character string;
第二确定模块,用于确定所述第一哈希值映射的映射哈希值;A second determining module, configured to determine a mapping hash value of the first hash value mapping;
存储模块,用于将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。A storage module, configured to use the mapping hash value as a distributed index of the first character string, and store the mapping hash value and the first character string.
第四方面,本发明提供一种公路图像分布式搜索装置,包括:In a fourth aspect, the present invention provides a road image distributed search device, including:
第二获取模块,用于获取待搜索的公路图像对应的第一字符串,所述第一字符串用于表征所述待搜索的公路图像的已存储的内容;The second acquisition module is configured to acquire a first character string corresponding to the road image to be searched, and the first character string is used to characterize the stored content of the road image to be searched;
第三确定模块,用于确定所述第一字符串对应的第一哈希值;A third determining module, configured to determine a first hash value corresponding to the first character string;
第四确定模块,用于确定所述第一哈希值映射的映射哈希值;A fourth determining module, configured to determine a mapping hash value of the first hash value mapping;
第三获取模块,用于基于所述映射哈希值,获取所述待搜索的公路图像。A third obtaining module, configured to obtain the road image to be searched based on the mapping hash value.
第五方面,本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如第一方面所述公路图像分布式存储方法,或实现如第二方面所述公路图像分布式搜索方法。In the fifth aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the program, the computer program described in the first aspect is implemented. A road image distributed storage method, or realize the road image distributed search method as described in the second aspect.
第六方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面所述公路图像分布式存储方法,或实现如第二方面所述公路图像分布式搜索方法。In the sixth aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the road image distributed storage method as described in the first aspect is implemented, or the A distributed search method for road images as described in the second aspect.
本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被 处理器执行时实现如第一方面所述公路图像分布式存储方法,或实现如第二方面所述公路图像分布式搜索方法。The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, it realizes the road image distributed storage method as described in the first aspect, or realizes the road image distributed search as described in the second aspect. method.
本发明提供的公路图像分布式存储方法、搜索方法及装置,通过基于待存储的公路图像对应的第一字符串执行Hash计算,获取对应的映射哈希值,可以保证大量的公路图像均衡分布式存储,进而可以防止因数据存储不均衡而导致的图像检索效率下降,有效提高存储和搜索的效率。The road image distributed storage method, search method and device provided by the present invention can ensure that a large number of road images are distributed evenly Storage, which in turn can prevent the image retrieval efficiency from decreasing due to unbalanced data storage, and effectively improve the efficiency of storage and search.
说明书附图Instructions attached
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明提供的公路图像分布式存储方法的流程示意图;Fig. 1 is a schematic flow chart of a road image distributed storage method provided by the present invention;
图2是本发明提供的公路图像分布式搜索方法的流程示意图;Fig. 2 is a schematic flow chart of the road image distributed search method provided by the present invention;
图3是搜索公路图像的示意图之一;Fig. 3 is one of schematic diagrams of searching road images;
图4是搜索公路图像的示意图之二;Fig. 4 is the second schematic diagram of searching road images;
图5是本发明提供的公路图像分布式存储装置的结构示意图;Fig. 5 is a schematic structural diagram of a road image distributed storage device provided by the present invention;
图6是本发明提供的公路图像分布式搜索装置的结构示意图;Fig. 6 is a schematic structural diagram of a road image distributed search device provided by the present invention;
图7是本发明提供的电子设备的结构示意图。Fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
符号说明:Symbol Description:
510-第一获取模块,520-第一确定模块,530-第二确定模块,540-存储模块,610-第二获取模块,620-第三确定模块,630-第四确定模块,640-第三获取模块,710-处理器,720-通信接口,730-存储器,740-通信总线。510-first acquisition module, 520-first determination module, 530-second determination module, 540-storage module, 610-second acquisition module, 620-third determination module, 630-fourth determination module, 640-th Three acquisition modules, 710-processor, 720-communication interface, 730-memory, 740-communication bus.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
下面结合图1-图7描述本发明的公路图像分布式存储方法、搜索方法及装 置。The road image distributed storage method, search method and device of the present invention will be described below in conjunction with Fig. 1-Fig. 7.
图1是本发明提供的公路图像分布式存储方法的流程示意图,如图1所示,该方法包括如下步骤:Fig. 1 is a schematic flow chart of the road image distributed storage method provided by the present invention, as shown in Fig. 1, the method includes the following steps:
步骤100,获取待存储的公路图像对应的第一字符串,所述第一字符串用于表征所述公路图像的待存储内容。In step 100, a first character string corresponding to the road image to be stored is obtained, and the first character string is used to characterize the content to be stored of the road image.
步骤110,确定所述第一字符串对应的第一哈希值。 Step 110, determining a first hash value corresponding to the first character string.
步骤120,确定所述第一哈希值映射的映射哈希值。 Step 120, determine the mapping hash value of the first hash value mapping.
步骤130,将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。 Step 130, using the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string.
具体来说,为了便捷公路养护巡检工作,支持用户查询公路路面历史状态信息,公路养护部门可以建立业务相关的地理信息***(GIS***),用于综合展示其所管辖的公路对象历史状态数据。在该平台上,用户可以将已采集的公路路面和前方高清图像照片上传至部署GIS***的服务器文件***中,并将图像路径信息存储入GIS平台数据库***。随着时间的推移,GIS***中存储的历史图像数据量将大幅增长,进而导致图像存储效率快速下降,甚至影响到用户对***的使用体验。本发明提供基于字符串数值Hash算法的公路图像分布式存储方法,实现公路图像历史数据的分布式存储。Specifically, in order to facilitate road maintenance inspections and support users to query historical state information of road surfaces, the road maintenance department can establish a business-related geographic information system (GIS system) to comprehensively display the historical state data of road objects under its jurisdiction . On this platform, users can upload the collected high-definition image photos of the road surface and front to the file system of the server where the GIS system is deployed, and store the image path information into the database system of the GIS platform. As time goes by, the amount of historical image data stored in the GIS system will increase significantly, which will lead to a rapid decline in image storage efficiency and even affect the user experience of the system. The invention provides a road image distributed storage method based on a character string value Hash algorithm to realize distributed storage of road image historical data.
可选地,确定所述第一字符串对应的第一哈希值,可以通过以下算法实现:Optionally, determining the first hash value corresponding to the first character string may be implemented by the following algorithm:
第一字符串对应的第一哈希值=∑(ASCII(第一字符串中每一字符串字节))。The first hash value corresponding to the first character string=∑(ASCII (bytes of each character string in the first character string)).
可选地,确定所述第一哈希值映射的映射哈希值,可以通过以下算法实现:Optionally, determining the mapping hash value of the first hash value mapping may be implemented by the following algorithm:
映射哈希值=第一哈希值%N,其中N为分布式数据存储单元数量,通常由已有的数据存储***总体设计方案确定。Mapping hash value=first hash value %N, where N is the number of distributed data storage units, usually determined by the overall design scheme of the existing data storage system.
可选地,在获取映射哈希值后,可以将映射哈希值作为第一字符串的索引,与第一字符串一起保存;Optionally, after the mapping hash value is acquired, the mapping hash value may be used as an index of the first string and saved together with the first string;
可选地,一个公路图像的第一字符串(即该公路图像)仅对应一个映射哈希值;一个映射哈希值对应多个公路图像,但每一个映射哈希值对应的公路图像数量较少;在海量公路图像的场景下,每一个映射哈希值对应非常少量的公路图像,不同的映射哈希值分别对应的公路图像的数量较为均匀,即实现大量公路图像的分布式存储。Optionally, the first character string of a road image (that is, the road image) only corresponds to one mapping hash value; one mapping hash value corresponds to multiple road images, but the number of road images corresponding to each mapping hash value is relatively small. In the scenario of a large number of road images, each mapping hash value corresponds to a very small number of road images, and the number of road images corresponding to different mapping hash values is relatively uniform, that is, the distributed storage of a large number of road images is realized.
在一个实施例中,具体实现上述步骤的哈希算法可以如下示例,基于该算法的输出结果可实现对已采集的公路路面图像和前方图像的分布式存储,且保证图像能够均匀的存储在各个存储单元中:In one embodiment, the hash algorithm that specifically implements the above steps can be exemplified as follows, based on the output of the algorithm, the distributed storage of the collected road surface images and the front image can be realized, and the images can be evenly stored in each In storage unit:
Figure PCTCN2022131010-appb-000001
Figure PCTCN2022131010-appb-000001
本发明提供的公路图像分布式存储方法,通过基于待存储的公路图像对应的第一字符串执行Hash计算,获取对应的映射哈希值,可以保证大量的公路图像均衡分布式存储,进而可以防止因数据存储不均衡而导致的图像检索效率下降,有效提高存储和搜索的效率。The road image distributed storage method provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapped hash value, can ensure a large number of road images are stored in a balanced distributed manner, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
可选地,所述公路图像的待存储内容包括以下至少一项:Optionally, the content to be stored of the road image includes at least one of the following:
所述公路图像的名称;所述公路图像的采集年份;所述公路图像的路线方向;所述公路图像的起点位置信息;所述公路图像的终点位置信息;所述公路 图像的车道信息。The name of the road image; the collection year of the road image; the route direction of the road image; the start position information of the road image; the end position information of the road image; the lane information of the road image.
可选地,公路图像通常会以包含公路名称、数据采集年份、上下行方向、起点位置信息和终点位置信息在内的第一字符串命名。Optionally, the road image is usually named with a first character string including road name, data collection year, uplink and downlink directions, starting point location information, and end point location information.
可选地,公路图像的待存储内容可以通过公路图像对应的第一字符串体现,可以称为公路图像的名称,具体可以体现以下任意一项或多项:Optionally, the content to be stored of the road image can be reflected by the first character string corresponding to the road image, which can be called the name of the road image, and can specifically reflect any one or more of the following:
所述公路图像的名称;所述公路图像的采集年份;所述公路图像的路线方向;所述公路图像的起点位置信息;所述公路图像的终点位置信息;所述公路图像的车道信息。The name of the road image; the collection year of the road image; the route direction of the road image; the start position information of the road image; the end position information of the road image; the lane information of the road image.
可选地,本方法可适用于多种类型的图像命名策略,具有良好的适用性,比如适用于桩号信息命名方式,还可以适用于编码器脉冲数命名方式,本发明对此不作限定;Optionally, this method can be applied to various types of image naming strategies, and has good applicability, for example, it is applicable to the naming method of stake number information, and can also be applied to the naming method of encoder pulse number, which is not limited in the present invention;
在一个实施例中,以桩号信息命名方式为例,其命名方式可表示为CFCS01A-001+328000-001+324000-2022,其中各字段表示含义如下:In one embodiment, taking the naming method of stake number information as an example, the naming method can be expressed as CFCS01A-001+328000-001+324000-2022, where the meanings of each field are as follows:
“CFCS01”表示路线编码。"CFCS01" indicates the route code.
“A”表示公路上下行信息,若为“A”则表示上行(桩号递增方向),若为“B”则表示下行(桩号递减方向)。"A" indicates the uplink and downlink information of the highway, if it is "A", it means uplink (increasing direction of stake number), if it is "B", it means downlink (increasing direction of stake number).
“001+328000”表示照片拍摄的终点位置信息,其中“001”表示桩号数,即千米数,“328”表示一千米中的米数,“000”表示一米中毫米数。"001+328000" indicates the location information of the end point of photo shooting, where "001" indicates the number of stakes, that is, the number of kilometers, "328" indicates the number of meters in one kilometer, and "000" indicates the number of millimeters in one meter.
“001+324000”表示照片拍摄的起点位置信息,具体定义参见终点位置信息。"001+324000" indicates the location information of the starting point of photo shooting, and the specific definition refers to the location information of the end point.
2022表示采样年份。2022 represents the sampling year.
可选地,所述公路图像中还可以反映公路的病害信息等用于公路养护的相关信息,用户可以通过公路图像的显示,获知公路的相关信息,进行公路检测。Optionally, the road image may also reflect information about road maintenance such as disease information of the road, and the user may obtain relevant information of the road through the display of the road image for road detection.
针对该第一字符串,本发明可采用所提出的基于字符串数值Hash算法对字符串计算出一个哈希值,并根据哈希值结果将图像存储在对应存储器单元上,实现对图像的分布式存储。For the first character string, the present invention can use the proposed Hash algorithm based on the character string value to calculate a hash value for the character string, and store the image in the corresponding memory unit according to the hash value result, so as to realize the distribution of the image format storage.
可选地,所述公路图像包括以下至少一项:公路的路面图像;公路的前方图像。Optionally, the road image includes at least one of the following: a road surface image of the road; a front image of the road.
可选地,本发明通过基于字符串数值哈希算法(Hash算法)的公路图像分布式存储方法,基于字符串数值Hash算法解析包含公路的路面图像的第一 字符串(比如名称)和/或公路的前方图像的第一字符串(比如名称)。Optionally, the present invention analyzes the first character string (such as the name) and/or The first string (such as the name) of the image ahead of the road.
可选地,本发明基于字符串数值哈希法实现对公路路面图像和前方图像的便捷快速存储,并可以在用户搜索后在GIS***中进行综合显示。Optionally, the present invention realizes convenient and fast storage of road surface images and forward images based on the hash method of string values, and can be comprehensively displayed in the GIS system after the user searches.
可选地,所述第一字符串为不定长字符串。Optionally, the first character string is a character string of variable length.
可选地,因公路路线名称通常为不定长字符串,所以存储的公路图像的第一字符串也为不定长字符串。Optionally, because the road route name is usually a character string of variable length, the first character string of the stored road image is also a character string of variable length.
本发明提供的基于哈希算法的存储方式,适用于不定长字符串,避免不定长字符串通过字符串匹配存储导致的效率低的缺陷。The hash algorithm-based storage method provided by the present invention is suitable for strings of variable length, and avoids the defect of low efficiency caused by string matching storage of strings of variable length.
本发明提供的公路图像分布式存储方法,通过基于待存储的公路图像对应的第一字符串执行Hash计算,获取对应的映射哈希值,可以保证大量的公路图像均衡分布式存储,进而可以防止因数据存储不均衡而导致的图像检索效率下降,有效提高存储和搜索的效率。The road image distributed storage method provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapped hash value, can ensure a large number of road images are stored in a balanced distributed manner, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
图2是本发明提供的公路图像分布式搜索方法的流程示意图,如图2所示,该方法包括如下步骤:Fig. 2 is a schematic flow chart of the road image distributed search method provided by the present invention, as shown in Fig. 2, the method includes the following steps:
步骤200,获取待搜索的公路图像对应的第一字符串,所述第一字符串用于表征所述待搜索的公路图像的已存储的内容。In step 200, a first character string corresponding to the road image to be searched is obtained, and the first character string is used to characterize the stored content of the road image to be searched.
步骤210,确定所述第一字符串对应的第一哈希值。 Step 210, determine a first hash value corresponding to the first character string.
步骤220,确定所述第一哈希值映射的映射哈希值。 Step 220, determine the mapping hash value of the first hash value mapping.
步骤230,基于所述映射哈希值,获取所述待搜索的公路图像。Step 230: Obtain the road image to be searched based on the mapping hash value.
具体来说,为了便捷公路养护巡检工作,支持用户查询公路路面历史状态信息,公路养护部门可以建立业务相关的地理信息***(GIS***),用于综合展示其所管辖的公路对象历史状态数据。在该平台上,用户可以将已采集的公路路面和前方高清图像照片上传至部署GIS***的服务器文件***中,并将图像路径信息存储入GIS平台数据库***,用户在搜索图像时可以通过GIS***完成搜索。随着时间的推移,GIS***中存储的历史图像数据量将大幅增长,进而导致图像查询效率快速下降,甚至影响到用户对***的使用体验。本发明提供基于字符串数值Hash算法的公路图像分布式搜索方法,实现公路图像历史数据的分布式搜索。Specifically, in order to facilitate road maintenance inspections and support users to query historical state information of road surfaces, the road maintenance department can establish a business-related geographic information system (GIS system) to comprehensively display the historical state data of road objects under its jurisdiction . On this platform, users can upload the collected high-definition image photos of the road surface and front to the server file system where the GIS system is deployed, and store the image path information in the GIS platform database system. Users can search for images through the GIS system. Complete the search. As time goes by, the amount of historical image data stored in the GIS system will increase significantly, which will lead to a rapid decline in image query efficiency and even affect the user experience of the system. The invention provides a road image distributed search method based on a character string value Hash algorithm, and realizes the distributed search of road image historical data.
可选地,确定所述第一字符串对应的第一哈希值,可以通过以下算法实现:Optionally, determining the first hash value corresponding to the first character string may be implemented by the following algorithm:
第一字符串对应的第一哈希值=∑(ASCII(第一字符串中每一字符串字节))。The first hash value corresponding to the first character string=∑(ASCII (bytes of each character string in the first character string)).
可选地,确定所述第一哈希值映射的映射哈希值,可以通过以下算法实现:Optionally, determining the mapping hash value of the first hash value mapping may be implemented by the following algorithm:
映射哈希值=第一哈希值%N,其中N为分布式数据存储单元数量,通常由已有的数据存储***总体设计方案确定。Mapping hash value=first hash value %N, where N is the number of distributed data storage units, usually determined by the overall design scheme of the existing data storage system.
可选地,在获取映射哈希值后,可以将映射哈希值作为第一字符串的索引,与第一字符串一起保存。Optionally, after the mapping hash value is acquired, the mapping hash value may be used as an index of the first string and stored together with the first string.
可选地,一个公路图像的第一字符串(即该公路图像)仅对应一个映射哈希值;一个映射哈希值对应多个公路图像,但每一个映射哈希值对应的公路图像数量较少;在海量公路图像的场景下,每一个映射哈希值对应非常少量的公路图像,不同的映射哈希值分别对应的公路图像的数量较为均匀,在搜索时,获得了第一字符串对应的映射哈希值后,该映射哈希值对应的字符串数量较少,进而可以非常快速且便捷地搜索到待搜索的公路图像,即实现大量公路图像的分布式搜索。Optionally, the first character string of a road image (that is, the road image) only corresponds to one mapping hash value; one mapping hash value corresponds to multiple road images, but the number of road images corresponding to each mapping hash value is relatively small. Few; in the scene of a large number of road images, each mapping hash value corresponds to a very small number of road images, and the number of road images corresponding to different mapping hash values is relatively uniform. When searching, the first string corresponding to After the mapping hash value, the number of character strings corresponding to the mapping hash value is small, and the road image to be searched can be searched very quickly and conveniently, that is, the distributed search of a large number of road images can be realized.
本发明提供的公路图像分布式搜索方法,通过基于待存储的公路图像对应的第一字符串执行Hash计算,获取对应的映射哈希值,可以保证大量的公路图像均衡分布式存储,进而可以防止因数据存储不均衡而导致的图像检索效率下降,有效提高搜索的效率。The road image distributed search method provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapping hash value, can ensure a large number of road images are stored in a balanced distributed manner, thereby preventing Image retrieval efficiency decreases due to unbalanced data storage, effectively improving search efficiency.
可选地,所述基于所述映射哈希值,搜索所述公路图像,包括:Optionally, the searching the road image based on the mapping hash value includes:
1)确定所述映射哈希值对应的所有公路图像。1) Determine all road images corresponding to the mapping hash value.
2)从所述映射哈希值对应的所有公路图像中获取所述待搜索的公路图像。2) Obtain the road image to be searched from all road images corresponding to the mapping hash value.
可选地,在确定第一字符串对应的映射哈希值后,可以确定该映射哈希值对应的所有公路图像,进而可以将第一字符串与映射哈希值对应的字符串进行字符串匹配,获取所述待搜索的公路图像。Optionally, after determining the mapping hash value corresponding to the first character string, all road images corresponding to the mapping hash value can be determined, and then the string corresponding to the first character string and the mapping hash value can be combined into a string match, and obtain the road image to be searched.
本发明中,由于每一个映射哈希值对应的公路图像数量较少,因此在搜索第一字符串时进行字符串匹配的次数较少,进一步提高搜索的效率和难度。In the present invention, since the number of road images corresponding to each mapped hash value is small, the number of character string matching is small when searching for the first character string, which further improves the efficiency and difficulty of searching.
可选地,所述待搜索的公路图像的已存储的内容包括以下至少一项:Optionally, the stored content of the road image to be searched includes at least one of the following:
所述公路图像的名称;所述公路图像的采集年份;所述公路图像的路线方向;所述公路图像的起点位置信息;所述公路图像的终点位置信息;所述公路图像的车道信息。The name of the road image; the collection year of the road image; the route direction of the road image; the start position information of the road image; the end position information of the road image; the lane information of the road image.
可选地,公路图像通常会以包含公路名称、数据采集年份、上下行方向、起点位置信息和终点位置信息在内的第一字符串命名。Optionally, the road image is usually named with a first character string including road name, data collection year, uplink and downlink directions, starting point location information, and end point location information.
可选地,公路图像的待存储内容可以通过公路图像对应的第一字符串体现,可以称为公路图像的名称,具体可以体现以下任意一项或多项:Optionally, the content to be stored of the road image can be reflected by the first character string corresponding to the road image, which can be called the name of the road image, and can specifically reflect any one or more of the following:
所述公路图像的名称;所述公路图像的采集年份;所述公路图像的路线方向;所述公路图像的起点位置信息;所述公路图像的终点位置信息;所述公路图像的车道信息。The name of the road image; the collection year of the road image; the route direction of the road image; the start position information of the road image; the end position information of the road image; the lane information of the road image.
可选地,本方法可适用于多种类型的图像命名策略,具有良好的适用性,比如适用于桩号信息命名方式,还可以适用于编码器脉冲数命名方式,本发明对此不作限定;Optionally, this method can be applied to various types of image naming strategies, and has good applicability, for example, it is applicable to the naming method of stake number information, and can also be applied to the naming method of encoder pulse number, which is not limited in the present invention;
在一个实施例中,以桩号信息命名方式为例,其命名方式可表示为CFCS01A-001+328000-001+324000-2022,其中各字段表示含义如下:In one embodiment, taking the naming method of stake number information as an example, the naming method can be expressed as CFCS01A-001+328000-001+324000-2022, where the meanings of each field are as follows:
“CFCS01”表示路线编码。"CFCS01" indicates the route code.
“A”表示公路上下行信息,若为“A”则表示上行(桩号递增方向),若为“B”则表示下行(桩号递减方向)。"A" indicates the uplink and downlink information of the highway, if it is "A", it means uplink (increasing direction of stake number), if it is "B", it means downlink (increasing direction of stake number).
“001+328000”表示照片拍摄的终点位置信息,其中“001”表示桩号数,即千米数,“328”表示一千米中的米数,“000”表示一米中毫米数。"001+328000" indicates the location information of the end point of photo shooting, where "001" indicates the number of stakes, that is, the number of kilometers, "328" indicates the number of meters in one kilometer, and "000" indicates the number of millimeters in one meter.
“001+324000”表示照片拍摄的起点位置信息,具体定义参见终点位置信息。"001+324000" indicates the location information of the starting point of photo shooting, and the specific definition refers to the location information of the end point.
2022表示采样年份。2022 represents the sampling year.
可选地,所述公路图像中还可以反映公路的病害信息等用于公路养护的相关信息,用户可以通过公路图像的显示,获知公路的相关信息,进行公路检测。Optionally, the road image may also reflect information about road maintenance such as disease information of the road, and the user may obtain relevant information of the road through the display of the road image for road detection.
在一个实施例中,图3是搜索公路图像的示意图之一,图4是搜索公路图像的示意图之二;如图3和图4所示,可以输入待搜索的公路图像的名称或年份等信息(这些信息均可以通过第一字符串表示);然后***可以获取待搜索的公路图像的第一字符串,进而获取第一字符串对应的第一哈希值,并映射获取第一哈希值对应的映射哈希值,即可以确定该映射哈希值对应的所有公路图像,最后通过字符串匹配的方式确定用户需要搜索的公路图像并显示。In one embodiment, Fig. 3 is one of the schematic diagrams of searching for road images, and Fig. 4 is the second diagram of searching for road images; as shown in Fig. 3 and Fig. 4, information such as the name or year of the road image to be searched can be input (The information can be represented by the first character string); then the system can obtain the first character string of the road image to be searched, and then obtain the first hash value corresponding to the first character string, and map to obtain the first hash value The corresponding mapping hash value, that is, all road images corresponding to the mapping hash value can be determined, and finally the road image that the user needs to search is determined and displayed by string matching.
针对该第一字符串,本发明可采用所提出的基于字符串数值Hash算法对字符串计算出一个哈希值,并根据哈希值结果进行搜索,实现对图像的分布式 搜索。For the first character string, the present invention can use the proposed Hash algorithm based on the character string value to calculate a hash value for the character string, and search according to the result of the hash value, so as to realize the distributed search of the image.
可选地,所述公路图像包括以下至少一项:公路的路面图像;公路的前方图像。Optionally, the road image includes at least one of the following: a road surface image of the road; a front image of the road.
可选地,本发明通过基于字符串数值Hash算法的公路图像分布式存储方法,基于字符串数值Hash算法解析包含公路的路面图像的第一字符串(比如名称)和/或公路的前方图像的第一字符串(比如名称)。Optionally, the present invention uses a method for distributed storage of road images based on a string value Hash algorithm, based on a string value Hash algorithm to analyze the first character string (such as a name) of the road surface image containing the road and/or the image in front of the road. The first string (such as a name).
可选地,本发明基于字符串数值哈希法实现对公路路面图像和前方图像的便捷快速查询,并可以在GIS***中进行综合显示。Optionally, the present invention realizes convenient and quick query of road surface images and forward images based on string numerical hash method, and can be comprehensively displayed in the GIS system.
可选地,所述第一字符串为不定长字符串。Optionally, the first character string is a character string of variable length.
可选地,本发明提供的基于哈希算法的搜索方式,适用于不定长字符串,避免不定长字符串通过字符串匹配存储导致的效率低的缺陷。Optionally, the hash algorithm-based search method provided by the present invention is applicable to strings of variable length, and avoids the defect of low efficiency caused by string matching and storage of strings of variable length.
可选地,本发明提供的公路图像分布式搜索方法,通过基于待存储的公路图像对应的第一字符串执行Hash计算,获取对应的映射哈希值,可以保证大量的公路图像均衡分布式存储,进而可以防止因数据存储不均衡而导致的图像检索效率下降,有效提高存储和搜索的效率。Optionally, in the road image distributed search method provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, and obtaining the corresponding mapped hash value, a large number of road images can be guaranteed to be stored in a balanced manner. , which in turn can prevent the image retrieval efficiency from decreasing due to unbalanced data storage, and effectively improve the efficiency of storage and search.
下面对本发明提供的公路图像分布式存储装置进行描述,下文描述的公路图像分布式存储装置与上文描述的公路图像分布式存储方法可相互对应参照。The road image distributed storage device provided by the present invention is described below, and the road image distributed storage device described below and the road image distributed storage method described above can be referred to in correspondence.
图5是本发明提供的公路图像分布式存储装置的结构示意图,如图5所示,该装置500包括:第一获取模块510,第一确定模块520,第二确定模块530,以及存储模块540。其中:FIG. 5 is a schematic structural diagram of a road image distributed storage device provided by the present invention. As shown in FIG. 5 , the device 500 includes: a first acquisition module 510, a first determination module 520, a second determination module 530, and a storage module 540 . in:
第一获取模块510用于获取待存储的公路图像对应的第一字符串,所述第一字符串用于表征所述公路图像的待存储内容。The first acquiring module 510 is configured to acquire a first character string corresponding to the road image to be stored, and the first character string is used to characterize the content to be stored of the road image.
第一确定模块520用于确定所述第一字符串对应的第一哈希值。The first determining module 520 is configured to determine a first hash value corresponding to the first character string.
第二确定模块530用于确定所述第一哈希值映射的映射哈希值。The second determining module 530 is configured to determine a mapping hash value of the first hash value mapping.
存储模块540用于将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。The storage module 540 is configured to use the mapping hash value as a distributed index of the first character string, and store the mapping hash value and the first character string.
本发明提供的公路图像分布式存储装置,通过基于待存储的公路图像对应的第一字符串执行Hash计算,获取对应的映射哈希值,可以保证大量的公路图像均衡分布式存储,进而可以防止因数据存储不均衡而导致的图像检索效率 下降,有效提高存储和搜索的效率。The road image distributed storage device provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, obtains the corresponding mapping hash value, which can ensure a balanced distributed storage of a large number of road images, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
下面对本发明提供的公路图像分布式搜索装置进行描述,下文描述的公路图像分布式搜索装置与上文描述的公路图像分布式搜索方法可相互对应参照。The road image distributed search device provided by the present invention is described below, and the road image distributed search device described below and the road image distributed search method described above can be referred to in correspondence.
图6是本发明提供的公路图像分布式搜索装置的结构示意图,如图6所示,该装置600包括:第二获取模块610,第三确定模块620,第四确定模块630,和第三获取模块640;其中:Fig. 6 is a schematic structural diagram of a road image distributed search device provided by the present invention. As shown in Fig. 6, the device 600 includes: a second obtaining module 610, a third determining module 620, a fourth determining module 630, and a third obtaining Module 640; where:
第二获取模块610用于获取待搜索的公路图像对应的第一字符串,所述第一字符串用于表征所述待搜索的公路图像的已存储的内容。The second acquiring module 610 is configured to acquire a first character string corresponding to the road image to be searched, and the first character string is used to characterize the stored content of the road image to be searched.
第三确定模块620用于确定所述第一字符串对应的第一哈希值。The third determining module 620 is configured to determine a first hash value corresponding to the first character string.
第四确定模块630用于确定所述第一哈希值映射的映射哈希值。The fourth determining module 630 is configured to determine a mapping hash value of the first hash value mapping.
第三获取模块640用于基于所述映射哈希值,获取所述待搜索的公路图像。The third acquiring module 640 is configured to acquire the road image to be searched based on the mapping hash value.
本发明提供的公路图像分布式搜索装置,通过基于待存储的公路图像对应的第一字符串执行Hash计算,获取对应的映射哈希值,可以保证大量的公路图像均衡分布式存储,进而可以防止因数据存储不均衡而导致的图像检索效率下降,有效提高存储和搜索的效率。The road image distributed search device provided by the present invention, by performing Hash calculation based on the first character string corresponding to the road image to be stored, obtains the corresponding mapped hash value, which can ensure a balanced distributed storage of a large number of road images, thereby preventing The efficiency of image retrieval due to unbalanced data storage is reduced, and the efficiency of storage and search is effectively improved.
图7示例了一种电子设备的实体结构示意图,如图7所示,该电子设备可以包括:处理器(processor)710、通信接口(Communications Interface)720、存储器(memory)730和通信总线740,其中,处理器710,通信接口720,存储器730通过通信总线740完成相互间的通信。处理器710可以调用存储器730中的逻辑指令,以执行公路图像分布式存储方法,该方法包括:FIG. 7 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 7, the electronic device may include: a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730 and a communication bus 740, Wherein, the processor 710 , the communication interface 720 , and the memory 730 communicate with each other through the communication bus 740 . The processor 710 can invoke logic instructions in the memory 730 to execute a method for distributed storage of road images, and the method includes:
获取待存储的公路图像对应的第一字符串,所述第一字符串用于表征所述公路图像的待存储内容。Acquiring a first character string corresponding to the road image to be stored, where the first character string is used to characterize the content to be stored of the road image.
确定所述第一字符串对应的第一哈希值。Determine a first hash value corresponding to the first character string.
确定所述第一哈希值映射的映射哈希值。A mapping hash value of the first hash value mapping is determined.
将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。The mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
或执行公路图像分布式搜索储方法,该方法包括:Or execute the road image distributed search storage method, the method includes:
获取待搜索的公路图像对应的第一字符串,所述第一字符串用于表征所述待搜索的公路图像的已存储的内容。A first character string corresponding to the road image to be searched is acquired, and the first character string is used to characterize the stored content of the road image to be searched.
确定所述第一字符串对应的第一哈希值。Determine a first hash value corresponding to the first character string.
确定所述第一哈希值映射的映射哈希值。A mapping hash value of the first hash value mapping is determined.
基于所述映射哈希值,获取所述待搜索的公路图像。Based on the mapping hash value, the road image to be searched is acquired.
此外,上述的存储器730中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 730 may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的公路图像分布式存储方法,该方法包括:On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can Executing the road image distributed storage method provided by each of the above methods, the method includes:
获取待存储的公路图像对应的第一字符串,所述第一字符串用于表征所述公路图像的待存储内容。Acquiring a first character string corresponding to the road image to be stored, where the first character string is used to characterize the content to be stored of the road image.
确定所述第一字符串对应的第一哈希值。Determine a first hash value corresponding to the first character string.
确定所述第一哈希值映射的映射哈希值。A mapping hash value of the first hash value mapping is determined.
将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。The mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
或执行公路图像分布式搜索储方法,该方法包括:Or execute the road image distributed search storage method, the method includes:
获取待搜索的公路图像对应的第一字符串,所述第一字符串用于表征所述待搜索的公路图像的已存储的内容。A first character string corresponding to the road image to be searched is acquired, and the first character string is used to characterize the stored content of the road image to be searched.
确定所述第一字符串对应的第一哈希值。Determine a first hash value corresponding to the first character string.
确定所述第一哈希值映射的映射哈希值。A mapping hash value of the first hash value mapping is determined.
基于所述映射哈希值,获取所述待搜索的公路图像。Based on the mapping hash value, the road image to be searched is acquired.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计 算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的公路图像分布式存储方法,该方法包括:In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the road image distributed storage method provided by the above-mentioned methods. Methods include:
获取待存储的公路图像对应的第一字符串,所述第一字符串用于表征所述公路图像的待存储内容。Acquiring a first character string corresponding to the road image to be stored, where the first character string is used to characterize the content to be stored of the road image.
确定所述第一字符串对应的第一哈希值。Determine a first hash value corresponding to the first character string.
确定所述第一哈希值映射的映射哈希值。A mapping hash value of the first hash value mapping is determined.
将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。The mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
或执行公路图像分布式搜索储方法,该方法包括:Or execute the road image distributed search storage method, the method includes:
获取待搜索的公路图像对应的第一字符串,所述第一字符串用于表征所述待搜索的公路图像的已存储的内容。A first character string corresponding to the road image to be searched is acquired, and the first character string is used to characterize the stored content of the road image to be searched.
确定所述第一字符串对应的第一哈希值。Determine a first hash value corresponding to the first character string.
确定所述第一哈希值映射的映射哈希值。A mapping hash value of the first hash value mapping is determined.
基于所述映射哈希值,获取所述待搜索的公路图像。Based on the mapping hash value, the road image to be searched is acquired.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施 例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; meanwhile, for those of ordinary skill in the art, according to the present invention Thoughts, there will be changes in specific implementation methods and application ranges. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

  1. 一种公路图像分布式存储方法,其特征在于,包括:A method for distributed storage of road images, characterized in that it comprises:
    获取待存储的公路图像对应的第一字符串;所述第一字符串用于表征所述公路图像的待存储内容;Acquiring a first character string corresponding to the road image to be stored; the first character string is used to characterize the content to be stored of the road image;
    确定所述第一字符串对应的第一哈希值;determining a first hash value corresponding to the first character string;
    确定所述第一哈希值映射的映射哈希值;determining a mapping hash value of said first hash value mapping;
    将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。The mapping hash value is used as a distributed index of the first character string, and the mapping hash value and the first character string are stored.
  2. 根据权利要求1所述的公路图像分布式存储方法,其特征在于,所述公路图像的待存储内容包括以下至少一项:The road image distributed storage method according to claim 1, wherein the content to be stored of the road image includes at least one of the following:
    所述公路图像的名称;the name of the road image;
    所述公路图像的采集年份;The collection year of the road image;
    所述公路图像的路线方向;the route direction of the road image;
    所述公路图像的起点位置信息;The starting position information of the road image;
    所述公路图像的终点位置信息;The terminal location information of the road image;
    所述公路图像的车道信息。Lane information of the road image.
  3. 根据权利要求1所述的公路图像分布式存储方法,其特征在于,所述公路图像包括以下至少一项:The road image distributed storage method according to claim 1, wherein the road image comprises at least one of the following:
    公路的路面图像;pavement images of highways;
    公路的前方图像。Image of the road ahead.
  4. 根据权利要求1-3任一项所述的公路图像分布式存储方法,其特征在于,所述第一字符串为不定长字符串。The road image distributed storage method according to any one of claims 1-3, wherein the first character string is a character string of variable length.
  5. 一种公路图像分布式搜索方法,其特征在于,包括:A distributed search method for road images, characterized in that it comprises:
    获取待搜索的公路图像对应的第一字符串;所述第一字符串用于表征所述待搜索的公路图像的已存储的内容;Acquiring a first character string corresponding to the road image to be searched; the first character string is used to characterize the stored content of the road image to be searched;
    确定所述第一字符串对应的第一哈希值;determining a first hash value corresponding to the first character string;
    确定所述第一哈希值映射的映射哈希值;determining a mapping hash value of said first hash value mapping;
    基于所述映射哈希值,获取所述待搜索的公路图像。Based on the mapping hash value, the road image to be searched is acquired.
  6. 根据权利要求5所述的公路图像分布式搜索方法,其特征在于,所述基于所述映射哈希值,搜索所述公路图像,包括:The road image distributed search method according to claim 5, wherein said searching said road image based on said mapping hash value comprises:
    确定所述映射哈希值对应的所有公路图像;determining all road images corresponding to the mapping hash value;
    从所述映射哈希值对应的所有公路图像中获取所述待搜索的公路图像。The road image to be searched is obtained from all road images corresponding to the mapping hash value.
  7. 根据权利要求5所述的公路图像分布式搜索方法,其特征在于,所述待搜索的公路图像的已存储的内容包括以下至少一项:The road image distributed search method according to claim 5, wherein the stored content of the road image to be searched includes at least one of the following:
    所述公路图像的名称;the name of the road image;
    所述公路图像的采集年份;The collection year of the road image;
    所述公路图像的路线方向;the route direction of the road image;
    所述公路图像的起点位置信息;The starting position information of the road image;
    所述公路图像的终点位置信息;The terminal location information of the road image;
    所述公路图像的车道信息。Lane information of the road image.
  8. 根据权利要求5所述的公路图像分布式搜索方法,其特征在于,所述公路图像包括以下至少一项:The road image distributed search method according to claim 5, wherein the road image comprises at least one of the following:
    公路的路面图像;pavement images of highways;
    公路的前方图像。Image of the road ahead.
  9. 一种公路图像分布式存储装置,其特征在于,包括:A road image distributed storage device, characterized in that it comprises:
    第一获取模块,用于获取待存储的公路图像对应的第一字符串;所述第一字符串用于表征所述公路图像的待存储内容;The first acquisition module is configured to acquire a first character string corresponding to the road image to be stored; the first character string is used to characterize the content to be stored of the road image;
    第一确定模块,用于确定所述第一字符串对应的第一哈希值;A first determining module, configured to determine a first hash value corresponding to the first character string;
    第二确定模块,用于确定所述第一哈希值映射的映射哈希值;A second determining module, configured to determine a mapping hash value of the first hash value mapping;
    存储模块,用于将所述映射哈希值作为所述第一字符串的分布式索引,存储所述映射哈希值和所述第一字符串。A storage module, configured to use the mapping hash value as a distributed index of the first character string, and store the mapping hash value and the first character string.
  10. 一种公路图像分布式搜索装置,其特征在于,包括:A road image distributed search device, characterized in that it includes:
    第二获取模块,用于获取待搜索的公路图像对应的第一字符串;所述第一字符串用于表征所述待搜索的公路图像的已存储的内容;The second acquisition module is configured to acquire a first character string corresponding to the road image to be searched; the first character string is used to characterize the stored content of the road image to be searched;
    第三确定模块,用于确定所述第一字符串对应的第一哈希值;A third determining module, configured to determine a first hash value corresponding to the first character string;
    第四确定模块,用于确定所述第一哈希值映射的映射哈希值;A fourth determining module, configured to determine a mapping hash value of the first hash value mapping;
    第三获取模块,用于基于所述映射哈希值,获取所述待搜索的公路图像。A third obtaining module, configured to obtain the road image to be searched based on the mapping hash value.
PCT/CN2022/131010 2022-06-09 2022-11-10 Distributed highway image storage method and apparatus, and distributed highway image search method and apparatus WO2023030553A2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
ZA2023/04009A ZA202304009B (en) 2022-06-09 2023-03-30 Distributed highway image storage method and apparatus, and distributed highway image search method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210651900 2022-06-09
CN202210651900.7 2022-06-09

Publications (2)

Publication Number Publication Date
WO2023030553A2 true WO2023030553A2 (en) 2023-03-09
WO2023030553A3 WO2023030553A3 (en) 2023-04-27

Family

ID=84299553

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/131010 WO2023030553A2 (en) 2022-06-09 2022-11-10 Distributed highway image storage method and apparatus, and distributed highway image search method and apparatus

Country Status (3)

Country Link
CN (1) CN115455218A (en)
WO (1) WO2023030553A2 (en)
ZA (1) ZA202304009B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116758757A (en) * 2023-08-18 2023-09-15 福建智涵信息科技有限公司 Highway maintenance inspection method, medium and equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9552378B2 (en) * 2013-11-21 2017-01-24 Adobe Systems Incorporated Method and apparatus for saving search query as metadata with an image
CN105608224A (en) * 2016-01-13 2016-05-25 广西师范大学 Orthogonal multilateral Hash mapping indexing method for improving massive data inquiring performance
US10706098B1 (en) * 2016-03-29 2020-07-07 A9.Com, Inc. Methods to present search keywords for image-based queries
US10558702B2 (en) * 2016-04-06 2020-02-11 Baidu Usa Llc Unified storage system for online image searching and offline image analytics
CN108228799B (en) * 2017-12-29 2021-09-28 北京奇虎科技有限公司 Object index information storage method and device
CN108629049A (en) * 2018-05-14 2018-10-09 芜湖岭上信息科技有限公司 A kind of image real-time storage and lookup device and method based on hash algorithm
CN109739433A (en) * 2018-11-27 2019-05-10 中科恒运股份有限公司 The method and terminal device of data processing
CN111382298B (en) * 2018-12-30 2021-04-20 北京房江湖科技有限公司 Image retrieval method and device based on picture content and electronic equipment
CN111339088A (en) * 2020-02-21 2020-06-26 苏宁云计算有限公司 Database division and table division method, device, medium and computer equipment
CN111428064B (en) * 2020-06-11 2020-09-29 深圳市诺赛特***有限公司 Small-area fingerprint image fast indexing method, device, equipment and storage medium
CN113051268A (en) * 2021-03-19 2021-06-29 中国工商银行股份有限公司 Data query method, data query device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116758757A (en) * 2023-08-18 2023-09-15 福建智涵信息科技有限公司 Highway maintenance inspection method, medium and equipment
CN116758757B (en) * 2023-08-18 2023-11-14 福建智涵信息科技有限公司 Highway maintenance inspection method, medium and equipment

Also Published As

Publication number Publication date
WO2023030553A3 (en) 2023-04-27
CN115455218A (en) 2022-12-09
ZA202304009B (en) 2023-04-26

Similar Documents

Publication Publication Date Title
US11550826B2 (en) Method and system for generating a geocode trie and facilitating reverse geocode lookups
CN108628811B (en) Address text matching method and device
WO2016091174A1 (en) Search method and apparatus for graph data
CN107656913A (en) Map point of interest address extraction method, apparatus, server and storage medium
JP6752475B2 (en) Account mapping method and device based on address information
US9971775B2 (en) Method of and system for parameter-free discovery and recommendation of areas-of-interest
US10140516B2 (en) Event-based image management using clustering
US20120109942A1 (en) Identifying physical locations of entities
WO2017140232A1 (en) Method, apparatus, and electronic device for pushing travel information
CN104699835A (en) Method and device used for determining webpages including POI (point of interest) data
WO2023030553A2 (en) Distributed highway image storage method and apparatus, and distributed highway image search method and apparatus
WO2022247165A1 (en) Coding method and apparatus for geographic location area, and method and apparatus for establishing coding model
US20230063099A1 (en) Method and apparatus for correcting positioning information, and storage medium
US9396584B2 (en) Obtaining geographic-location related information based on shadow characteristics
CN109492066B (en) Method, device, equipment and storage medium for determining branch names of points of interest
US9811539B2 (en) Hierarchical spatial clustering of photographs
CN110442659B (en) Region division method and device
WO2021164131A1 (en) Map display method and system, computer device and storage medium
US10614034B2 (en) Crowd sourced data sampling at the crowd
JP7476290B2 (en) Road information update method, device, electronic device, recording medium, and computer program
CN110659540A (en) Traffic light detection method and device
CN111831827B (en) Data processing method and device, electronic equipment and storage medium
CN114610938A (en) Remote sensing image retrieval method and device, electronic equipment and computer readable medium
CN103973526B (en) Positioning method and device based on network topology
JP5806364B1 (en) Burst area extraction apparatus, burst area extraction method, and burst area extraction program