Hey @bhatiyaarpit95 . I am sure if you open new topic you can find faster solution.
But you missed ‘f’ in rame_meta below.
n_frame = pyds.get_nvds_buf_surface(hash(gst_buffer), rame_meta.batch_id)
I am not sure if this is the cause of your problem but you can try.
Edit: I saw yor py file here. It seems ok to me.
Thanks