def read(self):
		""" Read a single frame from the IR camera. """

		if not self.frame:
			self.record()

		# Grab a raw frame from the camera
		frame_data = self.frame.get_frame()

		# Convert the raw frame_date to a numpy array
		img = (numpy.frombuffer(frame_data, numpy.uint8))

		# Convert the numpy array to a proper grayscale image array
		img_bgr = cvtColor(img, COLOR_GRAY2BGR)

		# Convert the grayscale image array into a proper RGB style numpy array
		img2 = (numpy.frombuffer(img_bgr, numpy.uint8).reshape([352, 352, 3]))

		# Return a single frame of video
		return 0, img2
 Read a single frame from the IR camera. 
howdy/src/recorders/pyv4l2_reader.py