am trying to lunch the detection model through a python script but each time am getting this error and the program freezes on that. also the load on the cpu gos back to normal as if nothing is running.
i’ve used 3 scripts from the tutorials but all ends the same way
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.Render(img)
display.SetStatus("Object Detection | Network {:.0f} FPS".format(net.GetNetworkFPS()))
so its working some times and mostly after i do a reboot.
but now the problem is that the script suddenly stops and the camera window closes. this is only happens when i sue my mode (the ssd-mobilenet-v2 works fine)
i used the first code:
i tried to use the second code but am getting an error for the line classID, confidence = net.Classify(frame, width, height)
specifically the net.Classify