# US 2017/0256061 A1 · Image processing

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

- Number: US 2017/0256061 A1
- Document ID: US20170256061A1
- Status: Published application
- Kind: A1
- Application number: 15/408,229
- Filed: 2017-01-17
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: Zhejiang Uniview Technologies Co., Ltd.
- Applicants: Zhejiang Uniview Technologies Co., Ltd.
- Inventors: Yaonong WANG
- Web page: https://patentgrep.com/patent/US20170256061A1

## CPC

- G06T 7/136: involving thresholding
- G06T 7/11: Region-based segmentation
- G06T 2207/10152: Varying illumination
- G06T 2207/20012: Locally adaptive
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

In an example, a method of processing image is provided. According to the method, an image may be divided into a plurality of sub-regions; binarization threshold may be calculated for each of the sub-regions; a threshold surface of the image may be fit out according to the binarization threshold of each of the sub-regions, wherein the threshold surface comprises a binarization threshold corresponding to each pixel point in the image; and the image may be binarized based on the threshold surface.

## Claims

### Claim 1

A method of processing image by an image processing device, the image processing device comprising a memory storing instructions and at least one processor in communication with the memory, wherein, when the at least one processor executes the instructions, the method comprises:
dividing an image into a plurality of sub-regions;
calculating a binarization threshold of each of the sub-regions;
fitting out a threshold surface of the image according to the binarization threshold of each of the sub-regions, wherein the threshold surface comprises a binarization threshold corresponding to each pixel point in the image; and
binarizing the image based on the threshold surface.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the calculating the binarization threshold of each of the sub-regions comprises:
acquiring the binarization threshold of each of the sub-regions according to an OTSU method.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the calculating the binarization threshold of each of the sub-regions comprises:
acquiring the binarization threshold of each of the sub-regions according to a mean value calculation method.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the fitting out the threshold surface of the image according to the binarization threshold of each of the sub-regions comprises:
establishing an equation for the threshold surface by taking the binarization threshold and a central coordinate of each of the sub-regions as variables;
fitting out a set of at least one coefficient of the equation by substituting binarization thresholds and central coordinates of at least three sub-regions as known values of the variables into the equation;
obtaining a relational expression between a coordinate of a pixel point in the image and a binarization threshold of the pixel point based on the set of the at least one coefficient of the equation;
obtaining a binarization threshold corresponding to each pixel point in the image by substituting a coordinate of the each pixel point into the relational expression; and
determining the threshold surface of the image according to the obtained binarization thresholds.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the fitting out the set of the at least one coefficient of the equation by substituting the binarization thresholds and the central coordinates of the at least three sub-regions as the known values of the variables into the equation comprises:
forming a threshold matrix T with the binarization thresholds of the at least three sub-regions;
forming a central coordinate matrix A with the central coordinates of the at least three sub-regions;
obtaining a matrix relational expression T=Ax, wherein x is a coefficient matrix including the set of the at least one coefficient of the equation; and
obtaining the coefficient matrix x by solving the matrix relational expression by means of a least squares method.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the fitting out the set of the at least one coefficient of the equation by substituting the binarization thresholds and the central coordinates of the at least three sub-regions as the known values of the variables into the equation comprises:
forming a threshold matrix T with the binarization thresholds of the at least three sub-regions;
forming a central coordinate matrix A with the central coordinates of the at least three sub-regions;
determining a fitting matrix B according to the central coordinate matrix A, wherein B=(ATA)−1AT; and
obtaining a coefficient matrix x by multiplying the fitting matrix B by the threshold matrix T, wherein the coefficient matrix includes the set of the at least one coefficient of the equation.

### Claim 7

A device for processing image, comprising:
a memory storing instructions; and
at least one processor in communication with the memory, wherein, when the at least one processor executes the instructions, the at least one processor is configured to:
divide an image into a plurality of sub-regions,
calculate a binarization threshold of each of the sub-regions,
fit out a threshold surface of the image according to the binarization threshold of each of the sub-regions, wherein the threshold surface comprises a binarization threshold corresponding to each pixel point in the image, and
binarize the image based on the threshold surface.

### Claim 8 (depends on 7)

The device according to claim 7, wherein, when the at least one processor is configured to calculate the binarization threshold of each of the sub-regions, the at least one processor is configured to:
acquire the binarization threshold of each of the sub-regions according to an OTSU method.

### Claim 9 (depends on 7)

The device according to claim 7, wherein, when the at least one processor is configured to calculate the binarization threshold of each of the sub-regions, the at least one processor is configured to:
acquire the binarization threshold of each of the sub-regions according to a mean value calculation method.

### Claim 10 (depends on 7)

The device according to claim 7, wherein, when the at least one processor is configured to fit out the threshold surface of the image according to the binarization threshold of each of the sub-regions, the at least one processor is configured to:
establish an equation for the threshold surface by taking the binarization threshold and a central coordinate of each of the sub-regions as variables;
fit out a set of at least one coefficient of the equation by substituting binarization thresholds and central coordinates of at least three sub-regions as known values of the variables into the equation;
obtain a relational expression between a coordinate of a pixel point in the image and a binarization threshold of the pixel point based on the set of the at the least one coefficient of the equation;
obtain a binarization threshold corresponding to each pixel point in the image by substituting a coordinate of the pixel point into the relational expression; and
determine the threshold surface of the image according to the obtained binarization thresholds.

### Claim 11 (depends on 10)

The device according to claim 10, wherein, when the at least one processor is configured to fit out the set of the at least one coefficient of the equation by substituting the binarization thresholds and the central coordinates of the at least three sub-regions as the known values of the variables into the equation, the at least one processor is configured to:
form a threshold matrix T with the binarization thresholds of the at least three sub-regions;
form a central coordinate matrix A with the central coordinates of the at least three sub-regions;
obtain a matrix relational expression T=Ax, wherein x is a coefficient matrix including the set of the at least one coefficient of the equation; and
obtain the coefficient matrix x by solving the matrix relational expression by means of a least squares method.

### Claim 12 (depends on 10)

The device according to claim 10, wherein, when the at least one processor is configured to fit out the set of the at least one coefficient of the equation by substituting the binarization thresholds and the central coordinates of the at least three sub-regions as the known values of the variables into the equation, the at least one processor is configured to:
form a threshold matrix T with the binarization thresholds of the at least three sub-regions;
form a central coordinate matrix A with the central coordinates of the at least three sub-regions;
determine a fitting matrix B according to the central coordinate matrix A, wherein B=(ATA)−1AT, and
obtain a coefficient matrix x by multiplying the fitting matrix B by the threshold matrix T, wherein the coefficient matrix includes the set of the at least one coefficient of the equation.
