#NEWLINE# def __init__( self , src = 0 , usePiCamera = False , resolution = ( 320 , 240 ) , framerate = 32 ) : #NEWLINE# #INDENT# if usePiCamera : #NEWLINE# #INDENT# from . pivideostream import PiVideoStream #NEWLINE# self . stream = PiVideoStream ( resolution = resolution , framerate = framerate ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . stream = WebcamVideoStream ( src = src )