tensordecoder: rename facedetector element
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9344>
This commit is contained in:
parent
36bb470d1d
commit
d868357270
@ -248609,62 +248609,6 @@
|
||||
},
|
||||
"rank": "primary"
|
||||
},
|
||||
"facedetector": {
|
||||
"author": "The original repository of the Ultra Light Face Detection is located at https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB.Raghavendra Rao <raghavendra.rao@collabora.com>",
|
||||
"description": "Detect tensor output from the inference of Ultra Light Face Detection to detect the faces in video frames.",
|
||||
"hierarchy": [
|
||||
"GstFaceDetectorTensorDecoder",
|
||||
"GstBaseTransform",
|
||||
"GstElement",
|
||||
"GstObject",
|
||||
"GInitiallyUnowned",
|
||||
"GObject"
|
||||
],
|
||||
"klass": "Tensordecoder/Video",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "video/x-raw:\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
"src": {
|
||||
"caps": "video/x-raw:\n",
|
||||
"direction": "src",
|
||||
"presence": "always"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"iou-threshold": {
|
||||
"blurb": "Threshold for removing boxes based on proportion of the image",
|
||||
"conditionally-available": false,
|
||||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "0.3",
|
||||
"max": "1",
|
||||
"min": "0",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gfloat",
|
||||
"writable": true
|
||||
},
|
||||
"score-threshold": {
|
||||
"blurb": "Threshold for deciding when to remove boxes based on score",
|
||||
"conditionally-available": false,
|
||||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "0.6",
|
||||
"max": "1",
|
||||
"min": "0",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gfloat",
|
||||
"writable": true
|
||||
}
|
||||
},
|
||||
"rank": "primary"
|
||||
},
|
||||
"ssdobjectdetector": {
|
||||
"author": "Aaron Boxer <aaron.boxer@collabora.com>, Marcus Edel <marcus.edel@collabora.com>",
|
||||
"description": "Apply tensor output from inference to detect objects in video frames",
|
||||
@ -248732,6 +248676,62 @@
|
||||
}
|
||||
},
|
||||
"rank": "primary"
|
||||
},
|
||||
"ultralightfacedetectortensordec": {
|
||||
"author": "Raghavendra Rao <raghavendra.rao@collabora.com>",
|
||||
"description": "Detect tensor output from the inference of Ultra Light Face Detection to detect the faces in video frames.The original repository of the Ultra Light Face Detection is located at https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB.",
|
||||
"hierarchy": [
|
||||
"GstFaceDetectorTensorDecoder",
|
||||
"GstBaseTransform",
|
||||
"GstElement",
|
||||
"GstObject",
|
||||
"GInitiallyUnowned",
|
||||
"GObject"
|
||||
],
|
||||
"klass": "Tensordecoder/Video",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "video/x-raw:\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
"src": {
|
||||
"caps": "video/x-raw:\n",
|
||||
"direction": "src",
|
||||
"presence": "always"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"iou-threshold": {
|
||||
"blurb": "Threshold for removing boxes based on proportion of the image",
|
||||
"conditionally-available": false,
|
||||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "0.3",
|
||||
"max": "1",
|
||||
"min": "0",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gfloat",
|
||||
"writable": true
|
||||
},
|
||||
"score-threshold": {
|
||||
"blurb": "Threshold for deciding when to remove boxes based on score",
|
||||
"conditionally-available": false,
|
||||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "0.6",
|
||||
"max": "1",
|
||||
"min": "0",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gfloat",
|
||||
"writable": true
|
||||
}
|
||||
},
|
||||
"rank": "primary"
|
||||
}
|
||||
},
|
||||
"filename": "gsttensordecoders",
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* GStreamer gstreamer-facedetector
|
||||
* GStreamer gstreamer-ultralightfacedetectortensordec
|
||||
* Copyright (C) 2025 Collabora Ltd.
|
||||
*
|
||||
* gstfacedetectortensordecoder.c
|
||||
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:element-facedetector
|
||||
* SECTION:element-ultralightfacedetectortensordec
|
||||
* @short_description: Detect faces in video buffers using the Ultra Light Face Detection model.
|
||||
*
|
||||
* This element can parse per-buffer inference tensor meta data generated by an upstream
|
||||
@ -35,10 +35,10 @@
|
||||
* The Model file can be found here :
|
||||
* https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB/tree/master/models/onnx
|
||||
*
|
||||
* GST_DEBUG=facedetector \
|
||||
* GST_DEBUG=ultralightfacedetectortensordec \
|
||||
* gst-launch-1.0 multifilesrc location=~/imgs/11.jpg ! jpegdec ! videoconvertscale ! \
|
||||
* onnxinference model-file=version-RFB-320.onnx input-image-format=chw input-tensor-offset=-127 input-tensor-scale=128.0 ! \
|
||||
* facedetector ! objectdetectionoverlay object-detection-outline-color=0xFF0000FF draw-labels=false ! \
|
||||
* ultralightfacedetectortensordec ! objectdetectionoverlay object-detection-outline-color=0xFF0000FF draw-labels=false ! \
|
||||
* videoconvertscale ! autovideosink
|
||||
*
|
||||
* Since: 1.28
|
||||
@ -64,8 +64,9 @@
|
||||
GST_DEBUG_CATEGORY_STATIC (face_detector_tensor_decoder_debug);
|
||||
#define GST_CAT_DEFAULT face_detector_tensor_decoder_debug
|
||||
|
||||
GST_ELEMENT_REGISTER_DEFINE (face_detector_tensor_decoder, "facedetector",
|
||||
GST_RANK_PRIMARY, GST_TYPE_FACE_DETECTOR_TENSOR_DECODER);
|
||||
GST_ELEMENT_REGISTER_DEFINE (face_detector_tensor_decoder,
|
||||
"ultralightfacedetectortensordec", GST_RANK_PRIMARY,
|
||||
GST_TYPE_FACE_DETECTOR_TENSOR_DECODER);
|
||||
|
||||
/* GstFaceDetectorTensorDecoder properties, see properties description in
|
||||
* gst_face_detector_tensor_decoder_class_init for more details. */
|
||||
@ -133,7 +134,8 @@ gst_face_detector_tensor_decoder_class_init (GstFaceDetectorTensorDecoderClass
|
||||
|
||||
/* Define GstFaceDetectorTensorDecoder debug category. */
|
||||
GST_DEBUG_CATEGORY_INIT (face_detector_tensor_decoder_debug,
|
||||
"facedetector", 0, "Tensor Decoder for Face Detection");
|
||||
"ultralightfacedetectortensordec", 0,
|
||||
"Tensor Decoder for Face Detection");
|
||||
|
||||
/* Set GObject vmethod to get and set property */
|
||||
gobject_class->set_property = gst_face_detector_tensor_decoder_set_property;
|
||||
@ -173,11 +175,11 @@ gst_face_detector_tensor_decoder_class_init (GstFaceDetectorTensorDecoderClass
|
||||
|
||||
/* Element description. */
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"facedetector", "Tensordecoder/Video",
|
||||
"ultralightfacedetectortensordec", "Tensordecoder/Video",
|
||||
"Detect tensor output from the inference of Ultra Light Face Detection"
|
||||
" to detect the faces in video frames.",
|
||||
" to detect the faces in video frames."
|
||||
"The original repository of the Ultra Light Face Detection is located at"
|
||||
" https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB."
|
||||
" https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB.",
|
||||
"Raghavendra Rao <raghavendra.rao@collabora.com>");
|
||||
|
||||
/* Add pads to element base on pad template defined earlier */
|
||||
|
Loading…
x
Reference in New Issue
Block a user