# US 2021/0264168 A1 · License plate detection and recognition system

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

- Number: US 2021/0264168 A1
- Document ID: US20210264168A1
- Status: Published application
- Kind: A1
- Application number: 17/317,505
- Filed: 2021-05-11
- Published: 2021-08-26
- Earliest claimed: 2018-02-11
- Assignees: Nortek Security & Control LLC
- Applicants: Nortek Security & Control LLC
- Inventors: IIya Popov; Dmitry Yashunin; Semen Budenkov; Krishna Khadloya
- Web page: https://patentgrep.com/patent/US20210264168A1

## CPC

- G06V 20/54: of traffic, e.g. cars on the road, trains or boats
- G06F 18/24: Classification techniques
- G06T 5/20: using local operators
- G06T 5/70: Denoising; Smoothing
- G06V 20/56: exterior to a vehicle by using sensors mounted on the vehicle
- G06V 20/63: {Scene text, e.g. street names}
- G06V 30/15: {Cutting or merging image elements, e.g. region growing, watershed or clustering-based techniques}
- G06V 20/625: {License plates}
- G06V 30/10: Character recognition
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A license plate detection and recognition system receives training data comprising images of license plates. The system prepares ground truth data from the training data based predefined parameters. The system trains a first machine learning algorithm based on the ground truth data to generate a license plate detection model. The license plate detection model is configured to detect one or more regions in the images. The one or more regions contains a candidate for a license plate. The LPDR system generates a bounding box for each region. The LPDR system trains a second machine learning algorithm based on the ground truth data and the license plate detection model to generate a license plate recognition model. The license plate recognition model generates a sequence of alphanumeric characters with a level of recognition confidence for the sequence.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving training data comprising images of license plates;
preparing ground truth data from the training data based on predefined parameters;
training a first machine learning algorithm based on the ground truth data to generate a license plate detection model, the license plate detection model configured to detect one or more regions in the images, the one or more regions containing a candidate for a license plate, and to generate a bounding box for each license plate;
training a second machine learning algorithm based on the ground truth data and the license plate detection model to generate a license plate recognition model, the license plate recognition model configured to generate a sequence of alphanumeric characters in the bounding box with a level of recognition confidence for the sequence;
receiving an input image;
determining a bounding box corresponding to an image of each candidate license plate in the input image by applying the license plate detection model to the input image, the bounding box indicating a license plate type and a corresponding confidence level; and
generating an array of license plate information comprising an image of a license plate from the input image, a corresponding string identifier, corresponding bounding box coordinates, and a corresponding confidence level.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
generating a string identifier with a corresponding confidence level for the license plate in the bounding box by applying the license plate recognition model to the image of the license plate within the bounding box.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein generating the string identifier comprises:
determining a rotation angle of the bounding box using a third machine learning algorithm;
aligning the image of the license plate in the bounding box to a horizontally aligned state by performing a rotation of the image of the license plate in the bounding box with the rotation angle; and
performing a segmentation of the aligned image of the license plate to determine the string identifier corresponding to the license plate.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
forming a first set of candidates based on the determined bounding boxes;
first invalidating one or more candidates in the first set of candidates in response to detecting that a first feature of the one or more candidates in the first set of candidates exceeds a first feature threshold;
forming a second set of candidates of remaining candidates after the first invalidating;
generating a string identifier with a corresponding confidence level for each license plate in each bounding box by applying the license plate recognition model to the second set of candidates;
second invalidating one or more candidates in the second set of candidates in response to detecting that a second feature of the one or more candidates in the second set of candidates exceeds a second feature threshold; and
forming a third set of candidates of remaining candidates after the second invalidating.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the predefined parameters comprise: a number of rows for each license plate in the images, a minimum size for each license plate in the images, a minimum ratio of width to height for each license plate in the images, a minimum visibility for each license plate in the images, a template for each license, fonts, and text identifier from each license plate in the images.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the first machine learning algorithm includes a first convolution neural network (CNN) based algorithm, wherein the second machine learning algorithm includes a second convolution neural network (CNN) based algorithm.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
detecting one or more license plate (LP) regions in the input image using the license plate detection model, wherein each LP region includes a license plate;
for each detected LP region, determining coordinates of a corresponding bounding box in the input image, a corresponding type of LP, and a corresponding detection confidence value;
determining a rotation angle for each LP region using a third machine learning model, the rotation angle configured to align each LP region to a horizontally aligned state;
rotating each LP region by a corresponding rotation angle; and
determining a sequence of alphanumeric characters of LP identifier in each rotated LP region with a recognition confidence value corresponding to the sequence, using the license plate recognition model.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the type of the license plate is selected from at least one of: a single row license plate comprising one or more characters in a single row or a stacked form, and a multiple row license plate.

### Claim 9 (depends on 7)

The computer-implemented method of claim 7, wherein training the first machine learning algorithm based on the ground truth data, wherein the ground truth data comprises historical data regarding detection of a single row license plate of stacked letters from one or more images, detection of a multiple row license plate from one or more images, standard size and dimensions of each type of license plate, bounding box points of one or more license plates, and number of corresponding license plate identifier text rows for each type of bounding box.

### Claim 10 (depends on 7)

The computer-implemented method of claim 7, wherein training the second machine learning algorithm based on the ground truth data, wherein the ground truth data comprises historical data regarding one or more images of a template of a license plate without identifier, a mask image with information about how license plate identifier data is put on a template image, and alphanumeric identifiers of one or more license plates visible in corresponding images.

