Skip to content

Commit

Permalink
Solve OpenGL issues by creating the output object first
Browse files Browse the repository at this point in the history
In a default JetPack 4.6 fresh installation this script failed to create X11 window. This quick fix restores it.
  • Loading branch information
asierarranz authored Aug 31, 2021
1 parent 5601ec6 commit 3cac58a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/examples/segnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3cac58a

Please sign in to comment.