2020-07-23 15:19:35 +02:00
|
|
|
# Examples / `camera` Camera Snapshot
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2022-01-05 16:34:05 +01:00
|
|
|
This sample is implemented as `camera` command on NuttX Shell. The synopsis of
|
2020-07-23 15:19:35 +02:00
|
|
|
the command is as below.
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
```
|
|
|
|
nsh> camera ([-jpg]) ([capture num])
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
-jpg : this option is set for storing JPEG file into a strage.
|
2021-09-16 04:03:33 +02:00
|
|
|
: If this option isn't set capturing raw RGB565 data in a file.
|
|
|
|
: raw RGB565 is default.
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
capture num : this option instructs number of taking pictures.
|
|
|
|
: 10 is default.
|
|
|
|
```
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
Storage will be selected automatically based on the available storage option.
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
Execution example:
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2020-07-23 15:19:35 +02:00
|
|
|
```
|
|
|
|
nsh> camera
|
|
|
|
nximage_listener: Connected
|
|
|
|
nximage_initialize: Screen resolution (320,240)
|
2021-09-16 04:03:33 +02:00
|
|
|
Take 10 pictures as RGB file in /mnt/sd0 after 5 seconds.
|
|
|
|
After finishing taking pictures, this app will be finished after 10 seconds.
|
2020-07-23 15:19:35 +02:00
|
|
|
Expier time is pasted.
|
|
|
|
Start capturing...
|
2021-09-16 04:03:33 +02:00
|
|
|
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
|
2020-07-23 15:19:35 +02:00
|
|
|
Finished capturing...
|
|
|
|
Expier time is pasted.
|
|
|
|
nximage_listener: Lost server connection: 117
|
|
|
|
```
|