imgs_filter
- cocohelper.filters.cocofilters.cocofilters.imgs_filter(ids=None, nms=None, composition=<class 'cocohelper.filters.filter.AndFilter'>, strategy=<cocohelper.filters.strategies.strategies.HavingValueFilterStrategy object>)[source]
A Filter for the images with the required characteristics.
- Parameters:
ids (Optional[Union[Sequence[int], int]]) – a filter for the image id.
nms (Optional[Union[Sequence[str], str]]) – a filter for the file names of the image.
composition (Type[ComposeFilter]) – a composition type for the filter (defaults to an AND between all the given conditions).
strategy (ValueFilterStrategy) – a ValueFilterStrategy for the filter.
- Returns:
A Filter for the images with the required characteristics.
- Return type: