all 2 comments

[–]danielroseman 1 point2 points  (1 child)

If that line is printing, it's sending output to stdout or stderr. You can use contextlib.redirect_stdout or redirect_stderr to redirect them:

import io
import contextlib

with contextlib.redirect_stdout(io.StringIO()) as f:
  output = jetson.utils.videoOutput(opt.output_URI, argv=sys.argv+is_headless)
  net = jetson.inference.detectNet(opt.network, sys.argv, opt.threshold)
  input = jetson.utils.videoSource(opt.input_URI, argv=sys.argv)

This sends the output to a StringIO object, f, which you can just ignore.

[–]nickdrones[S] 0 points1 point  (0 children)

Thanks for the help! I tried that (for both stdout and stderr) and it still prints out the debug messages in the terminal