硬件连接:
1. 软排线,90度垂直连接器,HDMI口旁边那个。连接时触点一侧朝向HDMI接口。
2. 使用前撕掉镜头上的保护膜
3. 裸板,注意ESD伤害,谨防静电!
软件使用:
1. RPi固件和raspi-config已经为了摄像头更新,请执行一次apt-get update; apt-get upgrade;
2. raspi-config中选择camera,启动RPi固件中的摄像头驱动,然后重启
3. 使用命令行程序raspivid和raspistill操作摄像头,捕捉视频片段或图像
4. 捕捉到的视频片段需要用mplayer播放
如何将摄像头的数据通过网络直播播发出去:
通过nc命令(ncat - Concatenate and redirect sockets)将摄像头的输入数据,直接重定向到网络端口实现输出.
How to enable camera support in Raspbian
Boot up the Pi and log in. The default username is pi, and the default password is raspberry. (Note: if you have changed these from the default then you will need to supply your own user/password details).
Run the following commands in a terminal to upgrade the Raspberry Pi firmware to the latest version:
sudo apt-get update
Click to enlarge
sudo apt-get upgrade
Click to enlarge
Access the configuration settings for the Pi by running the following command:
sudo raspi-config
Navigate to “camera” and select “enable”.