'This tries to restart the camera thread'

def restart(self):

    self._thread.stop()
    self._thread = AVTCameraThread(self)
    self._thread.daemon = True
    self._buffer = deque(maxlen=self._buffersize)
    self._thread.start()
