ImageIO
- class lib.image.ImageIO(path, queue_size, args=None)
Bases:
objectPerform disk IO for images or videos in a background thread.
This is the parent thread for
ImagesLoaderandImagesSaverand should not be called directly.- Parameters:
path (str or list) – The path to load or save images to/from. For loading this can be a folder which contains images, video file or a list of image files. For saving this must be an existing folder.
queue_size (int) – The amount of images to hold in the internal buffer.
args (tuple, optional) – The arguments to be passed to the loader or saver thread. Default:
None
See also
lib.image.ImagesLoaderBackground Image Loader inheriting from this class.
lib.image.ImagesSaverBackground Image Saver inheriting from this class.
Attributes Summary
The folder or video that was passed in as the
pathparameter.Methods Summary
close()Closes down and joins the internal threads
Attributes Documentation
- location
The folder or video that was passed in as the
pathparameter.- Type:
str
Methods Documentation
- close()
Closes down and joins the internal threads
- close()
Closes down and joins the internal threads
- property location
The folder or video that was passed in as the
pathparameter.- Type:
str