Remove detection part from gstfaceblur and rename it to gstroiblur
Currently we have two elements in GStreamer that do double work (face detection):
- gstfaceblur: does face detection + blur
- gstfacedetect: does face detection
My proposal suggests:
- Remove the face detection from gstfaceblur
- Modify gstfaceblur to read GstVideoRegionOfInterestMeta from incoming buffers.
- Modify gstfaceblur to apply blur effect to the regions marked on each GstVideoRegionOfInterestMeta.
- Add an extra property "roi_type" so we filter what GstVideoRegionOfInterestMeta to blur by its roi_type.
- Rename gstfaceblur to gstroiblur.
When those changes get applied, the output of these pipelines should be equivalent
gst-launch-1.0 autovideosrc ! videoconvert ! faceblur ! videoconvert ! xvimagesink
gst-launch-1.0 autovideosrc ! videoconvert ! facedetect ! roiblur roi-type="face" ! videoconvert ! xvimagesink