同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
For details about the development board, compilation, burning, and image running process, see Getting Started with Hi3518. The compilation results include that of the camera_sample program.
The sample code for camera development is stored in applications/sample/camera/media/camera_sample.cpp.
NOTICE: You should insert a TF card (maximum capacity: 128 GB) for photographing and video recording functions. After the system is started, the TF card is automatically mounted to the /sdcard directory. If the TF card is inserted after the system is started, you have to manually mount the TF card. To view the photos and videos in the TF card, copy the content to a computer. The preview function does not require a TF card.
Start the camera_sample program.
Figure 1 Starting camera_sample
The control commands are displayed as shown in the preceding figure. Press S to stop the current operation (including video recording and preview), and press Q to exit the program.
Press 1 to take a photo in JPG format. The photo is saved in the /sdcard directory and named Capture*.
Figure 2 Serial port logs displayed after the photographing command is executed
To view the saved file, exit the program and enter the file system. To start the program again, return to Step 1.
Press 2 to start recording. The video file is in MP4 format and saved in the /sdcard directory with the name Record*. Press S to stop recording.
Figure 4 Serial port logs displayed after the recording command is executed
Press Q to exit.
Figure 5 Serial port logs displayed after the exit command is executed
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。