- 【丁丁歷險記】全篇索引
- 本節教大家快速開發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 #打開窗口即可看到攝像頭的識別信息