Loading an Image From a FileΒΆ

To generate a list of all image files in a directory, the list_images() function can be used.

image_paths = edgeiq.list_images(base_path="some/image/dir")

The image can be loaded using the imread() function from the OpenCV library (cv2).

image = cv2.imread()