# 2.6 QR Code Recognition

## **0. Introduction to \[QR Recognition]**

The **\[QR Code Recognition]** model allows users to train specific QR codes and create a customized QR code recognition model.

The recognition principles of **\[QR Code Recognition]** and **\[Tag Recognition]** are similar, as both use **visual markers** to identify specific information.

* **QR codes** are primarily used for **information storage and retrieval**, whereas **tags** are mainly used for **object recognition**.
* As the amount of stored data in a **QR code increases**, its **visual complexity** also increases, making it more difficult for the **HUENIT AI Camera** to recognize compared to tags.

<figure><img src="https://content.gitbook.com/content/auX5vWu2xzL5b4Cvif21/blobs/RIpQxj4QVr6B6SIq17cx/image.png" alt=""><figcaption><p><strong>[QR 인식]</strong> 모델</p></figcaption></figure>

## 1. **How to Train the \[QR Recognition] Model**

* When launching **\[QR Recognition]** for the first time, an **empty screen** may appear if no QR code is detected.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F6MpFPVhFEdlq3iwiKugp%2Fimage.png?alt=media&#x26;token=a4314b77-6aee-452e-b02b-2c2fdba6b6a0" alt="" width="547"><figcaption></figcaption></figure>

* When a **detectable QR code** is placed in front of the camera, a **white square** will appear around it.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FnjJObjUxkj3YTADkisPm%2Fimage.png?alt=media&#x26;token=ba28374d-fc38-4187-b983-d9f9fba9ee25" alt="" width="547"><figcaption></figcaption></figure>

* If a **white square** appears around the QR code to be trained, **tap the touchscreen** to begin training.
* Once training is complete, scan the same QR code again to verify that the **assigned ID** appears on the screen.

{% hint style="info" %}

* The **\[QR Recognition]** model supports up to **10 unique QR code IDs**.
* **The same QR code can be assigned multiple IDs**, so careful ID management is required.
  {% endhint %}

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F8aLBFQjOQL8zQWU6yAA5%2Fimage.png?alt=media&#x26;token=a9b1ac88-b588-4ccc-b6f1-c006de1b0d08" alt=""><figcaption></figcaption></figure>

## 2. Completing Model Training

* To finalize the **\[QR Recognition]** model training, **press and hold** the button on the **AI Camera for 2 seconds**.

{% hint style="info" %}
If the button is not held down long enough, the system will return to the **AI Model Selection** screen, requiring the model to be retrained from the beginning.
{% endhint %}

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FND98pPjgneRLoTPzF1W9%2Fimage.png?alt=media&#x26;token=cb9a3986-5c3d-4839-98be-0b670d2dd6f9" alt="" width="375"><figcaption></figcaption></figure>

* When the **\[End Training]** pop-up appears, press the button to confirm and finalize training.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F8HY7RR9Ui0kI2FurwMAQ%2Fimage.png?alt=media&#x26;token=4a584828-6cf8-4f52-bbbc-5a029b20e76b" alt="" width="547"><figcaption></figcaption></figure>

✅ **After completing training:**

* You can now test your custom **\[QR Code Recognition]** model.
* Verify whether the system correctly recognizes the trained QR codes, ensures the correct QR code data is detected, and maintains the correct training order.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FDSaAY0opTqPZepcLzu9L%2Fimage.png?alt=media&#x26;token=5662d0d4-af09-4e85-9aa6-07406432122e" alt="" width="546"><figcaption></figcaption></figure>

## **3. How to Save a Trained Model**

Once the model has been successfully trained and verified, it can be saved in **HUENIT OS**. This allows the model to be used later in **HUENIT LAB (Software).**

* **Press and hold** the button on the **AI Camera** after training is complete.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2Ft5DM6ozVA7zBODwElBTN%2Fimage.png?alt=media&#x26;token=fb566644-e351-4feb-9b41-18a0df77c45b" alt="" width="375"><figcaption></figcaption></figure>

* Click **\[Save Model]** to store the trained model in HUENIT OS.
* If the training results are unsatisfactory, click **\[Delete & Retrain]** to restart the training process.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FlDaQteX0ElDzKJ6JquF9%2Fimage.png?alt=media&#x26;token=f6871411-06f6-4ed3-8f6f-4a0a993253ed" alt="" width="547"><figcaption></figcaption></figure>

In **\[Save Model]**, choose a storage slot **except for the 6th option (Not Saveable).**

* **"Empty Space"** indicates an available slot with no saved model.
* **Slots with existing names** already contain trained AI models.
* **⚠ Warning:** Saving a new model in an occupied slot will **overwrite and delete** the existing model.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FV8IQAio32otsx7DldwYo%2Fimage.png?alt=media&#x26;token=d518c44b-99e4-4b3d-8905-687c099b77a4" alt="" width="545"><figcaption></figcaption></figure>
