CN115564632A - Watermark embedding method and device for grid map and electronic equipment - Google Patents

Watermark embedding method and device for grid map and electronic equipment Download PDF

Info

Publication number
CN115564632A
CN115564632A CN202211286373.0A CN202211286373A CN115564632A CN 115564632 A CN115564632 A CN 115564632A CN 202211286373 A CN202211286373 A CN 202211286373A CN 115564632 A CN115564632 A CN 115564632A
Authority
CN
China
Prior art keywords
embedded
watermark
map
grid map
watermarks
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
Application number
CN202211286373.0A
Other languages
Chinese (zh)
Other versions
CN115564632B (en
Inventor
徐令令
吴恩平
杨骥
熊兆
李奂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Xingtu Digital Earth Hefei Co ltd
Original Assignee
Zhongke Xingtu Digital Earth Hefei Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Xingtu Digital Earth Hefei Co ltd filed Critical Zhongke Xingtu Digital Earth Hefei Co ltd
Priority to CN202211286373.0A priority Critical patent/CN115564632B/en
Publication of CN115564632A publication Critical patent/CN115564632A/en
Application granted granted Critical
Publication of CN115564632B publication Critical patent/CN115564632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a watermark embedding method and device for a grid map and electronic equipment, and belongs to the technical field of geographic information systems. The method comprises the following steps: acquiring a watermark to be embedded under the condition of starting the grid map; determining the relative position coordinates of the watermark to be embedded relative to the grid map; acquiring image information of the grid map and acquiring the image information of the watermark to be embedded; and rendering the image information of the watermark to be embedded to the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded.

Description

Watermark embedding method and device for grid map and electronic equipment
Technical Field
The invention belongs to the technical field of geographic information systems, and particularly relates to a watermark embedding method and device for a grid map and electronic equipment.
Background
The grid map is one of the largest data types in the geographic information system, is also the basis for the generation of other data, and has an irreplaceable position.
The map data is shared to the web and app end through the network, so that the use of each crowd is greatly facilitated, but the problems of safety and copyright protection are increased day by day. In order to solve the above problems, the prior art adopts a mode of directly modifying and storing original images of map data to form watermarks on a grid map to verify data ownership. However, this method causes the computer to store a large amount of tile map data, which burdens the physical storage of the computer and causes resource waste.
Disclosure of Invention
The embodiment of the invention aims to provide a watermark embedding method and device for a grid map and electronic equipment, which can solve the problem that the existing watermark embedding technology has excessive storage data.
In a first aspect, an embodiment of the present invention provides a watermark embedding method for a grid map, where the method includes the following steps:
acquiring a watermark to be embedded under the condition of starting the grid map;
determining the relative position coordinates of the watermark to be embedded relative to the grid map;
acquiring image information of the grid map and acquiring the image information of the watermark to be embedded;
and rendering the image information of the watermark to be embedded to the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded.
Optionally, the obtaining the image information of the grid map and the obtaining the image information of the watermark to be embedded include:
acquiring a first layer matrix of the grid map and acquiring a second layer matrix of the watermark to be embedded;
the rendering the image information to be embedded with the watermark to the image information of the grid map based on the relative position coordinates comprises:
determining a first sub-image layer matrix of the overlapping part of the grid map and the watermark to be embedded based on the first image layer matrix, the second image layer matrix and the relative position coordinates;
acquiring a second sub-image layer matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-image layer matrix;
obtaining the opacity of the watermark to be embedded;
and obtaining the grid map containing the watermark to be embedded based on the first sub-graph layer matrix, the second sub-graph layer matrix and the opacity of the watermark to be embedded.
Optionally, before determining the relative position coordinates of the watermark to be embedded with respect to the grid map, the method further includes:
and acquiring the quantity of the watermarks to be embedded, which need to be embedded in each level of the grid map.
Optionally, the obtaining the number of the watermarks to be embedded, which need to be embedded in each level of the grid map, includes:
determining a target level of the grid map, the target level being any level of the grid map;
determining a total number of map tiles included by a target level of the grid map;
and determining the number of the watermarks to be embedded, which need to be embedded in the target level, according to the watermarks to be embedded and the total number of map tiles contained in the target level.
Optionally, the determining, according to the watermark to be embedded and the total number of map tiles included in the target hierarchy, the number of the watermarks to be embedded that need to be embedded in the target hierarchy includes:
determining a map image size for the target level as a function of a total number of map tiles included in the target level;
acquiring the image size of the watermark to be embedded and acquiring the watermark embedding coefficient of the target level;
and determining the quantity of the watermarks to be embedded in the target level according to the map image size of the target level, the image size of the watermarks to be embedded and the watermark embedding coefficient of the target level.
Optionally, before determining the relative position coordinates of the watermark to be embedded with respect to the grid map, after obtaining the number of the watermarks to be embedded in each level of the grid map, the method further includes:
according to the target layer number of embedded watermark coefficients and the number of the watermarks to be embedded to the target level, selecting a pre-embedded map tile from the map tiles of the target level at intervals of b map tiles from the a-th map tile, wherein the number of the pre-embedded map tiles is consistent with the number of the watermarks to be embedded to the target level;
rendering the watermarks to be embedded on the pre-embedded map tiles in a one-to-one correspondence manner;
wherein a is an integer greater than or equal to 1 and smaller than the embedded watermark coefficient, and the value of b is the same as the embedded watermark coefficient.
Optionally, the rendering the watermarks to be embedded on the pre-embedded map tiles in a one-to-one correspondence includes:
determining relative position coordinates of the watermark to be embedded relative to the pre-embedded map tile to be embedded;
acquiring the image information of the pre-embedded map tile and the image information of the watermark to be embedded;
rendering the image information of the watermark to be embedded to the image information of the pre-embedded map tile to be embedded based on the relative position coordinates to obtain the pre-embedded map tile containing the watermark to be embedded.
Optionally, the method further comprises:
and under the condition of closing the grid map, undoing the watermark to be embedded rendered on the grid map.
In a second aspect, an embodiment of the present invention provides a watermark embedding apparatus for a grid map, where the apparatus includes:
the first acquisition module is used for acquiring the watermark to be embedded under the condition of starting the grid map;
the determining module is used for determining the relative position coordinates of the watermark to be embedded relative to the grid map;
the second acquisition module is used for acquiring the image information of the grid map and acquiring the image information of the watermark to be embedded;
and the rendering module is used for rendering the image information of the watermark to be embedded to the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the watermark embedding method for a grid map according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the watermark embedding method for a grid map according to the first aspect.
In the embodiment of the invention, before the grid map is started, the image to be embedded with the watermark is not related to the image of the grid map, the image to be embedded with the watermark is rendered on the grid map only after the grid map is started, and the image data of the grid map to be embedded with the watermark is contained, namely a large amount of map tile data with the watermark data to be embedded are not stored in a physical storage structure of a computer, a mobile phone and other equipment, so that physical storage resources are saved.
Drawings
Fig. 1 is a flowchart illustrating a method for embedding a watermark into a grid map according to an embodiment of the present invention;
fig. 2 is a second flowchart of a watermark embedding method for grid maps according to an embodiment of the present invention;
fig. 3 is a third schematic flowchart of a watermark embedding method for a grid map according to an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating how to obtain the number of watermarks to be embedded in each layer of a grid map in the watermark embedding method for the grid map according to the embodiment of the present invention;
fig. 5 is a schematic flowchart of a process of determining the number of watermarks to be embedded in a target level according to the watermarks to be embedded and the total number of map tiles included in the target level in the watermark embedding method for a grid map according to the embodiment of the present invention;
fig. 6 is a fourth schematic flowchart of a watermark embedding method for a grid map according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a watermark embedding apparatus for a grid map according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below clearly with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
The terms first, second and the like in the description and in the claims of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the invention may be practiced other than those illustrated or described herein, and that the words "first", "second", etc. do not necessarily distinguish one element from another, but rather denote any number of elements, e.g., a first element may be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The watermark embedding method for the grid map provided by the embodiment of the invention is explained in detail through a specific embodiment and an application scenario thereof in combination with the attached drawings.
As shown in fig. 1, the watermark embedding method for a grid map provided by the embodiment of the present invention includes the following steps:
step S1, under the condition of starting the grid map, obtaining the watermark to be embedded,
it should be noted that the watermark embedding method is mainly applied to a grid map, the grid map is generally a tile map pyramid model, the resolution is lower and lower from the bottom layer to the top layer of the tile pyramid, but the represented geographic range is unchanged, and each level has different numbers of map tiles. After the grid map is started on the electronic equipment such as a mobile phone, a computer, a palm computer and the like, the watermark to be embedded can be obtained through networking or can be obtained by calling the watermark data to be embedded stored in the electronic equipment, and in the step, the grid map and the watermark to be embedded are two independent images.
S2, determining the relative position coordinates of the watermark to be embedded relative to the grid map,
the determination of the relative position coordinates has a variety of ways, for example, any one pixel point on the grid map can be used as an origin to establish a coordinate system, and the following description takes the vertex at the lower left corner of the grid map as the origin as an example.
Optionally, the grid map has a length c and a width d, the watermark to be embedded has a length m and a width n, and coordinates of a vertex of a lower left corner of the watermark to be embedded in a coordinate system are taken as relative position coordinates (e, f), wherein (e is greater than or equal to 0 and less than or equal to c-m), and (f is greater than or equal to 0 and less than or equal to d-n). The relative position coordinates (e, f) may be optional within a range of values.
S3, acquiring the image information of the grid map and the image information of the watermark to be embedded,
because the image of the grid map and the image of the watermark to be embedded are both composed of a plurality of pixels, the image information of the grid map and the image information of the watermark to be embedded are respectively contained pixel information, and the pixel information comprises the size of the pixel, the color depth of the pixel, the position of the pixel and the like.
And S4, rendering the image information of the watermark to be embedded to the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded.
It can be understood that after the pixel information included in the grid map and the watermark to be embedded are obtained, the specific position where the watermark to be embedded is rendered on the grid map can be determined by combining the relative position coordinates of the watermark to be embedded with respect to the grid map, and the image of the grid map including the watermark to be embedded can be output by combining the information such as the size of the pixel, the color of the pixel, and the color depth of the pixel.
In this embodiment, before the grid map is started, the image to be embedded with the watermark is not associated with the image of the grid map, and only after the grid map is started, the steps S1 to S4 are executed to render the watermark to be embedded on the grid map, and the image data of the grid map including the watermark to be embedded, that is, a large amount of map tile data having the watermark data to be embedded are not stored in a physical storage structure of a computer, a mobile phone, or other devices, thereby achieving the purpose of saving physical storage resources. It should be noted that, since the grid map containing the watermark to be embedded is not stored in the local physical storage structure, the rendering process needs to be performed once each time the grid map is started, so as to form the watermark and protect the copyright.
As an alternative implementation manner, as shown in fig. 2, the watermark embedding method for a grid map provided in the embodiment of the present invention includes the following steps:
step S1, acquiring a watermark to be embedded under the condition of starting a grid map;
and S2, determining the relative position coordinates of the watermark to be embedded relative to the grid map.
The specific content of the steps S1 and S2 may refer to the description in the embodiment described in fig. 1, and is not repeated here.
In a step S3, the method comprises the following steps,
acquiring a first layer matrix of the grid map, and acquiring a second layer matrix of the watermark to be embedded,
it should be noted that the first layer matrix is a set of all the pixels constituting the grid map, and the first layer matrix includes the pixel size, the pixel color depth, and the pixel position of each pixel. Similarly, the second layer matrix includes the pixel size, the pixel color depth and the pixel position of all the pixel points forming the watermark to be embedded.
Step S41, determining a first sub-layer matrix of the overlapping part of the grid map and the watermark to be embedded based on the first layer matrix, the second layer matrix and the relative position coordinates,
according to the relative position coordinates, the specific position of the second layer matrix W added to the first layer matrix I and the first sub-layer matrix I can be obtained 1 The first layer matrix is a part of the first layer matrix I, specifically, a layer matrix of an overlapping portion of the first layer matrix I and the second layer matrix W.
Step S42, a second sub-hierarchy matrix which is not overlapped with the watermark to be embedded in the grid map is obtained based on the first sub-hierarchy matrix,
understandably, the second sub-hierarchy matrix I 2 Removing the layer matrix of the first layer matrix I from the overlapping part of the first layer matrix I and the second layer matrix W, namely the first sub-layer matrix I 1 And finally, the residual layer matrix.
Step S43, obtaining the opacity of the watermark to be embedded,
it should be noted that the opacity K of the watermark to be embedded is a value generated by comparing with the image of the grid map, 1 > K > 0, and K may be any value in a value range. When the opacity of the watermark to be embedded is 1, the image of the grid map is shielded by the image of the watermark to be embedded, so that a user cannot inquire required map information. When the opacity of the watermark to be embedded is 0, the user cannot see the image of the watermark to be embedded, and the copyright protection effect cannot be achieved.
And S44, obtaining the grid map containing the watermark to be embedded based on the first sub-image layer matrix, the second sub-image layer matrix and the opacity of the watermark to be embedded.
Alternatively, the layer matrix containing the grid map to be embedded with the watermark may be represented as I Z ,I Z =I 1 ×(1-K)+WK+I 2 . According to layer matrix I of the grid map containing the watermark to be embedded Z The method can render the image of the grid map containing the watermark to be embedded, does not influence the user to check the map information, and can ensure that the user can see the obvious image of the watermark to be embedded, thereby playing the role of copyright protection.
As an optional implementation manner, as shown in fig. 3, before determining the relative position coordinate of the watermark to be embedded with respect to the grid map in step S2, the watermark embedding method for the grid map according to the embodiment of the present invention further includes:
and S5, acquiring the quantity of the watermarks to be embedded in each level of the grid map.
The watermark embedding method is mainly used for the grid map, and the grid map is a pyramid model of the tile map, so that the resolutions of different levels of the grid map are different, and the number of the map tiles is different. The strategy of adding the watermarks to be embedded is adjusted according to different levels of the raster map, namely the quantity of the watermarks to be embedded is determined adaptively, so that a user can see the complete and clear watermarks to be embedded under the condition of different resolutions, and the use experience of the user is improved on the basis of ensuring the copyright protection.
Further, as shown in fig. 4, in step S5, the obtaining the number of the watermarks to be embedded in each level of the grid map includes:
step S51, determining a target level of the grid map, wherein the target level is any level of the grid map,
it can be understood that the number of map tiles included in different levels of the grid map is different, and the number of the watermarks to be embedded to be rendered can be adjusted according to the characteristics of the map tiles in the levels only by determining the level at which the grid map is located.
Step S52, determining the total number of map tiles included by the target level of the grid map,
it should be noted that, in the application process of the tile map pyramid model, the zoom level to be provided by the map service platform is first determined, the map picture with the highest zoom level and the largest map scale is taken as the top layer of the pyramid, that is, the 0 th layer, and the total number of map tiles of the 0 th layer is 1. And partitioning the map tiles on the 0 th layer, cutting the map tiles from left to right and from top to bottom from the upper left corner of the map tiles on the 0 th layer, dividing the map tiles into square map tiles with the same size, generating the 1 st layer by a method of dividing each pixel into 2 multiplied by 2 pixels, wherein the total number of the map tiles on the 1 st layer is 4, and so on until the whole grid map is generated. Thus, upon determining the target level Z of the grid map, the total number of map tiles included in the target level of the grid map N =2 may be obtained 2Z
And S53, determining the number of the watermarks to be embedded in the target level according to the watermarks to be embedded and the total number of the map tiles contained in the target level.
According to the total number N of the map tiles and the data of the watermarks to be embedded, such as the size of the watermarks to be embedded, the number of the watermarks to be embedded which need to be embedded can be adaptively determined, so that a user can see the complete and clear watermarks to be embedded under the conditions of different resolutions and different levels.
As shown in fig. 5, specifically, in step S53, the determining, according to the watermark to be embedded and the total number of map tiles included in the target level, the number of the watermarks to be embedded that need to be embedded in the target level includes:
step S531, determining the map image size of the target level according to the total number of map tiles included in the target level,
it should be noted that the image size of each map tile is uniform, and is 256 × 256, and therefore, the map image size α =256 × 256 × N at the target level, where N is the total number of map tiles at the target level.
Step S532, obtaining the image size of the watermark to be embedded and obtaining the watermark embedding coefficient of the target level,
to be embeddedAnd the size of the watermark image is beta = m multiplied by n, wherein m represents the length of the watermark image to be embedded, n represents the width of the watermark image to be embedded, and both m and n are larger than 0 and smaller than 256. Target level embedded watermark coefficient W Z ,Z<W Z <2Z, Z is a number representing the target level, W Z Taking an integer.
Step S533, determining the number of the watermarks to be embedded in the target hierarchy according to the size of the map image of the target hierarchy, the size of the image of the watermarks to be embedded, and the watermark embedding coefficient of the target hierarchy.
Optionally, the number G = α/β W of watermarks to be embedded at the target level Z And alpha is the size of the map image of the target level, beta is the size of the image of the watermark to be embedded, and G is an integer taken downwards. By the method, the quantity of the watermarks to be embedded, which need to be embedded in different target levels, is determined, so that watermark embedding strategies of different target levels are adjusted, the images of the watermarks to be embedded are rendered on the map of the target levels and then are easy to perceive, and the integrity of map information cannot be influenced.
Further, before determining the relative position coordinates of the watermark to be embedded with respect to the grid map in step S2, and after acquiring the number of the watermarks to be embedded, which need to be embedded, in each level of the grid map in step S5, the method further includes:
according to the watermark embedding coefficient of the target layer number and the number of the watermarks to be embedded, which need to be embedded, of the target level, selecting a pre-embedded map tile from the map tiles of the target level every other b map tiles, wherein the number of the pre-embedded map tiles is consistent with the number of the watermarks to be embedded, which need to be embedded, of the map tiles of the target level;
rendering the watermarks to be embedded on the pre-embedded map tiles in a one-to-one correspondence manner;
wherein a is an integer greater than or equal to 1 and smaller than the embedded watermark coefficient, and the value of b is the same as the embedded watermark coefficient. Taking a =1 as an example, the 1 st map tile in the target level is the 1 st pre-embedded map tile, which isEvery other W Z One pre-embedded map tile, namely 1 st W + 1 st W, is selected from each tile Z 2W of 1 Z 1 st, 3W Z The number of the map tiles to be embedded is equal to the number G of the watermarks to be embedded, wherein the number of the map tiles to be embedded is equal to the number of the pre-embedded map tiles of the target level. By the method, the watermark to be embedded is uniformly rendered on the corresponding pre-embedded map tile of the target level, and the use experience of a user is enhanced on the basis of protecting the map copyright.
Further, the rendering the watermarks to be embedded on the pre-embedded map tiles in a one-to-one correspondence includes:
determining relative position coordinates of the watermark to be embedded with respect to the pre-embedded map tile to be embedded,
similar to the method for determining the relative position coordinates of the watermark to be embedded with respect to the grid map, the difference is that, in this embodiment, the coordinate system is determined with the pixel points on the pre-embedded map tile as the origin.
Obtaining image information of the pre-embedded map tile and obtaining image information of the watermark to be embedded,
it can be understood that the image information of the pre-embedded map tile is a third layer matrix of the pre-embedded map tile, the third layer matrix includes pixel sizes, pixel colors, pixel color depths, and pixel positions of all pixel points of the pre-embedded map tile, and the image information of the watermark to be embedded is a second layer matrix W consistent with the above.
Rendering the image information of the watermark to be embedded to the image information of the pre-embedded map tile to be embedded based on the relative position coordinates to obtain the pre-embedded map tile containing the watermark to be embedded.
A third sub-image layer matrix I of the overlapping part of the pre-embedded map tiles and the watermark to be embedded can be determined according to the third image layer matrix and the second image layer matrix 3 It may be determined that the fourth sub-layer matrix I of the portion of the pre-embedded map tile not overlapping the watermark to be embedded 4 . The data described above is recombined with opacityK (1 > K > 0), a layer matrix I of pre-embedded map tiles containing the watermark to be embedded can be obtained G =I 3 ×(1-K)+WK+I 4 According to I G The map image of the target level is formed by rendering all the pre-embedded map tiles of the target level after finishing rendering of the watermarks to be embedded. By the method, clear and complete images to be embedded with the watermarks uniformly exist on the map image of the target level, so that the copyright protection effect is achieved, and the use experience of a user is improved.
In an embodiment, as shown in fig. 6, the method further comprises:
and S6, under the condition that the grid map is closed, the rendered watermark to be embedded on the grid map is cancelled.
Through the revocation steps, the map tile data containing the watermark to be embedded can not be stored on a local physical storage structure, and the storage burden is reduced.
The watermark embedding method for the grid map provided by the embodiment of the invention can execute the watermark embedding device 700 with the main body of the grid map. In the embodiment of the present invention, the watermark embedding apparatus 700 for grid map executes the watermark embedding method for grid map as an example, and the watermark embedding apparatus 700 for grid map provided in the embodiment of the present invention is described with reference to fig. 7. The device comprises:
a first obtaining module 701, configured to obtain a watermark to be embedded when a grid map is started;
a determining module 702, configured to determine relative position coordinates of the watermark to be embedded with respect to the grid map;
a second obtaining module 703, configured to obtain image information of the grid map and obtain image information of the watermark to be embedded;
a rendering module 704, configured to render the image information of the watermark to be embedded onto the image information of the grid map based on the relative position coordinate, so as to obtain the grid map including the watermark to be embedded.
Optionally, the second obtaining module is further configured to:
acquiring a first layer matrix of the grid map and acquiring a second layer matrix of the to-be-embedded watermark;
the rendering module is further to:
determining a first sub-image layer matrix of the grid map and the part where the watermark is to be embedded to be overlapped based on the first image layer matrix, the second image layer matrix and the relative position coordinate;
acquiring a second sub-hierarchy matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-hierarchy matrix; obtaining the opacity of the watermark to be embedded;
and obtaining the raster map containing the watermark to be embedded based on the first sub-image layer matrix, the second sub-image layer matrix and the opacity of the watermark to be embedded.
Optionally, the apparatus further comprises:
and the third acquisition module is used for acquiring the number of the watermarks to be embedded, which need to be embedded in each level of the raster map.
Optionally, the third obtaining module is further configured to:
determining a target level of the grid map, the target level being any level of the grid map;
determining a total number of map tiles included by a target level of the grid map;
and determining the number of the watermarks to be embedded in the target level according to the watermarks to be embedded and the total number of map tiles contained in the target level.
Optionally, the third obtaining module is further configured to:
determining a map image size for the target level as a function of a total number of map tiles included in the target level;
acquiring the image size of the watermark to be embedded and acquiring the watermark embedding coefficient of the target level;
and determining the quantity of the watermarks to be embedded in the target level according to the map image size of the target level, the image size of the watermarks to be embedded and the watermark embedding coefficient of the target level.
Optionally, the third obtaining module is further configured to:
and selecting one pre-embedded map tile from the map tiles of the target level from the a-th map tile and every b map tiles according to the watermark embedding coefficients of the number of the target layers and the number of the watermarks to be embedded in the target level.
The number of the pre-embedded map tiles is consistent with the number of the watermarks to be embedded, which need to be embedded in the target level, and the watermarks to be embedded are rendered on the pre-embedded map tiles in a one-to-one correspondence manner; wherein a is an integer greater than or equal to 1 and smaller than the embedded watermark coefficient, and the value of b is the same as the embedded watermark coefficient.
Optionally, the third obtaining module is further configured to:
determining relative position coordinates of the watermark to be embedded relative to the pre-embedded map tile to be embedded;
acquiring image information of the pre-embedded map tile to be embedded and acquiring image information of the watermark to be embedded;
and rendering the image information of the watermark to be embedded to the image information of the pre-embedded map tile to be embedded based on the relative position coordinates to obtain the pre-embedded map tile containing the watermark to be embedded.
Optionally, the apparatus further comprises:
and the revocation module is used for revoking the rendered watermark to be embedded on the raster map under the condition of closing the raster map.
The watermark embedding device for the grid map, provided by the embodiment of the invention, can render the watermark to be embedded on the grid map after the grid map is started, so that the copyright protection effect is achieved, and the map tile data containing the watermark to be embedded can not be stored on the local physical storage structure of the watermark embedding device, so that the physical storage resource is saved.
It should be noted that the watermark embedding apparatus for a grid map provided in the embodiment of the present invention can implement all technical processes of the watermark embedding method for a grid map, and can achieve the same technical effects, and in order to avoid repetition, the details are not described here again.
The watermark embedding device of the grid map in the embodiment of the invention can be an electronic device, and can also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. By way of example, the electronic Device may be a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-Mobile electronic Device may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine (teller machine), a self-service machine, and the like, and the embodiments of the present invention are not limited in particular.
Optionally, as shown in fig. 8, an electronic device 800 according to an embodiment of the present invention is further provided, and includes a processor 801 and a memory 802, where the memory 802 stores a program or an instruction that can be executed on the processor 801, and when the program or the instruction is executed by the processor 801, the steps of the above-mentioned embodiment of the watermark embedding method for a grid map are implemented, and the same technical effects can be achieved, and are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present invention includes the mobile electronic device and the non-mobile electronic device described above.
The embodiment of the present invention further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the watermark embedding method for a grid map, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatus of embodiments of the present invention is not limited to performing functions in the order illustrated or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A watermark embedding method of a grid map is characterized by comprising the following steps:
acquiring a watermark to be embedded under the condition of starting the grid map;
determining the relative position coordinates of the watermark to be embedded relative to the grid map;
acquiring image information of the grid map and acquiring the image information of the watermark to be embedded;
and rendering the image information of the watermark to be embedded to the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded.
2. The watermark embedding method of the grid map according to claim 1, wherein the obtaining the image information of the grid map and the obtaining the image information to be embedded with the watermark comprises:
acquiring a first layer matrix of the grid map and acquiring a second layer matrix of the watermark to be embedded;
the rendering the image information to be embedded with the watermark to the image information of the grid map based on the relative position coordinates comprises:
determining a first sub-image layer matrix of the overlapping part of the grid map and the watermark to be embedded based on the first image layer matrix, the second image layer matrix and the relative position coordinates;
acquiring a second sub-hierarchy matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-hierarchy matrix;
obtaining the opacity of the watermark to be embedded;
and obtaining the grid map containing the watermark to be embedded based on the first sub-graph layer matrix, the second sub-graph layer matrix and the opacity of the watermark to be embedded.
3. The watermark embedding method of the grid map of claim 1, wherein prior to the determining the relative position coordinates of the watermark to be embedded with respect to the grid map, the method further comprises:
and acquiring the quantity of the watermarks to be embedded which need to be embedded in each level of the raster map.
4. The method for embedding watermarks in a grid map according to claim 3, wherein the obtaining the number of the watermarks to be embedded in each level of the grid map comprises:
determining a target level of the grid map, the target level being any level of the grid map;
determining a total number of map tiles included by a target level of the grid map;
and determining the number of the watermarks to be embedded in the target level according to the watermarks to be embedded and the total number of map tiles contained in the target level.
5. The watermark embedding method of the grid map according to claim 4, wherein the determining the number of the watermarks to be embedded in the target level according to the watermarks to be embedded and the total number of the map tiles included in the target level comprises:
determining a map image size for the target level as a function of a total number of map tiles included by the target level;
acquiring the size of the image of the watermark to be embedded and acquiring the watermark embedding coefficient of the target level;
and determining the quantity of the watermarks to be embedded in the target level according to the size of the map image of the target level, the size of the image of the watermarks to be embedded and the watermark embedding coefficient of the target level.
6. The method for embedding watermarks in a grid map according to claim 5, wherein before determining the relative position coordinates of the watermarks to be embedded with respect to the grid map, after obtaining the number of the watermarks to be embedded in each level of the grid map, the method further comprises:
according to the watermark embedding coefficient of the target layer number and the number of the watermarks to be embedded, which need to be embedded, of the target level, selecting a pre-embedded map tile from the map tiles of the target level every other b map tiles, wherein the number of the pre-embedded map tiles is consistent with the number of the watermarks to be embedded, which need to be embedded, of the map tiles of the target level;
rendering the watermarks to be embedded on the pre-embedded map tiles in a one-to-one correspondence manner;
wherein a is an integer greater than or equal to 1 and smaller than the embedded watermark coefficient, and the value of b is the same as the embedded watermark coefficient.
7. The method for embedding watermarks in a grid map as claimed in claim 6, wherein said rendering the watermarks to be embedded on the pre-embedded map tiles in a one-to-one correspondence comprises:
determining relative position coordinates of the watermark to be embedded relative to the pre-embedded map tile to be embedded;
acquiring the image information of the pre-embedded map tile and acquiring the image information of the watermark to be embedded;
rendering the image information of the watermark to be embedded to the image information of the pre-embedded map tile to be embedded based on the relative position coordinates to obtain the pre-embedded map tile containing the watermark to be embedded.
8. The watermark embedding method of the grid map according to any one of claims 1 to 7, characterized in that the method further comprises:
and under the condition that the grid map is closed, the to-be-embedded watermark rendered on the grid map is cancelled.
9. A watermark embedding apparatus for grid maps, the apparatus comprising:
the first acquisition module is used for acquiring the watermark to be embedded under the condition of starting the grid map;
the determining module is used for determining the relative position coordinates of the watermark to be embedded relative to the grid map;
the second acquisition module is used for acquiring the image information of the grid map and acquiring the image information of the watermark to be embedded;
and the rendering module is used for rendering the image information of the watermark to be embedded to the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded.
10. An electronic device, characterized in that the electronic device comprises a processor and a memory, the memory storing a program or instructions executable on the processor, which program or instructions, when executed by the processor, implement the steps of the watermark embedding method of a grid map according to any one of claims 1 to 8.
11. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the watermark embedding method of a grid map according to any one of claims 1 to 8.
CN202211286373.0A 2022-10-20 2022-10-20 Watermark embedding method and device for grid map and electronic equipment Active CN115564632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211286373.0A CN115564632B (en) 2022-10-20 2022-10-20 Watermark embedding method and device for grid map and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211286373.0A CN115564632B (en) 2022-10-20 2022-10-20 Watermark embedding method and device for grid map and electronic equipment

Publications (2)

Publication Number Publication Date
CN115564632A true CN115564632A (en) 2023-01-03
CN115564632B CN115564632B (en) 2024-04-26

Family

ID=84746303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211286373.0A Active CN115564632B (en) 2022-10-20 2022-10-20 Watermark embedding method and device for grid map and electronic equipment

Country Status (1)

Country Link
CN (1) CN115564632B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147910A1 (en) * 2001-03-05 2002-10-10 Brundage Trent J. Digitally watermarked maps and signs and related navigational tools
CN101149835A (en) * 2007-10-29 2008-03-26 中国人民解放军信息工程大学 Map data rasterizing based robust blind water mark embedding and extraction method
CN102110281A (en) * 2011-02-18 2011-06-29 南京师范大学 Method for embedding and extracting watermarks by adopting difference expansion aiming at shape point map layer data
CN103377456A (en) * 2012-04-19 2013-10-30 常熟南师大发展研究院有限公司 Self-adaptive digital raster map visible watermark method
CN107274330A (en) * 2017-05-24 2017-10-20 中国地质大学(武汉) A kind of grating map copy-right protection method based on BFA and LSB
CN108242040A (en) * 2016-12-26 2018-07-03 天津职业技术师范大学 Random order blind watermatking implementation method based on chaos system
CN112070648A (en) * 2020-09-04 2020-12-11 上海蓝书信息科技有限公司 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and electronic equipment
CN114862646A (en) * 2022-05-10 2022-08-05 南京师范大学 Watermark embedding and extracting method and system for vector tile splicing resistance

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147910A1 (en) * 2001-03-05 2002-10-10 Brundage Trent J. Digitally watermarked maps and signs and related navigational tools
CN101149835A (en) * 2007-10-29 2008-03-26 中国人民解放军信息工程大学 Map data rasterizing based robust blind water mark embedding and extraction method
CN102110281A (en) * 2011-02-18 2011-06-29 南京师范大学 Method for embedding and extracting watermarks by adopting difference expansion aiming at shape point map layer data
CN103377456A (en) * 2012-04-19 2013-10-30 常熟南师大发展研究院有限公司 Self-adaptive digital raster map visible watermark method
CN108242040A (en) * 2016-12-26 2018-07-03 天津职业技术师范大学 Random order blind watermatking implementation method based on chaos system
CN107274330A (en) * 2017-05-24 2017-10-20 中国地质大学(武汉) A kind of grating map copy-right protection method based on BFA and LSB
CN112070648A (en) * 2020-09-04 2020-12-11 上海蓝书信息科技有限公司 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and electronic equipment
CN114862646A (en) * 2022-05-10 2022-08-05 南京师范大学 Watermark embedding and extracting method and system for vector tile splicing resistance

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DENNIS EDLER: "Grids in Topographic Maps Reduce Distortions in the Recall of Learned Object Locations", PLOS ONE, 31 May 2014 (2014-05-31), pages 1 - 10 *
朱长青;符浩军;缪剑;王玉海;: "一种自适应的数字栅格地图可见水印算法", 测绘学报, no. 02, 15 April 2013 (2013-04-15), pages 150 - 155 *
朱静静: "栅格地图数字水印技术", 万方学位论文, 29 August 2008 (2008-08-29), pages 1 - 51 *
邹秀珍: "数字栅格地图抗打印扫描水印算法研究", 中国优秀硕士论文电子期刊网, 15 January 2015 (2015-01-15), pages 138 - 41 *

Also Published As

Publication number Publication date
CN115564632B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
Liu et al. Generic lossless visible watermarking—a new approach
JP3937841B2 (en) Information processing apparatus and control method thereof
US20120141014A1 (en) Color balancing for partially overlapping images
Yeung et al. Fragile watermarking of three-dimensional objects
US9159112B2 (en) Digital watermarking using saturation patterns
CN110866967B (en) Water ripple rendering method, device, equipment and storage medium
Pal et al. Weighted matrix based reversible watermarking scheme using color image
CN114418825B (en) Image processing method, image processing device, computer equipment and storage medium
CN113222921A (en) Image processing method and system
CN108197596B (en) Gesture recognition method and device
CN105160621B (en) A kind of image watermark detecting system
CN115564632B (en) Watermark embedding method and device for grid map and electronic equipment
CN112085855B (en) Interactive image editing method, device, storage medium and computer equipment
CN113962838A (en) Watermark image embedding/enhancing method, device and computer system
CN108763880B (en) Method and device for generating and detecting file watermark
CN115689849A (en) Image processing method, image processing device, computer equipment and computer readable storage medium
JP2001052156A5 (en) Engraving-style halftone image generation method / device
CN103559677B (en) Based on the adapting to image watermark embedding method of wavelet transformation and visual characteristic
CN112106100B (en) Method and apparatus for encoding watermark into digital image, method and apparatus for detecting watermark in digital image, computer program product
JP2009044726A (en) Information processor, information processing method, and program
CN111028323B (en) Method, device, equipment and readable storage medium for simulating water wave in map
CN109741465B (en) Image processing method and device and display device
CN113034368A (en) Image super-resolution model training method and device, computer equipment and medium
JP5988596B2 (en) Image quality maintenance method of latent image embedding process
JP2008536435A (en) Method and apparatus for embedding data

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