          """ Load a requested frame from video """
          frame = os.path.splitext(filename)[0]
          logger.trace("Loading video frame: '%s'", frame)
          frame_no = int(frame[frame.rfind("_") + 1:]) - 1
          self.vid_reader.set_image_index(frame_no)
          image = self.vid_reader.get_next_data()[:, :, ::-1]
          return image
  
      @staticmethod
      def save_image(output_folder, filename, image):
          """ Save an image """
 
</s> remove             retval = imageio.get_reader(self.folder)
 </s> add             retval = cv2.VideoCapture(self.folder)  # pylint: disable=no-member
            # TODO ImageIO single frame seek seems slow. Look into this
            # retval = imageio.get_reader(self.folder) </s> remove import imageio
 </s> add # TODO imageio single frame seek seems slow. Look into this
# import imageio
        self.vid_reader.set(cv2.CAP_PROP_POS_FRAMES, frame_no)  # pylint: disable=no-member
        _, image = self.vid_reader.read()
        # TODO imageio single frame seek seems slow. Look into this
        # self.vid_reader.set_image_index(frame_no)
        # image = self.vid_reader.get_next_data()[:, :, ::-1]
          """ Load a requested frame from video """
          frame = os.path.splitext(filename)[0]
          logger.trace("Loading video frame: '%s'", frame)
          frame_no = int(frame[frame.rfind("_") + 1:]) - 1
        self.vid_reader.set(cv2.CAP_PROP_POS_FRAMES, frame_no)  # pylint: disable=no-member
        _, image = self.vid_reader.read()
        # TODO imageio single frame seek seems slow. Look into this
        # self.vid_reader.set_image_index(frame_no)
        # image = self.vid_reader.get_next_data()[:, :, ::-1]
        self.vid_reader.set(cv2.CAP_PROP_POS_FRAMES, frame_no)  # pylint: disable=no-member
        _, image = self.vid_reader.read()
        # TODO imageio single frame seek seems slow. Look into this
        # self.vid_reader.set_image_index(frame_no)
        # image = self.vid_reader.get_next_data()[:, :, ::-1]
          return image
  
      @staticmethod
      def save_image(output_folder, filename, image):
          """ Save an image """
keep keep keep keep replace replace keep keep keep keep keep
 Revert manual tool video reading to cv2 
tools/lib_alignments/media.py