imgsorter¶
A library for sorting and grouping images and videos.
Classes:
Functions:
|
Sort all images in |
- enum SortMode(value)[source]¶
Bases:
enum_tools.custom_enums.StrEnumenum.Enumof the sorting mode – whether to move the images or only copy them.- Member Type
Valid values are as follows:
- MODE_MOVE = <SortMode.MODE_MOVE: 'move'>¶
- MODE_COPY = <SortMode.MODE_COPY: 'copy'>¶
- sort_images(destination, *source, known_cameras=None, mode=SortMode.MODE_COPY)[source]¶
Sort all images in
*sourceintodestination.- Parameters
known_cameras (
Optional[Dict[str,str]]) – A mapping of camera IDs – as listed in the image metadata – to human-readable names. For example,VKY-L09might map toSmartphone. DefaultNone.mode (
SortMode) – The sorting mode – whether to move the images or only copy them. Default<SortMode.MODE_COPY: 'copy'>.
- Return type