How can I use USB camera with Hailo-8L on Raspberry Pi 5?

I am using an USB camera with hailo-8L on my Raspberry Pi 5.
and I have already installed the hailo-all
and Use the demo code cloned from https://github.com/hailo-ai/hailo-rpi5-examples but I can not use my USB camera as camera feed. how can i solve this problem?

Welcome to the Hailo Community!

You need to check whether your USB camera support video4linux short v4l2.

You should see your camera in the /dev/ directory.

ls /dev/video*

Plug the camera in and out to see the difference in case there are many video devices.

Then you can use the v4l2-ctl tool to get further information.

v4l2-ctl -D -d /dev/video0

This should print something like this:

Driver Info:
	Driver name      : uvcvideo
	Card type        : Logitech BRIO
	Bus info         : usb-0000:00:14.0-1
	Driver version   : 5.15.149
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Logitech BRIO
	Serial           : ACE12345
	Bus info         : usb-0000:00:14.0-1
	Media version    : 5.15.149
	Hardware revision: 0x00000317 (791)
	Driver version   : 5.15.149
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Logitech BRIO
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x0100000d   : 0: Sink
	  Link 0x02000029: from remote pad 0x1000010 of entity 'Processing 3': Data, Enabled, Immutable

Try another USB camera if you do not get this.

I am having the same issue.

I can see the driver info described above, but I’am getting an ERROR: *** no cameras available *** when running rpicam-apps commands. My Logitech 925e camera works fine with Cheese app.

Is Hailo-8L using the libcamera library only? Libcamera does not seem to work with USB cameras.

ok nevermind, it seems to work now on usb webcamera.

I followed the guide on github hailo-ai/hailo-rpi5-examples/

1 Like