CN115455218A - Road image distributed storage method, search method and device - Google Patents
Road image distributed storage method, search method and device Download PDFInfo
- Publication number
- CN115455218A CN115455218A CN202210957034.4A CN202210957034A CN115455218A CN 115455218 A CN115455218 A CN 115455218A CN 202210957034 A CN202210957034 A CN 202210957034A CN 115455218 A CN115455218 A CN 115455218A
- Authority
- CN
- China
- Prior art keywords
- road image
- character string
- hash value
- road
- image
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 90
- 238000013507 mapping Methods 0.000 claims abstract description 92
- 238000004590 computer program Methods 0.000 claims description 17
- 238000013500 data storage Methods 0.000 abstract description 12
- 238000004364 calculation method Methods 0.000 abstract description 8
- 238000004422 calculation algorithm Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000012423 maintenance Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000007547 defect Effects 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 238000013480 data collection Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 201000010099 disease Diseases 0.000 description 2
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/5866—Retrieval 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
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 invention provides a distributed storage method, a search method and a device for road images, wherein the distributed storage method for the road images comprises the following steps: acquiring a first character string corresponding to a road image to be stored, wherein the first character string is used for representing the content to be stored of the road image; determining a first hash value corresponding to the first character string; determining a mapped hash value of the first hash value mapping; and taking the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string. According to the method and the device, the Hash calculation is executed based on the first character string corresponding to the road image to be stored, the corresponding mapping Hash value is obtained, a large amount of road images can be guaranteed to be stored in a balanced and distributed mode, further, the image retrieval efficiency reduction caused by unbalanced data storage can be prevented, and the storage and search efficiency is effectively improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a distributed storage method, a search method and a device for road images.
Background
In order to facilitate the maintenance and inspection work of the highway, a user is supported to inquire historical state information of the road surface.
The user can upload the collected road pavement and front high-definition image photos to a server file system of the GIS system, and the image path information is stored in a GIS platform database system. After the historical data of the road surface image and the front image are imported into the system, the system needs to support the user to conveniently perform functions of full-network display, designated display, contrast display and the like on the road surface front image information and the road surface information in the GIS system, and support the user to conveniently inquire the front image and the historical image corresponding to the position by clicking a specific point in the GIS system. The existing storage and search methods are all performed in a character string matching mode, so that the storage and search efficiency is reduced.
Disclosure of Invention
The invention provides a distributed storage method, a distributed search method and a distributed search device for road images, which are used for overcoming the defect that the storage and search efficiency is reduced in the prior art and improving the storage and search efficiency.
In a first aspect, the present invention provides a distributed storage method for road images, including:
acquiring a first character string corresponding to a road image to be stored, wherein the first character string is used for representing the content to be stored of the road image;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and taking the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string.
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:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination 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:
a pavement image of a highway;
front image of road
Optionally, according to the distributed storage method for road images provided by the present invention, the first character string is a character string with an indefinite length.
In a first aspect, the present invention provides a distributed road image search method, including:
acquiring a first character string corresponding to a road image to be searched, wherein the first character string is used for representing the stored content of the road image to be searched;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and acquiring the road image to be searched based on the mapping hash value.
Optionally, according to the road image distributed search method provided by the present invention, the searching the road image based on the mapping hash value includes:
determining all road images corresponding to the mapping hash value;
and acquiring the road image to be searched from all the road images corresponding to the mapping hash value.
Optionally, according to the distributed road image searching method provided by the present invention, the stored content of the road image to be searched includes at least one of the following:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination location information of the road image;
lane information of the road image.
Optionally, according to the road image distributed search method provided by the present invention, the road image includes at least one of the following:
a pavement image of a highway;
front image of road
Optionally, according to the road image distributed search method provided by the present invention, the first character string is a character string of indefinite length.
In a third aspect, the present invention provides a distributed storage apparatus for road images, comprising:
the road image storage device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a first character string corresponding to a road image to be stored, and the first character string is used for representing the content to be stored of the road image;
the first determining module is used for determining a first hash value corresponding to the first character string;
a second determining module for determining a mapped hash value of the first hash value mapping;
and the storage module is used for taking the mapping hash value as a distributed index of the first character string and storing the mapping hash value and the first character string.
In a fourth aspect, the present invention provides a distributed road image search apparatus, comprising:
the second acquisition module is used for acquiring a first character string corresponding to the road image to be searched, wherein the first character string is used for representing 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 mapped by the first hash value;
and the third acquisition module is used for acquiring the road image to be searched based on the mapping hash value.
In a fifth aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the road image distributed storage method according to the first aspect, or implements the road image distributed search method according to the second aspect.
In a sixth aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the road image distributed storage method according to the first aspect, or implements the road image distributed search method according to the second aspect.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a road image distributed storage method as described in the first aspect, or implements a road image distributed search method as described in the second aspect.
According to the highway image distributed storage method, the highway image distributed search method and the highway image distributed search device, the Hash calculation is executed based on the first character string corresponding to the highway image to be stored, the corresponding mapping Hash value is obtained, a large number of highway images can be guaranteed to be stored in a balanced and distributed mode, further, the image retrieval efficiency can be prevented from being reduced due to unbalanced data storage, and the storage and search efficiency can be effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a distributed storage method for road images provided by the present invention;
FIG. 2 is a schematic flow chart of a distributed road image searching method provided by the present invention;
FIG. 3 is one of the schematic diagrams of searching road images;
FIG. 4 is a second schematic diagram of searching a road image;
FIG. 5 is a schematic structural diagram of a distributed storage apparatus for road images provided by the present invention;
FIG. 6 is a schematic structural diagram of a distributed searching apparatus for road images according to the present invention;
fig. 7 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes a distributed storage method, a search method and a device for road images according to the present invention with reference to fig. 1 to 7.
Fig. 1 is a schematic flow chart of a distributed storage method for road images provided by the present invention, as shown in fig. 1, the method includes the following steps:
and 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.
Specifically, in order to facilitate the highway maintenance inspection work, a user is supported to inquire historical state information of a highway pavement, and a Geographic Information System (GIS) related to business can be established by a highway maintenance department and used for comprehensively displaying historical state data of a highway object under jurisdiction. On the platform, a user can upload collected road pavement and front high-definition image photos to a server file system of a GIS system, and image path information is stored in a GIS platform database system. With the lapse of time, the amount of historical image data stored in the GIS system will increase substantially, which further causes the rapid decrease of image storage efficiency and even affects the use experience of the user on the system. The invention provides a distributed storage method of a road image based on a character string numerical value Hash algorithm, which realizes distributed storage of historical data of the road image.
Optionally, determining the first hash value corresponding to the first character string may be implemented by the following algorithm:
a first hash value = ∑ (ASCII (each string byte in the first string)) for the first string;
optionally, determining the mapped hash value of the first hash value mapping may be implemented by the following algorithm:
mapped hash value = first hash value% N, where N is the number of distributed data storage units, typically determined by existing data storage system overall design.
Optionally, after the mapping hash value is obtained, the mapping hash value may be used as an index of the first character string and stored together with the first character string;
optionally, the first character string of one road image (i.e. the road image) corresponds to only one mapping hash value; one mapping hash value corresponds to a plurality of road images, but the number of the road images corresponding to each mapping hash value is small; under 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 the road images corresponding to different mapping hash values is uniform, so that distributed storage of a large number of road images is realized.
In one embodiment, the hash algorithm that specifically implements the above steps may be as follows, and distributed storage of the acquired road surface image and the front image may be implemented based on an output result of the algorithm, and it is ensured that the images can be uniformly stored in each storage unit:
according to the highway image distributed storage method provided by the invention, the Hash calculation is executed based on the first character string corresponding to the highway image to be stored, and the corresponding mapping Hash value is obtained, so that a large number of highway images can be ensured to be stored in a balanced and distributed manner, further, the image retrieval efficiency reduction caused by unbalanced data storage can be prevented, and the storage and search efficiency can be effectively improved.
Optionally, the content to be stored of the road image includes at least one of:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination location information of the road image;
lane information of the road image.
Alternatively, the road image is usually named with a first character string including a road name, a data collection year, an up-down direction, start position information, and end position information.
Optionally, the to-be-stored content of the road image may be embodied by a first character string corresponding to the road image, which may be referred to as a name of the road image, and may specifically embody any one or more of the following:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination location information of the road image;
lane information of the road image.
Optionally, the method can be applied to various types of image naming strategies, and has good applicability, such as being applicable to a pile number information naming mode and an encoder pulse number naming mode, and the method is not limited by the invention;
in one embodiment, the naming method of the peg number information is taken as an example, and the naming method can be expressed as CFCS01A-001+328000-001+324000-2022, wherein the meaning of each field is as follows:
"CFCS01" denotes a route code;
"a" indicates the uplink and downlink information of the road, if "a" indicates the uplink (increasing direction of stake number), and if "B" indicates the downlink (decreasing direction of stake number);
"001+328000" indicates end position information of photograph shooting, in which "001" indicates the number of piles, i.e., kilometers, "328" indicates meters in one kilometer, and "000" indicates millimeters in one meter;
"001+324000" represents the start position information of photo taking, specifically defining see the end position information;
2022 denotes the year of sampling.
Optionally, the road image may further reflect related information used for road maintenance, such as disease information of the road, and the user may obtain the related information of the road through display of the road image to perform road detection.
Aiming at the first character string, the invention can adopt the character string numerical value Hash algorithm to calculate a Hash value for the character string, and stores the image on the corresponding memory unit according to the Hash value result, thereby realizing the distributed storage of the image.
Optionally, the road image comprises at least one of:
a pavement image of a highway;
the front image of the road.
Optionally, the present invention parses a first character string (such as a name) including a road surface image of a road and/or a first character string (such as a name) of a front image of the road based on a character string numerical Hash algorithm (Hash algorithm) by a road image distributed storage method based on the character string numerical Hash algorithm.
Optionally, the method realizes convenient and fast storage of the road surface image and the front image based on a character string numerical hash method, and can perform comprehensive display in a GIS system after a user searches.
Optionally, the first character string is a character string of indefinite length.
Alternatively, since the road route name is generally an indefinite length character string, the first character string of the stored road image is also an indefinite length character string.
The storage mode based on the Hash algorithm is suitable for the character strings with indefinite length, and the defect of low efficiency caused by matching and storing the character strings with indefinite length is avoided.
According to the highway image distributed storage method provided by the invention, the Hash calculation is executed based on the first character string corresponding to the highway image to be stored, and the corresponding mapping Hash value is obtained, so that a large number of highway images can be ensured to be stored in a balanced and distributed manner, further, the image retrieval efficiency reduction caused by unbalanced data storage can be prevented, and the storage and search efficiency can be effectively improved.
Fig. 2 is a schematic flowchart of a distributed road image searching method provided by the present invention, and as shown in fig. 2, the method includes the following steps:
200, acquiring a first character string corresponding to a road image to be searched, wherein the first character string is used for representing the stored content of the road image to be searched;
and step 230, acquiring the road image to be searched based on the mapping hash value.
Specifically, in order to facilitate the highway maintenance inspection work, a user is supported to inquire historical state information of a highway pavement, and a Geographic Information System (GIS) related to business can be established by a highway maintenance department and used for comprehensively displaying historical state data of a highway object administered by the highway maintenance department. On the platform, a user can upload collected road pavement and front high-definition image photos to a server file system for deploying a GIS system, image path information is stored in a GIS platform database system, and the user can finish searching through the GIS system when searching images. With the lapse of time, the amount of historical image data stored in the GIS system will increase substantially, which leads to the rapid decrease of the image query efficiency and even influences the use experience of the user on the system. The invention provides a distributed road image searching method based on a character string numerical value Hash algorithm, which realizes distributed searching of historical road image data.
Optionally, determining the first hash value corresponding to the first character string may be implemented by the following algorithm:
a first hash value = ∑ (ASCII (each string byte in the first string)) corresponding to the first string;
optionally, determining the mapped hash value of the first hash value mapping may be implemented by the following algorithm:
mapped hash value = first hash value% N, where N is the number of distributed data storage units, typically determined by existing data storage system overall design.
Optionally, after the mapping hash value is obtained, the mapping hash value may be used as an index of the first character string and stored together with the first character string;
optionally, the first character string of one road image (i.e. the road image) corresponds to only one mapping hash value; one mapping hash value corresponds to a plurality of road images, but the number of the road images corresponding to each mapping hash value is small; in a scene of a large number of road images, each mapping hash value corresponds to a very small number of road images, the number of the road images corresponding to different mapping hash values is uniform, and when the mapping hash value corresponding to the first character string is obtained during searching, the number of the character strings corresponding to the mapping hash value is small, so that the road images to be searched can be searched very quickly and conveniently, namely, the distributed searching of a large number of road images is realized.
According to the road image distributed searching method provided by the invention, the Hash calculation is executed based on the first character string corresponding to the road image to be stored, so that the corresponding mapping Hash value is obtained, a large amount of road images can be ensured to be stored in a balanced and distributed manner, further, the image retrieval efficiency reduction caused by unbalanced data storage can be prevented, and the searching efficiency is effectively improved.
Optionally, the searching the road image based on the mapping hash value includes:
determining all road images corresponding to the mapping hash value;
and acquiring the road image to be searched from all the 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 may be determined, and further, the first character string and the character string corresponding to the mapping hash value may be subjected to character string matching, so as to obtain the road image to be searched.
In the invention, because the number of road images corresponding to each mapping hash value is less, the times of character string matching during searching the first character string are less, and the searching efficiency and difficulty are further improved.
Optionally, the stored content of the road image to be searched includes at least one of:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination location information of the road image;
lane information of the road image.
Alternatively, the road image is usually named with a first character string including a road name, a data collection year, an up-down direction, start position information, and end position information.
Optionally, the to-be-stored content of the road image may be embodied by a first character string corresponding to the road image, which may be referred to as a name of the road image, and may specifically embody any one or more of the following:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination location information of the road image;
lane information of the road image.
Optionally, the method can be applied to various types of image naming strategies, and has good applicability, such as being applicable to a pile number information naming mode and an encoder pulse number naming mode, and the method is not limited by the invention;
in one embodiment, the naming method of the peg number information is taken as an example, and the naming method can be expressed as CFCS01A-001+328000-001+324000-2022, wherein the meaning of each field is as follows:
"CFCS01" denotes a route code;
"a" indicates the information of the up-and-down road, if "a" indicates the up-going (increasing direction of stake number), if "B" indicates the down-going (decreasing direction of stake number);
"001+328000" represents the end position information of photo taking, wherein "001" represents the number of piles, i.e., kilometers, "328" represents the number of meters in one kilometer, and "000" represents the number of millimeters in one meter;
"001+324000" represents the start position information of photo taking, specifically defining see the end position information;
2022 denotes the year of sampling.
Optionally, the road image may further reflect related information used for road maintenance, such as road disease information, and the user may obtain the related information of the road through displaying the road image to perform road detection.
In one embodiment, fig. 3 is one of schematic diagrams for searching road images, and fig. 4 is a second of schematic diagrams for searching road images; as shown in fig. 3 and 4, information such as the name or year of a road image to be searched for (which may each be represented by a first character string) may be input; then the system can obtain a first character string of the road image to be searched, further obtain a first hash value corresponding to the first character string, and obtain a mapping hash value corresponding to the first hash value in a mapping manner, that is, all road images corresponding to the mapping hash value can be determined, and finally, the road image which needs to be searched by the user is determined in a character string matching manner and displayed.
Aiming at the first character string, the invention can adopt the proposed character string numerical value based Hash algorithm to calculate a Hash value for the character string, and searches according to the Hash value result, thereby realizing the distributed search of the image.
Optionally, the road image comprises at least one of:
a pavement image of a highway;
the image of the front of the road.
Alternatively, the present invention resolves a first character string (such as a name) including a road surface image of a road and/or a first character string (such as a name) of a front image of the road based on a string numerical Hash algorithm by a road image distributed storage method based on the string numerical Hash algorithm.
Optionally, the method is based on a character string numerical hash method to realize convenient and rapid query of the road surface image and the front image, and can be comprehensively displayed in a GIS (geographic information system).
Optionally, the first character string is a character string of indefinite length.
Optionally, the search mode based on the hash algorithm provided by the invention is suitable for the character string with the indefinite length, and the defect of low efficiency caused by matching and storing the character string with the indefinite length is avoided.
Optionally, in the road image distributed search method provided by the invention, the Hash calculation is executed based on the first character string corresponding to the road image to be stored to obtain the corresponding mapping Hash value, so that a large amount of road images can be ensured to be stored in a balanced and distributed manner, further, the image retrieval efficiency is prevented from being reduced due to unbalanced data storage, and the storage and search efficiency is effectively improved.
The following describes the distributed storage apparatus for road images provided by the present invention, and the distributed storage apparatus for road images described below and the distributed storage method for road images described above may be referred to correspondingly.
Fig. 5 is a schematic structural diagram of a road image distributed storage apparatus provided in the present invention, and as shown in fig. 5, the apparatus 500 includes: a first obtaining module 510, a first obtaining module 520, a second determining module 530, and a storing module 540; wherein:
the first obtaining module 510 is configured to obtain a first character string corresponding to a road image to be stored, where the first character string is used to represent a 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;
a second determining module 530 for determining a mapped hash value of the first hash value mapping;
the storage module 540 is configured to store the mapping hash value and the first character string by using the mapping hash value as a distributed index of the first character string.
According to the road image distributed storage device provided by the invention, the Hash calculation is executed based on the first character string corresponding to the road image to be stored, and the corresponding mapping Hash value is obtained, so that a large amount of road images can be ensured to be stored in a balanced and distributed manner, further, the image retrieval efficiency reduction caused by unbalanced data storage can be prevented, and the storage and search efficiency can be effectively improved.
The following describes the distributed road image searching apparatus provided by the present invention, and the distributed road image searching apparatus described below and the distributed road image searching method described above may be referred to correspondingly.
Fig. 6 is a schematic structural diagram of a distributed road image searching apparatus according to the present invention, and as shown in fig. 6, the apparatus 600 includes: a second obtaining module 610, a second obtaining module 620, a second obtaining module 630, and a second obtaining module 640; wherein:
the second obtaining module 610 is configured to obtain a first character string corresponding to a road image to be searched, where the first character string is used to represent stored content of the road image to be searched;
the second obtaining module 620 is configured to determine a first hash value corresponding to the first character string;
the second obtaining module 630 is configured to determine a mapping hash value of the first hash value mapping;
the second obtaining module 640 is configured to obtain the road image to be searched based on the mapping hash value.
According to the road image distributed searching device provided by the invention, the Hash calculation is executed based on the first character string corresponding to the road image to be stored, the corresponding mapping Hash value is obtained, a large amount of road images can be ensured to be stored in a balanced and distributed manner, the image retrieval efficiency reduction caused by unbalanced data storage can be further prevented, and the storage and searching efficiency is effectively improved.
Fig. 7 illustrates a physical structure diagram of an electronic device, and 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 via the communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a road image distributed storage method comprising: acquiring a first character string corresponding to a road image to be stored, wherein the first character string is used for representing the content to be stored of the road image;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and taking the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string.
Or executing a road image distributed search storage method, wherein the method comprises the following steps:
acquiring a first character string corresponding to a road image to be searched, wherein the first character string is used for representing the stored content of the road image to be searched;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and acquiring the road image to be searched based on the mapping hash value.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, a computer can execute the road image distributed storage method provided by the above methods, and the method includes: acquiring a first character string corresponding to a road image to be stored, wherein the first character string is used for representing the content to be stored of the road image;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and taking the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string.
Or executing a road image distributed search storage method, wherein the method comprises the following steps:
acquiring a first character string corresponding to a road image to be searched, wherein the first character string is used for representing the stored content of the road image to be searched;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and acquiring the road image to be searched based on the mapping hash value.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute a road image distributed storage method provided by the above methods, the method including: acquiring a first character string corresponding to a road image to be stored, wherein the first character string is used for representing the content to be stored of the road image;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and taking the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string.
Or executing a road image distributed search storage method, wherein the method comprises the following steps:
acquiring a first character string corresponding to a road image to be searched, wherein the first character string is used for representing the stored content of the road image to be searched;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and acquiring the road image to be searched based on the mapping hash value.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (14)
1. A road image distributed storage method is characterized by comprising the following steps:
acquiring a first character string corresponding to a road image to be stored, wherein the first character string is used for representing the content to be stored of the road image;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and taking the mapping hash value as a distributed index of the first character string, and storing the mapping hash value and the first character string.
2. The distributed road image storage method according to claim 1, wherein the contents to be stored of the road image comprise at least one of the following:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination location information of the road image;
lane information of the road image.
3. The road image distributed storage method according to claim 1, wherein the road image comprises at least one of:
a pavement image of a highway;
the image of the front of the road.
4. The distributed storage method for road images according to any one of claims 1 to 3, wherein the first character string is a character string of indefinite length.
5. A road image distributed searching method is characterized by comprising the following steps:
acquiring a first character string corresponding to a road image to be searched, wherein the first character string is used for representing the stored content of the road image to be searched;
determining a first hash value corresponding to the first character string;
determining a mapped hash value of the first hash value mapping;
and acquiring the road image to be searched based on the mapping hash value.
6. The road image distributed search method according to claim 5, wherein the searching the road image based on the mapping hash value includes:
determining all road images corresponding to the mapping hash value;
and acquiring the road image to be searched from all the road images corresponding to the mapping hash value.
7. The road image distributed search method according to claim 5, wherein the stored contents of the road image to be searched include at least one of:
a name of the road image;
the year of acquisition of the road image;
a route direction of the road image;
starting point position information of the road image;
destination location information of the road image;
lane information of the road image.
8. The road image distributed search method according to claim 5, wherein the road image comprises at least one of:
a pavement image of a highway;
the image of the front of the road.
9. The road image distributed search method according to any one of claims 5 to 8, wherein the first character string is a character string of indefinite length.
10. A road image distributed storage apparatus, comprising:
the road image storage device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a first character string corresponding to a road image to be stored, and the first character string is used for representing the content to be stored of the road image;
the first determining module is used for determining a first hash value corresponding to the first character string;
a second determining module for determining a mapped hash value of the first hash value mapping;
and the storage module is used for taking the mapping hash value as a distributed index of the first character string and storing the mapping hash value and the first character string.
11. A road image distributed search device is characterized by comprising:
the second acquisition module is used for acquiring a first character string corresponding to the road image to be searched, wherein the first character string is used for representing 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 mapped by the first hash value;
and the third acquisition module is used for acquiring the road image to be searched based on the mapping hash value.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the road image distributed storage method according to any one of claims 1 to 4 or implements the road image distributed search method according to any one of claims 5 to 9 when executing the program.
13. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the road image distributed storage method according to any one of claims 1 to 4, or implements the road image distributed search method according to any one of claims 5 to 9.
14. A computer program product comprising a computer program, wherein the computer program, when being executed by a processor, implements a road image distributed storage method according to any one of claims 1 to 4, or implements a road image distributed search method according to any one of claims 5 to 9.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2022106519007 | 2022-06-09 | ||
CN202210651900 | 2022-06-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115455218A true CN115455218A (en) | 2022-12-09 |
Family
ID=84299553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210957034.4A Pending CN115455218A (en) | 2022-06-09 | 2022-08-10 | Road image distributed storage method, search method and device |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN115455218A (en) |
WO (1) | WO2023030553A2 (en) |
ZA (1) | ZA202304009B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116758757B (en) * | 2023-08-18 | 2023-11-14 | 福建智涵信息科技有限公司 | Highway maintenance inspection method, medium and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105608224A (en) * | 2016-01-13 | 2016-05-25 | 广西师范大学 | Orthogonal multilateral Hash mapping indexing method for improving massive data inquiring performance |
CN108629049A (en) * | 2018-05-14 | 2018-10-09 | 芜湖岭上信息科技有限公司 | A kind of image real-time storage and lookup device and method based on hash algorithm |
CN111339088A (en) * | 2020-02-21 | 2020-06-26 | 苏宁云计算有限公司 | Database division and table division method, device, medium and computer equipment |
US10706098B1 (en) * | 2016-03-29 | 2020-07-07 | A9.Com, Inc. | Methods to present search keywords for image-based queries |
CN111382298A (en) * | 2018-12-30 | 2020-07-07 | 贝壳技术有限公司 | Image retrieval method and device based on picture content and electronic equipment |
CN111428064A (en) * | 2020-06-11 | 2020-07-17 | 深圳市诺赛特系统有限公司 | Small-area fingerprint image fast indexing method, device, equipment and storage medium |
Family Cites Families (5)
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 |
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 |
CN109739433A (en) * | 2018-11-27 | 2019-05-10 | 中科恒运股份有限公司 | The method and terminal device of data processing |
CN113051268A (en) * | 2021-03-19 | 2021-06-29 | 中国工商银行股份有限公司 | Data query method, data query device, electronic equipment and storage medium |
-
2022
- 2022-08-10 CN CN202210957034.4A patent/CN115455218A/en active Pending
- 2022-11-10 WO PCT/CN2022/131010 patent/WO2023030553A2/en unknown
-
2023
- 2023-03-30 ZA ZA2023/04009A patent/ZA202304009B/en unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN108629049A (en) * | 2018-05-14 | 2018-10-09 | 芜湖岭上信息科技有限公司 | A kind of image real-time storage and lookup device and method based on hash algorithm |
CN111382298A (en) * | 2018-12-30 | 2020-07-07 | 贝壳技术有限公司 | 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 |
CN111428064A (en) * | 2020-06-11 | 2020-07-17 | 深圳市诺赛特系统有限公司 | Small-area fingerprint image fast indexing method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
猿媛之家 等: "《RocketMQ技术内幕RocketMQ架构设计与实现原理第2版》", pages: 106 - 108 * |
Also Published As
Publication number | Publication date |
---|---|
ZA202304009B (en) | 2023-04-26 |
WO2023030553A2 (en) | 2023-03-09 |
WO2023030553A3 (en) | 2023-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10650236B2 (en) | Road detecting method and apparatus | |
US10540794B2 (en) | Three-dimensional annotations for street view data | |
US8503794B2 (en) | Data difference guided image capturing | |
US20100316302A1 (en) | Adaptive Image Maps | |
KR102117773B1 (en) | Method and apparatus for mapping an account based on address information | |
CN107101641B (en) | The adaptively method that the tracing point of drawing scale is shown | |
CN102880726B (en) | A kind of image filtering method and system | |
CN103885990B (en) | Searching method and system | |
US9396584B2 (en) | Obtaining geographic-location related information based on shadow characteristics | |
CN109345946B (en) | Map data display method, map data display device, electronic equipment and computer storage medium | |
CN109636868B (en) | High-precision image map online construction method and device based on WebGIS and deep learning | |
CN115455218A (en) | Road image distributed storage method, search method and device | |
US20160117398A1 (en) | Systems and methods for extracting similar group elements | |
CN108494728B (en) | Method, device, equipment and medium for creating blacklist library for preventing traffic hijacking | |
CN114550051A (en) | Vehicle loss detection method and device, computer equipment and storage medium | |
CN114239508A (en) | Form restoration method and device, storage medium and electronic equipment | |
US9158852B2 (en) | Geographical area correlated websites | |
CN110060472B (en) | Road traffic event positioning method, system, readable storage medium and device | |
CN113343012B (en) | News matching method, device, equipment and storage medium | |
CN111985471B (en) | License plate positioning method, license plate positioning device and storage medium | |
CN104850600A (en) | Method and device for searching images containing faces | |
CN111369624B (en) | Positioning method and device | |
CN111831827B (en) | Data processing method and device, electronic equipment and storage medium | |
KR101028767B1 (en) | A Method For Updating Geographic Image Information | |
EP1667036B1 (en) | Method of Finding a Search String in a Document for Viewing on a Mobile Communication Device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20221209 |