License Plate Recognition Example
HuskyLens 2 license plate blocks let Mind+ projects detect, count and track plates by ID, position and content. It’s like a smart camera that tags each plate with an ID and coordinates so UNIHIKER M10 apps can read nearest, specific or learned plates.
1.License Plate Recognition Blocks
Before You Start:
1.1 License Plate 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, the total number of license plates in the frame, and the total number of learned license plates in the frame.
Example Program:
Click 'Run' in Mind+ and wait for the program to upload.
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 License Plate Recognition.
Point the HUSKYLENS 2 camera at the license plate and observe the data on the UNIHIKER M10 screen.
Output Result:As shown below, three license plates are recognized in the frame, one of which is learned. The ID of the license plate near the center and the ID of the first detected license plate are both 0. (Unlearned license plates have an ID of 0; learned license plates output their corresponding ID.)
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.
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.
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?
