nuttx-apps/examples/camera
SPRESENSE d8757a6bcf examples/camera: Fix some issues and update license
Fix some issues and update license to apache.
- Fails to open the video driver.
- Change format from YUV422 to RGB565,
  and add captured image output to LCD.
- An application cannot exit by infinite loop.
- In video-only mode without capturing still images,
  do not allocate capture memory for still images to
  reduce the memory usage.
2021-09-16 10:45:36 +02:00
..
camera_bkgd.c examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00
camera_bkgd.h examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00
camera_fileutil.c examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00
camera_fileutil.h examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00
camera_main.c examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00
Kconfig examples: camera: add EXAMPLES_CAMERA_OUTPUT_LCD 2021-09-15 14:47:45 +08:00
Make.defs examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00
Makefile examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00
README.md examples/camera: Fix some issues and update license 2021-09-16 10:45:36 +02:00

Examples / camera Camera Snapshot

This sample is implemented as camera command on NuttX Shell. The synopsys of the command is as below.

nsh> camera ([-jpg]) ([capture num])

  -jpg        : this option is set for storing JPEG file into a strage.
              : If this option isn't set capturing raw RGB565 data in a file.
              : raw RGB565 is default.

  capture num : this option instructs number of taking pictures.
              : 10 is default.

Storage will be selected automatically based on the available storage option.

Execution example:

nsh> camera
nximage_listener: Connected
nximage_initialize: Screen resolution (320,240)
Take 10 pictures as RGB file in /mnt/sd0 after 5 seconds.
After finishing taking pictures, this app will be finished after 10 seconds.
Expier time is pasted.
Start capturing...
FILENAME:/mnt/sd0/VIDEO001.RGB
FILENAME:/mnt/sd0/VIDEO002.RGB
FILENAME:/mnt/sd0/VIDEO003.RGB
FILENAME:/mnt/sd0/VIDEO004.RGB
FILENAME:/mnt/sd0/VIDEO005.RGB
FILENAME:/mnt/sd0/VIDEO006.RGB
FILENAME:/mnt/sd0/VIDEO007.RGB
FILENAME:/mnt/sd0/VIDEO008.RGB
FILENAME:/mnt/sd0/VIDEO009.RGB
FILENAME:/mnt/sd0/VIDEO010.RGB
Finished capturing...
Expier time is pasted.
nximage_listener: Lost server connection: 117