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:
parent
a8db91c40e
commit
c10c5a0e64
|
@ -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.",
|
||||||
)
|
)
|
||||||
|
|
|
@ -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.",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue