From 561f008e644b2b47d0fdc4751c8092dbb9d6d9db Mon Sep 17 00:00:00 2001 From: Watanabe Takafumi Date: Fri, 18 Jul 2025 11:50:40 +0900 Subject: [PATCH] allow specifying encoding and bbox format in uppercase letters --- node-hub/opencv-plot/opencv_plot/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-hub/opencv-plot/opencv_plot/main.py b/node-hub/opencv-plot/opencv_plot/main.py index 78b26756..a128f4e8 100644 --- a/node-hub/opencv-plot/opencv_plot/main.py +++ b/node-hub/opencv-plot/opencv_plot/main.py @@ -150,7 +150,7 @@ def main(): storage = event["value"] metadata = event["metadata"] - encoding = metadata["encoding"] + encoding = metadata["encoding"].lower() width = metadata["width"] height = metadata["height"] if encoding == "bgr8": @@ -206,7 +206,7 @@ def main(): elif event_id == "bbox": arrow_bbox = event["value"][0] - bbox_format = event["metadata"]["format"] + bbox_format = event["metadata"]["format"].lower() if bbox_format == "xyxy": bbox = arrow_bbox["bbox"].values.to_numpy().reshape(-1, 4)