1、简介
树莓派5是树莓派基金会推出的最新一代单板计算机(SBC),延续了系列“低成本、高性能”的设计理念。它基于ARM架构,适用于编程教育、物联网开发、智能家居控制、媒体中心搭建及工业自动化等场景,尤其适合需要一定计算能力且预算有限的项目。Hailo-8是由以色列Hailo公司开发的AI加速模块,专为边缘计算场景设计。它通过PCIe/M.2接口与主控板(如树莓派5、NVIDIA Jetson)连接,提供高性能、低功耗的深度学习推理能力。
使用树莓派5进行图像处理在实时性上有所欠缺,因此可以使用Hailo-8(26 TOPS)或Hailo-8L(13 TOPS)模块进行加速,提升效率。本文采用的是Hailo-8。
2、环境搭建
(1)本文采用Windows自带的远程桌面进行树莓派的连接,所以需要安装xrdp,具体步骤如下:
-
使用PUTTY软件进行连接,并输入树莓派的用户名和密码;
-
在PUTTY中使用如下指令查看系统版本,本文采用的树莓派系统是aarch64:
uname -a
-
使用如下指令修改默认的软件源(对aarch64系统有效):
sudo nano /etc/apt/sources.list
-
在界面中增加如下源,效果如下图所示:
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/bookworm-updates main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware # 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换 # deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware