howdy: Unable to get test to work with IR camera on Lenovo P1

Using the command gst-launch-1.0 v4l2src device=/dev/video2 num-buffers=10 ! image/jpeg ! multifilesink location="frame-%02d.jpg" works, yielding a number of 640x480 black and white images saved to disk. This also causes the IR/red LEDs to flash next to the camera. The same does not happen in cheese or in sudo howdy test when that device is selected. Cheese and sudo howdy test instead yield a very noisy green speckled image that vaguely resembles the anticipated scene and the IR/red LEDs stay off.

I have tried setting the width and height in the config.ini file to both 640x480 and the cheese-detected 400x480 as well as leaving them set to -1.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

I’m using a Thinkpad P1 as well, you have to use 400x400 frame size for /dev/video2

Heres my current config

[core]
detection_notice = false
no_confirmation = false
suppress_unknown = false
ignore_ssh = true
ignore_closed_lid = true
disabled = false
use_cnn = false

[video]
certainty = 3.5
timeout = 4
device_path = /dev/video2
max_height = 400
frame_width = 400
frame_height = 400
dark_threshold = 50
recording_plugin = opencv
device_format = v4l2
force_mjpeg = false
exposure = -1

[debug]
end_report = false

This worked for me. I had to set dark_threshold to 100, but otherwise that fixed the problem. Thanks!