docstr: Constructor. See https://trac.ffmpeg.org/wiki/Scaling for height and width options.
  
  @param height: height specification. Defaults to input if not specified.
  
  @param width: width specification. Defaults to input width if not specified.
docstr_tok: ["Constructor",".","See","https",":","\/\/trac.ffmpeg.org\/wiki\/Scaling","for","height","and","width","options",".","@","param","height",":","height","specification",".","Defaults","to","input","if","not","specified",".","@","param","width",":","width","specification",".","Defaults","to","input","width","if","not","specified","."]
code: def __init__(
      self,
      height: Union[int, str] = "ih",
      width: Union[int, str] = "iw",
  ):
      """
      Constructor. See https://trac.ffmpeg.org/wiki/Scaling for height and width options.
  
      @param height: height specification. Defaults to input if not specified.
  
      @param width: width specification. Defaults to input width if not specified.
      """
      self.new_h = height
      self.new_w = width
  
imports: from typing import List, Union
  from augly.video.augmenters.ffmpeg.base_augmenter import BaseVidgearFFMPEGAugmenter
label_desc: Use image node_id 1 to create a new VideoAugmenterByResize object from inherited base classes: BaseVidgearFFMPEGAugmenter with example: obj = VideoAugmenterByResize(height, width)