如何修复 raspistill ERROR: the system should be configured for the legacy camera stack
问题:
尝试使用 raspistill 捕获图像时,你看到以下错误消息
raspistill_error.txt
ERROR: the system should be configured for the legacy camera stack并且没有生成图像
解决方案 1(推荐):使用 libcamera
最新版本的 Raspbian 使用 libcamera 而不是 broadcom 旧版摄像头 API。你可以使用 libcamera-still 类似于 raspistill 捕获图像:
enable_legacy_camera.sh
libcamera-still -o test.jpg解决方案 2:启用旧版摄像头 API
如果你绝对需要 raspistill 工作,你仍然可以使用 rpi-config 启用旧版摄像头 API:
sudo_raspi_config.sh
sudo raspi-config转到:
- 3 Interface Config
- I1 Legacy Camera
并选择 Yes 启用旧版摄像头 API。
Check out similar posts by category:
Audio/Video, Raspberry Pi
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow