Apr-15-2020, 12:29 PM
Is the problem that it only works for "Image1.jpg" and that you need a way for it to work for each filename? You still have the filenames in FandC (btw, using fandc for the dataframe variable is really confusing). You can use FandC to get the image filename.
master_df=pd.DataFrame(FandC) #creates a dataframe for "filename", "x", "y", and "r". # for each filename, get the dataframe and process for img in FandC: img_filename = img.['filename'] img_df = master_df[master_df['filename'] == img_filename]