offlinemot.utils_.resize
- offlinemot.utils_.resize(img, scale=1)[source]
Resize image by a scale factor
- Parameters
img (numpy array) – The image represented as grayscale image array or rgb image array (if grayscale will be stacked to 3 channels)
scale (float, optional) – A scale to enlarge or shrink the image to both the width and height. (default is 1)
- Returns
The image after rescaling
- Return type
numpy array