HUSKYLENS 2 License Plate Recognition Function Description
The article explains the License Plate Recognition (LPR) feature of HUSKYLENS 2, detailing how to detect, learn, and track license plates, as well as adjust parameters for enhanced functionality. It includes a step-by-step guide for using and customizing the LPR function, ensuring accurate recognition and management of license plate data.
1.Introduction to License Plate Recognition
This function enables detection of license plates in the scene, displays license plate information, and supports learning, recognition, and tracking of specified license plates.
2.License Plate Recognition Usage Guide
In this section, we will learn how to use HUSKYLENS 2 to detect license plates in the scene, learn, and recognize specified license plates.
2.1 Select License Plate Recognition Function
Power on HUSKYLENS 2, and after it starts up successfully, swipe the screen to find the "License Recognition" function.
2.2 Observe License Plate Recognition Effect
Point HUSKYLENS 2 at a scene with license plates. When a license plate is detected, a white box will appear on the screen to frame all license plates in the scene and display the license plate information.
2.3 Learning License Plates and Observing Results
Align HUSKYLENS 2 with the license plate to be learned, adjust its viewing angle so that the "cross" in the center of the screen is within the white box. Then press the Button-A at the top right of HUSKYLENS 2 to learn this license plate.
After learning, when a recognized license plate is detected, the screen will draw a colored box around it and display "name: ID number". For example, "DF2025:ID1", where "name" defaults to the license plate content, and "ID1" refers to the first learned license plate. To add more license plates, repeat the same process.
3.License Plate Recognition Parameter Settings
The default parameters of HUSKYLENS 2 meet the basic functional requirements. If more detailed functions are needed, each parameter can be adjusted manually. The following parameters are all based on the "License Plate Recognition" feature, so first ensure you have entered the "License Plate Recognition" function (as shown in the figure). Select the parameter to be modified by sliding left or right on the parameter text below the screen.
3.1 Forgetting ID
To forget all previously learned license plates:
Step 1: Tap "Forget ID" on the screen.
Step 2: A pop-up window "Forget all IDs and names" appears; tap "Yes".Now, aim HUSKYLENS 2 at the forgotten license plate. If the HUSKYLENS 2 screen displays a white frame but does not recognize the license plate ID, it indicates that the "forget" process is completed.
3.2 Detection Threshold
The detection threshold controls the sensitivity of license plate detection: A lower threshold sets a looser standard for "identifying a license plate" (easily mistaking non-license plates for license plates, but rarely missing real ones); a higher threshold sets a stricter standard (less prone to misjudgment, but may miss real license plates).
Setting steps: Tap the "Detection Threshold" option, and a parameter adjustment slider will appear above it. Slide left to decrease the value; slide right to increase it. See the figure below for an illustration.
3.3 Set Name
This parameter allows setting names for pre-learned license plates (in both Chinese and English).
Setting Steps: Click "Set Name", slide the number selector in the top-left corner up/down to select which ID to assign a name to; click the on-screen keyboard to type the name (as shown in the left image); Once done, tap the √ icon in the bottom-right corner to save. A green checkmark appears in the top-right corner upon successful saving.
Note: After setting the name, the license plate information will no longer be displayed in the top-left corner of the recognition frame; instead, the name you set will be shown. To display the license plate information again, you need to forget the ID.
3.4 Display Name
This parameter controls whether to display the name when a license plate is recognized, with the default being "Display".
Setting Steps: Click "Display Name". If the switch above turns blue (blue = on), the name will be displayed when a license plate is recognized (as shown in the left image). Click the switch again to turn it white (white = off), and the name will not be displayed when a license plate is recognized (as shown in the right image).
3.5 Restore Defaults
This parameter restores all configuration settings to their default state, forgetting previously learned IDs and names while preserving exported models (see "Exporting Models" below for details).
Setup Steps: Click "Restore Defaults". When the "Restore Default Configuration" pop-up appears, click "Confirm" (or "Yes" if localized).
3.6 Export Model
This parameter allows saving and exporting the current settings, learned IDs, and custom names to the local memory of HUSKYLENS 2. It is suitable for scenarios such as transferring parameters to another HUSKYLENS 2. This operation does not require a TF card.
Export Steps:
Tap "Export Model"; When the "Save Configuration To" pop-up appears, slide up/down to select the model number for saving (up to 5 models can be stored);Tap the "Confirm" button at the bottom-left corner of the pop-up to save. After confirmation, the export will proceed automatically (as shown in the figure).
To check the exported model: After the "Exporting" pop-up disappears, you can view the exported model file on your computer.
First, connect the HUSKYLENS 2 to your computer's USB port.
Next, via your computer using the path shown in the following figure, you can access the memory of HUSKYLENS 2. You can view two model-related files with extensions .json and .bin. The number before the extension is the "model number" selected when saving the configuration. Both files can be copied and pasted elsewhere.
3.7 Importing a Model
This parameter allows you to import a model exported from HUSKYLENS 2 (hereinafter referred to as "HUSKYLENS 2A") into another HUSKYLENS 2 (hereinafter referred to as "HUSKYLENS 2B"), enabling HUSKYLENS 2B to replicate the license plate recognition and parameter adjustments learned by HUSKYLENS 2A without the need for reconfiguration or retraining.
Importation Steps:
STEP 1: Connect HUSKYLENS 2A to your computer and copy the exported file to your computer desktop.
STEP 2: Connect HUSKYLENS 2B to your computer and paste the file from the previous step into the specified folder of HUSKYLENS 2B, as shown in the figure. (If the "license-recognition" folder cannot be found, please first perform step 3; after importing a model, this folder will be automatically created, and then return to step 2.)
STEP 3: First, confirm that you have entered the "License Recognition" function, then click "Import Model". After the "Load Configuration" pop-up window appears, slide the number slider up and down to select which model to load. This should match the model number saved in the previous step. For example, if the model file pasted into HUSKYLENS 2B is config1.json, select the number 1. Finally, click "Confirm" to confirm the import. Wait until the "Loading" pop-up disappears to complete the import.
Then you can check whether all relevant parameters and learned license plates of HUSKYLENS B and HUSKYLENS A are consistent. As shown in the left image below, this is the recognition status of HUSKYLENS B before model import, and that of after importing the model in the right image.
Was this article helpful?
