denisecailab / ezTrack

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

Issue - Defining Regions of Interest #38

Closed sofiaitorres closed 2 years ago

sofiaitorres commented 2 years ago

Hi there! Hope you're doing well.

When I try to define the regions of interest in my cropped frame (specifically I'd like to divide the frame in two rectangles), I get a "No Regions to Draw" message. I try to draw but I can't (there's not even a box with a plus sign).

Just wanted to know how to fix this, if even possible! Let me know if you need more information. I have attached a picture of the issue.

Best, Sofía

Screen Shot 2021-10-14 at 6 01 38 PM
ZachPenn commented 2 years ago

You need to have defined the names of your regions in Cell 2. I'm assuming your region_names is still set to None. As an example.


video_dict = {
    'dpath'        : "/Users/DeniseCaiLab/Videos",  
    'file'         : 'Video.mp4',
    'start'        : 0, 
    'end'          : None,
    'region_names' : ['Left','Right','Center'],
    'dsmpl'        : 1,
    'stretch'      : dict(width=1, height=1)
}
sofiaitorres commented 2 years ago

Thanks so much!!!!