# US 2021/0232786 A1 · Reading of optical codes

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

- Number: US 2021/0232786 A1
- Document ID: US20210232786A1
- Status: Published application
- Kind: A1
- Application number: 17/158,296
- Filed: 2021-01-26
- Published: 2021-07-29
- Earliest claimed: 2020-01-27
- Assignees: Sick AG
- Applicants: Sick AG
- Inventors: Sascha BURGHARDT; Jean STAWIASKI
- Web page: https://patentgrep.com/patent/US20210232786A1

## CPC

- G06K 7/146: {the method including quality enhancement steps}
- G06K 7/10722: {Photodetector array or CCD scanning}
- G06K 7/1413: {1D bar codes}
- G06K 7/1417: {2D bar codes}
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method for reading optical codes (12) with distortions caused by an uneven back-ground of the code (12), the method comprising the steps of acquiring image data including the code (12), locating a region including the code (12) in the image data, and reading the code content of the code (12) from image data in the region, wherein the code (12) is read from image data at sampling points arranged in a sampling pattern corresponding to the distortions.

## Claims

### Claim 1

A method for reading optical codes (12) with distortions caused by an uneven background of the code (12), the method comprising the steps of
acquiring image data including the code (12),
locating a region including the code (12) in the image data,
and reading the code content of the code (12) from image data in the region,
wherein the code (12) is read from image data at sampling points arranged in a sampling pattern corresponding to the distortions.

### Claim 2 (depends on 1)

The method according to claim 1,
wherein the optical codes (12) are 2D codes.

### Claim 3 (depends on 1)

The method according to claim 1,
wherein the sampling pattern is determined without knowledge of the curvature of the uneven background.

### Claim 4 (depends on 1)

The method according to claim 1,
wherein at least one of a module size of the code (12) and a size of the required sampling pattern is determined from a finder pattern.

### Claim 5 (depends on 1)

The method according to claim 1,
wherein the sampling pattern comprises one sampling point per module of the code (12).

### Claim 6 (depends on 1)

The method according to claim 1,
wherein the sampling pattern is iteratively grown starting from a finder pattern until it covers the code (12).

### Claim 7 (depends on 6)

The method according to claim 6,
wherein initially sampling points of the sampling pattern are defined for the finder pattern.

### Claim 8 (depends on 1)

The method according to claim 1,
wherein the sampling points are initially defined still in regular arrangement according to a flat background.

### Claim 9 (depends on 1)

The method according to claim 1,
wherein the sampling points are shifted towards the center of the module they represent.

### Claim 10 (depends on 1)

The method according to claim 1,
wherein a gradient image and a magnitude image of the code (12) are calculated to determine whether a respective sampling point is located in a local extremum on the basis of the magnitude image and to determine the direction of any remaining displacement from the local extremum from the gradient image.

### Claim 11 (depends on 1)

The method according to claim 1,
wherein sampling points are shifted in steps smaller than a module size until a local extremum is reached,
the shift would lead out of a module,
or a maximum number of steps has been reached.

### Claim 12 (depends on 11)

The method according to claim 11,
where a respective sampling point is not shifted if no local extremum could be found.

### Claim 13 (depends on 1)

The method according to claim 1,
wherein a shift matrix of shifts of the respective sampling points towards a local extremum is smoothed.

### Claim 14 (depends on 13)

The method according to claim 13,
wherein the shift matrix is smoothed with a Gaussian filter.

### Claim 15 (depends on 1)

The method according to claim 1,
wherein a new shift matrix with shifts of sampling points towards a local extremum is determined iteratively and applied to the sampling pattern until a further shift matrix does not cause any more shifts above a tolerance threshold or until a maximum number of iterations is reached.

### Claim 16 (depends on 1)

The method according to claim 1,
wherein the sampling pattern is iteratively grown at at least one edge with additional sampling points until it at least one of covers the code (12) and reaches a predetermined size.

### Claim 17 (depends on 1)

The method according to claim 1,
where a further sampling pattern is determined starting from another finder pattern.

### Claim 18

A code reading apparatus (10) for reading optical codes (12) with distortions caused by an uneven background of the code (12), the code reading device (10) comprising an image sensor (14) for acquiring image data including the code (12) and a control and evaluation unit (16) which is configured to locate a region including the code in the image data and to read the code content of the code (12) from image data in the region at sampling points arranged in a sampling pattern corresponding to the distortions.

### Claim 19 (depends on 18)

The method according to claim 18,
wherein the optical code (12) are 2D codes.
