denisecailab / ezTrack

Free, platform independent, behavior tracking software.
GNU General Public License v3.0
118 stars 41 forks source link

Key Error #57

Closed saabreenuh closed 2 years ago

saabreenuh commented 2 years ago

Hello again!

Thanks for being so punctual with your replies!

I had another question. When trying to define ROI and when trying to define scale, I am met with an error:

KeyError Traceback (most recent call last)

in ----> 1 img_scl, video_dict['scale'] = lt.DistanceTool(video_dict) 2 img_scl ~/Various Documents/Vole Research Stuff/ezTrack-master/LocationTracking/LocationTracking_Functions.py in DistanceTool(video_dict) 2212 #Make reference image the base image on which to draw 2213 image = hv.Image(( -> 2214 np.arange(video_dict['reference'].shape[1]), 2215 np.arange(video_dict['reference'].shape[0]), 2216 video_dict['reference'])) KeyError: 'reference' How might I resolve this? Thank you again in advance! Screen Shot 2022-05-16 at 7 00 23 PM Screen Shot 2022-05-16 at 7 00 33 PM
ZachPenn commented 2 years ago

This likely indicates that a reference hasn't been created. Please note that this has to be done every in each time you run a video and when you refresh the kernel.