Skip to content

Commit

Permalink
fixed print() statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Jan 4, 2023
1 parent 8e94f3a commit f4b19a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/examples/video-viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
formatter_class=argparse.RawTextHelpFormatter,
epilog=videoSource.Usage() + videoOutput.Usage() + Log.Usage())

parser.add_argument("input_URI", type=str, help="URI of the input stream")
parser.add_argument("output_URI", type=str, default="", nargs='?', help="URI of the output stream")
parser.add_argument("input", type=str, help="URI of the input stream")
parser.add_argument("output", type=str, default="", nargs='?', help="URI of the output stream")

try:
opt = parser.parse_known_args()[0]
args = parser.parse_known_args()[0]
except:
print("")
parser.print_help()
sys.exit(0)

# create video sources & outputs
input = videoSource(opt.input_URI, argv=sys.argv)
output = videoOutput(opt.output_URI, argv=sys.argv)
input = videoSource(args.input, argv=sys.argv)
output = videoOutput(args.output, argv=sys.argv)

# capture frames until user exits
numFrames = 0
Expand All @@ -52,7 +52,7 @@
image = input.Capture()

if numFrames % 25 == 0 or numFrames < 15:
Log.Verbose(f"video-viewer: captured {numFrames} frames ({image.width} x {image.height}")
Log.Verbose(f"video-viewer: captured {numFrames} frames ({image.width} x {image.height})")

numFrames += 1

Expand Down

0 comments on commit f4b19a2

Please sign in to comment.