nuttx-apps/examples/camera
2020-07-25 01:01:51 -07:00
..
camera_fileutil.c Examples: camera: add a simple camera snapshot example 2020-07-01 07:53:25 +09:00
camera_fileutil.h Examples: camera: add a simple camera snapshot example 2020-07-01 07:53:25 +09:00
camera_main.c Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07:00
Kconfig Examples: camera: add a simple camera snapshot example 2020-07-01 07:53:25 +09:00
Make.defs Examples: camera: add a simple camera snapshot example 2020-07-01 07:53:25 +09:00
Makefile build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs 2020-07-09 15:17:37 -03:00
README.md Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07: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 YUV422 data in a file.
              : raw YUV422 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 YUV file in /mnt/sd0 after 5000 mili-seconds.
After finishing taking pictures, this app will be finished after 10000 mili-seconds.
Expier time is pasted.
Start capturing...
FILENAME:/mnt/sd0/VIDEO001.YUV
FILENAME:/mnt/sd0/VIDEO002.YUV
FILENAME:/mnt/sd0/VIDEO003.YUV
FILENAME:/mnt/sd0/VIDEO004.YUV
FILENAME:/mnt/sd0/VIDEO005.YUV
FILENAME:/mnt/sd0/VIDEO006.YUV
FILENAME:/mnt/sd0/VIDEO007.YUV
FILENAME:/mnt/sd0/VIDEO008.YUV
FILENAME:/mnt/sd0/VIDEO009.YUV
FILENAME:/mnt/sd0/VIDEO010.YUV
Finished capturing...
Expier time is pasted.
nximage_listener: Lost server connection: 117