Arducam 2MP SPI Camera B0067: capture single frame in Python, not just streaming?

Hi everyone, hopefully this is the right place to ask. I’m about to buy the Arducam 2MP SPI Camera (the B0067 module for Arduino) but before I order I want to make sure it can do what I need.

My goal is to grab a single still frame when an event happens, then base64-encode that frame and push it out over WiFi. The problem is that all the Python examples I can find on GitHub seem to be for streaming only. I can’t figure out how to just capture one frame on demand, the way you’d do with the OpenCV python module.

I already have all my other code running, I literally just need to add this one feature. The documentation doesn’t say anything about single-frame capture (or maybe I just can’t find it). Does anyone know if this is possible?

(I tried the contact form first but the captcha wasn’t working, so I’m posting here instead.)

Hi, happy to help you check this before you buy.

Quick question first so I know where you’re starting from: have you already gone through the official SPI camera software documentation? That’s the reference we’d normally point you to for the Arduino SPI camera line:

https://www.arducam.com/docs/spi-cameras-for-arduino/software/

Let me know if you’ve followed that page and what you found there, and then we can dig into the single-frame capture question.

Yes, I’ve been through that link already, thanks. That’s actually where I got stuck.

The issue is that everything there is in C. I’m working in MicroPython, so the C examples don’t really help me directly. What I’m looking for is a Python example or library to actually access the camera.

Specifically, is there an OV2640 Python library I could use? If you can point me at one I’m happy to try it on my own and write the MicroPython examples myself, I just need something to start from. Right now I have no Python-side way to talk to the camera at all.

Sorry, not available yet.

The Python examples/libraries you’re asking for, and specifically an OV2640 Python library for this SPI camera, aren’t available yet on our side. So there’s unfortunately no Python link or library I can hand you for this right now.

If/when that changes it would show up in the software docs linked above. In the meantime, the only reference material for the SPI camera is the C-side documentation.

Understood. So just to confirm for anyone else reading this later: the SPI camera Python examples don’t exist yet, and there’s no OV2640 Python library to work from.

That means for MicroPython single-frame capture there’s currently no official path, and everything available is C only. I’ll keep an eye on the docs page in case a Python library shows up. Thanks for confirming.