Hello AI World - new object detection training and video interfaces

Hi everyone,

Happy to have just merged a significant set of updates and new features to jetson-inference master:

note: API changes from this update are intended to be backwards-compatible, so previous code should still run.

The same code can now run from images/video/cameras and encoded network streams (RTP/RTSP):

import jetson.inference
import jetson.utils

import argparse
import sys

# parse the command line
parser = argparse.ArgumentParser(description="Locate objects in a live camera stream using an object detection DNN.")

parser.add_argument("input_URI", type=str, default="", nargs='?', help="URI of the input stream")
parser.add_argument("output_URI", type=str, default="", nargs='?', help="URI of the output stream")
parser.add_argument("--network", type=str, default="ssd-mobilenet-v2", help="pre-trained model to load (see below for options)")

	opt = parser.parse_known_args()[0]

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

# create video sources & outputs
input = jetson.utils.videoSource(opt.input_URI, argv=sys.argv)
output = jetson.utils.videoOutput(opt.output_URI, argv=sys.argv)

# process frames until EOS or the user exits
while True:
	img = input.Capture()
	detections = net.Detect(img)
	output.SetStatus("{:s} | Network {:.0f} FPS".format(opt.network, net.GetNetworkFPS()))

	if not input.IsStreaming() or not output.IsStreaming():

For more info, see these new pages from the repo:

Thanks to everyone from the forums and GitHub who helped to test these updates in advance!

Than you very much, <<dusty_nv>>, an thanks to the whole nvidia-Jetson staff for maintaining up-to-date the Jetson-inference Tutorial.
Hope the same attention and approach will be dedicated to the whole < Two days to a demo>, Reinforcement and Tensorflow-RT (Cafee is deprecated?) : I think for all of us, even if we could have different interests, they are like Milestones and fundamental tutorials from which we could start.
Please keep them up-to-date with the evolutions of components and technologies that are packed within the evolving JetPacks.
My best to all !