HUSKYLENS 2 Barcode Recognition Function Description

The article delves into the capabilities of HUSKYLENS 2's barcode recognition, offering a detailed guide on detecting, learning, recognizing, and tracking barcodes, along with customization options and parameter settings. It also covers exporting and importing models for optimized use.

1.Introduction to Barcode Recognition

This feature enables barcode detection, learning, recognition, and tracking, displays the encoded information, and allows for custom naming of barcodes.

Interface Diagram

2.Barcode Recognition Usage Instructions

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

Interface Diagram

2.1Observe Barcode Detection Results

Direct HUSKYLENS 2 to the scene containing barcodes; all barcodes in the image will be enclosed in white boxes, and the information contained in the barcodes will be displayed on the boxes, as shown in the figure.

Interface Diagram

2.2 Learning Barcodes, Observing Results

Align HUSKYLENS 2 with the barcode to be learned, adjust the viewing angle of HUSKYLENS 2 so that the "crosshair" in the center of the screen is within the white frame, then press Button-A on the top-right corner of HUSKYLENS 2 to learn this barcode.

Interface Diagram

Upon completing learning, when a previously learned barcode is detected, the screen will frame it with a colored box and display "name: IDx" above it, where "name" defaults to the information inside the barcode. To learn more barcodes, repeat the process.

Interface Diagram

3.Barcode Recognition Parameter Settings

The factory default parameters of HUSKYLENS 2 meet the requirements of basic functions. If more detailed functions are required, each parameter can be adjusted manually. The following parameters are all based on the "Barcode Recognition" function, so first ensure you have entered the "Barcode Recognition" function, as shown in the figure.To modify parameters, slide the parameter text below the screen left or right to select.

Interface Diagram

3.1 Forgetting IDs

To forget all previously learned barcodes:
Step 1, tap "Forget ID" on the screen;
Step 2, after the pop-up "Forget all IDs and names" appears, tap "Yes".Align the crosshair in the center of the HUSKYLENS 2 screen with the previously stored barcode.
A white box will appear on the screen and the barcode's content will be displayed, but its ID number will not be shown. This indicates that the "forget" operation is completed.

Interface Diagram

3.2 Setting Names

This parameter allows you to set custom names for learned barcodes, supporting both Chinese and English input.

Setting steps:

  1. Tap the "Set Name" button to start naming;
  2. Slide up/down on the number displayed in the top-left corner to select the target barcode ID;
  3. Use the on-screen keyboard to input your custom name (refer to the left reference image);
  4. After confirmation, tap the √ icon in the bottom-right corner to save. A green checkmark will appear in the top-right corner once saved successfully.

Note: Once a name is set, the top-left corner of the recognition box will display the custom name instead of the raw barcode ID. To revert to showing the barcode information, you need to "Forget" the ID first.

Interface Diagram

3.3 Display Name

This parameter controls whether to display the name when a learned barcode is recognized, with the default being "On."

Setting Steps: Tap the "Display Name" button. If the switch above it turns blue, it is in the "On" state, and the name of the learned barcode will be displayed (see left image). Tap the switch again, and it will turn white, entering the "Off" state, and the name will not be displayed when a learned barcode is recognized (see right image).

Interface Diagram

3.4 Restore Defaults

This parameter restores all settings to their default state and clears all learned IDs, without erasing exported models (see below for information about exported models).

Setting steps: Tap "Restore Defaults", and after the "Restore Default Configuration" pop-up appears, tap "Yes".

Interface Diagram

3.5 Exporting the Model

This parameter saves and exports the current parameters, learned IDs, and set 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: Click "Export Model". When the "Save Configuration To" pop-up appears, slide the number up and down to select which model number to save as (up to 5 models can be saved), then click the "Confirm" button in the lower-left corner of the pop-up to save. After confirmation, the export will be automatic, as shown in the figure.

Interface Diagram

Check 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.

Interface Diagram

Next, access the HUSKYLENS 2's memory via the path shown in the following figure on your computer. You will see model files with the .bin extension. The numbers before the extension are the "model numbers" selected when saving the configuration. These files can be copied and pasted elsewhere.

Interface Diagram

3.6 Import a Model

This parameter allows you to import a model exported from HUSKYLENS 2 (referred to as "HUSKYLENS A" below) to another HUSKYLENS 2 (referred to as "HUSKYLENS B" below). This enables HUSKYLENS B to recognize the ID of the barcode that HUSKYLENS A learned without re-learning.

Import Steps:
Step 1: Connect HUSKYLENS A to the computer and copy the exported file to the computer desktop.
Step 2: Connect HUSKYLENS B to the computer and paste the file from the previous step into HUSKYLENS B's specified folder, as shown in the figure. (If the "barcode" folder cannot be found, please first perform Step 3, which automatically creates this folder after a model is imported, then return to Step 2.)

Interface Diagram

Step 3: First, confirm that you have entered the "Barcode Recognition" function. Then click "Import Model". Once the "Load Configuration" pop-up appears, adjust the number slider to select the model number to load. This should match the model number saved in the previous step. For example, if the model file pasted into HUSKYLENS 2 is repo0.bin, select the number 0. Finally, click "Yes" to import.

Interface Diagram

Next, perform barcode recognition tests. Left: Barcode recognition result of HUSKYLENS 2 before model import; Right: Barcode recognition result after the model is imported into HUSKYLENS 2.

Interface Diagram

Was this article helpful?

TOP