Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to load a list of image using cv.imread

i want to load a list of images using cv.imread function

image_path_dir = 'C:\\Python'
images_paths = [join(image_path_dir, imagename) for imagename in ['sna3.jpg', 'sna1.jpg', 'bag5.jpg', 't2.jpg', 's3.jpg','sn2.jpg', 't2.jpg']]

image = cv.imread(image_path_dir)

when i do this i get the below error, i cant also use the glob module too any help please.

TypeError: Expected Ptr<cv::umat> for argument '%s'