#NEWLINE# def __init__( self , fn , scaleFactor = 1.3 , minNeighbors = 4 , minSize = ( 75 , 75 ) , flags = cv2 . CASCADE_SCALE_IMAGE , persist = True , smooth = 10.0 , return_one = True ) : #NEWLINE# #INDENT# super ( cascadeDetection , self ) . __init__ ( ) #NEWLINE# self . add ( 'frame_in' , Array ( iotype = 'in' ) ) #NEWLINE# self . add ( 'detected' , Array ( [ [ 0 , 0 , 2 , 2 ] ] , iotype = 'out' ) ) #NEWLINE# self . scaleFactor = scaleFactor #NEWLINE# self . persist = persist #NEWLINE# self . minNeighbors = minNeighbors #NEWLINE# self . minSize = minSize #NEWLINE# self . return_one = self #NEWLINE# self . flags = flags #NEWLINE# self . smooth = smooth #NEWLINE# self . cascade = cv2 . CascadeClassifier ( fn ) #NEWLINE# self . find = True #NEWLINE# self . last_center = [ 0 , 0 ]