简体   繁体   English

如何删除相机预览到覆盆子pi

[英]How remove camera preview to raspberry pi

I installed the SimpleCv on my raspberryPi and the driver to use the camera board with it (uv4l driver) and now I'd like to play with it. 我在我的raspberryPi和驱动程序上安装了SimpleCv以使用相机板(uv4l驱动程序),现在我想玩它。 When I type on simpleCV shell "Camera(0).getImage().save("foo.jpg") " , on the screen appears the camera preview and I am not able to type other command because this preview covers the shell What Have I to do to remove the camera preview ? 当我在simpleCV shell上键入“Camera(0).getImage()。save(”foo.jpg“)”时,屏幕上会出现相机预览,我无法输入其他命令,因为此预览涵盖了shell我要删除相机预览? Thanks a lot ! 非常感谢 ! Filippo 菲利波

Try the nopreview option 尝试nopreview选项

pkill uv4l
uv4l --driver raspicam --auto-video_nr --encoding yuv420 --width 320 --height 240 --nopreview
export LD_PRELOAD=/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so

Hope that helps 希望有所帮助

The RasPi camera is more integrated than a standard plug-play webcamera, and as a result, I haven't had much sucess using simpleCV's camera functions. RasPi相机比标准的即插即用相机更加集成,因此,使用simpleCV的相机功能,我没有太多成功。 Instead I use a simple python script that I call prior to running my simpleCV analysis that grabs an image and saves it to the disk 相反,我使用一个简单的python脚本,我在运行simpleCV分析之前调用该脚本来抓取图像并将其保存到磁盘

import subprocess

imgName = '/home/pi/blahblah.jpg'

def takePicture(imgName):
    subprocess.call('raspistill -n -t 1 -o %s' &imgName, shell = True)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM