Skip to content

Commit

Permalink
Merge pull request dusty-nv#1207 from asierarranz/patch-1
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 5601ec6 + c9b656b commit 51e5bb1
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 51e5bb1

Please sign in to comment.