(self, imageDirs, height, width)
Generate the requested number of synthetic images.
        count: number of images to generate.
        height, width: the size of the generated images.
Generate the requested number of synthetic images.
        count: number of images to generate.
        height, width: the size of the generated images.
Generate the requested number of synthetic images . count : number of images to generate . height width : the size of the generated images .
def load(self, imageDirs, height, width):
        """Generate the requested number of synthetic images.
        count: number of images to generate.
        height, width: the size of the generated images.
        """

        for feature in featureNames:
            self.add_class("osm", featureNames[feature],feature)

            # Add images
        for i in range(len(imageDirs)):
            imgPath = os.path.join( self.ROOT_DIR, osmcfg.trainDir,imageDirs[i],imageDirs[i] + ".jpg")
            self.add_image("osm", image_id=imageDirs[i], path=imgPath, width=width, height=height)
def load ( self , imageDirs , height , width ) : for feature in featureNames : self . add_class ( "osm" , featureNames [ feature ] , feature ) # Add images for i in range ( len ( imageDirs ) ) : imgPath = os . path . join ( self . ROOT_DIR , osmcfg . trainDir , imageDirs [ i ] , imageDirs [ i ] + ".jpg" ) self . add_image ( "osm" , image_id = imageDirs [ i ] , path = imgPath , width = width , height = height )