I’m currently doing a video detection using jetson.inference of Jetson Nano to count the total number tray and book seperately. I know how to get total number for both, but not seperate. And I would like to display it anywhere in the video.
Appreciate your help :) p/s:*I’m really new to this area.
I just need to count like this: tray: 5 book: 2
Below is my current script:
while display.IsOpen():
img, width, height = camera.CaptureRGBA()
detections = net.Detect(img, width, height)
display.RenderOnce(img, width, height)
display.SetTitle("Object Detection | Network {:.0f} FPS".format(net.GetNetworkFPS()))
for detection in detections:
class_name = net.GetClassDesc(detection.ClassID)
Thank you for the reply.
Yes, I tried use print it and it will be 1 for trolley and 0 for book.
But how do I calculate the trolley detected at instance? For example under the lens, 4 trolleys detected, and I want it to display or inform user 4. Put into some kind of variable is good enough.
I’m really new to this. Hopping someone could provide few lines script for that.