今天我们通过几个案例来看看如何利用树莓派上的CSI接口连接摄像头做出一些有创意的项目来。
1 交互式LED镜子
它是用树莓派开发的一款可以交互的LED镜子(有很多LED点阵显示构成),通过一个小的摄像头捕捉人的动作,并将这些动作通过LED显示出来。
关于这款镜子的简单介绍(英文的,试着阅读一下):
LED mirror is an interactive led installation made by Jeroen van Goor and Johan ten Broeke of Fullscreen.nl. It currently runs a few different interactive applications. For instance a loop recording app, a 'painting with highlights' app and an app displaying silhouette of spectators using a difference matte. (showcased in the video on the home page). The screen size is 122cm x 244cm and the leds have 38mm spacing. The design is modular and can scale up to 16 times this size and still be controlled with a single Raspberry Pi. That would make a screen size of approximately 50 square meters, wow!
The panel thickness is about 50mm so configurations can be integrated into walls, doors or fixed furniture elements. The horizontal spacing the of led grid can be varied to compensate for narrow viewing angles when used in architectural projects. The slim design of the led modules allows the lights to be applied on curved surfaces.
All hard- and software design is done by Fullscreen.nl and makes use of a Raspberry Pi with a Raspicam camera module
这个项目的源代码在Github上可以获取https://github.com/fullscreennl/led-mirror
2 即拍即印热宝丽来相机
这是一个在参加我们Hackaday大赛的项目,项目的详情介绍:https://hackaday.io/project/7176-polapi。
拍摄打印出来的图片
制作的原型
硬件组成
3 爬在绳子上行走的空中摄像机
Skycam是一个小小的机器人,可以在绳子或线上移动,也可以转弯,它有一个可以平移、倾斜的小相机。 整个过程可以通过手机或任何浏览器进行控制,当然也可以直播视频。
这个小玩意是用3D打印机制作。
详细的制作过程可以参照项目网址:https://makezine.com/projects/3d-printed-raspberry-pi-skycam/
4 有网络摄像头的机器人
这个项目是将摄像头添加到遥控汽车或机器人,这样就可以看到它的前进方向,并使用Wi-Fi设备观看视频。
遥控小车上加装WiFi摄像头
项目的软硬件结构
主要的部件
项目网址:https://maker.pro/raspberry-pi/projects/raspberry-pi-webcam-robot/
另外几个与拍摄相关的项目:
点拍照相机:https://contractorwolf.com/raspberry-pi-point-shoot-camera/
如何通过OpenCV和两个伺服电机实现能够平移、倾斜的面部跟踪:https://www.instructables.com/id/Pan-Tilt-face-tracking-with-the-raspberry-pi/
用树莓派和PIR传感器做的智能家庭监控系统:http://www.ijcsit.com/docs/Volume%205/vol5issue06/ijcsit2014050648.pdf
用树莓派实现家庭监控(视频以及温湿度):https://openhomeautomation.net/monitor-your-home-raspberry-pi-b/
通过Python编程和图像处理软件实现斑点检测(用于智能车指向): https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/robot/blob_detection/
如何通过树莓派和摄像头实现人脸识别:https://www.open-electronics.org/raspberry-pi-and-the-camera-pi-module-face-recognition-tutorial/
领取专属 10元无门槛券
私享最新 技术干货