# US 2019/0297219 A1 · Systems and methods for digital watermark localization based upon background foreground estimation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0297219 A1
- Document ID: US20190297219A1
- Status: Published application
- Kind: A1
- Application number: 15/934,729
- Filed: 2018-03-23
- Published: 2019-09-26
- Earliest claimed: 2018-03-23
- Assignees: Datalogic IP Tech S.R.L.
- Applicants: Datalogic IP Tech S.R.L.
- Inventors: Stefano Santi; Lorenzo Vorabbi
- Web page: https://patentgrep.com/patent/US20190297219A1

## CPC

- H04N 1/32229: {with selective or adaptive application of the additional information, e.g. in selected regions of the image (H04N1/32213 takes precedence)}
- G06V 10/245: {by locating a pattern; Special marks for positioning}
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/273: {removing elements interfering with the pattern to be recognised}
- H04N 1/32251: {in multilevel data, e.g. greyscale or continuous tone data}
- H04N 1/32267: {combined with processing of the image}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A system and method for localizing an area of interest likely containing a digital watermark is disclosed. Image frames may be segmented into multiple tiles. A pixel having the maximum grayscale or other value and a pixel having the minimum grayscale or other value in each tile may be identified. Maximum and minimum image maps may be generated from the image frame by replacing each tile with the respective maximum and minimum grayscale or other value pixels. A background map may be generated based on a moving average of the grayscale values of the pixels in the image maps. Foreground map(s) may be generated based on the difference of the values from the image maps to the background map. A region of interest may be determined based on the background and foreground maps and provided to a watermark decoder. Content contained in the digital watermark may be read.

## Claims

### Claim 1

A method for decoding a digital watermark, the method comprising:
segmenting an image frame within a sequence of image frames into a plurality of distinct tiles including a plurality of pixels;
generating a background map based on the tiles
generating a foreground map based on the tiles;
determining a region of interest for digital watermark decoding based on the background and foreground maps; and
decoding a digital watermark at least partially located in the region of interest.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the tiles are in a grayscale format.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the background map includes a minimum background map based on a pixel with the minimum grayscale value for each of the plurality of tiles and generated by replacing by each tile by the respective pixel with the minimum grayscale value.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the background map includes a maximum background map based on a pixel with the maximum grayscale value for each of the plurality of tiles and generated by replacing by each tile by the respective pixel with the maximum grayscale value.

### Claim 5 (depends on 4)

The method of claim 4, wherein the background map is generated by updating a previously generated background map by replacing the respective oldest grayscale values for one or more pixels of the previously generated background map, adding the respective grayscale values for the one or more pixels, and calculating the median grayscale values for the one or more pixels such that the background map represents a moving average of the grayscale values of the one or more pixels.

### Claim 6 (depends on 2)

The method according to claim 2, wherein generating foreground map includes (i) generating a low activity foreground map wherein the respective differences between the grayscale values of the pixels in the low activity foreground map are above a first threshold and below a second threshold and (ii) generating a high activity foreground map, wherein the respective differences between the grayscale values of the pixels in the low activity foreground map are above the second threshold.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
updating the first and second thresholds based upon receiving an indication of a successful decoding of a watermark in the region of interest.

### Claim 8 (depends on 1)

The method according to claim 1, wherein determining the region of interest comprises:
segmenting the foreground map into a plurality of blocks;
calculating a activity score for each of the blocks; and
selecting a block with the highest activity score as the region of interest.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
selecting a size for the plurality of blocks based on a distance between a scanner generating the image frame and an object in the image frame.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising:
reprojecting the region of interest to the image frame.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the background map is generated for predetermined time intervals, and wherein the foreground map is generated based on the frame rate of the sequence of image frames.

### Claim 12

A system of decoding a digital watermark, the system comprising:
a communications unit configured to receive a sequence of image frames;
a processing unit in communication with the communications unit, and configured to:
segment an image frame within a sequence of image frames into a plurality of distinct tiles including a plurality of pixels;
generate a background map based on the tiles;
generate a foreground map based on the tiles;
determine a region of interest for digital watermark decoding based on the background and foreground maps; and
decode a digital watermark at least partially located in the region of interest.

### Claim 13 (depends on 12)

The system according to claim 12, wherein the tiles are in a grayscale format.

### Claim 14 (depends on 13)

The system according to claim 13, wherein the background map includes a minimum background map based on a pixel with the minimum grayscale value for each of the plurality of tiles and generated by replacing by each tile by the respective pixel with the minimum grayscale value.

### Claim 15 (depends on 14)

The system according to claim 14, wherein the background map includes a maximum background map based on a pixel with the maximum grayscale value for each of the plurality of tiles and generated by replacing by each tile by the respective pixel with the maximum grayscale value.

### Claim 16 (depends on 13)

The system of claim 13, wherein the processing unit is further configured to generate the background map by updating a previously generated background map by replacing the respective oldest grayscale values for one or more pixels of the previously generated background map, adding the respective grayscale values for the one or more pixels, and calculating the median grayscale values for the one or more pixels such that the background map represents a moving average of the grayscale values of the one or more pixels.

### Claim 17 (depends on 13)

The system according to claim 13, wherein the processing unit is further configured to:
generate a low activity foreground map wherein the respective differences between the grayscale values of the pixels in the low activity foreground map are above a first threshold and below a second threshold; and
generate a high activity foreground map wherein the respective differences between the grayscale values of the pixels in the low activity foreground map are above the second threshold.

### Claim 18 (depends on 17)

The system according to claim 17, wherein the processing unit is further configured to:
update the first and second thresholds based upon receiving an indication of a successful decoding of a watermark in the region of interest.

### Claim 19 (depends on 12)

The system according to claim 12, wherein the processing unit is further configured to:
segment the foreground map into a plurality of blocks;
calculate a activity score for each of the blocks; and
select a block with the highest activity score as the region of interest.

### Claim 20 (depends on 12)

The system according to claim 12, wherein the processing unit is further configured to:
generate the background map for predetermined time intervals; and
generate the foreground map at the frame rate of the sequence of image frames.
