![](/media/cache/group/renesas_logomark_l.jpg.50x50_q85.jpg)
Camera in sample for GR-PEACH. This sample works on GR-LYCHEE besides GR-PEACH.
You are viewing an older revision! See the latest version
Homepage
Video Links on how to setup and run Camera_in Application:¶
Your video will be live at: https://youtu.be/XNH8jLhjeS4
https://youtu.be/loTD846FEL0 Part1 of 1
Camera in sample for GR-PEACH. While USER_BUTTON0 is pressed, it will save the image to the USB memory.
Please refer to following link about Audio/Camera Shield.
https://developer.mbed.org/teams/Renesas/wiki/Audio_Camera-shield
- Reference information
You can select the function in the following.
main.cpp
/**** User Selection *********/ #define VIDEO_INPUT_METHOD (VIDEO_CVBS) /* Select VIDEO_CVBS or VIDEO_CMOS_CAMERA */ #define VIDEO_INPUT_FORMAT (VIDEO_RGB888) /* Select VIDEO_YCBCR422 or VIDEO_RGB888 or VIDEO_RGB565 */ #define USE_VIDEO_CH (0) /* Select 0 or 1 If selecting VIDEO_CMOS_CAMERA, should be 0.) */ #define VIDEO_PAL (0) /* Select 0(NTSC) or 1(PAL) If selecting VIDEO_CVBS, this parameter is not referenced.) */ /*****************************/
If you set the VIDEO_RGB888 to VIDEO_INPUT_FORMAT, the image is saved in the bitmap file.
In other cases, the image is saved in the binary file (RAW data).
If you increase the following values, please change the "sct file" and make the size of the NC_BSS section larger.
(Reference information : [other]How to change sct file in mbed online compiler)
#define PIXEL_HW (320u) /* QVGA */ #define PIXEL_VW (240u) /* QVGA */
"sct file" change example.
MBRZA1H.sct
===Bfore=== RW_DATA_NC 0x60900000 0x00100000 { * (NC_DATA) } ; Application RW data Non cached area ZI_DATA_NC +0 { * (NC_BSS) } ; Application ZI data Non cached area ===After=== RW_DATA_NC 0x60800000 0x00100000 { * (NC_DATA) } ; Application RW data Non cached area ZI_DATA_NC +0 { * (NC_BSS) } ; Application ZI data Non cached area
If you use the GR-PEACH's USB connector (USB0), please close GR-PEACH's JP3.
You can use the Audio/Camera Shield's USB connector (USB1) by the procedure below.
(define 0:USB0、define 1:USB1)
USBHost\USBHost\TARGET_RENESAS\TARGET_RZ_A1H\usb_host_setting.h
#define USB_HOST_CH 0 ↓ #define USB_HOST_CH 1
If you use the Audio/Camera Shield's USB connector (USB1), please close Audio/Camera Shield's JP1.