(self, count, 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_shapes(self, count, height, width):
        """Generate the requested number of synthetic images.
        count: number of images to generate.
        height, width: the size of the generated images.
        """
        # Add classes
        self.add_class("shapes", 1, "square")
        self.add_class("shapes", 2, "circle")
        self.add_class("shapes", 3, "triangle")

        # Add images
        # Generate random specifications of images (i.e. color and
        # list of shapes sizes and locations). This is more compact than
        # actual images. Images are generated on the fly in load_image().
        for i in range(count):
            bg_color, shapes = self.random_image(height, width)
            self.add_image("shapes", image_id=i, path=None,
                           width=width, height=height,
                           bg_color=bg_color, shapes=shapes)
def load_shapes ( self , count , height , width ) : # Add classes self . add_class ( "shapes" , 1 , "square" ) self . add_class ( "shapes" , 2 , "circle" ) self . add_class ( "shapes" , 3 , "triangle" ) # Add images # Generate random specifications of images (i.e. color and # list of shapes sizes and locations). This is more compact than # actual images. Images are generated on the fly in load_image(). for i in range ( count ) : bg_color , shapes = self . random_image ( height , width ) self . add_image ( "shapes" , image_id = i , path = None , width = width , height = height , bg_color = bg_color , shapes = shapes )