# US 2021/0334574 A1 · Commodity detection terminal, commodity detection method, system, computer device, and computer readable medium

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

- Number: US 2021/0334574 A1
- Document ID: US20210334574A1
- Status: Published application
- Kind: A1
- Application number: 16/498,750
- Filed: 2019-04-03
- Published: 2021-10-28
- Earliest claimed: 2018-05-30
- Assignees: Boe Technology Group Co., Ltd.
- Applicants: Boe Technology Group Co., Ltd.
- Inventors: Huanhuan ZHANG; Tong LIU; Yifei ZHANG; Xiaojun TANG
- Web page: https://patentgrep.com/patent/US20210334574A1

## CPC

- G06T 7/0008: {checking presence/absence}
- G06F 18/23: Clustering techniques
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06T 5/70: Denoising; Smoothing
- G06T 7/13: Edge detection
- G06T 7/254: involving subtraction of images
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- G06T 2207/10024: Color image
- G06T 2207/30128: Food products
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A commodity detection terminal is disclosed, the commodity detection terminal includes: an image segmentation unit configured to obtain position information of each grid of a goods shelf in an image of the goods shelf based on a first image, which is an image of the goods shelf not placed with commodities; a detector unit configured to obtain a current grid where each commodity is located and a current quantity of each commodity based on a second image, which is a current image of the goods shelf placed with commodities; and a determination unit configured to compare the current grid and the current quantity with a preset grid and a preset quantity of the each commodity, so as to determine whether a status of each commodity satisfies a preset condition. A commodity detection method, an intelligent goods shelf system, a computer device, and a readable medium are also disclosed.

## Claims

### Claim 1

A commodity detection terminal, comprising:
an image segmentation unit configured to obtain position information of each grid of a goods shelf in an image of the goods shelf based on a first image, the first image being an image of the goods shelf when no commodity is placed on the goods shelf;
a detector unit configured to obtain a current grid where each commodity is located and a current quantity of the each commodity based on a second image, the second image being a current image of the goods shelf placed with commodities; and
a determination unit configured to compare the current grid where the each commodity is located and the current quantity of the each commodity with a preset grid and a preset quantity of the each commodity, so as to determine whether a status of the each commodity satisfies a preset condition.

### Claim 2 (depends on 1)

The commodity detection terminal according to claim 1, wherein the image segmentation unit comprises:
a feature extraction unit configured to convert the first image into a grayscale image, and obtain a feature image based on color channel images extracted and the grayscale image;
an edge detector unit configured to extract edge information and perform edge detection according to the feature image, so as to obtain a binary image; and
a straight line extraction unit configured to extract straight lines according to the binary image and use the straight lines as segmentation lines of the first image.

### Claim 3 (depends on 2)

The commodity detection terminal according to claim 2, wherein the color channel images comprises: a channel image of a first color, a channel image of a second color, and a channel image of a third color; and
the feature extraction unit comprises a calculator unit, the calculator unit is configured to obtain a differential absolute value image of the grayscale image and one of the color channel images, and obtain a gradient magnitude image of the differential absolute value image, wherein the gradient magnitude image is set as the feature image.

### Claim 4 (depends on 3)

The commodity detection terminal according to claim 3, wherein the grayscale image is configured to be obtained by calculating an effective brightness value of each pixel in the first image; and
a formula of the effective brightness value is Y=0.3R+0.59G+0.11B,
where Y represents a grayscale value of the each pixel, R represents a first color channel value of the each pixel, G represents a second color channel value of the each pixel, and B represents a third color channel value of the each pixel.

### Claim 5 (depends on 3)

The commodity detection terminal according to claim 3, wherein the first color is red color, the second color is green color, and the third color is blue color;
the feature extraction unit is configured to extract a channel image of the red color; and
the calculator unit is configured to obtain a differential absolute value image of the grayscale image and the channel image of the red color through calculation, and to obtain a gradient magnitude image of the differential absolute value image of the grayscale image and the channel image of the red color.

### Claim 6 (depends on 2)

The commodity detection terminal according to claim 2, wherein the image segmentation unit comprises at least one of following units:
a straight line clustering unit configured to cluster the straight lines to obtain a straight line detection result;
a noise processor unit configured to perform a mean filtering process on the first image to remove image noise; and
a distortion correction unit configured to perform image correction on the first image by a checkerboard calibration method.

### Claim 7 (depends on 1)

The commodity detection terminal according to claim 1, further comprising:
a training unit configured to establish a commodity detection model based on a single shot multibox detector (SSD) algorithm,
wherein the detector unit is configured to perform commodity detection through the commodity detection model.

### Claim 8 (depends on 1)

