onnx: add overlay renderer
This MR adds a pango-based element onnxoverlayrenderer
to render bounding box and label meta data generated by the onnxobjectdetector
element. See ONNX MR for more details on onnxobjectdetector
.
Sample pipeline:
uridecodebin uri=file:///crowd_people_in_city_town.mp4 !
videoconvert !
onnxobjectdetector
box-node-index=0
class-node-index=1
score-node-index=2
detection-node-index=3
execution-provider=cpu
model-file=onnx-runtime-examples/data/models/model.onnx label-file=onnx-runtime-examples/data/labels/COCO_classes.txt !
onnxoverlayrenderer !
autovideoconvert !
autovideosink
Edited by Aaron Boxer