howdy icon indicating copy to clipboard operation
howdy copied to clipboard

Unknown issue

Open dvegas03 opened this issue 3 years ago • 1 comments

So, I got some strange trouble. I have successfully created a model of my face. When I start the Howdy test, the face is determined just perfect, but... When I try to run the Howdy into the sudo, for example: Attempting face detection Identified face as d_vegas03 Sorry, try again. this is the output.

Here's my config.ini: # Howdy config file # Press CTRL + X to save in the nano editor

[core] # Print that face detection is being attempted detection_notice = true

# Do not print anything when a face verification succeeds no_confirmation = false

# When a user without a known face model tries to use this script, don't # show an error but fail silently suppress_unknown = false

# Disable Howdy in remote shells ignore_ssh = true

# Disable Howdy if lid is closed ignore_closed_lid = true

# Disable howdy in the PAM # The howdy command will still function disabled = false

# Use CNN instead of HOG # CNN model is much more accurate than the HOG based model, but takes much more # computational power to run, and is meant to be executed on a GPU to attain reasonable speed. use_cnn = false

[video] # The certainty of the detected face belonging to the user of the account # On a scale from 1 to 10, values above 5 are not recommended # Lower is better certainty = 3.5

# The number of seconds to search before timing out timeout = 4

# The path of the device to capture frames from # Should be set automatically by an installer if your distro has one device_path =/dev/video2

# Scale down the video feed to this maximum height # Speeds up face recognition but can make it less precise max_height = 320

# Set the camera input profile to this width and height # The largest profile will be used if set to -1 # Automatically ignored if not a valid profile frame_width = -1 frame_height = -1

# Because of flashing IR emitters, some frames can be completely unlit # Skip the frame if the lowest 1/8 of the histogram is above this percentage # of the total # The lower this setting is, the more dark frames are ignored dark_threshold = 125

# The recorder to use. Can be either opencv (default), ffmpeg or pyv4l2. # Switching from the default opencv to ffmpeg can help with grayscale issues. recording_plugin = opencv

# Video format used by ffmpeg. Options include vfwcap or v4l2. # FFMPEG only. device_format = v4l2

# Force the use of Motion JPEG when decoding frames, fixes issues with YUYV # raw frame decoding. # OPENCV only. force_mjpeg = false

# Specify exposure value explicitly. This disables autoexposure. # Use qv4l2 to determine an appropriate value. # OPENCV only. exposure = -1

[snapshots] # Capture snapshots of failed login attempts and save them to disk with metadata # Snapshots are saved to the "snapshots" folder capture_failed = true

# Do the same as the option above but for successful attempts capture_successful = true

[debug] # Show a short but detailed diagnostic report in console # Enabling this can cause some UI apps to fail, only enable it to debug end_report = false

Howdy version#: 2.6.1 Manjaro Gnome.

Also, if that describes the problem, before I got something like that(as output): [ WARN:0] global /build/opencv/src/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (1756) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not read from resource. [ WARN:0] global /build/opencv/src/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline [ WARN:0] global /build/opencv/src/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created but then I've fixed it with this method - https://github.com/boltgolt/howdy/commit/b04ffe5bd83683949db53bcaf2b91559e30d8e4c

Thank you in advance! Great project!

dvegas03 avatar Jul 18 '21 20:07 dvegas03

Interesting, is there anything in the auth.log?

boltgolt avatar Jul 31 '21 20:07 boltgolt