Raspberry Pi5 with AI camera module from RPi

I am working on a senior design project now and have an AI camera and trying to use edge impulse but keep getting errror message:

Edge Impulse Linux client v1.14.1

[GST] checking for /etc/os-release
Failed to initialize linux tool Capture process failed with code 1

I have tried so many things including opening through gstreamer. What are my options?

Project ID:
637999

Context/Use case:
I see this issue on my RPi5

Steps Taken:
I have tried using the camera through gstreamer as well as changing the pixel format to abde by edge impulse requirements.

Expected Outcome:
To take pictures as well as record live with the AI camera module within edge impulse

Actual Outcome:
Edge impulse does not open and cannot see camera

Reproducibility:

  • [ ] Always

I found more information

Final Conclusion: The AI Camera (IMX500) is Not Compatible with Edge Impulse

  1. Your camera is detected (/dev/video0 exists). :white_check_mark:
  2. We switched it to YUYV format, which is supported. :white_check_mark:
  3. Edge Impulse still failed (suggesting a deeper issue). :x:
  4. FFmpeg also failed to access the camera, meaning that V4L2 cannot properly control it. :x:

Since Edge Impulse relies on V4L2 for camera input, and V4L2 cannot stream from the IMX500, this camera is not compatible with Edge Impulse.

Since IMX500 uses libcamera instead of V4L2, Edge Impulse would need to add support for libcamera.

Aha, I just replied to your post on the other topic - but now I see this one. Ok, thanks for the report @mrebelo !

Yes, a USB camera works. I believe it is something with the AI camera that because it has the IMX500 chip, the image processing happens at the camera level and is not sending the pi a valid input type for edge impulse to receive.

I have tried using Gstreamer and changing the pipeline to a format that edge impulse recieves but this still did not work

As we do not have much time for this project is there a way you can think of to get around this and make the camera work or would we need to switch to a USB camera

As well if we switch to a USB camera is the raspberry pi5 sufficient at performing the tasks or is investing in the RPi5 AI hat a good option

@davidtischler_edgeim I forgot to tag you.

I would just switch to a USB camera then, as it sounds like this is time sensitive. The AI camera is not supported, as you have found out.

And, a Pi 5 should be very sufficient by itself, no need for an external accelerator.

Thanks @mrebelo !

Great thank you so much

Hi @mrebelo,

Do you have gstreamer1.0-libcamera installed? If not can you try install and try it again with Edge Impulse Linux CLI?
Can you return the output of gst-device-monitor-1.0?
And if the camera works with rpicam-hello (or similar tools) can you share the output?

Thanks

@davidtischler_edgeim @rjames

Okay thank you both so much we are moving away from the AI camera modules. are there any cameras for the pi5 that you recommend and that have seamless support with edge impulse AI model?