|
The Raspberry Pi will automatically run the program webServer.py when it is turned on. The webServer.py program will occupy the camera. If you run the program related to the camera again, the program will report an error. When you need to run the program manually, you need to stop the automatic running program.
1. Enter in the Raspberry Pi command line:
sudo killall python3 (stop autorun program)
2. Enter the Raspberry Pi camera command: "raspistill -t 1000 -o image.jpg", under normal circumstances, the Raspberry Pi will take a photo named image.jpg, which can be viewed by entering "ls". If an error is reported, please check whether the camera is installed correctly until the command can run successfully. Or the camera is damaged.
Note: When plugging and unplugging the camera cable, the Raspberry Pi needs to be powered off, otherwise the camera may be damaged. (The camera is installed on the CSI interface in the middle of the Raspberry Pi.) |
|