# US 2019/0244340 A1 · Estimating a number of containers by digital image analysis

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

- Number: US 2019/0244340 A1
- Document ID: US20190244340A1
- Status: Published application
- Kind: A1
- Application number: 16/270,397
- Filed: 2019-02-07
- Published: 2019-08-08
- Earliest claimed: 2018-02-08
- Assignees: Flaschebottle Technologies Inc.
- Applicants: Flaschebottle Technologies Inc.
- Inventors: Philippe Perron; Yilong Zhang; Douglas Long
- Web page: https://patentgrep.com/patent/US20190244340A1

## CPC

- G06T 7/62: of area, perimeter, diameter or volume
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/82: using neural networks
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- G06F 2218/12: Classification; Matching
- G06T 2207/30242: Counting objects in image
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method, a computer system, and a computer program product are provided for estimating output data that includes or is based on a number of containers, which may or may not be in receptacles. The method involves using an object detection algorithm operating on an input digital image to detect container images and receptacle images (if any), and using an estimation algorithm operating on the detected images to estimate the number of containers. Estimating the number of containers may involve counting the number of containers within different container classes, as determined by the object detection algorithm. Estimating the number of containers may involve estimating a size of a receptacle in a detected receptacle image based on analysis of a detected reference container image. A detected reference object image may be used to assist with classifying detected container images in different container classes.

## Claims

### Claim 1

A computer-implemented method for estimating output data comprising or based on a number of containers, the method comprising the steps of:
(a) using an object detection algorithm operating on an input digital image to detect at least one container image; and
(b) using an estimation algorithm operating on the at least one detected container image to estimate the output data comprising or based on the number of containers.

### Claim 2 (depends on 1)

The method of claim 1, wherein using the estimation algorithm comprises counting the at least one detected container image to estimate the number of containers.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
(a) the method further comprises using the object detection algorithm to classify each of the at least one detected container image in one of a plurality of container classes; and
(b) using the estimation algorithm comprises counting the number of detected container image classified in each of the container classes to estimate the number of containers classified in each of the container classes.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
(a) the method further comprises using the object detection algorithm to detect a receptacle image in the input digital image;
(b) the method further comprises using one of the at least one detected container images as a reference container image associated with a predetermined container dimension, Dc;
(c) the method further comprises determining an estimated dimension of the receptacle in the receptacle image, DR, by multiplying the container dimension, DC, by a scaling factor,
P
R
P
c
,
where PR is a pixel dimension of the detected receptacle image, and PC is a pixel dimension of the detected reference container image; and
(d) using the estimation algorithm comprises estimating the number of containers within the receptacle based on at least the estimated dimension of the receptacle, DR.

### Claim 5 (depends on 3)

The method of claim 3, wherein the method further comprises associating the reference container image with the predetermined container dimension, DC, by:
(a) using the object detection algorithm to classify the reference container image in one of a plurality of container classes, each comprising container dimension information; and
(b) associating the reference container image with the container dimension information of the container class in which the reference container image is classified.

### Claim 6 (depends on 1)

The method of claim 1, wherein the method further comprises:
(a) using the object detection algorithm to detect in the input digital image a reference object image for a reference object having a predetermined reference object dimension, DO; and
(b) for each of the at least one detected container image:
(i) determining an estimated dimension of a container, DC, in the detected container image by multiplying the predetermined dimension of the reference object, DO, by a scaling factor,
P
C
P
O
,
where Pc is a pixel dimension of the detected container image, and PO is a pixel dimension of the detected reference object image; and
(ii) using the object detection algorithm to classify the container in the detected container image in one of a plurality of contained classes, each comprising predetermined container dimension information, by comparing the estimated dimension of the container, DC, to the predetermined container dimension information.

### Claim 7

A system comprising a computer processor and a computer memory comprising a non-transitory computer readable medium storing a set of instructions executable by the computer processor to implement a method for estimating output data comprising or based on a number of containers, the method comprising the steps of:
(a) using an object detection algorithm operating on an input digital image to detect at least one container image; and
(b) using an estimation algorithm operating on the at least one detected container image to estimate the output data comprising or based on the number of containers.

### Claim 8 (depends on 7)

The system of claim 7, wherein using the estimation algorithm comprises counting the at least one detected container image to estimate the number of containers.

### Claim 9 (depends on 7)