### Claim 11 (depends on 7)

The computer-implemented method of claim 7, further comprising:
validating each detected LP region before performing the license plate recognition, wherein the validation is performed based on an expected size of the license plate, mutual arrangement, and a detection confidence value; and
validating the recognized LP identifier of the detected LP region, based on a minimal and maximal number of characters of the license plate identifier, an expected license plate template, and a level of recognition confidence value.

### Claim 12 (depends on 7)

The computer-implemented method of claim 7, further comprising:
using the recognized license plate identifier of a current input image to update the recognized license plate identifier of a previous input image, in response to the current input image being a part of an input video stream.

### Claim 13

A computing apparatus, the computing apparatus comprising:
a processor; and
a memory storing instructions that, when executed by the processor, configure the apparatus to perform operations comprising:
receiving training data comprising images of license plates;
preparing ground truth data from the training data based on predefined parameters;
training a first machine learning algorithm based on the ground truth data to generate a license plate detection model, the license plate detection model configured to detect one or more regions in the images, the one or more regions containing a candidate for a license plate, and to generate a bounding box for each license plate;
training a second machine learning algorithm based on the ground truth data and the license plate detection model to generate a license plate recognition model, the license plate recognition model configured to generate a sequence of alphanumeric characters in the bounding box with a level of recognition confidence for the sequence;
receiving an input image;
determining a bounding box corresponding to an image of each candidate license plate in the input image by applying the license plate detection model to the input image, the bounding box indicating a license plate type and a corresponding confidence level; and
generating an array of license plate information comprising an image of a license plate from the input image, a corresponding string identifier, corresponding bounding box coordinates, and a corresponding confidence level.

### Claim 14 (depends on 13)

The computing apparatus of claim 13, wherein the instructions further configure the apparatus to:
generate a string identifier with a corresponding confidence level for the license plate in the bounding box by applying the license plate recognition model to the image of the license plate within the bounding box.

### Claim 15 (depends on 14)

The computing apparatus of claim 14, wherein generating the string identifier comprises:
determine a rotation angle of the bounding box using a third machine learning algorithm;
align the image of the license plate in the bounding box to a horizontally aligned state by performing a rotation of the image of the license plate in the bounding box with the rotation angle; and
perform a segmentation of the aligned image of the license plate to determine the string identifier corresponding to the license plate.

### Claim 16 (depends on 13)

The computing apparatus of claim 13, wherein the instructions further configure the apparatus to:
form a first set of candidates based on the determined bounding boxes;
first invalidate one or more candidates in the first set of candidates in response to detecting that a first feature of the one or more candidates in the first set of candidates exceeds a first feature threshold;
form a second set of candidates of remaining candidates after the first invalidating;
generate a string identifier with a corresponding confidence level for each license plate in each bounding box by applying the license plate recognition model to the second set of candidates;
second invalidate one or more candidates in the second set of candidates in response to detecting that a second feature of the one or more candidates in the second set of candidates exceeds a second feature threshold;
form a third set of candidates of remaining candidates after the second invalidating.

### Claim 17 (depends on 13)

The computing apparatus of claim 13, wherein the predefined parameters comprise; a number of rows for each license plate in the images, a minimum size for each license plate in the images, a minimum ratio of width to height for each license plate in the images, a minimum visibility for each license plate in the images, a template for each license, fonts, and text identifier from each license plate in the images.

### Claim 18 (depends on 13)

The computing apparatus of claim 13, wherein the first machine learn algorithm includes a first convolution neural network (CNN) based algorithm, wherein the second machine learning algorithm includes a second convolution neural network (CNN) based algorithm,

### Claim 19 (depends on 13)

The computing apparatus of claim 13, wherein the instructions further configure the apparatus to:
detect one or more license plate (LP) regions in the input image using the license plate detection model, wherein each LP region includes a license plate;
for each detected LP region, determine coordinates of a corresponding bounding box in the input image, a corresponding type of LP, and a corresponding detection confidence value;
determine a rotation angle for each LP region using a third machine learning model, the rotation angle configured to align each LP region to a horizontally aligned state;
rotate each LP region by a corresponding rotation angle; and
determine a sequence of alphanumeric characters of LP identifier in each rotated LP region with a recognition confidence value corresponding to the sequence, using the license plate recognition model.

### Claim 20

A non-transitory computer-readable storage medium, the computer-readable storage medium including instructions that when executed by a computer, cause the computer to perform operations comprising:
receiving training data comprising images of license plates;
preparing ground truth data from the training data based on predefined parameters;
training a first machine learning algorithm based on the ground truth data to generate a license plate detection model, the license plate detection model configured to detect one or more regions in the images, the one or more regions containing a candidate for a license plate, and to generate a bounding box for each license plate;
training a second machine learning algorithm based on the ground truth data and the license plate detection model to generate a license plate recognition model, the license plate recognition model configured to generate a sequence of alphanumeric characters in the bounding box with a level of recognition confidence for the sequence;
receiving an input image;
determining a bounding box corresponding to an image of each candidate license plate in the input image by applying the license plate detection model to the input image, the bounding box indicating a license plate type and a corresponding confidence level; and
generating an array of license plate information comprising an image of a license plate from the input image, a corresponding string identifier, corresponding bounding box coordinates, and a corresponding confidence level.
