(self, event, framequeue)
Continuously tries to get new frames using self._get_frame, and
		puts the obtained frames in the framequeue.
Continuously tries to get new frames using self._get_frame, and
		puts the obtained frames in the framequeue.
Continuously tries to get new frames using self . _get_frame and puts the obtained frames in the framequeue .
def _frame_obtainer(self, event, framequeue):
		
		"""Continuously tries to get new frames using self._get_frame, and
		puts the obtained frames in the framequeue.
		"""
		
		# Continuously run.
		while event.is_set():
			
			# Only try to get frames if a connection is established.
			if self._connected:
				
				# Obtain a new frame, and an associated timestamp.
				# Make sure to lock the source while obtaining the
				# frame, to prevent simultaneous access. (This
				# shouldn't actually happen for the moment, but might
				# become a feature in the future.)
				self._sourcelock.acquire(True)
				success, frame = self._get_frame()
				t = time.time()
				self._sourcelock.release()
				
				# Put the obtained timestamp and frame in the queue.
				framequeue.put([t, frame])
			
			# If the tracker is not connected, wait for a bit to avoid
			# wasting processing resources on continuously checking
			# whether the tracker is already connected.
			else:
				# Pause for 10 milliseconds.
				time.sleep(0.01)
def _frame_obtainer ( self , event , framequeue ) : # Continuously run. while event . is_set ( ) : # Only try to get frames if a connection is established. if self . _connected : # Obtain a new frame, and an associated timestamp. # Make sure to lock the source while obtaining the # frame, to prevent simultaneous access. (This # shouldn't actually happen for the moment, but might # become a feature in the future.) self . _sourcelock . acquire ( True ) success , frame = self . _get_frame ( ) t = time . time ( ) self . _sourcelock . release ( ) # Put the obtained timestamp and frame in the queue. framequeue . put ( [ t , frame ] ) # If the tracker is not connected, wait for a bit to avoid # wasting processing resources on continuously checking # whether the tracker is already connected. else : # Pause for 10 milliseconds. time . sleep ( 0.01 )