-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
I noticed that
Is your feature request related to a problem? Please describe.
When using deeplabcut.create_labeled_video for a video that was analyzed with cropping, the bodyparts are marked correctly when displaycropped=True is used (the created video is cropped and bodyparts are correctly plotted). However, if I want to create a video in its original, full-frame view (non-cropped) plus the extracted bodyparts coordinates (displaycropped=False), the bodyparts are plotted in the wrong coordinates because they do not take into account the cropping.
Describe the solution you'd like
When running deeplabcut.create_labeled_video with displaycropped=False for a video that was analyzed with cropping, bodyparts coordinates should take into account the cropping. This probably means adding the video crop x1 and y1 values to the bodyparts coordinate before plotting them on the frames.