Image scraper for DuckDuckGo for creating deep learning datasets
Project description
jmd_imagescraper
An image scraping library for creating deep learning datasets.
This library is for creating deep learning datasets.
It uses DuckDuckGo for the image scraping as they return nice big images and have some rather nice parameters to make your life easier, for example we can filter the searches to only return square images which are photos.
jmd_imagescraper.core
contains the main scraping/downloading functionality.
jmd_imagescraper.imagecleaner
contains an image cleaner you can use from within your notebook to clean up the results and delete anything unsuitable.
Install
pip install jmd_imagescraper
How to use
from jmd_imagescraper.core import * # dont't worry, it's designed to work with import *
from pathlib import Path
root = Path().cwd()/"images"
duckduckgo_search(root, "Cats", "cute kittens", max_results=20)
from jmd_imagescraper.imagecleaner import *
display_image_cleaner(root)
Docs
If you're reading this on pypi.org you can find the docs at https://joedockrill.github.io/jmd_imagescraper/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jmd_imagescraper-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21640b83aacb7834930554c9b45940a7b3a4f7ae8552da2440b94472d2c60cb3 |
|
MD5 | bd460868155bc907ad1101470fb39063 |
|
BLAKE2b-256 | ab1182e4543168ee43624f71ab9da7487b43413bb0f6cbc73f7cebb8e3106bd9 |