OpenVisualCloud / Smart-City-Sample

The smart city reference pipeline shows how to integrate various media building blocks, with analytics powered by the OpenVINO™ Toolkit, for traffic or stadium sensing, analytics and management tasks.
BSD 3-Clause "New" or "Revised" License
192 stars 83 forks source link

We want to get recieved FPS of the running analytics pod sensor. #786

Closed divdaisymuffin closed 2 years ago

divdaisymuffin commented 3 years ago

We want to get recieved FPS of the running analytics pod sensor, as we are getting processed fps in the algorithm index via runva.py. Please Suggest how we cn proceed.

xwu2git commented 3 years ago

db=DBQuery(host, "algorithms", office) r=list(db.search("_id={}".format(algorithm_id), size=1)) print(r[0]["_source"], flush=True)

xwu2git commented 3 years ago

If you want to search by sensor_id:

db=DBQuery(host, "algorithms", office) r=list(db.search("sensor='{}'".format(sensor_id), size=1)) print(r[0]["_source"], flush=True)

divdaisymuffin commented 2 years ago

Hi @xwu2git , Sorry for late reply, But we have tried it and I think I was not clear in putting my question. My question was" Can we get received fps, which will be the fps at which camera is streaming, and this we want to get from gstreamer, as we are getting for processed fps."

The solution that you provided is giving as processed fps which we are already getting.

nnshah1 commented 2 years ago

@divdaisymuffin Beyond looking at the frame rate supplied by the camera and looking at the incoming PTS we don't have a ready solution for determining the incoming (network) framerate seperate from the processing framerate without further instrumenting the pipeline.

divdaisymuffin commented 2 years ago

@nnshah1 okay we will proceed with that