Gesture remote control¶
Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.
This project is a gesture recognition and touchless video control demo built on the Quectel Pi H1 smart single-board computer.
By capturing hand images via a camera and leveraging AI gesture recognition algorithms, the system enables touchless control over video playback, scrubbing, and volume adjustment, delivering a natural and intuitive user experience.
Development resource summary¶
Note
The following development accessories are for reference only, and the actual configuration may vary depending on the development environment. For example, a USB docking station is not required when you develop through an SSH remote connection. The display can be replaced as needed, but the replacement must meet the required interface and specification requirements.
Development accessory list¶
Accessory |
Quantity |
Specifications |
|---|---|---|
Quectel Pi H1 smart single-board computer |
1 |
- |
Power adapter |
1 |
Official 45W USB Type-C Power Supply for Raspberry Pi 5, White Color, US Plug |
Micro HDMI cable |
1 |
Micro HDMI 2.0; Cable length: 1 m; Interface: HDMI-A (male) to HDMI-D (male) |
Network cable |
1 |
Cable length: 1 m; Transmission rate: Gbps |
CPU cooling fan (optional) |
1 |
|
2PIN PH1.25 interface speaker |
1 |
2030 cavity speaker; 8 Ω, 2 W; Square speaker; High-quality compact speaker; 2PIN PH1.25 connector |
Docking station (optional) |
1 |
|
OV5693 USB camera module |
1 |
|
HDMI monitor |
1 |
HDMI monitor |
Hardware accessories reference¶
Quick start¶
Development preparation¶
The Quectel Pi H1 comes pre-installed with Debian 13, so reflashing the OS image is typically not required. Follow the steps below to get started:
Hardware connection¶
Complete all hardware connections by following the steps below. The step numbers match the labels in the interface diagram.
Display connection: Connect one end of the Micro HDMI cable to the Micro HDMI port on the board and the other end to the HDMI port on the monitor.
Network connection: Connect one end of the Ethernet cable to the Gigabit Ethernet port on the board and the other end to the Ethernet port on the router. Make sure that the router is connected to the internet.
Input device connection: Connect the USB keyboard and mouse to the USB ports on the USB docking station, and then connect the docking station to a USB port on the board. If wireless input devices are used, connect the wireless receiver to a USB port on the docking station. Then connect the OV5693 camera module to another USB port on the board.
Power connection: Connect the USB-A end of the USB-A power cable to the output port of the power adapter, and the USB-C end to the power input port on the board (usually labeled POWER IN).
Cooling fan connection: First plug the cooling fan cable into the FAN connector on the board, then secure both sides of the heat sink in the reserved mounting holes on the board.
Speaker connection: Connect the 2PIN PH1.25 interface speaker to the SPK slot on the board.
Completed connection reference¶
Note
After completing the connections above, you do not need to disconnect the camera, speaker, display, or other connected accessories when shutting down or restarting the device. Keep them connected.
Environment deployment¶
Open a terminal on the smart single-board computer and use git to clone the project code.
sudo apt update && sudo apt install -y git
git clone https://github.com/Quectel-Pi/demo-gesture-remote-control.git
After you run git clone, the demo-gesture-remote-control folder should be generated in the current directory.
Run the following commands in sequence in the terminal on the board. If the terminal displays Deployment complete, the deployment is complete.
cd demo-gesture-remote-control
sudo chmod 755 install.sh
./install.sh
If an error occurs while you are running ./install.sh, or the terminal does not display Deployment complete, do not continue with the subsequent steps. First, make sure that the network connection is working, then return to the project root directory and run install.sh again.
Open the terminal again and verify the Python version. If the output is Python 3.10.15, the Python environment meets the requirements.
python3 --version
Run the application¶
Navigate to the src directory and run python3 main.py to launch the application. Once initialized successfully, the main Gesture Remote Control interface window will appear.
cd demo-gesture-remote-control/src/
python3 main.py
Gesture mapping¶
Note
Make sure that the camera faces the user's gesture interaction area and that the lighting is stable and sufficient.
Gesture |
Action |
|---|---|
Open palm (5 fingers) |
Play video |
Fist |
Pause video |
Swipe right (1–3 fingers) |
Fast-forward 5 s |
Swipe left (1–3 fingers) |
Rewind 5 s |
Swipe up (1–3 fingers) |
Volume +5 % |
Swipe down (1–3 fingers) |
Volume -5 % |
Common issues and solutions¶
Camera not recognized¶
Symptom:
No available camera device found
Solution:
Unplug and reconnect the USB camera.
Try another USB port.
Run the following command to check whether the camera is recognized:
ls -la /dev/video*
If the camera is still not recognized, connect it to a USB hub with an independent power supply, and connect the hub to the power supply.
Running main.py reports No module named cv2¶
Symptom:
ModuleNotFoundError: No module named 'cv2'
Solution:
This issue typically occurs when install.sh fails to run or dependencies are not fully installed. Run the following commands to return to the project root and re-run the installation script:
cd demo-gesture-remote-control
./install.sh
Application demo¶
Technical support and contributions¶
If you encounter any issues during use, please submit a technical inquiry on the Quectel official forum. Our technical support team will respond promptly.
Project open-source repository: https://github.com/Quectel-Pi/demo-gesture-remote-control
Welcome to submit Issues to report problems or Pull Requests to improve the code.