diff options
Diffstat (limited to 'rpc/img_ops.py')
| -rw-r--r-- | rpc/img_ops.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/img_ops.py b/rpc/img_ops.py index e86d91e..39d79d8 100644 --- a/rpc/img_ops.py +++ b/rpc/img_ops.py @@ -145,6 +145,8 @@ def mix_next_image(opt, data_opt, rpc_client, im, i, sequence, sequence_i): img_to_send = Image.fromarray(next_im) if img_to_send is not None: + if data_opt.resize_before_sending: + img_to_send.resize((256, 256), Image.BICUBIC) rpc_client.send_pil_image("frame_{:05d}.png".format(i+1), meta, img_to_send, data_opt.output_format) cv2.imwrite(tmp_path, next_img) |
