I am following the tutorials for Jetson Nano Dev on github (dusty-nv/jetson-inference).
Things are working as expected, but I couldn’t figure out how to extract labels/class id. Based on what I can see from these sites -
I think it should be doable, but I can’t seem to figure it out. Do I have to download the label file (or make a list) and import and use that? Also, when I tried accessing ClassID inside of
detectNet.Detection Object - by doing this -
detections = net.Detect(input_image, rgb.shape, rgb.shape) for detection in detections: print(detection.ClassID)
It didn’t work for me… Its output was 70. If someone could please point me in the right direction, I would appreciate it.