Ref: https://pythonprogramming.net/camera-module-raspberry-pi-tutorials/?completed=/terminal-navigation-raspberry-pi-tutorials/
raspbi-config
install python picamera
camera.py
-------------------------------------------------------------------------------------
#To record video or stills using pi camera
import picamera
import time
camera = picamera.PiCamera()
#To invert image
camera.vflip = True
#To record stills
camera.capture('example.jpg')
#To record vide0
#camera.start_recording('examplevid.h264')
#time.sleep(5)
#camera.stop_recording
---------------------------------------------------------------------------------------
No comments:
Post a Comment