Optical Character Recognition Vocabulary Challenge

1.Project Introduction

1.1 Project Design

"Vocabulary Challenge" is an interactive educational game designed using HUSKYLENS 2's Optical Character Recognition (OCR) and the UNIHIKER M10, aiming to help learners memorize words through an engaging format. After the game starts, players observe the question on the UNIHIKER M10 screen, write down their answer, whereupon HUSKYLENS will recognize the answer. If correct, the player earns points.

Ā 

1.2 Demo Video

Ā 

2.Implementation Principle

The core logic is as follows:

Ā 

Ā 

3.Hardware and Software Preparation
3.1 Equipment List

Ā 

HARDWARE LIST
1 UNIHIKER M10
1 HUSKYLENS 2
2 USB Cable
1 PH2.0 4Pin Connector Wire

3.2 Hardware Connection

Make connections by referring to the diagram below.

Ā 


3.3 Software Preparation

Download and install the Mind+ installation package (Version 2 and above) Ā from the official website. Double-click to open it after installation.

Ā 

Ā 

4. Project Making

4.1HuskyLens 2

First, select the protocol type for HuskyLens 2. Ā 
Tap System Settings -> Protocol Type -> Select I2C communication mode, then return to the main menu interface.

Ā 

Ā 

Swipe the screen to find the "Optical Character Recognition" function.

Ā 

Ā 

Point HUSKYLENS 2 at a screen with text. When text is detected, the screen will frame the text in a white box. The recognized text will be displayed on the recognition box pointed to by the "+" cross cursor.

Ā 


Ā  Ā  Ā  Ā  Ā Ā 
For more detailed usage of HuskyLens 2, please refer to the following URL:
https://wiki.dfrobot.com/_SKU_SEN0638_Gravity_HUSKYLENS_2_AI_Camera_Vision_Sensor


4.2 Programming

- Create a New Project
Click "Coding" in the left navigation bar, then select "Python Blocks Mode".

Ā 

Ā 

- Import Libraries
Add the main controller: Click "Extensions", search for "M10" in the top-right search box, click the "Download" button on the UNIHIKER M10 extension library, and after downloading, click the library again to complete the import.

Ā 

Ā 

Using the same method, search for "HUS", download, and add the HuskyLens 2 AI Camera.

Ā 


- Connect Terminal Device
In the terminal connection options, select "Default-10.1.2.3" to connect to UNIHIKER M10.

Ā 


After the device is successfully connected, write the program as follows: Ā  Ā 

Ā 

Ā 

Ā 

There is a complete program file for this project in the attachment. (Note: The .mp file is compatible with both Mind+ v1.x (e.g., v1.8.1) and v2.x (e.g., v2.0), while the .mpcode file only works with Mind+ v2.0)
Open Project->Open Local File to load project.

Ā 

Ā 

Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā 
Select the project in the attachment and click "Open".

Ā 

Ā 

Click "Go" to run the program.

Ā 

Ā 

The effect is as follows:

Ā 

Ā 

To enhance the fun and challenge of the game, we can also adapt this program into a two-player competitive game by adding features like a quick answer buzzer, score tracking, and a countdown timer!


5.Attachment

icon Program-Optical Character Recognition.zip 2.08MB Download(0)
License
All Rights
Reserved
licensBg
0