I’m using tensorflow and it’s working great, I’m looking to be able to parse the state of the sensor and come up with a count of specific objects
For example here is the state of my camera at the moment
matches: {
"person": [
{
"score": 96.79025411605835,
"box": [
0.21866311132907867,
0.6428085565567017,
0.34407034516334534,
0.6730395555496216
]
}
],
"car": [
{
"score": 83.01277160644531,
"box": [
0.17965902388095856,
0.439156174659729,
0.3273550868034363,
0.5330307483673096
]
}
]
}
summary: {
"person": 1,
"car": 1
}
total_matches: 2
friendly_name: TensorFlow back_gate
Objects can be car, truck, van motor cycle, person, dog, cat, etc.
I want to know how many vehicles are in the image. I’m having trouble grasping the best way to get a total, that filters out some of the objects, not just a total count.
edit another example
matches: {
"bicycle": [
{
"score": 98.54578971862793,
"box": [
0.1737593561410904,
0.5515616536140442,
0.25360411405563354,
0.6173633933067322
]
}
],
"car": [
{
"score": 91.31867289543152,
"box": [
0.1800970584154129,
0.44176483154296875,
0.3287076950073242,
0.5345969200134277
]
}
]
}
summary: {
"bicycle": 1,
"car": 1
}
total_matches: 2
friendly_name: TensorFlow back_gate