Video - Capture JPEG save to SD Card
- AmebaPro2 [ AMB82 MINI ] x 1
- SD card x 1
In this example, we will be using Ameba Pro2 development board to capture a JPEG image from the on-board camera sensor (JXF37) and save it on the SD card.
The following examples shows different use cases for saving JPEG image to SD card.
Open one of the CaptureJPEG examples in “File” -> “Example” -> “AmebaVideo” -> “CaptureJPEG” -> “SDCardSaveJPEG”.
Since the camera video output will be used, ensure that the “Video ISP Bin” option in “Tools” is set to enabled.
Compile the code and upload it to Ameba. After pressing the Reset button, the Ameba Pro 2 board will start taking snapshot and save to SD card.
The SDCardSaveJPEG example will take a single snapshot every reset and save it on the SD card with the filename “image.jpg”.
The SDCardSaveJPEGTimelapse example will take a snapshot every second and save them on the SD card with the filename ”imageX.jpg”, where X is a number incrementing with each image.
Disconnect power from the Ameba Pro 2 board, remove the SD card and connect it to a computer to view the contents. Depending on which example code was uploaded, there will be either a single image or multiple images saved on the SD card.