Fix --width --height type parsing on opencv and intelrealsense scripts (#556)

Co-authored-by: Remi <remi.cadene@huggingface.co>
Co-authored-by: Steven Palma <imstevenpmwork@ieee.org>
This commit is contained in:
Alex Thiele 2025-04-17 06:19:23 -07:00 committed by GitHub
parent a8db91c40e
commit c10c5a0e64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -512,13 +512,13 @@ if __name__ == "__main__":
) )
parser.add_argument( parser.add_argument(
"--width", "--width",
type=str, type=int,
default=640, default=640,
help="Set the width for all cameras. If not provided, use the default width of each camera.", help="Set the width for all cameras. If not provided, use the default width of each camera.",
) )
parser.add_argument( parser.add_argument(
"--height", "--height",
type=str, type=int,
default=480, default=480,
help="Set the height for all cameras. If not provided, use the default height of each camera.", help="Set the height for all cameras. If not provided, use the default height of each camera.",
) )

View File

@ -492,13 +492,13 @@ if __name__ == "__main__":
) )
parser.add_argument( parser.add_argument(
"--width", "--width",
type=str, type=int,
default=None, default=None,
help="Set the width for all cameras. If not provided, use the default width of each camera.", help="Set the width for all cameras. If not provided, use the default width of each camera.",
) )
parser.add_argument( parser.add_argument(
"--height", "--height",
type=str, type=int,
default=None, default=None,
help="Set the height for all cameras. If not provided, use the default height of each camera.", help="Set the height for all cameras. If not provided, use the default height of each camera.",
) )