最近,深度操作系統剛剛發布了 20.05,它添加的 人臉識別功能 引來了社區的關注。ALr28資訊網——每日最新資訊28at.com
拋開人臉識別的準確度、可靠性,以及是否實用等問題,我們是否可以在其它的 Linux 系統中也獲得人臉識別/解鎖的的功能呢?ALr28資訊網——每日最新資訊28at.com
答案是肯定的。這就是本文要介紹的 Howdy 提供的功能。ALr28資訊網——每日最新資訊28at.com
Howdy 是什么?ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
據該項目的說明:ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
Howdy 為 Linux 提供了 Windows Hello™ 式的認證方式。使用內置紅外發射器和攝像頭,結合面部識別功能來證明你是誰。ALr28資訊網——每日最新資訊28at.com
它使用中央身份驗證系統(PAM),適用于任何需要密碼的地方,如登錄、鎖屏、sudo、su 等等。ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
安裝ALr28資訊網——每日最新資訊28at.com
對于 Ubuntu/Linux Mint,可以添加第三方倉庫安裝:ALr28資訊網——每日最新資訊28at.com
sudo add-apt-repository ppa:boltgolt/howdyALr28資訊網——每日最新資訊28at.com
sudo apt updateALr28資訊網——每日最新資訊28at.com
sudo apt install howdyALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
對于 Debian Linux,請在 發布頁 下載 deb 安裝包:ALr28資訊網——每日最新資訊28at.com
wget https://github.com/boltgolt/howdy/releases/download/v2.6.1/howdy_2.6.1.debALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
然后使用以下命令安裝:ALr28資訊網——每日最新資訊28at.com
sudo dpkg -i howdy_2.6.1.deb # 請將文件名代替為你下載的文件名ALr28資訊網——每日最新資訊28at.com
sudo apt install --fix-broken # 使用 --fix-broken 安裝缺失的依賴ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
對于 Fedora Linux,通過 COPR 倉庫安裝:ALr28資訊網——每日最新資訊28at.com
sudo dnf copr enable principis/howdyALr28資訊網——每日最新資訊28at.com
sudo dnf --refresh install howdyALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
對于 Arch Linux 和 openSUSE 請參照其 倉庫的說明。ALr28資訊網——每日最新資訊28at.com
安裝時,會自動下載依賴包和 dlib 的模型。請保證網絡通暢。ALr28資訊網——每日最新資訊28at.com
配置ALr28資訊網——每日最新資訊28at.com
安裝后,運行如下命令來編輯配置文件:ALr28資訊網——每日最新資訊28at.com
sudo howdy configALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
請將配置文件中的 device_path = /dev/xxxx 改成你的攝像頭路徑,它通常是 /dev/video0。ALr28資訊網——每日最新資訊28at.com
如果 /dev 下沒有 videoX設備,請檢查攝像頭驅動是否已經安裝。ALr28資訊網——每日最新資訊28at.com
Howdy 需要了解你的長相,以便以后能識別你。運行如下命令來添加一個面部模型:ALr28資訊網——每日最新資訊28at.com
sudo howdy addALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
ALr28資訊網——每日最新資訊28at.com
如果沒有出錯,我們應該可以通過識別你的臉來運行 sudo。打開一個新的終端,運行 sudo -i 來看看它的運行情況。ALr28資訊網——每日最新資訊28at.com
排錯解決 Howdy 在 GNOME 鎖屏界面不工作的問題ALr28資訊網——每日最新資訊28at.com
復制如下文件:ALr28資訊網——每日最新資訊28at.com
https://github.com/boltgolt/howdy/blob/caf244ce297d27d40168c40571b0fad6f7ee2596/src/compare.pyALr28資訊網——每日最新資訊28at.com
將 /lib/security/howdy/compare.py 代替即可。ALr28資訊網——每日最新資訊28at.com
本文鏈接:http://www.tebozhan.com/showinfo-119-2262-0.html使用 Howdy 為 Linux 增加人臉識別登錄
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。郵件:2376512515@qq.com
上一篇: 霸榜GitHub熱門第一多日后,Colossal-AI正式版發布
下一篇: 像「毒液」一樣可變形、修復的機器人來了,輕松穿過1.5毫米細縫