nuttx-apps/examples/camera
Xiang Xiao a29d9ea9da fsutils/examples: Include unistd.h explicitly
to get the prototypes or macros are defined in it

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
..
camera_bkgd.c examples/camera: Fix the style issue 2022-12-08 12:38:55 +01: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: Add FAR for all pointer 2022-12-08 12:38:55 +01:00
camera_fileutil.h examples/camera: Add FAR for all pointer 2022-12-08 12:38:55 +01:00
camera_main.c fsutils/examples: Include unistd.h explicitly 2023-02-05 08:46:59 +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 Typo fixes. 2022-01-06 10:30:41 +08:00

Examples / camera Camera Snapshot

This sample is implemented as camera command on NuttX Shell. The synopsis 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