run
- Resizer.run(input: Tensor, output: Tensor, run_option: ResizerRunOption, sync=True)
Processing images with the given configurations.
- Parameters:
input (Tensor) -- The input tensor containing the image in YUV format.
output (Tensor) -- The output tensor where the processed image will be stored.
run_option (ResizerRunOption) -- The configuration options for image processing.
ResizerRunOptionis a wrapper of the C++ class ImageOps::Resizer::Option.sync (bool, optional) -- A flag to indicate if to automatically synchronize the stream. If set to
True, this function will wait for all tasks related to image processing in the stream to complete before returning. If set toFalse, this function will be executed asynchronously, returning immediately without waiting.