Skip to content

create_labeled_video with displaycropped=False uses wrong bodyparts coordinates #2067

@lachioma

Description

@lachioma

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions