Ejemplo n.º 1
0
def do_paint(src_file, dest_file, imagebank, split_thresh, minsize, group_thresh, scale, bankscale):
    painter = Painter(src_file,
                      imagebank,
                      split_thresh,
                      minsize,
                      group_thresh,
                      scale)

    painter.generate_groups()
    painter.get_pictures_for_groups()
    painter.paint(bankscale) 

    painter.dest_image.save(dest_file, 'PNG')