This commit is contained in:
louiscklaw
2025-01-31 22:33:28 +08:00
parent 2f92062c07
commit 5833d552e9
689 changed files with 7855 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,11 @@
from icrawler.builtin import BingImageCrawler
# we are building cats image detection that's why we put cat here
# if you want some other images then put that name in classes list
classes = ["elephant", "horse", "mountain"]
number = 999
# here root directory is find your root directory there u will find
# new file name data in which all images are saved.
for c in classes:
bing_crawler = BingImageCrawler(storage={"root_dir": f'p/{c.replace(" ",".")}'})
bing_crawler.crawl(keyword=c, filters=None, max_num=number, offset=0)

View File

@@ -0,0 +1,11 @@
from icrawler.builtin import BingImageCrawler
# we are building cats image detection that's why we put cat here
# if you want some other images then put that name in classes list
classes = ["elephant"]
number = 99999
# here root directory is find your root directory there u will find
# new file name data in which all images are saved.
for c in classes:
bing_crawler = BingImageCrawler(storage={"root_dir": f'p/{c.replace(" ",".")}'})
bing_crawler.crawl(keyword=c, filters=None, max_num=number, offset=0)

View File

@@ -0,0 +1,11 @@
from icrawler.builtin import BingImageCrawler
# we are building cats image detection that's why we put cat here
# if you want some other images then put that name in classes list
classes = ["horse image with white background"]
number = 99999
# here root directory is find your root directory there u will find
# new file name data in which all images are saved.
for c in classes:
bing_crawler = BingImageCrawler(storage={"root_dir": f'p/{c.replace(" ",".")}'})
bing_crawler.crawl(keyword=c, filters=None, max_num=number, offset=0)

View File

@@ -0,0 +1,36 @@
from icrawler.builtin import BingImageCrawler
from icrawler.builtin import GoogleImageCrawler
# we are building cats image detection that's why we put cat here
# if you want some other images then put that name in classes list
classes = [
"horse standing in white background",
"horse running in white background",
"horse sleeping in white background",
"horse eating in white background",
"horse shitting in white background",
"horse sitting in white background",
"horse racing in white background",
"horse head in white background",
"horse body in white background",
"horse legs in white background",
"horse ears in white background",
"horse eyes in white background",
"horse tail in white background",
"any horse in white background",
]
number = 99999
# here root directory is find your root directory there u will find
# new file name data in which all images are saved.
for c in classes:
# bing_crawler = BingImageCrawler(storage={"root_dir": f'p/{c.replace(" ",".")}'})
# bing_crawler.crawl(keyword=c, filters=None, max_num=number, offset=0)
google_crawler = GoogleImageCrawler(storage={"root_dir": f'p/{c.replace(" ",".")}'})
google_crawler.crawl(
keyword=c,
offset=0,
max_num=99999,
min_size=(50, 50),
max_size=None,
)

View File

@@ -0,0 +1,11 @@
from icrawler.builtin import BingImageCrawler
# we are building cats image detection that's why we put cat here
# if you want some other images then put that name in classes list
classes = ["mountain"]
number = 99999
# here root directory is find your root directory there u will find
# new file name data in which all images are saved.
for c in classes:
bing_crawler = BingImageCrawler(storage={"root_dir": f'p/{c.replace(" ",".")}'})
bing_crawler.crawl(keyword=c, filters=None, max_num=number, offset=0)

View File

@@ -0,0 +1,9 @@
from icrawler.builtin import BingImageCrawler
classes = ["bus", "flowers", "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)

Some files were not shown because too many files have changed in this diff Show More