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 c9b656b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/examples/detectnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@
parser.print_help()
sys.exit(0)

# create video output object
output = jetson.utils.videoOutput(opt.output_URI, argv=sys.argv+is_headless)

# load the object detection network
net = jetson.inference.detectNet(opt.network, sys.argv, opt.threshold)

# create video sources & outputs
# create video sources
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 the user exits
while True:
Expand Down

0 comments on commit c9b656b

Please sign in to comment.