Hello. I want to make a small change to detectnet.py file in jetson-inference. the output should be streamed on UDP instead of being displayed.
net = jetson.inference.detectNet(opt.network, sys.argv, opt.threshold)
input = jetson.utils.videoSource(opt.input_URI, argv=sys.argv)
while True:
img = input.Capture()
detections = net.Detect(img, overlay=opt.overlay)
# task: sending img to udp stream. how to do it ?
if not input.IsStreaming() or not output.IsStreaming():
break
I have tested your solution. but unfortunately it does not work as I expected. I dont want to disply video stream on local machine. by the way the object detection process is necessary to be done.