I have trained a Resnet50 model with pixel classification layer. my model is detecting the objects(cars,vans,truck,pedestrians) on eachframe but now I want to count the total objects on the road and then add weights in Kg for each class to find the total weight of the objects on the road.
the result of my prediction is attached.
Any code example that I can use please?!