lloydowen8 / place-heatmap-2022

Heatmap visualisation for the r/Place 2022 event
27 stars 2 forks source link

Instructions unclear about what to do with image data #5

Closed memmam closed 2 years ago

memmam commented 2 years ago

I tried putting the zip file into the folder, I tried putting the folders from the zip file into the folder, I tried putting the contents of 'images_single' into the folder, and no matter what I did, I got

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
c:\Users\Ellie\Downloads\place-heatmap-2022-main\heatmap.ipynb Cell 5' in <cell line: 7>()
      [4](vscode-notebook-cell:/c%3A/Users/Ellie/Downloads/place-heatmap-2022-main/heatmap.ipynb#ch0000004?line=3)[     if event == cv2.EVENT_LBUTTONDOWN:
      ]()[5](vscode-notebook-cell:/c%3A/Users/Ellie/Downloads/place-heatmap-2022-main/heatmap.ipynb#ch0000004?line=4)[        print('x = %d, y = %d'%(x, y))
----> ]()[7](vscode-notebook-cell:/c%3A/Users/Ellie/Downloads/place-heatmap-2022-main/heatmap.ipynb#ch0000004?line=6)[ cv2.imshow("image", cv2.imread(img_paths[1000]))
      ]()[8](vscode-notebook-cell:/c%3A/Users/Ellie/Downloads/place-heatmap-2022-main/heatmap.ipynb#ch0000004?line=7)[ cv2.namedWindow('image')
      ]()[9](vscode-notebook-cell:/c%3A/Users/Ellie/Downloads/place-heatmap-2022-main/heatmap.ipynb#ch0000004?line=8)[ cv2.setMouseCallback('image', onMouse)

IndexError: list index out of range]()

I'm not sure what I'm doing wrong? Instructions could use some work...

memmam commented 2 years ago

Closing this, I figured out what to do, I'm going to make a PR against the readme

memmam commented 2 years ago

I see this was already fixed before I made my PR; I was waiting on getting the code working first, see issue #6.