How remove camera preview to raspberry pi

后端 未结 2 1302
执念已碎
执念已碎 2021-01-27 11:46

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. When I type on simpleCV shell \"Camer

相关标签:
2条回答
  • 2021-01-27 11:49

    Try the nopreview option

    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

    0 讨论(0)
  • 2021-01-27 11:59

    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. 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

    import subprocess
    
    imgName = '/home/pi/blahblah.jpg'
    
    def takePicture(imgName):
        subprocess.call('raspistill -n -t 1 -o %s' &imgName, shell = True)
    
    0 讨论(0)
提交回复
热议问题