image_recognition_util.image_reader
Functions
|
Read annotated images from a directory. This reader assumes that the images in this directory are separated in |
Module Contents
- image_recognition_util.image_reader.read_annotated(dir_path, patterns=['*.jpg', '*.png', '*.jpeg'])[source]
Read annotated images from a directory. This reader assumes that the images in this directory are separated in different directories with the label name as directory name. The method returns a generator of the label (string) , the opencv image and the filename. :param dir_path: The base directory we are going to read :param patterns: Patterns of the images the reader should match