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'
You pass image_path_dir, i.e. ''C:\Python', to cv.imread, don`t you?
Why don't you use this code?
Try this:
It is same as @LBerger.
no, @supra56, imread() cannot use a list of images
@LBerger how will I get around this problem?