How to limit processing number of frames per second in network optix?

Answered

Comments

3 comments

  • Avatar
    Nx Support

    You can implement drop frame function inside your plugin, you don't have to send bounding boxes for every frame.

    7-11 fps is usually enough.

     

    Also, if you have standalone analytics service it might be an option to request the video from the server using RTSP and then delivering bounding boxes back through the plugin. Then you can control the drop frame in your processing pipeline

    0
    Comment actions Permalink
  • Avatar
    Mohamed Thasin

    I am controlling the frames using `frameindex` variable. So, this issue is resolved. Accessing video through RTSP is currently not suitable for my application. I'll keep this in my mind for the future development.

    I am struggling to send frame to my REST API.
    How to send video frame as image to REST API? Could you help me to solve this?

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hello Mohamed Thasin ,

    The Server delivers video frames to plugin by pushUncompressedVideoFrame or pushCompressedVideoFrame methods of DeviceAgent class. Both methods accept a pointer to the structure, that  contains actrlal frame data, which could be sent to your server over REST API. For more detail read the Metadata SDK documentation supplied with SDK.

    This post as well gives a guideline and useful link for further reading:

    https://support.networkoptix.com/hc/en-us/community/posts/360043199653/comments/360010973914

    0
    Comment actions Permalink

Please sign in to leave a comment.