Simple line using only jetson util

In a simple program like this:

import jetson.inference
import jetson.utils

net = jetson.inference.detectNet(“ssd-mobilenet-v2”, threshold=0.5)
camera = jetson.utils.videoSource(“csi://0”) # ‘/dev/video0’ for V4L2
display = jetson.utils.videoOutput(“display://0”) # ‘my_video.mp4’ for file

while display.IsStreaming():
img = camera.Capture()
detections = net.Detect(img)
display.SetStatus(“Object Detection | Network {:.0f} FPS”.format(net.GetNetworkFPS()))

Are there any way to draw lines, rectangles and circles to the img frame, without using openCV?


Jetson_inference has a implementation to overlay input image with a filled rectangle here:

You can implement the overlay for lines and circles based on this.