howdy: VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Please look straight into the camera
Traceback (most recent call last):
File "/usr/local/bin/howdy", line 89, in <module>
import cli.add
File "/lib/security/howdy/cli/add.py", line 147, in <module>
gsframe = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.0.0) /io/opencv/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
I’ve searched for similar issues already, and my issue has not been reported yet.
Linux distribution (if applicable): ubuntu 18.10
Howdy version: latest
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 3
- Comments: 51 (17 by maintainers)
Upgrading my kernal on dell xps 9730 - ubuntu 18.04 worked. By default it was using the rgb camera and I had to update the configuration
device_path = /dev/v4l/by-path/pci-0000:00:14.0-usb-0:5:1.2-video-index0this might change for you. After that it started using the IR camera and the ir blasters also works smooth.00000032-0002-0010-8000-00aa00389b71is the new Microsoft 8-bit IR format, supported in Linux kernels starting from 4.17. So updating to a newer kernel will probably fix the problem, but is not always easy.@AnthonyWharton i’m on elementaryOS, which is based on ubuntu 18.04 i’m currently playing with ukuu, going for 4.19.26… only a reboot away 😉
I had the same problem. Did not work in Ubuntu 18.04 not even with HWE stack and 4.18; Installing mainline 4.19 kernel with ukuu fixed that. But you are moving away from plain Ubuntu supported kernels with that.
@Warsenius You don’t have any other devices under
/dev/videoXdo you?@sviatco Intrigued as to why your IR bulbs aren’t lighting up as I have the same laptop as you and it’s working fine for me. What distro/kernel are you on? Would be interesting to compare and work out why your install doesn’t work.
As for what happens without the IR bulbs lighting; you’re going to get a lot of inconsistency as to the image that the camera is doing facial recognition against. Differing amounts of IR light from your environment (indoor/outdoor) will affect the results a lot more than if you have a consistent bright source of IR light hitting your face from the direction of your laptop. This light also reflects off of your face a lot more than the surrounding, which gives a more contrasting ‘bright’ face compared to the darker background when the exposure is taken into account.
I reinstalled it, and chose different camera(not dell xps’s infrared camera) and it works now