I am trying to read image path from a list named charpath . In that list, I have stored the full path of 163 images . I am doing it because I had to retrieve the duplicate