Smart video surveillance system¶
Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.
This project is a smart video surveillance system built on the Quectel Pi H1 smart single-board computer. Integrating the Frigate NVR (Network Video Recorder) platform and leveraging computer vision, it delivers core capabilities such as object detection, motion tracking, and event-based recording.
For camera compatibility, the system supports flexible integration with multiple camera types:
USB camera: Direct local connection, plug-and-play.
IPC (IPCs): Standardized device control via the ONVIF protocol, streaming low-latency video over RTSP.
The system features a web-based management dashboard for seamless real-time monitoring and data management, making it well-suited for applications such as home security and commercial surveillance.
Development resource summary¶
Development accessory list¶
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, provided that the replacement meets the interface and specification requirements.
Accessory |
Quantity |
Specifications |
|---|---|---|
Quectel Pi H1 smart single-board computer |
1 |
- |
USB-C power adapter |
1 |
Official 45W USB Type-C Power Supply for Raspberry Pi 5, White Color, US Plug |
Micro HDMI cable |
1 |
Specification: HDMI 2.0; Length: 1 m; Connector: HDMI-A (male) to HDMI-D (male). |
Ethernet cable |
1 |
Length: 1 m; Transmission rate: Gigabit. |
CPU cooling fan (optional) |
1 |
|
Docking station (optional) |
1 |
|
Network camera |
1 |
|
OV5693 USB camera |
1 |
|
HDMI display |
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 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, mouse, and OV5693 camera module to the USB ports on the docking station, then connect the docking station to a USB port on the board. If using wireless input devices, connect the wireless receiver to a USB port on the docking station.
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.
Network camera connection: Connect the network camera to a power source using its supplied power cable, and ensure that it is on the same local area network as the board.
Completed connection reference¶
Project implementation¶
Prerequisites¶
For initial network provisioning, the IP camera (IPC) must be connected to a local network. Ensure that the smartphone used for configuration and the IPC are connected to the same Wi-Fi network (under the same router), then use the companion Tenda app to add the camera and complete network setup. For more details, refer to the App configuration guide.
Note
Ensure that both the board and the IP camera reside on the same local area network (LAN); otherwise, the system will not be able to retrieve the camera's RTSP video stream.
Install Docker¶
# Remove all conflicting packages
sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-doc podman-docker containerd runc | cut -f1)
# Set up the Docker apt repository
sudo apt update
sudo apt install curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install Docker packages
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Start Docker service¶
# Start the Docker service
sudo systemctl start docker
# Verify that Docker is running
sudo systemctl status docker
If the terminal output contains active (running), Docker has started successfully.
Deploy Frigate system¶
# Create a frigate folder in the root directory
mkdir ~/frigate
cd frigate/
mkdir storage config
Click this link to download the configuration file. Then use the SCP command to upload the file to the ~/frigate directory (see File copy using SCP), and run the following command to deploy the Frigate container service.
Note
Make sure that the docker-compose.yml file is in the ~/frigat e directory; otherwise, the following commands cannot be executed.
cd ~/frigate
sudo docker compose up -d
Install project dependencies¶
Run the following commands in the terminal to install the project dependencies:
pip install --upgrade pip
pip install onvif-zeep wsdiscovery opencv-python pyyaml
Camera device discovery and configuration¶
In the ~/frigate directory, grant execute permissions to camera_discover.py from the uploaded configuration files. Once run, the script will automatically scan for connected devices and generate a config.yml file to configure USB cameras and ONVIF-compliant IP cameras.
chmod +x ~/frigate/camera_discover.py
python3 camera_discover.py
Note
If camera_discover.py fails to run properly, verify that the CONFIG_PATH variable inside the script correctly points to ~/frigate/config/config.yml.
Camera backend settings¶
From a PC on the local network or directly within the board's desktop environment, open Firefox and navigate to the IP camera's IP address. Log in to the admin console using the default credentials (username: admin, password: admin123456) to configure the audio and video encoding parameters.
Note
The IP address of the network camera can be found in the device information of the Tenda app.
Restart Frigate service (apply changes)¶
Run the following command in your terminal:
sudo docker compose -f ~/frigate/docker-compose.yml down && sudo docker compose -f ~/frigate/docker-compose.yml up -d
Once started, enter http://<smart_single-board_computer_ip>:5000 in your browser to access the Frigate service.
Application demo¶
Real-time monitoring function demo¶
The Live view allows you to monitor surveillance feeds in real time, with support for displaying multiple camera streams simultaneously:
Review function demo¶
In the Review view, you can examine security alerts across different timeframes. The system automatically detects and records surveillance footage whenever matching targets (such as pedestrians and vehicles) are identified:
Object tracking function demo¶
The Explore view displays the tracked objects defined in your configuration file (e.g., persons, vehicles), along with their bounding boxes and confidence scores:
Video export function demo¶
On the Review page → right-click or long-press a playback item → select Export;
Or from the camera's History page → click the Export button.
Exported videos can be managed and downloaded from the Export view in the left navigation bar.
Face recognition function demo¶
The facial recognition feature identifies known individuals by matching detected faces against pre-enrolled face data. When an individual is recognized, their name is displayed as a sub-label.
On the Face Library page, click the Add Face button. In the setup wizard, enter the person's name, upload a reference photo, and click Next and then Done to complete enrollment. When Frigate detects and attempts to identify faces, they will appear under the Train tab alongside their corresponding confidence scores.
Note
For more features and usage, see the Frigate official website.
Technical support and contributions¶
If you encounter any problems during use, welcome to submit technical inquiries on the Quectel official forum. Our technical support team will respond promptly.
Project open-source repository: https://github.com/Quectel-Pi/demo-inkscreen-reader/
Welcome to submit an issue to report a problem or a pull request to improve the code.