Data
ImageList
Bases: ItemList
Build an image list from list of files in the path
end with
extensions
, optionally recursively.
from_files(path, extensions=IMAGE_EXTENSIONS, include=None, recurse=True, tfms=None)
classmethod
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
str | Path
|
Path for the root directory to search for files. |
required |
extensions |
str | Iterable[str] | None
|
Suffixes of filenames to look for. |
IMAGE_EXTENSIONS
|
include |
Iterable[str] | None
|
Top-level Director(y|ies) under |
None
|
recurse |
bool
|
Whether to search subdirectories recursively. |
True
|
tfms |
Callable | None
|
Transformations to apply items before returning them. |
None
|
get(item)
Open an image using PIL.