From 3cac58a787b30171aec37cb14ee73f1a85baa277 Mon Sep 17 00:00:00 2001 From: Asier Arranz Date: Tue, 31 Aug 2021 16:04:11 +0200 Subject: [PATCH] Solve OpenGL issues by creating the output object first In a default JetPack 4.6 fresh installation this script failed to create X11 window. This quick fix restores it. --- python/examples/segnet.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/examples/segnet.py b/python/examples/segnet.py index f29c11b20..dbd940158 100755 --- a/python/examples/segnet.py +++ b/python/examples/segnet.py @@ -58,12 +58,14 @@ # set the alpha blending value net.SetOverlayAlpha(opt.alpha) +# create video output +output = jetson.utils.videoOutput(opt.output_URI, argv=sys.argv+is_headless) + # create buffer manager buffers = segmentationBuffers(net, opt) -# create video sources & outputs +# create video source input = jetson.utils.videoSource(opt.input_URI, argv=sys.argv) -output = jetson.utils.videoOutput(opt.output_URI, argv=sys.argv+is_headless) # process frames until user exits while True: