This commit is contained in:
louiscklaw
2025-01-31 22:36:21 +08:00
parent f4fc0b8f71
commit c7fb335275
1399 changed files with 5714 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from icrawler.builtin import BingImageCrawler
classes = ["trees", "roads", "Human faces"]
number = 100
for c in classes:
# see n is represent negaive images
bing_crawler = BingImageCrawler(storage={"root_dir": f'n/{c.replace(" ","_")}'})
bing_crawler.crawl(keyword=c, filters=None, max_num=number, offset=0)