Request for python bindings

Hi, as we want to develop a custom tracker in python, we ported our current deepstream pipeline to python. The live display works very well but getting the metadata (bounding boxes) seems impossible. When I output the buffer that I get from the osd sink probe like this:

def osd_sink_pad_buffer_probe(pad, info, data):
    buf = info.get_buffer()
    status, info = buf.get_memory(0).map(Gst.MapFlags.READ)
    for i, byte in enumerate(info.data):
        print(i, byte)
    return Gst.PadProbeReturn.OK

I get the bytes of the NvDsBatchMeta struct (at least I think so) looking something like this:

0 0
1 0
2 0
3 0
4 1 # this is probably guint max_frames_in_batch;
5 0
6 0
7 0
8 1 # this is probably guint num_frames_in_batch;
9 0
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 192
25 68
26 66
27 117
28 88
29 127
30 0
31 0
32 0
33 0
34 0
35 0
36 0
37 0
38 0
39 0
40 0
41 0
42 0
43 0
44 0
45 0
46 0
47 0
48 0
49 0
50 0
51 0
52 0
53 0
54 0
55 0
56 0
57 0
58 0
59 0
60 0
61 0
62 0
63 0

I don’t know if it is possible to reverse engineer this struct and actually get to the bounding box data but it would be really nice if you guys just provided us with some python bindings for easier development. C++ is nice for processing speed, but for experimenting it is really slow.

Thanks…

Can you refer to deepstream-test1 osd_sink_pad_buffer_probe() about how to get metadata.
We will provide python binding in next version.