コード例 #1
0
def download():
    for species in all_species:

        print('Getting urls for', species)
        urls = get_urls(species, images_per_species)

        print('Downlaing images for', species)
        path = os.path.join('data', species)
        
        download_images(urls, path)
コード例 #2
0
ファイル: main.py プロジェクト: YaminAlam/Project-3
def download_test():
    print("Test Set")
    for setting in all_types:

        print('Getting urls for', setting)
        urls = get_urls(setting, test_images)

        print('Downloading images for', setting)
        path = os.path.join('data', 'test', setting)

        download_images(urls, path)
コード例 #3
0
ファイル: main.py プロジェクト: YaminAlam/Project-3
def download_train():
    print("Training Set")
    for setting in all_types:

        print('Getting urls for', setting)
        urls = get_urls(setting, train_images)

        print('Downloading images for', setting)
        path = os.path.join('data', 'train', setting)

        download_images(urls, path)
コード例 #4
0
ファイル: main.py プロジェクト: Idelcads/datamining-scripts
def download(outputPath):
    for specie in all_species:

        print('Getting urls for', specie)
        urls = get_urls(specie, img_per_specie, sizes, api_param)
        print('Downloading images for', specie)
        if outputPath == 'data/':
            path = os.path.join('data', specie, 'raw')
            download_images(urls, path)
        else:
            path = outputPath
            path = path + specie + '/raw'
            download_images(urls, path)