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

Pipeline usage

Define exactly one four-point ROI around the surface to extract. crop takes its bounding region without correcting perspective, while the crop_warp modes straighten the quadrilateral. Place Warp before downstream analytics when they should inspect only the corrected view, and configure their ROIs against the warped output. area interpolation is generally suitable for downscaling; bicubic is the default and is generally preferable for enlargement or perspective correction where visual smoothness matters.

Properties

PropertyDescriptionTypeDefaultRequired
roi_labelsRegions of interest labelsstringNo
roisSpecify a single ROI with 4 points to crop/warp the image to. Conditional on roi_labels. Format: comma-separated normalized x,y coordinate pairs; separate multiple polygons with semicolons (for example, 0.1,0.1,0.9,0.1,0.9,0.9).stringnullNo
modeMode. Options: Disable (disable): Disable transform; Crop (crop): Crop to specified ROI without changing the perspective; Crop and Warp (crop_warp): Crop to specified ROI and straighten the perspective; Crop and Warp, Aspect aware (crop_warp_aspect): Crop to specified ROI and straighten the perspective with aspect awareness.enumcropNo
interpolation_modeInterpolation mode. Options: Nearest (nearest); BiLinear (bilinear); BiCubic (bicubic); Area (area).enumbicubicNo
rotateRotate image after crop/warp by the specified angle. Unit: degrees.floatnullNo
rotation_modeRotation mode. Options: Rotate and crop to fit (crop); Rotate and scale to fit (scale).enumcropNo

Output Metadata

Node does not insert any output metadata; upstream metadata continues through the pipeline


Did this page help you?