Skip to content

Trouble with Cropping for Analysis  #1885

@diegosancarmen

Description

@diegosancarmen

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

After using the cropping parameter in dlc.analyze_videos, the labels are appearing on the upper left corner of the video instead of on the animal.
Original (no cropping parameter)
Screenshot (18)
With cropping parameter
Screenshot (17)

Operating System

Google Colab

DeepLabCut version

2.2.1

DeepLabCut mode

single animal

Device type

Colab Pro

Steps To Reproduce

deeplabcut.analyze_videos(path_config_file, "/content/drive/MyDrive/DeepLabCut/Trial9B-JDC-2022-05-23/videos/FILE1077_D194_A2_aMSH.mp4", videotype=VideoType, save_as_csv = False, cropping= [700,1250, 300, 900 ])

Relevant log output

N/A

Anything else?

  • I obtained the coordinates by using the parameter cropped = 'GUI' during deeplabcut.extract_frames().
    • [x1, x2, y1, y2] = [700, 1250, 300, 900 ]
  • The frame dimensions are 1920 x 1080.

Figure_1

Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions