CN115564632B - 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
CN115564632B
CN115564632B CN202211286373.0A CN202211286373A CN115564632B CN 115564632 B CN115564632 B CN 115564632B CN 202211286373 A CN202211286373 A CN 202211286373A CN 115564632 B CN115564632 B CN 115564632B
Authority
CN
China
Prior art keywords
embedded
watermark
map
grid map
acquiring
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.)
Active
Application number
CN202211286373.0A
Other languages
Chinese (zh)
Other versions
CN115564632A (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

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 of 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 a 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 to be embedded with the watermark onto 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, and is also the basis for generating other data, and has an indisputable position.
Map data is shared to web and app ends through a network, so that the map data is greatly convenient for all people to use, but the problems of safety and copyright protection are increased. In order to solve the above problems, the prior art adopts a method of directly modifying and storing original map data to form watermarks on a grid map to verify data ownership. However, this method causes a computer to store a large amount of tile map data, which places a burden on 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 stores too much 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 a 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 to be embedded with the watermark onto 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 acquiring the image information of the grid map, and the acquiring 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 onto the image information of the grid map based on the relative position coordinates comprises the following steps:
Determining a first sub-layer matrix of an 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;
acquiring a second sub-layer matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-layer matrix;
Acquiring the opacity of the watermark to be embedded;
and obtaining the grid map containing the watermark to be embedded based on the first sub-layer matrix, the second sub-layer matrix and the opacity of the watermark to be embedded.
Optionally, before the determining the relative position coordinates of the watermark to be embedded with respect to the grid map, the method further includes:
and obtaining the quantity of the watermarks to be embedded, which are required to be embedded, of each level of the grid map.
Optionally, the obtaining the number of watermarks to be embedded in each level of the grid map includes:
determining a target level of the grid map, wherein the target level is any level of the grid map;
determining a total number of map tiles contained by a target level of the grid map;
And determining the number of the watermarks to be embedded, which are required to be embedded in the target level, according to the total number of the watermarks to be embedded and the 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 level, the number of watermarks to be embedded in the target level includes:
Determining the map image size of the target level according to the total number of map tiles contained 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, which are required 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 watermarks to be embedded in each level of the grid map, the method further includes:
selecting a pre-embedded map tile from an a-th map tile in map tiles of the target level according to the embedded watermark coefficient of the target level and the number of the watermarks to be embedded in the target level, wherein the number of the pre-embedded map tiles is consistent with the number of the watermarks to be embedded in 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 less 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 onto the pre-embedded map tiles in a one-to-one correspondence includes:
determining the 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;
And rendering the image information to be embedded with the watermark 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, the rendered watermark to be embedded on the grid map is withdrawn.
In a second aspect, an embodiment of the present invention provides a watermark embedding apparatus for a raster map, including:
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 to be embedded with the watermark onto 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, the electronic device including a processor and a memory storing a program or instructions executable on the processor, the program or instructions implementing the steps of the watermark embedding method for a raster map as set forth in the first aspect when executed by the processor.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor, 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 watermark to be embedded is rendered on the grid map only after the grid map is started, and the image data of the grid map containing the watermark to be embedded, namely, a large amount of map tile data with the watermark data to be embedded, is not stored on the physical storage structures of the computer, the mobile phone and other devices, so that the physical storage resources are saved.
Drawings
Fig. 1 is a schematic flow chart of a watermark embedding method of a grid map according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method for embedding a watermark in a raster map according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a method for embedding a watermark in a raster map according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of obtaining the number of watermarks to be embedded in each level of a grid map in the watermark embedding method of the grid map according to the embodiment of the present invention;
fig. 5 is a schematic flow chart of determining the number of watermarks to be embedded in a target level according to the total number of the watermarks to be embedded and map tiles contained in the target level in the watermark embedding method of the raster map according to the embodiment of the present invention;
FIG. 6 is a flowchart of a method for embedding a watermark in a raster map according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a watermark embedding device of a raster 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 of the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present invention, fall within the scope of protection of the present invention.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present invention may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The watermark embedding method of the grid map provided by the embodiment of the invention is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
As shown in fig. 1, the watermark embedding method of the grid map provided by the embodiment of the invention comprises 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 geographical range of the representation 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 the watermark data to be embedded stored in the electronic equipment can be called, and in the step, the grid map and the watermark to be embedded are two independent images.
Step S2, determining the relative position coordinates of the watermark to be embedded relative to the grid map,
The relative position coordinates may be determined in various ways, and by way of example, any pixel on the grid map may be used as an origin to establish a coordinate system, and the following description will take the lower left corner vertex of the grid map as an origin.
Optionally, the grid map has a length c, a width d, a length m, a width n, and coordinates of a left lower corner vertex to be embedded with the watermark in a coordinate system as relative position coordinates (e, f), wherein (0.ltoreq.e.ltoreq.c-m), (0.ltoreq.f.ltoreq.d-n). The relative position coordinates (e, f) may be optional within a range of values.
Step S3, obtaining the image information of the grid map and obtaining the image information of the watermark to be embedded,
Since the image of the raster map and the image to be embedded with the watermark are each composed of a plurality of pixels, the raster map and the image information to be embedded with the watermark are each pixel information contained, and the pixel information includes the size of the pixel, the color depth of the pixel, the pixel position, and the like.
And step S4, rendering the image information to be embedded with the watermark 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 contained in each of the grid map and the watermark to be embedded is obtained, the specific position of the watermark to be embedded on the grid map can be determined by combining the relative position coordinates of the watermark to be embedded relative to the grid map, and then the image of the grid map containing the watermark to be embedded can be output by combining the information such as the size of the pixel, the color depth of the pixel and the like.
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 steps S1 to S4 are only performed after the grid map is started so as to render the watermark to be embedded onto the grid map, and image data of the grid map containing the watermark to be embedded, that is, a large amount of map tile data with the watermark data to be embedded, is not stored on a physical storage structure of a computer, a mobile phone or other equipment, thereby achieving the purpose of saving physical storage resources. It is noted that since the raster map containing the watermark to be embedded is not stored in the local physical storage structure, the above-described rendering process needs to be performed once every time the raster map is started to form the watermark and protect the copyright.
As an optional implementation manner, as shown in fig. 2, the watermark embedding method of the grid map provided by the embodiment of the 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 details of the steps S1 and S2 may be described in the embodiment described in fig. 1, and will not be repeated here.
In the step S3 of the method,
Acquiring a first layer matrix of the grid map and acquiring a second layer matrix of the watermark to be embedded,
The first layer matrix is a set of all pixel points forming the grid map, and includes a pixel size, a pixel color depth and a pixel position of each pixel point. Similarly, the second layer matrix includes pixel size, pixel color depth, and pixel position of all pixels constituting the watermark to be embedded.
Step S41, based on the first layer matrix, the second layer matrix and the relative position coordinates, determining a first sub-layer matrix of the overlapping part of the grid map and the watermark to be embedded,
According to the relative position coordinates, the specific position of the second layer matrix W added to the first layer matrix I can be known, and the first sub-layer matrix I 1 is a part of the first layer matrix I, specifically, a layer matrix in the overlapping portion of the first layer matrix I and the second layer matrix W.
Step S42, obtaining a second sub-layer matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-layer matrix,
It will be appreciated that the second sub-layer matrix I 2 is the layer matrix remaining after the first layer matrix I has removed the overlapping portion of the first layer matrix I with the second layer matrix W, i.e., the first sub-layer matrix I 1.
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 the opacity K with the image of the grid map, 1 > K > 0, and K may be any value in the value range. When the opacity of the watermark to be embedded is 1, the image to be embedded will block the image of the grid map, so that the user cannot inquire the needed map information. When the opacity of the watermark to be embedded is 0, the user cannot see the image to be embedded, and the copyright protection function cannot be achieved.
And step S44, obtaining the grid map containing the watermark to be embedded based on the first sub-layer matrix, the second sub-layer matrix and the opacity of the watermark to be embedded.
Alternatively, the layer matrix containing the grid map to be watermarked may be denoted as I Z,IZ=I1×(1-K)+WK+I2. According to the layer matrix I Z of the grid map containing the watermark to be embedded, an image containing the grid map containing the watermark to be embedded can be rendered, so that a user can see the obvious image of the watermark to be embedded without affecting the view of map information, and the copyright protection function is realized.
As an optional implementation manner, as shown in fig. 3, in step S2, before determining the relative position coordinates of the watermark to be embedded with respect to the grid map, the watermark embedding method of the grid map provided by the embodiment of the present invention further includes:
and S5, acquiring the number of the watermarks to be embedded, which are required to be embedded, of each level of the grid map.
The watermark embedding method is mainly used for the grid map, and the grid map is a tile map pyramid model, so that resolutions of different levels of the grid map are different, and the number of existing map tiles is different. The strategy of adding the watermarks to be embedded is adjusted according to different levels of the grid map, namely the quantity of the watermarks to be embedded which need to be embedded is adaptively determined, so that a user can see 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 guaranteeing copyright protection.
Further, as shown in fig. 4, step S5, obtaining the number of 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 will be appreciated that the number of map tiles contained in different levels of the grid map is different, and the level in which the grid map is currently located is determined, so that the number of watermarks to be embedded to be rendered can be adjusted according to the map tile characteristics in the level.
Step S52, determining a total number of map tiles contained in a target hierarchy of the grid map,
In the application process of the pyramid model of the tile map, firstly, determining the zoom level to be provided by the map service platform, wherein the map picture with the highest zoom level and the largest map proportion is used as the top layer of the pyramid, namely the 0 th layer, and the total number of map tiles of the 0 th layer is 1. And then the map tiles of the 0 th layer are segmented, the upper left corner of the map tile of the 0 th layer is cut from left to right and from top to bottom, the map tiles are divided into square map tiles with the same size, the 1 st layer is generated according to a method that each pixel is divided into 2 multiplied by 2 pixels, the total number of the map tiles of the 1 st layer is 4, and the like until the whole grid map is generated. Thus, after determining the target level Z of the grid map, the total number of map tiles n=2 2Z included in the grid map target level may be obtained.
Step S53, determining the number of the watermarks to be embedded in the target level according to the total number of the watermarks to be embedded and the map tiles contained in the target level.
The number of watermarks to be embedded can be adaptively determined according to the total number N of map tiles and the size of the data to be embedded with the watermarks, such as the size of the watermarks to be embedded, so that a user can see 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, determining, according to the watermark to be embedded and the total number of map tiles included in the target level, the number of watermarks 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 contained in the target level,
Since the image size of each map tile is 256×256, the map image size α=256×256×n of the target hierarchy is the total number of map tiles of the target hierarchy.
Step S532, obtaining the image size of the watermark to be embedded, and obtaining the watermark embedding coefficient of the target level,
The image size β=m×n to be watermarked, wherein m represents the length of the image to be watermarked, n represents the width of the image to be watermarked, and m and n are both greater than 0 and less than 256. The embedded watermark coefficients of the target level, W Z,Z<WZ <2Z, Z is a value representing the target level, and W Z is an integer.
Step S533, determining the number of 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 number g=α/βw Z of watermarks to be embedded in the target level is the map image size of the target level, α is the image size of the watermarks to be embedded, and G is an integer taken downwards. By the method, the number of watermarks to be embedded, which are required to be embedded, of different target levels is determined, so that watermark embedding strategies of the different target levels are adjusted, the situation that images with the watermarks to be embedded are easily perceived after rendering on a map of the target levels is ensured, and the integrity of map information is not affected.
Further, before determining the relative position coordinates of the watermark to be embedded with respect to the grid map in step S2, after obtaining the number of watermarks to be embedded in each level of the grid map in step S5, the method further includes:
selecting a pre-embedded map tile from an a-th map tile in map tiles of the target level according to the embedded watermark coefficient of the target level and the number of the watermarks to be embedded in the target level, wherein the number of the pre-embedded map tiles is consistent with the number of the watermarks to be embedded in 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 less than the embedded watermark coefficient, and the value of b is the same as the embedded watermark coefficient. Taking a=1 as an example, in the target level, the 1 st map tile is the 1 st pre-embedded map tile, and then one pre-embedded map tile is selected every W Z tiles, namely, the 1 st, 1+W Z th, 1+2w Z th and 1+3w Z th. 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 onto 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,
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 the present embodiment, the coordinate system is determined by using the pixel points on the pre-embedded map tile as the origin.
Obtaining the image information of the pre-embedded map tile, obtaining the 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, where 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.
And rendering the image information to be embedded with the watermark 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.
From the third layer matrix and the second layer matrix, a third sub-layer matrix I 3 of the portion of the pre-embedded map tile that overlaps the watermark to be embedded may be determined, and a fourth sub-layer matrix I 4 of the portion of the pre-embedded map tile that does not overlap the watermark to be embedded may be determined. The data are combined with the opacity K (1 is more than K is more than 0), a layer matrix I G=I3×(1-K)+WK+I4 of the pre-embedded map tiles containing the watermark to be embedded can be obtained, the pre-embedded map tiles containing the watermark to be embedded can be rendered according to the I G, and after all the pre-embedded map tiles of the target level are rendered, the map image of the target level is formed together. By the method, the clear and complete image to be embedded with the watermark uniformly exists on the map image of the target level, so that the effect of copyright protection 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 of closing the grid map, the rendered watermark to be embedded on the grid map is withdrawn.
Through the revocation procedure, map tile data containing the watermark to be embedded cannot be stored on a local physical storage structure, and storage burden is reduced.
According to the watermark embedding method for the raster map provided by the embodiment of the invention, the execution subject can be the watermark embedding device 700 for the raster map. In the embodiment of the present invention, the watermark embedding device 700 of the raster map performs the watermark embedding method of the raster map as an example, and the watermark embedding device 700 of the raster 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 the grid map is started;
A determining module 702, configured to determine a relative position coordinate 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;
And a rendering module 704, configured to render the image information to be embedded with the watermark onto the image information of the raster map based on the relative position coordinates, so as to obtain the raster map containing the watermark to be embedded.
Optionally, the second acquisition module is further configured to:
Acquiring a first layer matrix of the grid map and acquiring a second layer matrix of the watermark to be embedded;
The rendering module is further configured to:
Determining a first sub-layer matrix of an 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;
Acquiring a second sub-layer matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-layer matrix; acquiring the opacity of the watermark to be embedded;
and obtaining the grid map containing the watermark to be embedded based on the first sub-layer matrix, the second sub-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 are required to be embedded, of each level of the grid map.
Optionally, the third obtaining module is further configured to:
determining a target level of the grid map, wherein the target level is any level of the grid map;
determining a total number of map tiles contained by a target level of the grid map;
And determining the number of the watermarks to be embedded, which are required to be embedded in the target level, according to the total number of the watermarks to be embedded and the map tiles contained in the target level.
Optionally, the third obtaining module is further configured to:
Determining the map image size of the target level according to the total number of map tiles contained 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, which are required 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 a pre-embedded map tile from an a-th map tile in the map tiles of the target level according to the embedded watermark coefficient of the target level 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 are required to be embedded, of 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 less 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 the 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 to be embedded with the watermark 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 revoked the watermark to be embedded which is rendered on the grid map under the condition of closing the grid map.
The watermark embedding device of the raster map provided by the embodiment of the invention can render the watermark to be embedded on the raster map after the raster map is started, plays a role in protecting copyright, and map tile data containing the watermark to be embedded cannot be stored on a local physical storage structure of the watermark embedding device, so that physical storage resources are saved.
It should be noted that, the watermark embedding device of the grid map provided by the embodiment of the present invention can implement all technical processes of the watermark embedding method of the grid map, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided here.
The watermark embedding device of the grid map in the embodiment of the invention can be electronic equipment or a component in the electronic equipment, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. For 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 appliance (Mobile INTERNET DEVICE, MID), an augmented reality (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), etc., and the non-Mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., which is not limited in the embodiments of the present invention.
Optionally, as shown in fig. 8, the embodiment of the present invention further provides an electronic device 800, including 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 the program or the instruction implements each step of the watermark embedding method embodiment of the raster map when executed by the processor 801, and the steps achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the invention includes the mobile electronic device and the non-mobile electronic device.
The embodiment of the invention also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the watermark embedding method embodiment of the grid map, and can achieve the same technical effect, so that repetition is avoided, and no further description is provided herein.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
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 … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present invention is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing is merely illustrative 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 think about variations or substitutions within the technical scope of the present invention, and the invention should be covered. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method of embedding a watermark in a raster map, the method comprising the steps of:
Acquiring a watermark to be embedded under the condition of starting a 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;
rendering the image information to be embedded with the watermark onto the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded;
the obtaining the image information of the grid map, and the obtaining the image information of the watermark to be embedded comprise:
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 onto the image information of the grid map based on the relative position coordinates comprises the following steps:
Determining a first sub-layer matrix of an 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;
acquiring a second sub-layer matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-layer matrix;
Acquiring the opacity of the watermark to be embedded;
and obtaining the grid map containing the watermark to be embedded based on the first sub-layer matrix, the second sub-layer matrix and the opacity of the watermark to be embedded.
2. The method of watermark embedding in a raster map of claim 1, wherein prior to said determining relative position coordinates of said watermark to be embedded with respect to said raster map, said method further comprises:
and obtaining the quantity of the watermarks to be embedded, which are required to be embedded, of each level of the grid map.
3. The method for embedding watermarks in a raster map of claim 2, wherein the obtaining the number of watermarks to be embedded in each level of the raster map includes:
determining a target level of the grid map, wherein the target level is any level of the grid map;
determining a total number of map tiles contained by a target level of the grid map;
And determining the number of the watermarks to be embedded, which are required to be embedded in the target level, according to the total number of the watermarks to be embedded and the map tiles contained in the target level.
4. The method for embedding watermarks in a raster map of claim 3, wherein determining the number of watermarks to be embedded in the target level according to the total number of map tiles included in the watermarks to be embedded and the target level includes:
Determining the map image size of the target level according to the total number of map tiles contained 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, which are required 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.
5. The method for embedding watermarks in a raster map of claim 4, wherein before determining the relative position coordinates of the watermarks to be embedded relative to the raster map, after obtaining the number of watermarks to be embedded in each level of the raster map, the method further comprises:
According to the watermark embedding coefficient of the target level and the number of watermarks to be embedded, selecting a pre-embedded map tile from the a-th map tile in the map tiles of the target level, wherein the number of pre-embedded map tiles is consistent with the number of watermarks to be embedded 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 less than the embedded watermark coefficient, and the value of b is the same as the embedded watermark coefficient.
6. The method for embedding the watermark in the grid map according to claim 5, wherein the rendering the watermark to be embedded onto the pre-embedded map tiles in a one-to-one correspondence comprises:
determining the 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;
And rendering the image information to be embedded with the watermark 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.
7. The watermark embedding method of a grid map according to any one of claims 1 to 6, characterized in that the method further comprises:
and under the condition of closing the grid map, the rendered watermark to be embedded on the grid map is withdrawn.
8. A watermark embedding device for a grid map, the device 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;
The rendering module is used for rendering the image information to be embedded with the watermark onto the image information of the grid map based on the relative position coordinates to obtain the grid map containing the watermark to be embedded;
The second acquisition module is further configured to:
Acquiring a first layer matrix of the grid map and acquiring a second layer matrix of the watermark to be embedded;
The rendering module is further configured to:
Determining a first sub-layer matrix of an 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;
Acquiring a second sub-layer matrix which is not overlapped with the watermark to be embedded in the grid map based on the first sub-layer matrix; acquiring the opacity of the watermark to be embedded;
and obtaining the grid map containing the watermark to be embedded based on the first sub-layer matrix, the second sub-layer matrix and the opacity of the watermark to be embedded.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the watermark embedding method of a raster map as claimed in any one of claims 1 to 7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the watermark embedding method of a grid map as claimed in any one of claims 1 to 7.
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 CN115564632A (en) 2023-01-03
CN115564632B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7249257B2 (en) * 2001-03-05 2007-07-24 Digimarc Corporation Digitally watermarked maps and signs and related navigational tools

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
Grids in Topographic Maps Reduce Distortions in the Recall of Learned Object Locations;Dennis Edler;PLOS ONE;20140531;第1-10页 *
一种自适应的数字栅格地图可见水印算法;朱长青;符浩军;缪剑;王玉海;;测绘学报;20130415(02);第150-155页 *
数字栅格地图抗打印扫描水印算法研究;邹秀珍;中国优秀硕士论文电子期刊网;20150115;第I138-41页 *
栅格地图数字水印技术;朱静静;万方学位论文;20080829;第1-51页 *

Also Published As

Publication number Publication date
CN115564632A (en) 2023-01-03

Similar Documents

Publication Publication Date Title
Liu et al. Generic lossless visible watermarking—a new approach
JP4819164B2 (en) Image-mapped point cloud with the ability to accurately display point coordinates
JP7175197B2 (en) Image processing method and device, storage medium, computer device
JP2003209678A (en) Information processing unit and its control method
US9159112B2 (en) Digital watermarking using saturation patterns
CN110866967B (en) Water ripple rendering method, device, equipment and storage medium
CN111932432B (en) Blind watermark implanting method, blind watermark detecting method, blind watermark implanting device, blind watermark detecting equipment and storage medium
CN114418825B (en) Image processing method, image processing device, computer equipment and storage medium
CN113222921A (en) Image processing method and system
CN105160618B (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
CN108156397A (en) A kind of method and apparatus for handling monitored picture
CN113962838A (en) Watermark image embedding/enhancing method, device and computer system
CN109741448B (en) Method, device and equipment for drawing three-dimensional fluctuation model based on DEM data
JP2001052156A5 (en) Engraving-style halftone image generation method / device
CN109741465B (en) Image processing method and device and display device
CN103559677B (en) Based on the adapting to image watermark embedding method of wavelet transformation and visual characteristic
JP5988596B2 (en) Image quality maintenance method of latent image embedding process
JP2008536435A (en) Method and apparatus for embedding data
CN110795096A (en) Slice layer special effect realization method based on openlayers
CN110620961A (en) Video watermark adding method and device and video editing terminal
CN112106100A (en) Method and device for encoding a watermark into a digital image, method and device for detecting a watermark in a digital image, computer program product
JP2001333267A (en) Electronic watermark embedding method
KR101864454B1 (en) Apparatus and method for composing images in an image processing 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