# US 2023/0274248 A1 · Systems and methods of image processing and shrinkage evaluation

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

- Number: US 2023/0274248 A1
- Document ID: US20230274248A1
- Status: Published application
- Kind: A1
- Application number: 17/588,625
- Filed: 2022-01-31
- Published: 2023-08-31
- Earliest claimed: 2022-01-31
- Assignees: Walmart Apollo, LLC
- Applicants: Walmart Apollo, LLC
- Inventors: Zhichun Xiao; Chunmei Wang
- Web page: https://patentgrep.com/patent/US20230274248A1

## CPC

- G06Q 20/203: {Inventory monitoring}
- G06Q 10/087: Inventory or stock management, e.g. order filling, procurement or balancing against orders
- G06Q 10/0877: {by inventory control or reporting using inventory tracking or counting}
- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 10/267: {by performing operations on regions, e.g. growing, shrinking or watersheds}
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/507: {Summing image-intensity values; Histogram projection analysis}
- G06V 10/56: relating to colour
- G06V 10/762: using clustering, e.g. of similar faces in social networks
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- G06Q 10/08772: {Inventory counting methods}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Some embodiments provide image evaluation systems and methods, comprising: a plurality of camera systems distributed about a retail facility and each of the plurality of camera systems; and an image processing system configured to receive multiple images over time, process each image comprising: determine, from pixel data, a gradient amplitude and directional component; determine a histogram curve from the gradient amplitudes as a function of the directional component of the pixel data, and identify a key direction relative to a maximum accumulation of the gradient amplitudes; for the gradient amplitudes, of the pixel data, having a corresponding directional component that is within a direction threshold of the key direction, identify a number of local maxima corresponding to the key direction; and determine a quantity of items of the product corresponding to a quantity of the number of local maxima.

## Claims

### Claim 1

An image evaluation system, comprising:
a plurality of camera systems distributed about a retail facility and each of the plurality of camera systems is configured to capture images of items of one or more products of a plurality of products within the retail facility that are accessible and retrievable by customers for purchase; and
an image processing system communicatively coupled with each of the plurality of camera systems, wherein the image processing system is configured to receive multiple images over time from a first camera system of the plurality of camera systems having a location corresponding to a location of a first product to be monitored of the multiple products to be monitored, process each of the multiple images comprising for each image of the multiple images:
determine, from pixel data for each pixel of at least a first sub-section of the first image, a gradient amplitude and directional component;
determine a first histogram curve from the gradient amplitudes as a function of the directional component of the pixel data, and identify a first key direction relative to a first maximum accumulation of the gradient amplitudes;
for the gradient amplitudes, of the pixel data, having a corresponding directional component that is within a first direction threshold of the first key direction, identify a number of local maxima corresponding to the first key direction; and
determine a quantity of items of the first product corresponding to a quantity of the number of local maxima that are each within a threshold distance from another one of the number of local maxima.

### Claim 2 (depends on 1)

The system of claim 1, further comprising:
a plurality of point of sale (POS) systems within the retail facility and each configured to complete sales transactions for customers of items of a plurality of different products, comprising the multiple different products to be monitored, and communicate sales data of the completed sales transactions; and
a product tracking system communicatively coupled with the image processing system and the plurality of POS systems, wherein the product tracking system is configured to:
maintain an inventory database comprising inventory quantities as a function of the sales data and product shipping information;
evaluate the inventory quantities relative to the determined quantity of items of the first product received from the image processing system;
identify when there is a threshold discrepancy as a function of the inventory quantities relative to the determined quantity of items of the first product; and
generate a notification of the discrepancy.

### Claim 3 (depends on 1)

The system of claim 1, wherein the image processing system is further configured to:
identify, from the first histogram curve, a second key direction relative to a secondary maximum accumulation of the gradient amplitudes;
for the gradients amplitudes, of the pixel data, having a corresponding directional component that is within a second direction threshold of the second key direction, determine a secondary curve of gradients;
determine, from the secondary curve of gradients, multiple local secondary maxima;
identify, within the first image and as a function of the multiple local secondary maxima, packaging boundaries defining multiple sub-sections of a packaging in which the items of the first product are positioned; and
divide the first image into sub-images each corresponding to one of the sub-sections of the packaging identified based on the identified packaging boundaries;
wherein the image processing system in identifying the number of local maxima corresponding to the first key direction is configured to identify, within each sub-image, a subset of the number of local maxima corresponding to the first key direction in the respective sub-image, determine a sub-quantity of the items of the first product corresponding to a sub-quantity of the subset of the number of the local maxima of the respective sub-image, and sum the determined sub-quantities of the items of the first product in determining the quantity of items.

### Claim 4 (depends on 3)

The system of claim 3, wherein the multiple sub-sections of the packaging each corresponds to one of multiple columns of the packaging and within each of the columns is contained the respective sub-quantity of the items of the first product.

### Claim 5 (depends on 3)

The system of claim 3, wherein the image processing system, in identifying the number of local maxima corresponding to the first key direction, is configured to obtain a primary curve of gradients of pixels based on the gradients that have the corresponding directional component that is within the first direction threshold of the first key direction; and
determine, from the primary curve of gradients, the number of local maxima corresponding to the first key direction.

### Claim 6 (depends on 5)

The system of claim 5, wherein the first key direction is substantially orthogonal to the second key direction.

### Claim 7 (depends on 1)

