ArduCAM / Arduino

This is ArduCAM library for Arduino boards
MIT License
473 stars 349 forks source link

Saving images on the Raspberry Pi 4B from the OV5642 camera #572

Closed emmanuel-nwogu closed 1 year ago

emmanuel-nwogu commented 1 year ago

How do I save images from an OV5642 cam connected to a Pi 4B? The most recent support message concerning this points to https://github.com/ArduCAM/RaspberryPi/tree/master/SPI_Camera but this mini-library streams images to an app and does not seem to save them onto the Pi itself. I would appreciate any pointers on how to do this.

emmanuel-nwogu commented 1 year ago

I was able to get this fix to work for me. I forked @dhylands's version here and changed the following for my version:

Inspired by ArducamDemo.c, I then wrote a Save_To_Pi.c that continuously wrote images to a text file. Here it is. It's very bare-bones but it's simple enough to let you (and future me) know how to save images. After writing this c code, I changed the makefile to build an executable for it instead. Here is the new makefile.