Datamodel/data/modified_pictures.py
def gene_picture(size):
    '''Generate the pictures from the given size.
    input:
        - size, the number of pictures need to generate
    return:
        - a list, contain the size of the pictures.
    '''
    picturesList = list()

    folderName = "image"
    files = os.listdir(folderName)
    files = [f for f in files if "jpg" in f]

    for _ in range(size):
        k = random.randint(3,5)
        jpgNames = random.choices(files, k=k)
        path = ";".join([os.sep.join([folderName, jpgName]) for jpgName in jpgNames])
        picturesList.append(path)
    return picturesList
Generate the pictures from the given size.
    input:
        - size, the number of pictures need to generate
    return:
        - a list, contain the size of the pictures.
    
Generate the pictures from the given size.
input:
size, the number of pictures need to generate
return:
a list, contain the size of the pictures.
Generate the pictures from the given size . input : size the number of pictures need to generate return : a list contain the size of the pictures .
def gene_picture(size):
    picturesList = list()
    folderName = "image"
    files = os.listdir(folderName)
    files = [f for f in files if "jpg" in f]
    for _ in range(size):
        k = random.randint(3,5)
        jpgNames = random.choices(files, k=k)
        path = ";".join([os.sep.join([folderName, jpgName]) for jpgName in jpgNames])
        picturesList.append(path)
    return picturesList
def gene_picture ( size ) : picturesList = list ( ) folderName = "image" files = os . listdir ( folderName ) files = [ f for f in files if "jpg" in f ] for _ in range ( size ) : k = random . randint ( 3 , 5 ) jpgNames = random . choices ( files , k = k ) path = ";" . join ( [ os . sep . join ( [ folderName , jpgName ] ) for jpgName in jpgNames ] ) picturesList . append ( path ) return picturesList
Generate the pictures from the given size.
Generate the pictures from the given size .
'''Generate the pictures from the given size.
    input:
        - size, the number of pictures need to generate
    return:
        - a list, contain the size of the pictures.
    '''
size