ImageIO

class lib.image.ImageIO(path, queue_size, args=None)

Bases: object

Perform disk IO for images or videos in a background thread.

This is the parent thread for ImagesLoader and ImagesSaver and 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.ImagesLoader

Background Image Loader inheriting from this class.

lib.image.ImagesSaver

Background Image Saver inheriting from this class.

Attributes Summary

location

The folder or video that was passed in as the path parameter.

Methods Summary

close()

Closes down and joins the internal threads

Attributes Documentation

location

The folder or video that was passed in as the path parameter.

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 path parameter.

Type:

str