Shop OBEX P1 Docs P2 Docs Learn Events
JPEG image capture from Arducam OV2640 --> Eve2 LCD — Parallax Forums

JPEG image capture from Arducam OV2640 --> Eve2 LCD

RaymanRayman Posts: 14,640
edited 2022-12-31 21:57 in Propeller 2

Finally got around to figuring out how to capture JPEG images from OV2640 camera module.
Had QVGA preview working for this and other camera modules before:
https://forums.parallax.com/discussion/173418/code-for-arducam-ov2640-camera-module-also-made-to-work-with-ov7675-and-ov5640

Now, this code shows that QVGA preview for a few frames and then captures as JPEG into that QVGA buffer and then saves it to uSD card (or host computer using Plan9).

Main code is in FlexSpin C, but camera driver is in Spin2/assembly
Can currently capture up to 1600x1200, but this can be changed in cam.h.
SVGA and XGA modes can work without any other code changes, but lower resolutions currently need tweaks to code. Reason is that the Arducam library has different pixel clock rates for lower resolutions that needs to be accounted for. Also, clock needs to be ~300 MHz at present, but think can fix that with tweaks to driver.

Update: See a few posts down how now having the jpg image displayed in real time on EVE2 display

Comments

Sign In or Register to comment.