Eye remote control¶
Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.
Built on the Quectel Pi H1 smart single-board computer, this project leverages its robust compute performance and multimedia processing capabilities to deliver low-latency, high-accuracy eye tracking.
The Eye Remote Control is an intelligent control system that manages video playback based on gaze direction and eye state (open or closed): playback continues while looking at the screen, and automatically pauses when the user closes their eyes or leaves the camera's effective detection range.
Key features:
Automatically starts or resumes video playback when the user is detected looking at the screen with eyes open.
Immediately pauses video playback when the user closes their eyes, looks away from the screen, or exits the camera's detection area.
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: gigabit |
CPU cooling fan (optional) |
1 |
|
2PIN PH1.25 interface speaker |
1 |
2030 cavity speaker; 8 ohm, 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: Make sure that the router is connected to the internet. 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.
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 power adapter, and the USB-C end to the power 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, monitor, or other connected accessories when shutting down or restarting the device. Keep them connected.
Project implementation¶
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-eye-remote-control.git
After execution, the demo-eye-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-eye-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 installation is successful.
python3 --version
Run program¶
Run the ./start.sh startup script in the demo-eye-remote-control directory.
cd demo-eye-remote-control/
./start.sh
User guide¶
Basic workflow¶
Launch the application: The camera turns on automatically upon startup and begins detection.
Load a video: Click Select Video File to load the video you want to play.
Start watching: The system automatically plays or pauses the video based on your gaze state.
Switch modes: Switch to Fullscreen Play Mode for an enhanced viewing experience.
UI feature description¶
Fullscreen: Maximizes the entire application window to full screen while keeping the camera preview and status monitoring panel visible. Press F11 or Esc again to exit fullscreen.
Fullscreen Play Mode: Hides the control panel and camera feed to display only the video in full screen, while maintaining eye-tracking inference in the background. Press Esc to exit immersive mode.
Turn Off Camera: Toggles the camera on or off at any time.
Enable Eye Detection: Manually enables or disables eye detection.
Show Landmarks: Visualizes eye keypoints and detection results on screen.
Detailed control logic¶
State |
Playback action |
Description |
|---|---|---|
Gazing at the screen + eyes open |
Continue playback |
The system detects that the user is watching. |
Eyes closed or gaze shifted away |
Automatically pause |
Pause playback when the user looks away or closes their eyes. |
Face leaves the camera view |
Automatically pause |
No face detected for more than 1 second. |
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 detected, connect it to a USB hub with an independent power supply, and connect the hub to the power supply.
Running ./start.sh 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-eye-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-eye-remote-control
Welcome to submit an issue to report a problem or a pull request to improve the code.