The system of claim 1, wherein the image processing system is further configured to evaluate color data of the pixel data relative to a known color pattern of packaging of the first product based on known dimensions of the packaging of the first product; and
segment, from within the first image based on the evaluation of the color data, the first image into multiple different box sub-section images of the first image.

### Claim 8 (depends on 7)

The system of claim 7, wherein the image processing system, in determining the quantity of the items of the first product, is configured to:
identify, for each box sub-section image, the first key direction relative to the first maximum accumulation of the gradient amplitudes;
identify, for each box sub-section image of the multiple box sub-section images, the number of local maxima corresponding to the first key direction; and
determine multiple boxset quantities of the items of the first product each corresponding to one of the box sub-section image of the first image, wherein the respective boxset quantity of the items of the first product corresponding to respective quantities of the number of the local
maxima that are each within the threshold distance from another one of the number of local maxima, and sum the multiple boxset quantities to obtain the quantity of items of the first product.

### Claim 9 (depends on 7)

The system of claim 7, wherein the image processing system, in evaluating the color data of the pixel data, is configured to:
apply a color clustering to the pixel data of the first image based on the known color pattern of the packaging of the first product;
segment the first image into the multiple box sub-section images based on the color clustering.

### Claim 10

A method of processing images, comprising:
receiving, at an image processing system from a plurality of camera systems distributed about a retail facility and configured to capture images of items of one or more products of a plurality of products within the retail facility that are accessible and retrievable by customers for purchase, multiple images over time from a first camera system of the plurality of camera systems having a location corresponding to a location of a first product to be monitored of the multiple products to be monitored;
for each image:
determining, from pixel data for each pixel of at least a first sub-section of the first image, a gradient amplitude and directional component;
determining a first histogram curve from the gradient amplitudes as a function of the directional component of the pixel data, and identify a first key direction relative to a first maximum accumulation of the gradient amplitudes;
identifying, for the gradient amplitudes, of the pixel data, having a corresponding directional component that is within a first direction threshold of the first key direction, a number of local maxima corresponding to the first key direction; and
determining a quantity of items of the first product corresponding to a quantity of the number of local maxima that are each within a threshold distance from another one of the number of local maxima.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
maintaining, by a product tracking system communicatively coupled with the image processing system and a plurality of point of sale (POS) systems within the retail facility, an inventory database comprising inventory quantities as a function of sales data received from the POS systems and product shipping information;
evaluating the inventory quantities relative to the determined quantity of items of the first product received from the image processing system;
identifying when there is a threshold discrepancy as a function of the inventory quantities relative to the determined quantity of items of the first product; and
generating a notification of the discrepancy.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
identifying, from the first histogram curve, a second key direction relative to a secondary maximum accumulation of the gradient amplitudes;
determining, for the gradients amplitudes, of the pixel data, having a corresponding directional component that is within a second direction threshold of the second key direction, a secondary curve of gradients;
determining multiple local secondary maxima from the secondary curve of gradients;
identifying, within the first image and as a function of the multiple local secondary maxima, packaging boundaries defining multiple sub-sections of a packaging in which the items of the first product are positioned; and
dividing the first image into sub-images each corresponding to one of the sub-sections of the packaging identified based on the identified packaging boundaries;
wherein the identifying the number of local maxima corresponding to the first key direction comprises identifying, within each sub-image, a subset of the number of local maxima corresponding to the first key direction in the respective sub-image;
determining a sub-quantity of the items of the first product corresponding to a sub-quantity of the subset of the number of the local maxima of the respective sub-image; and
summing the determined sub-quantities of the items of the first product in determining the quantity of items.

### Claim 13 (depends on 12)

The method of claim 12, wherein the identifying the packaging boundaries defining the multiple sub-sections comprises identifying multiple columns of the packaging and within each of the columns is contained the respective sub-quantity of the items of the first product.

### Claim 14 (depends on 12)

The method of claim 12, wherein the identifying the number of local maxima corresponding to the first key direction comprises:
obtaining a primary curve of gradients of pixels based on the gradients that have the corresponding directional component that is within the first direction threshold of the first key direction; and
determining, from the primary curve of gradients, the number of local maxima corresponding to the first key direction.

### Claim 15 (depends on 14)

The method of claim 14, wherein the first key direction is substantially orthogonal to the second key direction.

### Claim 16 (depends on 10)

The method of claim 10, further comprising:
evaluating color data of the pixel data relative to a known color pattern of packaging of the first product based on known dimensions of the packaging of the first product; and
segmenting, from within the first image based on the evaluation of the color data, the first image into multiple different box sub-section images of the first image.

### Claim 17 (depends on 16)

The method of claim 16, wherein the determining the quantity of the items of the first product comprises:
identifying, for each box sub-section image, the first key direction relative to the first maximum accumulation of the gradient amplitudes;
identifying, for each box sub-section image of the multiple box sub-section images, the number of local maxima corresponding to the first key direction; and
determining multiple boxset quantities of the items of the first product each corresponding to one of the box sub-section image of the first image, wherein the respective boxset quantity of the items of the first product corresponding to respective quantities of the number of the local maxima that are each within the threshold distance from another one of the number of local maxima; and
summing the multiple boxset quantities to obtain the quantity of items of the first product.

### Claim 18 (depends on 16)

The method of claim 16, wherein the evaluating the color data of the pixel data comprises:
applying a color clustering to the pixel data of the first image based on the known color pattern of the packaging of the first product;
segmenting the first image into the multiple box sub-section images based on the color clustering.
