195. Creating Your Own Dataset

Creating Your Original Dataset

Here is 1 way you can create your own dataset to train an object detection model.

  1. Install jmd_imagescraper
pip install jmd_imagescraper
  1. Get Images
#Imports
from jmd_imagescraper.core import * 
from pathlib import Path

#Set Paths
root_path = "images"
root = Path().cwd() / root_path

#saving directory
img_dir = "Tennis_images"
key_word = "Tennis"
duckduckgo_search(root, img_dir, key_word, max_results=20)
  1. Label Images
    Check My Other Blog Post.