def __init__(self,filename=(sys.argv[1] if len(sys.argv) > 1 else None)): if (filename is None): raise Exception("Filename unset") self.camera = VideoStream(filename=filename) #first camera by default self.bpms = [] #Containerized analysis of recieved image frames (an openMDAO assembly) #is defined next. #This assembly is designed to handle all image & signal analysis, #such as face detection, forehead isolation, time series collection, #heart-beat detection, etc. #Basically, everything that isn't communication #to the camera device or part of the GUI self.processor = findFaceGetPulse(bpm_limits = [50,160], data_spike_limit = 2500., face_detector_smoothness = 10.) while (self.main_loop()): sys.stderr.write(". ") sys.stderr.write("\n\n")