Just Try passing the path as a raw string
img = Image.open(r"C:/Users/name/OneDrive/Pictures/CSP - project/r_f.png")
Also make sure that there is space in the file path also.