Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ilirosmanaj/detect_kermit/llms.txt
Use this file to discover all available pages before exploring further.
download_from_google.py uses the google_images_download library to fetch extra images of Kermit from Google Images, supplementing the frames extracted from video with a broader variety of poses, lighting conditions, and contexts. This diversity helps the model generalise beyond the specific visual style of The Muppets episodes used for training.
Source code
helpers/download_from_google.py
How to use
data/google-images/kermit/ — the library creates a subdirectory named after the keyword.
Configuration
Thearguments dictionary controls what gets downloaded:
| Key | Default | Description |
|---|---|---|
keywords | 'kermit' | The search query sent to Google Images. |
limit | 100 | Maximum number of images to download in a single run. |
output_directory | 'data/google-images' | Root directory where images are saved. A subdirectory named after the keyword is created automatically inside it. |
google_images_download is listed in requirements.txt and is installed automatically along with all other project dependencies when you run:After downloading
The downloaded images are raw search results and may include irrelevant or low-quality content. Before using them for training you should:- Manually review the images in
data/google-images/kermit/and remove anything that doesn’t clearly show Kermit. - Move the accepted images into the appropriate training subdirectory:
- Ensure the final folder structure matches what ImageAI expects before starting a training run.