update,
This commit is contained in:
9
vinniesniper-54816/task1/_tools/crawer/crawler_n.py
Normal file
9
vinniesniper-54816/task1/_tools/crawer/crawler_n.py
Normal 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)
|
Reference in New Issue
Block a user