You are on page 1of 1

How to take a picture // to stream live on

vlc raspivid -o - -t 0 -n | cvlc -vvv stream:///dev/stdin --sout


'#rtp{sdp=rtsp://:8554/}' :demux=h264
1) first update and then sudo apt-get install python3-picamera
2)now write this programme in python3 new file..
import picamera
print("Camera is ready to take a picture")
with picamera.PiCamera() as camera:
camera.resolution= (1280,720)
camera.capture("/home/pi/Desktop/camera/image.jpg")
print("Picture is taken")

You might also like