Skip to content

Commit

Permalink
Merge pull request dusty-nv#1208 from asierarranz/patch-2
Browse files Browse the repository at this point in the history
Solve OpenGL issues by creating the output object first
  • Loading branch information
dusty-nv authored Aug 31, 2021
2 parents 51e5bb1 + 3cac58a commit 99387c2
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 99387c2

Please sign in to comment.