The commodity detection terminal according to claim 1, wherein the determination unit comprises:
a commodity misplacement determination unit configured to compare the current grid where the each commodity is located with the preset grid of the each commodity, and to determine that a corresponding commodity is in a commodity misplacement state if a comparison result is that the current grid and the preset grid are inconsistent; and/or,
a commodity shortage determination unit configured to compare the current quantity of the each commodity with a preset critical quantity value of the each commodity, and to determine that a corresponding commodity is in a commodity shortage state if a current quantity of the corresponding commodity is less than a preset critical quantity value of the corresponding commodity.

### Claim 9

A commodity detection method, comprising:
obtaining position information of each grid of a goods shelf in a first image based on the first image, wherein the first image is an image of the goods shelf when no commodity is placed on the goods shelf;
obtaining a current grid where each commodity is located and a current quantity of the each commodity based on a second image, wherein the second image is a current image of the goods shelf placed with commodities; and
comparing the current grid where the each commodity is located and the current quantity of the each commodity with a preset grid and a preset critical quantity value of the each commodity, so as to determine whether a status of the each commodity satisfies a preset condition.

### Claim 10 (depends on 9)

The commodity detection method according to claim 9, wherein obtaining the position information of the each grid of the goods shelf in the first image based on the first image comprises:
converting the first image into a grayscale image, and obtaining a feature image based on color channel images extracted and the grayscale image;
performing edge detection to extract edge information according to the feature image, so as to obtain a binary image; and
extracting straight lines according to the binary image and using the straight lines as segmentation lines of the first image.

### Claim 11 (depends on 10)

The commodity detection method according to claim 10, wherein the color channel images comprises: a channel image of a first color, a channel image of a second color, and a channel image of a third color;
converting the first image into the grayscale image and obtaining the feature image based on the color channel images extracted and the grayscale image comprises:
obtaining a differential absolute value image of the grayscale image and one of the color channel images, obtaining a gradient magnitude image of the differential absolute value image, and setting the gradient magnitude image as the feature image.

### Claim 12 (depends on 4411)

The commodity detection method according to claim 4411, wherein the first color is red color, the second color is green color, and the third color is blue color; and
obtaining the feature image based on the color channel images extracted and the grayscale image comprises:
extracting a channel image of the red color,
obtaining a differential absolute value image of the grayscale image and the channel image of the red color, and obtaining a gradient magnitude image of the differential absolute value image of the grayscale image and the channel image of the red color, and
setting the gradient magnitude image of the differential absolute value image of the grayscale image and the channel image of the red color as the feature image.

### Claim 13 (depends on 10)

The commodity detection method according to claim 10, wherein the grayscale image is obtained by calculating an effective brightness value of each pixel in the first image; and
a formula of the effective brightness value is: Y=0.3R+0.59G+0.11B,
where Y represents a grayscale value of the each pixel, R represents a first color channel value of the each pixel, G represents a second color channel value of the each pixel, and B represents a third color channel value of the each pixel.

### Claim 14 (depends on 10)

The commodity detection method according to claim 10, wherein obtaining the position information of the each grid of the goods shelf in the first image based on the first image further comprises at least one of following steps:
clustering the straight lines to obtain a straight line detection result;
performing a mean filtering process on the first image to remove image noise; and
performing image correction on the first image by a checkerboard calibration method.

### Claim 15 (depends on 9)

The commodity detection method according to claim 9, further comprising: establishing a commodity detection model based on a single shot multibox detector (SSD) algorithm, the commodity detection model being applicable to perform commodity detection.

### Claim 16 (depends on 9)

The commodity detection method according to claim 9, wherein comparing the current grid where the each commodity is located and the current quantity of the each commodity with the preset grid and the preset critical quantity value of the each commodity, so as to determine whether the status of the each commodity satisfies the preset condition comprises:
comparing the current grid where the each commodity is located with the preset grid of the each commodity, and determining that a corresponding commodity is in a commodity misplacement state if a comparison result is that the current grid and the preset grid are inconsistent; and/or,
comparing the current quantity of the each commodity with the preset critical quantity value of the each commodity, and determining that a corresponding commodity is in a commodity shortage state if a current quantity of the corresponding commodity is less than a preset critical quantity value of the corresponding commodity.

### Claim 17 (depends on 9)

A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable by the processor,
wherein, upon the processor executing the computer program, the commodity detection method according to claim 9 is realized.

### Claim 18 (depends on 9)

A computer readable medium, storing a computer program,
wherein, upon the computer program being executed by a processor, the commodity detection method according to claim 9 realized.

### Claim 19 (depends on 9)

An intelligent goods shelf system, comprising:
a goods shelf configured to place objects thereon;
an acquisition module configured to acquire an image of the goods shelf; and
a computation module, comprising a memory, a processor, and a computer program stored on the memory and executable by the processor, upon the processor executing the computer program, the commodity detection method according to claim 9 being realized.

### Claim 20 (depends on 19)

The intelligent goods shelf system according claim 19, wherein the goods shelf comprises a background plate, a first baffle and a second baffle;
the background plate, the first baffle and the second baffle are different in color, and the first baffle and the second baffle divide the background plate into a plurality of subregions.
