License Plate Recognition Example

HUSKYLENS 2 license plate recognition blocks let Mind+ users detect plates, count learned and unlearned IDs, and read position and content data, like a smart camera tagging every car in view.

1.License Plate Recognition Blocks

Before You Start:

1.1 License Recognition - Output Relevant Data

Under the License Recognition function, when a license plate appears on the HUSKYLENS 2 screen, it can be recognized and framed, and its relevant data acquired. Readable license plate data includes: the ID and Name of a specific license plate, the license plate content (license number), Width, Height, X and Y coordinates of the license plate's center point, and the total number of license plates in the frame.

Example Program:

Interface Diagram

Click to upload the program to the device in Mind+, and wait for the upload to complete.
Point the HuskyLens 2 camera at the license plate in the frame to learn it. For detailed instructions on how to learn license plates, refer to the License Plate Recognition.

Point the HUSKYLENS 2 camera at the license plate and observe the data on the UNIHIKER K10 screen.

Output Result: As shown below, the total license plate count includes both learned and unlearned license plates. If the specified license plate is unlearned, its ID is 0. If the specified license plate is learned, it outputs its corresponding ID.

Interface Diagram

1.2 Output Data for a Specific ID License Plate

When multiple license plates of the same ID appear in the frame, the following example program can be used to gather relevant data for that ID's license plates.

Interface Diagram

Output Result: As shown below, when multiple license plates of a specific ID appear in the frame, it can acquire the total count of that ID's license plates, the license plate number of a specific plate under that ID, and its coordinates, among other data.

Interface Diagram

1.3 License Plate Recognition Blocks Description

block Description
Used to obtain one set of license recognition data under the License Recognition function of HUSKYLENS 2.
Determines whether a license plate exists in the current frame.
Obtains data of the license closest to the crosshair, including ID, name, center X/Y coordinates, width, height, and decoded content.
Gets the total number of detected licenses (both learned and unlearned).
When multiple licenses are detected, obtains data for a specified license..
Get the number of license plates that have been learned by HuskyLens 2, regardless of whether they appear in the current frame.
Determines whether a license with the specified ID exists in the frame. Unlearned licenses have ID=0, learned IDs follow learning order.
Obtains the number of licenses with a specified ID in the frame.
Obtains data for a specified license in the frame.
When multiple licenses share the same ID, obtains data for a specified license.

Was this article helpful?

TOP