class Camera - camera module¶
Usage:
from ezblock import Camera
cam = Camera() # create an camera object
cam.start() # start camera streaming
cam.stop() # stop camera streaming
Constructors¶
class ezblock.Camera(res=1, fps=12, port=9000, rotation=0)
Create an Camera object. This allows you to then control the camera!
resresolution. 0: 320x240, 1: 640x480, 2: 1024x576, 3: 1280x800, default to 1fpsframe per second. default to 12portStreaming port, default to 9000 for ezblock remote panelrotationrotation of the video.
Methods¶
start- start video streaming value.
Camera().start()
stop- stop video streaming`
Camera().stop()