boltgolt / howdy

🛡️ Windows Hello™ style facial authentication for Linux
MIT License
5.76k stars 299 forks source link

Not working on Ubuntu 20.04 (Razer Book 13) #618

Closed zefir-git closed 2 years ago

zefir-git commented 2 years ago

Upon installation with apt, I noticed many issues. I tried purging and re-installing 3 times. For profile, I selected balanced.

After I run sudo howdy add, I see the following:

No face model folder found, creating one
Adding face model for the user william
Enter a label for this new model [Initial model] (max 24 characters): me
Camera path is not configured correctly, please edit the 'device_path' config value.
Exception ignored in: <function VideoCapture.__del__ at 0x7f2565f39ca0>
Traceback (most recent call last):
  File "/usr/lib/security/howdy/recorders/video_capture.py", line 55, in __del__
    self.internal.release()
AttributeError: 'VideoCapture' object has no attribute 'internal'

Is an older version of python required? I believe the installation script installed what I'm currently running.

$ python3 -V
Python 3.8.10
$ pip -V
pip 21.3.1 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)

I've searched for similar issues already, and my issue has not been reported yet.

Linux distribution (if applicable): Ubuntu 20.04.3 LTS x86_64, 5.10.0-1051-oem kernel

Howdy version (sudo howdy version): 2.6.1

zefir-git commented 2 years ago

I saw a similar issue and tried linux-enable-ir-emitter to resolve mine (https://github.com/EmixamPP/linux-enable-ir-emitter/issues/61) but it didn't resolve the error I get on Howdy.

zefir-git commented 2 years ago

Managed to get this working by using sudo howdy config and setting the device path to /dev/video2.

I found my IR camera using:

sudo apt install v4l-utils
v4l2-ctl --list-devices

Run v4l2-ctl -d /dev/videoN --list-formats-ext for each device to find which has infrared specs. For me, this looks like so: image