diff options
author | Isabella Gottardi <isabella.gottardi@arm.com> | 2023-03-20 15:35:42 +0000 |
---|---|---|
committer | Isabella Gottardi <isabella.gottardi@arm.com> | 2023-03-21 22:12:43 +0000 |
commit | 8ce2be8de498f328678eeed998dbe6994734c15e (patch) | |
tree | d8b2d714b3dd3379ba53bd6bd297c77af4221f9f /scripts/py/gen_rgb_cpp.py | |
parent | 1bd434e1d618b6222968202531e36a922c7c44f7 (diff) | |
download | ml-embedded-evaluation-kit-8ce2be8de498f328678eeed998dbe6994734c15e.tar.gz |
MLECO-3802: [Maintenance] Remove Pillow warning23.02
- Image.Resampling.BILINEAR replace deprecated Image.BILINEAR
- Trivial documentation fixes
Change-Id: Ia75af2d2bf171085d4a0a2c472f0e3f94dbdc5b9
Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
Diffstat (limited to 'scripts/py/gen_rgb_cpp.py')
-rw-r--r-- | scripts/py/gen_rgb_cpp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/py/gen_rgb_cpp.py b/scripts/py/gen_rgb_cpp.py index 85ae071..b8d85ee 100644 --- a/scripts/py/gen_rgb_cpp.py +++ b/scripts/py/gen_rgb_cpp.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2021 Arm Limited and/or its affiliates <open-source-office@arm.com> +# SPDX-FileCopyrightText: Copyright 2021-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -78,7 +78,7 @@ def write_individual_img_cc_file(image_filename, cc_filename, header_template_fi scale_ratio = (float)(max(ifm_width, ifm_height)) / (float)(min(original_image.size[0], original_image.size[1])) resized_width = (int)(original_image.size[0] * scale_ratio) resized_height = (int)(original_image.size[1] * scale_ratio) - resized_image = original_image.resize([resized_width,resized_height], Image.BILINEAR) + resized_image = original_image.resize([resized_width,resized_height], Image.Resampling.BILINEAR) # Crop the center of the image resized_image = resized_image.crop(( |