(frame, pupthreshold, glintthreshold, face_cascade, \
	eye_cascade, facedetect, eyedetect, minfacesize, Lexpect, Rexpect, \
	maxpupdist, maxpupsize, glintdetect, pupsizemode)
return LR
Gets a new frame from the input, and processes that through the
	standard pipeline of optional face detection, eye detection, and
	pupil and optional glint detection.
	
	Returns

	t, [L, R]		-	t is a timestamp associated with the sample.
					[L, R] is a NumPy array that contains the
					following:
					L = numpy.array([px, py, ps, gx, gy])
					R = numpy.array([px, py, ps, gx, gy])
					px is an integer indicating the pupil's
					likely horizontal position within the image.
					py is an integer indicating the pupil's
					likely vertical position within the image.
					ps is an integer indicating the pupil's
					size in pixels. The size reflects the width
					of the rect in which the pupil falls when
					mode=='diameter', or the total amount of
					thresholded pixels when mode'surface'.
					gx is an integer indicating the pupil's
					likely horizontal position within the image.
					gy is an integer indicating the pupil's
					likely vertical position within the image.
					All of these values can be None if they
					could not be obtained.
Gets a new frame from the input, and processes that through the
	standard pipeline of optional face detection, eye detection, and
	pupil and optional glint detection.
	
	Returns
Gets a new frame from the input and processes that through the standard pipeline of optional face detection eye detection and pupil and optional glint detection . Returns
def _get_sample(frame, pupthreshold, glintthreshold, face_cascade, \
	eye_cascade, facedetect, eyedetect, minfacesize, Lexpect, Rexpect, \
	maxpupdist, maxpupsize, glintdetect, pupsizemode):
	
	"""Gets a new frame from the input, and processes that through the
	standard pipeline of optional face detection, eye detection, and
	pupil and optional glint detection.
	
	Returns

	t, [L, R]		-	t is a timestamp associated with the sample.
					[L, R] is a NumPy array that contains the
					following:
					L = numpy.array([px, py, ps, gx, gy])
					R = numpy.array([px, py, ps, gx, gy])
					px is an integer indicating the pupil's
					likely horizontal position within the image.
					py is an integer indicating the pupil's
					likely vertical position within the image.
					ps is an integer indicating the pupil's
					size in pixels. The size reflects the width
					of the rect in which the pupil falls when
					mode=='diameter', or the total amount of
					thresholded pixels when mode'surface'.
					gx is an integer indicating the pupil's
					likely horizontal position within the image.
					gy is an integer indicating the pupil's
					likely vertical position within the image.
					All of these values can be None if they
					could not be obtained.
	"""
	
	# Optionally do face detection.
	if facedetect:
		success, frame = _crop_face(frame, face_cascade, minfacesize)
	# Optionally detect the eye(s) in a frame
	if eyedetect:
		success, eyes = _crop_eyes(frame, eye_cascade, Lexpect=Lexpect, \
			Rexpect=Rexpect, maxdist=maxpupdist, maxsize=maxpupsize)
	else:
		eyes = [frame, None]
	# Detect the pupils (and optionally the glint) in the eyes.
	LR = _find_pupils(eyes[0], eyes[1], pupthreshold=pupthreshold, \
		glintthreshold=glintthreshold, glint=glintdetect, mode=pupsizemode)
	
	return LR
def _get_sample ( frame , pupthreshold , glintthreshold , face_cascade , eye_cascade , facedetect , eyedetect , minfacesize , Lexpect , Rexpect , maxpupdist , maxpupsize , glintdetect , pupsizemode ) : # Optionally do face detection. if facedetect : success , frame = _crop_face ( frame , face_cascade , minfacesize ) # Optionally detect the eye(s) in a frame if eyedetect : success , eyes = _crop_eyes ( frame , eye_cascade , Lexpect = Lexpect , Rexpect = Rexpect , maxdist = maxpupdist , maxsize = maxpupsize ) else : eyes = [ frame , None ] # Detect the pupils (and optionally the glint) in the eyes. LR = _find_pupils ( eyes [ 0 ] , eyes [ 1 ] , pupthreshold = pupthreshold , glintthreshold = glintthreshold , glint = glintdetect , mode = pupsizemode ) return LR