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
186 stars 80 forks source link

frame.message() return empty in process_frame when there isn't any detected object within the frame #811

Closed dhaval-zala-aivid closed 2 years ago

dhaval-zala-aivid commented 2 years ago

Hii @nnshah1

When the frame.message() is empty the rest postprocessing is not working because we used len(frame.message()) > 0 as a main condition. Actually, when we are processing past-video file as a sensor, we need to use some parameters such as real_base, resolution, and office to calculate the past frame time and these parameters can be received from frame.message() only. So, how can we get all those parameters in process_frame when frame.message() is empty?

nnshah1 commented 2 years ago

in the pipeline - on the gvametaconvert element you can use the property: add-empty-results=true

This should generate empty metadata for every frame - can you check if that meets your needs?

dhaval-zala-aivid commented 2 years ago

Yes, it works!

Thank You!