- 【丁丁历险记】全篇索引
- 本节教大家快速开发ESP32-CAM做图像传输以及图像识别。
一、安装LeapMotion驱动
-
配置service文件
在安装驱动前需要创建一个leap.service文件,否则安装驱动时会报错。
sudo vi /lib/systemd/system/leapd.service
1.在新创建的文件中粘贴一下代码:
# Found by Kevin Cole 2014.11.22 at
# https://github.com/atejeda/leap-fedora-rpm
#
# Remember to:
#
# ln -s /lib/systemd/system/leapd.service /etc/systemd/system/leapd.service
# systemctl daemon-reload
#
[Unit]
Description=LeapMotion Daemon
After=syslog.target
[Service]
Type=simple
ExecStart=/usr/sbin/leapd
[Install]
WantedBy=multi-user.target
2.将信息链接到配置目录中
sudo ln -s /lib/systemd/system/leapd.service /etc/systemd/system/leapd.service
systemctl daemon-reload
3.下载Leap_Motion驱动
- 官方驱动下载:Leap_Motion_V2
- 百度云盘:提取码:ot2k
- 下载后对文件进行解压
tar -xvf Leap_Motion_SDK_Linux_2.3.1.tgz
cd $LEAP_MOTION_SDK
sudo dpkg -i Leap-2.3.1-对应系统版本.deb
若出现缺少依赖问题可以通过
sudo apt install -f #进行修复
-
测试:
打开LeapMotion摄像头服务
sudo leapd #等待服务开启后
Visualizer #打开窗口即可看到摄像头的识别信息