Ubuntu安装Leap_Motion


  • 本节教大家快速开发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驱动

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         #打开窗口即可看到摄像头的识别信息

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章