HUSKYLENS 2 QR Code Recognition Function Description

This article guides users through the QR Code Recognition function of HUSKYLENS 2, detailing how to detect, learn, and manage QR codes, adjust parameters, and utilize model export/import for seamless integration.

1.Introduction to QR Code Recognition

This function can detect, learn, recognize, and track QR codes, display the information contained within QR codes, and enable users to name QR codes.

Interface Diagram

2.QR Code Recognition Usage Guide

In this section, we will learn how to use HUSKYLENS 2 to detect QR codes in the image and how to teach and recognize specified QR codes.

2.1 Select QR Code Recognition Function

Power on HUSKYLENS 2, and after successful startup, swipe the screen to locate the "QR Code Recognition" function.

Interface Diagram

2.2 Observe QR Code Detection Effect

Direct the HUSKYLENS 2 camera towards a screen containing QR codes. All detected QR codes in the frame will be boxed with white bounding boxes, where the information within each QR code will be displayed.

Interface Diagram

2.3 Learn QR Code, Observe Result

Align HUSKYLENS 2 with the QR code to be learned, adjust its viewing angle to ensure the "cross" in the center of the screen is within the white box, then press Button-A on its top-right corner to learn this QR code.

Interface Diagram

Upon completion of learning, if a previously learned QR code is detected, the screen will frame it with a colored border, and display the QR code information and ID number above it. For example: Hello world:ID1

Interface Diagram

3.QR Code Recognition Parameter Settings

The default parameters of HUSKYLENS 2 are sufficient for basic function requirements. If more detailed functions are needed, each parameter can be adjusted manually. The following parameters are all based on the "QR Code Recognition" function, so first ensure that you have entered the "QR Code Recognition" function, as shown in the figure. Learning more about QR codes can be done by analogy.To modify parameters, slide left or right on the parameter text below the screen to select.

Interface Diagram

3.1 Forget ID

To forget all previously learned QR codes, follow these steps:
Step 1, click "Forget ID" on-screen;
Step 2, after the "Forget all IDs and names" pop-up window appears, click "Yes".Now, align the "cross" in the center of the HUSKYLENS 2 screen with the forgotten QR code.
A white frame will appear on the screen, showing the information inside the QR code, but the ID number will not be displayed, indicating that the "forgetting" is complete.

Interface Diagram

3.2 Set Name

This parameter allows you to set names (both Chinese and English) for the QR codes that have been learned.

Setting Steps:

  1. Tap "Set Name".
  2. Slide the number selector in the top-left corner up and down to select the target ID.
  3. Tap the on-screen keyboard to set the name (refer to the left image).
  4. After completion, tap the √ icon in the bottom-right corner to save. A green checkmark will appear in the top-right corner if the save succeeds.

Note: After setting a name for a QR code, the QR code information will no longer be displayed in the top-left corner of the recognition frame; instead, the set name will be shown. To re-display the QR code information, you need to "Forget ID".

Interface Diagram

3.3 Display Name

This parameter controls whether the name is displayed when a previously learned QR code is recognized, with the default set to display.

Setting steps:

  • Click "Display Name". If the switch above the "Display Name" option is blue, it is in the on state, and the name will be displayed when a previously learned QR code is recognized (see the left image).
  • Click the switch, and it will turn white (off state), in which case the name will not be displayed when a previously learned QR code is recognized (see the right image).

Interface Diagram

3.4 Restore Defaults

This parameter restores all settings to their default states and clears all learned IDs, but does not clear exported models (see the next section for details on exporting models).

Setup steps: Click "Restore Defaults", and after the "Restore Default Configuration" pop-up appears, click "Yes".

Interface Diagram

3.5 Exporting the Model

This parameter saves and exports the currently set parameters, learned IDs, and custom names to the local memory of HUSKYLENS 2. It is applicable to scenarios such as migrating parameters to another HUSKYLENS 2. This operation does not require a TF card.

Export Steps:

  1. Click "Export Model".
  2. When the "Save Configuration To" pop-up appears, scroll the number up or down to select a model (1-5) to save to.
  3. Click the "Confirm" button in the bottom-left corner of the pop-up to save.
  4. After confirmation, the export will start automatically, as shown in the figure.

Interface Diagram

Check Exported Model: After the "Exporting" pop-up disappears, you can view the exported model files on your computer.
First, connect the HUSKYLENS 2 to your computer's USB port.

Interface Diagram

Next, access the memory of HUSKYLENS 2 from your computer via the path shown in the figure below. You will find two model-related files with extensions .json and .bin. The number before the extension is the "model number" chosen when saving the configuration. Both files can be copied and pasted elsewhere.

Interface Diagram

3.6 Importing the Model

This parameter allows importing the model exported from HUSKYLENS 2 (referred to as "Husky A") to another HUSKYLENS 2 (referred to as "Husky B"), so that Husky B can recognize the ID of the QR code learned by Husky A without re-learning.

Import Steps:
Step 1: Connect Husky A to the computer and copy the two exported files to the computer desktop.
Step 2: Connect Husky B to the computer and paste the two files from the previous step into Husky B's specified folder (path shown in the figure). (If the "qrcode" folder cannot be found, please perform Step 3 first. After the model is imported, this folder will be automatically created; then return to Step 2.)

Interface Diagram

Step 3: First, confirm that you have entered the "QR Code Recognition" function, then click "Import Model". Once the "Load Configuration" pop-up appears, adjust the number by sliding 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 files pasted into HUSKYLENS B are config1.json and repo1.bin, select the number 1. Finally, click "Confirm" to import.Step 4: Wait for the "Loading" pop-up to disappear to complete the import.

Interface Diagram

Perform the following QR code recognition test. The left image shows the QR code recognition result of HUSKYLENS B before model import, and the right image shows the result after the model is imported into HUSKYLENS B.

Interface Diagram

Was this article helpful?

TOP