5 Configuring System
ED-HMI2120-101C User Manual 5-43
5.14 Configuring Camera
Before using the camera, you need configure it to enable the camera.
Steps:
1. Execute the following command to open the /boot/config.txt file.
sudo nano
/boot/config.txt
2. Add the following content at the end of the /boot/config.txt file.
dtoverlay=imx219
3. Use Ctrl+X to save the file and exit edit mode.
4. Execute the following command to reboot the system, which make the camera configuration
take effect.
sudo reboot
Other Configuration Commands
Commands Description
libcamera-hello Check camera
libcamera-jpeg -o jpg1 Take a photo, where jpg1 is a custom photo name
libcamera-vid -t 10000 -o video1
Record video
10000 indicates the recording time, the unit is ms.
video1 indicates the name of the recorded video, which
can be customized.
vlc video1
Play the recorded video, where video1 is the name of the
recorded video.