Draw custom bbox

hi, can i remove nvdsosd default bbox and text ?
in osd_sink_pad_buffer_probe func,i have custom text\bbox,but display-text=0 is not display

nvosd = Gst.ElementFactory.make(“nvdsosd”, “nvdsosd”+videoSourceID)
nvosd.set_property(“display-text”, 0)
nvosd.set_property(“display-clock”, 0)
nvosd.set_property(“display-bbox”, 0)
nvosd.set_property(“display-mask”, 0)

osdsinkpad = osdsink.get_static_pad(“src”)
if not osdsinkpad:
sys.stderr.write(" Unable to get sink pad of nvosd \n")
osdsinkpad.add_probe(Gst.PadProbeType.BUFFER,
self.osd_sink_pad_buffer_probe, None)

Did you run your own code or our demo code? You can refer the NvDsDisplayMeta in our demo code to draw anything you want.

You can try to get the origin bbox and text structure, set the alpha para to 0.

can you give me an example ? thank you

solved my problem with cv2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.