Hi everyone, I’m trying to use my Arducam 2MP camera together with Edge Impulse to train a computer vision model. I’m not really sure how to connect the two or where to start. Could someone point me in the right direction? Thanks!
Hi, I’m Richard from the Arducam Support Team. I’m not sure I fully understand your question — could you elaborate a bit on what exactly you’re trying to do?
If your goal is simply to use Edge Impulse to train CV (computer vision) models, I’d start with the official Edge Impulse tutorials:
- Image classification: Image classification - Edge Impulse Documentation
- Object detection: Object detection with bounding boxes - Edge Impulse Documentation
Those cover the general training workflow. Let me know more about your setup and we can dig in further.
Sure, let me explain properly. I’m building an image classification project using a Raspberry Pi Pico with an Arducam 2MP camera (OV2640). My problem is that I can’t collect data from the Arducam for Edge Impulse using the data forwarder.
What I tried:
- Used the data forwarder via the command line method following the Edge Impulse guide. Result: no data collected, just an error (screenshot attached).
- Tried the daemon command. It only gets up to board level — no camera sensor detected (screenshots attached).
- I’ve attached my connection setup photos and the guide I referenced for the command line / data forwarder.
One thing I noticed: most resources online use a Raspberry Pi 4 instead of a Pi Pico integrated with a camera for image classification or object detection, so I’m kind of stuck. Any idea what I’m doing wrong?
Thanks, that’s much clearer now.
So the usual way to collect data from any device for Edge Impulse is the data forwarder. To use it, your Pi Pico needs to output data through the serial port. The issue here is that Edge Impulse’s data forwarder doesn’t specify that it can receive image data — that’s why you’re not getting anything through when you try it with the Arducam.
You can try modifying your program so the Pico outputs the image data over the serial port and see how the data forwarder behaves, but honestly here’s what I’d recommend instead:
- Use the Pico to take pictures and store them on the PC side.
- Upload those stored pictures through the data upload function in your Edge Impulse project.
- Once you’ve finished training the model, export the project and then modify the data acquisition method inside it.
The reason for this workflow is that the data forwarder just doesn’t clearly support receiving image data. So uploading images directly into the project is the more reliable path for training.
OK, I followed that approach. I captured pictures with the Pi Pico + Arducam and uploaded them to my Edge Impulse project, and the training completed fine.
Now I’ve hit a new wall. After deploying the Edge Impulse code in C language, I can’t find a way to integrate the Arducam camera with the Edge Impulse code. I tried running the person detection code but it isn’t working — the person_detection_screen just shows a black screen and displays 50%.
Setup details:
- Raspberry Pi Pico with the Arducam camera
- Edge Impulse project (trained by uploading the pictures captured with the Pi Pico and Arducam)
- Edge Impulse code deployed in C
- Person detection on the Pico with TensorFlow Lite Micro
For capturing the image I used Arducam_mini_2MP_plus_videostreaming from GitHub - ArduCAM/PICO_SPI_CAM · GitHub, and I referenced this guide for the person detection part: https://www.arducam.com/raspberry-pi-pico-tensorflow-lite-micro-person-detection-arducam/
How do I get the camera working with the Edge Impulse code here?
I think there’s a misunderstanding about what that example is for. The person detection example (and the associated code) is only intended to verify that the camera is functioning properly. It’s not meant to be a full integration with Edge Impulse.
Adding extra functionality — like wiring the Arducam camera into your own Edge Impulse pipeline — goes beyond the scope of the standard example and would require customization.
If you want to add that kind of functionality, you’ll need to contact our sales staff to discuss a customization. That’s the correct route for anything beyond verifying the camera is working.
Understood. Could you tell me the email address of the sales department so I can contact them about the customization?
You can reach the sales team at [email protected] for customization requests.
Quick recap of where we landed:
- The Edge Impulse data forwarder isn’t specified to handle image data, so you can’t collect images from the Arducam that way — capture with the Pico, store on the PC, and upload via the project’s data upload function instead.
- The person detection example only verifies that the camera works; it doesn’t cover integrating the camera with your Edge Impulse code. That extra integration falls under customization.
- For that, contact [email protected].
Hope that helps, and feel free to post again if you need anything else clarified.