nclt2ros/transformer/image_data.py
def read_image(self, cam_nr=2):
        """reads images from a cam_nr directory

        :param cam_nr: number between 0-5
        """

        files = sorted(os.listdir(self.images_dir + 'Cam' + str(cam_nr)))
        os.chdir(self.images_dir + 'Cam' + str(cam_nr))
        for f in files:
            im = pilImage.open(f)
            im_array = np.array(im)
            im_array = np.rot90(im_array, -1)
            im = pilImage.fromarray(im_array)
            im.show()
            raw_input("Please press enter...")
reads images from a cam_nr directory

        :param cam_nr: number between 0-5
        
reads images from a cam_nr directory
reads images from a cam_nr directory
def read_image(self, cam_nr=2):
        files = sorted(os.listdir(self.images_dir + 'Cam' + str(cam_nr)))
        os.chdir(self.images_dir + 'Cam' + str(cam_nr))
        for f in files:
            im = pilImage.open(f)
            im_array = np.array(im)
            im_array = np.rot90(im_array, -1)
            im = pilImage.fromarray(im_array)
            im.show()
            raw_input("Please press enter...")
def read_image ( self , cam_nr = 2 ) : files = sorted ( os . listdir ( self . images_dir + 'Cam' + str ( cam_nr ) ) ) os . chdir ( self . images_dir + 'Cam' + str ( cam_nr ) ) for f in files : im = pilImage . open ( f ) im_array = np . array ( im ) im_array = np . rot90 ( im_array , - 1 ) im = pilImage . fromarray ( im_array ) im . show ( ) raw_input ( "Please press enter..." )
reads images from a cam_nr directory
reads images from a cam_nr directory
"""reads images from a cam_nr directory

        :param cam_nr: number between 0-5
        """
self
cam_nr
number between 0-5
number between 0 - 5