in frame-extraction/fextractor.py [0:0]
def run(self):
print("Starting camera {}_{}".format(self.cameraSettings.area, self.cameraSettings.subarea))
while (True):
try:
self.pushFrame()
except Exception as e:
print("Error: {}.".format(e))
time.sleep(self.cameraSettings.frameCaptureThreshold)
print("Closing camera...")