| Updated: October 28, 2024 |
The Camera example application shows you how to work with the Camera library, by allowing you to use cameras connected to your target board.
You must run the application using a configuration that includes cameras. This is useful to test whether your connected cameras work, and to understand their settings and how to use their various features.

# slay adas_exampleThe application should stop running and you should see a blank display.
# camera_example
# camera_example
Select which example you want to run:
1) Camera viewfinder
2) Record video to a file
3) Camera stream
4) Multiple camera video
5) EGL viewfinder
6) Event example
x) Exit the example
1
Select which of the following 4 cameras you want to use:
1) CAMERA_UNIT_1
2) CAMERA_UNIT_2
3) CAMERA_UNIT_3
4) CAMERA_UNIT_4
Enter Choice:
1
Select which of the following VF modes you want to use:
2) CAMERA_VFMODE_VIDEO
Enter Choice:
2
Do you want to modify the viewfinder configuration (y/n)?
n
Do you want to modify image attributes (y/n)?
n
Choose from the following options:
i) Modify image attributes
l) Lock 3A
v) Modify viewfinder configuration
x) Exit the example
x
# camera_example
Select which example you want to run:
1) Camera viewfinder
2) Record video to a file
3) Camera stream
4) Multiple camera video
5) EGL viewfinder
6) Event example
x) Exit the example
4
How many cameras do you want to run (1-4)?
2
Configuration for camera #1:
Select which of the following 4 cameras you want to use:
1) CAMERA_UNIT_1
2) CAMERA_UNIT_2
3) CAMERA_UNIT_3
4) CAMERA_UNIT_4
Enter Choice:
1
Do you want to modify viewfinder configuration (y/n)?
n
Configuration for camera #2:
Select which of the following 4 cameras you want to use:
1) CAMERA_UNIT_1
2) CAMERA_UNIT_2
3) CAMERA_UNIT_3
4) CAMERA_UNIT_4
Enter Choice:
2
Do you want to modify viewfinder configuration (y/n)?
n
Choose from the following options (where # is camera number):
c#) Change video configuration of camera #
e) Start/Stop synchronized encoding of video
k#) Force a Key Frame on camera #
m) Modify video group entries
p#) Modify encoder parameters of camera #
r) Start/Stop synchronized recording of video
v#) Modify viewfinder configuration of camera #
x) Exit the example
x
# camera_example
Select which example you want to run:
1) Camera viewfinder
2) Record video to a file
3) Camera stream
4) Multiple camera video
5) EGL viewfinder
6) Event example
x) Exit the example
1
Select which of the following 4 cameras you want to use:
1) CAMERA_UNIT_1
2) CAMERA_UNIT_2
3) CAMERA_UNIT_3
4) CAMERA_UNIT_4
1
Select which of the following VF modes you want to use:
2) CAMERA_VFMODE_VIDEO
2
Do you want to modify the viewfinder configuration (y/n)?
n
Do you want to modify image attributes (y/n)?
n
Choose from the following options:
i) Modify image attributes
l) Lock 3A
v) Modify viewfinder configuration
w) Modify whitebalance
x) Exit the example
w
Select the desired WB mode:
1) Default
2) Auto
3) Manual (RB Gain)
3
Current value of WB red gain is 128. Do you want to change it (y/n)?
y
Select the desired WB red value within range of 1 to 1023
1023
Current value of WB blue gain is 128. Do you want to change it (y/n)?
y
Select the desired WB blue value within range of 1 to 1023
1
Choose from the following options:
i) Modify image attributes
l) Lock 3A
v) Modify viewfinder configuration
w) Modify whitebalance
x) Exit the example
x
Select which example you want to run:
1) Camera viewfinder
2) Record video to a file
3) Camera stream
4) Multiple camera video
5) EGL viewfinder
6) Event example
x) Exit the example
x
On your host computer, the source code is provided for the Camera example application. You can build the source code and deploy the resulting binary onto your target.