Raspberry Pi 4 + 5 MP camera - Cannot find any webcams

Question/Issue:

I setup fresh install of a Raspberry Pi 4 with a Raspberry Pi 5 MP camera.

I get this error message when running edge-impulse-linux:

Edge Impulse Linux client v1.3.8

Failed to initialize linux tool Error: Cannot find any webcams, run this command with --disable-camera to skip selection
    at /usr/lib/node_modules/edge-impulse-linux/build/cli/linux/linux.js:429:23

I already searched for a bit and found the suggestion to enable Legacy support in raspi-config, but it did not help.

I get this output from v4l2-ctl:

	Driver name      : bm2835 mmal
	Card type        : mmal service 16.1
	Bus info         : platform:bcm2835-v4l2-0
	Driver version   : 5.15.32
	Capabilities     : 0x85200005
		Video Capture
		Video Overlay
		Read/Write
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x05200005
		Video Capture
		Video Overlay
		Read/Write
		Streaming
		Extended Pix Format
Priority: 2
Video input : 0 (Camera 0: ok)
...

v4l2-ctl --list-devices

	/dev/video10
	/dev/video11
	/dev/video12
	/dev/video18
	/dev/video31
	/dev/media2

bcm2835-isp (platform:bcm2835-isp):
	/dev/video13
	/dev/video14
	/dev/video15
	/dev/video16
	/dev/video20
	/dev/video21
	/dev/video22
	/dev/video23
	/dev/media0
	/dev/media1

mmal service 16.1 (platform:bcm2835-v4l2-0):
	/dev/video0
sudo dmesg | grep video
[    5.046483] videodev: Linux video capture interface: v2.00
[    5.380088] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    5.466266] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    6.081412] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    6.113662] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    6.117391] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    6.165105] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    6.165972] bcm2835-v4l2-0: V4L2 device registered as video0 - stills mode > 1280x720
[    6.173227] bcm2835-v4l2-0: Broadcom 2835 MMAL video capture ver 0.0.2 loaded.
[    6.189838] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    6.191466] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    6.196707] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    6.197665] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    6.205472] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    6.208918] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    6.222279] bcm2835-codec bcm2835-codec: Device registered as /dev/video31

Any suggestions?

Hi,

would it be possible to test this command?

gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! waylandsink

If you can capture an image using gstreamer then the camera should work with the CLI.

Regards,

Omar