Crop and Warp

Crop, warp and rotate video to correct perspective and zoom in.

Overview

The Crop & Warp node lets you crop and transform a video.

Inputs & Outputs

  • Inputs : 1, Media Format : Raw Video
  • Outputs : 1, Media Format: Raw Video
  • Output Metadata : None

Properties

PropertyDescriptionTypeDefaultRequired
roi_labelsRegions of interest labelshiddenN/AYes
roisRegion to crop. Specify a single ROI with 4 points to crop/warp the image to. Conditional on roi_labels.polygonnullYes
modeMode. Options:
disable (Disable transform)
crop (Crop to specified ROI without changing the perspective)
crop_warp (Crop to specified ROI and straighten the perspective)
crop_warp_aspect (Crop to specified ROI and straighten the perspective with aspect awareness)
enumcropYes
interpolation_modeInterpolation mode. Options:
nearest
bilinear
bicubic
area
enumbicubicYes
rotateRotation angle in degrees. Rotate image after crop/warp by the specified angle.floatnullNo
rotation_modeRotation mode. Options:
crop (Rotate and crop to fit)
scale (Rotate and scale to fit)
enumcropYes

Metadata

This node does not add any new metadata to the frame.

Metadata PropertyDescription
NoneNone