CN112818276A - Interest point picture processing method and device, electronic equipment and storage medium - Google Patents
Interest point picture processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112818276A CN112818276A CN201911128370.2A CN201911128370A CN112818276A CN 112818276 A CN112818276 A CN 112818276A CN 201911128370 A CN201911128370 A CN 201911128370A CN 112818276 A CN112818276 A CN 112818276A
- Authority
- CN
- China
- Prior art keywords
- link
- interest
- point
- picture
- data slice
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title description 15
- 238000012545 processing Methods 0.000 claims abstract description 51
- 238000000034 method Methods 0.000 claims abstract description 44
- 230000015654 memory Effects 0.000 claims description 18
- 238000013507 mapping Methods 0.000 claims description 7
- 239000000126 substance Substances 0.000 claims 1
- 230000008859 change Effects 0.000 abstract description 9
- 238000013461 design Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000015572 biosynthetic process Effects 0.000 description 3
- 239000012634 fragment Substances 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001815 facial effect Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 101100400452 Caenorhabditis elegans map-2 gene Proteins 0.000 description 1
- 101150064138 MAP1 gene Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 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/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
-
- 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/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9558—Details of hyperlinks; Management of linked annotations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses a method and a device for processing a point of interest picture, electronic equipment and a storage medium, and relates to the technical field of data processing. The specific implementation scheme is as follows: the method comprises the steps of firstly receiving an obtaining request of the point of interest data, wherein the obtaining request comprises identification information of the point of interest, then obtaining a target picture file according to the obtaining request, wherein the target picture file comprises a point of interest picture and associated information of the point of interest picture, and finally displaying the point of interest picture and the associated information. According to the method for processing the point of interest picture, the target picture file carries the associated information, so that the problem that the point of interest picture does not accord with the picture associated information when the point of interest picture is displayed due to the change of external information when the information is displayed is avoided.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a point of interest picture, an electronic device, and a storage medium.
Background
With the continuous development of mobile communication technology and mobile intelligent terminals, map applications have become an important entrance to the mobile internet.
In the prior art, a storage manner of picture information corresponding to a Point of Interest (POI) in a map is as follows: the picture data of the picture is stored in the cloud storage, and the picture associated information (POI type information, POI association relation, POI description information and the like) is stored in the database. It can be seen that the storage mode of the POI picture in the current map is that the POI picture is associated with, and only the related picture tag is added for cloud storage, and then the cloud carries out consistency check with the picture encryption check code.
However, in the above storage method for the POI picture, when the picture associated information stored in the database is changed, the picture data in the cloud server needs to be updated synchronously, and if the picture data in the cloud server is not updated timely, the picture corresponding to the POI does not match the picture associated information.
Disclosure of Invention
The application provides a point of interest picture processing method and device, electronic equipment and a storage medium, and aims to solve the problem that picture associated information stored in a database is changed, and if picture data in a cloud server is not updated timely, a picture corresponding to a POI does not conform to the picture associated information.
In a first aspect, the present application provides a method for processing a point of interest map, including:
receiving an acquisition request of the point of interest data, wherein the acquisition request comprises identification information of the point of interest;
acquiring a target picture file according to the acquisition request, wherein the target picture file comprises the point of interest picture and the associated information of the point of interest picture;
and displaying the interest point picture and the associated information.
In this embodiment, by receiving an obtaining request of point of interest data, and then obtaining a corresponding target picture file according to identification information of a point of interest in the obtaining request, where the target picture file includes a point of interest picture and associated information of the point of interest picture, the obtained point of interest picture and associated information of the point of interest picture are displayed, and the target picture file carries the associated information, so that when information is displayed, a problem that the point of interest picture does not conform to the picture associated information when displayed due to a change of external information is avoided.
In a possible design, the method for processing a point of interest map further includes:
receiving an update request of the point of interest data, wherein the update request comprises an interest point update picture and update associated information of the interest point update picture;
and generating an updated picture file according to the interest point updated picture and the updated associated information.
In this embodiment, by receiving an update request of the point of interest data, and generating an update picture file according to the point of interest update picture and the update associated information in the update request, the data of the same point of interest can be updated in stages, so that the map user can obtain the latest picture information.
In one possible design, after generating an updated picture file according to the updated picture of the interest point and the update associated information, the method further includes:
generating a forward link for connecting the current updated picture file to a last updated picture file, wherein the updated picture file comprises the forward link;
and generating a backward link, wherein the backward link is used for connecting the last updated picture file to the current updated picture file, and the last updated picture file comprises the backward link.
In the embodiment, the forward link and the backward link are generated, so that the chain structure between the picture files is established according to the time sequence, the picture files have the time sequence relationship due to the fact that the picture files record the front picture file and the back picture file, the time information of the POI attached picture can be effectively displayed according to the time sequence relationship, and when all the picture files of one POI can be stored in the set of mode, the historical change of one POI can be effectively and reasonably displayed by the picture.
In one possible design, after the generating the update picture file, the method further includes:
slicing the updated picture file to form a data slice set, wherein the data slice set comprises a plurality of data slices which are arranged in order;
generating a first link and a second link for a first data slice, the first link for connecting the first data slice to a previous data slice, the second link for connecting the first data slice to a second data slice, wherein the second data slice is a next data slice of the first data slice in the set of data slices.
In this embodiment, a picture file is sliced to form a data slice set, and a chain connection relationship of each data slice is established by storing a link of a previous data slice and a next data slice in each data slice, so that each data slice can be sequentially acquired to generate and display a picture of a point of interest.
In one possible design, after the generating the first link and the second link for the first data slice, the method further includes:
generating a first link hash value according to the first link and a preset hash algorithm, and generating a second link hash value according to the second link and the preset hash algorithm, wherein the first data slice comprises the first link hash value and the second link hash value, and the second data slice comprises the second link hash value.
In this embodiment, the link hash value is generated by encrypting the link, and only after all the hash values of the slice data of the picture corresponding to the point of interest are collected, the picture can be generated again according to all the slice data, thereby ensuring that the point of interest picture cannot be maliciously tampered.
In one possible design, after the generating the first link hash value according to the first link and a preset hash algorithm, the method further includes:
storing each data slice in the data slice set into a plurality of different link addresses, storing a mapping relation between the link address of each data slice and the corresponding link hash value into an encryption database, and storing the first link hash value into a general database, wherein the first data slice is a first data slice in the data slice set, and the first link is the backward link.
In this embodiment, by storing each data slice in the data slice set into a plurality of different link addresses, distributed multi-storage of all data slices is realized, and the actual link address of the data slice corresponding to the link hash value is also recorded into the distributed encryption database. However, since the related information storage only records one mapping relationship, and has no other meaning, if there is no correct decryption method or data slice integration method, the corresponding point of interest picture cannot be restored and processed.
In one possible design, the obtaining the target picture file according to the obtaining request includes:
acquiring the first link hash value according to the identification information of the interest point;
acquiring a first link address of the first data slice according to the first link hash value, and acquiring the first data slice according to the first link address;
acquiring a second link address of the second data slice according to a second link hash value in the first data slice, and acquiring the second data slice according to the second link address;
and generating the target picture file according to the acquired data slice set.
In a second aspect, the present application further provides a device for processing a point of interest map, including:
the system comprises a receiving module, a processing module and a sending module, wherein the receiving module is used for receiving an acquisition request of the point of interest data, and the acquisition request comprises identification information of the point of interest;
the processing module is used for acquiring a target picture file according to the acquisition request, wherein the target picture file comprises the point of interest picture and the associated information of the point of interest picture;
and the display module is used for displaying the interest point picture and the associated information.
In a possible design, the receiving module is further configured to receive an update request of the point of interest data, where the update request includes an interest point update picture and update association information of the interest point update picture;
the processing module is further configured to generate an updated picture file according to the interest point updated picture and the update association information.
In one possible design, the processing module is further configured to generate a forward link, where the forward link is used to connect the current updated picture file to the last updated picture file, and the updated picture file includes the forward link;
the processing module is further configured to generate a backward link, where the backward link is used to connect the last updated picture file to the current updated picture file, and the last updated picture file includes the backward link.
In one possible design, the processing module is further configured to slice the updated picture file to form a data slice set, where the data slice set includes a plurality of data slices arranged in order;
the processing module is further configured to generate a first link and a second link for a first data slice, where the first link is used to connect the first data slice to a previous data slice, and the second link is used to connect the first data slice to a second data slice, where the second data slice is a next data slice of the first data slice in the set of data slices.
In a possible design, the processing module is further configured to generate a first link hash value according to the first link and a preset hash algorithm, and generate a second link hash value according to the second link and the preset hash algorithm, where the first data slice includes the first link hash value and the second link hash value, and the second data slice includes the second link hash value.
In one possible design, the processing module is further configured to store each data slice in the set of data slices into a plurality of different link addresses, store a mapping relationship between a link address of each data slice and a corresponding link hash value in an encryption database, and store the first link hash value in a general database, where the first data slice is a first data slice in the set of data slices, and the first link is the backward link.
In one possible design, the processing module is specifically configured to:
acquiring the first link hash value according to the identification information of the interest point;
acquiring a first link address of the first data slice according to the first link hash value, and acquiring the first data slice according to the first link address;
acquiring a second link address of the second data slice according to a second link hash value in the first data slice, and acquiring the second data slice according to the second link address;
and generating the target picture file according to the acquired data slice set.
In a third aspect, the present application further provides an electronic device, including:
a processor; and
a memory for storing a computer program for the processor;
wherein the processor is configured to implement any one of the possible methods of the first aspect by executing the computer program.
In a fourth aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program of instructions for implementing any one of the possible methods of the first aspect when executed by a processor.
One embodiment in the above application has the following advantages or benefits:
the method comprises the steps of receiving an obtaining request of interest point data, and then obtaining a corresponding target picture file according to identification information of interest points in the obtaining request, wherein the target picture file comprises an interest point picture and associated information of the interest point picture, and displaying the obtained interest point picture and the associated information of the interest point picture.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic view of an application scenario of a point of interest picture processing method according to a first embodiment of the present application;
FIG. 2 is a schematic flowchart of a point of interest map processing method according to a second embodiment of the present application;
FIG. 3 is a schematic flowchart of a method for processing a point of interest map according to a third embodiment of the present application;
FIG. 4 is a schematic flowchart of a method for processing a point of interest map according to a fourth embodiment of the present application;
fig. 5 is a schematic diagram of a link structure of picture file data provided in a fifth embodiment of the present application;
FIG. 6 is a diagram illustrating the data storage structure of the encrypted database in the embodiment shown in FIG. 5;
FIG. 7 is a schematic diagram of a point of interest map and associated information display in the embodiment shown in FIG. 5;
fig. 8 is a schematic structural diagram of a point of interest map processing apparatus according to a sixth embodiment of the present application;
fig. 9 is a block diagram of an electronic device for implementing the point of interest picture processing method according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the prior art, the storage manner of the picture information corresponding to the POI in the map is as follows: the picture data of the picture is stored in the cloud storage, and the picture associated information (POI type information, POI association relation, POI description information and the like) is stored in the database. It can be seen that the storage mode of the POI picture in the current map is that the POI picture is associated with, and only the related picture tag is added for cloud storage, and then the cloud carries out consistency check with the picture encryption check code.
When a user views the POI pictures, the user can only select all the pictures or view all the pictures according to the labels, and the time of picture formation, the time situation of the picture formation and the change before and after the picture formation can only be guessed according to the picture album.
The above solution can accomplish the storage of POI related pictures, but it has the following disadvantages:
(1) the picture associated information is stored in a database mode, the picture is not added with the related information, and the picture description is inaccurate and the information is inconsistent with the picture when the database information is changed;
(2) the pictures are stored in the cloud storage, and once a person maliciously modifies or deletes data in the cloud storage, the information associated with the database still exists, and the pictures are lost, so that the picture chain is empty;
(3) when information in the database is deleted, related data in the cloud storage needs to be deleted synchronously. However, the situation that the pictures in the cloud storage are not deleted easily occurs in the scheme, so that a large amount of redundant data occurs in the cloud storage.
In view of the above problems, embodiments of the present application provide a method for processing a point of interest map, which may be implemented. The point of interest map processing method is described in detail below in several specific implementations.
Fig. 1 is a schematic view of an application scenario of a point of interest picture processing method according to a first embodiment of the present application. As shown in fig. 1, the method for processing a point of interest picture provided by this embodiment is applied to a distributed storage system, where after a picture file is generated from a point of interest picture and a point of interest picture, the picture file is sliced, and the sliced data is distributed and stored. When different interest pictures are updated in different time periods for the same interest point, the link address of the previous picture can be added into each picture file, so that the safety of picture data is guaranteed, and a time sequence chain of the interest point pictures can be established.
In addition, the distributed database can be accessed through different terminal devices (such as a notebook computer, a personal computer, and a smart phone), for example, a link address of the first slice data stored in the general database in the target picture file can be obtained by inputting identification information of the interest point (such as a name of the interest point, a number of the interest point, and other attribute information of the interest point), the next slice data is sequentially obtained through the chain connection relationship among the slice data until all slice data are obtained, and then a complete interest point picture is displayed, so that the interest point picture can be effectively prevented from being maliciously tampered.
Fig. 2 is a schematic flowchart of a point of interest map processing method according to a second embodiment of the present application. As shown in fig. 2, the method for processing a point of interest map provided by this embodiment includes:
Specifically, when the point of interest picture needs to be displayed, for example: the method can be implemented by initiating an acquisition request of the point of interest data on the map when a user finds a hotspot location of a mall, a hospital, a parking lot, and the like, wherein identification information of the point of interest (for example, a name of the point of interest, a number of the point of interest, and other attribute information of the point of interest, and the like) may be included in the acquisition request.
In a possible scenario, when the user needs to navigate to the parking lot a, the door map of the parking lot entrance may be displayed immediately before the user arrives at the parking lot entrance, and at this time, the identification information of the point of interest in the acquisition request may be the name of the parking lot a.
In yet another possible scenario, when the user needs to find the B restaurant, the name of the B restaurant may be entered in the map and an acquisition request for the point-of-interest data may be initiated to acquire the door map of the B restaurant.
And 102, acquiring a target picture file according to the acquisition request.
In this step, a target picture file may be obtained according to the obtaining request, where the target picture file includes the point of interest picture and the associated information of the point of interest picture. It is to be understood that the point-of-interest map may be a facial map of the point of interest, and the associated information of the point-of-interest map may be a shooting time of the facial map of the point of interest.
It should be noted that the association information of the point of interest pictures may be stored in the point of interest pictures to form the target picture file, and the association information of the point of interest pictures may also be stored in an additional database. Optionally, the association information of the point of interest picture may be encrypted and then stored in the point of interest picture to form a target picture file.
And step 103, displaying the interest point picture and the associated information.
In this step, after the target picture file is acquired according to the acquisition request, the point of interest picture and the associated information may be displayed. Specifically, the face map corresponding to the interest point and the time taken by the face map may be displayed at a predetermined position on the map, for example, the face map of the parking lot a and the time taken by the face map may be displayed below the map, or the face map of the restaurant B and the time taken by the face map may be displayed below the map.
In this embodiment, by receiving an obtaining request of point of interest data, and then obtaining a corresponding target picture file according to identification information of a point of interest in the obtaining request, where the target picture file includes a point of interest picture and associated information of the point of interest picture, the obtained point of interest picture and associated information of the point of interest picture are displayed, and the target picture file carries the associated information, so that when information is displayed, a problem that the point of interest picture does not conform to the picture associated information when displayed due to a change of external information is avoided.
On the basis of the above embodiments, fig. 3 is a schematic flow chart of a point of interest map processing method according to a third embodiment of the present application. As shown in fig. 3, the method for processing a point of interest map provided in this embodiment may further include:
Specifically, an update request of the point of interest data is received, where the update request includes an interest point update picture and update association information of the interest point update picture.
For example, for the door face map currently stored in restaurant B and taken in month 6 of 2017, due to the fact that the time is long, restaurant B may be refitted, and therefore, the door face may be changed greatly. At this time, the server may accept reception of an update request for the B restaurant, in which the B restaurant update picture and update-related information of the B restaurant update picture are included, for example, a door map taken in 3 months in 2019.
By receiving the update request of the interest point data and generating the update picture file according to the interest point update picture and the update associated information in the update request, the data of the same interest point can be updated in stages, so that a map user can acquire the latest picture information.
Optionally, after the picture is updated according to the interest points and the updated associated information is generated into the updated picture file, a forward link and a backward link may also be generated. Specifically, the backward link is used to connect the current updated picture file to the last updated picture file, and the updated picture file includes the backward link. For example, the B-restaurant picture file corresponding to month 3 in 2019 includes a forward link for linking the B-restaurant picture file corresponding to month 3 in 2019 to the B-restaurant picture file corresponding to month 6 in 2017, and the B-restaurant picture file corresponding to month 6 in 2017 includes a backward link for linking the B-restaurant picture file corresponding to month 6 in 2017 to the B-restaurant picture file corresponding to month 3 in 2019.
Fig. 5 is a schematic diagram of a picture file data link structure provided in a fifth embodiment of the present application, and fig. 7 is a schematic diagram of displaying a point of interest picture and associated information in the embodiment shown in fig. 5. As shown in fig. 5 and 7, the 3 picture files (e.g., the facia map 1, the facia map 2, and the facia map 3) corresponding to one interest point may be arranged in the order of time of generation. The back link SH11 is included in the door facing fig. 1, and the back link SH11 is used to link the door facing fig. 1 to the door facing fig. 2. The front link SH01 and the back link SH21 are included in the door face fig. 2, wherein the front link SH01 is used to link the door face fig. 2 to the door face fig. 1, and the back link SH21 is used to link the door face fig. 2 to the door face fig. 3. In addition, the front link SH11 and the back link SH31 are included in the door face fig. 3, wherein the front link SH11 is used for linking the door face fig. 3 to the door face fig. 2, and the back link SH31 is used for linking the door face fig. 2 to the next door face fig.
The forward link and the backward link are generated, so that a chain structure between the picture files is established according to the time sequence, the picture files have the time sequence relation due to the fact that the picture files record the front picture file and the back picture file, the time information of the POI attached picture can be effectively displayed according to the time sequence relation, and when all the picture files of one POI can be stored according to the set of mode, the historical change of one POI can be effectively and reasonably displayed through the picture.
In addition, after the update picture file is generated, the update picture file may be further sliced to form a data slice set, where the data slice set includes a plurality of data slices arranged in order, and a first link and a second link are generated for a first data slice, where the first link is used to connect the first data slice to a previous data slice, and the second link is used to connect the first data slice to a second data slice, where the second data slice is a next data slice of the first data slice in the data slice set.
With continued reference to fig. 5, for the door face fig. 1, the data slicing operation may be performed on the door face fig. 1, for example, the door face fig. 1 may be divided into 5 data slices (data slice 1, data slice 2, data slice 3, data slice 4, and data slice 5), while a first link SH01 and a second link SH02 are generated for the data slice 1, and SH02 and SH03 are allocated for the data slice 2, where SH02 is used to link the data slice 1 and the data slice 2. Data slice 3 is assigned SH03 and SH04, where SH03 is used to link data slice 2 with data slice 3. Data slice 4 is assigned SH04 and SH05, where SH04 is used to link data slice 3 with data slice 4. If data slice 5 is the last data slice, it is simply allocated SH05 for linking forward to data slice 4.
Furthermore, the backward link in the door face fig. 1 may be set to be SH11 of the first data fragment in the door face fig. 2, so that the door face fig. 2 may be acquired through the door face fig. 1 and SH11, while the forward link set in the door face fig. 2 may be SH01 of the first data fragment in the door face fig. 1, so that the door face fig. 1 may be acquired through the door face fig. 2 and SH01, and the forward link set in the door face fig. 2 may be SH21 of the first data fragment in the door face fig. 3, so that the door face fig. 3 may be acquired through the door face fig. 2 and SH 21.
The image file is sliced to form a data slice set, and the chain connection relation of each data slice is established in a mode of storing the link of the previous data slice and the link of the next data slice in each data slice, so that each data slice can be sequentially acquired to generate and display the image of the interest point.
In addition, after the first link and the second link are generated for the first data segment, a first link hash value may be generated according to the first link and a preset hash algorithm, and a second link hash value may be generated according to the second link and the preset hash algorithm, where the first data segment includes the first link hash value and the second link hash value, and the second data segment includes the second link hash value.
That is, for the door face fig. 1, a first concatenated hash value SH01 and a second concatenated hash value SH02 are generated for the data slice 1, and SH02 and SH03 are allocated for the data slice 2, wherein SH02 is used for linking the data slice 1 and the data slice 2. Data slice 3 is assigned SH03 and SH04, where SH03 is used to link data slice 2 with data slice 3. Data slice 4 is assigned SH04 and SH05, where SH04 is used to link data slice 3 with data slice 4. If data slice 5 is the last data slice, it is simply allocated SH05 for linking forward to data slice 4.
The link hash value is generated by encrypting the link, and the picture can be generated according to all slice data again only after all the slice data hash values of the picture corresponding to the interest point are collected, so that the picture of the interest point is prevented from being maliciously tampered.
In addition, fig. 6 is a schematic diagram of a data storage structure of the encryption database in the embodiment shown in fig. 5. As shown in fig. 5 to fig. 6, each data slice in the data slice set may be further stored into a plurality of different link addresses, a mapping relationship between the link address of each data slice and the corresponding link hash value is stored into the encrypted database, and a first link hash value is stored into the universal database, where the first data slice is a first data slice in the data slice set, and the first link is a backward link.
By storing each data slice in the data slice set into a plurality of different link addresses, distributed multi-storage of all data slices is realized, and the actual link addresses of the data slices corresponding to the link hash values are also recorded into the distributed encryption database. However, since the related information storage only records one mapping relationship, and has no other meaning, if there is no correct decryption method or data slice integration method, the corresponding point of interest picture cannot be restored and processed.
In addition, the picture link address existing in the general database is only the link hash value of the first piece of slice data corresponding to the picture slice data, and the point of interest picture can be generated again according to the full slice data only after all the slice hash values of the corresponding pictures are collected, so that the point of interest picture is prevented from being maliciously tampered.
And the picture files record the front picture file and the rear picture file, so that the picture files have a time sequence relationship, the time information of the POI attached picture can be effectively displayed according to the time sequence relationship, and when all the picture files of one POI can be stored in the set of mode, the picture can effectively and reasonably display the historical change of one POI.
And if the data of the point of interest picture corresponding to the POI is modified, but the hash information corresponding to the picture is not modified, the historical condition of the picture can be restored again according to the time sequence information contained in the picture file, because the picture file stores the relevant associated information, the picture does not depend on other databases strongly.
In other words, the POI picture can encrypt and record partial relevant and important related information of the picture, the picture can be guaranteed not to be damaged to the maximum extent under the condition that the database is abnormal, the POI picture is stored in slices, if a network attack occurs, a user can not restore the picture only by means of partial picture slices, meanwhile, due to the fact that the slices are stored in a distributed mode in multiple places, data fluctuation occurs in only one place, restoration can be performed through storage in other regions, and the POI picture loss condition cannot occur. In addition, because the POI picture has a chain structure, when data is redundant, the whole data can be pulled out for processing through the chain change of the picture, and the redundancy of the picture is effectively reduced.
Fig. 4 is a schematic flowchart of a processing method of a point of interest map according to a fourth embodiment of the present application. As shown in fig. 4, the method for processing a point of interest map provided by this embodiment includes:
Specifically, when the point of interest picture needs to be displayed, for example: the method can be implemented by initiating an acquisition request of the point of interest data on the map when a user finds a hotspot location of a mall, a hospital, a parking lot, and the like, wherein identification information of the point of interest (for example, a name of the point of interest, a number of the point of interest, and other attribute information of the point of interest, and the like) may be included in the acquisition request.
In a possible scenario, when the user needs to navigate to the parking lot a, the door map of the parking lot entrance may be displayed immediately before the user arrives at the parking lot entrance, and at this time, the identification information of the point of interest in the acquisition request may be the name of the parking lot a.
In yet another possible scenario, when the user needs to find the B restaurant, the name of the B restaurant may be entered in the map and an acquisition request for the point-of-interest data may be initiated to acquire the door map of the B restaurant.
And 303, acquiring a first link address of the first data slice according to the first link hash value.
And step 306, acquiring a second data slice according to the second link address.
And 307, generating a target picture file according to the acquired data slice set.
And step 308, displaying the point of interest picture and the associated information.
The picture link address existing in the general database is only the link hash value of the first piece of slice data corresponding to the picture slice data, and after the acquisition request of the point of interest data is acquired, the first link hash value can be acquired according to the identification information of the point of interest, that is, the link hash value of the first piece of slice data of the slice data is acquired first. Then, since the slice data between the POI pictures and in the same POI picture have a chain structure, subsequent data slices can be obtained at one time according to the link hash value of the first slice data, and the point of interest picture is generated according to the full slice data after all the slice hash values of the corresponding pictures are collected.
Fig. 8 is a schematic structural diagram of a point of interest map processing apparatus according to a sixth embodiment of the present application. As shown in fig. 8, an embodiment provides a point of interest map processing apparatus 400, including:
a receiving module 401, configured to receive an obtaining request of point of interest data, where the obtaining request includes identification information of the point of interest;
a processing module 402, configured to obtain a target picture file according to the obtaining request, where the target picture file includes a point of interest picture and associated information of the point of interest picture;
a display module 403, configured to display the point of interest map and the associated information.
In a possible design, the receiving module 401 is further configured to receive an update request of the point of interest data, where the update request includes an update picture of the point of interest and update related information of the update picture of the point of interest;
the processing module 402 is further configured to generate an updated picture file according to the interest point updated picture and the update association information.
In one possible design, the processing module 402 is further configured to generate a forward link, where the forward link is used to connect the current updated picture file to the last updated picture file, and the updated picture file includes the forward link;
the processing module 402 is further configured to generate a backward link, where the backward link is used to connect the last updated picture file to the current updated picture file, and the last updated picture file includes the backward link.
In one possible design, the processing module 402 is further configured to slice the updated picture file to form a data slice set, where the data slice set includes a plurality of data slices arranged in an order;
the processing module 402 is further configured to generate a first link and a second link for a first data slice, where the first link is used to connect the first data slice to a previous data slice, and the second link is used to connect the first data slice to a second data slice, where the second data slice is a next data slice of the first data slice in the data slice set.
In one possible design, the processing module 402 is further configured to generate a first link hash value according to the first link and a preset hash algorithm, and generate a second link hash value according to the second link and the preset hash algorithm, where the first data slice includes the first link hash value and the second link hash value, and the second data slice includes the second link hash value.
In one possible design, the processing module 402 is further configured to store each data slice in the set of data slices into a plurality of different link addresses, store a mapping relationship between the link address of each data slice and a corresponding link hash value in an encryption database, and store the first link hash value in a general database, where the first data slice is a first data slice of the set of data slices, and the first link is the backward link.
In one possible design, the processing module 402 is specifically configured to:
acquiring the first link hash value according to the identification information of the interest point;
acquiring a first link address of the first data slice according to the first link hash value, and acquiring the first data slice according to the first link address;
acquiring a second link address of the second data slice according to a second link hash value in the first data slice, and acquiring the second data slice according to the second link address;
and generating the target picture file according to the acquired data slice set.
It should be noted that the point of interest image processing apparatus provided in the embodiment 8 can be used to execute the method provided in any of the above embodiments, and the specific implementation manner and the technical effect are similar, and are not described again here.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 9 is a block diagram of an electronic device for implementing the point of interest picture processing method according to the embodiment of the present application. As shown in FIG. 9, the electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 9, the electronic apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 9 illustrates an example of one processor 501.
The memory 502, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the receiving module 401, the processing module 402, and the display module 403 shown in fig. 8) corresponding to the point of interest picture processing method in the embodiments of the present application. The processor 501 executes various functional applications of the server and data processing, i.e., implements the point of interest picture processing method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 502.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area can store data created by use of the electronic device provided according to the embodiment of the application, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, which may be connected to provide electronic devices in accordance with embodiments of the present application via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device provided by the embodiment of the application may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 9 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device provided by the embodiments of the present application, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, and other input devices. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the obtaining request of the point of interest data is received, and then the corresponding target picture file is obtained according to the identification information of the point of interest in the obtaining request, wherein the target picture file comprises the point of interest picture and the associated information of the point of interest picture, the obtained point of interest picture and the associated information of the point of interest picture are displayed, and the target picture file carries the associated information, so that the problem that the point of interest picture does not accord with the picture associated information when the point of interest picture is displayed due to the change of external information when the information is displayed is avoided.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A method for processing a point of interest map, comprising:
receiving an acquisition request of the point of interest data, wherein the acquisition request comprises identification information of the point of interest;
acquiring a target picture file according to the acquisition request, wherein the target picture file comprises the point of interest picture and the associated information of the point of interest picture;
and displaying the interest point picture and the associated information.
2. The method of processing a point of interest map of claim 1, further comprising:
receiving an update request of the point of interest data, wherein the update request comprises an interest point update picture and update associated information of the interest point update picture;
and generating an updated picture file according to the interest point updated picture and the updated associated information.
3. The method of processing a point of interest picture according to claim 2, further comprising, after generating an update picture file from the point of interest update picture and the update associated information:
generating a forward link for connecting the current updated picture file to a last updated picture file, wherein the updated picture file comprises the forward link;
and generating a backward link, wherein the backward link is used for connecting the last updated picture file to the current updated picture file, and the last updated picture file comprises the backward link.
4. The method of claim 3, further comprising, after the generating an update picture file:
slicing the updated picture file to form a data slice set, wherein the data slice set comprises a plurality of data slices which are arranged in order;
generating a first link and a second link for a first data slice, the first link for connecting the first data slice to a previous data slice, the second link for connecting the first data slice to a second data slice, wherein the second data slice is a next data slice of the first data slice in the set of data slices.
5. The method of claim 4, further comprising, after the generating the first link and the second link for the first data slice:
generating a first link hash value according to the first link and a preset hash algorithm, and generating a second link hash value according to the second link and the preset hash algorithm, wherein the first data slice comprises the first link hash value and the second link hash value, and the second data slice comprises the second link hash value.
6. The method of processing a point of interest map as claimed in claim 5, further comprising, after said generating a first linked hash value according to the first link and a preset hash algorithm:
storing each data slice in the data slice set into a plurality of different link addresses, storing a mapping relation between the link address of each data slice and the corresponding link hash value into an encryption database, and storing the first link hash value into a general database, wherein the first data slice is a first data slice in the data slice set, and the first link is the backward link.
7. The method for processing the point of interest picture according to claim 5 or 6, wherein the obtaining a target picture file according to the obtaining request includes:
acquiring the first link hash value according to the identification information of the interest point;
acquiring a first link address of the first data slice according to the first link hash value, and acquiring the first data slice according to the first link address;
acquiring a second link address of the second data slice according to a second link hash value in the first data slice, and acquiring the second data slice according to the second link address;
and generating the target picture file according to the acquired data slice set.
8. A point-of-interest map processing apparatus, comprising:
the system comprises a receiving module, a processing module and a sending module, wherein the receiving module is used for receiving an acquisition request of the point of interest data, and the acquisition request comprises identification information of the point of interest;
the processing module is used for acquiring a target picture file according to the acquisition request, wherein the target picture file comprises the point of interest picture and the associated information of the point of interest picture;
and the display module is used for displaying the interest point picture and the associated information.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911128370.2A CN112818276B (en) | 2019-11-18 | 2019-11-18 | Point-of-interest picture processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911128370.2A CN112818276B (en) | 2019-11-18 | 2019-11-18 | Point-of-interest picture processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112818276A true CN112818276A (en) | 2021-05-18 |
CN112818276B CN112818276B (en) | 2023-12-15 |
Family
ID=75852527
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911128370.2A Active CN112818276B (en) | 2019-11-18 | 2019-11-18 | Point-of-interest picture processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112818276B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100131193A1 (en) * | 2008-11-24 | 2010-05-27 | Andriy Shnyr | Method, apparatus and computer program product for community based user involvement in map updating |
KR20150064485A (en) * | 2013-12-03 | 2015-06-11 | 주식회사 케이티 | Method for providing video regarding poi, method for playing video regarding poi, computing device and computer-readable medium |
CN106802929A (en) * | 2016-12-27 | 2017-06-06 | 华南师范大学 | The graphical analysis method and system of a kind of big data threedimensional model |
CN108829848A (en) * | 2018-06-20 | 2018-11-16 | 华中科技大学 | A kind of image search method and system |
CN108880725A (en) * | 2018-04-26 | 2018-11-23 | 陈飞 | Interest content acquisition method and equipment is obtained in a kind of event based on time point |
CN109684426A (en) * | 2018-12-04 | 2019-04-26 | 北京世纪高通科技有限公司 | A kind of map dicing method and device |
CN109710705A (en) * | 2018-12-04 | 2019-05-03 | 百度在线网络技术(北京)有限公司 | Map point of interest treating method and apparatus |
-
2019
- 2019-11-18 CN CN201911128370.2A patent/CN112818276B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100131193A1 (en) * | 2008-11-24 | 2010-05-27 | Andriy Shnyr | Method, apparatus and computer program product for community based user involvement in map updating |
KR20150064485A (en) * | 2013-12-03 | 2015-06-11 | 주식회사 케이티 | Method for providing video regarding poi, method for playing video regarding poi, computing device and computer-readable medium |
CN106802929A (en) * | 2016-12-27 | 2017-06-06 | 华南师范大学 | The graphical analysis method and system of a kind of big data threedimensional model |
CN108880725A (en) * | 2018-04-26 | 2018-11-23 | 陈飞 | Interest content acquisition method and equipment is obtained in a kind of event based on time point |
CN108829848A (en) * | 2018-06-20 | 2018-11-16 | 华中科技大学 | A kind of image search method and system |
CN109684426A (en) * | 2018-12-04 | 2019-04-26 | 北京世纪高通科技有限公司 | A kind of map dicing method and device |
CN109710705A (en) * | 2018-12-04 | 2019-05-03 | 百度在线网络技术(北京)有限公司 | Map point of interest treating method and apparatus |
Non-Patent Citations (1)
Title |
---|
魏勇钢: "一种基于切片技术度量Java耦合性的框架", 信息技术与信息化 * |
Also Published As
Publication number | Publication date |
---|---|
CN112818276B (en) | 2023-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11710279B2 (en) | Contextual local image recognition dataset | |
JP6865219B2 (en) | Event batch processing, output sequencing, and log-based state storage in continuous query processing | |
CN111258609A (en) | Upgrading method and device of Kubernetes cluster, electronic equipment and medium | |
CN111045985B (en) | File storage processing method, server, electronic device and storage medium | |
US20130173655A1 (en) | Selective fetching of search results | |
US11762822B2 (en) | Determining when a change set was delivered to a workspace or stream and by whom | |
CN111860167A (en) | Face fusion model acquisition and face fusion method, device and storage medium | |
US20200327710A1 (en) | Interface to index and display geospatial data | |
CN111752960B (en) | Data processing method and device | |
CN112532748B (en) | Message pushing method, device, equipment, medium and computer program product | |
CN110545324A (en) | Data processing method, device, system, network equipment and storage medium | |
US20240098151A1 (en) | ENHANCED PROCESSING OF USER PROFILES USING DATA STRUCTURES SPECIALIZED FOR GRAPHICAL PROCESSING UNITS (GPUs) | |
CN112559194A (en) | Application data processing method, device and equipment | |
CN112328658A (en) | User profile data processing method, device, equipment and storage medium | |
US9910737B2 (en) | Implementing change data capture by interpreting published events as a database recovery log | |
US9696885B2 (en) | Integrated user interface using linked data | |
CN112818276B (en) | Point-of-interest picture processing method and device, electronic equipment and storage medium | |
CN112052347B (en) | Image storage method and device and electronic equipment | |
CN112541934A (en) | Image processing method and device | |
CN111506787A (en) | Webpage updating method and device, electronic equipment and computer-readable storage medium | |
CN113010811A (en) | Webpage acquisition method and device, electronic equipment and computer readable storage medium | |
US11488384B2 (en) | Method and device for recognizing product | |
CN112925482B (en) | Data processing method, device, system, electronic equipment and computer storage medium | |
CN115840604B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN114238169A (en) | Data caching method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |