Skip to content

Commit 73376cf

Browse files
committed
Add support for Person Head Detection
1 parent 558cd6e commit 73376cf

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ZED SDK v3.8
1313
- Add `od-prediction-timeout-s` parameter [Thx @ryanppeters]
1414
- Add `od-allow-reduced-precision-inference` parameter [Thx @ryanppeters]
1515
- Add new field `frame_id` to `GstZedSrcMeta` in order to track the meta/buffer throughout the GStreamer pipeline (when working with source code) [Thx @ryanppeters]
16+
- Add support for new Object Detection models in `od-detection-model` (Person Head and Person Head ACCURATE)
1617

1718
ZED SDK v3.7
1819
-------------

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Most of the parameters follow the same name as the C++ API. Except that `_` is r
163163
* `od-enabled`: Enable Object Detection - {TRUE, FALSE}
164164
* `od-image-sync`: Set to TRUE to enable Object Detection frame synchronization - {TRUE, FALSE}
165165
* `od-enable-tracking`: Set to TRUE to enable tracking for the detected objects - {TRUE, FALSE}
166-
* `od-detection-model`: Object Detection Model - {(0): Object Detection Multi class, (1): Object Detection Multi class ACCURATE, (2): Skeleton tracking FAST, (3): Skeleton tracking ACCURATE, (4): Object Detection Multi class MEDIUM, (5): Skeleton tracking MEDIUM}
166+
* `od-detection-model`: Object Detection Model - {(0): Object Detection Multi class, (1): Object Detection Multi class ACCURATE, (2): Skeleton tracking FAST, (3): Skeleton tracking ACCURATE, (4): Object Detection Multi class MEDIUM, (5): Skeleton tracking MEDIUM, (6): Person Head, (7): Person Head ACCURATE}
167167
* `od-confidence`: Minimum Detection Confidence - {0,100}
168168
* `od-max-range`: Maximum Detection Range - [-1,20000]
169169
* `od-body-fitting`: Set to TRUE to enable body fitting for skeleton tracking - {TRUE, FALSE}

gst-zed-src/gstzedsrc.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ typedef enum {
156156
GST_ZEDSRC_OD_HUMAN_BODY_FAST = 2,
157157
GST_ZEDSRC_OD_HUMAN_BODY_ACCURATE = 3,
158158
GST_ZEDSRC_OD_MULTI_CLASS_BOX_MEDIUM = 4,
159-
GST_ZEDSRC_OD_HUMAN_BODY_MEDIUM = 5
159+
GST_ZEDSRC_OD_HUMAN_BODY_MEDIUM = 5,
160+
GST_ZEDSRC_OD_PERSON_HEAD_BOX = 6,
161+
GST_ZEDSRC_OD_PERSON_HEAD_BOX_ACCURATE = 7,
160162
} GstZedSrcOdModel;
161163

162164
typedef enum {
@@ -448,6 +450,12 @@ static GType gst_zedsrc_od_model_get_type (void)
448450
{ GST_ZEDSRC_OD_HUMAN_BODY_MEDIUM,
449451
"Keypoints based, specific to human skeleton, compromise between accuracy and speed",
450452
"Skeleton tracking MEDIUM" },
453+
{ GST_ZEDSRC_OD_PERSON_HEAD_BOX ,
454+
"Bounding Box detector specialized in person heads, particulary well suited for crowded environments, the person localization is also improved",
455+
"Person Head" },
456+
{ GST_ZEDSRC_OD_PERSON_HEAD_BOX_ACCURATE ,
457+
"Bounding Box detector specialized in person heads, particulary well suited for crowded environments, the person localization is also improved, more accurate but slower than the base model",
458+
"Person Head ACCURATE" },
451459
{ 0, NULL, NULL },
452460
};
453461

0 commit comments

Comments
 (0)