I've made a program which take a folder of images and, for each one, find the width through `img.shape` function.
Then, it create a dict which contains the following values: `[(filename, width)]`.

How can, at this point, move the files (based on a shape value I give) to specified fodlers ?
I mean, if I give as condition a value of 50 pixels, how can I tell the program to move each corresponding image to a folder ?

```
import os
import cv2
import pandas as pd
import statistics
from heapq import nsmallest

src = os.path.expanduser('~\\Desktop\\roiseparator\\roi_single\\')

imgs = os.listdir(src)
sorted_imgs = imgs.sort(key=lambda x: int(x.split('.')[0]))

lista_roi = []
lista_w = []

lista_key_value = {}

for i, roi in enumerate(imgs):

    image = cv2.imread(str(src) + str(imgs[i]))

    (h, w) = image.shape[:2]

    lista_roi.append(i)  
    lista_w.append(w)  

for i in range(len(lista_roi)):
    lista_key_value[lista_roi[i]] = lista_w[i] 

lista_key_value = list(lista_key_value.items()) 

print('Key - Value: ', lista_key_value)

```

Result of print is: `[(0, 37), (1, 30), (2, 34), (3, 30), (4, 31), (5, 31), (6, 37), (7, 37), (8, 60), (9, 73), (10, 53)]`

It have to be read as: `(filename,width)`.

Example of output: if width =< 50, move all files wich satisfy this condition to a folder. Warn: `50` is not a stable value, it is most a variable and it's recognized in the second half of the code.

I find difficult, at this point, to recover the file (image) using the value of width..