# transformers 5.24.1 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input

        Resizes an annotation to a target size.

        Args:
            annotation (`dict[str, Any]`):
                The annotation dictionary.
            orig_size (`tuple[int, int]`):
                The original size of the input image.
            target_size (`tuple[int, int]`):
                The target size of the image, as returned by the preprocessing `resize` step.
            threshold (`float`, *optional*, defaults to 0.5):
                The threshold used to binarize the segmentation masks.
            resample (`PILImageResampling`, defaults to `PILImageResampling.NEAREST`):
                The resampling filter to use when resizing the masks.
        
=== parse google
short_description: 'Resizes an annotation to a target size.'
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: 'The annotation dictionary.'
  kind: param
  key: 'param'
  arg_name: 'annotation'
  type_name: '`dict[str, Any]`'
  is_optional: False
- DocstringParam
  description: 'The original size of the input image.'
  kind: param
  key: 'param'
  arg_name: 'orig_size'
  type_name: '`tuple[int, int]`'
  is_optional: False
- DocstringParam
  description: 'The target size of the image, as returned by the preprocessing `resize` step.'
  kind: param
  key: 'param'
  arg_name: 'target_size'
  type_name: '`tuple[int, int]`'
  is_optional: False
- DocstringParam
  description: 'The threshold used to binarize the segmentation masks.'
  kind: param
  key: 'param'
  arg_name: 'threshold'
  type_name: '`float`'
  is_optional: True
  default: '0.5'
  raw_type_name: '`float`, *optional*, defaults to 0.5'
- DocstringParam
  description: 'The resampling filter to use when resizing the masks.'
  kind: param
  key: 'param'
  arg_name: 'resample'
  type_name: '`PILImageResampling`'
  is_optional: True
  default: 'PILImageResampling.NEAREST'
  raw_type_name: '`PILImageResampling`, defaults to `PILImageResampling.NEAREST`'
=== detect
google
=== compose google
Resizes an annotation to a target size.

Args:
    annotation (`dict[str, Any]`): The annotation dictionary.
    orig_size (`tuple[int, int]`): The original size of the input image.
    target_size (`tuple[int, int]`): The target size of the image, as returned by the preprocessing `resize` step.
    threshold (`float`, *optional*, defaults to 0.5): The threshold used to binarize the segmentation masks.
    resample (`PILImageResampling`, defaults to `PILImageResampling.NEAREST`): The resampling filter to use when resizing the masks.