The system of claim 7, wherein:
(a) the method further comprises using the object detection algorithm to classify each of the at least one detected container image in one of a plurality of container classes; and
(b) using the estimation algorithm comprises counting the number of detected container image classified in each of the container classes to estimate the number of containers classified in each of the container classes.

### Claim 10 (depends on 7)

The system of claim 7, wherein:
(a) the method further comprises using the object detection algorithm to detect a receptacle image in the input digital image;
(b) the method further comprises using one of the at least one detected container images as a reference container image associated with a predetermined container dimension, DC;
(c) the method further comprises determining an estimated dimension of the receptacle in the receptacle image, DR, by multiplying the container dimension, DC, by a scaling factor,
P
R
P
c
,
where PR is a pixel dimension of the detected receptacle image, and PC is a pixel dimension of the detected reference container image; and
(d) using the estimation algorithm comprises estimating the number of containers within the receptacle based on at least the estimated dimension of the receptacle, DR.

### Claim 11 (depends on 10)

The system of claim 10, wherein the method further comprises associating the reference container image with the predetermined container dimension, DC, by:
(a) using the object detection algorithm to classify the reference container image in one of a plurality of container classes, each comprising container dimension information; and
(b) associating the reference container image with the container dimension information of the container class in which the reference container image is classified.

### Claim 12 (depends on 7)

The system of claim 7, wherein the method further comprises:
(a) using the object detection algorithm to detect in the input digital image a reference object image for a reference object having a predetermined reference object dimension, DO; and
(b) for each of the at least one detected container image:
(i) determining an estimated dimension of a container, DC, in the detected container image by multiplying the predetermined dimension of the reference object, DO, by a scaling factor,
P
C
P
O
,
where Pc is a pixel dimension of the detected container image, and PO is a pixel dimension of the detected reference object image; and
(ii) using the object detection algorithm to classify the container in the detected container image in one of a plurality of contained classes, each comprising predetermined container dimension information, by comparing the estimated dimension of the container, DC, to the predetermined container dimension information.

### Claim 13

A computer program product comprising a non-transitory computer readable medium storing a set of instructions executable by a computer processor to implement a method for estimating output data comprising or based on a number of containers, the method comprising the steps of:
(a) using an object detection algorithm operating on an input digital image to detect at least one container image; and
(b) using an estimation algorithm operating on the at least one detected container image to estimate the output data comprising or based on the number of containers.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein using the estimation algorithm comprises counting the at least one detected container image to estimate the number of containers.

### Claim 15 (depends on 13)

The computer program product of claim 13, wherein:
(a) the method further comprises using the object detection algorithm to classify each of the at least one detected container image in one of a plurality of container classes; and
(b) using the estimation algorithm comprises counting the number of detected container image classified in each of the container classes to estimate the number of containers classified in each of the container classes.

### Claim 16 (depends on 13)

The computer program product of claim 13, wherein:
(a) the method further comprises using the object detection algorithm to detect a receptacle image in the input digital image;
(b) the method further comprises using one of the at least one detected container images as a reference container image associated with a predetermined container dimension, Dc;
(c) the method further comprises determining an estimated dimension of the receptacle in the receptacle image, DR, by multiplying the container dimension, DC, by a scaling factor,
P
R
P
c
,
where PR is a pixel dimension of the detected receptacle image, and PC is a pixel dimension of the detected reference container image; and
(d) using the estimation algorithm comprises estimating the number of containers within the receptacle based on at least the estimated dimension of the receptacle, DR.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the method further comprises associating the reference container image with the predetermined container dimension, DC, by:
(a) using the object detection algorithm to classify the reference container image in one of a plurality of container classes, each comprising container dimension information; and
(b) associating the reference container image with the container dimension information of the container class in which the reference container image is classified.

### Claim 18 (depends on 13)

The computer program product of claim 13, wherein the method further comprises:
(a) using the object detection algorithm to detect in the input digital image a reference object image for a reference object having a predetermined reference object dimension, DO; and
(b) for each of the at least one detected container image:
(i) determining an estimated dimension of a container, DC, in the detected container image by multiplying the predetermined dimension of the reference object, DO, by a scaling factor,
P
C
P
O
,
where Pc is a pixel dimension of the detected container image, and PO is a pixel dimension of the detected reference object image; and
(ii) using the object detection algorithm to classify the container in the detected container image in one of a plurality of contained classes, each comprising predetermined container dimension information, by comparing the estimated dimension of the container, DC, to the predetermined container dimension information.
