Hi,
When I use dusty-nv inference, I can set the full screen in nano 4G
But when I run the same code in 2G, there is still a window frame…
May I know how to change to full screen?
Thx
output = jetson.utils.glDisplay()
output.SetFullscreen(True)
...
while output.IsOpen():
output.RenderOnce(img,img.width, img.height,x=0,y=0)
Full test video-viewer code
#!/usr/bin/env python3
#
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
import sys
import argparse
import jetson.inference
import jetson.utils
from jetson_utils import videoSource, videoOutput, logUsage
# parse command line
parser = argparse.ArgumentParser(description="View various types of video streams",
formatter_class=argparse.RawTextHelpFormatter,
epilog=videoSource.Usage() + videoOutput.Usage() + logUsage())
parser.add_argument("input_URI", type=str, help="URI of the input stream")
parser.add_argument("output_URI", type=str, default="", nargs='?', help="URI of the output stream")
try:
opt = parser.parse_known_args()[0]
except:
print("")
parser.print_help()
sys.exit(0)
# create video sources & outputs
input = videoSource(opt.input_URI, argv=sys.argv)
#output = videoOutput(opt.output_URI, argv=sys.argv)
output = jetson.utils.glDisplay()
output.SetFullscreen(True)
# capture frames until user exits
#while output.IsStreaming():
while output.IsOpen():
img = input.Capture()
#print(image)
output.RenderOnce(img,img.width, img.height,x=0,y=0)
# output.Render(image)
# output.SetStatus("Video Viewer | {:d}x{:d} | {:.1f} FPS".format(image.width, image.height, output.GetFrameRate()))